diff --git a/dist/melonjs.mjs/application/application.js b/dist/melonjs.mjs/application/application.js index f0e4ae453..3c15142d7 100644 --- a/dist/melonjs.mjs/application/application.js +++ b/dist/melonjs.mjs/application/application.js @@ -19,6 +19,7 @@ import { consoleHeader } from './header.js'; import { WEBGL, CANVAS, AUTO } from '../const.js'; /** + * additional import for TypeScript * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js"; * @import Camera2d from "./../camera/camera2d.js"; */ diff --git a/dist/melonjs.mjs/application/header.js b/dist/melonjs.mjs/application/header.js index dc3fe07ce..5d5687101 100644 --- a/dist/melonjs.mjs/application/header.js +++ b/dist/melonjs.mjs/application/header.js @@ -8,6 +8,7 @@ import { devicePixelRatio, platform, getScreenOrientation, language, hasWebAudio } from '../system/device.js'; /** + * additional import for TypeScript * @import Application from "./application.js"; */ diff --git a/dist/melonjs.mjs/application/resize.js b/dist/melonjs.mjs/application/resize.js index 614a55e2e..7ba704913 100644 --- a/dist/melonjs.mjs/application/resize.js +++ b/dist/melonjs.mjs/application/resize.js @@ -8,6 +8,7 @@ import { getElementBounds, getParentBounds, devicePixelRatio } from '../system/device.js'; /** + * additional import for TypeScript * @import Application from "./application.js"; */ diff --git a/dist/melonjs.mjs/application/settings.js b/dist/melonjs.mjs/application/settings.js index c57ff6f9b..93e819695 100644 --- a/dist/melonjs.mjs/application/settings.js +++ b/dist/melonjs.mjs/application/settings.js @@ -6,6 +6,7 @@ * @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd) */ /** + * additional import for TypeScript * @import Renderer from "./../video/renderer.js"; */ diff --git a/dist/melonjs.mjs/audio/audio.js b/dist/melonjs.mjs/audio/audio.js index 260f0fcb5..c1022d6b5 100644 --- a/dist/melonjs.mjs/audio/audio.js +++ b/dist/melonjs.mjs/audio/audio.js @@ -13,7 +13,8 @@ import { __exports as howler } from '../_virtual/howler.js'; // external import /** - * @import Asset from "./../loader/loader.js"; + * additional import for TypeScript + * @import { Asset } from "./../loader/loader.js"; */ /** diff --git a/dist/melonjs.mjs/geometries/ellipse.js b/dist/melonjs.mjs/geometries/ellipse.js index c04e40b86..4fee389d7 100644 --- a/dist/melonjs.mjs/geometries/ellipse.js +++ b/dist/melonjs.mjs/geometries/ellipse.js @@ -8,6 +8,7 @@ import pool from '../system/pooling.js'; /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; * @import ObservableVector2d from "./../math/observable_vector2.js"; * @import Matrix2d from "./../math/matrix2.js"; diff --git a/dist/melonjs.mjs/geometries/line.js b/dist/melonjs.mjs/geometries/line.js index 3319f0810..98619482a 100644 --- a/dist/melonjs.mjs/geometries/line.js +++ b/dist/melonjs.mjs/geometries/line.js @@ -9,6 +9,7 @@ import pool from '../system/pooling.js'; import Polygon from './poly.js'; /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2d.js"; */ diff --git a/dist/melonjs.mjs/geometries/path2d.js b/dist/melonjs.mjs/geometries/path2d.js index 8644ba5ea..87bdf2d4c 100644 --- a/dist/melonjs.mjs/geometries/path2d.js +++ b/dist/melonjs.mjs/geometries/path2d.js @@ -11,6 +11,7 @@ import earcut from '../node_modules/earcut/src/earcut.js'; import { endpointToCenterParameterization } from './toarccanvas.js'; /** + * additional import for TypeScript * @import Point from "./point.js"; */ diff --git a/dist/melonjs.mjs/geometries/point.js b/dist/melonjs.mjs/geometries/point.js index c9c86a526..ac8edd8b0 100644 --- a/dist/melonjs.mjs/geometries/point.js +++ b/dist/melonjs.mjs/geometries/point.js @@ -6,6 +6,7 @@ * @copyright (C) 2011 - 2024 Olivier Biot (AltByte Pte Ltd) */ /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; **/ diff --git a/dist/melonjs.mjs/geometries/poly.js b/dist/melonjs.mjs/geometries/poly.js index c080ed694..15e70d209 100644 --- a/dist/melonjs.mjs/geometries/poly.js +++ b/dist/melonjs.mjs/geometries/poly.js @@ -9,7 +9,11 @@ import earcut from '../node_modules/earcut/src/earcut.js'; import pool from '../system/pooling.js'; /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; + * @import ObservableVector2d from "./../math/observable_vector2.js"; + * @import Matrix2d from "./../math/matrix2.js"; + * @import Bounds from "./../physics/bounds.js"; */ /** diff --git a/dist/melonjs.mjs/geometries/rectangle.js b/dist/melonjs.mjs/geometries/rectangle.js index 6970c9c61..8169d0e6a 100644 --- a/dist/melonjs.mjs/geometries/rectangle.js +++ b/dist/melonjs.mjs/geometries/rectangle.js @@ -9,6 +9,7 @@ import pool from '../system/pooling.js'; import Polygon from './poly.js'; /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; **/ diff --git a/dist/melonjs.mjs/loader/loader.js b/dist/melonjs.mjs/loader/loader.js index bc0d44308..24ad8693f 100644 --- a/dist/melonjs.mjs/loader/loader.js +++ b/dist/melonjs.mjs/loader/loader.js @@ -272,7 +272,6 @@ function onLoadingError(res) { /** * an asset definition to be used with the loader * @typedef {object} Asset - * @export * @memberof loader * @property {string} name - name of the asset * @property {string} type - the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx"|"tmj"|"tsx"|"tsj"|"fontface"|"video") diff --git a/dist/melonjs.mjs/math/matrix2.js b/dist/melonjs.mjs/math/matrix2.js index 397cafdce..022f804f0 100644 --- a/dist/melonjs.mjs/math/matrix2.js +++ b/dist/melonjs.mjs/math/matrix2.js @@ -8,6 +8,7 @@ import pool from '../system/pooling.js'; /** + * additional import for TypeScript * @import Matrix3d from "./matrix3.js"; * @import Vector2d from "./vector2.js"; * @import Vector3d from "./vector3.js"; diff --git a/dist/melonjs.mjs/math/matrix3.js b/dist/melonjs.mjs/math/matrix3.js index 0d9b481cf..0bedbf27b 100644 --- a/dist/melonjs.mjs/math/matrix3.js +++ b/dist/melonjs.mjs/math/matrix3.js @@ -9,6 +9,7 @@ import pool from '../system/pooling.js'; import { EPSILON } from './math.js'; /** + * additional import for TypeScript * @import Matrix2d from "./matrix2.js"; * @import Vector2d from "./vector2.js"; * @import Vector3d from "./vector3.js"; diff --git a/dist/melonjs.mjs/math/observable_vector3.js b/dist/melonjs.mjs/math/observable_vector3.js index 6a2de6397..7e8fceb2c 100644 --- a/dist/melonjs.mjs/math/observable_vector3.js +++ b/dist/melonjs.mjs/math/observable_vector3.js @@ -10,6 +10,7 @@ import { clamp } from './math.js'; import pool from '../system/pooling.js'; /** + * additional import for TypeScript * @import ObservableVector2d from "./observable_vector2.js"; * @import Vector2d from "./vector2.js"; */ diff --git a/dist/melonjs.mjs/math/vector3.js b/dist/melonjs.mjs/math/vector3.js index 1710d1834..131af28da 100644 --- a/dist/melonjs.mjs/math/vector3.js +++ b/dist/melonjs.mjs/math/vector3.js @@ -9,6 +9,7 @@ import { clamp } from './math.js'; import pool from '../system/pooling.js'; /** + * additional import for TypeScript * @import Vector2d from "./vector2.js"; */ diff --git a/dist/melonjs.mjs/renderable/colorlayer.js b/dist/melonjs.mjs/renderable/colorlayer.js index a5c699904..0b98f3402 100644 --- a/dist/melonjs.mjs/renderable/colorlayer.js +++ b/dist/melonjs.mjs/renderable/colorlayer.js @@ -9,6 +9,7 @@ import pool from '../system/pooling.js'; import Renderable from './renderable.js'; /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js"; * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js"; diff --git a/dist/melonjs.mjs/renderable/container.js b/dist/melonjs.mjs/renderable/container.js index a40fcf49a..629b6f811 100644 --- a/dist/melonjs.mjs/renderable/container.js +++ b/dist/melonjs.mjs/renderable/container.js @@ -25,6 +25,7 @@ function deferredRemove(child, keepalive) { let globalFloatingCounter = 0; /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import Entity from "./entity/entity.js"; * @import Sprite from "./sprite.js"; diff --git a/dist/melonjs.mjs/renderable/dragndrop.js b/dist/melonjs.mjs/renderable/dragndrop.js index a8082fecc..6b6f2d7f3 100644 --- a/dist/melonjs.mjs/renderable/dragndrop.js +++ b/dist/melonjs.mjs/renderable/dragndrop.js @@ -9,6 +9,7 @@ import { on, DRAGEND, off } from '../system/event.js'; import Renderable from './renderable.js'; /** + * additional import for TypeScript * @import { Draggable } from "./draggable.js"; */ diff --git a/dist/melonjs.mjs/renderable/imagelayer.js b/dist/melonjs.mjs/renderable/imagelayer.js index ecae7916a..fe22589fc 100644 --- a/dist/melonjs.mjs/renderable/imagelayer.js +++ b/dist/melonjs.mjs/renderable/imagelayer.js @@ -13,6 +13,7 @@ import Sprite from './sprite.js'; import { isNumeric } from '../utils/string.js'; /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; */ diff --git a/dist/melonjs.mjs/renderable/light2d.js b/dist/melonjs.mjs/renderable/light2d.js index 5578cb63d..fee9d5edd 100644 --- a/dist/melonjs.mjs/renderable/light2d.js +++ b/dist/melonjs.mjs/renderable/light2d.js @@ -9,6 +9,7 @@ import pool from '../system/pooling.js'; import Renderable from './renderable.js'; /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import Ellipse from "./../geometries/ellipse.js"; * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js"; diff --git a/dist/melonjs.mjs/renderable/nineslicesprite.js b/dist/melonjs.mjs/renderable/nineslicesprite.js index 2b003f9d3..322315306 100644 --- a/dist/melonjs.mjs/renderable/nineslicesprite.js +++ b/dist/melonjs.mjs/renderable/nineslicesprite.js @@ -8,6 +8,7 @@ import Sprite from './sprite.js'; /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import { TextureAtlas } from "./../video/texture/atlas.js"; */ diff --git a/dist/melonjs.mjs/renderable/renderable.js b/dist/melonjs.mjs/renderable/renderable.js index 3009b8cec..103f1181a 100644 --- a/dist/melonjs.mjs/renderable/renderable.js +++ b/dist/melonjs.mjs/renderable/renderable.js @@ -17,6 +17,7 @@ import Color from '../math/color.js'; import { releaseAllPointerEvents } from '../input/pointerevent.js'; /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; * @import Vector3d from "./../math/vector3.js"; * @import Matrix2d from "./../math/matrix2.js"; diff --git a/dist/melonjs.mjs/renderable/sprite.js b/dist/melonjs.mjs/renderable/sprite.js index 879f1d0c6..1eb22fda0 100644 --- a/dist/melonjs.mjs/renderable/sprite.js +++ b/dist/melonjs.mjs/renderable/sprite.js @@ -14,6 +14,7 @@ import Color from '../math/color.js'; import { on, STATE_PAUSE, off } from '../system/event.js'; /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js"; * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js"; diff --git a/dist/melonjs.mjs/renderable/trigger.js b/dist/melonjs.mjs/renderable/trigger.js index 8bf9e0110..dab6bc6cd 100644 --- a/dist/melonjs.mjs/renderable/trigger.js +++ b/dist/melonjs.mjs/renderable/trigger.js @@ -12,6 +12,7 @@ import level from '../level/level.js'; import pool from '../system/pooling.js'; /** + * additional import for TypeScript * @import ResponseObject from "./../physics/response.js"; */ diff --git a/dist/melonjs.mjs/video/canvas/canvas_renderer.js b/dist/melonjs.mjs/video/canvas/canvas_renderer.js index 0bea72424..883837487 100644 --- a/dist/melonjs.mjs/video/canvas/canvas_renderer.js +++ b/dist/melonjs.mjs/video/canvas/canvas_renderer.js @@ -11,6 +11,7 @@ import TextureCache from '../texture/cache.js'; import { emit, on, ONCONTEXT_LOST, ONCONTEXT_RESTORED, GAME_RESET } from '../../system/event.js'; /** + * additional import for TypeScript * @import Rect from "./../../geometries/rectangle.js"; * @import RoundRect from "./../../geometries/roundrect.js"; * @import Polygon from "./../../geometries/poly.js"; diff --git a/dist/melonjs.mjs/video/rendertarget/canvasrendertarget.js b/dist/melonjs.mjs/video/rendertarget/canvasrendertarget.js index 9b86a04c0..fda8189eb 100644 --- a/dist/melonjs.mjs/video/rendertarget/canvasrendertarget.js +++ b/dist/melonjs.mjs/video/rendertarget/canvasrendertarget.js @@ -10,6 +10,7 @@ import { setPrefixed } from '../../utils/agent.js'; import { clamp } from '../../math/math.js'; /** + * additional import for TypeScript * @import CanvasRenderer from "./../canvas/canvas_renderer.js"; * @import WebGLRenderer from "./../webgl/webgl_renderer.js"; */ diff --git a/dist/melonjs.mjs/video/texture/atlas.js b/dist/melonjs.mjs/video/texture/atlas.js index f5b4a7a1d..ff2c30f2c 100644 --- a/dist/melonjs.mjs/video/texture/atlas.js +++ b/dist/melonjs.mjs/video/texture/atlas.js @@ -15,6 +15,7 @@ import { parseSpriteSheet } from './parser/spritesheet.js'; import { parseAseprite } from './parser/aseprite.js'; /** + * additional import for TypeScript * @import NineSliceSprite from "./../../renderable/nineslicesprite.js"; */ diff --git a/dist/melonjs.mjs/video/webgl/compositors/compositor.js b/dist/melonjs.mjs/video/webgl/compositors/compositor.js index 55f2c051f..d70ae5f5a 100644 --- a/dist/melonjs.mjs/video/webgl/compositors/compositor.js +++ b/dist/melonjs.mjs/video/webgl/compositors/compositor.js @@ -8,6 +8,12 @@ import VertexArrayBuffer from '../buffer/vertex.js'; import GLShader from '../glshader.js'; +/** + * additional import for TypeScript + * @import WebGLRenderer from "./../webgl_renderer.js"; + * @import Matrix3d from "./../../../math/matrix3.js"; + */ + /** * @classdesc * A base Compositor object. diff --git a/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js b/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js index a9d31de55..080da87ab 100644 --- a/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js +++ b/dist/melonjs.mjs/video/webgl/compositors/primitive_compositor.js @@ -9,6 +9,11 @@ import primitiveVertex from '../shaders/primitive.vert.js'; import primitiveFragment from '../shaders/primitive.frag.js'; import Compositor from './compositor.js'; +/** + * additional import for TypeScript + * @import Point from "./../../../geometries/point.js"; + */ + /** * @classdesc * A WebGL Compositor object. This class handles all of the WebGL state
diff --git a/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js b/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js index e89d57a83..0720b1647 100644 --- a/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js +++ b/dist/melonjs.mjs/video/webgl/compositors/quad_compositor.js @@ -11,6 +11,11 @@ import quadVertex from '../shaders/quad.vert.js'; import quadFragment from '../shaders/quad.frag.js'; import Compositor from './compositor.js'; +/** + * additional import for TypeScript + * @import {TextureAtlas} from "./../../texture/atlas.js"; + */ + // a pool of resuable vectors let V_ARRAY = [ new Vector2d(), diff --git a/dist/melonjs.mjs/video/webgl/webgl_renderer.js b/dist/melonjs.mjs/video/webgl/webgl_renderer.js index eb9c1c08d..6192f600f 100644 --- a/dist/melonjs.mjs/video/webgl/webgl_renderer.js +++ b/dist/melonjs.mjs/video/webgl/webgl_renderer.js @@ -18,6 +18,7 @@ import pool from '../../system/pooling.js'; import { isPowerOfTwo } from '../../math/math.js'; /** + * additional import for TypeScript * @import Rect from "./../../geometries/rectangle.js"; * @import RoundRect from "./../../geometries/roundrect.js"; * @import Polygon from "./../../geometries/poly.js"; diff --git a/dist/melonjs.module.js b/dist/melonjs.module.js index 90303dd96..a4752d3e4 100644 --- a/dist/melonjs.module.js +++ b/dist/melonjs.module.js @@ -3830,6 +3830,7 @@ class Vector2d { } /** + * additional import for TypeScript * @import Vector2d from "./vector2.js"; */ @@ -4747,6 +4748,7 @@ class ObservableVector2d extends Vector2d { } /** + * additional import for TypeScript * @import ObservableVector2d from "./observable_vector2.js"; * @import Vector2d from "./vector2.js"; */ @@ -5298,6 +5300,7 @@ class ObservableVector3d extends Vector3d { } /** + * additional import for TypeScript * @import Matrix3d from "./matrix3.js"; * @import Vector2d from "./vector2.js"; * @import Vector3d from "./vector3.js"; @@ -5782,6 +5785,7 @@ class Matrix2d { } /** + * additional import for TypeScript * @import Matrix2d from "./matrix2.js"; * @import Vector2d from "./vector2.js"; * @import Vector3d from "./vector3.js"; @@ -7087,7 +7091,11 @@ var earcutExports = earcut$2.exports; var earcut$1 = /*@__PURE__*/getDefaultExportFromCjs(earcutExports); /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; + * @import ObservableVector2d from "./../math/observable_vector2.js"; + * @import Matrix2d from "./../math/matrix2.js"; + * @import Bounds from "./../physics/bounds.js"; */ /** @@ -7513,6 +7521,7 @@ class Polygon { } /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2d.js"; */ @@ -7614,6 +7623,7 @@ class Line extends Polygon { } /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; * @import ObservableVector2d from "./../math/observable_vector2.js"; * @import Matrix2d from "./../math/matrix2.js"; @@ -7856,6 +7866,7 @@ class Ellipse { } /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; **/ @@ -7932,6 +7943,7 @@ class Point { } /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; **/ @@ -13788,7 +13800,8 @@ var string$1 = { // external import /** - * @import Asset from "./../loader/loader.js"; + * additional import for TypeScript + * @import { Asset } from "./../loader/loader.js"; */ /** @@ -15696,6 +15709,7 @@ var device = { }; /** + * additional import for TypeScript * @import Renderer from "./../video/renderer.js"; */ @@ -18432,6 +18446,7 @@ class GLShader { } /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; * @import Vector3d from "./../math/vector3.js"; * @import Matrix2d from "./../math/matrix2.js"; @@ -21692,54 +21707,48 @@ var coerce_1 = coerce$1; var coerce$2 = /*@__PURE__*/getDefaultExportFromCjs(coerce_1); -var lrucache; -var hasRequiredLrucache; +class LRUCache { + constructor () { + this.max = 1000; + this.map = new Map(); + } -function requireLrucache () { - if (hasRequiredLrucache) return lrucache; - hasRequiredLrucache = 1; - class LRUCache { - constructor () { - this.max = 1000; - this.map = new Map(); - } + 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 + } + } - 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 - } - } + delete (key) { + return this.map.delete(key) + } - delete (key) { - return this.map.delete(key) - } + set (key, value) { + const deleted = this.delete(key); - set (key, value) { - const deleted = this.delete(key); + 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 (!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); - } + this.map.set(key, value); + } - this.map.set(key, value); - } + return this + } +} - return this - } - } +var lrucache = LRUCache; - lrucache = LRUCache; - return lrucache; -} +var lrucache$1 = /*@__PURE__*/getDefaultExportFromCjs(lrucache); var range; var hasRequiredRange; @@ -21947,7 +21956,7 @@ function requireRange () { range = Range; - const LRU = requireLrucache(); + const LRU = lrucache; const cache = new LRU(); const parseOptions = parseOptions_1; @@ -24533,6 +24542,7 @@ function endpointToCenterParameterization(x1, y1, x2, y2, largeArcFlag, sweepFla } /** + * additional import for TypeScript * @import Point from "./point.js"; */ @@ -24998,6 +25008,7 @@ class Path2D { } /** + * additional import for TypeScript * @import CanvasRenderer from "./../canvas/canvas_renderer.js"; * @import WebGLRenderer from "./../webgl/webgl_renderer.js"; */ @@ -25874,6 +25885,7 @@ function parseAseprite(data, textureAtlas) { } /** + * additional import for TypeScript * @import NineSliceSprite from "./../../renderable/nineslicesprite.js"; */ @@ -26681,6 +26693,7 @@ class TextureCache { } /** + * additional import for TypeScript * @import Rect from "./../../geometries/rectangle.js"; * @import RoundRect from "./../../geometries/roundrect.js"; * @import Polygon from "./../../geometries/poly.js"; @@ -28115,6 +28128,7 @@ function deferredRemove(child, keepalive) { let globalFloatingCounter = 0; /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import Entity from "./entity/entity.js"; * @import Sprite from "./sprite.js"; @@ -31562,7 +31576,6 @@ function onLoadingError(res) { /** * an asset definition to be used with the loader * @typedef {object} Asset - * @export * @memberof loader * @property {string} name - name of the asset * @property {string} type - the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx"|"tmj"|"tsx"|"tsj"|"fontface"|"video") @@ -32044,6 +32057,7 @@ var loader = { }; /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js"; * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js"; @@ -35354,6 +35368,12 @@ class VertexArrayBuffer { } +/** + * additional import for TypeScript + * @import WebGLRenderer from "./../webgl_renderer.js"; + * @import Matrix3d from "./../../../math/matrix3.js"; + */ + /** * @classdesc * A base Compositor object. @@ -35581,6 +35601,11 @@ var primitiveVertex = "// Current vertex point\nattribute vec2 aVertex;\nattribu var primitiveFragment = "varying vec4 vColor;\n\nvoid main(void) {\n gl_FragColor = vColor;\n}\n"; +/** + * additional import for TypeScript + * @import Point from "./../../../geometries/point.js"; + */ + /** * @classdesc * A WebGL Compositor object. This class handles all of the WebGL state
@@ -35650,6 +35675,11 @@ var quadVertex = "// Current vertex point\nattribute vec2 aVertex;\nattribute ve var quadFragment = "uniform sampler2D uSampler;\nvarying vec4 vColor;\nvarying vec2 vRegion;\n\nvoid main(void) {\n gl_FragColor = texture2D(uSampler, vRegion) * vColor;\n}\n"; +/** + * additional import for TypeScript + * @import {TextureAtlas} from "./../../texture/atlas.js"; + */ + // a pool of resuable vectors let V_ARRAY = [ new Vector2d(), @@ -35891,6 +35921,7 @@ class QuadCompositor extends Compositor { } /** + * additional import for TypeScript * @import Rect from "./../../geometries/rectangle.js"; * @import RoundRect from "./../../geometries/roundrect.js"; * @import Polygon from "./../../geometries/poly.js"; @@ -37116,6 +37147,7 @@ class WebGLRenderer extends Renderer { } /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js"; * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js"; @@ -37187,6 +37219,7 @@ class ColorLayer extends Renderable { } /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; */ @@ -37464,6 +37497,7 @@ class ImageLayer extends Sprite { } /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import { TextureAtlas } from "./../video/texture/atlas.js"; */ @@ -39370,6 +39404,7 @@ class Collectable extends Sprite { } /** + * additional import for TypeScript * @import ResponseObject from "./../physics/response.js"; */ @@ -39518,6 +39553,7 @@ class Trigger extends Renderable { } /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import Ellipse from "./../geometries/ellipse.js"; * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js"; @@ -40028,6 +40064,7 @@ class Draggable extends Renderable { } /** + * additional import for TypeScript * @import { Draggable } from "./draggable.js"; */ @@ -42100,6 +42137,7 @@ function autoDetectRenderer(options) { } /** + * additional import for TypeScript * @import Application from "./application.js"; */ @@ -42217,6 +42255,7 @@ function onresize(game) { } /** + * additional import for TypeScript * @import Application from "./application.js"; */ @@ -42246,6 +42285,7 @@ function consoleHeader(app) { } /** + * additional import for TypeScript * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js"; * @import Camera2d from "./../camera/camera2d.js"; */ diff --git a/dist/types/application/application.d.ts b/dist/types/application/application.d.ts index 683c436e0..36a2bf717 100644 --- a/dist/types/application/application.d.ts +++ b/dist/types/application/application.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js"; * @import Camera2d from "./../camera/camera2d.js"; */ diff --git a/dist/types/application/header.d.ts b/dist/types/application/header.d.ts index 0e91e9010..37dafe49e 100644 --- a/dist/types/application/header.d.ts +++ b/dist/types/application/header.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Application from "./application.js"; */ /** diff --git a/dist/types/audio/audio.d.ts b/dist/types/audio/audio.d.ts index 8185b2284..65d61cf24 100644 --- a/dist/types/audio/audio.d.ts +++ b/dist/types/audio/audio.d.ts @@ -50,7 +50,7 @@ export function disable(): void; * @param {Object} [settings] - custom settings to apply to the request (@link https://developer.mozilla.org/en-US/docs/Web/API/fetch#options) * @returns {number} the amount of asset loaded (always 1 if successfull) */ -export function load(sound: Howl, onloadcb?: Function | undefined, onerrorcb?: Function | undefined, settings?: Object | undefined): number; +export function load(sound: Asset, onloadcb?: Function | undefined, onerrorcb?: Function | undefined, settings?: Object | undefined): number; /** * play the specified sound * @memberof audio @@ -322,3 +322,4 @@ export function unloadAll(): void; * @memberof audio */ export let stopOnAudioError: boolean; +import type { Asset } from "./../loader/loader.js"; diff --git a/dist/types/geometries/ellipse.d.ts b/dist/types/geometries/ellipse.d.ts index 96459fdb8..7772677fd 100644 --- a/dist/types/geometries/ellipse.d.ts +++ b/dist/types/geometries/ellipse.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; * @import ObservableVector2d from "./../math/observable_vector2.js"; * @import Matrix2d from "./../math/matrix2.js"; diff --git a/dist/types/geometries/line.d.ts b/dist/types/geometries/line.d.ts index 70105d77f..3c55b28f3 100644 --- a/dist/types/geometries/line.d.ts +++ b/dist/types/geometries/line.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2d.js"; */ /** diff --git a/dist/types/geometries/path2d.d.ts b/dist/types/geometries/path2d.d.ts index d564be380..42136af21 100644 --- a/dist/types/geometries/path2d.d.ts +++ b/dist/types/geometries/path2d.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Point from "./point.js"; */ /** diff --git a/dist/types/geometries/point.d.ts b/dist/types/geometries/point.d.ts index edf459bd6..243037e17 100644 --- a/dist/types/geometries/point.d.ts +++ b/dist/types/geometries/point.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; **/ /** diff --git a/dist/types/geometries/poly.d.ts b/dist/types/geometries/poly.d.ts index e553cdd14..e4586afcb 100644 --- a/dist/types/geometries/poly.d.ts +++ b/dist/types/geometries/poly.d.ts @@ -1,5 +1,9 @@ /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; + * @import ObservableVector2d from "./../math/observable_vector2.js"; + * @import Matrix2d from "./../math/matrix2.js"; + * @import Bounds from "./../physics/bounds.js"; */ /** * @classdesc @@ -91,7 +95,7 @@ export default class Polygon { * @param {Vector2d|ObservableVector2d} [v] - an optional point to rotate around * @returns {Polygon} Reference to this object for method chaining */ - rotate(angle: number, v?: Vector2d | ObservableVector2d): Polygon; + rotate(angle: number, v?: Vector2d | ObservableVector2d | undefined): Polygon; /** * Scale this Polygon by the given scalar. * @param {number} x @@ -177,3 +181,6 @@ export default class Polygon { clone(): Polygon; } import type Vector2d from "./../math/vector2.js"; +import type Matrix2d from "./../math/matrix2.js"; +import type ObservableVector2d from "./../math/observable_vector2.js"; +import type Bounds from "./../physics/bounds.js"; diff --git a/dist/types/geometries/rectangle.d.ts b/dist/types/geometries/rectangle.d.ts index 9db35b492..46c79ce16 100644 --- a/dist/types/geometries/rectangle.d.ts +++ b/dist/types/geometries/rectangle.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; **/ /** diff --git a/dist/types/loader/loader.d.ts b/dist/types/loader/loader.d.ts index f53e7dfb8..542af7ff9 100644 --- a/dist/types/loader/loader.d.ts +++ b/dist/types/loader/loader.d.ts @@ -43,7 +43,6 @@ export function setBaseURL(type: string, url?: string | undefined): void; /** * an asset definition to be used with the loader * @typedef {object} Asset - * @export * @memberof loader * @property {string} name - name of the asset * @property {string} type - the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx"|"tmj"|"tsx"|"tsj"|"fontface"|"video") diff --git a/dist/types/math/matrix2.d.ts b/dist/types/math/matrix2.d.ts index 51f89ecb6..8fd5e7521 100644 --- a/dist/types/math/matrix2.d.ts +++ b/dist/types/math/matrix2.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Matrix3d from "./matrix3.js"; * @import Vector2d from "./vector2.js"; * @import Vector3d from "./vector3.js"; diff --git a/dist/types/math/matrix3.d.ts b/dist/types/math/matrix3.d.ts index e7d836882..e1324c259 100644 --- a/dist/types/math/matrix3.d.ts +++ b/dist/types/math/matrix3.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Matrix2d from "./matrix2.js"; * @import Vector2d from "./vector2.js"; * @import Vector3d from "./vector3.js"; diff --git a/dist/types/math/observable_vector3.d.ts b/dist/types/math/observable_vector3.d.ts index 79a07fc7c..285b0bec2 100644 --- a/dist/types/math/observable_vector3.d.ts +++ b/dist/types/math/observable_vector3.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import ObservableVector2d from "./observable_vector2.js"; * @import Vector2d from "./vector2.js"; */ diff --git a/dist/types/math/vector3.d.ts b/dist/types/math/vector3.d.ts index 0b59d8263..5ef3efca4 100644 --- a/dist/types/math/vector3.d.ts +++ b/dist/types/math/vector3.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Vector2d from "./vector2.js"; */ /** diff --git a/dist/types/physics/body.d.ts b/dist/types/physics/body.d.ts index 6188f3a42..0b60e409f 100644 --- a/dist/types/physics/body.d.ts +++ b/dist/types/physics/body.d.ts @@ -19,7 +19,7 @@ export default class Body { * @param {Rect|Rect[]|Polygon|Polygon[]|Line|Line[]|Ellipse|Ellipse[]|Point|Point[]|Bounds|Bounds[]|object} [shapes] - a initial shape, list of shapes, or JSON object defining the body * @param {Function} [onBodyUpdate] - callback for when the body is updated (e.g. add/remove shapes) */ - constructor(ancestor: Renderable | Container | Entity | Sprite | NineSliceSprite, shapes?: object | Polygon | Line | Point | Rect | Bounds | Point[] | Ellipse | Polygon[] | Line[] | Ellipse[] | Rect[] | Bounds[] | undefined, onBodyUpdate?: Function | undefined); + constructor(ancestor: Renderable | Container | Entity | Sprite | NineSliceSprite, shapes?: object | Point | Rect | Polygon | Bounds | Point[] | Line | Ellipse | Polygon[] | Line[] | Ellipse[] | Rect[] | Bounds[] | undefined, onBodyUpdate?: Function | undefined); /** * a reference to the parent object that contains this body, * or undefined if it has not been added to one. diff --git a/dist/types/renderable/colorlayer.d.ts b/dist/types/renderable/colorlayer.d.ts index eaced674d..0c9a6793a 100644 --- a/dist/types/renderable/colorlayer.d.ts +++ b/dist/types/renderable/colorlayer.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js"; * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js"; diff --git a/dist/types/renderable/container.d.ts b/dist/types/renderable/container.d.ts index c5112aeec..0f317d1c5 100644 --- a/dist/types/renderable/container.d.ts +++ b/dist/types/renderable/container.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import Entity from "./entity/entity.js"; * @import Sprite from "./sprite.js"; diff --git a/dist/types/renderable/dragndrop.d.ts b/dist/types/renderable/dragndrop.d.ts index 70a050e3f..9dd557cc9 100644 --- a/dist/types/renderable/dragndrop.d.ts +++ b/dist/types/renderable/dragndrop.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import { Draggable } from "./draggable.js"; */ /** diff --git a/dist/types/renderable/imagelayer.d.ts b/dist/types/renderable/imagelayer.d.ts index 7c8805d4a..da4e842da 100644 --- a/dist/types/renderable/imagelayer.d.ts +++ b/dist/types/renderable/imagelayer.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; */ /** diff --git a/dist/types/renderable/nineslicesprite.d.ts b/dist/types/renderable/nineslicesprite.d.ts index 50ad2ba10..607e8bf2b 100644 --- a/dist/types/renderable/nineslicesprite.d.ts +++ b/dist/types/renderable/nineslicesprite.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Color from "./../math/color.js"; * @import { TextureAtlas } from "./../video/texture/atlas.js"; */ diff --git a/dist/types/renderable/renderable.d.ts b/dist/types/renderable/renderable.d.ts index 9ad2f7ce5..400b5a4b0 100644 --- a/dist/types/renderable/renderable.d.ts +++ b/dist/types/renderable/renderable.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; * @import Vector3d from "./../math/vector3.js"; * @import Matrix2d from "./../math/matrix2.js"; @@ -266,11 +267,6 @@ export default class Renderable extends Rect { * @type {boolean} */ public get isFlippedY(): boolean; - /** - * returns the bounding box for this renderable - * @returns {Bounds} bounding box Rectangle object - */ - getBounds(): Bounds; /** * get the renderable alpha channel value
* @returns {number} current opacity value between 0 and 1 @@ -448,9 +444,9 @@ import type Ellipse from "./../geometries/ellipse.js"; import GLShader from "./../video/webgl/glshader.js"; import type Application from "./../application/application.js"; import Color from "./../math/color.js"; -import Bounds from "./../physics/bounds.js"; import type Vector2d from "./../math/vector2.js"; import type Vector3d from "./../math/vector3.js"; +import Bounds from "./../physics/bounds.js"; import type CanvasRenderer from "./../video/canvas/canvas_renderer.js"; import type WebGLRenderer from "./../video/webgl/webgl_renderer.js"; import type ResponseObject from "./../physics/response.js"; diff --git a/dist/types/renderable/sprite.d.ts b/dist/types/renderable/sprite.d.ts index e21ac9fd7..a2ac4a9ee 100644 --- a/dist/types/renderable/sprite.d.ts +++ b/dist/types/renderable/sprite.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Vector2d from "./../math/vector2.js"; * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js"; * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js"; diff --git a/dist/types/renderable/trigger.d.ts b/dist/types/renderable/trigger.d.ts index ea10cbba8..091334ddd 100644 --- a/dist/types/renderable/trigger.d.ts +++ b/dist/types/renderable/trigger.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import ResponseObject from "./../physics/response.js"; */ /** diff --git a/dist/types/video/canvas/canvas_renderer.d.ts b/dist/types/video/canvas/canvas_renderer.d.ts index a4b271412..53eb8ddaa 100644 --- a/dist/types/video/canvas/canvas_renderer.d.ts +++ b/dist/types/video/canvas/canvas_renderer.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import Rect from "./../../geometries/rectangle.js"; * @import RoundRect from "./../../geometries/roundrect.js"; * @import Polygon from "./../../geometries/poly.js"; @@ -139,12 +140,12 @@ export default class CanvasRenderer extends Renderer { * @param {Rect|RoundRect|Polygon|Line|Ellipse} [shape] - a shape object to stroke * @param {boolean} [fill=false] - fill the shape with the current color if true */ - stroke(shape?: Polygon | Line | Rect | Ellipse | RoundRect | undefined, fill?: boolean | undefined): void; + stroke(shape?: Rect | Polygon | Line | Ellipse | RoundRect | undefined, fill?: boolean | undefined): void; /** * fill the given shape or the current defined path * @param {Rect|RoundRect|Polygon|Line|Ellipse} [shape] - a shape object to fill */ - fill(shape?: Polygon | Line | Rect | Ellipse | RoundRect | undefined): void; + fill(shape?: Rect | Polygon | Line | Ellipse | RoundRect | undefined): void; /** * 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 */ @@ -392,9 +393,9 @@ export default class CanvasRenderer extends Renderer { import Renderer from "./../renderer.js"; import TextureCache from "./../texture/cache.js"; import Color from "./../../math/color.js"; +import type Rect from "./../../geometries/rectangle.js"; import type Polygon from "./../../geometries/poly.js"; import type Line from "./../../geometries/line.js"; -import type Rect from "./../../geometries/rectangle.js"; import type Ellipse from "./../../geometries/ellipse.js"; import type RoundRect from "./../../geometries/roundrect.js"; import type Matrix2d from "./../../math/matrix2.js"; diff --git a/dist/types/video/renderer.d.ts b/dist/types/video/renderer.d.ts index 0ed9bae34..277056390 100644 --- a/dist/types/video/renderer.d.ts +++ b/dist/types/video/renderer.d.ts @@ -175,7 +175,7 @@ export default class Renderer { * @param {Rect|RoundRect|Polygon|Line|Ellipse} [mask] - the shape defining the mask to be applied * @param {boolean} [invert=false] - either the given shape should define what is visible (default) or the opposite */ - setMask(mask?: Polygon | Line | Rect | Ellipse | RoundRect | undefined, invert?: boolean | undefined): void; + setMask(mask?: Rect | Polygon | Line | Ellipse | RoundRect | undefined, invert?: boolean | undefined): void; /** * disable (remove) the rendering mask set through setMask. * @see Renderer#setMask diff --git a/dist/types/video/texture/atlas.d.ts b/dist/types/video/texture/atlas.d.ts index 23162d824..d1c0814d0 100644 --- a/dist/types/video/texture/atlas.d.ts +++ b/dist/types/video/texture/atlas.d.ts @@ -1,4 +1,5 @@ /** + * additional import for TypeScript * @import NineSliceSprite from "./../../renderable/nineslicesprite.js"; */ /** diff --git a/dist/types/video/webgl/compositors/compositor.d.ts b/dist/types/video/webgl/compositors/compositor.d.ts index 4ff8a59c9..ebbfdfb12 100644 --- a/dist/types/video/webgl/compositors/compositor.d.ts +++ b/dist/types/video/webgl/compositors/compositor.d.ts @@ -1,3 +1,8 @@ +/** + * additional import for TypeScript + * @import WebGLRenderer from "./../webgl_renderer.js"; + * @import Matrix3d from "./../../../math/matrix3.js"; + */ /** * @classdesc * A base Compositor object. @@ -116,3 +121,5 @@ export default class Compositor { } import GLShader from "../glshader.js"; import VertexArrayBuffer from "../buffer/vertex.js"; +import type Matrix3d from "./../../../math/matrix3.js"; +import type WebGLRenderer from "./../webgl_renderer.js"; diff --git a/dist/types/video/webgl/compositors/primitive_compositor.d.ts b/dist/types/video/webgl/compositors/primitive_compositor.d.ts index 1916ecd3c..e61491e55 100644 --- a/dist/types/video/webgl/compositors/primitive_compositor.d.ts +++ b/dist/types/video/webgl/compositors/primitive_compositor.d.ts @@ -1,3 +1,7 @@ +/** + * additional import for TypeScript + * @import Point from "./../../../geometries/point.js"; + */ /** * @classdesc * A WebGL Compositor object. This class handles all of the WebGL state
@@ -19,3 +23,4 @@ export default class PrimitiveCompositor extends Compositor { drawVertices(mode: GLenum, verts: Point[], vertexCount?: number | undefined): void; } import Compositor from "./compositor.js"; +import type Point from "./../../../geometries/point.js"; diff --git a/dist/types/video/webgl/compositors/quad_compositor.d.ts b/dist/types/video/webgl/compositors/quad_compositor.d.ts index 09a56a858..7a7eaef41 100644 --- a/dist/types/video/webgl/compositors/quad_compositor.d.ts +++ b/dist/types/video/webgl/compositors/quad_compositor.d.ts @@ -70,3 +70,4 @@ export default class QuadCompositor extends Compositor { addQuad(texture: TextureAtlas, x: number, y: number, w: number, h: number, u0: number, v0: number, u1: number, v1: number, tint: number, reupload?: boolean): void; } import Compositor from "./compositor.js"; +import type { TextureAtlas } from "./../../texture/atlas.js"; diff --git a/dist/types/video/webgl/webgl_renderer.d.ts b/dist/types/video/webgl/webgl_renderer.d.ts index 1cf71cda2..c23ab96c7 100644 --- a/dist/types/video/webgl/webgl_renderer.d.ts +++ b/dist/types/video/webgl/webgl_renderer.d.ts @@ -239,12 +239,12 @@ export default class WebGLRenderer extends Renderer { * @param {Rect|RoundRect|Polygon|Line|Ellipse} [shape] - a shape object to stroke * @param {boolean} [fill=false] - fill the shape with the current color if true */ - stroke(shape?: Polygon | Line | Rect | Ellipse | RoundRect | undefined, fill?: boolean | undefined): void; + stroke(shape?: Rect | Polygon | Line | Ellipse | RoundRect | undefined, fill?: boolean | undefined): void; /** * fill the given shape or the current defined path * @param {Rect|RoundRect|Polygon|Line|Ellipse} [shape] - a shape object to fill */ - fill(shape?: Polygon | Line | Rect | Ellipse | RoundRect | undefined): void; + fill(shape?: Rect | Polygon | Line | Ellipse | RoundRect | undefined): void; /** * 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 */ @@ -494,8 +494,8 @@ import type Compositor from "./compositors/compositor.js"; import TextureCache from "./../texture/cache.js"; import { TextureAtlas } from "./../texture/atlas.js"; import Color from "./../../math/color.js"; +import type Rect from "./../../geometries/rectangle.js"; import type Polygon from "./../../geometries/poly.js"; import type Line from "./../../geometries/line.js"; -import type Rect from "./../../geometries/rectangle.js"; import type Ellipse from "./../../geometries/ellipse.js"; import type RoundRect from "./../../geometries/roundrect.js"; diff --git a/docs/docs/Class-Index.html b/docs/docs/Class-Index.html index 727117a0d..dc475a3da 100644 --- a/docs/docs/Class-Index.html +++ b/docs/docs/Class-Index.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/index.html b/docs/docs/index.html index 71a931323..05ae23b12 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 c8d96fe4f..4802fe18f 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-NrPNJW6tIKZACXynLEJRf","name":"","type":"RootDoc","members":[{"id":"G73c6TLYJ7FNsr_ua7vJe","name":"audio","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"0sfv-U2OYd5gwvLMcOWgw","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":"WTarVi_HUW1196cPJxhy2","name":"disable","brief":"","type":"FunctionDoc","description":"

disable audio output

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qzauw9TBxd9N0TplpAzwc","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":"hjMJNQcwydnrWez866xOu","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":"0gBLyITtfXEbrfJr2MLuV","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":"XFVIFAJIIB0FCU9kAnSRb","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":"zMsuI5eWJKs3tUbL-jLGI","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":"PzLqqEmQtY9DK3KeLVsH-","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":"Mlwc_5UeofxOcVjX6_GZS","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":"EmBuU3dwEE9c2wGzwuyTa","name":"load","brief":"","type":"FunctionDoc","description":"

Load an audio file

","params":[{"identifier":"sound","optional":false,"dataType":{"tokens":[{"value":"Asset","kind":"canonical"},{"value":"Asset","kind":"canonical"}],"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":"kC-mw8Aw1OCUVvkpP0Qiw","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":"jIT3EPUy-q5VzsTTB71ik","name":"muteAll","brief":"","type":"FunctionDoc","description":"

mute all audio

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j4ugJvahXeyAaEBUduHPd","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":"aanuGnpX2Hht1dChWiMQM","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":"Tb4U6VF9U63avAuX7Yrcw","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":"QXScU9MgVi2_NJxrg7YBW","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":"KgqnxM9nBJ877HFcQS0X3","name":"pauseTrack","brief":"","examples":[{"caption":"","code":"me.audio.pauseTrack();"}],"type":"FunctionDoc","description":"

pause the current audio track

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uRtDJewQ5BnOtnoJdw5DF","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":"NrvXeXoOQ0sr16c9H76Nu","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":"PdRKe7KllqA1JkDFr07cE","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":"v6FgJ-PpVYjEOIWCzEgrR","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":"WggFaX6MGp8dOBwE7NQBe","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":"2yuU4u8KYS3k11NwJmjdI","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":"4Gfs2_gRAmj6h_FJyqMHv","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":"o37UtKUHr2fuEu-NiCpPz","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":"yBIN7Gde8vysEel5a0YRU","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":"6A_k3O1Jwv2yhkWQ4-B8y","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":"GC5PlSRcvcrjoB9SLLxQA","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":"MgBltGPsyvv6EJKSCOuaI","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":"vUAgCMCUQylTqScdjHw5C","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.audio.unloadAll();"}],"type":"FunctionDoc","description":"

unload all audio to free memory

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qmVwIjljbFldkfS4xw8w5","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":"MMLEss6Vdw8xoY4OHrdYB","name":"unmuteAll","brief":"","type":"FunctionDoc","description":"

unmute all audio

","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"0BvA3QnfF_VmRSqg2KtYv","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":"J3YSfKvOwSIBSPk1LHCj_","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":"RE0jl3H72n7mARysiF43k","name":"ACTION_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

e.g. doors

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

all of the above (including user-defined types)

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

collectable objects

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

enemies objects

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

to disable collision check

"},{"id":"QkUIzbUk1CHwqS5tJT67g","name":"NO_OBJECT","brief":"

to disable collision check

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

non playable characters

"},{"id":"4wSULlNVPpMd_9HqmEl-x","name":"PLAYER_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

playbable characters

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

e.g. missiles

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

user-defined collision types (see example)

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

e.g. walls; for map collision shapes

"}]},{"id":"XyD3v3ZjtqukhD4f3dKEn","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":"-fPmMGyLW9dhDILGECxZY","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":"pgWqEw8mn4a5Vs4UwYQAj","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":"rgS3nGlWn6S-d75V7y98B","name":"device","brief":"","defaultValue":"false","type":"NSDoc","description":"

device type and capabilities

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

The device platform type

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

true if the device is an Android platform

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

true if the device is an Android 2.x platform

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

true if the device is a BlackBerry platform

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

true if the device is running on ChromeOS.

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

true if running under Ejecta

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

true if the device is an iOS platform

"},{"id":"xo8OVsWf-1b3_1xfph8s_","name":"isMobile","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if a mobile device

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

true if running under Wechat

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

true if the device is a Kindle platform

"},{"id":"EOr3-EAXVoW-uLQtE8QDp","name":"linux","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

true if the device is a Linux platform

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

true if running under node.js

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

the user agent string for the current device

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

true if running as a standalone web app

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

true if the device is a Windows Phone platform

"}]},{"id":"XeRG0KGhAGSXOYCBYiDll","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":"IkwGg1hYbJ7NpKMYA3UrE","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":"6LeDmBTaFYRnc3QjoCJiD","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":"HK7VJrSgTeXxno_4E7hOo","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":"ffh--TW94kfJj0SRjjnkx","name":"autoFocus","brief":"","defaultValue":"true","type":"PropertyDoc","description":"

Specify whether to automatically bring the window to the front

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YIxck0VsZF5y9SrX0tZTQ","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":"a5PR3bFuiN4KlfRBohiJ5","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":"bjeYf-XQCO_Hj5x4fqWbL","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":"Vo1WbVSp908DQKA-ryv1V","name":"hasAccelerometer","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

Browser accelerometer capabilities

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

Browser device orientation

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

Browser full screen support

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

Device HTML5Audio Support

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

Browser pointerlock api support

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

Device Video Support

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

Device WebAudio Support

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v8I8h-s7JFbwWKyVTFnFG","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":"D704TWWLo61051LI1Gs1X","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":"1LBtAJUlz80IrZrrHb10J","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":"AX_sftOYulnROk26MeHfa","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":"CIj4WxSvaWPhB6zD8OWV5","name":"nativeBase64","brief":"","readonly":true,"type":"PropertyDoc","description":"

Browser Base64 decoding capability

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

equals to true if the device browser supports OffScreenCanvas.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xu0jrJ5MHwaL8qOSJvEue","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":"hVX9ykKIfIJV5X6VuzU93","name":"platform","brief":"","readonly":true,"type":"PropertyDoc","description":"

the device platform type

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

True if the browser supports Pointer Events

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"09mjoXFvoKj_tbJverZmU","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":"MPZxfpQyyka0g_I9cNOZQ","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":"MiZMtk0CP43p8CZpgQyR1","name":"sound","brief":"","readonly":true,"type":"PropertyDoc","description":"

Returns true if the browser/device has audio capabilities.

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iUOI1tb3ZOch0JuOdiXNt","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":"qxhi1HEhmd9z5HTRkALIM","name":"touch","brief":"","readonly":true,"type":"PropertyDoc","description":"

Touch capabilities (support either Touch or Pointer events)

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

True if the browser supports Touch Events

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

W3C standard wheel events

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VyU5XQIQr6jhmUNtUj7lV","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":"UZtcQS_w9v-5wi3HOJjp-","name":"exitFullscreen","brief":"","type":"FunctionDoc","description":"

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

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cvSKkLMgKwm_Y6mSnkkV0","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":"1aVSBSoKBsQ3e2VXbtz_1","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":"B2-lex4lAVWD_X03GmQ_V","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":"IllDUSNQlALAkLyDsP8iF","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":"qYbQ0h2tJvPQow2zOjShg","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":"FsIml2Ev7cnHRbm6ygK1I","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":"uQeNreU4w8VXr5RW5YY0p","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":"JjDrnmXRdo3A9E8UlfdZV","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":"q53STREY_pT3oFXwoWQ4Y","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":"ynK6_sJWVmKZc6WbiUgZT","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":"Pc1qDRM23s-WJEKETRXI2","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":"Z4FEDvRVUL4vPFpnycltm","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":"RiYILptwv5Kn9kBOgeBbn","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":"TlDWh_rFkXZc-ubE9Iosm","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":"uPZQSSrnjISJ7gFroafDC","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":"PaoV1ZV-PN3FC6hWqEwxZ","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":"omiIq9Mu4XXk1I_kMrX5U","name":"unwatchAccelerometer","brief":"","type":"FunctionDoc","description":"

unwatch Accelerometor event

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

unwatch Device orientation event

","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G0j9TkbU6KTsatXorNk1B","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":"mgVeObsuLWYbdlN79WZBi","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":"sZkYpoNOttynEWGqXBaeT","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":"gJtnqay32TqsNVy7LaAG5","name":"event","brief":"","type":"NSDoc","description":"

an event system based on nodeJS EventEmitter interface

","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"GZHKEfbufQqcfIah1h2Ce","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":"RVB8SYML7AQ7Jf96RjVog","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":"39_ZxrcALeXWn11xIbYK_","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":"diG5SYglWfurRjT_7iXs5","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":"CT9GmafsmfRfZbNoji7HZ","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":"XoqhpCqPZRTd9w_q9gqzl","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":"G8d8hrE1bO0oFfcguzlji","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":"2sP48PW3PW81aHYFJlS_E","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":"eaC0NkK81wD57xSqZd-5e","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":"4wlY8qFKMbFc50HsbOoZ0","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":"M6nkAsd5ZqHbeJJShPKtq","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":"Jny8jZM33RgrgFawrBAw1","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":"7kNHmBQro3sPIsPCaoNEj","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":"GWYtZs7MDyBP0VDBBUsw0","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":"Hjqwwm2Dbb1wzcA7jO1wJ","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":"MsNoqgS09xHy6-23HxbEs","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":"MSys-Ic18aDCpKYpBVsg3","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":"R47J9TMvxwa-YphZZCnPU","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":"aoXy3JRfw0PLzk0odyVF4","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":"uxdS_kRHrj2tPODWyFC4L","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":"NYHoDwhzhaxooYTGmCP3L","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":"t5SZ5gQrosDeukGreimjM","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":"tkBR1PsKsq5xFDaHDNfkq","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":"asM6tngRe-f2Nk7XhhrKE","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":"UQqRY_-P7GIE9i2tLR6oy","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":"HeVXX1RJD8gjXdytZHjku","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":"mKFFpfrTwPT5k184Qjuf7","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":"CggsN3Jdmat97XDvvNb2W","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":"XR1KlsC5T7GbXI_cDdQiP","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":"AVxi6Ic8quQ7T3dssIvOO","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":"H5b7XJbr_xdq0hSzcqWaf","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":"blWeikZJach8SHYfgLsuF","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":"NOzmSdoiX4SzF5Y9ByjDM","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":"9cnKSu-jqY74cD6Hj6xAK","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":"KEiP5qhYUMatJJjI-RjML","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":"EEMrAWoNrGxDAICGlULjP","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":"-kF5MmMHnc60NeT1_gQE2","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":"h8MBB1vlfZAbO0Xn7m_5Z","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":"dSYNZA77A0ujMZvSMcKlw","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":"ZgMpz3ALUlJ4O-jMpR3cM","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":"ptbTIDb9rgwgLmEvvoE_N","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":"aTo6yuTyRtt_eQPlVEqBp","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":"gCoVPoxPZeiQ2N1gBFNFF","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":"9piePdVz3qn_D20SBvVeM","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":"GbTedxZ1XHNdgPzL3iU8P","name":"input","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"AbiOzteUVV7EZA5sej6rn","name":"GAMEPAD","brief":"","access":"public","type":"NSDoc","description":"

Namespace for standard gamepad mapping constants

","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"_M4N2tPGZMKYAzrLqzetY","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":"AbNka5tSeDjQp-Zx_7Agi","name":"A","brief":"","defaultValue":"65","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dl0s9cmK8hpRUQ18nzwYO","name":"ADD","brief":"","defaultValue":"107","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rtLZ63IL74dluC4tEgwyG","name":"ALT","brief":"","defaultValue":"18","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6CWvuRU9F725JojyBIB7z","name":"B","brief":"","defaultValue":"66","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v6KT6HoMKjcQuCuha00BC","name":"BACK_SLASH","brief":"","defaultValue":"220","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CTxCEt5nvowNK_QTZpRjV","name":"C","brief":"","defaultValue":"67","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NZL_PMrKtiEFt3y_FGOg6","name":"CAPS_LOCK","brief":"","defaultValue":"20","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GCQfdq4gYRNE6YUgzSDjT","name":"CLOSE_BRACKET","brief":"","defaultValue":"221","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pQo_b_KNPNcH7CuGxMkbN","name":"COMMA","brief":"","defaultValue":"188","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jiLWI9BaA18tNSchLEPqo","name":"CTRL","brief":"","defaultValue":"17","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tMjavNU92cDhLC9yWaWGU","name":"D","brief":"","defaultValue":"68","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qO57_HKzjPmB7Z6RC8_n-","name":"DECIMAL","brief":"","defaultValue":"110","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9Q0a5Yyur32U5Vu8IvGJT","name":"DELETE","brief":"","defaultValue":"46","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DKGB2Zg_DXxbA4Y81QQ51","name":"DIVIDE","brief":"","defaultValue":"111","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"npKiVF0nQzh0E5APzSECE","name":"DOWN","brief":"","defaultValue":"40","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ta1sOeLfkS2PAFV0mCjea","name":"E","brief":"","defaultValue":"69","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8pzsct2TfUHBq9MH5-NgK","name":"END","brief":"","defaultValue":"35","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2JGGQATOdGEaR_FQJxDGK","name":"ENTER","brief":"","defaultValue":"13","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"taB_4X1W7i0YFVGIpzTp1","name":"ESC","brief":"","defaultValue":"27","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aCu6Xmhqqob5714kbCxnC","name":"F","brief":"","defaultValue":"70","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nnQ1iIKWTk3IHnCXrziKV","name":"F1","brief":"","defaultValue":"112","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9WFqU-8gR_mXfr7LRaMxl","name":"F10","brief":"","defaultValue":"121","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S_RtU2r_6qM67P6tAQO90","name":"F11","brief":"","defaultValue":"122","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TdvDb5VCrP3RLpJ03Xzmt","name":"F12","brief":"","defaultValue":"123","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GvQbWJ8P24HLs2nOJz2ux","name":"F2","brief":"","defaultValue":"113","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GKVnJuXJ5T99AphYrSAu1","name":"F3","brief":"","defaultValue":"114","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wo5RaIDBICJgLSo9i7moS","name":"F4","brief":"","defaultValue":"115","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GT-PhBvCckXkcXJSruwJE","name":"F5","brief":"","defaultValue":"116","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ez8bzukdqk_w8WTuRJ-3j","name":"F6","brief":"","defaultValue":"117","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5EW3fFb6LGZUgofMEFdoi","name":"F7","brief":"","defaultValue":"118","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rr1qIwMGZQv__OsEgh1lG","name":"F8","brief":"","defaultValue":"119","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ri9yY0p2SPSR8zrawsPwb","name":"F9","brief":"","defaultValue":"120","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VUpXGM6OVIWUIDx2SFUBk","name":"FORWAND_SLASH","brief":"","defaultValue":"191","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W66OiiDaYljLJQXBvwRza","name":"G","brief":"","defaultValue":"71","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xeeA7rxTjMxCldeLqLfvt","name":"GRAVE_ACCENT","brief":"","defaultValue":"192","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yREGMwEYfOhnE0e-k7ZSt","name":"H","brief":"","defaultValue":"72","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dtnVVKBnxUHRD8QNVJDSk","name":"HOME","brief":"","defaultValue":"36","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nATU-LnxjyttZKySLseVw","name":"I","brief":"","defaultValue":"73","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4kKGxhMnvYI-rmWVj9b5D","name":"INSERT","brief":"","defaultValue":"45","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VNjfE67hr-YP5CIej0yyP","name":"J","brief":"","defaultValue":"74","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DquBBEdQF0yOs5KRuGhHv","name":"K","brief":"","defaultValue":"75","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7NeNfeXkxQ7ogKiTDiDvO","name":"L","brief":"","defaultValue":"76","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EgZajRWgIi8mrCX1LVcnm","name":"LEFT","brief":"","defaultValue":"37","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uwjBM1lDU4N1X2V0tdNft","name":"M","brief":"","defaultValue":"77","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4XrKWbFwvT82jvU9cPgLU","name":"MINUS","brief":"","defaultValue":"189","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ufps-1KjKcQxBGxtzwhqV","name":"MULTIPLY","brief":"","defaultValue":"106","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"09xDZEO7suCjjwHeCw_ix","name":"N","brief":"","defaultValue":"78","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HWsDF8XszBHW72mN1h7y4","name":"NUM_LOCK","brief":"","defaultValue":"144","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D0mK5NDHGqNVjcSTOmeYm","name":"NUM0","brief":"","defaultValue":"48","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RwuLfUK6sxBckwEtynZk_","name":"NUM1","brief":"","defaultValue":"49","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kLZRnojjASozR18dgk1lu","name":"NUM2","brief":"","defaultValue":"50","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6oy1WTEUqSYj0cwpxhNbA","name":"NUM3","brief":"","defaultValue":"51","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8m51sNGoRbeox53pggW_L","name":"NUM4","brief":"","defaultValue":"52","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"63QbfrwB5g-1xvIpJwkH6","name":"NUM5","brief":"","defaultValue":"53","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xz9iHEBvdl_CcbTx8WTNI","name":"NUM6","brief":"","defaultValue":"54","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bkFfQE5NYNjK8aI9TzbD9","name":"NUM7","brief":"","defaultValue":"55","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QAPgj-bp0-fodjKHu7GeW","name":"NUM8","brief":"","defaultValue":"56","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8hcHiQRsgOSFWkenLh98w","name":"NUM9","brief":"","defaultValue":"57","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mf4wt2o1OC0TrnBw_XDee","name":"NUMPAD0","brief":"","defaultValue":"96","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P2EqV6A5ROsMgo4lw8qhu","name":"NUMPAD1","brief":"","defaultValue":"97","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"psKpwjpO8bxwOkKMX73dY","name":"NUMPAD2","brief":"","defaultValue":"98","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CRo5knN3zoMNtycWgpxw7","name":"NUMPAD3","brief":"","defaultValue":"99","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WkB0w9XV3bthTdchoo1v1","name":"NUMPAD4","brief":"","defaultValue":"100","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fNUP5DC_QiFWEGn-9dJwA","name":"NUMPAD5","brief":"","defaultValue":"101","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NYew36PhU55UPMe0hIANw","name":"NUMPAD6","brief":"","defaultValue":"102","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jea7ZVCDgUp34P6DzUPa0","name":"NUMPAD7","brief":"","defaultValue":"103","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oz7kedIc99EIBSECUAfhz","name":"NUMPAD8","brief":"","defaultValue":"104","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n4ES60pza8v5vpL9JGJ4r","name":"NUMPAD9","brief":"","defaultValue":"105","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wyOa4ZKkMkiogNcTCoGfH","name":"O","brief":"","defaultValue":"79","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4PDyxWWJUXY7aUmv2dKyq","name":"OPEN_BRACKET","brief":"","defaultValue":"219","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ndP8kpGwiUeoVAIUqHpca","name":"P","brief":"","defaultValue":"80","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KNnSqqC9RnNmufvr6wlVi","name":"PAGE_DOWN","brief":"","defaultValue":"34","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G8sUtEB83hFTtzzCJLz5G","name":"PAGE_UP","brief":"","defaultValue":"33","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"isIkKJEIwkxhWBexYagBo","name":"PAUSE","brief":"","defaultValue":"19","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a5RZWFAf1T4yO_i56RHLI","name":"PERIOD","brief":"","defaultValue":"190","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6Emx0z9PTKiKIpcgJsZaa","name":"PLUS","brief":"","defaultValue":"187","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LycVJOUX-jOpt2HmAosww","name":"PRINT_SCREEN","brief":"","defaultValue":"42","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2cY7FfgrdH054ftNZ4Vaq","name":"Q","brief":"","defaultValue":"81","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cYvm-LUoCjF63JERbbeyf","name":"R","brief":"","defaultValue":"82","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q6E9YpajlJ84X7NUbKT5G","name":"RIGHT","brief":"","defaultValue":"39","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5rAvhT-TvHFb8qR9Gkj0m","name":"S","brief":"","defaultValue":"83","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7wAIug_yIkOexWxJjdPOc","name":"SCROLL_LOCK","brief":"","defaultValue":"145","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1aoHz20nEYP26NzUetqCJ","name":"SEMICOLON","brief":"","defaultValue":"186","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5XiLKudfHbk_MUBwg9_sk","name":"SHIFT","brief":"","defaultValue":"16","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PGwmfV_-HEBuD39D7b0f6","name":"SINGLE_QUOTE","brief":"","defaultValue":"222","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KoroAycnnzHMUT2YYLmSl","name":"SPACE","brief":"","defaultValue":"32","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3PqarcE6_Khobd_hXjBNQ","name":"SUBSTRACT","brief":"","defaultValue":"109","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9mO39SENCk99Yh6iGQwJr","name":"T","brief":"","defaultValue":"84","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1zQra_M6VEtGHqyEYflq_","name":"TAB","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dflzb3f27klWwUa3IJaBN","name":"TILDE","brief":"","defaultValue":"126","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BmcqmFr37TALJA5rIrWzb","name":"U","brief":"","defaultValue":"85","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CfiY7vWYgIHEtC2kNzdB5","name":"UP","brief":"","defaultValue":"38","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZoL-GMuOMJnmKJ3-G8QRv","name":"V","brief":"","defaultValue":"86","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PCBema4cghIqDoqTB9L7o","name":"W","brief":"","defaultValue":"87","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"97FLNKVNXazBjkUOJRA7D","name":"WINDOW_KEY","brief":"","defaultValue":"91","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L4S9jgGHzHbNrW9hmyVyk","name":"X","brief":"","defaultValue":"88","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BWaQ3tassME8nInUvS7y_","name":"Y","brief":"","defaultValue":"89","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zv3BYH4qnr-NE_hnjf7LQ","name":"Z","brief":"","defaultValue":"90","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"H4OpWsqf08DQEkRTMb6Pr","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":"NTxamQwqVwvfcEVP8tOPC","name":"locked","brief":"","access":"public","defaultValue":"false","type":"PropertyDoc","description":"

      indicates if the pointer is currently locked

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

      Pointer information (current position and size)

      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-fOKnWKeeci-hG51W1yZu","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":"6h0Kk1lZvOqL8IfvemCyC","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":"GLRIm71Jg3I6LcPH1ny5e","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":"XmPD3lNdFjBWxBG1LQOz_","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":"AUQRfGIK3Q7foGDIjTYXf","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":"iU14eKxfOBLi1iWzwcFxP","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":"26d_lt4pXh_Zp3lSeaOs2","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":"mAWJCDVzR2DsED96CO0je","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":"osNRE0IB-jVAwnhRpAdt8","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":"wwlNN1QJOdts_6yVQDERh","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":"Qo3ODyO0jzIkDILcqx32W","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":"uyIXi0-9ELsON0PgFyeFr","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":"sphzSu6_UrYZlzoQBbxzN","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":"YW_KWbPDpwhMExlpS5rjV","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":"9Tip10oCH5btht5lW5PgG","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":"Q3PwG9J0Qmz3duQhOAJL3","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":"xTGQVu9bCrldVH9u2AORq","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":"oDbMDK5Zp-XzB57xzdYit","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":"5X3UIZ7pHw43xfEbk6eHq","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":"qFM9ImK5DB4qHkb86GZIR","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":"shrMZZdTwV-yA6bjzyEjR","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":"nwcAGe-eSF-5V9M10LXbL","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":"_o-v_e9j2rJEzYHe1Ru61","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":"5m9pVhHh10EcJVnhe3BhD","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":"BeQlI-bpP3gQ_o7O3DF3o","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":"FqZ4XEvl82iQrNdk4BMDl","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":"dE3BLQJ_wuUaD-QhWr8aD","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":"7RIh-fOAzyokyA2aDLqW3","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":"2sp3nkYunvjiCV8hL3-1W","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":"b1sJBDcTt0SyDNceBJlv2","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":"CDhhaqi3EBC7uOYEiAIW7","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":"jmF39J8tzX7xjNip9fU0Y","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":"KDYqm-oft_9IcjtoEzl8-","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":"Y55sCwdg4CVfrATTIWRuq","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":"PR1ttQj1pNxQksCHlttUX","name":"loader","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

        a small class to manage loading of stuff and manage resources

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"YU1u86vPC7UyXAw-3rhNZ","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/\"}"}],"see":["loader.preload","loader.load"],"type":"TypedefDoc","description":"

        an asset definition to be used with the loader

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"8SRoMztf5MJX1kIyKDrQS","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":"yUA5pKM7bXzwZqoUdDB_8","name":"data","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

        TMX data if not provided through a src url

        "},{"id":"1eO2mQZYrBfHZEXSMtR7t","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":"deLsb1_x4jOjxpl1dpOVY","name":"name","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

        name of the asset

        "},{"id":"KJ0EMR1CW7WLaFUoqihwb","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":"-tnxOHpKSxE6s3or8AMUW","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":"7PR65DbtNXvObKArL9_GJ","name":"type","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

        the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx&qu..."}]},{"id":"SeW4LUeui1DPS5uLOfYxk","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":"iCjoPgdM9sUXGcu568b8U","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":"o08Uv7ODIOaokFx41UbtE","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":"oLCvhi4G25TKz55K4ELav","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":"C5NsfnWt0PMohjL3Ko4B0","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":"jBJAh4W_Cad98bzBD8689","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":"bLTnICdOVIfrIzHQ6TVpP","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":"-o1Q2r1MQCsUtivOeXxk7","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":"qpqKHPRYbPRLkakFl4RC5","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":"r-nISPVSFiUx0rk5TMzOY","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":"34_o67aBV9HD7YEUpQ85g","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":"lm-FYIC1sXfYQuaol44aU","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":"Asset","kind":"canonical"},{"value":"Asset","kind":"canonical"}],"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":"L_bJ7vHHb8V5srMFtMhzm","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":"Asset","kind":"canonical"}],"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":"Du1RnilspN6xooy3RttF7","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":"HoBj07QjebbcCEcrk6Ax2","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":"VPQYwlxGH9bsoT1DY1SHT","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":"eWG7idmH916Wb8PYPAkOg","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":["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":"v5_Qwy0JftrUVdbXL0M6I","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":"Asset","kind":"canonical"},{"value":"Asset","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

        true if unloaded

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

        unload all resources to free memory

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

        a collection of math utility functions

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

        constant to convert from degrees to radians

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Oqyh9tNwj4Ke57Lyl9UGx","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":"OrI0BwFmivZPZSVhXwcVe","name":"ETA","brief":"","readonly":true,"type":"PropertyDoc","description":"

        constant equals to half pi

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

        constant to convert from radians to degrees

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

        constant equals to 2 times pi

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZL1x6FG3Fidvdw5Fgky67","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":"qtFieeRtDm6YHCkUfrBGp","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":"l19GR0VRVFWoyjwqSYpDH","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":"-JKTfxUfBluJZ4xeMhKma","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":"Kh-7bSHQ47_u10kbRoQTX","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":"JFFdH8FTmgnRpCujq1RQl","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":"Iyp3d2DLyorzSYUmWO1_K","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":"9Mup8CfLmRij7ixoSYs4y","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":"LjfgtuAXRgbPs8yLE3Ed7","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":"7ydT5S6maBkj2cOdO6I13","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":"ibWyvSGtqtp0yJzLp9iUY","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":"B5KxVxWtYqVJM43quDSCh","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":"v3DtE8IScMfjHjXtF8jd4","name":"ParticleEmitterSettings","brief":"","readonly":true,"see":["ParticleEmitter"],"type":"NSDoc","description":"

        ParticleEmitterSettings contains the default settings for ParticleEmitter

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"5JNPVI9lhD9zRM7IlyTEu","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":"zoBrhYTARK3rk3yfnwl2H","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":"rgH_N1Ob6J0gUhf9LtPQY","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":"FjC4geLq6CVoKsJYxm3zd","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":"z4iQeBhKLRr52y6do-Jtg","name":"floating","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        Render particles in screen space.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1rDogjyYeeCrchfxCN8dx","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":"kGVVgbMgODEaLepZQ8Ge_","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":"2XAb18r8y7RmwUubuk1kw","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":"2beTBr40huthkOJTRFFpR","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":"mrbd0T4gt0EA9g-ZPcsuo","name":"height","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

        Height of the particle spawn area

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vxVZKr0qXFaFK_mUcnNtW","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":"9sv83lqXK5Y1ug2WoAtt1","name":"maxEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        Maximum end scale ratio for particles

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iXIyzW1Yzy0xM0_Wzlrja","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":"Rc9JOsmMyP0aSV0wdidKu","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":"_LVk-2tVcdF415Pg8aE8A","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":"WRCAH1x0ldt7UsuwsNjXO","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":"Rk4ultZt8rqtblOyf52Fc","name":"minEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

        Minimum end scale ratio for particles

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1sj9kT3wBBDbHq_2abjU3","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":"wmm9UC52RIfqs9eOVohjn","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":"jXKEQMB5MXNZhlPssOZ1h","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":"RgV517hbKFhXgxfRVJGL8","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":"PYG7rsJ3TXQDAzG6hkpjs","name":"speed","brief":"","access":"public","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

        Start speed of particles.

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

        letiation in the start speed of particles

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KUfTEIwoXcoVMyaOpcSj3","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":"OrDnmhjrcE_XfmO0IPpRy","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":"QoasfRoY1FMpwgAsn4ZNV","name":"tint","brief":"","access":"public","defaultValue":"\"#fff\"","scope":"static","type":"PropertyDoc","description":"

        tint to be applied to particles

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

        Total number of particles in the emitter

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

        Width of the particle spawn area.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TzOr5NNl8cGcGyAyZwNDZ","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":"2cbsfkM4WOeRgBKTxjMCK","name":"plugin","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Tke9kfkCVFYYHZTqqJubV","name":"Base","brief":"","deprecated":"since 15.1.6, see {@link plugin.BasePlugin}","type":"ClassDoc","params":[],"returns":[],"extends":["plugin.BasePlugin"],"implements":[],"members":[{"id":"SNNpBXxH9XTmbOM_M_-WN","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

        a reference to the app/game that registered this plugin

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TmHBeTaZ_8g4A-weDhcK5","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":"R2XJ0ijVwjVwdlIgpfHH1","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":"loLiz-M2X81D7MfNF9HLm","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

        a reference to the app/game that registered this plugin

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pz6DA4oNeWrp9VQ05jddq","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":"x-Av8LDNo9RqDV6iM_TFU","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":"dKZrNFmdSShEx5R2dXdiW","name":"cache","brief":"","type":"PropertyDoc","description":"

        Contains all registered plugins.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KqHGcJmPQCiKCuainoPfK","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":"3kGExv7mc_3NJWY8L0nTB","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":"-40p8gDZvt-Z6Mzhtq0RT","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":"BasePlugin","kind":"canonical"},{"value":"BasePlugin","kind":"canonical"}],"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":"y-fXMfOMo1JlPWlFvpYIe","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":"7BsGza3GTY0PMwOit6Bpd","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":"duPiyV4W9UsOZtqhdqtxz","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":"-X8tet49uCc7rMWR1d1el","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":"fysvYLGQg077w6s4rsze7","name":"state","brief":"","type":"NSDoc","description":"

        a State Manager (state machine)

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

        default state ID for Credits Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Yii28ov6nQPcgnoNE6OLS","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":"oMwZMEOWvsFE8TxKqN_uc","name":"GAME_END","brief":"","defaultValue":"5","scope":"static","type":"PropertyDoc","description":"

        default state ID for Game End Stage

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

        default state ID for Game Over Stage

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

        default state ID for Loading Stage

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

        default state ID for Menu Stage

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

        default state ID for Play Stage

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

        default state ID for "Ready" Stage

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

        default state ID for High Score Stage

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

        default state ID for Settings Stage

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BSnLuPk93csG6DZvkJ67T","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":"nzB7EI-J-o4cb5YKd_5rQ","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":"HumGZPRFO5kGURHFoat14","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":"quP2bkOzP_kJECFyeExmX","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":"63V9RjcSNAceH394wFZe6","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":"9khFEuvKpaIn5w-cHbYD9","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":"lJh1tBJ57KrytB74WAHAT","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":"8weKMbzWnbwmxamCSZyGv","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":"3C1jbHNSTdEmbvxNCJGeJ","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":"A8FqY8qq-96Blvsr1M_VF","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":"jv3gmG_0t0lvDnQ9onILh","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":"p6wqzPUhaAnW6GrHy853e","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":"5KJ0sbUiHtbCSHgrlNUd_","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":"_hCI_6FG64PSQyx4Qoc9z","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":"qTv5hl7B-Dwh7xwKRvFjQ","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":"930bHHwRsza0WyOSe7KYE","name":"TMXUtils","brief":"","type":"NSDoc","description":"

        a collection of utility functions for parsing TMX maps

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"NLBM_1MX-Ey1nlzDWzIKb","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":"O08Us2-ErkEQMAGBF4cKK","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":"i1P9Y_kNjdLfs35W3Wv_T","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":"c9gLJQV27YPDZgxqT7TXo","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":"MCrXdURxvaBX4FxvLlWVL","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":"Oc_PsNKH_SeOR1ostOSMM","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":"UBEzV3eg5UC8wJ7NWZafv","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":"sxGJZw96k6RlAzZuiI1pF","name":"utils","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

        a collection of utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"dA8IhtD60QS2_SmuJhpfa","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":"XN4XyANPtQFR7HYtw3lcK","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":"3QgqLgf20Po3Rvq3p2NLx","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":"SFm8-FSmkhwpVUxzHlstb","name":"array","brief":"","scope":"static","type":"NSDoc","description":"

        a collection of array utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"LY8yuWl5yBjh-XrCsZOpc","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":"bSoHHePcCH6O4KcAj0cs3","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":"tue3yldu2_pmNkPpkNEku","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":"G-dCT0MpjnO_grhzO9nTc","name":"file","brief":"","defaultValue":"undefined","readonly":true,"scope":"static","type":"NSDoc","description":"

        a collection of file utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"lwFCWADj4DP_hxPcIHu6D","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":"wU_pBT1nnRS1ZjcThCyOr","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":"qJwmOiiSm_hqCfFOsSIYD","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":"5eszMABzYobyVqIp7Hllt","name":"function","brief":"","scope":"static","type":"NSDoc","description":"

        a collection of utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"K_jBa9h1MbTNN4oX8lCYE","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":"0cDG2c9df2a8MTJoGQfuI","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":"WEuf1hqBx3pB7uztI6F7-","name":"string","brief":"","scope":"static","type":"NSDoc","description":"

        a collection of string utility functions

        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xMaaSgcvN1lOfPtNwskyW","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":"GROgyxv1NpUT0r1Kslcmz","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":"3Z106Ud3lthLR2nW156O0","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":"-uWwNoJcs84J1RboYT6eu","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":"-T7shuWkPvpqi1lROSb1I","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":"Zl6mEJ1HUMROgou_d7G6v","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":"L1nfxsC6Axpc32U7PBul-","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":"Ra5GpA7ty_txJhPpZcEM0","name":"debug","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        display the debug panel (if preloaded)

        "},{"id":"FGKAi8F-IzTvV32RjaRXP","name":"debugToggleKey","brief":"","access":"public","defaultValue":"\"s\"","scope":"static","type":"PropertyDoc","description":"

        show/hide the debug panel (if preloaded)

        "},{"id":"k5nEmmnPy4hUJvAoC_gs-","name":"hitbox","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

        draw the hitbox in the debug panel (if enabled)

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

        draw the quadtree in the debug panel (if enabled)

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

        draw the entities velocity in the debug panel (if enabled)

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

        force the renderer to WebGL

        "}]}]},{"id":"hPIySWfWrkeMQ0Sblka0Z","name":"video","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"FV2zdXZFHLbnfOiN_Fj86","name":"renderer","brief":"","defaultValue":"undefined","type":"PropertyDoc","description":"

        A reference to the active Canvas or WebGL active renderer renderer

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ClEdkYgbOD1y73AoqG5I2","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":"039LJS3eBvmgB5kQ8JkC4","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":"MKsYKtjXrtL8C6u6STJID","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":"PUf1mLE96ZDOeULopbMQL","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":"anKhm7iNzo7aa1MKNegGw","name":"isInitialized","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

        true when this app instance has been initialized

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HSWuKzUVtv-xquV898_0R","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":"shAqP0JD7MosCniJi1QBy","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":"zwmWNscbZDjgtvaaugWr1","name":"parentElement","brief":"","scope":"instance","type":"PropertyDoc","description":"

        the parent HTML element holding the main canvas of this application

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iAj6mK4mDQEGp_e_cnWfs","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":"jovJoAnyVn8Tqt8wnerFI","name":"renderer","brief":"","scope":"instance","type":"PropertyDoc","description":"

        a reference to the active Canvas or WebGL active renderer renderer

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yDj2KpQppJqv2N99Oh54C","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":"FJGUnlo0OymcqbG9rdTSV","name":"settings","brief":"","scope":"instance","type":"PropertyDoc","description":"

        the given settings used when creating this application

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hEjIImVMnF4NRa-Dfk-lE","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":"BBfZLEwzbiyp7F5EIseHO","name":"stopOnBlur","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

        Specify whether to stop this app when losing focus

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dn17VQpO3KqoiERQHQHHe","name":"viewport","brief":"","scope":"instance","type":"PropertyDoc","description":"

        the active stage "default" camera

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NFczq2pRFfzmEhMxal5ik","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":"udEmJeJZN8dMSIag4TqKs","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":"tHkJXHUFtqBDUGm8PFBhZ","name":"draw","brief":"

        draw the active scene/stage associated to this game

        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2oTLxSoiIR3ck8o-ZFvwr","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":"qLFfr9Wlv-P2T0FS_QhnF","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":"siJaBGG8xL3Lo4ojyl-qB","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":"3GnU9Brf6-KsId-9Gf7gv","name":"repaint","brief":"

        force the redraw (not update) of all objects

        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wTO_2_l8Boi97gyXiZ8VR","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

        reset the game Object manager\ndestroy all current objects

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sKIs0NFYoVWcZvWc8_WbB","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":"ubHuZmqmuUd1q34-bm0Fh","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":"-2FNlv3UvtPpJofn5CEnU","name":"BitmapText","brief":"","type":"ClassDoc","description":"

        a bitmap font object

        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"OIh2Odu2_BnlcMurB6DtU","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":"UZCpnS3MaSR2ro-r_V0eO","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":"ytotPaVa-StAowEBDwE-a","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":"MjGDHPNLrpzHe5vlrPPr4","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":"MW5ySej1whlSr7A48RYzP","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":"1A5_ieIJu2qPRZfpJgOFq","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":"A_txxJGhQ9U6zjqR-Leie","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":"qtWEtlsSPRObXKL6qncTk","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

        bottom coordinate of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"98iJ-8QL49XP5PANlFz3e","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

        absolute center of this rectangle on the horizontal axis

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sdemjf_P5UGjjpx5Xxi4F","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

        absolute center of this rectangle on the vertical axis

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7TEh2KvaOUGXRetg2HnGt","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

        the renderable default transformation matrix

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0__DSXYGZIc8-sqYLrDQt","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

        the depth of this renderable on the z axis

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EvXNZ0T2cAfgpvYd6JkjY","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":"8tx9fQnLb0Rw30OzCQFEp","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":"sZzp7X2uBAur029NvUCt-","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":"fHcJtGO2sLSSHJnmfQXZn","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

        height of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WUUF2Yf91epvpHjxlMlS9","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":"kX3QkKc16vEbsmAto24tS","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":"O5SDE2GL0GveAkW0HqVNn","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":"0qiLEUCQctJxyFn1bma-l","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":"i8ZJdfW8dRC3J6T3cF1xs","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":"3s__g2cnUjuWUykh1Y5vX","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":"Ilo189QUT3CFdjFkX-poB","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

        make the renderable object persistent over level changes

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4-IP8tZ-XZe2vxJvlBg8d","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

        left coordinate of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wkk3ESXt5N9teDYscaEd5","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":"BtgDoBGxwhnBcUZTrqntf","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":"WmFh41OXzISj7wenYchi3","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

        The name of the renderable

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xzD1d9f-Rbz5wVTm2eqjy","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":"Hrd7inV86H42OnwSy-Oqx","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":"JLKsMNDfbwJxXksLTmtkb","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":"wQ-67OVuy9oqvyK71R4pX","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

        Position of the Renderable relative to its parent container

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W9NByq1RS2n_lycibgeEU","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

        right coordinate of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"np8l8emOFu04sXbnJssJs","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":"8VtYAKYkSGgTneUFPAPED","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":"babzw4S2qZw3Sn7UYs2pY","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":"mVr6gJMCGVDirLNJ-go8Y","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":"pC_8e9wBxBMzmEVa0GBD2","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

        top coordinate of the Rectangle

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

        the shape type (used internally)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_OjdmWjdQj-3mBCceVrZW","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":"s2j20PSaqk1x8s-KU2sNd","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

        width of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v2KrpLPIjdd2kBd4m3Gxe","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":"1GeiSmq1AWvZ5Oi2xKSIF","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

        the text to be displayed

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NZ223q1YOIV3Wtu_199G3","name":"fontData","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

        font data

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8d0lfW_9AsQSct4dJYQOW","name":"fontImage","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

        font image

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1H6fKoGu6Hasfj8ItZwhi","name":"fontScale","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

        scaled font size

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nbdy8XIRHQ4ZSqDPsKlVU","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":"eHyOkep2xfKjh6P_yJh2o","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":"kBMviiSKuLsrTqMFsXntT","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":"iJciUoUh_CKlN3Uum23Xb","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":"0RUSgomcxeyAHAGbGziVQ","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":"w_o4QZVQT8Qfk2wrQgE19","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":"LVLuepRDBKEx8ow_cbtVS","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":"TO3pTXx69Y8dOxPl_eMk3","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":"LoLR3RqD9B-Pr-I359w8n","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":"rnMWrzZLewgC-Nbp9rGPU","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":"rzv6EToUYZrK-J9M3n-K_","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":"luhLfaeaT3s0XZ3D_VTJO","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":"qwfiDIgRUrFJl4PuIpFdd","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":"dlqTZlk8ooaQIKt6-K7yf","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":"fSsZ9eBTMEg_A5pSIy4J_","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":"K7TYRmF27aW17Wu_Avj-s","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":"84TvApdKUGJDuBMMjJhpQ","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":"bFC0Lyk5rwHWzr3UDMwfd","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":"Qa0_4jxcnNNzb7b4hAUMA","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":"JVzW3LTgMKfgCtG-umK_K","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"F8W4RJNIXEG13PRRn5c6L","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

        OnDestroy Notification function
        \nCalled by engine before deleting the object

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Si7BP9Ur1H2vJBU-eqWzL","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":"ACbS-pxp_GKzbu_jng07W","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":"0ObpdU9W_KCpPBPtDHQii","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":"GSwtapHvl32NDd1sR6Ghk","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":"UuCcuxav0j_f8UN5fCw46","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":"xX7XPJXUIW7-LM95G48xR","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":"OMa841w74cE939eUzDK2-","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":"PFJtJAEEyZBAOIa5PIDx6","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":"6t8IE48TpMhI3yqOQHNCT","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":"1EUMEZiHbruZ2ZXeiUTAq","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":"2HFAXEnRuAVuItozr80T8","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":"_-yeIu4DFdCinDtRyc6gl","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":"bHaOiZEUx07jJ3jru9him","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":"3O4FT4IgTITr91_czfCCo","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":"1vlYkJJol1PYXtKVYf_u1","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":"lMI5YSzwFjkAs0EB9b2E6","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":"5OZzrv7GI4inykKqWpVuq","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":"0AWeTuAzM8JYxhXBCE3WP","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":"0hy8Yvn2_LaQpk6sd4NsJ","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":"Z1rGGpadxjulZwG_Bx9j0","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":"N-HU61cgXLVfj4N9xZYcL","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":"lK1_a7zcFcunGAKbdsyTi","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":"SksqJ_WdXT9kkBmrxnIYV","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":"iWqLW27iZd5pzBZ5chlo2","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":"B7G_I1wxMiXGEyi32_HVm","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":"TszmWjTuHftNY5cwYxOAi","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":"C_TDCE1WVPAzfbH3uguK7","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

        The AABB bounds box reprensenting this body

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BrVpsvyfrETg5w38jxHxj","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":"eOB_etSud4xmopcJemHBV","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":"tIgYf-E5LZKNRsR5n-yGY","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":"FlYDMoocDWQ3CMTajNsbk","name":"friction","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","type":"PropertyDoc","description":"

        body friction

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a5cacNsEAGN3ff1qVRVL5","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":"ORtAMI69aYdMSA898BrqN","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":"uyBQD0iHnoMakpgzfbjbY","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":"K38wocpdQ9M2ULViGdzzj","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":"Dyi9Ht2yopSMYtbmkioY6","name":"mass","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

        the body mass

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qIOcvXOIyWQPrSybUAUnj","name":"maxVel","brief":"","access":"public","defaultValue":"<490,490>","scope":"instance","type":"PropertyDoc","description":"

        max velocity (to limit body velocity)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0t_kBQkDOUIixlf2YYd3p","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":"GZ_wSCtnwJiXpI6qTpIZe","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":"z1b2WJ0qxGz4OlsmrLbXi","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":"S9xoQVbnlAM_xh4fF2_O5","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":"JeJ0lK7HLt5aeyiJ0_uy1","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":"h-6Vw5guutHtbK8v8XJYL","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":"hTXLHgzyWPqhGKkn8Nlof","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":"zLgNQbJRzboRFJ8giInw_","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":"5B_HpPPwyGwukDLOq__so","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":"uC7HE65Sqxjnc0X5kLwvy","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":"HF9g_wqoErT2ajk7y_LUY","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":"8eU3LKXQDuJJ4N49JV0FU","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":"woQWEwS3-PPLZ4ASoLLQv","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":"XnQoXAmwFN2c8lciv_z_0","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":"sLDhTLI4LFK547nDgn4Mw","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":"egkTJgN2CVhNZ1hPHJtFc","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":"D68teQhAwNxBdRHLVlGJI","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":"b4CWug18NqDT3UrSq3XAL","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":"L90-ANHVmDa3l0Hot-91O","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":"2g8cmKQaQqVj7r8b5HyQ0","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":"iUgvRCCjZkt_1W5CBoJnF","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":"LjIlV2OAFjVsqtbeWqySM","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

        bottom coordinate of the bound

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XIj0zVrPmYelPd4eT6_k1","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

        return the center position of the bound

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vdHZwuTxRDc768fre4wu4","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

        center position of the bound on the x axis

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h1IdwnA58UDVym81jhJFN","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

        center position of the bound on the y axis

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gw4fl0OXVMJIUECS-eVN1","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

        width of the bounds

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JK2gRubMHhEg39OHomftm","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

        left coordinate of the bound

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v8dwQ6Feveu1OmlO9bjVl","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

        right coordinate of the bound

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YTL6xlgNhyBKFsSvaHwgM","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

        top coordinate of the bound

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

        the object type (used internally)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ukTlzL-VL9iMcKMHskSa_","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

        width of the bounds

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jcs129o85ROzl-78RmYzV","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

        x position of the bound

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XJu9Au8V1P-DN5bC8uhyo","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

        y position of the bounds

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t4B0K1xM17livbRGnGxpX","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":"8Gdw68TErl04-Aw_B39dG","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":"EoZAitkpA5KQrCZC13uUf","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":"qdjzh6YdKjsWUYqswA-Ab","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":"QDVguSSU1IKDbJ9y_iuJ1","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":"gkSMjWKPzDN7sRvAvo4UD","name":"clear","brief":"

        reset the bound

        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W4toSjudRoTP9L8Ol2nyF","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":"V1jfYA8Vh0vuQ87HdcoYT","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":"c5VMfeuL5A11Yelp2SXVa","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":"REwWYLuX4whVvFxG6q3JL","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":"hjIlJ8X7ntGfvc-A8MZJs","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":"YJMb6BaPzQwFsbEWWfYRi","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":"NoGRMcARV1HoYYRiXkNkZ","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":"slBjcW5D196y7Omp4RXto","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":"GusWTvsslNcGPzubpv-rC","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":"O2_Ce_ExenI-_uuLzgxIX","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":"Z1IOPcHH1s3DvTtyrE6Zr","name":"Camera2d","brief":"","type":"ClassDoc","description":"

        a 2D orthographic camera

        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"B-pnDPkqhDjsXnoLZE9Oo","name":"AXIS","brief":"","readonly":true,"type":"EnumDoc","description":"

        Axis definition

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

        both axis

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

        horizontal axis only

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

        no axis

        "},{"id":"sXRG5E-x-P_Z1F2AF_oR8","name":"VERTICAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

        vertical axis only

        "}]},{"id":"Yyys0Rz7iNMh5O51bn2yj","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":"PftGJxZfUaAs5CNfC0ttM","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":"ildiR1UczaIiUr9n-7NCT","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":"nFSpGixU6vk2dhNJSEABA","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":"HMIKYNIRjqfPJWX8fn-EO","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":"FgMkaoLt_zfheNoWsWvSs","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":"d3rme2fqP8E1PPUy_-qH5","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":"Ikw0_iNvjSpRYj2GeNLbe","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

        bottom coordinate of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A2GUH4QmUwj92aZLMKkE9","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

        Camera bounds

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RYnzJsuqM4K5-y-EPNLyB","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

        absolute center of this rectangle on the horizontal axis

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ucxflpJXmkd5jcNjB7cIG","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

        absolute center of this rectangle on the vertical axis

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"STHoflZYuyqi0aJeM1Ur9","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

        the renderable default transformation matrix

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vp9pTzmV5EgtmjqJV_fwY","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":"IMRCBRlL5S-rU9B3QFQpG","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

        the depth of this renderable on the z axis

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3pE5-wIwnZ_9ppvo-A_Zl","name":"far","brief":"","access":"public","defaultValue":"1000","scope":"instance","type":"PropertyDoc","description":"

        the furthest point relative to the camera.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jvn9SLZODzSlE_T2N0H_6","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":"9N1F9Wf1xvrVrePe5Vu_N","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":"OEN2NVL661OObpLIMPm3n","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

        height of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hl6fwLNtquKbRIencK2Bz","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":"1mWBXzBF7cOOxfOnkHjk0","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":"QjmxaiJMZjzCG2EJ6olJJ","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":"uAQf3bTZo9NB3yk4AY2Pc","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":"gN4sbkvGW69J5PICehIWF","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":"Nrlp1AXWpvqUtD5G6SK0J","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":"QH9zcxAI8Fkfndv1hX5Uw","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

        make the renderable object persistent over level changes

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dFlbV8qWw43ggqzMbWtMC","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

        left coordinate of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T3VrjRAyZ3Qbv6sfh3G9E","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":"x99Dwt8-H3qet3mNuhTH1","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

        The name of the renderable

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gP6qnUhnfJBImQPhfoUkc","name":"near","brief":"","access":"public","defaultValue":"-1000","scope":"instance","type":"PropertyDoc","description":"

        the closest point relative to the camera

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TP_L4dnZXv91HDQ5_gTl9","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":"TCtv0O-kRF-GmdSiEsTFF","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":"vVw6mKSJvHVvLchSLkBS_","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":"7T76NGtUghJQnGZeS8d6H","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

        Position of the Renderable relative to its parent container

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pp78-wFULMrkKlzuZAaPO","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":"so6916oOeyh8jbHuoh_tM","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

        right coordinate of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FJfWvVZXOwFqh4K3NAAlJ","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":"wc4cYEY4BFdFvskyvRoNi","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":"lePdCUVAj9K04awh0ZQm5","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

        top coordinate of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PaN3hxXOmhaocGb7-8sjd","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

        the shape type (used internally)

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EzYL1QgRT7zaojl24J2hz","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":"3CFNZy7Ly7quVWTBBiReT","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

        width of the Rectangle

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9YpnUy3_7UaRVIo9FX_fx","name":"smoothFollow","brief":"","access":"private","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

        enable or disable damping

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hgp44KZwfNgIgOgV6y79P","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":"bYXVRfi-UFy1_hri_xRiI","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":"ds8mYCbpQO8GUd4_cPQtu","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":"BistiMTCROWcpB6kYwa_9","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":"WxFymerkW_U92CKfIswm_","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":"CLsys-TQOgRBI5_rCvoPp","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":"axBDrQ5AI6As8V-vtAcv5","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":"6mkXLBq3Y3wqXSgFLs2Td","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":"AM5lBbm2YarrzVi-yXBG5","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":"WLCSj59YiLdfL3haUQdJP","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":"xXljOCYXRkGuOvftDVNer","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":"-L9haFCS_rANycY2-TvdB","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":"J1qQKIMhJK7Hjwh37MmVA","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":"GqDzRNaenecGZGgigWmg2","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":"HMRx86U1kYREHsd4YEu7b","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":"OL5DAVtRxhF9IqDAkwEfS","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":"EfDKtQUzhGh6gcBfAv7Ic","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":"sZFmu4X1H_7SketYqfXIs","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":"4Gv1GmTyjh86B9H-c6pyg","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":"HmvqltBFW0H-pyqAPpEm0","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":"QwhmjlRAKokfJVoIb29Us","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":"kcHriB1_73apJh1G0swcG","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":"vU10o4eAXnxL8VInyAq_y","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":"UjToFc-3-uakTxMnZU52H","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":"aRiTyEKcUhEiIUTV8Hzot","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":"hdRCUmAEA_uajdCzCnHi5","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":"EORw3HokgzsqLCOwHU33L","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"NVOOUCtjRPDaoyHSb2eD7","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

        OnDestroy Notification function
        \nCalled by engine before deleting the object

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"24tva9Z8mK2qtTRA80B3j","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":"WXlgqADY4IzF1LcPQjStz","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":"AzWTRavRQmj1LW7B416ZX","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":"7AD5SsNcESmqWac9glQbw","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":"h71uo9_x375FtOYMkF7kf","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":"2ZTNGJLfW26D1TOH6XaYg","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":"fPdTBG1E3LC4bW5IFkmpv","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":"9kA10-waLhgSH4IpF821n","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":"QdWQsK0qzCnpx0KXf-WJ7","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":"sz7B2qQroVVr10NpabbbG","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":"JxRCxk_hfqlE2JnTQtdzq","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":"9KpH5Asg-MqrE0px9H1HZ","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":"rktunv3IPSnXegvJ-EqBw","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":"MpU4DpudPWynRbODJv79b","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":"vzCoBGj6p39TUW4-sNRn5","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":"kv25N6PnLI-MHbY1EsGNu","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":"Ofy_dIDKsuPqerheZJCyK","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":"l8zIbX_TUtoVSq0tDlzMP","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":"P_94GrQiNKGlb9cIu4jGk","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":"439NfUh2-kDIGdwqgeiLk","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":"WOkLRxBPK4WO44kg40VrM","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":"9I78-XDchLk3ppyhgNxAS","name":"unfollow","brief":"","scope":"instance","type":"MethodDoc","description":"

        unfollow the current target

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ug2AeIiguPFN-cGWVz2Wu","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":"KFSljmDsh5NiRYP7oncDr","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":"dhsyibZ0eGcWofGatYFeo","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":"2IMgwHke3CrtwJSC-iRF6","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":"IXTuW7FF63BOR_CDlDP1j","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":"0J2P-vYlEJOFhXCrcRdIo","name":"CanvasRenderer","brief":"","type":"ClassDoc","description":"

        a canvas renderer object

        ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"3lCWq0poklrKWpIw0waVE","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

        the default method to sort object ("sorting", "z-buffer")

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aSMdzToYpqfKxSI1-BFME","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

        the requested video size ratio

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Jiocc8JBS5-zJo0tEw_fX","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":"KEq1PmVRqZicU6utZV41L","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

        true if the current rendering context is valid

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aQdvACU0s8ihLLh3BZ_ti","name":"lineJoin","brief":"","defaultValue":"\"miter\"","scope":"instance","type":"PropertyDoc","description":"

        sets or returns the shape used to join two line segments where they meet.\nThere are three possible values for this propert...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HKhBGi7OBr00sKYCO9x2n","name":"lineWidth","brief":"","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

        sets or returns the thickness of lines for shape drawing

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j03kSsbYfOxpEbyydatPv","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

        The Path2D instance used by the renderer to draw primitives

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"puQyifsckCebCsR8Rbn3f","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

        The renderer renderTarget

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4A18_PgiOu0WvowY0EtLK","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":"WIPmC61KvX5OCwxplsxrV","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

        The given constructor options

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jIFarfkPidK2nd5S-i6o2","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":"XhztWZRg8qVAB5AmPJMxo","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":"UrYLZ2bWY_3jVNw8GMVzZ","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":"HLGJZNRTyXZIbBohrgeOq","name":"clear","brief":"

        prepare the framebuffer for drawing a new frame

        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ONTP2ktjQfJ5qcW-2KqHQ","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":"UhFdXCzZ02CMlSmPeXPNb","name":"clearMask","brief":"","scope":"instance","see":["CanvasRenderer#setMask"],"type":"MethodDoc","description":"

        disable (remove) the rendering mask set through setMask.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LEDJoeia2ZsS4_zy6fIW8","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":"VtLizEgiyqmIRSvNFxv73","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

        clear the rendering tint set through setTint.

        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E_eJiTaQg7QvSFvnUsd_Z","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":"eUOCLSpEZLrezzcBYUlX_","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":"3hlFRS669eV6qkkV0bbCh","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":"pXGWJd8mPFfjviWBhGxm1","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":"Xw5BOxTk6pR2KjPnlTsa7","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":"44ym547ZN0bp23IpdPoPz","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":"fpwR3sWkPX3CXGChTXEus","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":"HFz0RwI9Tzu-9pcxLaDEb","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":"zd-cafKjskVRPY6WJcw84","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":"ExHoDr_t8DkzwPkAi3pYf","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":"cag6PebtRum3oqIluRDzE","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":"Kx68g93peIGBqN3s00nqU","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":"y6MS_LS5PKqdyyGWg1_Zh","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":"flje6X5vYLsrQwCdPOaiV","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":"iQAGxc-KP3q9MENN53Qfu","name":"flush","brief":"

        render the main framebuffer on screen

        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rypwpZ-Qozl3MjZOqTeJg","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":"G4MdsuE560CZ3qPMBzRBb","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":"eQkinoZ9WbXtflHokAQ8-","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":"q8te1xJl24lmKtNQPpZin","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":"sbmm28IgfnPB_LeCZ3Cxw","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":"easMJHvLZnZg2h1vMqwFx","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":"ThV8BHuAJHjRuOs60OUju","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":"T8TGn-2jT-jXWioBAqOCA","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":"pjWvND_GP3N9fYQmKzqDX","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":"plU5cS7an4WQp7PC-gIYu","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":"u9OAiXFLKkQBsdw2INlYX","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":"liOi57NZle3Y7MpxaTUF7","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":"cfT6lWpCe3NrpEb3DFxML","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":"TGZ-VpEfhzz_JMOwuho3s","name":"reset","brief":"

        Reset context state

        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F_HEDzBcEa19LrgMz0_3_","name":"resetTransform","brief":"

        Reset the canvas transform to identity

        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tT9BBgN0LXabENjSllnpF","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":"JArtkUOPnOQPO2sCnIVEG","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":"Hs3A3gOCsFHi8zKYWZsC6","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":"mBQ9GHiwobbqphcO6JKxD","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":"6SIRw013RRK26z1Cj1Db5","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":"anZUj6p7bOK7zRd7Ce3FV","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":"K1WS-UV1BU6i-CKkJ-0zQ","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":"MEJlWlzfvzyhMXiJ1k6yk","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":"MY3h_6Cerv6FhFRvBEiy7","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":"Dy1LvMgfghwXVX1MGuEpA","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":"iWV4QeH2eDTg5SOyx9nU3","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":"Vt99nnojT5dCXibgieIxf","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":"vmYZozh5fz2XIgT8x42fX","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":"A9F5nIUoWAwxUzj4YwdLu","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":"jtE9LhotA0sTl96IGpMvT","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":"hAnhZMp2DFotx3-TNy6zw","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":"3WcFfa69cPXCbAOxVKlwI","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":"AezH7GFIxAYXGgZ1hoI5-","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":"_HJhXZUzUQOYPYzHYGfL1","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":"zU-b05lFv42Fhzo9mExnY","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":"_STV8U5C6-UhxaivAP7Pz","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":"Ilrk8XSXFxe4P_K999Ytv","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":"172737nBuaO1JqySBLhKj","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":"bVYiTZWwKlkuv_43_ayM5","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":"QWHuonnom4kWSziZ2_xFx","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":"qITCZtLXkGX7Qy855ggT1","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":"NuuFh4pZtN79AJxKTdb4W","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":"sYaxJA7fyYNUCgXEJytZ0","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":"r0yeS_CJAgp-WVSKlxjl2","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":"exz3PpfmUuduKz-kZgMau","name":"CanvasRenderTarget","brief":"

          CanvasRenderTarget is 2D render target which exposes a Canvas interface.

          ","type":"ClassDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"O8haNNlcSk6TXdDkrnIpP","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The height of this canvas texture in pixels

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_voyOldGTzXUjkXH22xL_","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The width of this canvas texture in pixels

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iWplcDJy4N2YFci2rRCz7","name":"clear","brief":"

          Clears the content of the canvas texture

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8rJ4HK8RNzpx5PoCBe_GN","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")

          ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"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":"s8wxzdvJq5O28m4tbcQ3Y","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":"18T_x85NKT-0w0A1kYido","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":"Y-gbdN2pS5ZmDHYTFu8mG","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":"ArjjWN1AGTBuyvzkk_ia_","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":"ceafjdT9ld5N33A6O-6XY","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":"v2nODmqGa274ja7HSHhEU","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":"YtjTgUHy-Gqt0Ip0JikSG","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":"TuKV18b-hR2tS0zTezTlV","name":"CanvasTexture","brief":"","deprecated":"since 17.1.0","see":["CanvasRenderTarget"],"type":"ClassDoc","params":[],"returns":[],"extends":["CanvasRenderTarget"],"implements":[],"members":[{"id":"HOPIG7xHyk9AlBLK283Fl","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The height of this canvas texture in pixels

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t-BJU2g54Q1AZbJ0sHCMx","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The width of this canvas texture in pixels

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iGB1yLMO12HfDesAr7rqL","name":"clear","brief":"

          Clears the content of the canvas texture

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b5lmAt7bIY2rY0tgRW22r","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":"AxukKN6-VanyUj1Y2f590","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":"XlC9BPhDb2KsK1iqup3lo","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":"hEBg-2nAYYzn22oBngHoo","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":"bOYQf1_jB_vNqcmAv5ald","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":"ZjloWWAIO_SNV6NWqdVP1","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":"9LtcGkVcCAc1qP-rFOAYT","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":"Bh9P6lSfIH1P9kqwmwwLc","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":"AaSHA5EqYCURu0EjXHGLT","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":"hgvmHwe4T5xDLeVX7haZP","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":"ejDrRcFo213flF0wiMC8R","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":"l_oe-xakxc8PeYxWbJAl_","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":"e0Ow_rf4cSCgj2X0fVZ3I","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":"DrykKSfwsR4R4jV4QXxEx","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LQkefi8_ZJh49DZ4k0S16","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

          animation cycling speed (delay between frame in ms)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S6HClXRLVkiNThXbw56_9","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":"rfl6t9BPTH3m1dEBh4ebQ","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":"EqtS6Akolx9DsyeGCJ8-b","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":"94HEJ8VPEMiUOa8mN8I7M","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u5l12y-eIY5X8KiKXX-_U","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C9Pw6eCP1B4xAMS1h_Hny","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bAFL8kdj9AwsOTPFoVNod","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kuXKYToyeMgcF9befTD-l","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wl2xCA7qzpCGThCWQjeq4","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":"LirjqmaixCaNVU9ODd-lS","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":"cjTN5XlG0XRBjNH8iVfXv","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zej2tHP7fI9gPEhK_YPlL","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":"Sk29Xnc8Y2DFAIOJA31LH","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":"zTQmPa-gi6F3RyTMx69_y","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":"KnxuHNtHGL3Ys512xpEVH","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":"8HS9psb3mwFFxtlTfGtKH","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":"lvBnm2y7bt0NiFKRJ5CJA","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":"pnb_FDS7jLt0jOrN91jk1","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rAZX0g3cA4kyAMyXW_IjH","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":"iOjT-ynD9MYDWol4YFcKT","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hxcZ8Lq6AwgZN0QHDAxI1","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":"LNXr9YgZUnuMCtbsHAT8T","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"otOI6JHj0asZe8W3YsY7n","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":"Hp0LukBJyWbxfyEWv4NTC","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":"t5e4uCR2oj0m5Yb7MU8TM","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":"DvuYVt8Ji7cmUy4xGD5N9","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":"silgE-h3mXzTyG2YfJ2WF","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y7LNbfCtdCswJ4Tu1ZViE","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4RZyLuHhjrPYCAHywa56O","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":"FKrzjQvtY6zPhHVpmlrrW","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          The source texture object this sprite object is using

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o2rb8976kCPjd0C_8UHXY","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":"8PPU8FVW5_64Lqc9h0A2f","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"McTQgGASWU5qywSwi1_KJ","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":"3QFtMPjzANAGvwZFoPdK1","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ks-CtUQvVWSZKnHHZruWt","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":"2dDyXMbVRKZuAsqPU1bNs","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":"hyTVpEBujAaaugpKE_9Ua","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":"CJJHZTTlIJ6EaqV2Zx-Nu","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":"_kk6GqdhBFjuuhsILxVVA","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":"27B6NN3VhrVsPgmEx82bC","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":"T82aYO44JJPCLZW3IRPmK","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":"phNV6vi4Ulwskktkifxsv","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":"-YTbmhvmOE_biI2whUKe6","name":"draw","brief":"","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":"opyPXY4LCIXO2j1hFR7M1","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":"nbKghg4yecQY5-fyJiUAD","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":"5pHEZ-VlTzc7OQ-dMCgCm","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":"D53muDCws85MqvWqgvLUb","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":"4LQPxhizLCmG05GpowtTg","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":"eOAA1IxkRl2mhXWowsv-t","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":"50wKVRceLBUnc74vFbH7p","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":"RFtK35ldRGOwjyVhcmqzi","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":"YF4kluQQbSnwNSotYPkYc","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":"T4qxUXwgWXXpLW1GZO_eV","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":"teSal71bQ04vij2_VSwUT","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":"bQbYzRfUJudbeJT0hq9kZ","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":"G4B8LUkbqTo4_W1jU4xpm","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":"SZ5qKLEdJ2L8So69ohrCs","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":"4vz5ssEPAlMLZTfl0vWrT","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"vssdWIE8kpg70gS7ta47Y","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"khE-1309f5MeBOXf1urRe","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":"kLnhIeJciMNVDp1NTpjqk","name":"pause","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TjreIlg3eRIfJllFmiZvo","name":"play","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WOdBraYH_ljvqaY2ak_6z","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":"YFnY51gywRTO_6F2mjpxD","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":"qm5YByw-B4iMh9NgiTiur","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":"DB5I__8Mcumvia_WVz6MU","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":"jIWNwYEZzNn15vTsN3zFe","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":"BF8vHdcRW9ihpwViaYsu1","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":"2f_gRG8kY1a-f0ryMKQUv","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":"prscRPt7V0vTmaU8A9O4n","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":"Nx3haMZ2_bBkdHcO5skyN","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":"WsVA-_jJC2AvS9tG-W35D","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":"H0_N2ylnlKluvjFCgLpA5","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":"OqMzhPhjgHxuFlbAc7OiA","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":"uvxYRH6SV2tIrS_ps0xsA","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":"OyOFa2V8NMEbRHIhUh7fG","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":"DCvO1EbCeKs22wd9dMjyV","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":"1iIRLvBXA5pLpFHNtPvYU","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":"2n4tAEVLBHBE6q1cpvaRW","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":"WoStTV9xfNakfufyMaIkJ","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":"27jWJEMEcI9lIiFc6yNUC","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":"NnNyCNwJ2RuueYTRCNYaU","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":"aZXj7qPa6vK22ad65Cdf-","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":"wuOWtygL11aXDRyZLDjTu","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":"U9uBdRVMeOceGpdWneD_g","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":"Lm9DesM2o3AO2kMKJ0e-S","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":"yB-QEokGxGDRhKhQRxCTI","name":"Color","brief":"","type":"ClassDoc","description":"

          A color manipulation object.

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"DRQeolM5X7C1Dxk_gUv3O","name":"alpha","brief":"","scope":"instance","type":"PropertyDoc","description":"

          Color Alpha Component [0.0 .. 1.0]

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RvOwImCxmNWuoqhCdUv4-","name":"b","brief":"","scope":"instance","type":"PropertyDoc","description":"

          Color Blue Component [0 .. 255]

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HVXcqD2r2qMUKjZjwmLnm","name":"g","brief":"","scope":"instance","type":"PropertyDoc","description":"

          Color Green Component [0 .. 255]

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XG4198pKysuyrsznitKQO","name":"r","brief":"","scope":"instance","type":"PropertyDoc","description":"

          Color Red Component [0 .. 255]

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kRUvw2h0vEZlLwah4fD38","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":"dGukjZXlJ3JAf8CmfO8Mc","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":"DSrR0oTxygM6R2hzaea5Z","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":"GFebdMMYzlL2THO8cMPOE","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":"hPD1m1JqhS3E2TgM_NJcd","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":"iFjliNBxqA5qdTNOR9nMK","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":"jlYKsGnKNa9n7XFeO8Rc8","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":"I3eCnzeqSe3qKuECs4VJu","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":"lGic_nMWUp9T9t5dq-vkV","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":"XyI8fiW9kRZYyMDfoX9wA","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":"NQV8XLbmKPCQXhkQAe4x-","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":"2AECOJrjrSbGIXuSdTvyn","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":"afQUNAa-UMfdnUFtvXfKs","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":"WK0mva3J2V2f8Iunkhtlz","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":"AVMdmKIqByokLg4B-KIzD","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":"bPwouRYaVX1hNWwtD2uWR","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":"Wv6yAmRAQ23knKQSHHxLB","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":"mc2ECkKBU7aOSP6ZPieRW","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":"SxPcYozUcWgrH4h5qAf2r","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":"avqDQ_BWQMZchwL6sdhbg","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":"5RAxsOr1YUx_DQ22l7h6T","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":"nvlF3f8NS7ZxgHbOBncv2","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":"ZfJu9u5YztERFYfwjI0xc","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":"1XGjgDfmkSPf6m5QZ2bsn","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":"gnfPVi3Cru0pkX97x4tbH","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":"qXWEhsV_Axwyh-RuW-XXP","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":"DvoE_azxIuknqivCXly8W","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":"i-Z3ypzsLv81WuEqbttDJ","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":"ZCm29lKF6xlnUW2nQwSYS","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":"9oetfRDxJkQCqmBAL06F9","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":"lc3BP4YRl1LP7S5ek_vU3","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JkBih-ZMxu3RlAZgB80cr","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-p4cYCkQVangzAotmNAlz","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YuomGvplGZK0K0QqP2IaX","name":"color","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          the layer color component

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PwTry1h2lYlbU9u9_Kpqg","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DhSWrCsDsHL9_bajOO0-g","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r3vqJkKMWGgwn6R11n31B","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":"3qaeml-mElmee9j7ilKcF","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":"V7yoZfNJ1PdBBrrzipRTh","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rALdCoHZhDnInSdKECgyy","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":"-vfbcXMStlk4NQEejakK0","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":"wmA6opywmie0X_nU-OJ3U","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":"wPBZaxpDaYrk1PDZb85iy","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":"k27h7eeYrK-P9yDFHioTz","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":"ah2iisRsmhmiOb_yx3Etd","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":"MCb72rRCIcHQNJ0yhGNkx","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F-mQCa99Lt8_FOfpt1y4C","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BUpVpN2Rfea7I6mXTj9F6","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":"ppAw8JNNT-DaSz31am9Ak","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FK0N3KhneiWBffOWhFbLo","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":"wzRSRlr0ZOdLwZG06HH-a","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":"X8LLVV-_0adVOjCpP8pxd","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":"7s76iY0vEJymg-hihrWbu","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AebZatcVGLyfkHciZkN5N","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n0ojSKzY6WfUdqwgpsp_e","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":"4zksujTHSQtF9nrOCDoqP","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":"dv5DbNhQFaih5Y6Z1hOmE","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"70cwFffziagCtU215SDRb","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F9boJHs8B9EMqny0k0ms8","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":"E13Bp1uCBZGRTJAsNgKIV","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gqBKsHpEwMKbRikP-7jtF","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":"Y9-UUjx1Lf5XLeT8fk5Dy","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":"ixh70_5lJ3HfQVNaULdqn","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":"AWoHBZr7Eni64FP49z6OG","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":"Zi83et8xmHhUJvM0magUn","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":"800lxXLzDazWzWWvlpwym","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":"iRDo5F6UYFTqkGTtyarLK","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":"SuoD4ZEcobOj0XzOhnJ-I","name":"draw","brief":"","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":"KGDKBE-Y4tQU3ajxEahyX","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":"ntnouFm63pRluPzmTOnSI","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":"9_a7dw1fwvaBKnIsbFGzN","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":"yc5zWA3SRBt8WYBj7Efl6","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":"jtcqB2GdhUGsOAoXIC2fN","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":"a-6F6DbjalDPXet74dl2I","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":"Wrm4P-p7-geP3DGX_-NSs","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":"55yOk9SbK7iRGg3lpuHCt","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":"3XXNSjqdD7Mdsey1UiMpV","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":"wzLdIiXRnHoxUKlIzEOLM","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":"9AQKWQNCHhM8z16DJXtpX","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"Zt3eLnIbxYB9Oo22_mT7A","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nMD5t1JYHvHfjke97uqOW","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":"c0PsMEkhvHoxPyAEqOHWG","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":"FtxxQZ2901POx8FNqBsHs","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":"9PI3Emz7iDmE2-XGM0hwn","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":"oCNhV26ocb_5nBCXjRb4m","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":"61LEd8mAi6dKdPwlk5zWC","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":"x79rJHXz7YD-x7IzHpP8P","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":"iR3VyVayCLkJjVNXezmLo","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":"pvbuNm9uyKU25Dy-Rf5-v","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":"i-OOYPynBykjIdzzbEb-8","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":"qkvh23I0fZvbgTb6Y7WnP","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":"A7HTfdZhl_QRQDPQfZ56d","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":"tJJRCvBQhW5RFkFiM-KLm","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":"QhSxKvuQ3THztiuSHS92k","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":"7lwuDWzZ324UvC0FpICpl","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":"702cXhfq0cFX4ZLE1raZ2","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":"8xPLti-jQ4TfYsBDuXn9N","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":"b2Y9J2yNe1fdsZUM1ZjyS","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":"tEGQ-Xh3xwnpgdh8ZwDKF","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":"FyQmxiIBH-bPW4FJ79puL","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":"s_XAb-iW4f9rusLhFm6q9","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":"5Lrzgdy-I154gpuqn2kwk","name":"Compositor","brief":"","type":"ClassDoc","description":"

          A base Compositor object.

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"-LzrE6ctZ5duiZIFaJ1av","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

          an array of vertex attribute properties

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LnBKdGjbsH8_viATbPjme","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the shader currently used by this compositor

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jK5aqyv2J_v4mxA3XTDsJ","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the default shader created by this compositor

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W8tm6EwJ5RVzdUBiQNjYw","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":"r_QJOeyBxkUHQbmO4b1EV","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":"dKUjk3JQPOJcKTaBE0xVR","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          the vertex data buffer used by this compositor

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eM57n7MICRrpoEmO0u980","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":"bZlCTU44Iw7nINO55iLkT","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":"6oBpApN7NAtwsmTg2Nvye","name":"bind","brief":"

          called by the WebGL renderer when a compositor become the current one

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UMPUePxapyuhPvlLeL1Wo","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":"IC7IZh3jJBKgIt7OHLje3","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":"ZBOPLrijuDnDsgsakOGO-","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":"mE6O57GfsaRz6DfK6tqT9","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":"5yDVuTZDxsXWnnN5tKiiA","name":"Container","brief":"","type":"ClassDoc","description":"

          Container represents a collection of child objects

          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"O7haA6_aWJ_i-eQOBLPxW","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":"0djx_sBFjFfB0oxB4fkgY","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":"FeKt0UjIt_SFY2zM69Q5z","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":"Mjcxs443U2N3LhmUTyRpf","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":"U4vlGpJVQ-sUoPXYVdjji","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":"crIOjdaILb89Miq7G3630","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":"OZwx0vhubQpcGv_4wo7Di","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":"TxSuXPnWr7Eswg02yetuk","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":"T5-krzPuUSDnmMA94HVOH","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":"th9zVTAS0o5RaR9Px0JFo","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":"1aDKNdZbh26VIVeZFBSXu","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RRJpvGruvKgC_iUE_kcnX","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xD9lhbuQ0wC6dUNOzmvN6","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cxHCvAeFtlB6FMoL8zfI-","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":"vzD-VzvemHlzca8iRsi7q","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pY1JT6pCxQivZGvDWSdg8","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P7anrX1Xlyqv7T-oQvezR","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":"o6IzYFjMDj-QB3UDVtuUx","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":"wkArF6d1Da4OiRRT_AvyU","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":"F4CkvBgX2uqE_oe4i6L11","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mEY-RrPtk-gcHJwNToECz","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":"WZUX_7gwz5cr4-NNGtX8c","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":"L8vi7SoEtLmuB9L9Nkd28","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":"JxReNNk0TmM7Iv5foqell","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":"3Tc8yID3ynU0FnroXa3he","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":"u527ZCHIdDykcFE_U0sYB","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":"7kuLfV-iQDc2Z6UdmLaTH","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SbSxMWyy0lYBJOTY5p4zF","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"itE6lIvOmiTxwhnrUha2f","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":"kz9_32wlr5-at1OZ4766J","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YUOyNtXEmbf_4IFwd44Df","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":"Ds-XDesFinxcEmBdqvz0c","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":"USZo8R3EGv0F6Q_ceijGs","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":"qfRmiloJ7QqboWuNo4XQY","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"roCUsxL4hKGk6mPuKl5pv","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KCPCg6ONYjeZ8We3_Ea4l","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          whether the container is the root of the scene

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HAStCdHXwG7BCZ8rdwJF6","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":"ObQKgC-nTnomj3Y__Jc4h","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":"OAFJ7p3NkNSAyUBl9L5Wu","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":"6eDJG85HDOgS7guFATmG0","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-f_yYIUNjnfLcEm5BsSYt","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lNUGVXWMi7dTE5ovio9TL","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":"GrZG6c2UeE0UU2wOaasw2","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A1KfMGiwmnV7mFXMNcbaq","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":"xP-H8FfOnXMBSGISBiAEN","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":"EO8mjWrEr7Ee-_Eojk3-Y","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":"4unG1uTuXkzxiS88jEh8c","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":"FOV2AojirbpkVZSwUnKgh","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":"p1Kc2-ZJcfnAn3kkgoXdh","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":"ZxwJUE___IWjNotP63GBu","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":"lNzLWBxKSNQPCk_kvbYHG","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":"k_CoT9YcfHL3ZAm9L0Uh0","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":"xezos09FKTjfu1pVMioJR","name":"draw","brief":"","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":"LKe45MX4Hulegel-UrY2H","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":"8Nk9JTCJBk-Rglrjoawmy","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":"VfHlyIkrtfHUOvfczCbAs","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":"_cK0p4JFCTqxtTUZPlrel","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":"eJ_4VzDzp0_ft3uzsWYkd","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":"hoWtH475zc0AewdtULuEi","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":"Y5k3IT8WZ9lCeMcZJTpty","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":"NPA6IfVGBJnitGst3cEt7","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":"ytYOWwl2pk6npafEfYnJL","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":"SIxJ-KGZc9pGqvvt7RS-F","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":"TYQOJOWxrYt6sf_0IzAYd","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":"1jYT4AUCewf3lPjI1xdBP","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":"vIpNtsoCl8YBPjE9Cs3aw","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":"LExKijR-ytxHBsg5bODZt","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":"PIrgYn0hOraHKZ_gVOuCd","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":"bZ5Af2lxMnoRMeuwZVr0Z","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":"B3Ot0BnSYLIrO1feNOV-r","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":"0lgS01oEeqOFgt56qpmW4","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":"ZICi5zRFgEsQuGydwZYuA","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":"76WSC1ZV6PsdAaUcegZrH","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":"bV_g3Bxo_q9fhXcN0Rnzv","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":"RVj6laUG3ft9b8-9sRnE8","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":"wbt8VMB6EO-eiRHMtMcSl","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":"kKXq3MSYXAIgeR8ZO4Q36","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":"ywnpjfDABDAFRhOzigy2c","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":"pe4BvaR8-7_q6XUWQ1dSL","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":"rW6TBHBkg7Dg1VCkvDm2X","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":"MCZKlp3p7t_WkcdfOpvI2","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"WzFGPqdF6Igd42ccM32V_","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j7Gexk6YlXfW872dalxbC","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":"fv2PryLdXhFU4HUtRd5jJ","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":"drG19dE_lMDPFizdvLsSj","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":"oxxNyo71uAItJ3n0UgbkD","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":"eA4FKonkxhkX9giGH0hGt","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"J53PqO0kkSZ79iOOG1iei","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":"1LiIk_8Lhy5lZge8rb9vO","name":"reset","brief":"

          reset the container, removing all childrens, and reseting transforms.

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rBUH1uk5l9O8dR9rSdXBG","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":"solApgOqnFxsmtw9vR0gQ","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":"i7fWJUi_pCpQavIEm4BUl","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":"PeYHxxjUK5OWa8q4bNd7M","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":"VNwnjIE8pRdUr4iMK7OI9","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":"0Mibt2Aki-FBVfSnaxN1N","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":"gPdDLSfIgy1cjckmS1WZa","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":"s46NSWe4pTV7FMJPqzJ-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":"l4iMmChLVi73wVwKCe-Lf","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":"1zydE5eYw0CV9v0shGnC4","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":"EGHcLx1RK56oN59qV3BBK","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":"OsD2nQJ_jayKTnYKmTWx2","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":"_CKQGH22n2bi7PwxuAPLG","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":"vWnq6MP07yrYPN5Q4tI4t","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":"-X1dYOb03vEOkCslnwjaL","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":"Oz2cT5uDwjY595--tbOKb","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":"wXeEc-uS-DBCSWaxzN05l","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":"96sSIjbZXL4NGapmiylhE","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":"rZWJsmWc68Cb8z971GNvK","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":"tZQfWP4mDNZWI8_FlxW8g","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":"i6889kEWLAjsJggw2H0Y2","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":"OmbxBffbzvQwUHicp5lAM","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":"6qwt0PlQNmOzXJPRVpOcE","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":"BSJqCkmbRs3fFI2VdR5yH","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":"XbC9oKcI7uXtx5gWv79fG","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":"vu1lDUAf0rsuc4JW5lprL","name":"Draggable","brief":"","see":["DropTarget"],"type":"ClassDoc","description":"

          A Draggable base object

          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"SmEXbywp9NEeIx7LCLa3x","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":"f8XCVHxrlcCp-LImofn71","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":"G9boSQcI0mdczUClrCXi3","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":"FOjn1sthkK_WCDQIiaErR","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":"069y_dG-iS_xq2lAsqDT7","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":"Fwd0hMO7VoWUJW-R-TwbE","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":"e9MT-hdIfTSUYXHlcRwg3","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":"uJb99dydGGO79-YAKX_db","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X5CKs0PdCzj82QI4KLpeX","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"imZtjf3_jdkgeLTxZ4Jr5","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pz4tzxr8zDvf7uTxtdYCq","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FKur0yMlRNdQpuSg5l4G6","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UrYblMe892-5Rtvt_azZk","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":"eh5uMgfOJt67tuID-UEDt","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":"WqQk_eAF1k3e8jNoQmr2M","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aHxvz5zR-rXxP22GsZFpF","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":"ww7iiWsAeiipWybkxNi03","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":"GxdHsPMUejlx7p8pJT0ub","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":"sc9U595LF42v1HRDvz027","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":"r8JkMOHzHrT8LzoNCDVXt","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":"GYD2MgbKXWUWWLlWXqz7w","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":"T45DlFhoGvJrV3Y2lMgnn","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cWmkbK1II6jpMtn7vvxXc","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AYy7-cGIZAFQOxojATSzX","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":"b08Thy4RdK-ZH2q6GdN9_","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lRGb-CR_rzRCv9u5_fQAu","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":"fj09seE5L44UMmCnVwpJa","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":"JjZS4JOsxTcIGFvnCbWYM","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":"rPTcy_GdEsADlPcFee-Jm","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GTpPGfhXPH9YxQm3h1WIE","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8C-mvEKTS0p-QmK21aNxU","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":"MLOXeaN_ItvSePkWTPgKq","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":"G5pdQX8d8SLGKC_D2r0pj","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QZQUQPjHKMOWo5sl6iZT9","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":"DdMVKgY27DIE8lgDyACVt","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uFmKHGrqs8cbzH9pvssxa","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":"1v9pLT6mT7qXAjnncZsgj","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":"skHHJdb63q90029LxzoXJ","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":"RFzf2LjyGXMpweFxOUwjW","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":"STDIhC0z6VOYEz-6ZyjgN","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":"tdauoyIg5RYSJ3Gf0d9oh","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":"_lJdv3-Wv8k9SEVY29HvF","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":"W4T0lZ8v2a0oAMRUcTg8T","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":"4Jz4A2FYGVpqUt_0F4t9Z","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":"yIsOFqSljazp-8oWKvhGI","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":"xvEOMWLyd3t1mFmcdp2gg","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":"OTV__jf6ucbothglkPpsr","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":"h7tbpOs5OrboN4recP2c4","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":"TugbBx0F87XLMVtpQ2P4R","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":"dKP3MpDRQq-c66r67mRWk","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":"uwVYGqWIus2kxj5h0Zi1L","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":"XKD9rEQR7Tncdqg2gxPfI","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":"OLWlSkRE4KXVUofm7-LkN","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":"2eb_U_W1TVLZjm_OQMYaw","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":"WsbojIpMYVNgBNCW2VsLU","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":"HDHLCn3alvqoFVJxVC7QE","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":"GOAwXP5ZRgogplVEBbFYU","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"58xQF1bFNNJKPU3AiYrG8","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YDY3Dduw6jOmDI1zhV89O","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":"ZcTNAcmOPndf8-Fv8zZ3i","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":"qZolrfisN7jykUvTQCWsh","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":"OyRt7JTvbxRw_IEq4KSy8","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":"YMokyQ35GPXjn2ZRMowqF","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":"6V5HMTCRwLw9wpbPv8SeX","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":"cT2dzLlFuRzFWlE5HFuMj","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":"o0WBMOX9h8isKcXH27sW3","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":"QzVYQQN2jQ-9Om3K1Aa9M","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":"h_iZZHgQHL4yB9SKTpuqO","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":"JdCZ-FihNxT4ioD4F80ig","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":"sfXZJgWIDsjQr0Mt05kg7","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":"zBJjsAQTcsElC_IInNXrG","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":"Gsn6kdFaTg1b3grGe4Vd4","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":"Ohqt-9y4qOwWHte9LkYXX","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":"BKYqNh_PmXtACZcyVhwMw","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":"QJ8I2hUsxOr8xoA3-gPFf","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":"RuIDK997-I5wG7honVZXw","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":"v_2WYXVUrm39bRDAs7E5g","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":"dvNjbKxwG2vGkaTNbcL8f","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":"FPpHqwosCitCc8ICjH8VX","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":"V62dEF-HAxqYob0Hix54R","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":"mxRN4-_RP7qAcMM8i1u6A","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":"17LhE9TDkeutzN532CGzI","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          dead/living state of the entity
          \ndefault value : true

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lYWsD31oqFjwt3HW10XNG","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":"DsFV5IPNd26W_9cQQreMv","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":"ehRxnqeFMAj7zM-pJ90pk","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":"97w-cgH5X-LiGgFeKyPww","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":"--GPQgeIyWpO0djzi7T1I","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":"SJ4DOvuSfzFPiTdvqXSIe","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":"e-i_5Nab60vA_Y5liVUPd","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the entity body object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R_CWkDy8db1d37YYISPjo","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tLPgJSh9srnL6k6rcvACc","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Kvb1lqEAYh1HUyF4tpnDh","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zx7e-37lTK6WZykHse2xO","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nu44RULoNJm6ZLzIAq92Q","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r3sqHPkMkcoJIdzA8IMxU","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":"BcAVzeoDpoMKHYlP2h9LY","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":"w1ciT6VRpEiMGVrqJbnhl","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XU_TRN2ETZcwabDESS2wg","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

          object unique ID (as defined in Tiled)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1DbhidsKh7ZeGCD2ZKn5d","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":"Pm_wgPBnzq_ZiFeww2RWj","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":"Y8ng63C16ZDOGzUsGeMLv","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":"nVSu0YhI3Q6sM0meGmqwI","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":"u7vcmG-0hYnSYcQKIjcmN","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":"elqOe3aewsfPo6VMeA1lc","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":"evjoszpEiFV7zz5pBRVIh","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XtxHklxs08CyI1xLrpGjy","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IcosUUF1KjhVfzJljLWKf","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":"KhOhmZMD4AgUQpMtP9OkI","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Brx7y3vimnm8N0BACdtVF","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":"fIJhGf-tMPlDeuM1JrS-a","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":"yR6UkTDruYa2D-mxbJBdB","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":"lPQI51RNWX3TPebw5h-oI","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7vJg6FRrrMXdQlQ5zm_Vb","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":"wxlAJ3319QOfPQo6DKeIV","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6NYRr0zKzsP9gUuybPJeD","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":"gvEybLHNpZe6YwwrEJaso","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":"71Xuh7QPQ9BjRkSGAgREb","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Za7lKYVd05ZD1ENCp98YC","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

          object type (as defined in Tiled)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SJjIDOsmyvzvhO3FNnpZQ","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":"UHoJ34dvbPfgFgGPDN_ge","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2auxnHQK1-U9a6LsvClJF","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":"qvByp4H-GbtpIsR-B-LYz","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":"wtR8GG7vJvTbUW-CjmWz9","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":"uSbwq49awjUDJYnXyg9tj","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":"XvgCOq1ocN3OEV21_OdK7","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":"iWvZ8W0qqUB_YWLQHnjMe","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":"FaP78TzbLhDXEohfsvzLo","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":"dBP6DNG2xDFABBop4Yqpo","name":"draw","brief":"","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":"eNB4Tl0nOweGBRl_vdQCl","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":"DTHhn7jTQyplKM1ziH1zC","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":"6GX0sLLxHK95z_QE8vXCT","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":"A9zvTX4zNlaTWPdPkZZEq","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":"HYvQg7Nln5xnEocASn5Gf","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":"nLrSfZ7q2LdmVX0HcjMbt","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":"GDmK0xaWgvT2v4SaVT9bA","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":"A_kOsvKpxPvM8A5q-aq4G","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":"038pJkQAGB2TqJ2rscLKF","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":"wSmrgZH4AskM2sDEUmzKX","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":"QZ3c8ebtdXVGTSkFd02kc","name":"onBodyUpdate","brief":"

          update the bounds when the body is modified

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WJJ0YCiOh1PcTl-5DlFVE","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"oglK4sFXVNalD6Lz53TNR","name":"onDeactivateEvent","brief":"

          onDeactivateEvent Notification function

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pEooeXGumnM7N2FhF6gz2","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zh7XbBMNnNLjnLFaTcKwq","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":"yZ-y--YE0Mvg5yDzUrvCX","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":"dO-cR8uPjOkjj47gyglFw","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":"sa4NhMbpD758pkFj69jtq","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":"cJWtZwt26sEUs-GrcS2Yr","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":"XtBfejVqZw2zUntkOGAQl","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":"G55tc80J4hLVorVGNJUR_","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":"rw219wPTmAhZlO7Fotexo","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":"DwzSlMF5OVk9EJ067Q7Tu","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":"L3_LM4MMrPjyoeqss22bc","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":"byf3sUC6E5mJix-1eBc-6","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":"bFF3Z4bPtXAkJth4GMr0E","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":"34X2n2M6nQMgkixgMvqFM","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":"ARP5bQLmVhi7iJ3HeRfJK","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":"TZeRSc3JmgQCELfDftkZf","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":"2cdSigzVoW-2KR6sTV7VD","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":"3O7GyJJwbBM9wQGEz_9MC","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":"-FHKaqs6KDyfIZjrFlx6T","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":"UaDoo3ACpZ-m_djIcIRvv","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":"PQAPsLbljUUBXITWNjE-u","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":"D80JoWTbigklEOKjp96gt","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":"Rj5q-hhUe1YRJGgePUvrS","name":"DropTarget","brief":"","see":["Draggable"],"type":"ClassDoc","description":"

          a base drop target object

          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"b2IkFem6wy9BFRXndT_Xb","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":"boaICmY_6enuB7jAc_KDT","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":"HVx0QSLlvmVKQIcBUSnty","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":"UaUDXEkhdTFgkr-YiM621","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":"wcoed9RVLTkIozr4Veism","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":"lLz0-ZwaHKXr67zddnOIb","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":"OVvNfaRHQXiXP7zc9lWyG","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":"M_jIgZ596jGxeXpPZydDI","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6p2-leeNfJVD-IN6hCLpz","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MqZSPlrz9iBa2u9Gp11PS","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YmKhU7qVtkePjH9CsXZgb","name":"checkMethod","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

          the checkmethod we want to use

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LQGFhKAPxLk7V5ehwwKi8","name":"CHECKMETHOD_CONTAINS","brief":"","access":"public","defaultValue":"\"contains\"","scope":"instance","type":"PropertyDoc","description":"

          constant for the contains method

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1cnO4ZolfqSQ7Bq7EY1EV","name":"CHECKMETHOD_OVERLAP","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

          constant for the overlaps method

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EP4SEEdFE_Ez84YkoBUND","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TJ7BdQBSHo6moCQRRBUf5","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cYyl20DGQc27re1Lt8slh","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":"I5s_RX4BmtiwmX7NOkEBs","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":"WCdsYbavucyFAeed-3g_z","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ocqoTwbCX_P1jEcTIAvcA","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":"YHCd5M7qS9K_kOdDjuTes","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":"YjSlrLAU_Rc3T_7a1fsuR","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":"7GuLl0hAvVY2ov_-DKIWH","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":"g2OVAqIk9vXTRJxEi8qYg","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":"a06IYwC_wk_zqyoHkbIVc","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":"_EnhaAWqm5TUjGvmx5nkR","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s-3Aq-yZwkNduW39vRSIT","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vdMTJbJZxHqVreI5sZodp","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":"a32wn_9jGwxBOi-VSaBRw","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j_ubhiNGARrlRC1xtfYPe","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":"5-8nEwQhJnqT47fawM0gq","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":"tfXi5Vl1clRWvYDNe2P11","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":"xPOQU9YDBLzYGrS89CRvY","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l5hxmk7hrVb18Tm5QbuHM","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Qtvwy0zSzCu5F59NwLRPq","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":"6FxwzhnbW2JrLnDLZZHeU","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":"5JiDXLO1q9bdP9t2NRp3s","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JOaUpG21fBvx8LP4toTHJ","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":"zl3JtzuQU-IZVRqFcmKFR","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V-ct15XWBqUdAFvuRxrlt","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":"CZY_vfEXlE28Fu8aZJ-g5","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":"Z28lcaidu39-k-y6wv5G6","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":"aC-UXWOE_8DIiw9DfRtmk","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":"CxhV-M8SGoWJfpVT-cesU","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":"WP16zhiGiYlsGT-VOccJh","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":"AM_64nZQD7WuuYX8Uk58S","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":"v6nJKp_hhzNFMuw1zrvIM","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":"xyZ-Eto0UKXpBwTrTY0F1","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":"awwqIZFOm6fHxDshNb2sj","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":"1yKtaLxlcgQ_m_-5451Ig","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":"8ygCTyfmcusB_4gky4q9k","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":"FqEfMYuRcixVmaHTspz_6","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":"8-gu5sTFb3KU6WZcDloXf","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":"qZk5cH_Fga3SvHlcpOI1K","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":"MuS4CV4cDYTK5muOeakTN","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":"BtY9pN411OBSqxeF6w-YG","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":"8OM1CxdT9_FSmnJyPZgXK","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":"31frZNBh8pBlmZ4HSzE7M","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":"nTFLZ0oD_vo6ThlKEnr-9","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":"wmmUjNHZ4ktAVvITzYrwF","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"I8RcThvIpx5VGZEZ8apEj","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"arqSNVG00suS8aq-ZXBeD","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":"nWalebIwYhaLduNPMcJXc","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":"CCJh-mkTiV71XTc-uCC1l","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":"ewZH_rYGbDjP470SET-aq","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":"CbTHRVTmKAssAqHBlbNpQ","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":"fJzRpPA9Iba6JDZrdqF90","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":"jXAR5YQE_euheXt1Gy1a0","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":"lwp69UBXX8lFaoiUyqU_c","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":"Ef76K4DpkpIJ0ITkD1ve9","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":"QA-pO00VvT9khOT2gY3bb","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":"p1nSUJSmCTtJaIY4zhlKV","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":"W8a4vEI-AJMGV9fLNW4tZ","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":"266tjm-rbwIdjeqH_kTIk","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":"4d3MX9NAxhFnyIdzIPmyP","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":"d8-o2aNBKh0ykzVo73Vyl","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":"kBwF_5w0ckLpmQZEqtxRc","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":"dBmC2_dtO2Vuk5FaT0lWr","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":"mZ0ky6Jy0THytAlB7o--M","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":"5UFVGaDfGluqJpTbr_2fv","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":"sReJaK42BeIuxFfYWa8y3","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":"9p8uPVtkDcM7CPlkkj-4S","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":"he51iZ9B7bGS4lLymOXKn","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":"jy2rGm9IlEDdhIKuNNoC0","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":"BkfsbGXPNqabtlcP4uO1x","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          dead/living state of the entity
          \ndefault value : true

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eJmi4C-09oLV4YCzmnIrH","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":"iiPzn8SB_wKnU9XMqTwuj","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":"zxv-yr7IlHq33dtxFDHXj","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":"LLhOKMXbSk0S_gGv_Yt1K","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":"IkS9X1-SDpY21xKKbpCX-","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":"1Lt-yIh3e4UW-zqEVUnpn","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":"zAt_hIcLpVA3uXddYkbOc","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the entity body object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tcy6vgP_64AnlTUWdIgYk","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sMX88EIfswo_SMMv4ffGZ","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TSnwi3gjHfcJ5jo5Aevtd","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SmmghrnwrmR82r935dsTQ","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vEjY1Z7GOamRd7UZIj23I","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0P8RoSVC5Aga7y_z73OeI","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":"wD4t5kxkqVBC2ca-hJ8W_","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":"0sltP5jLWCJv5-Dr7pbtX","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d8jzvlXKUOmG7kt5KAo53","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

          object unique ID (as defined in Tiled)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uqMTZTlQPIy1z_rREtt9J","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":"zTGkHTmSqHqtu4z8927-K","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":"uIUVqTmVACURBJa1ATMIr","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":"ErkTBkHmIjgCmECQPF_FU","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":"ve8VTSomLv2LRetp4Lgok","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":"qB7eOGI85KyGXLwR_6y2f","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":"J7oW6uQTXyVNwHn3-5BN7","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zwl8xcuuhQhSLTMl0WSVc","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"67QAshy76dNT9Ts7iaqCZ","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":"fFx-fyUgc-ONLQEIoG0Js","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sT-EiAAPKOONrROegBxFv","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":"FqpUVvhNwOPQmv6jK3eMQ","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":"qQzJHCRuS0XHgfert-eNe","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":"4gqZHOjNdkyV8C4PWgIPQ","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jMZAGyllFe1CnLd3GuTty","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":"L2ImUNYBYE0xNtovQ5y2x","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"54KD5h4TOIeaBHJ7erj7C","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":"7vbxhj_ng1ZlHskd-Qb2-","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":"TFoGhZGhETcj1_cgX3qro","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J8S4CTCrtFGIQ4RHyA6aQ","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

          object type (as defined in Tiled)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lX6dXnLBUWnjPXJ1QBm_x","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":"my6pjzBQMYrmGDa-vAwcH","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uKpTNPzLQ5osW3eWLTXCv","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":"Vbv5odAMerDQOQu7VzoFU","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":"GcVJ2PdmD17FgsNuoqd_g","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":"B_hshV8wpmRFxO2k71mI0","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":"ny3QA-sybGMB8AbtN6wy9","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":"5xkUTnUZZXr9VeV7glc_C","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":"6c5MHfT8ay0-6H2g4z_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":"SDlRcEdig_-WIZZWC_R4c","name":"draw","brief":"","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":"onNiZzGWC7SYG42GmQJQj","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":"vUSqm85OcywKne8BkwgX6","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":"ltunftex9ezUwXmuNM2tu","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":"-hnWnt6VDqnz0h6MZqw4J","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":"1y8-3GQ4keviAX9aPXhbx","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":"GGk_vK5-DtqLx2YyB0wH4","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":"V0IgoBRxEJR2X2PURdQf5","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":"IIq2wh2Ww4moSwuNplhZn","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":"y84waYmDD6xuehWnKbB4R","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":"wnHJSlEofdgeVWdofmrDk","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":"dzTH70Icmlx0w1o5NRla8","name":"onBodyUpdate","brief":"

          update the bounds when the body is modified

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Nr0XUTketp1Sw7c8jtVZ7","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"iw2GDWJtLdDVDnRFdT1OJ","name":"onDeactivateEvent","brief":"

          onDeactivateEvent Notification function

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0QDGRLfI0HLpVLbL4OzL0","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"emE8G90aByZlAymt3Y5b4","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":"Sra_PgDD_on1-JkCnSece","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":"KcMXzdunR4sO-MKyaQAf_","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":"i7Pb4Fxj6jLkhJy3EDMkd","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":"bzVCvrjnqlewnfgZIBGb2","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":"1Sz9obbAowNfGezAJNxPt","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":"ITwOx3lhNrU7DqSD78xZc","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":"XOkE4j6KBcNv5iVVh0KHD","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":"oNDAYd-KUJwWwSAbo2Yxm","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":"on44_xggS8vZB5rdk3hiL","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":"GREY9Ekhucgg91aWElzIa","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":"MIhaFbLME4R2JH_YEpvU1","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":"LGRvPPVx60QFQmCP_oINO","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":"_8mnuapXPegr-6sAv-6s0","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":"0xLpa88xNh9xuN_Iq2pvL","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":"X2eyh_dxhAUkJjs5-jHvW","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":"MZC9xKnq6aynXAfBeeA5J","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":"zOjmEwYqEU0pxMWhUqCED","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":"61f7MBq-484aUoU4XoRuO","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":"17YuvApnTm80ESW6lHhn6","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":"cVgHOBk0UeIVRcyPbYff4","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":"RCht5pAL7IdFwIUi85X3n","name":"Ellipse","brief":"","type":"ClassDoc","description":"

          an ellipse Object

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"uQfN1f67z_aqpKdRMNDxl","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          the center coordinates of the ellipse

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lwCSNBq8M7JR8RSgTkFsg","name":"radius","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Maximum radius of the ellipse

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vR8DrcQypoZSZS5vHnXQ1","name":"radiusSq","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Radius squared, for pythagorean theorom

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HxQBBt0VPhKO2-RauNver","name":"radiusV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Pre-scaled radius vector for ellipse

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2KNpB2JS_WZtYJ3zcfYAC","name":"ratio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          x/y scaling ratio for ellipse

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s8lJDsWuqtdqHO3Bt4TEz","name":"_bounds","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

          The bounding rectangle for this shape

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TfVaJnSpK9U88CrD_1fJ2","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":"Dgqa32jaHtaZ3Y63NvdHj","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":"Nzr6V-juIfWHlFTO4mj5K","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":"GlHR2nA1YRlYDB82nVTww","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":"UNTwKLIgOaTf8M4eUHdlT","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":"vv_vv9WxpuatBkMy7yX4Y","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":"ApqVLl0OZKm7Fuc6wsxpg","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":"k7FYApTtiSbRa8mOpr3c8","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":"71p7kZsnMWaWT9bLWHvSx","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":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"V5nDyCzS0vsv0ii6sypy4","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":"bMD81QtF_CTjRp_kpg9Ex","name":"Entity","brief":"","type":"ClassDoc","description":"

          a Generic Object Entity

          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"Zg5VOhA9zG84P2xeosyRh","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          dead/living state of the entity
          \ndefault value : true

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rok47NLntpoSo4s2Dz3RB","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":"OGZB8y4gKOg-ZcBWbVEeF","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":"LcJBUPv4lk4Ujj8cwGSG5","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":"4s8WiGEiz8F7mDHDng43l","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":"NPZLrzpN7Ub2x0euRPfWC","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":"fAB6AMzpgqJ9TPoJPaetr","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":"007YHJ5q7sXl34usGOkm4","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the entity body object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hYTnAU30AyemyCq4ZbrTP","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b1mj5kh7m0PwwDTRlPkoy","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9GFsra6Y1hXGrvgJD1ES6","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iP-PsCN46H0lNAnSf9UN-","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aUQ8SksJINKTYMAuoxyv-","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mn-8ips3KEzDDyGecc1kS","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":"2XjwKgluQvHnyVJ0vyTfU","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":"RNPCVX-v23Sl3WVkVkDVA","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mIPbm66WBhdrBFCFPO8EC","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

          object unique ID (as defined in Tiled)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iusO6GzB9fb0AZ7qPi22e","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":"Vd_VRrkYhFY-WN5PCXqSc","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":"tv3LAkF8S21fHr2PTmUB5","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":"GtgP_m_rArw0t1jNYA-Bn","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":"0_2aAtv3H-QyxA5Rp3vBW","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":"ukU7InXiIPwLuk52FkDoc","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":"8FD3G6wH2EZqmJf6FDPAq","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8XOsVSY1Cm8t5XKlTNJ0f","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Uy9suBaeDFz-XBhiDm5nw","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":"juLKZvFY_4Qn7gT08CXxm","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H5cj1Bd08T0UIXXGBd5cx","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":"UnHga48vXJlKrdKCmjh-2","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":"a6NajR_wi1BpsqrTKcCw9","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":"4O51Oc41L5krhd7Kx7O2B","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gH2plzL_VnrbCvPkjDCs2","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":"ILS5KETvOB7UYwjWSfrcV","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iysVH4iB1Vt-ZE9mOXGQi","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":"yeoWQrin0NL_1cWsW6OA8","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":"coMWiR0CjzOTZiHS1XpFe","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iL5c7dqT1n11Vb6k9B7f_","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

          object type (as defined in Tiled)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"STSHbj0YmAduhvWvbxnXK","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":"xX-shbeZTLz8ElAhRkZSp","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7ShAgvx3dPQXzRYRLwPCr","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":"5LciTs4pFGecydKUd8rak","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":"s4A0ydqhoDGw5h9m6tjEe","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":"ZxkYX4jQELTnkVPNqT5F2","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":"GDMhtA8zlvsGZiT68YvCm","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":"z7IyANIejbxibxcxJBewL","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":"dKRLbARolgonduo6uGw6L","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":"5AV-oQEXARP60MY1Kzaje","name":"draw","brief":"","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":"3ofCtlyoNrvJsR1VZQUsn","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":"1D6SM0GLXtP71xazQSyZd","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":"sW--m5CooHbyAkup1TFAK","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":"IcWGWbWDFmk_B03r4xC5o","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":"0e18I5R6BwpZM2wOHuDT9","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":"Oe8wnLJcn0s57RiKWrc4E","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":"PhX3GsuMrisgrY7d734pe","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":"G3o59ZM2TGzfdeIf1d2_D","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":"Y5_PosnH62gg0_SefWAnd","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":"o8Iifo8dg43nsOyhljNB-","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":"GMM3atc7KEm7swPUoaftq","name":"onBodyUpdate","brief":"

          update the bounds when the body is modified

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kOq1498SVKFVJkk1781fs","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"BVzAEJOOfLfmvMd7d-WBl","name":"onDeactivateEvent","brief":"

          onDeactivateEvent Notification function

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xL_3-QP8PR2wV_7VLNdhL","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TVYWN8pF3aV1AIuvMu7ss","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":"zrvt7h6UiOVjA_L7PvZo_","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":"tH_zmuvCOv5o8b6IfiRfL","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":"chbiRX-GK9hAcaDmkZZg1","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":"Ikuk5lJNHh0dV_gL_eVB1","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":"i58xqCIS0M7j4sgmobkDh","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":"eUOgwQv7-6XrvgljUNct_","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":"JuIOjHwCb_V7byqWR5gHV","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":"FmJkFCL_NhSfRzAYrzN8L","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":"_7EyLf3VeEmgld0VUUL8p","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":"3WTaGmElPVIq19ACPAnG9","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":"E8BjLJ5k-U8YAcPlQTxEP","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":"hi7YwdzDegUS02HMpVcaP","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":"2Ctl9eAOHQZPtEKfWcNop","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":"-pn3k2Ds1oX3omoScr19p","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":"2i0M535j1NpTkHD0a-ECW","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":"BjdVRr1aP9AaihzirYw3O","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":"VA2eGrLde8D72lXtpmuqG","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":"Wq6XQe8__JkgnoNGGdPE2","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":"5ZqEmiuEa_BPD0Zm84fyt","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":"iOzUCmSOOEVckh0Dlrs4f","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":"JN5enmcVjWZN-mXdPaiSN","name":"GLShader","brief":"","type":"ClassDoc","description":"

          a base GL Shader object

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"rpFWlbFMk7kttw3QW_SJf","name":"attributes","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the location attributes of the shader

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CvTXCfCjYlY4aON4VFlF2","name":"fragment","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the fragment shader source code

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I4fak29JUuKOdLDedCRFf","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the active gl rendering context

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"giDn31bTU6KXsT8yZ7-Qi","name":"program","brief":"","scope":"instance","type":"PropertyDoc","description":"

          a reference to the shader program (once compiled)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mi0zdh50QMpJgVRzwV6W3","name":"uniforms","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the uniforms of the shader

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SATrEjvGQ3rBkoqJnDj3Q","name":"vertex","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the vertex shader source code

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BvMXBt-KINMf8K_pw9UlL","name":"bind","brief":"

          Installs this shader program as part of current rendering state

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4ZodNeMTfrlob8yck0xDL","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":"7W3eYqvoIn3mNeDEx-ZJE","name":"destroy","brief":"

          destroy this shader objects resources (program, attributes, uniforms)

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2wPks9_W7HthHMV3NhHJK","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":"g22vKFfi2kTKDiwMc1Uv6","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":"aTU6fEVvsQBYfPjN0Gj1z","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":"8iqpORwfAmugYLca_x1mU","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":"rka8FUYic1rZ2BAfQprji","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":"wk_RvD1rX7tOaVWL9MmST","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":"NVY5C_7RAJV2E6j1Ma4xb","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":"mNSSm-2FnTxq5Pc2GZB_R","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":"uQVLObyqfH7ZL6funYQAO","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zDbGHNFjzqkZFUWDyMjfZ","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

          animation cycling speed (delay between frame in ms)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-K5UiZ6VSSVmMokfX89-j","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":"v2n6kHtGfVFIU9gqC9tbS","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":"-pTB6Dp2ZgasEYWrQ5aje","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":"BVeYTY7B1jE1YBtsfFI-y","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NgAvQZHFIDEelt3lgzqTG","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sMFt8DjT7vuK097sqMMQ_","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CeBepWSlDQ4FgDvBe4TWK","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VRBbmWj356rsBQ2mrRgKr","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pk__Tw-8gjhSPG428UOJk","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":"zm5Vxg6-UkwBDByBAaGjO","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":"b0am-cNIyGhmT8CeliXlt","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l0Uo3-kRAqEihuBnCrIE0","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":"4nj625MctZHC9hQb1ULaC","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":"HzmHKXj3nEmeTCFTLH0MP","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":"FRT03jfaIfOssgdPszYPp","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":"UlFBC-GONtnXILakhRyLX","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":"NFmn5q5LPlDdmUBsrChlo","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":"JAzr-bcawS0js0I_oamiv","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tOineOHA3gXlFKLkVoD1Q","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":"_FFzfphSkD7MhnDtzEPhH","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VCL77XP-cW4NucD0SdQAE","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":"LatxlhbI2XnxYbYjVuQxu","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1mOG3e5hom301uicGGbh7","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":"sqbu1cqIRRG3ElOICRqLt","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":"Cbv6ZrGcpZbLt8GbzmBU6","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":"7iZSgGyigHp792ipwXRVv","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":"gdlBJOvm2DUM6hlGY4BBE","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xhhODXkpiYwUbB5rwN0nQ","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eD3glypILKKV_t0doJFLI","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":"liuwrT4taNn552zulCuEu","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          The source texture object this sprite object is using

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RH-Kl6JSHYhWSXqkrxtoU","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":"Q4tHR2Sw1ASFMj7IHdhjr","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3z-Y5KIx4xtVNbJ69o_Kj","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k14ODGitL0b89vN0AmAJq","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":"YPfHYqa0m6hABy6df-2Ef","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m_yNegZ3bemXPVzNzGM7l","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":"aQVGV0x30gLAgW-pgJ8Hy","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":"TMIM1O6oz6qxwvnYu3AM1","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":"aCwTqFVZloLBL23QIujdF","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":"95M_9RBctm-GvvOkwGFHK","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":"XhA-NgqncH2tLI-J0XErt","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":"uPK_fRc4JfqzzQyz5XzoC","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":"v6sIclrnjbYNy7XUs6CgG","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":"XEzv1cNKQBVugglqxxnKK","name":"draw","brief":"","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":"NW3X697EQRZgk2OILjpoC","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":"auIy8kp3KuqemQCQOcK2i","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":"5qIqktiU1oHeVA4OBqjPc","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":"Fpq-nyQHjYpVhyX8OVHJy","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":"jyf1uHUAbX6Zp4-piH_Ew","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":"aAYGCGX3WSK4LNEcxmSGP","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":"DZ_2LKisgHJc0saWu01Nc","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":"1AbbGlst6K0f9yjDqZWgh","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":"zts9ExmZydkDYKSbH75gU","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":"8lDrxYsUxBndoI8opzUDa","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":"alM8aywEa68DATmYlbEIV","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":"qxI-YgmWQfPpSGhzfDYg2","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":"0EqQjRX0iB0iJtKA6-JzJ","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":"8HjPnU3VqfIY36KWN6R-c","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":"bpMBRqZzCt_h6bf7p-pJh","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"vFrkYxaDz2n2Vuc2QpfmU","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PPBw8ZVaeVG3KwNLI99nM","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":"utRV56FMnrs53zGi3PcYQ","name":"pause","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8dCte1vopnUkA2_ih-JCG","name":"play","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G1EA6MuaH65982z83Q2-I","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":"WSllcyATpEx29tpeeyXUi","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":"PbHHEeZS6fpPUs51Z4O-d","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":"4GHPffIMMIyL1oWNBg9eA","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":"uIOLedYZklt7WTT8L8KPH","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":"LLcboUYNbxSq84URliISN","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":"w-TSEl3ZDGHA04OPMAoxe","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":"9QZJIsmeOk4gfqfSApTD-","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":"Q12yZ0PEiTebiGMIOvCRA","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":"4x21lbStt62cHFMSyvtK6","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":"xP548Y0H-E72usyvKk15w","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":"Td8lx7D1iQONN2d7qP_Cd","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":"KZPPuy5n-msIK-bJcBFTB","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":"HPDVSZZ_yxj9MyI8o43DE","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":"q1SZU96IStTpL1rKnD2Dw","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":"Fn0F72UzuxYF9BqvPNpG9","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":"A8ZkVlDHcxL1okq9WxgM-","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":"R_7OkzO3nCdd4rhcrEnXj","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":"1vox-pVzqTYTQyEpZcGia","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":"0dyPPvA3wyxtqmLqeYYDq","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":"dD__yYeyjPtZcvJaw-72F","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":"eiq0L_wwpM8wRn41jdQUf","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":"95vYaBrFPXnckA_aatA73","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":"PlyZcMdtPbJ2MIrnonIKm","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":"3HF_ZqwAud7KTettv1nos","name":"ImageLayer","brief":"","type":"ClassDoc","description":"

          a generic Image Layer Object

          ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"lLU1Pwi_J1vRPTI_S0Aku","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":"DlodvlZ0R0fUPM7v-r8sW","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":"puh43GYUjRg4tawgzWUq9","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":"MZZBPp_UGwjptlhkDX3le","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":"T6CwFb58-u7Bs8J3Lo3bc","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hr86wPLPO9c2lIeiVl3V1","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

          animation cycling speed (delay between frame in ms)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-Fpc-OE0rNzeaI7vbiKOx","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":"OO0g0RSIdQfCjOs4wz8nx","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":"zWFOmzZ1yFEKKiJz0OKzH","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":"dSDD6cw-FNnfxjgs6Ir2l","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zZdaM9wKAoybHcsfl9Bbj","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4X_-H78haQTMlU7Eaxq-I","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4KBklLUBYpRgtXcrIfvQ6","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kTiFsLsG02suYx7ksGzLQ","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iYVhKdcVbQ2MEjbH5ui78","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":"cgtaFLgRVU08b5to2a3kj","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":"K0yTXRDTu5s_PHPfYC8WQ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cVBZgEqJuwPzPgOAhtYML","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":"LuK0F5fbouudMjFOSR5Pc","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":"eADVyF1JKmQZ_j3iVsg41","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":"mwL6JWfuPO0xLydWic9ux","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":"-6AGr8rDa95TNGdh9IXIx","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":"CFZD5XH8t8UcirtAchgT-","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":"AEp98sabdD5iv575QiFLQ","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wj3hYgwLILug1qQRW5922","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":"CmN4txpqiP2hn_a-G5xbi","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rtkrBLTyVKJli4k_nkuKX","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":"BrQdExFdEpbx8GzDnb4qE","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NjJtxac18MANUbdbO7X_v","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":"s4CLD4cXDWI_dmuKlzLmF","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":"qknPZsgDWP9N0ZejD7xeA","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":"QcjW6o1OhDO88h_nVtT_H","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":"k5rDv0hrwq4u42d4j0o9w","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B0TXGLs0U7eXjlX7OqdxM","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":"PeqNtgS-KfkYGu1uZ66np","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":"wuIHvWeVHyeqh4zqXcFcf","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iPy8QCzDfgjRchE3VR-BD","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":"FQPCS9TzLdOKaORM9DZR7","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          The source texture object this sprite object is using

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4D_CBBmPC18Egyq1IPpEB","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":"poYdzDs9dnVxul4nzI3Vk","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a56VHcT49UskGFfx-mEnu","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SpJXpowpKkXaI79ExfEsq","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":"9MfCovIgIA7x-qjqVWZsQ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wfIwKFIUT6HR3zRQkp5CQ","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":"snBvaH2Ru7vH1d29qKImg","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":"EWPbVKMXY-KXs8IzC2jKp","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":"qlfoqN5or1kbVeKAxJ7NA","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":"fowlg0Yz0ew75Vr7LfB4m","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":"DOXYnEg_S_AsFTYQIlG8i","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":"GfpH4gU_jOsUUVhZnTjaE","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":"CGv4Yb0vfKF1nO2_586Zo","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":"_w-2KpFDem4bYKnOKYCkG","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":"Tqh33zj1VGVXcbX_guUd1","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":"o_8UMoB2UA7qd1vm7AQU3","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":"5h9qR2xJofgN4MUkwVEWY","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":"_tjnWNJVQmzfck-UFUiXK","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":"69mAOuTfNB-2BvvV-Zt7T","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":"X7uR7Zs8zd6BKsCko9AsR","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":"sGjd4ewDjmCy7Rqf5HDfP","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":"ci_B1MZ35mn5QXdeqgWJk","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":"c_tcX3tZDggjGOX4iI5aj","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":"j2a78LcrGkVBxEQzv2nXd","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":"mjzS53D2jv3PdQE-vXUXD","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":"eFkoyvZihGzcbTka3JDVK","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":"YBEvK-e2i1tuHU8ZruTQh","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":"3HfmbSS_g62eav4VhiEJ6","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"4eCCalV7Hy42QJmmeiksP","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gx_9SsbU-dWSw1gTT1a51","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":"iaDyDUDgualQf6WSAjMOI","name":"pause","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O9b3hDl5g_hQFkN2z9eXf","name":"play","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e0PRWAeMd4_LTZXjTQGE-","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":"sagKGpgrZJt-j99NuExHS","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":"-TrT1X8vVDVX0iiocwQIm","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":"t_hjA0vfvYFWfqUncEF4c","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":"gttyTxZu8zQ4lTkcgBnK8","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":"9_m2osPJEGwqJviQgWkyG","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":"2P0HuTc6mFgot-3zLa3Mc","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":"_YGwnb46hRkXUnzmSdDgd","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":"bD8Yf1eFiQfgnk9GnI8dL","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":"7ShTxoGUL7MxgvE1WLKj5","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":"FKjZFwPEawzQbtAb-ravT","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":"pfGAZy9QQXmtQspN1Bf91","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":"vWK-SSE5r2JqBpvp_Tewe","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":"vRhAD3qchjqwlLREXtu9E","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":"jDHvXqXiNAl6RaInPo6kM","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":"WBcsuaQIG3gdiFiUhGTxS","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":"jv2DOKx3FR1kqGjJHFH7c","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":"PmBVyfja49wDuYNoYAIkQ","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":"vCD8-7Yo862O7S58vnQB9","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":"0e9rY9D4CJ7Xsq2KAD6r0","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":"_z-GSYjDDGY8V0eNSVXsZ","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":"pSybH0Jun1CbK6btJtFcv","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":"DliU5wTR-qh4U5wc1vwYv","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":"HotQHv_aDa4-224QrpiSI","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":"Cy3GmMlDNyHoywfXHbvhI","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":"4inTm5Ncae3UAeFIg9FXP","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":"4qu4C2IovENfcp4oPFthp","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":"Rg1Br4NLVRaOgkbcqJPK2","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":"wkDDeMPZMyteZQ-ucBD3X","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":"EdqCJssKW-mZUjxUKNJZA","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":"FMLVFs-3mFuepaFby64z3","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":"dfhIr7f6t4WyMOet7Lmds","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":"xGjerkR30rQ_10aecfq4k","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":"XwEAzbzIF9cinw1fBVcL3","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T-pJ5Ye6zRjHBmVPKzLNl","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j555hzh_L6XGvHvMi2PaK","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VSn3qmGk_fpv7AM9UiAJI","name":"color","brief":"","defaultValue":"\"#FFF\"","scope":"instance","type":"PropertyDoc","description":"

          the color of the light

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uoRv9rQRD6jtK1DmS1GSa","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fuCvzDrWnnnKW8IXsQIwf","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DKsbJULjvv7tYQ4JXi6Fp","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":"xH_UJ2l82oTmT58XQ0n9S","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":"u3l9Kz5Ps8otdgmR-lr_y","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"joJBfyKGrH-ksDpaa_V3p","name":"intensity","brief":"","defaultValue":"0.7","scope":"instance","type":"PropertyDoc","description":"

          The intensity of the light

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zmAk92V1MyizqjwbHp3Ou","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":"NIUhelFUUTMD28Tnye0rW","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":"KV6hp1AC3CmBQmSO55Aq4","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":"HzuRF64Z65l9gx5PT6AjL","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":"N67DlSFG_O3z4QS12OMM4","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":"aMqQ-BisJwEgqg7-aXyXm","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":"Ft0VmrTS7lgvhwVhMkrjV","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8SPhJclfEPLbAW998NpBw","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FH6HySoPRUji02FpocgTC","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":"y1GBqb1qbbyFLUJnd8xuA","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1XRZ_-_vPW2uwmX4g7xur","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":"Uyt1YukBXcyM1OjUPuoNn","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":"gN8yg8JeuW0KvDI1T2-Kl","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":"M8okmXjQCt0ucReN5UXcb","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qPvh8hMAmKWfypRL5mARb","name":"radiusX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          The horizontal radius of the light

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1478O446DCEmQJft0x7SV","name":"radiusY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          The vertical radius of the light

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"P0tFxw9AeH9BGpjsTg5b6","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m7wGzHA3jXE4nctUWZf_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":"uAf6Z1SXGw5N8wpWRiWCQ","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":"Z55Za0fp2uVbepqtRuQ9l","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CXb6Cv3r0NDnB-iC1SlS_","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fKPOwa3m3LkjDcuLBtUo9","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":"bMWV-P-nSmJ8oy8S93xoF","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N3FFaFH-nI67pBEyWBFOk","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":"hzO9Y_c3Uh8QEA7Xz7Iwc","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":"qr_m_UsXK4Ty1FkVynFGE","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":"VlpsFmtiJzhJEfUWe7MFr","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":"xk33iA8Hh_NEiezCcT94B","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":"QBw9us4eqGcnpQ-2S1dWa","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":"LQsQKVGqixpLma4pbIV22","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":"PY8mjMeQ23-WY7woG5NW1","name":"draw","brief":"","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":"ww6oYCv5NJPG5TC_staNY","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":"tx7K5pOOjiaYHWQ7VfpKH","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":"pMTpckNH5ye56E-4bqCeV","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":"IJmexYsoGl8Bh_iWBPrP2","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":"570MpRUIKKOzADpaVt0GE","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":"SyXmIux4Nhcik0V-W0EuQ","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":"uPV0qtyHgrHyzKBYYP9QJ","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":"55z_xYM1Q1VvbRhViXmkV","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":"HVskP_nfIPidW9JcjUqMF","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":"4MsUs82-1bo0OzoGiA3Pi","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":"PGoJ3Aj20TEa9Yw1q80lL","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":"FjdlY1LNa8ywhSelU1wKz","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"Qg0jBcWTWeCjLjUGP_UyQ","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rFX0U0KdrDvx-UWU88ZF8","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":"SIm0gHVoY2zPIvaearv2G","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":"AWFQuqVXKN9_NowdVE8cm","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":"HHo8cTizm12Ski-cMv3gX","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":"pd6UHItJOiz4Zf32qftLN","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":"3RuoNM9F-L-Vo62EaKRMQ","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":"xvM8outDtHTJIZ_V-1zve","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":"4BynmzZmjkBkkU_6xfjty","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":"l3ICzizvBc1lk5lGtbJVW","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":"kOlzJ3CgFqq0cC-2Qaxgv","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":"3_rW-F9iIb_4dlshu0YEi","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":"EzunmvmYyp0QGxZPwoFcD","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":"F9iE8Zu43QWaAPm4H8aZF","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":"--Iu14ZN6jeYGQJ5bqUxa","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":"-U_EeCzfHjFx3wvKDXYX1","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":"ROINVlgmNp2JVwk7rHIFk","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":"iv--HAnnd9aKaQZ1mjwi2","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":"b5rp2QxGfheQMpcUis_n4","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":"aqk3UqI7spqGTg1uX09Z1","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":"b7qvFJtlMlhcwuBjbaip9","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":"Mif5psKm7wyFHHrH5V46U","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":"dhsdsqTmPGzShC-qKvSrK","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":"bEtfRxyqUHl-NcXisNkQy","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":"bZ2-bb0ph21qqYIq7TgOP","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

          origin point of the Polygon

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LzsUDFf-_WgmkDEFjlNW9","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":"xsyicBSh0Ma6UIu1GgEUx","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":"MSl6mzCZg0-NssUmteDJH","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":"0cCpP1MJC0Wb3bNNa8sMu","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":"WnNjU69-8iz1y_LuJ0f-R","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":"whNI1LYk2_-Q2PHIEQCZx","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":"AgRHsdV_G3OMSqCkj5g8V","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":"HkuwTOkgLZ8MD6CxZcufp","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":"ecqO0SqUfb7lJ9TaiXD14","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":"z-CBo0YIIQYoqwo0pXbPq","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":"x58WT1OwuCPpNrXt1v7LK","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":"31ODYjQZElkbqDxvLSZHT","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":"MmFwJOPnDaKDDE8CSHEUJ","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":"1Z7VoCtYKXZtaQidA5WkV","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":"wE8xdv0jq4w_osimfFFsQ","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":"WIY9WjGCNcJ-j4oLEtsAG","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":"7sP9-oWNLsDkrt6pmbuzQ","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":"YrJ0yKn7D4t_I1tX7lYFf","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":"PMeGDmpBbWM7jnHctyJw6","name":"Matrix2d","brief":"","type":"ClassDoc","description":"

          a Matrix2d Object.
          \nthe identity matrix and parameters position :
          \n

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"hK3ApG4xDWtwDleKsqXXC","name":"tx","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

          tx component of the matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"54FGbYuPfFRP5pA0gb-uR","name":"ty","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

          ty component of the matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mlTGF7gwIllwhVTBwPu-1","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":"pMaLlOwxMwc98yEa8hNl6","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":"XXANSpgM-CDJ8p_PvAykd","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":"wBOz8a0EKTMMAuopPtqvL","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":"v2XPj88hDLvVOsqpp-z8p","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":"JsSrBXnyIW7afOoTZ8WWS","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":"wVsUB67oR-FP2fr1wLfdk","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":"OBIABXBjcXZzsvWdAYb9p","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":"kzVNrEygvB39CfHRPv20r","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":"YQxoRQpmsxNwvfqNjOshI","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":"_2r9loDHuCD3KX_So8RRV","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":"DbdqRCdOgyyF6F-GYtV_W","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":"HtPxJrewSHSGZgTkwH__z","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":"nx00CKtM-0scsOdx_cE8h","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":"o-q1AT8gJxrjAmVagyN71","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":"sdZmZxdYxAmOk802P-CMO","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":"w6fcnC2lDupxsCMRCazDf","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":"eAuy1dTlHuvf6bV826b6C","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":"Y1i0HJOMN_YZe1L1F3vld","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":"48FBl8awriUn2NYd9cY7W","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":"s1MoiYNJkCcpS_6eIA6fz","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":"HM64J951C5Q1UtMMO5IoV","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":"mT5g4R_7M7_mZ7cItrR9S","name":"Matrix3d","brief":"","type":"ClassDoc","description":"

          a 4x4 Matrix3d Object

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"vxj_e1LDw8td01b4MujaQ","name":"tx","brief":"","scope":"instance","type":"PropertyDoc","description":"

          tx component of the matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"79RwJWov0jExGt6OWp1fa","name":"ty","brief":"","scope":"instance","type":"PropertyDoc","description":"

          ty component of the matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Mfx2cbnVi5IpkCM-ZVN6y","name":"tz","brief":"","scope":"instance","type":"PropertyDoc","description":"

          ty component of the matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hK3t50unTdCo0sYj_eINu","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":"3r1JHadBvX6gx7i7p4UR4","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":"g5fEJiZQzyvzFHAbgGIxj","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":"v7f35sVDWE0CyM0gHTPqR","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":"R0ruOHHZNzdk19Ab6hRwO","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":"BlA27c5gePV8HxtkQ7tfi","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":"SdHjJCOXEAx85BB6bY366","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":"pmTeyCxJdN1DxSe8gq_4y","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":"Jcob54okHuVkcHLoZokyM","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":"DqLDaYySvHiyQsBPYOOXG","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":"baPMH8l9gd5IWLgstUtB2","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":"OVWFAIZfzlcBRt3YEb0Sl","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":"PNbEgGEnlxInqGM55P3MY","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":"HlZXbTYlIl9RdLb8_XcQz","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":"vAzdh0mKTETdItWnQiB2t","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":"b7EtH-j6h0iIL_Fq3IPeS","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":"O6ER7AP1yDjYdKDiRK1va","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":"hgTBTXLi-M2OfkgwDahPv","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":"CMvyR5diVJXww-KNn2vWp","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":"hhyk2aKrGTYk3Vo4nu6O_","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":"8zYJwLd5ihnMZ9y6akV6d","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":"BaeZeQ0eXiw8PBnH20FIX","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":"_NLdLI69QMOrhQpjvxqVI","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":"MG0csv51HWUVMdcBNBhrv","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":"-LT1EtPYOsU_D5F3tmmbz","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":"BF-BGon4_F5noCF9bqyxR","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":"Yrr3Yo_7-8TM-IKrIRe52","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":"SWTCEHf1Z5SwmMHIEVmYr","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LPBPDpKRtE28jUX-fUgVZ","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

          animation cycling speed (delay between frame in ms)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"93C4MhJkoKemQ8JCtTreh","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":"7rx-5ewCV8AiPdMdu9CqL","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":"98ATpg4pkzhMtYfXBkMz7","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":"K5DxScJTyiDeDie9fkyzt","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8E8RcqYhGm8-GAmbWBEu3","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SejqbSR9jMlHN61fbMoI6","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VHjNHSVOERcT651SmUfL9","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PpBlDk8SBFlTh6mnng0Rs","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vvG1Qu5Qcn_lbp-Q3Vtfi","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":"nxySs2JiBNNo-pd41EpB0","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":"VfmPpkTGeQQfyIz8PqBJI","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the NineSliceSprite

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l3bNiY0XrJGXi7vmeKits","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":"gkqDnhLtaowh8wqHngivU","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":"EM8vRqY6xV7N8LtfrlG92","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":"-bOqvZi3RuevFZ2TujXMJ","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":"Kw00ZRo4Rgf3oyqdljeIP","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":"HvI8TnKLnbnmZqUMajigw","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":"B9DhZCuF1NeNd1X5qBmnh","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BoJ8-kxAkqsQh4JrGrd9n","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":"UdD7Cu4o2lYheuFW2O4KA","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sb4uTvMIjAz_IiYl9snL4","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":"YskbkDYLAkOq7qqI1sSEK","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PbjYeaMX49R--gOAOLj7U","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":"H6V37bKhmATRlHz0R1pBb","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":"1y53e7bscfWzzQPP9CB_6","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":"5oHRM8XKeOCU5k2UREt6Z","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":"kW-dy1MH2nV-sUqdu2yk1","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JHWsxE9L6i35in7xx7kaf","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zquV_WHT0wnB9oIeMQluz","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":"heXgfni4OaN1bfl46zP94","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          The source texture object this sprite object is using

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_b0lwgvbW4bHVIxAiZ4Rk","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":"hiLDSCV7Z76i9I1n9Uh3e","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EIRBq2TaHNGICFnZFeEe9","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":"F0zkI4H-czbkTqvfo-gDq","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the NineSliceSprite

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yrHdoQxXeeJRP6uCO-iSD","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":"nMCA-duxvhonZQ_G6Pw8Y","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":"FUQm8FuOn_9txQDjYFOwK","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":"vC1qf0arSzarT9zxS-4SC","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":"ahX7DZYPOXIfboNU8rCyx","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":"Kby-TWN-vx45G67MhaMbV","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":"QYHCsltM9ogSE1OC6IhEa","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":"O-UsopyPL7lmwOnJIjr-u","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":"U48Z-T0K3VYBrv3GliKhY","name":"draw","brief":"","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":"TOzfEYX-Dz3XjpWM6sbgt","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":"fEggGVoorgUZ8MZFlG6nW","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":"R3nEk3gmATKCYnceqDOQU","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":"_netXC8Mlvv3U2y7UrRvp","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":"lBK0u5uW6xFnc4o0dh_yi","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":"zEvnhwXwYHeeA6Ot-0N7j","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":"os3v6op_ObCkxSLdtpX7S","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":"AVGZ8ohxzSgOwQN4LG0an","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":"J3tXCHWn21eGGOV-R9XuB","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":"0IhY7XHuyKktg-qo-tRvv","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":"q1iGvBMJsnSCV-pv5w6pa","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":"VcGtSW6UCSLRnloJ3YdVo","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":"H0XwqsFI8sIDXKcYt7e5K","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":"AQi8LIOlg2MHy7SUk1Drl","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":"jJIjfz3Qn-ElU1JhXfA_D","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"fSZlfJlckyKrF177Nj5r3","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vBDftxqY7uytiI7ioGRVI","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":"GMrsOG3SmIVswqr5mqT_F","name":"pause","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Eajm_t_ofsS_oTCdQlrhh","name":"play","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D64pvf1_ulO0PB1MgeCNv","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":"7X18fTPCdzljQiRr4p93i","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":"nxPKb_LshqzuMFBYQiu3x","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":"_fg1XS4F5Xq2-OeRltz0f","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":"_-QDdsB5bz2J_zFTjfPF1","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":"p6biYahVEvpfnilSLNNOP","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":"JbWs9yBwAyjVtQU9a-pBI","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":"lAwz1cHA-KOJfD5OobrgB","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":"66d1TqaTcgd1_11cp3C8G","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":"DBczmHSToP7_b1I8haZU9","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":"vXeLYoQAHGuUQ0_qfbb2Q","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":"AAuU7l-3ewC_PMalsjiWV","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":"lUopXPrhUOpGWVMCyFSTg","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":"MDaRWq4ctzUSiqsLWAxeB","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":"OvNBvFIs3kXO0NUaBCPod","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":"huKF09CiBnhdRglJ9bbBE","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":"N0uyZ0I5B-j-NIwVv5V8H","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":"TK-VEDuKjlSFHc7aGru-f","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":"VVdkmLBPw00_h_3gnNWz5","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":"QqK75pxHMPzUwqRmcQp6S","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":"BROo9mpgLuoHECoowhqeU","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":"pxGO0j3No6jkEdtLqArJH","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":"-PtxoXQ-1ecdrJpHWvpda","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":"RlGAdStbQ01xwut8QjHJa","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":"017ivb8TcMu2YG8LaPak3","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":"cWvrHOmjwqou9vtmgWefl","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":"bZK9ehTXfNq9RrojzkEBs","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":"FAAwMwdIWZYkZMTcxK2FL","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":"Z-rHDYzyeEFFM2fFCTBT1","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":"nZGObxMOdCMrmmk5n7NTV","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":"Uu4xzhtnKtTPO4NBH4dP4","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":"aRR5TzAXeiUWl7dK0etg4","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":"r4PrAW79-Cj5gKHaQO0E3","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":"bzc2PDH15J02TjjNeeoMI","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          x value of the vector

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lPCKrLwAJQ7MnXdddBwf4","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          y value of the vector

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hwWXekIFtw6GcJdsuvIe6","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":"fUgkSlWhN7341y0zjYct1","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":"s5QrK4ivLPKeFH-JJO8sp","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":"LaYDwUtLEwzSgRGi0Jxpd","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":"gkw4nCsLcoLpMUPmQZrx1","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":"5ngmX9EjwCKZIPV9h9AlA","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":"GkvGNGVmaIOqag4Zbvzdq","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":"YdBZWDMArmpT_mlHzcBxV","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":"3AkKCtPUGdrlGFGkF0sJy","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":"ZlKJYNFo0scu6u1jngErG","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":"kCtD8q1y2-5AfqRv6KkcK","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":"ap3cT-lywKP-2uiymJJEC","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":"BdfsF307gDH2hzzUHp20a","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":"2hIPF0-ixwbkPE1kx9iJ1","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":"XEvvWIcPW8anTeoklJteb","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":"2CTxe5fimCEDpX-4nCvVt","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":"RtOE3w_ixM06jz4mfn1_8","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":"mfZr2bUB5UPoLS4WYCxLs","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":"8RlshNLq-sklRb6Rsppu9","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":"orwimd1gkHEQJ68mBUvRk","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":"rKopkHFtW1st5xHl1EiH2","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":"QwFLYzXDT8fFlaDaDDgda","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":"FDtwlops8czNGavrCHWYb","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":"5EXGcbHkDz4saeYbz560x","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":"kt2NHBiO-LIUdVvDcHcZ2","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":"xCHSRpdWI4XrVP6b8epN7","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":"3K3YVFetdl-wkAZuR6MP8","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":"5cNP9U43OY86k__wAGLEk","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":"2tDe960iSdTG1gRbsMR-c","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":"1gFSipsc3NH432NTVAdNG","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":"TCrDbRx0nzqiOD9lpsm8L","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":"FeHGRM8r24_GUqrIpFUOf","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":"rUPee0DrYIwhJccbX0qAk","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":"8GwOZOwZbAv_dXzge1erH","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":"bNGlbh4BNAwiAZD1txqCp","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":"pRrNliJuDl5TFEzl-Ry_w","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":"xCViOPBa56xo0nabB1Lp_","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":"vH63hqTcazEB1l-fqgHj7","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":"qEoWf2DRydXUxMI_f1BL0","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":"Ty7YrvDCc4vn5tNwEL2gP","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":"ZOUrB1wJrnaDU7CyjfsSf","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":"us26AvnVcLipZnvBKnvvm","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":"b9LN9-eipBXxRCWDGWJpn","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":"JquN7BY5AX2TVS5j8e5aW","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          x value of the vector

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i83XxQ2p66q9j9MMlB6ht","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          y value of the vector

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6Nuej16t8aJd4o4EFVldn","name":"z","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          z value of the vector

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2qgjgT-5_hk7A0sOZV_Xa","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":"o9ImUEkPJhuFzyZUVIu_I","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":"irrAQ5RE8T8ANfaQ-bfpA","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":"unlM2FIxSZ4jFIVsLa7h0","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":"mrF-5O4GY7x46D8jNhD-C","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":"e1_UoGSQ8z4S1UtlfMtBj","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":"0wj_te_6V43vE7N_cGdXH","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":"BP9HYAWdLWO62rKTCPW-x","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":"WeL8XVZL9zDxCnHa4DFNt","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":"fVqOnAuBei60cmPo70rsN","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":"1QLsjfNwLUp1AoGqSB6kb","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":"mLLdCbRKI0kFD0LX7zjIF","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":"h3YINYxWYMPV0xzKHV2Dw","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":"gEXYIl3BlVqJG4oqg413s","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":"iDzxY6mhjn5EZuVakmrNh","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":"ttv5Y-o8idq3Vla4QiwSL","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":"mRrZcDjhDxgnU3-liNTFl","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":"OPob9R-242b8vpDekAqta","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":"7r5dwzOttbtgu9RrPVD3k","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":"Cb2tsSjqJNKRNNWbUYi-g","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":"NDpJIJJS3SSeYbQWfdhMZ","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":"3cqb6Txo3GIkO2XvFSeTa","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":"RSD4aj_TEtKcJ4M1cEVAT","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":"VRWKCeXhILYm036R3rxWs","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":"YINWoa7UcCkpbPsKjVI4O","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":"_1auX6lAbC2rZsyRpAr21","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":"jeVvOQTpwu8-eZSZdhN67","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":"LH8hkKo4b2v-y0DftJYx-","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":"q96YJPALrTmV7XGXmP0So","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":"Y2OW9Yljtni4KGxdjzUbY","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":"DahXomwL27Ic2qHYgpTzp","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":"3gUr-1z26P4abYbuvND8j","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":"0mPH048-dViSZo_TqXRh6","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":"U7h6HgtnPRgqr4ANtd3Y4","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":"CTatNJht7vu3bbJwT8i8e","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":"4s9jd9ky_Jx2DkJszJyiy","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":"WxDHFZs2c4Bj_S8Ad6nbe","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":"BRR4BvgamHcdtYIGtfjFi","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":"znY0euNDm-FIjj4zLxwFI","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":"_LrB_sS3h9RslfDkTPlll","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":"pGLmivxXCehdpsAUBUjQP","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":"togb_3-8Lak7nI8ypclUt","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":"e5VXwRwa3cUtSV83j2A_t","name":"Particle","brief":"","type":"ClassDoc","description":"

          Single Particle Object.

          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"r70CgghFxQGt6Gc28BU9l","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":"HXQhocA1OJEWGJ5gzV3fy","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":"2g9iS2mHk0TSy61aiKISC","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":"qhu036wcUxyYCFlLHr-9A","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":"GYo6cnDbyJ-x6b2yySj0-","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":"AXHtZXyvPJGX_W86eMZr6","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":"AUZs_yerpyEALPAfjvNdP","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":"BxUvTBDvCLN4gKoTdFrnR","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hpsdklYqCCZ4RZUdQQEA0","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zd2rGAwrPgFmw5-15cVZP","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5LmKskyCU6rRKBDy_Niqg","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oil4XQ_so46WGLFzXo6A5","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LxVim-XaTyCxk3A_Cs_aa","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":"PXwrFZOil_LfCtEv1pLDy","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":"qwNhE9tEi851jGNtm2BN5","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Aql9CgLQBc4O-8WX7ARJp","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":"nB1JLOxc5lHfR2Icx2U6l","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":"nxfyB6R4MoV_mUkU7O-6r","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":"N4o7cLxhzCKi1si93idmd","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":"NuPXqh112z6P-Z9B6T7eR","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":"wa_kPgKmi3IKBWBLA2YRv","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":"tBlCXrsvDnizXVsUQLCiB","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V0mrkrQetHyt_1D16N2ks","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bquQ6eNS9K0taLP9HAfUg","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":"jo8DFebTjqTEzrIhVr2hM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2hI0eVStJW6o1ItF7vExl","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":"GES3jGK5cdeyz58UuG_l3","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":"MArf_VeUn-EtwlZYvBj_w","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":"w7yXB1nY1r163ZdtikR3q","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d3TEjVBorpFjGr2y3PiN0","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qOevfcyHsIsjOUCZ3AKfZ","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":"H2vaF0jn5fBkmVwhb2fDb","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":"_e-99KTom5ohLbGyIUbvZ","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q7-4lOLKeaB4JWOBGeqFl","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J9QOZJ8epqPydbUordYiF","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":"7_VFyKUlzx_LG8I407TaW","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yh4D7dxALkLp-NEei50oD","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":"ktLZ4J80VL46epEZbtlLs","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":"fszUC-ex-m0_iI2od47gD","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":"xzY6u4d0VHJiYhWaDENZj","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":"jaKaiX3nQlrRokD_3gZ8X","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":"kEFGv1j0Zz6C44MeiQ3T0","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":"HTh4zducski0amurgfXt1","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":"LB3Jrq_k5P1kN2x2SiTMm","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":"YEguRVhT3dVTDzm6j-p_i","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":"THR5sIk16as-qbVeDQqeg","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":"SNwKGUIqkGgGYtsXF6tjp","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":"s1NIdFGFtfDO4asQgfbXd","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":"VGL8VWTkmFarHUneMv5RY","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":"WigFfpDQZE2bjdiY9GUTj","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":"Uh3ambwHbqSiPr5eAK2-h","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":"ZuV_1aCigupahFpzU_-N9","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":"kB39jeqppBSI5LHHKdFRS","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":"pobVb-98KewQ5ALZsAnLX","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":"sMXKJJMfIRD2TmXeFFpia","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"eUkTPlwjIVpS6I2MQlW1P","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tff8dZeDRj-B5Q9P0PgDE","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":"Uoy1hrD13pJarQttwjPWQ","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":"OiU_3WU7LHsVJRP-14Its","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":"Kl6UnSYD0GurGK5Hbo7rH","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":"jZD6haT8UI3SXXL-bkOLE","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":"aAYscHQs8LK5GZo5ibTg2","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":"a_sOyEAx_qkz7JJi1R8fH","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":"zAp3nHKW68E6OScFi-lf0","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":"25blONrREyhRSq-SwSyaC","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":"HchTXuMUpfmDzo9utuI4n","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":"yf3dxD9EebJaI_8bkenUR","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":"xfVM73Xb5i8wk1lrDmcUx","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":"sGq-fArGVYyjtaLUjQWxX","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":"SDf3BnLC1LmYFvNT1PUHm","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":"oCwCvoZ5VSSgjbqc4qT_H","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":"Ztem6YHEuXxxoH-s4VXzu","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":"Th3n9PIyjXluui7oW2G__","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":"AZsjIgA93tEj7iN7FM7d8","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":"eKHLCNMndZc_vYZI909vb","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":"cprSuqxgCyeAlUwQa-tET","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":"eFveIz9F5cifJ9BDFK4QD","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":"2125hEpvJi8QRhMRU-vNC","name":"ParticleEmitter","brief":"","type":"ClassDoc","description":"

          Particle Emitter Object.

          ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"brxeAzZ7_nNH3tLlBLvpV","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":"9LSzgBai5K5OF1Bw8ncLx","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":"qexoBXjg8uIMwj7hgUHfS","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":"AFCRRFZHxO5dazs6cXAlh","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":"9VMd_6ka8hmMkdV_5pLI6","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":"EjQIjVi82Erwjc3o4xYkp","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":"48oCjdrFGZyT3BASgZ43U","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":"C7RnD4XX8AcQq42nK2HNp","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":"EXhOvQYVnyY4Em0NzcxSp","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":"m4GoTbfW2nB7GIEZodplN","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":"nfGdRBWtulfFIfaGp-8OZ","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_Z1q-VkJ7NEvXAlUTUJBR","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5_Ewah3FJnleIJo-3qMtG","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iNrZzWSNcIw2utXkYmvIL","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":"4uu4kzeADJwiHqd5KwcmT","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZN2gndwFbtoBb6ZvV91YZ","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uRJo4ABsI8m5h-Z72jNMi","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":"ev2iQz2EHNuHYRPzJOMZt","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":"CPiDSW6UZO5pdSTGSWIqC","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":"LBXt_J7hWpglucrMLQuX9","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZrdcGpAgIRnxeCu6agYAQ","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":"nsRCOWTXv2x1_1cFS8XkC","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":"knS6Q8UkJZrl3_L_EPvBv","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":"BIuetoUo-QCOgyLr6y-cA","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":"e2281UGrJKHSNG0OBLNGI","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":"wyWHtk5rCLLNu22MWFnf7","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":"Y3clSLcowCdbgbIydkq-C","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NaTLZWWbU52R1AOqzIrBk","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pqwdw-K3Z0WepEODBINs4","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":"zG2TfprzSJ6kWdbPvycxu","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XdupqAJ3pAPatpHNETmtd","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":"GZJpSTysMg1KhNx7soJrF","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":"QDO6jqNG9VawMgQE41_kd","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":"_r4RS0wp32Bgg3LC23ENv","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F3M8SO5beA_9wiOHxhbFZ","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yglSqOsZ37CiMmv9NDvbq","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          whether the container is the root of the scene

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7PzTxEgm3U9siC3O7oA0m","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          the current (active) emitter settings

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ppkrMs7ziMLp_MnZfOQFX","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":"oyWiu3wSSRINh7vhLgVzp","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":"r-iDhAmIAeGCnw33bO-vC","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":"O9-4HcJNqRDXrk0Ep6-ZQ","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EuVM2hb1QJwGXTz7zdO0e","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":"a53jKG9Omgxaa-_VWmSWM","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"olKZ09UHQTpCxGKNUcK-W","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":"rasE0P41mI8dlstSpIK5y","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":"XSBLJzESnYOET6RRcbJZr","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":"a6rRdi06vF0GqefNeq3Xz","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":"3Y5PXXiVeQ0DplL-Pb94D","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":"gDniCHDe_-mSz3Q0_Dmcy","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":"MZ_4b7r0h74VLkTwYFhpW","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":"5G1gz1ykz6CzS3W3eGrvh","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":"-ecOAgcRqYFZtKqi2Yf8K","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":"1rS6bnzELa7-siZ55NBAF","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":"eHqxfzqK9G_uNtjpy25S_","name":"draw","brief":"","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":"RDpjmKEj70QRFlFDsmYki","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":"XOP2G0RKhq1o6ZOehMrNq","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":"W33raaFHK-1AwTPXbOT9R","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":"Ll3hKWV5gv88PCQlMq7Vn","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":"39HiUORRhQTvHQK6Of6q0","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":"oFhzSd9fipFadpYz8UZSN","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":"TODcHA-blFfgAA0roQrEU","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":"x2mLkTyxTyKol2KHIM7oq","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":"xasT4SOjUnHI0HZuhoiNq","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":"T_coIDSw1qTlBosHPeSq_","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":"FBry1ekv_ecyZ6UgBVXhy","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":"k8bSgeFxja3hegdfoAkuF","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":"eW1HTtIlKqMTJN74U0eQP","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":"Hob7rZgGnhFGdOKZSfEgb","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":"5EQAv3H9G3fBKr2zsNYUY","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":"YXBD9eIlHKG0OBkIHdwmw","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":"4KVxY00gYzuBTrtI692LY","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":"rm8INpkGYetXZmSpBKlCJ","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":"S1cdWwOS6LIIQDjyoyUOY","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":"IUPPIz4Fa5_ofaa-NWC4L","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":"wwvUHrEevjpY58A8DLRoU","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":"31xRcCSMuQlONdh5vUXbg","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":"Y77VVNXoFCGXH5kt4jcdi","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":"-KGkuFJ7EOvAM1LAFS_0l","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":"bR8tPcXXuoQCjFnRdiOzA","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":"Ynn3_GYi72R9mbgOHW9_W","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":"U89Jzb_r6yoXZKrb-vz6h","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":"ZahkidH6i2sp8Lz5ZuoC3","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":"AmPI-KphB6kYrW-_PmKaV","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":"KWmNyiPHLQfGt4Rl-LQL4","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":"TJKCLg6PS5zwJK3ZlPF0k","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"W8Hg7wjVHzNvqK5VwUQLX","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yUEDQvXObhGa1ocXy5kFx","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":"SyAmqFt71of7DKfh7wxsG","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":"H5S_qIgfDTVbyRN0--cQx","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":"Zd8G6RLrU8LVieMqd6BYT","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":"fNHYuQqLMx8_S_HFQFU3l","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"Qu9ySsI80dqwySbIpAuy0","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":"TJNg4bmZOajOq3T73tMPR","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":"IyOXetWld8x0fbBEUfP4n","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":"jbcq2U66QuKYWT6mVj_Fs","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":"L34hq60pWkFor41YBlV7-","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":"hgU72JLrBJXlQ3ECiVEyd","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":"TGGNyeRnxAeXnPAJZfzXH","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":"QGpUC9g6Yj0jg_xyv3OY0","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":"bxmFdLcgoOP3Ztk7-1od7","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":"r3uC97J5SJHHsm8snggGQ","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":"3JDJ9c1EiryWry4kY0xmT","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":"4pYKjeyU4l5oSH1gcGxP0","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":"HvP4MLiVk39sLOBfwE-eg","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":"6BRl5J6OAxjef-4f_9g4c","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":"AV1TDxKJVJ7z06O5yaWuP","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":"pc--YO3zNwOfXqSjI5nRd","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":"PehOc11_fwPuEwRRJ87sO","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":"1uE5XLleb5v5gFr10F-ER","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":"oYQ5fiqrogRuK1FZN20SM","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":"04l5pA2SS55jPlKPE0vgF","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":"-BYDUqX1lW4yzPTplxFl-","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":"gIXID6qXoyWDii861mtrx","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":"emqbdlzIBFg6cG_Cxhda8","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":"rGzYyn5taICNEoYxjmK-N","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":"Ijpf_r_h4V9pz7Xu4FPTU","name":"Path2D","brief":"","type":"ClassDoc","description":"

          a simplified path2d implementation, supporting only one path

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"DmASK0hqa8vKzvWqH5C1t","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":"6s2jq2T4IbhmG1RbQhO7C","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the points defining the current path

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6909AM3kw6RKKzMBtw9LZ","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":"Jyp7n7oOXivmr6x6s_Xcq","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":"syEYqDxW7c4mv37sXoDuh","name":"beginPath","brief":"

          begin a new path

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"huzoIGIHU601rxFiCBVBk","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":"PMyBm6JC0MFf0Kor04pZg","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":"Ak5MYRcZXjeFzKvJ_vya5","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":"c5FMLHBtBGa7IFRYejIEJ","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":"FNhVnPZY0aVU0kf0ERpkW","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":"SaPAWC1G7HpYQWKu71UV7","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":"-YlX3wD8qKqxPOF0BvgF9","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":"ksNyrxg7MDkKaF1QbbchQ","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":"Nk786zy1LxYIigri2cCJb","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":"SSMjEBPAC5YglgsNNtbmh","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":"UplYXAFD7lvheLuVhTMBY","name":"Point","brief":"","type":"ClassDoc","description":"

          represents a point in a 2d space

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"HfI29nvmeYrG14nRhudHg","name":"type","brief":"","defaultValue":"\"Point\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hReMW1sPR1JlNseVbpNuS","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

          the position of the point on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_3gez8zwldAocAZ8MBZjI","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

          the position of the point on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GIsDNU2mNhYMEleNWDyYi","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":"iSUVCBYLeBuME0G6d54Y_","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":"IwuchjnoAy24h6UHifzF5","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":"MSthBL5V_orLqz0E40Cix","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":"0SmPwyFv7FCs9XGDJ10YB","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D1Pc1pzr6ltM59OvC1XxW","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":"6elUOfK0-sXjprF8ECwbs","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

          return the center position of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0zkzN8kimFC35UxWLEmZ-","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          center position of the bound on the x axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yDdGR1qdKzAf8DCB0KjNu","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          center position of the bound on the y axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3cBLRT94TfRwVbb7WaRN9","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":"O6pWfJrqAd4mvd5OQ1Vm5","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":"Zvit8efinTi0yhftXe9zw","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":"5rEamx3U-r0Ub9ps1WDhG","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":"UpkCQCndYkuPxuJZmRzXt","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":"GqBDQfwYMoln2UoKJ9HnD","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":"gS4Us-AAZ-Hv755yriUNG","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":"Ctx2ZoATXwAXuxGVQa1h5","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":"swgC2LEFfcpxjt7YWXqOL","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":"2yDrPDGo1kOyeBrt8LFlg","name":"gameScreenX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

          Event X coordinate relative to the viewport

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EpXO2x3VmOZ3fFPHhSVet","name":"gameScreenY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

          Event Y coordinate relative to the viewport

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aiJyRAN0Fefwfj_XCFSKY","name":"gameWorldX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

          Event X coordinate relative to the map

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2sm5YZfufT7GE0s570S95","name":"gameWorldY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

          Event Y coordinate relative to the map

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"du6FTmU-4yPSurFDaEYGL","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":"8DVqFek5zdGOr2qsvsXzO","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":"E5mfO1CVmX_MBElIVi8Pn","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"p98XEt-qTail_GB4M7VxJ","name":"isNormalized","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          true if not originally a pointer event

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b0kKmcYb-4Epa77Dlp6Ye","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":"dj00vw640AG70qzkguOWE","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AEqoFBlxzeaYF53LqjE0S","name":"LEFT","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

          constant for left button

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

          true if the pointer is currently locked

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XyUgzzqCh1bslm75t1wTj","name":"MIDDLE","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

          constant for middle button

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TSE8QkyJxrxGxpvdeKW8h","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":"Bx6VmUuEhbAjYx48kLaTr","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":"GLc-bXpTMzb3h3rB0lN8j","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":"kp2zVqwbEtNy21ffi-XSY","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":"Z9HoHsMauiYE9jqSZPPGN","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":"YWrmryKZCmkrO8LaG143F","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5JhzrV2epArz4Cg6sLsWj","name":"RIGHT","brief":"","access":"public","defaultValue":"2","scope":"instance","type":"PropertyDoc","description":"

          constant for right button

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WK11kbmgCHJKycDgSsMJL","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RYLZjnPbeQ0HGIwPrx4hQ","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":"n5fFl7XCe7gv2LThzru5h","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tG39ydNPZcX-RfTv0Zl99","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

          x position of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kPcH9MyMz6X8-svsZMERD","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

          y position of the bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yMh23Z_LE1IgbdDg4ib-a","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":"Jkx0asSe71mXq7CcPkQeG","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":"Ryt4aK658NR5L6uJcYmQP","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":"eb-G6YZgEi-6geLr430xB","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":"bnHFSNEYoFleG-KjC-bXX","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":"iM_-Q1PTIJvApCpXiJI-b","name":"clear","brief":"

          reset the bound

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NdwmgygthpMCOXAeupj3z","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":"eYL7tZDZFm77sq1dbzxa_","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":"N2QyiGNxfEcANPE9q22pv","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":"9F4DEjYf16GROJ7LX-urN","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":"y-XTVnxBPL-TajrBeiA79","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":"b3a9AcvQhCmA6CP8_VEdT","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":"BkxmT52LoNBtCVmTsiEf1","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":"ViYrM2q116C0qYXyXQXvs","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":"vW6skw7a2zoT3Yhsfnerb","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":"ckJmrEqOdp0T5H8lnjDJO","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":"P_Yvrs1wj6hLZaAKPZqHC","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":"AGmW1Vtj4u9HQbi6oYgjK","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":"uqjc3Izfeqk9FjpCD-HVb","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

          origin point of the Polygon

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h9wKjd19MMLN0ahJ--KE1","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":"6070m44XEfmR0L4N_5pbf","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":"LKXRgkmrGDZ6vVAPPIaAR","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":"DtoC3J_OGuhnSbHEvZGC8","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":"Z1AMO8K9ArcVUtp8ASyJk","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":"NVipIm0oz1DZ-LQW79lMu","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":"EY1qlRUjVg2DcqLTvew3B","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":"u5CmA5b_G449otmZAAfmy","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":"Ddn8W5Z0qodgBUr36Cwob","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":"R1OFZhSYE8jKW5077id1S","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":"ygl58rEUhP-p43lYBeZpG","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":"XaelrQOIi7K6SojC2mpNk","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":"U8iXLMWBaP3f0JNxj7ch1","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":"Vi5W9nn9_06x-hp-fV0He","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":"IcUXaoLzXHUAPTA2mhTMv","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":"1tcC_ZPUKR9aouacFtrck","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":"MKaoCllxQQLH738n4iAWl","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":"-4hccPSR8fWD3NVtMajIV","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":"TtEfeSRAleqsfQ8oEDawN","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":"UrZJ-XoftsZhBYDWdZOfU","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

          an array of vertex attribute properties

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dJwgFL8tiJFs6io5xoVVY","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the shader currently used by this compositor

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xZlTM0maFSk29El9Htc3b","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the default shader created by this compositor

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n2jUqk6xMhJo4ewx3OaFt","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":"Mr74jDeLjjUdS39vuHAni","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":"7py1G-oRP3ZtBalWDq_GL","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          the vertex data buffer used by this compositor

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lFzqaOLHIuHkMEcoA_W2F","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":"ps3d5hCcSQdFoZ5YYjdXv","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":"ktWfEwul71m-zFUjLQGn5","name":"bind","brief":"

          called by the WebGL renderer when a compositor become the current one

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VIdaG-9ATA5HHIA91jsZO","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"lBQLrhpz5UPdi6nCxpevG","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":"tOncbLOTaohW8zBWN64CX","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":"TJ7WHrVs_pROcndcCarE2","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":"qb5CUm9m7XDiLo7Ntk01O","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":"rhlNdyKoqyGyFmVI07vUF","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":"vMudF2-j-sRNDlh5LumIs","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

          an array of vertex attribute properties

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FKj9sgxatDsSS3dj8tQeF","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the shader currently used by this compositor

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XRoFuZtYuYBDvzl-P6YGt","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the default shader created by this compositor

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QL63AA2G1yeuJCf4U2gqf","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":"T67kad62wyGm2DUoKYGK7","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":"NjoRvDG3u6Uufy4GieAc7","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          the vertex data buffer used by this compositor

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n3g1AYA2Dtaw5-911VCdN","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":"qkVJRC5le6k7yTctiQjdU","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":"ZN9_Ce4Rw9kV6uxYlyxeE","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":"IUyhe3S2P2fd81GPWWvp9","name":"bind","brief":"

          called by the WebGL renderer when a compositor become the current one

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PT01sjEm93HVFaV5N98tC","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":"DuW7kSHnbNO3EpQNuExOV","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"DIOLf4pLy49oRrOv2xEwS","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":"HEnpZU7qTRlL8Z9Cuo_RF","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":"VDs0S2z__Ftwf2FzZxThe","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":"g1FtgM_SvycORDW4_Vsrz","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":"FlwA4qUYS5yYyKmFTkPsW","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":"c9HV1-fRfPIloSfbpNjNa","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":"irxq0aTXFkc2sQAa4bTom","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":"LQwtKIBmFQ91jcwT80IAo","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":"od_UeQd8qtIKpY_z9LRoF","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":"Q4tyLqg8FY91tnGgsjClR","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":"3q3eSl4lT038nsWZmBbW0","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":"Bm_WUg7TZhV8YsPX82oqY","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":"c6yvB_FYEy4SMgRDX-KRb","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":"ycxwmMxAr-6-YzciZrCqn","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":"tP1hjatGFa7m4LSV60bqm","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":"H_4lhEUVYPxYLV6kEH_G4","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":"JEFgR0Bl-znmESug8KCjS","name":"Rect","brief":"","type":"ClassDoc","description":"

          a rectangle Object

          ","params":[],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"m-V-onXWCPe22g60NBbXo","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_cp0PYBAVLelO6paxHT70","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pSPVvcOUms7BoOnASCH_T","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Opuf8pN2FoMDpu8-Gtk-r","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GddmYP0D7QKG-nX8hhR5V","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CQd8HlmJSBaj8RXM-gEaj","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":"fu4zz_XzzEa3p8l3SgxdA","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

          origin point of the Polygon

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9LXU2gNibZoRSdhgaE2e3","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OQAfDarLKA_CCTL8V83t7","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AXMyfAF5EnptPTcl20HdO","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xqvrRNi126ElMYDvAeGb5","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":"WrWLtoEEw0M0UNmdDrtZb","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":"krv-nCAPQOG_ge1b-EzX1","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":"fITcn-0-bUgPHqqs2Qzzg","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":"PEdiES2U4SZTJJl3_Rsui","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":"p39fuxR7weZ3cgKCGuLzL","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":"vh6_Q-svSUPIa0TTDGq2M","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":"o5Rfuia68LPxWAnomj7OF","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":"3aePCRdPnB_4rNjgXPb6u","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":"hlVAvYiGE_AU5WgWsRufL","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":"pBQX7p_3IOZCAiDVOi47W","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":"C4cWSBC4xDzSmyW7X1FWL","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":"2f8uPVvzkvBcGBc7Z1yF5","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":"NLF8qP9v9UKrA_LlvHRaD","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":"sqdYr8l5WVZO1Ruj1G6zx","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":"t_lwtjEv8aRzXkSxzbXWL","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":"1WXNvCK7iSQDHuXqeMklT","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":"3MEAU0NQAhcAxg2YNd0K3","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":"a7bRnVNaLdaz5Y6209c_a","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":"0OADljdaiugwleVA-DBz4","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":"Tmu0CIf7U7LBSQjuPAghD","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":"mzXFv_xL1wcL98ieeJyEh","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":"Xorg_5irMT8UqpUojrDCr","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":"IxNXDLYLR7KkIPa_JYaCu","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":"rtRviLCUsXTgeApUtTDST","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":"_yLiNBqbarILbIT3VBGDM","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":"reN8YWp287CLR5Hf47RtH","name":"Renderable","brief":"","type":"ClassDoc","description":"

          A base class for renderable objects.

          ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"g_BsoLKfRYKsVd2g-6Yjp","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":"hKPRvjKwmxYFF8yFo8Dh5","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":"9VtxvPg4fRjY_6UVNtgu7","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":"xLXbx90L-Rj-lTMRj5-N6","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":"mbzhWYWi-qme2FGnCi54f","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":"wE8TJSl-jpCRBNVo0nrGL","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":"VT-JIX8gqHoAchVpuaRhC","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":"n9_LrE3R6ehbmKu2L0LLL","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PGHkDPNdqqHNRX8L___yG","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7nwf3LkG5P2CD0RXYDZSu","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XC4ws7wNLWxq_PQ8CcqRx","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tTQ87Hc7rVSVLYtJV8AHU","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FVnkXHDAGEIkBsNm3YhMe","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":"sBrSc4TC7lJ7r2KiIvN0E","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":"T5LfIaASXrBsoTZ5v4m4y","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"inMg2ebeWSYAkZSwVvwza","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-IZByPb5DDQtNm3E-JCy","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":"VcKGTZpeseJd6aIEfgkvd","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":"zgLUiTiRrohC1Pct5GTz7","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":"QSHLYrBDT6JM17FZNUJPe","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":"J7eNM7lSP9miNeCzKkPib","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":"ZRJagNcZLj_v-ipRIgO-M","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uLRch8yJcMY-w9VKaBiYM","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9sxdTym0FWHpS_Q9hkqyo","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":"X2adheLOttWqv4tbnWykK","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gvB17PnLOy4jTjmfkpsgt","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":"jtgL2bXDj2U_soX2UYzpr","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":"JE3CN-Z03GSIAXaDtNwyr","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":"LZ5YXFS0e6x32pWFaxyXZ","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7cgJYRjmXglbr1-EFueaZ","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZsrNZ-h226S6_78FSO82L","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":"IIvM0SomP09Aqfk_rVBuM","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":"xjE0j-IpWfUKncrrzfl5M","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BHtdTx_73c631S5hW-r0y","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IFb79HVHsSCltCSDyyROv","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":"9O--J8Lmmfoazxaiz_pI0","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ObBBcpZF-XsnFV-dIIEpA","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":"XhdfA9E0fAi0jiIEiWDs5","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":"N499-7smbJWRFEZG8QCLl","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":"RanX4-FeozTFMbbLf5abq","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":"DHkDIpipaz-AUhJsGVViw","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":"UmiJs_43BE4-k0jQ05uv7","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":"vgB8mfKD_cqykoLAwOyzL","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":"iVOly5Fg5t3Z_34Wd_-5I","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":"wJ_YmqiBnhg02WPt4UzAy","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":"n4eGZwv2nno2KRmB9E27Y","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":"4LFyPIcScbfwQ5JgWdjqQ","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":"jHN9Y6mV6L6cVWhN6r52q","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":"moXtW3CYR2dUqCfbu6CEm","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":"o7qRSNiFFjL9wAV22KbjM","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":"DoEyWqH41VOP7C55bnp0G","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":"jFjJQafdW2-D12VJwtY_J","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":"L6VipNDT8r33tB88DV7H0","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":"r8rAoTszr0vPt9GzIPSgT","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":"02dbSyC7GqYUcZBZH7L5h","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"x8ys5wTLNz_rIjppkXxpf","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S4l_8DkpQTP5tub0WNbh7","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":"zHa8zuiOjgWS60OTOAgzd","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":"nHLs-uepggboVcezTlm4s","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":"re0j588XoLLatcf75BYtc","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":"gAaqEf5QazV-A-n9Kf7To","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":"nX1kdLQJaTWRGwq52R4NZ","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":"pGIZk8RPU7AG3DmmkYFG7","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":"9tamsf80jzwIM9bf03bXH","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":"Ex5aa0iUWjgg-QiIb_35u","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":"MJZBmWCusYkneM4c1vewz","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":"1ny-KOAN3d96CQEvyyLvg","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":"LHkUJBeu434USWt1Hggtp","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":"plD7Ti45VK_rHVzOTcIDV","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":"3OWkMjbCb-yCuO_g1OLuK","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":"5kdhrkw5oFywFwJRaQsc2","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":"B7pZCd6kVRUb6FnWx97rS","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":"_-_dKdpjyEqXX1QAd8Car","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":"ouThkWmDNka78Jy7TR1XD","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":"33WajF9joGp9gfL_evtk-","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":"HImn-XaElRv8w6AQ2YpuZ","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":"wvsPbvc6TdoLAjTcKXx7x","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":"elYLD1xGGjx_8eWM7qC0a","name":"Renderer","brief":"","type":"ClassDoc","description":"

          a base renderer object

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"a_eYLmOlbbUNk1oX5uS_6","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":"dUcv3BS5tWXpIFJPFEeLo","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"NkAyVKHjbD03p5uECSe4I","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":"Jtia6nrZKCzQqhrGmUbYh","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"uXj0Nnt8T0NwV1e7bIQE7","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

          the default method to sort object ("sorting", "z-buffer")

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-5jnFMEaFTcWtABiGH2gf","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          the requested video size ratio

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RWaulBGm19opVQq9Cg7m1","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":"RmMVTI5ac4PM-QK1kC0pR","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

          true if the current rendering context is valid

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ajnk8v6AnsGF8yb5bPhKd","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

          The Path2D instance used by the renderer to draw primitives

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Pxg18Xu3pPd6kcbc18j2v","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

          The renderer renderTarget

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lk34N2t_6z7eWLLXG6Ypb","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":"xfOWCmU5-OXtKMzV8CYhu","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The given constructor options

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"80Kt-BP2jOMLRJ53A3sM6","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":"hoS0NpR9UIE6VkE41LCJc","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":"s_pPkWoQXneFrUMFmLn5s","name":"clear","brief":"

          prepare the framebuffer for drawing a new frame

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jXVq7ejDUYKOouJHnCbtI","name":"clearMask","brief":"","scope":"instance","see":["Renderer#setMask"],"type":"MethodDoc","description":"

          disable (remove) the rendering mask set through setMask.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jHpQcdH9tgIaH_wN3Shsk","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

          clear the rendering tint set through setTint.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z8k9UAoayrmRo0d45Rkic","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":"evGsg0PP0z1DQLPAgHOeo","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":"wUMxAXpy0h7RWWyj6iII8","name":"flush","brief":"

          render the main framebuffer on screen

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kSP9JCbXPuBWDYWJdhAV6","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":"tmd7IJOeRASXZxnM8V4la","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":"nRM-vPDu9-is51GdST7ra","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":"BNj2XNqEP2R4G2EEc1LQA","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":"T_8CgEJDeG3PvQxrR0DQm","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":"pa5j7Qb281-NIJ-wI42ME","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":"VSu6YqCX44-DRo4q8Ml1T","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":"HJQm1QoY0dVIxbf0j8ZVI","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":"Dkma5XaqByrRfXeDVHqNX","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":"2fSFYJ7cJDiHJNxB9iEzM","name":"reset","brief":"

          Reset context state

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iUgXcFeZAHZZH_oaLt4u0","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":"4CpOyJOEhS6_N8umTqfkt","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":"Jf6HdeIlFerAe60uU4Isg","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":"U7L7eY97vR0KqjsQEUe-K","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":"G7Te-uLAmf7o963F4o2Hp","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":"jt_i8qSohjO5VUgQovrwX","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":"KnvGlytSTHqK-AWsuO1Wh","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":"yb8ZlloQIFkX7wkCErF0E","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":"94wdhfYF29phEc9UtqMSu","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":"rzdwV185QzR0xB0f1so9t","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":"mJPiicFaC_F_dz3WYyHSM","name":"ResponseObject","brief":"","access":"public","type":"ClassDoc","description":"

          An object representing the result of an intersection.

          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"SZddMnCz0kifqPG41GJmy","name":"a","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The first object participating in the intersection

          "},{"id":"IyBPmXAOe7DpHbPj91Lht","name":"aInB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Whether the first object is entirely inside the second

          "},{"id":"dtefYQH6odo6wrSl3khdW","name":"b","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The second object participating in the intersection

          "},{"id":"x7_1Ekxpr9hsXHmkYEOKD","name":"bInA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Whether the second object is entirely inside the first

          "},{"id":"S4TSPfePGbn18pgoTpbYT","name":"indexShapeA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The index of the colliding shape for the object a body

          "},{"id":"SR4GS5IBk12ygm-nj9reV","name":"indexShapeB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The index of the colliding shape for the object b body

          "},{"id":"6i6DGYflkIyQjSYSUtr9V","name":"overlap","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Magnitude of the overlap on the shortest colliding axis

          "},{"id":"b944zyP8IrfoDKz5Ogo0U","name":"overlapN","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The shortest colliding axis (unit-vector)

          "},{"id":"g5xjUSpe3TbR9OAT2a5u-","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":"7qZLe9uBQ5xxGDFaUxhgm","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":"iejlIkicBYkPftbxV7g3-","name":"RoundRect","brief":"","type":"ClassDoc","description":"

          a rectangle object with rounded corners

          ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"0kz4msIF-tTGG0VymwnbE","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WKDpqVDDWkpwEZ5QSa-6v","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DlYLFTMuRh6248Fk81aas","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q5IJtd_UVFpvUAnlDNwxC","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5OLbp04K_ZnNCEwsswSCg","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5G8mwMrO7zusrEn-wgse1","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":"Q2P4untG91wKso9RGPJH4","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

          origin point of the Polygon

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vPFsRjm_z4ACyGPMvOvf1","name":"radius","brief":"","defaultValue":"20","scope":"instance","type":"PropertyDoc","description":"

          the radius of the rounded corner

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M11Cadtst-9AueJZRmuZv","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wzgZD33NR8BlqV0LbFMdu","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4WYBk89n6xAxP6tG5aXe9","name":"type","brief":"","defaultValue":"\"RoundRect\"","scope":"instance","type":"PropertyDoc","description":"

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3oQH_j6eBWqc5A9BRuHsH","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4oNZKJy1fnyqBQ6v04bGN","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":"ZCjFMBqOm8AtByL-ri6cx","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":"o0DmWaHkfScP7bv5ECi5F","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":"LZ7SkE2AnBrqsouMq1880","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":"g_lEX18qD1-Law3V7Bjlm","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":"avuT2prfMe1ozEY5vZ1Y5","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":"FB29yPkzAHrSA54Y3BuOr","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":"TphLP3F0ikJjRXbDod6xA","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":"7mjm_U6BDg4tflYXj3lXN","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":"PbNZ5bHnJOKihSxN6kqzL","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":"UC8bSialsEROe6jjHONDC","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":"UCFblNUacGttAB-4RYqyd","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":"GJzlNpsJsECygQfhbcGzJ","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":"aGMxfsQBJMj2a9NpfLY6l","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":"zNSpCL-L0dpRyGR34MSd_","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":"McukPXlpt6mooTlv55un9","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":"Z4BHYRjZDxtA8fWrF4AOG","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":"VDBLi-p45esNcoxYoFxCe","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":"LYs3hqyAwnNtObRHuY8QH","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":"Ft9Vy9yaWdDz-pI7fF9rn","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":"NfJl2CJmqsAbkSUqvfHLX","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":"jjgFgb45AdMpjgSQn-bOi","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":"SuIxAhA8eyzoJhu_op6aE","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":"p6YECO528s7if2RUsGmZM","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":"5SvA8Kuy3_hK8aYnCRIyD","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":"RMk-Ka4KT9PaTrFePLJmn","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":"e19DsobpgY634ZOvjFZp8","name":"Sprite","brief":"","type":"ClassDoc","description":"

          An object to display a fixed or animated sprite on screen.

          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"fPT_NQoT9Xxk5glrYBUrZ","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":"rKar68d7ktG6-R0L96EK0","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":"ODsSOIH5GvPgasB6wVGUO","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":"HiVArFxoxamMQrNS1SRrv","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":"cQl-66NT2AoHjWaIxhanm","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gm-XJ648sCTVKE5etavYi","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

          animation cycling speed (delay between frame in ms)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VPpg0SIKtdN9JtvT7Rszh","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":"yQeLocPKBDYJ16B03Hs5a","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":"2nHuVp3ywCpgptA2ckKC7","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":"Es8kGG7wUlRpVMIIPmZuW","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bPr4Fgu9Ia_A3b22ola0E","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9qvzVUTCCFEpEiKd3Joxa","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"93J1wDDt51VFEP1iON98b","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MkBgy2Dqu-7Gsm5SH0EK0","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_lfsYjyIZAS1Mai3xWaiU","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":"HNaHhzJqxj71_iQ2FeLzb","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":"NpWxk-f6hSLEDO2wSHZtm","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tcG-46X2fePYPbo3rHyng","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":"a47maq9f5sXaqnU9VzxYB","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":"iJvXXMco5udkTd3QLaCcY","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":"bASEoCgkXxr2zSB0T1mJe","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":"aiT1ldsqQ4JPrL9wI2q_U","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":"zzVhzpHYIm_6pcFdWm286","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":"bHiQobQ8sHeIaLkzB-sWW","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vRrTbjtUhsN1iiQuHurE8","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":"A0LZmb579sVMLGrE9KcKR","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1lIqM_DCJ2TRFMcLzaDdZ","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":"wENJyUZjyTyorurtLeoih","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-ib4dPFjIEd-OwTogwBRQ","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":"jUHMk_JkYysJdwe04Vki7","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":"le3BLT3QaDpoeF-kqjkUm","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":"cEqTcFW9qUMv-NQ8w1Xjd","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":"QUeXjIJsuqieyJ0RfUnnG","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VcZDruF0hZ1XnhHOXpPPL","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lP77_yxcyi3eSxU-WDm0b","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":"MUnr1OHX9IRp8xl1YJUba","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

          The source texture object this sprite object is using

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7x-ksIARCaZaCujGd0CBm","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":"eNkjnW9wV9aO9QTgNS-eQ","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oq9sqloMyw3PW-49ns_cq","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":"wZiEdJ5tTOj8i6rivG8aa","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UBrx7eIVziZE97WmPNJsD","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":"w9DjBx9YRAquZ09XVHc3u","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":"_rmDZSbOEj5FMYvGl_9KS","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":"lDQQtIrZvPDfw8z6tJpjY","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":"NiU3LI5Rs8rgXRuLHnocf","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":"xx_mnAG3MBpYGDHMp-he-","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":"FMrqdQWy-lfbcDe0PQey1","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":"pX4rD0aq88z6uAx6nvrhI","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":"1Xhmz4j9CMJdWEz1XjSgU","name":"draw","brief":"","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":"dESK8DnlwxkNvud52zyd2","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":"Vxw7Spb30KbUcNkC1E4CT","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":"fAaAQZyqRYrOTo5612l7Z","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":"mBhMSqN4fHm8ARj8dh20v","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":"QrOFpE1HVXLowhHOpPKWL","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":"yf3x2qRshgKUaKZdHVTBX","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":"rE0EuLK0FoAfu9ig27wUX","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":"ldZTExkhgurpqDanaqrUA","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":"Qs7NQLTQNrumx32fJljFz","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":"b5B1YFz8ctZUvgBaC3RK3","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":"hrKfjkbnxK6IeL2koU6hO","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":"FYDNp6xK_fpAGxZ7LXWlT","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":"s003nu-m9j4fIl2mYMQQ6","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":"yMQyFrx21uJ_63FGwJxQ4","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":"UziLLOKtNhMWdZ580g9Lo","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"zQ7AI7arOOYrBeOJLugSs","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CA16mwK1xaNrhKV5f7dpE","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":"jRAi31PemdIqMTLx5GxCR","name":"pause","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l0Zu1fXNMRKLoJujzkC8K","name":"play","brief":"

          play or resume the current animation or video

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bkNZ1AIa2G3FOlPvzScVJ","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":"o4hTsA93qIHtN_aWPjH2i","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":"-XiE06hkD2LvPLxZ6UvlD","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":"7czfa8Uu23K210Deux6hb","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":"Hyu8s4qJv8ZlwXqaPJo-X","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":"ldGwah-7rKesZylh8eB1f","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":"ZvQ-alvpFcZW-LRqFcGDK","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":"J0DBHF4sqtk4ejqyHZurW","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":"SkzEyj0EQM8e0FXT08NX-","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":"ws1HpNmAN6lOO0GXdS20g","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":"XKclf4_9eJRonQr97TF3s","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":"VrC9-Cvpww2Mdc6j5pdJV","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":"KW-sRa4sm9wXM6e5qkytV","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":"qSUTU-CQ9U0IFPl2d-WC2","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":"_AQLWTtnxQbdJJKjzJdDW","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":"7h0eYd6JFKESYGUdstEEL","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":"X19L_w0T_4pFnCiCuSJtW","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":"wDIZdtq5fyloVIHdQb2Xx","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":"L3KSclUUDtlNpsRNjC6Cg","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":"DOZpERT4QHTZglripDi6X","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":"dbgdtY-JMOiOhoiuxFpTC","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":"PmjRBkWKdBcIeCBGhKWy-","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":"vxGqkTHVAo7BVLCTdlti1","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":"itDRVZQvp3ewtYx3n3z4M","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":"YRuTnIt7otW7bebzWFtQH","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":"EkxaCEoReKMqFFqiXZkxm","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":"AEk7Qn3HcAjGRsmMJTFKd","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":"_hx9Hx431fuESR-R57Nom","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":"TBmtYwtf2oMETDTHk0K6E","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          The given constructor options

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I1acnkL_UeRxwl1cYugFB","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":"PeknOkMnOCy8r2ALQzASK","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":"hOnFuPc_KVm9R5_pIFZ16","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":"nxEj-sh64UItPu8xfpFrI","name":"Text","brief":"","type":"ClassDoc","description":"

          a generic system font object.

          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"wiwTtt9jASUsGZQ1vtCp-","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":"rp2KpjeegFYleGtWNUK8e","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":"W32Nv4NL-Ogu-mCNHy9r6","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":"uXJFCTMbK6BH00WhigwAC","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":"_oo2XQ--QLCHEM0ORbvW7","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":"W1KYPb0hcf1KsfD5Zm7K_","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":"3eQfx0jwqmjUvBQcrHe86","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":"c3Z9KfHhdA2xiLoe9BJFx","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xfacxVCaGdlwmx9ann-g3","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the horizontal axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S_p0cYbq93Gt6j9rYsfcX","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          absolute center of this rectangle on the vertical axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fJwZ0ofMFnYLjR0GBZ5Sh","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the renderable default transformation matrix

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QYIxvKtqVN6YNzUNOc2BL","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

          the depth of this renderable on the z axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JHDLeSs5sgzKfoDt9KAli","name":"fillStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

          defines the color used to draw the font.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bXnkadce8GwG8v57HElHk","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":"fnGNSJzVUzi0D0FnRaXXD","name":"fontSize","brief":"","defaultValue":"10","scope":"instance","type":"PropertyDoc","description":"

          the font size (in px)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pMVDXCvLyDGzFXhvulBT9","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":"qMo4LKYm376o2otsDAsp_","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          height of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gQ30PJxaffafOsk9Z3wp3","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":"hTpXC7OsL_pyymm-hnTTM","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":"9J8-FLuReS2a6q58eC0ET","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":"bJLdnFb43zUq_eFscNnI2","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":"1vT6O9m_bvVjj1PkI7qRg","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":"TqIDyeW38gXH3BRnLh8tW","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":"m83RCJxrMO_tN8K-jXPta","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

          make the renderable object persistent over level changes

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9bx-VH0O_gMyTxPps2SLs","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MO8hEhRO4UC6L1hojJDtt","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":"JICQrJkaEA3wZEY3pHBPT","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":"iLoPa7Ezv77KCHdwBM8vP","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":"1SnoPexPdaoGDEoM_waWM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

          The name of the renderable

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N4nHFth8koinGzI16_hhT","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":"kQOvtgkL372Of8RkdyX2B","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":"Kr0F0pqqhkHP6LciKx3ZU","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":"bq14AgCk03nqI7QR9mA4U","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

          Position of the Renderable relative to its parent container

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IuG9yQ2q2J-rmmCNsb2Ei","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x52Z_RQR7u_LheDxCAfGN","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":"3fp1LXsejhXR49R_E8CKl","name":"strokeStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

          defines the color used to draw the font stroke.

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J4HKmEHxJwl-cxxG_1Xya","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":"rjzZsBVS5rz3bynYpfrZv","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":"Yibbt-s7z7m2ZhqHv_VAZ","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":"-yACGNzf-ew8mtInllgzO","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the Rectangle

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

          the shape type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N5fIs6K1R3OFOhrobssl9","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":"TwfQa6n7cQD4mj9UMfE3d","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the Rectangle

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZF9Z5HMgJYAzGOaCICE8J","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":"78DQyA2y5TU3WApUShs2g","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

          the text to be displayed

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"khQlBiFYExEZ5U-YHP6F9","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":"9cL42wgbvs4fbOAltoblP","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":"Jry3YKjfe9mFeyQ1YHRlU","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":"PFhCerWjQSWP46jHWVxQV","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":"asqTfy_mTJWjLdM7mpLxO","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":"MnqCrtz-7rrNI3t9j2ivw","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":"WPQwhNByZqDWdeQFPs86R","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":"KfE7LaQoAaP2cAEM1dnl2","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":"bvwXecwZZvDRuzChSvJb1","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":"1bVlNs_VtHsn63eFpPFn7","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":"7_Q8yt4_q727pdZQkWB4R","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":"eglGlEetwVwD7BUwWnHye","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":"BWJgXCjhtFfR1auDea1mc","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":"frIiBeNiZB2chUPzipcum","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":"c-bNfR4lT0JDgAe3rt2RU","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":"1qaDbg44_tiI0WlBrEm_C","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":"LZ7KZVKmZQ0xW_5KMZDFH","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":"uawOWY1RxPtDxq4_JUszX","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":"dvFXz6YXnLlKHkGrc8brF","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":"_f7o5GsC2hV9wat06OY6Z","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":"zp6folcswT56WnMUM624o","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":"B9IBav55AVwcj_nLUoeoq","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":"510PWLUA8ysni99UBg72F","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"vCaJ8Ze981PZdO-ifu4ty","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

          OnDestroy Notification function
          \nCalled by engine before deleting the object

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VMBatlbYZ0_7IZkM0Pgum","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":"x1LqESFgF25W5H458IxSV","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":"wOR8n99xhjfG-w07dlylk","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":"-LfL0Q7pqekuJpah1wr7U","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":"lCNjM4vneVcuRZXxLkQgg","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":"Yjyj0lwI_pwNZl9Y1AxZi","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":"gF9Gllw-bxgGvxD3xrfJ_","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":"g9i50PhfxMkUMvO7rsUau","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":"-JU0TRk7H5sYTqWZ_JazD","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":"au6QPZAJDjaQ7dwBc5qu0","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":"F_QyS7IkGxsQouSbU9-Z2","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":"9pGhPSWgaeuhJCjTWLdg-","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":"7vgK01XWgqQk_6mB_QwJT","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":"5dqSj479xM_Y_NgKS7l-M","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":"OqDWfcvlpgoVCBjggynD5","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":"BYt1OJezyCo1bql_tykgi","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":"_21V3CMshMXfJWR1KKpsl","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":"O6oR4qVL6PD8FQfBGn4Ei","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":"jPmN0H5jKmmpd-fHGN6hP","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":"rI-8zIN0o0ydkPGcGT_uX","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":"hhFGGU8FQRkeuJJhTUBpL","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":"NHs_Ol--JkGkIIPHci1Ps","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":"5UQlUvoxUcNcKTACz6RJk","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":"bcGUTUG0MfvP0PBxpHiYW","name":"TextMetrics","brief":"","type":"ClassDoc","description":"

          a Text Metrics object that contains helper for text manipulation

          ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"GRz0A-TWBmPYhQZkDv132","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":"ioxhbxfQCax9XWk7aUJMI","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

          bottom coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"apIzsp1KOXgIDxUTLGhL2","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

          return the center position of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"anbA_5mWRs-MLAr1t4Nbh","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

          center position of the bound on the x axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"buCoo3pndLL7HUM1TmSIM","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

          center position of the bound on the y axis

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ffjd9ngyN0Zm_8ayvuzko","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l5miYtlsLn8UwTLia-coJ","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

          left coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q9FltxS7YXKMjLwk587Cy","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

          right coordinate of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vMCH4d20XBZF54wgc_A8a","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

          top coordinate of the bound

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

          the object type (used internally)

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C9Xru-f-wip3iIZNj_Qv9","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

          width of the bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r-A7RfMd03bSbVq6CrM09","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

          x position of the bound

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RtaQbWbNSpy8TS8HbnCy2","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

          y position of the bounds

          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BAFnqEb3UMUJ7ciEj7Z3z","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":"fYrliKKG9Dar2MgGGia_5","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":"ZKfGnpblw34PDcIG8sur5","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":"wO5Zr4X8fkVMOBCLRgTBa","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":"LqxgH0Y2y2soBqhS4TccX","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":"70tacM0O7-z5WB7QZw242","name":"clear","brief":"

          reset the bound

          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_TDUtCTIV8W4-mIcHdivl","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":"UF-AzmL5D4i_FU6zC5XLa","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":"TDplVIxQm68LvCmuloLK-","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":"0UqIzmlSCM-LhANMrDPE-","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":"IIxtJNeWnDF4KGaP1XkVq","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":"04Jb60EFelV7N7IAIYEbg","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":"COLGgMtZ9OWbNJ7oNyUpY","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":"kJIV1XgiiJJRnWGGwE7E_","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":"127x_yDiYlSt5AB3sThS6","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":"HVJeLQCxue6_IA8sshpUD","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":"WFDbHtVWCa_ojiNNLq0tN","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":"-I2KE8uZo7JTptg2l01Ds","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":"WtUZhmMhdBJta0JrNKxrs","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":"2W-4Q1OGtkzgNuokYjSUL","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":"FTIZuIjmWYcD23GWz7179","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":"cmL_ggJI3y0JEPmk8km8L","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":"5_KIV1jpUNs0U3Fij9v-3","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":"r2tNsCOSYYbfNUGlKhE35","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":"TqnAF_P1qtL1YDCbyq0P4","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":"wyHZT5c8472LOVCeNHpU5","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":"XVnsCt6Dbcmd3J4NVA1SO","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":"zUFigxdwTyFYp9TJ_7RMA","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":"jS4Dir0G-KIvnXuW1ZbfI","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":"ThIdPome2Z6eGiaMy9M1q","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":"Iub05UIXGrySYnrhn5qO0","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":"hUYiy8XUU2lMm6OIjcyC9","name":"Tile","brief":"","type":"ClassDoc","description":"

            a basic tile object

            ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"HGRahDizCmZ7N6SVcC1as","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RZqZIwZqDA4TRMPUkR6pn","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

            return the center position of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2EsAj_6hoQ7xh-npP1Qs2","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            center position of the bound on the x axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BV6p2dldS3I1M-zf8c6kb","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            center position of the bound on the y axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Deivd_idRZIXg-dkYE9Z-","name":"flipped","brief":"","scope":"instance","type":"PropertyDoc","description":"

            Global flag that indicates if the tile is flipped

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mjCYrwDwaW44Jy4iTHU4y","name":"flippedAD","brief":"","scope":"instance","type":"PropertyDoc","description":"

            True if the tile is flipped anti-diagonally

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"POBQQlOEKeJEpUS3nDBvW","name":"flippedX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            True if the tile is flipped horizontally

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7DlF9Lv6ozvqmNHEOLTC8","name":"flippedY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            True if the tile is flipped vertically

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RJk1KBDPvsKpiyuTLeLul","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dlKIQ33ajfg-nJ3Qn1isO","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Mjhr5qIcnV-So26r-ZYjG","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FCFV47wQFJGLydNUevWu_","name":"tileId","brief":"","scope":"instance","type":"PropertyDoc","description":"

            tileId

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qqGq7p5vHsyOeudNP0mzb","name":"tileset","brief":"","scope":"instance","type":"PropertyDoc","description":"

            tileset

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bym_p7Sp387ab88O8B4AS","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the bound

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

            the object type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L24zvZzipiYRPims2eJ6h","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2s24efizUH5TB5TEanKs8","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

            x position of the bound

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NpkvqeE13qwV-8Kuwo7Jv","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

            y position of the bounds

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wkNP1loISJbofiULLU1nL","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":"NAUlhb0BNxCCfZg7VLGKN","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":"3I_ENMZm6qgwR6lrY1tdE","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":"1WmYtIOQv2aMMWW2PYuPc","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":"4XjY94phod-z5s_6XdCmi","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":"KkqO0PNucNpEFmoIx9Hgl","name":"clear","brief":"

            reset the bound

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g_H0oYmuYRDnKb7qpirmm","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":"7bCYsFn3cQFTLYtFiZKLz","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":"OvVxwKLFKqsE9ZLi64GPC","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":"NgJ8D0iJBTF8l4uD6GqvW","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":"fv9A7BJVVrxkR9llss9G7","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":"KuK9F4J7DgV28STC9RR5i","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":"eq5uskqfegsoWHZMyXgil","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":"y9M125lyd283wMuLazjdP","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":"7QgODFI8bzJCrjJ6oFNzO","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":"VejfVBb57jSeFKdlkkvoS","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":"xxuI4Pc5QVjOwERuzlRx7","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":"2L-Fn2wI38rZmpgBpAd3c","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":"d_1znf8sjq-5ki-8PPARE","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":"52EKLd3Fg8EWm4IRIsrbT","name":"interpolation","brief":"","defaultValue":"false","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

            Enable/disable frame interpolation

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8rEwpykg8tj5GExg9_8jW","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":"MAz44lpKDlIgQdO64S1AO","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":"Fja7x2eDBdKSrD0l60VF0","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":"HRddw8vvKTFeBTrNmkuiE","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":"s6YsdkErolR6d1NDekwCD","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":"T8YdgJIUFa3gZSpu4TJC7","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":"fwVNYUk1KTTQxzr7sIJXL","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":"d7Q0lsfOlMUxp9dfTGiJ8","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":"PB3ZXuaU3VlhzBHurcASr","name":"TMXHexagonalRenderer","brief":"","type":"ClassDoc","description":"

            an Hexagonal Map Renderder

            ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"NkRHo3ETkbh3JU8QLKPbx","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":"i8ttFpS1KfowOmw4OzMeW","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":"sd9XUjYrZwHwzWMrIuL3O","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":"pM4YTShBJK8uHoOVa1zS6","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":"TA9ByJ8YEtI_k1a7RV764","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":"eSfSuye9AVN3sQrWLyr3j","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":"DPKDkorfkGj06be7_x9uY","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":"f4M8ozx640-bZMKZn2MQh","name":"TMXIsometricRenderer","brief":"","type":"ClassDoc","description":"

            an Isometric Map Renderder

            ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"wd5vEdDba0m7ce5f840Gz","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":"D4h7bYLd5fVFG8WBgNM6s","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":"7wxNieAzKa17Es2sl76_w","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":"dI00vTSavuVBPo_FqX7vQ","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":"D8FmtsOMBs39_Izti_p0j","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":"-A0lQXV7XCo4thNGEjiht","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":"aPb1w26XTvYQfKyyRoshc","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":"mJ-Ht176H15aKmhh31OyH","name":"TMXLayer","brief":"","type":"ClassDoc","description":"

            a TMX Tile Layer Object\nTiled QT 0.7.x format

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"SGvlkm8GU8Wp6pd4KzKYN","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":"7yTWdSOHTCWcroHJhwToG","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":"Q8z_vkOer1vN5WeJeOLZz","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":"SMsshzOtDzV9ZHuWd9Lbv","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":"fwpyMnF7XXdVQIJVOKgRA","name":"animatedTilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

            All animated tilesets in this layer

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tKUzvzjv7IF3_tQ_qavds","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":"D8D-_oeZBcZ56UyIwyiBt","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":"OlX-ZnRZERQvRbqJIg8fw","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":"TCcedNAipKR1-yIx00JPb","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VeUf6h3R5H9VzW_YSX1I7","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qEyls_Zq2S4mqYiojWacn","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yEmp5Im2eY38itJpAhfHy","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the layer class

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pn10UYTbEOr99G_vuSJCh","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aVzTVZPwk6Y1YT3MBMKR9","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ci_s8Wl2JKNhNXcOVdRxw","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":"y5Y1ByqFl4l7DM6LeyYUa","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":"5x3imhhLOErb3jAE70g4f","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VWl7MHM29SAf5acbIjf5e","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":"6kZz2xVrDmU7uOaMRNgu1","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Layer contains tileset animations

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yhPr7Zwmx6CyFtuH2Wcej","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":"BrRbFQEbphflAtbhpxb5R","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":"9xUBkY0CxArZV3GxoBJg1","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":"-ZlkjFA6cYwSfF_PRLVnE","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":"9YKeJQg4OmDbhMsNMQ_d2","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":"KfI_I5_vP_WCf6BefteRY","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wXf0Ttu0s2wFO2n9ly-kq","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vn5iCI-gziBtGnglYYt7X","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":"2VEsGsiUWSf3-SbcrCo4f","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dzW2V18Q0bc9GdfIwbsns","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":"VZtE2xbG5IXeMj7dTnv2m","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":"HeFSnwDsxFC3yajfQLo0l","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":"cf4fT11dPAhB3BZNOw1f1","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8TjMVelgKT0-PugqyajQX","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":"WVjcfNaV0zeIUYfy3iu_f","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-kWUNTg2vp8iVagoFrOij","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":"1S_Z4WNY6WKbVRbvf25GV","name":"tilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The Layer corresponding Tilesets

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CbMJRDLEumNIh5w9cWE9y","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":"wOvKm2wN82vuJ2z32ZSOS","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

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

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sj2dIDo8lzy5CXhaZmkeS","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":"nTcydkZe0KzPCoH3AXpqa","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PvE0kIvcD_kYm1W7XEDqL","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Horizontal layer offset in tiles

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vm-GwobSB9a9ge7plOEYf","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            Vertical layer offset in tiles

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lKQ05vRcJuMqDaKwybvrl","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":"UK725TesS0NUyUVuw5TMn","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":"t0_6AXszek4u9izhZsZGD","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":"1B7H4j4u8xTkzAaJtonJq","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":"mvTyHF8DNC70ieChX1pJd","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":"4ajugAeoPkzTT6yBJTeVg","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":"_kzSqFfKXu6ERWTdTEdai","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":"8FK0HfjxGUKk-BzgmHFEJ","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":"Qv_CNNFmqGDDoNORWu0dz","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":"TIdrajAVIdXCbE_9ioJNj","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":"L2Xhy5T5mIS1yBWQ1gO1v","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":"d8opBspI-XGCgO8KJ5U4d","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":"3L7QeU-4yXQ5yUxwNpEdW","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":"RNtqtcCE9II9TKMoufqEn","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":"WuqegTQ01zyLZ-3VFBN77","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":"Yo8EnHeLgupeB-h_ZuNEt","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":"2bXLdhHpCKPwLJpaXENwz","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":"sWliQoTLZuY8cJFiTSBD1","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":"BV-ukbkTQhjfqr2DtEaFn","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":"iOgKv3KdphrkF2z_UslCj","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":"C02LoK2RHuK_nSaOHqwJn","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":"DcIVgO35X1KFUCyeGbdsT","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":"Q9mNl0FNa1b9doJKJ8Le-","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":"7Kak8Jk5tZsL_vfGcD8cN","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":"2x8vYMMtXxZEte1MzAYye","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"QeF1oQouT6lPqQKgqkXU-","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-GIVUgKzhFjpq3G2A1lov","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":"6PZ89I7FvoZ_P9WGbjbmV","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":"7d4_O7NFoksvpd_QzG4w6","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":"3SgReFq1cAOsizJtkED2d","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":"7TN8Y10fMJKmX0iELfEj4","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":"UUIqJXkl8QIEcIK5RrNOi","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":"QvTV9kCSTv8vOtjlJ8h0W","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":"OTtWH6QagSZgK3w5iAKsJ","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":"Tj35zGPxQdx2nlGy2ZSKB","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":"y2v19lxEIv1TCE7fNdUBg","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":"j5KQsiVzXdmY_dj3PgYLU","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":"nkI1ny88Ii62YYYffbnWe","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":"-Sfa70LziWDyYz05kgodo","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":"cLjNJAIXfh2KALQjKC4d8","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":"bgvtrsRMXB6aQW-1kVcpq","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":"7ciXRtw2QA8Udoh7DsKWe","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":"4ZZCsNsQyewyO6KjOBhC7","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":"AtdR8WXL8Ww1H6PxEbCSA","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":"DhJrclXEsYTBg3UQ2mBLj","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":"itOx0aC-YeT53rbj-FeSw","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":"Ix-0QfPW5mz4z1wvTDSzs","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":"aaDepfHUrec5HcxKYYPBA","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":"4bO-qdMb_V6sEMU8cdWGh","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":"lQrFkjIgkq4QpKtsJ2Ii8","name":"TMXOrthogonalRenderer","brief":"","type":"ClassDoc","description":"

            an Orthogonal Map Renderder

            ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"kiK7hKjM_hW3otuKBDASn","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":"a6t6giNVoijxOO_R2eeT_","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":"TcmBBc30cLO2Q_cjeXuL9","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":"oit5pigNV6aWJCVm-kIWy","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":"0EKZtuaaHb9dWjK0EGILk","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":"s3KxO76QdzeHnAp8BATKM","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":"CJPG8kJyS_6A24aBVDQKy","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":"L6QtTk235ifySknqTYi4H","name":"TMXRenderer","brief":"","type":"ClassDoc","description":"

            The map renderer base class

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"AozKkt7Hqv-4NkILExGvJ","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":"iX78Z6vbOVvI20UJyCZcd","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":"NRMWOrDpvZdetXGZlUFL2","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":"X5PsPHjB8e1WEkHYAHy27","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":"_MMJHcYAnj7voBw18innq","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":"kXYQTEBisJ5qHdj8teBpj","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":"ONh8iPYBSd1sziG_Xw822","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":"t70G6KR_BbyrRibpKEYn2","name":"TMXStaggeredRenderer","type":"ClassDoc","description":"

            a Staggered Map Renderder

            ","params":[],"returns":[],"extends":["TMXHexagonalRenderer"],"implements":[],"members":[{"id":"Fs7U8O2V-YgNpaTmV_2J3","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":"-j02OnblxRH0rzqdjFAnE","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"lQIr3jXNqMQU1aX6znait","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":"cgqgUV4IYzVn8DGEJwoEN","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":"LqlyE6H0_8L8BKpwnJjIl","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":"YoxX7neXqF_vwjshxp4qW","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":"11B2nZg1WJ6v7Zzx3YpVD","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":"6taynSXO1NosZ9cjbKL6O","name":"TMXTileMap","brief":"","type":"ClassDoc","description":"

            a TMX Tile Map Object\nTiled QT +0.7.x format

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"UymKoTVSjrGZi4zVMr_fp","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The map class.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TeBlhHZSkZ1-DGByERraF","name":"cols","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

            width of the tilemap in tiles

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SE9M5eqIYXqZKVWjW-xOq","name":"infinite","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

            is the map an infinite map

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uGdHhdCi5NmYqyrjgWcCx","name":"name","brief":"","scope":"instance","type":"PropertyDoc","description":"

            name of the tilemap

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RW5lFtgrCdyGgHLMi-qJ-","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":"xR55NhnLgetvpxvJcXKD4","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":"n4RbGsbjBbmbCqDbP1WAf","name":"rows","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

            height of the tilemap in tiles

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FxuG_3skZkBsYOULvq0Et","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":"qYShFniJqURZNqELavCvR","name":"tileheight","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

            Tile height

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0_-R95RrKtSzPEjmok4Vl","name":"tilewidth","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

            Tile width

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9mJnaczxtgKyw71nxp9US","name":"version","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the TMX format version

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gbGaNoVnOX7OFYHbqBeod","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":"RXic0KBtKmVlJCwS03a9y","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":"OLQQwyfm6hgc1B-j4qE32","name":"destroy","brief":"

            destroy function, clean all allocated objects

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UL0PMMVSMdppmIbrgiz1q","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":"Q3aLGyLkWOwJgwltViTe6","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":"ziDi4N7oP-M5TvY1xEJkM","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":"7Dqj9E8dAJ5nd16ZXwfTo","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":"LOSDbnZqOoEJZ9XbbnIPN","name":"TMXTileset","brief":"","type":"ClassDoc","description":"

            a TMX Tile Set Object

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"6eanhUtFB42nPQVsSBfWs","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the tileset class

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vUWNifhUGDbo_VuurrwJn","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            Tileset contains animated tiles

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H9spPe9Cu6BjeH6Nibtt7","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":"M9BCmR3YqPuJHID-wGJsx","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":"-4PbqudBJZVQp_8ZPnmtc","name":"animations","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

            Tileset animations

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R6lhLsdvauyHmacihdlTh","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":"iu9yvIbZkefizVnJGWPuJ","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":"ESwRT7l_ey55riePEreEn","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":"OpDXc_0PaunkrNdBO3AMa","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":"KU2wqLx7RxPQAPAnylJzt","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":"raNCEuqg2D7xRQ5QnxIX1","name":"TMXTilesetGroup","brief":"","type":"ClassDoc","description":"

            an object containing all tileset

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"RZBDAJb7kI4klCEAIuv-3","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":"weea_wB655E-RuVF_sBn3","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":"UGaVDGd0523_Nd-iQYfTH","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":"oXkrns_EoHLF4buS2hyQv","name":"Trigger","brief":"","type":"ClassDoc","description":"

            trigger an event when colliding with another object

            ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"ItapNyGhmJSefw6x-Itxi","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":"s3dTAl7iKrSkQOd6N9tpS","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":"ok6TWZ2aEsJbLnSYRqkg8","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":"8L85PCR4m0pyjqkb8-0_g","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":"vs1G-1RW4E9A3tf4GkvSM","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":"9cN5orFn5iVGiilJdyFaz","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":"O01DDzfFmnaGGf8T9Qx7G","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":"OyEjHM75JtNhR38AyY4Pc","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g1PR75-phNP8nv1KIHVJM","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-3xlQWEj4NXN0dkEt_3dK","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lkLf7xy8Wx1RqM8ZW57_b","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sL63d7E6RYKUZOlNKd67k","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BjQ5l_vMVtwqcyL2KCWd_","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":"tUeB3b_gao8mtQbH5vbRH","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":"ckq8s49Uia-427XADfVqH","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QVG1YG6G2m9H_Ji8AojwG","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":"kfOae3TQNwQGJ-Zdn7jWF","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":"-jYJs8rVtdzpMlqVPk7p4","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":"6MmMGa_dMAjyQQvKBtRSQ","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":"Xb6sNFAQLRaj9Iy-kVgxT","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":"CZ2yoQq4H8ru7RxrsBAlt","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":"BGYoBC2PKxre_WrBD_1K1","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"R-GYPLqoqwnD69boeN_LL","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"56GDnBTP_I9v1U5_Yr0kj","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":"qDJ5lCEfwFCkDCWPUoW6I","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BFdbF3oTZR7-r-4G6iyrA","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":"vJOkwjD60EKp7TcAkIZhs","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":"LBms3h2Boyeur7CDxO9DD","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":"ten5tHIUe2HQtfto9YbKM","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_Cf7eoByx5AQ5qF5CbvjY","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uz3govL8rEkSa1KUfIBP-","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":"EL3TVzHYRDm3fRx5or6KO","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":"P2d_ARb4G5IPCPpy5WKlq","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

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

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"49z6lrvIssBpNp_xuWkUd","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":"XxS0u9pMQoL1cBNhSQtjX","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"acT6-ptIxRiDPDFdGRz_n","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":"o2eVD-aPGZEzL-KBMVl_9","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":"S7xnJgKRL4aFZbcY96tXT","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":"GcV0MnjVJfxCP5_9LmMEZ","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":"B3nRhXmuZIDt7BdE3Lqpz","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":"Y3aXkGKhozILksuhamzyv","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":"nzdUObSvqVptGL0Q7YiEf","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":"L5iLCtl5pPG7Hug5dDbzv","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":"o3pZAx8CcV9q0q6_Cb1rd","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":"ooZ5EVVgjaG7r9IQGEGsX","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":"L4rI7kdHcJiKknaxpsOea","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":"866xGkIa_v-BabVeTXD1t","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":"uN_LiGmVEiqBZAkzbOmej","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":"-gdD-XRvhelebytn6Cb66","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":"nPMzipHbxZ0rPuQtNSePZ","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":"dnX72SI7Ffrp9vQAVxMF2","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":"c9GVzuyvhqSM9dtqzX1XN","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":"oPJDSRSEjsXTpoJ6cGtar","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":"k9bacxdyWi3JoxMbuoBxD","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"8cT1_DWXkstVbCimfkQ6O","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jCw2XUkbfFm6SWMDRivF9","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":"guGO0yruZwkIFztIoJix4","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":"XiuGlJTFvndrReTT_r9B1","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":"-J__eecGl3Ou1GuyI86bh","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":"1tpi5H2AejaZebYytHOmR","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":"70UFLiDVPgY5MrdgouFvR","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":"J2cS-0-UkvK7nmtWlD2O6","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":"GqfXxTNa5Q9r1yyOFnD5k","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":"0CS2p2lEs_vMrh2995Z5x","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":"WSlzAu48pOMJiTkveU8a8","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":"r4juziEnMlBp2Xtyg5VRc","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":"BK8sjIDOoJtZMV7r6-m-q","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":"-MDO0Xb4v2HWBpQCWRL7F","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":"ekUOPGq_hV_HAN0la39o4","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":"vcHw32u-k1ClTXFWYLcUa","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":"rwcV_YNBPUucr3hGrCdiR","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":"dTCu-VfKdONdx8S760G4A","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":"TNhFB8oqTi34ydmQ6_iXs","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":"VLrq8GThnyc35-Yl5ZL3E","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":"MDqm81EMpjCaP6s6MgkwW","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":"wTxtG8A126Cvpduqnu03I","name":"triggerEvent","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

            trigger this event

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"r6iEP-9gWL8MUpJJoSwdt","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":"G-eWykkpfzKhXKxlRWx7D","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":"za-9RAi4ZV9_UsNly6ljM","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":"0koD2uUrk8XOKr2ylZq3c","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":"UllOt4UjTwJ7eZ-lOm61t","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":"obY29EvAxsBSWaV3Iff8Z","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":"o9GXFU2KecAarmqEO4OM9","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":"-KqFnWowIzwh9iF3epCHp","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":"7SARksqlmmkVPvFCc7MII","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":"WiJK7ENHNA94meLULUYc2","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":"PhxCZQykZOy4eoPpsBk9F","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":"Cbndv7abjEc2OXisF_7Lg","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":"UCbxmUW25BIiKq_XTb7OW","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":"Fws3Y-VX2bfSzJUB9qACm","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":"ucTHcLPuUGuGu8hlDadxx","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":"xHIc5i01vhKX1qABxZ7Sh","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":"m0t8E8utJ-G7u3ZijofLi","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":"so2WwLfNSwKtTst30RuAa","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":"XcZAe5PnI7YjYd31kxplE","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":"n_qW-NimiHl51Go1ZLSGF","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":"o4dYlO_vUEI8rdzEQvyA-","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":"FAgYz7iYu5R0fBBmPL_hz","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":"IGhx-F_d6tzczk5gqm_t0","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":"gLmsMiExrrGo8MRw3hJvw","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":"rMh49nsDGV0dxmL5nj9q0","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":"nOgtGptuN_XiFHUV6YyGJ","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":"BG0kHXAhsvXcPcdr2WEtU","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":"VU3CnepgnXqeW8ScaRvCr","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":"RqmEMvFOea67BXViaxFnU","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XVbWe88xTJXKtS5m921Mw","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vb9QD9fmcqm9NR5Tq_94T","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LQ7KFdwN_d5CtZZwqRl6h","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":"972-ZhYkAU4MOLIkd7Nfz","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yF6CioImM5bx0YRsBTzxl","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q5RKs8f38pljEGQnmGc6H","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":"3BFsxTYimz5qPuD8B6SdB","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":"4YoMarQKNkmjdTepsToOm","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":"1qF3zmfSgTrliifsJL8bZ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vX1cI3DaQ5MetNKISy_zy","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

            Tap and hold threshold timeout in ms

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eR9ajMMWr0qsAeUzYMz1-","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if the pointer is over the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vgs1z5slM83F5gYcs2KqZ","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":"jyT8njvD35XF8d7E-D5hk","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            object can be clicked or not

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5xfQr67UTAkBKtKVcYG3k","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":"tdF4DQ9hejQL1Q4UWcaiv","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            object can be clicked or not

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UOHGOP8_ZtD_X8eXjU73-","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":"tRREHzCc3Lm7INwW5ktB3","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":"oQBC5j9voBbLAcdZnWqkx","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":"cCpifuwPSJATRJ6Yop8AS","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            object can be tap and hold

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9XZYHWcygBFbe5xapy7vt","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":"hjVARjkupGycvQUOOxWtX","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LMfxLCKClv3JIrchRAr3H","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QSIN3Xtfra_TM80vhLRt9","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":"rdqH6qLNa-hYsi1AzYrRr","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tjP8zej6hkx1GvFBX5xH9","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":"golVKuN9d0U99JukG4WoR","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":"Z4m8TKsWfEVJg09yVL4rB","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":"TxNoB6eInkmXreM5mklbh","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tqp_kS-FAlemRNs1_w45o","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":"yq62dlpz7LuGmBXJg1u9G","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lU0PqiRGFjvuMaRcLQFDk","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            whether the container is the root of the scene

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RbVNUrMtlYcvcvm543nIk","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":"oWbbg4nyUITE6p49nhbPt","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":"FXHXUJ4tKqwqv3tgvolV9","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":"GkSZsdS8BC9ZtnAsRHUAg","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

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

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lPoAyUwXLhFd1lk1YAZi4","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":"qe64eNPhFF88YvCr88_06","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XtvjueQSmRJ-x6Qsb9QIb","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":"GxOT-Hgr4-TVgNvgdr2vX","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":"JEOnwGGFMHyfwxqI5qMOX","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":"WzpIDg8QUh0Hyu7HKnK9t","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":"MaDpH-6XO6TNZSk8ZO4iB","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":"EsWFWujLOpou3JsqsJnVo","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":"UqZPaI6A3Mc1yj9RhefK2","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":"IJuMFh9p8dymGphFVjuof","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":"o1oj2WJRGk_xQYunDus8e","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":"V-l8PPpUa5dYL0shNsWR9","name":"draw","brief":"","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":"mh8Aq8xSiC8JZkCYZ2nG1","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":"ZOzGekzYBeUYc2iVgJI7Q","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":"TNhb0271_APUSyR6Jy-QO","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":"IqI095dJhjBmRvkcWpx8P","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":"A49Sefs6CW3PLZ6D0PEc8","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":"FMYjZJGvK4-lPscGhd7bv","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":"qyyHPPbuGNCnO6_VF4oe3","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":"5xQG6NjUcH_Giuito26Pp","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":"2kOrEay1AASF619YVaDSE","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":"fzxhnglMW2O122-K2g9qe","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":"xAN9rnN8Dj7KhT0wTt107","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":"u3lRjTzl-L-mMaZgiEO48","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":"AoX6WSH4IlwDRWOUWP7l7","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":"fOyzMnooeHpPDIkojAZ4X","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":"evqqHErdj1uo1eO_eJfsE","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":"NXNSl3EE2RBV8mpbJHBHM","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":"DO0W2xMgROfJVzva02y0K","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":"YNgebvYXbC9ig2m4nv_j5","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":"M-OzyCyw7QcC6xt9QwasN","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":"w1GWXps-gj6zu-yifYTM9","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":"5RxWVlsNuJuo1oWuCtv4n","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":"xPYaruYd5_1GD6zGyLjtj","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":"RHjVH2-q_U3EQH2GYsbuR","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":"G5a0-3TIdMuPefR-aZ9WZ","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":"cwyYjox7DnvmEiSRowbTA","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":"fZaf4zS3s00nfC_5Bmv7f","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":"yw61kM8Aguc45-L-9xD-j","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":"Cf_0pRFkxKtMoULIUeoOW","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":"tPzknUkZLTZQgDbD2jxVP","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"31WrbN2yc7ZtEpQbEoO3G","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uF8Zhb5NH0DgJ1EpAYl4H","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":"7CGq0wnBadOtYdKIbml8E","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":"eLccSZ9alfl582bv0ojd1","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":"99CQ1VB6yY3aCM8EEzOCc","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":"1_97aXV7ljTrqgApTUCDb","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":"O-ZY-Y1r-hADFGG3YKE1a","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":"2gEPNgA_zvxxwxyo57usK","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":"YBJc3fI6N8O3fHIjuQpAs","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":"3JqkntpfpPQXg5cUKYmsq","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":"eskXJPALGp9tchSuEDlVl","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"6Y2rJYnL9I1O1iEUXYU4J","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":"rHJbfQc2YZIXoKu5Ye79C","name":"reset","brief":"

            reset the container, removing all childrens, and reseting transforms.

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jFvVqowexP_4gyuJSltF9","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":"BhaZHPyYKLjc5mnIyHPYs","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":"4zrDVJA5ixT25uI5FHGeo","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":"NPcmn8vvhNwyN7RqxdNb8","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":"UFxwj250Cs4_P0SUiGzmf","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":"Hmf_SfAzZqp4RL9Eua9wA","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":"e2LxORsy7aMI3fNa3BaPA","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":"6RiRnOJxgLJLPfsiZ9O_q","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":"4b0HC38suG5Xos5q5jI9_","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":"XiIFEsQdWIj3ny6UQ8jpx","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":"b3NcLyyEh9e6fm-4pMPdR","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":"GG0kQF5LUy5N6zUncUWBz","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":"ehd5Vkyw7HDc1LEAHFCa_","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":"WL7Ml1wsgJpO1Kosa6xcj","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":"Cu2Br33WUnILRkyl2eWue","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":"2XiQRA8c865XHrBnrbMjf","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":"rFSAwzLtJtsdSqlqq4mNu","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":"Kt5VLm57hx57vTD4xP5E8","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":"jh_Dev3K7wiU3EgwRt_5Z","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":"FLexzgduvZh4LaUpCh8fc","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":"-sC6FS3iJrE5DSY8XAn8F","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":"d3BLBtrIEGFWTcDodl7qT","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":"iTw3FIoTxd5PZpMXRwzSj","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":"kfiRC-ksGvS1LXzhSefmz","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":"cSUFC-rKcYZ1WnnIpKe1K","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":"Nc1-GvCMqy2sEK_Ibdkhw","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Mtztj0Iv7tOZkfnjaYsqM","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

            animation cycling speed (delay between frame in ms)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yVFXxvUZwPAPthvJVhVtF","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":"kfZT5pEOmx3mYeH7OJFHs","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":"hr8hz9kTXKBCwauaiZU4P","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":"c2cMRF0ZLl4gkpLerkHBq","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UYlQxEakg4xW9Wq38tvRQ","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oU8pjKBIMSwGkHOoh1oWt","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zXCGmczFNEDqPasr0Ntxg","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iKExsIg7WM3N7GSvlnjHb","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tzz7IRrTrjSiTCMf6YNU5","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":"dRsUzXBTUdo4sO3qiCF9D","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":"BrjWbpKHwunc_W99Q9RrL","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qgJ4yBZrn5j0gwr8ekldq","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

            Tap and hold threshold timeout in ms

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bfedqdoSnKd4ddP2zeQQ_","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if the pointer is over the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OcXX9w0Q4RCj5ZySCcaB-","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":"QgKGoWMgfevQgsiP2SCAH","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            object can be clicked or not

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q8v16PGHHHDiPtrLhvq97","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":"eUbhesAihhhxmxqTT4Ovz","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":"NW01TdYkGTI6wAqvn79jZ","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":"sBCuMOK2vhZwrF2wC_x-p","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":"7i1BLGtcPrgQNEzy6qgz8","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            object can be tap and hold

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AxEFu1wKODW8HN6I6J-LM","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":"d7L25Tqn-ifMS68mmqnV_","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WHhEZX5GltVFYQn29oIzQ","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":"GWN5NCRBr3cDgmjZSBQWZ","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eU4rBFT8-91qc_s65WWUT","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":"2nh1TFlxV4am7uwhbBuKL","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gx_1cEWTAMXgBxxidb8zo","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":"6lLZK4SNdOv_XR-_z6nFm","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":"d4DyTXB2hnnkGxMIvJkIf","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":"8nd3eKq6zQt-XP5aYvrgN","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":"cDEE2cZy8bVLbsZpPh7au","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RhGgCGhW8bkH-_ZEPvseb","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jOK2OczQ4BTsmRhGiVdS9","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":"5tpcBXcKOzvTfNTPKwZuO","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

            The source texture object this sprite object is using

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HpsWk9OvkLpcIyK5A8zWG","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":"ckyFbuY383DEEwf7iFITN","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

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

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"igp5X9JKucdmfDP8kWJym","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":"YxzowCFkkFqo1yQFYGu38","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iS4xf7WuSGSuGFqf-yV_O","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":"ZQ91QPHOYGIRMJZM093NR","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":"FyTYBJqXGBlNpU9Urh5-Q","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":"ZpyVkbzIexVMEbOpK2daq","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":"C-GvaxQWfst-rKVWz3aCU","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":"o9AJ0j78kkCoyniKQjXth","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":"tw4ziyaXginKaiLb56K7H","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":"IAAez6xJZ5ePmlpAVuyas","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":"KG5adM7Z6b8MU2IRr5DCw","name":"draw","brief":"","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":"Cg-1VxMcXJ4L6LhLgNlUA","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":"ZrqZVrteAPRWoK8lB-yYi","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":"QxZOBaxPThDBtnnOszaLI","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":"tg3b0949aKdHAKtuFmJRH","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":"I_84DZvOhLd9rk0NxV8_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":"2X3bdaOYv014qiYM2mqNw","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":"goj2DWmnL0lItMowhcUK8","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":"Hrl8bhMNaEjVEJjwnBmFc","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":"4j4S22DckcZVW2yB3F1Je","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":"s4wh0YnnNDtN6Yy_Mn78R","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":"CGesfVD4GanteZ0xTnrKz","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":"g098nwCOR8f2_A-8zlTJb","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":"Q1bRHxJdXIVsqOcVq1qjz","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":"A3TzOYOaLQAD2R_rif8OT","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":"qAOQ8dwBah0mq7t9hWLcm","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":"xskeZh-5s1jXT2b5t5tl_","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"dYHYpIpjaksb6qKXQpK6s","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-Gj071-7eVc7MnZZat3RM","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":"rgCIDNtFC7oMDH3CXeZhq","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":"wSBwpjySZIEPBgTWfrnAy","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":"iTNgohyESv6VPilhTOr7i","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":"vMqi7WCJCSZ3-LjGk_t7T","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":"OS3UAkFFXHkFPaj-tVyM1","name":"pause","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oBGcIR-tdTa3aNWoAKRC2","name":"play","brief":"

            play or resume the current animation or video

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F2UJFMKXqOsQr8pqsXoY0","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":"mFwp0-0tRClTqYyyu9U-O","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":"diFfjJQlrR9clGg9N56b1","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":"J_Sh9QimLG-Mh4fKnXazl","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":"7bGoDoR-dtQ2IxoVJw4ar","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":"JLmVNc1mO19e4Gj2QEFNk","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":"hiuvThB2CnuoiD8mIdiYS","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":"tfnbEqrGmFTdeMbsQxvn1","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":"8wjBLa9ZBJXsrvO28IgF3","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":"WnLpUtWTilqKR7jeDIxM8","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":"RILb2W5f_sh292msJS_Rc","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":"kLW2DLtWxi0ZMgoz0K-nP","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":"2jGEVSIryWAhz6Zbkbux8","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":"NKYluyAnp7kwBje926794","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":"YiXOy0UZWtFquX9ZLzfMt","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":"LZ5oLy07ZKrPZff14wTku","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":"muKUtxQ5yfdlR0x7_D_oH","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":"-e9N4gwOlkuIvWx3HQ89I","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":"3A9Q4WNrNjgs0Wz8_9imN","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":"nZV7ORdrSiN21KuD2Mzp1","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":"BcOwNZDok_t6xyVAwF67r","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":"iTRKla_Nj-EBcp9FPmnZr","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":"jstUFmJuz0X97SPK-pFnr","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":"gM9ezdNLJ-QIUWg5pA6wp","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":"6Ol8J2lcKLVuY9vR2dM5a","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":"NoOtghzUKA2vZwl7M1rFV","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":"c_UmcYKyEZ23Ec3YqNSN_","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":"f_yPUyuAcoZZuKvfw4KhW","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":"PIC_upS7_F-bB5_SIPL6S","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":"4vIj2b6nRHd0DVrhPKPR5","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":"A8Xbe6S_ler7taywaLrDp","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":"aRtnGj0H98Vr1fR9NalzB","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":"_JAM6WwbpgzD1gZ83LDi1","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":"UBg8etYElD_ROfzOYOhon","name":"bindKey","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The key to bind the action to

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rIh9qrday2fLCo7WSElro","name":"bitmapText","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the bitmapText used by the UITextButton class

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HCgCThMREAvnEnZ95EdSf","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":"SbiWHLs9ygwD70KrVuLB1","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":"HlHls6-uY1GY-GN9Z_Med","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":"lZDKrBSD52cG9qVnEojEi","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

            bottom coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bf7cuffnSwxba0cT1Es06","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the horizontal axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GjZvkK1Ky8jGf3iR_EcEO","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

            absolute center of this rectangle on the vertical axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SBWnbOf_vNvQYGqH-xx8N","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":"lqGj2GpmzQxhGhplIgj0x","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the renderable default transformation matrix

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7RxS9zPZEU95AhcezpljZ","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the depth of this renderable on the z axis

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ihDeqUUS3r9V5cY-1ZNNu","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":"BspZoVXWUor0Nl7L4xlm9","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":"XQV29Qy31yTz2tJ0r8fK9","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":"xEjdwbuM1MYx80lqpNtW7","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

            height of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ABP8LfIzMbq0HoPjp74ug","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

            Tap and hold threshold timeout in ms

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qM7ZTnOZBYoOIndxq_62t","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            true if the pointer is over the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kLr1p3CNxrPvCHG9a_Wrf","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":"nzD3I1DkAQSQ6np_K2vBG","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":"30BVKxw11u3fzau_PwHfD","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":"buHAeAGO8GAILPfyMV6wB","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            object can be clicked or not

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PLZUGpY5blk4wuyq_zglo","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":"VPQoL1gHS0jkZAUQ9nFzV","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            object can be clicked or not

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W0e475gBitdAhGX28e9io","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":"eV3QGfN8AxpnDA-fB4vq6","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":"wJtEyKLJA1TfXrs7yDAhX","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":"hBaa__gqSy1csbgD2PsiP","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            object can be tap and hold

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MYK8cnxVYkIcHceMBmrtL","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":"mEBeVhftk-OhW6JJ16-K2","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            make the renderable object persistent over level changes

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VmasfG5rz49HN6urmP-hx","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

            left coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yHQUA6koxwsggGIOhcu3Y","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":"f0YO7diU7JQbPNRp62Yrv","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

            The name of the renderable

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7rFq2PSRNKPtg9bP4WD-1","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":"AwBvy5QTmGscx7UNnEjeT","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":"8S2yzVu5elJl-MtRxIypm","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":"eAnabAEmeChUt1rJGDdES","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            Position of the Renderable relative to its parent container

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JZge8Vd5T8izlJff9qEfG","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":"5EITk9WpqV9s9wrSwiuF4","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

            right coordinate of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UXBtoObkcYdjItjrAkpVc","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

            whether the container is the root of the scene

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A55QAldD0s_EeT3zLEZtT","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":"iGuNb9l6Y7ry7ayTbddhQ","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":"wfUI6GKU_ZN_J-gQa7qkt","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":"oZrrR_s3AX-Xt--gRXuuA","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":"dY7OmuakeyIARfDaPQzlz","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":"AeyDJ1dtzmbDZ9cG_I3Se","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

            top coordinate of the Rectangle

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

            the shape type (used internally)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KW2i-Uzph7ed7W-NXUKBA","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":"ZItnqZbWQJBzSZxG_izyW","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

            width of the Rectangle

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zviELzG-yI_VJrRnvCgrC","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":"AkQJ9Jwo9W-Ij4Hpvft7T","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":"v-xtsIXXdQ7vnExrqRlPR","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":"UonNNKWaAaGjprBcir-T-","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":"6Ux-aq0nV0LUeDOyS1hbo","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":"cDDhti6RJy7_GIYlPwcEb","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":"bqLXBa1bC7SzPrPrI5IgG","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":"-xAxGuMa53QCtZ-xL3V1w","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":"gah9nPM-pXFQe7S5MpLHG","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":"x8PWftvQ_T8jtVX6CUrbE","name":"draw","brief":"","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":"mk4WnvBtuvVPLNeQ0yCq_","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":"GVxJaAtquIEcPqG5syy6m","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":"EUGsyzocZktx__PptxHp0","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":"fGYfv7GzC0iUEHYWej9ea","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":"yiKMJgTkL1j-w5My26MRs","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":"eUhHAIv1e8mU2DoZpRibE","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":"O697CIaLb7mo4JowIaxxa","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":"qwv0eZzEQcXWS4sJRWiT-","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":"u_i_N1PPV6FTU8DVYD9l0","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":"OF7nbFpDrv4C_7HsX_Kbh","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":"E40T9oZYAAYhW5AKBoHjL","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":"-MsxhexGBiaK68XU0-Fb9","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":"0MdX0E9gt4o_o_LuF9C4w","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":"wFNFe7MB8LzFWCQhEOGjA","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":"PTYtdsj9-CsQ2E6Bhizkz","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":"rhTq-LofaLCowKDs1RmkG","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":"bgaziPWn9QBwzTV7KGz2h","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":"PUtyBLziWL1XMor8Eg9MH","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":"p0Ybc1cuJSxFSOSyUqKNX","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":"eXAr11ZM1DaIdb1sSGnJf","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":"F2EaNBvRUivKGHj8wZPXg","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":"wEHQX4vLDIGR7EcU_6mBo","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":"EVG553z6OXS22vzJzZ3we","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":"5_oK7OkkFy3AfjvyHaRpT","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":"Vfd4ocLE_00aFDJG3r_f8","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":"Z6Xxqjf2m3kCS4yxi4C4h","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":"-gHqPoiw98HkWgnQTzL27","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":"lP5VjpntlexVJ6sOrhAvV","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":"QT7dFsD1l9TSGUsEs1SZ3","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"g0XPjDCJwMVPrMD7F389e","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

            OnDestroy Notification function
            \nCalled by engine before deleting the object

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sCTF4c94nzrG5ELYcuCVU","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":"xAMq_eZssVxfLa-OW03Xu","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":"EI8GkM9Tl7teQZOPVdVU6","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":"SJtN7NbZnjsRYxcVWKuPq","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":"A8ddtemgIuva7-tZjYbr5","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":"8oTT7xukgO-AMQK1bO4s0","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":"8aOYrjr0ht7tYF7jghWKg","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":"k8HJ9YS_GY0M-OhbPspTY","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":"DS6qZOvD1Zy05lkHk7qnh","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":"1ALy3NX7JwxokU_Fe-FYe","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"ZdcMT11j8Su7tiHq-Aj_w","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":"zL3PhBgTcn9RSJk19QFOC","name":"reset","brief":"

            reset the container, removing all childrens, and reseting transforms.

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OKPCquk0uj-WbbK1Pd7oH","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":"AB5hc-BXBKl4YIqZ4EBun","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":"fHIiRUBrIpgOocN_APc93","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":"YaQSVhs0mcsQWp5fo_H_m","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":"BGg3uOeAVbijIswpsSegW","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":"ABeW7PZpp-otdlRjY4rAc","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":"IdTmWbwygJj7UaKJM8bJz","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":"qBJd5b8sm1RYFGF90iiZp","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":"xrJKymecDx3VS4R62nRba","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":"uMNHlOSMsn51D49KfUPOu","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":"GYbgxGCtVeXbZVSW_dOPb","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":"O4eZWjF3TjCjL9r7Df96N","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":"yLfpP3uxvWY6SwaccbW2S","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":"mrHka0s-Ex1UqLJzqUctg","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":"1blcwQI39i9t2KH14XKEf","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":"ovMc6T1tNj3lKxr1_il0F","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":"NG93kb1_KtYLuYeCU3-Q8","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":"DWs4TjDLBJcdphDV0nH-i","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":"6W7EAicGkNirMDN9z8K2O","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":"yor7T-JCkTGeAysuyfoj_","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":"w1DPBdhCZ4hZ8SFRnOhRV","name":"Vector2d","brief":"","type":"ClassDoc","description":"

            a generic 2D Vector Object

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"p3OtEq_7apP4O1PknLycH","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

            x value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XNmKPafj8L3qwFjh-8ZCy","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

            y value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-KJYZ7QJOt2H4HzPt_y8m","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":"mKqghHUM-9Dls4G0Olxya","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":"VPdbZI34aB-CnMl0KQ9fH","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":"hj9dEf8dj92PdUvKw3xpl","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":"qxUwiKHidwOIfre0nuEGn","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":"OGyygcFqhU0-Vcyn9XMqI","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":"f5nfSvFJlTH_qtinK26Nw","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":"bNuprQbbtEe2GtJszLMqW","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":"IP0mJvAeGKmmlTTs_vveT","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":"cF-loQa59duK6mta1Dkji","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":"WV7U-C9iQGNu9PmXXNLwz","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":"5S3f_ML3LjM8DR6ByluK4","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":"WQkw0-cwV5RYLBv2zRNC0","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":"y_rcuWz-v6BwQ75B5enJG","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":"rBST5dLXCo3PGbKlpA0HS","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","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":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xrxv1MHz9eFUkKlYHZ1mY","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":"Ry-ENsTP7aR1WwXkeL1k7","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":"Jcst1JNACOImiAeDv726b","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":"oiX5XdejBD2oV56GUeaYt","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":"ddgyLWExAaXQXtxqW2oPe","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":"6zVqOyTtwYncGsMF4zEno","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":"-x4aOf5WJQX1dyDDZ9I6Z","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":"pxG95OGLd3G-VP0Xm0fd0","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":"wK032il25Bb2lHDesQmF3","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":"8mEsngyb5_4QumInxcbRx","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":"G0qwsUu2DUbeoqA1-hoLO","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":"eKXy8rm762yy7CUUj8Gvt","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":"oGMy7yBMtTkdbE_DX0fZO","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":"PICidbhtwerZC0o07l32C","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":"QkCmYJ1eTYo7VWC2GfvG-","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","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":"h_JzBZc7iRadktX3uvWk3","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":"EBLL_iIIOJzwksTQJeBe0","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":"mZMY1AE_AKpLkB9kZeH9a","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":"wueqY4JIbNT_YzGkAwgqQ","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":"x_W7ltfJKz0WfIOY6IT9E","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":"QcXCWw6csAikOACjL7PId","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":"yY8NTLSwgVeQFr_8IRQ78","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":"x8DCHhPZDQe6muYDLdpc7","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":"aKbn_KYJ6xKDFlN4HtYkc","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":"BRbCG-exEVZmGdkach66z","name":"Vector3d","brief":"","type":"ClassDoc","description":"

            a generic 3D Vector Object

            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"mH-VVj08WbKexwV6C2V67","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

            x value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oiqJewxerZlCzCGO8G_qC","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

            y value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jWOWYWnxJvQXvF6RfNMYe","name":"z","brief":"","scope":"instance","type":"PropertyDoc","description":"

            z value of the vector

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UmabpLFzXGC0G_b2l-xww","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":"-iE9XjJj9X9jW5bYQ61ai","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":"_wv7YfxkYtDWrrctzKi_y","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":"uhPOP94QRFj38SZBhEIr7","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":"ksvsRAaKzYTq1Z_P3pRKx","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":"X4G_a0iE7KO-UC2ydmsKV","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":"kRERDeCZTGZvdLGUjUy6X","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":"U6a_UcOUg54retPzUv5Zx","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":"nrmqvkMnLtd-K2ivhSAFl","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":"8lbHhzEhx83DAd52-vLbf","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":"4rHXrpkO9ZJmhHXmAVQD7","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":"lg-k-2PDJUg7Av4glUF-e","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":"RbjoX_kMnJyB_Y8Ln_IDH","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":"oqPcnAGIr5oA7UYOUtOGQ","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":"mo3h7TwDsu9nAIZb0VMqi","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 | Vector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}},{"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":[{"description":"

            true if both vectros are equals

            ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xM9HsJoZ9qciGnKRdKyV-","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":"0kmdrkAkKOMO5IAeNTKec","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":"ViJv-E9zOCQNTY0-vCA1p","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":"EGwguRZDX9cw-E-Wpo1Da","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":"Kmg5BsrfZm5o9v3jlRzFp","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":"e8WeRMzICUtyXR9HeotvY","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":"uKfJywtc8w1om_WSSewiQ","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":"6dSREpn28TYy_NGgOvhbQ","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":"EHh2_R8hIcntrcJqBQpCe","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":"c8ECFlAs5FGIyJUFe2JCd","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":"7toy1p2bhrX77oL4ezh1i","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":"HDxHExUgkADp1wWrz6OS1","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":"DwZ_DXRN3nL6Qkt9fvQ5E","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":"kJC-psryNifHo6ODvEYhI","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":"54ISDcd2SMZ94l3qu9vGb","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","kind":"canonical"},{"value":"Vector2d","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":"B7QFAoGAhYxSFg6-boJKv","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":"k-XiBSQWoL2jjFoPTGRNd","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":"OuzNVB0Lk2nNI4aNu2s2g","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":"5mJ97tWATQLRUl3YghslZ","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":"29lVQPR6OkgYER6NgiLvG","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":"Suk4e50D2z4gw8QtyY6E0","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":"bIoE7Ztao4U9RKkCdmOph","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":"JaGd1Tn6PQO89eebnOhaK","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":"aBdtPa_8nYzwz2F79S9IC","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":"lULIO1UQMIH4sgeTLGGh4","name":"WebGLRenderer","brief":"","type":"ClassDoc","description":"

            a WebGL renderer object

            ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"4qS2dHMNKigz-8HzSNDwa","name":"compositors","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The list of active compositors

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d-thuVcNKrywpQxcsqPgq","name":"currentCompositor","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The current compositor used by the renderer

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XtoLwpcDFbYfYk3nQRYBj","name":"currentProgram","brief":"","scope":"instance","type":"PropertyDoc","description":"

            a reference to the current shader program used by the renderer

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pFOB2vYur3klPzwtAmg-a","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The current transformation matrix used for transformations on the overall scene

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qCkSz5ybGyoBk7Vu1QmYy","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

            the default method to sort object ("sorting", "z-buffer")

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lqycNZlO52BTAIdQbpRUE","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            the requested video size ratio

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AbQnQvgxxRKwNnC7vpwOF","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The WebGL context

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6qIA1JJ6-Dmp9uPrgpMDf","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":"zxIohGmNDWV0X26IcHZNh","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":"cfkfiwzwvu4ruG8ug6B9X","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":"sdTo5WQkpaZCX7Qlst8mx","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

            true if the current rendering context is valid

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aPkbcbx9JRcIkIhjw-9DV","name":"lineJoin","brief":"","defaultValue":"\"round\"","scope":"instance","type":"PropertyDoc","description":"

            sets or returns the shape used to join two line segments where they meet.\nOut of the three possible values for this proper...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9R_lkyzRalsMyxvah1sup","name":"lineWidth","brief":"","defaultValue":"1","scope":"instance","see":["WebGLRenderer#strokeLine","WebGLRenderer#strokePolygon","WebGLRenderer#strokeRect"],"type":"PropertyDoc","description":"

            sets or returns the thickness of lines for shape drawing (limited to strokeLine, strokePolygon and strokeRect)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oJ3sjsrMYGvGQ9RAOWe2Q","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":"7N4RKrDdSrS1592-diuAp","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The Path2D instance used by the renderer to draw primitives

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xyx_xlgcmzvpXn16xU26V","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

            The renderer renderTarget

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l8bPAqOJlMgN4uCYldbi_","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":"SJe5wHJ5MqJBA8RkHOF6v","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

            The given constructor options

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dPh5cF3TQ6_GsBq-krv7X","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":"6Qd_9ABisTUDsJQTeeUJL","name":"vertexBuffer","brief":"","scope":"instance","type":"PropertyDoc","description":"

            the vertex buffer used by this WebGL Renderer

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"McDqnPr9cyv-moAFFK86_","name":"WebGLVersion","brief":"","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

            The WebGL version used by this renderer (1 or 2)

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ioC-xiwAODawC6UCL7FiH","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":"907QqAQ1qeYpwKWL9ywlc","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":"EVOO9fYN2mvg5RDyYDDeY","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":"kOjrGUu02wt3kdXTSt6ce","name":"clear","brief":"

            Clear the frame buffer

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ouH9yMY_-RwfHRirHaMIe","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":"Vnskuob-ry0WFEeAsHm-G","name":"clearMask","brief":"","scope":"instance","see":["WebGLRenderer#setMask"],"type":"MethodDoc","description":"

            disable (remove) the rendering mask set through setMask.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tSYuzdQjKoXE9UwMyLxdi","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":"5r5mqQS5MiIGuFAltzsdY","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

            clear the rendering tint set through setTint.

            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2CeBo63c9udoA6ShsPgkU","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":"cg9Nv5-U5mJQRjqtvwuRp","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":"LgSeyrWhW7jKsa4Jtdo7Q","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":"KpHMJHVsq81CXDHED0nDA","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":"rCp7vo1hOSKwE-ZxtGhv9","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":"Sdv_oOm5WVEOh5Nz6K59E","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":"Awo-gO5-iHcqT6Y4gWOzT","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":"uIzEiwSneWD59yPYM4YT-","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":"LGK5TePAU1nngf5FIMDhc","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":"a6NT_HLRtWDX-Q8aUUiqm","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":"WopNfDSgH_eJZuyD3yko7","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":"eVow31C_reJxEuQzfjYDz","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":"6JcTE2xQa1LJWMoHpfkSc","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":"Ekj7E0QTrLUJe_zFeHHw8","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":"2w3mMQiHiouBg8z9r3iPT","name":"flush","brief":"

            Flush the compositor to the frame buffer

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zr7S62yBM8Q8N_Rkw68uh","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":"cpniE9bvHo7HaOuGNgxEj","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":"vEa_VhB9Ufy9mmx_eMXCk","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":"vQM0kog3NbI7ir2xFEGtv","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":"7OigrprYlKiF3ViZnM259","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":"QFwQiVj7WeEjH59i0_BG3","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":"tFw2B1DE2up77ALAhOGMb","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":"RjWr9hdNSHpt1HNPNZS7k","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":"riq-elApUJqhTffj32Tb0","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":"Oq4C6gi_Ck2qAG20P5VFH","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":"XtNXVcclH4yatjBNQCnpD","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":"vW4vfYhTakDfGZkqe4sdu","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":"j5RSxLfHqKeAAuXBOQGPa","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":"YKeDERsYKgsok7I-6mZyX","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":"_iWYyyZ-0x9oYAE7WegvW","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":"UJZDaRSq2MI72VcuSlkWo","name":"reset","brief":"

            Reset context state

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QAKFnv_xvovX1iYIJ6Nxi","name":"resetTransform","brief":"

            Reset the gl transform to identity

            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5YvgV5RhK_MpqSnD3dwUC","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":"a1Z-GgABlnLh97xFkB0c0","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":"8aOAHKxmWoCHofFkcXBW5","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":"Q7MhZZpJ1-UwCU5LbSEWt","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":"AYQk2iJMH1nRcKnjF-hyu","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":"Im2hsheqpZZ3J2ojPetNm","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":"fa1skmMqpMJ6jDU10B-Oy","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":"PCPTAUQyV-xgQgEqeq3NU","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":"_h3FOGZumXRf7edHSiu5V","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":"M5KyNjjlcbDnVbBwdItHI","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":"PySRT47v0Fpsshp1_p4KY","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":"T0gh-Ir0Hd1C9KmAKvTzI","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":"TWEvZcll8NnuewSCzG8zy","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":"j-KInzhK43jY66UN_-30-","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":"doJZpbPm3uaXIekYJnbnt","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":"y2QrFy6Wk9G8Rdm-d2SOq","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":"Lj4qp3MyDxng3LONi9fAL","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":"jNzxUFNNG1R_ExhFWYBNM","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":"qDyAbZpyml6jkSyZX-sj7","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":"SY2Q7Y83sbTUKDrNL4Kvo","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":"Ehn9LIsETq_vxdFNvK7ji","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":"f72jkYkGoAE8OhNsX0JCC","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

              Stroke a 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":"SkSgIJEevmnD2mlJsqsZp","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":"G2Dyj748HRvbudvWSdu5P","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":"yS0zbdMT4NFmGSwNbL1el","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":"eEgOB5z-oJwWMvVmvn_gx","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":"apJW66j-QsTLTRAcV4CFo","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":"-yBJ3-uBhC9f1ZzbFsPck","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":"fX2Q0P4pfh1TVzTIdy5YG","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":"8Too3msNHJZWPHEJOosGT","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":"92F3xUBTS2EE7Rgzcqkoj","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":"TQ3aJ8mnVh0fYyqFpsuFw","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":"0f_ubS4PyeMY_qe-LygY1","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":"mPePcRooaLrNFGY2kJKhD","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":"kSHola7004TKw49Kjs23U","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":"udbUAtjPmZkhQRul_KF-u","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the application (game) this physic world belong to

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QBSPGfdsMGTTmDjWyYU5-","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":"U3cUWDgVt0j8PhdUG4YLp","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":"XVYjR-JxG0Sj3ODITXLoa","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":"oKuMHIweyNKRfuRscyVFT","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":"uU5mGqah2NknuYpl38TI-","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":"2KVAi4Rzjl5yCsa02m6Xx","name":"bodies","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the active physic bodies in this simulation

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"loHC49TzJHM9wns39w5nX","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":"0Ed9cpgzArFLGgEUq7vAN","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

              bottom coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"txYz3QW-VtlC8Kg_drvLk","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":"tlSoEhfED8uGPmpPg-lV4","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the horizontal axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XhvLenbvfWFPa8IDIM88s","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

              absolute center of this rectangle on the vertical axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9zev1ehZ3YNPPhbCaThG7","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":"TgMuLL9RXtdw2_3kSDT0s","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the renderable default transformation matrix

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"joSWegrA-AD1GSHeYcTWX","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the depth of this renderable on the z axis

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"s_DjsaLxJtVbyXGR4JqEz","name":"detector","brief":"","scope":"instance","type":"PropertyDoc","description":"

              the collision detector instance used by this world instance

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jlpBBJmjCOs48LGbOdNFL","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":"kjTmUdPhFh2y-bO_5hFe7","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":"lClOY8g0bPpX4vIeeQbi-","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":"8KNNvV-Kv53Tif72nj8we","name":"gravity","brief":"","defaultValue":"<0,0.98>","scope":"instance","type":"PropertyDoc","description":"

              world gravity

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yzhaC1-vTmIG9zEBJ-PFq","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":"XStfFcHeRG5pRznIY6Vp6","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

              height of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"57-VP6rmfqHlFBQ21H8bh","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":"rTfLtN9ZLruFr7660chNQ","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":"FwawGKIygeQarBOfzmOuZ","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":"XEc_U5n0epYvn4KtX4X4I","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":"CS3xfNy7cDrtEto1YIMtS","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":"dI938GAJ2kRvwtjbnb7PE","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":"GvwOmpfYRsUtZTctAgbyy","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              make the renderable object persistent over level changes

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0EJxbmFkreOsl1s1hy1WD","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

              left coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YSc4uhRpBjAqAK9uJmUgU","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":"wbg_TxMxZULkfQQuqYSII","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

              The name of the renderable

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HKjv2iBaAMic0Uq2iK8vP","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":"-Egsa59A1VWLVobNN4NDd","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":"zoH_H1luyKkKu840MHgUt","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":"gGcj9RRtjb8AlFfcRCOIR","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":"vnR6Zc60kNmx6QTsl4oqw","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

              Position of the Renderable relative to its parent container

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w5aEMnhgTa0t69iI5Yme6","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":"zIpGAMMdI32mKcnFytBdp","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

              right coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qeRIK0MgqWNWIGqAqDrbH","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

              whether the container is the root of the scene

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RUebeqzKO3BDxM_K3-bfM","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":"nrcWvFCDG1RR73mlvgJEk","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":"VrZxtILrrh0h7WPziab1r","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":"Ke6Fbe773yZeUrdD4lm8f","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

              top coordinate of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WLfovI-fXhv8ilAWyk7-4","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

              the shape type (used internally)

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tT5akk9pMJmpu5O9Edk6l","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":"MO2SHJY_rZiANxYo3q7TG","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

              width of the Rectangle

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"q_-yb58oSkiiobbMS-i3J","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":"-RPi9Kba4QrLK8uXbGunl","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":"HqqUJ3oIh--oUgZHDJRop","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":"5NOW-wOK02bdqMc7UUekw","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":"c9HHAkv_SvuT55H3IvqlF","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":"uUoO0felfl5fRha38kYSr","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":"C1x7Ui4OUxB68z0V4rxUI","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":"B4oEHkgJ-KQa7vGDqTmHo","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":"PsNtTIkg2rJ39hvQXD1VK","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":"81AXfGNDaKFt14B_33-Qw","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":"iT5Fgi9Vxes6IN8c2dwho","name":"draw","brief":"","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":"xfkZBYXRfhqJLE4o87zku","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":"QHVpish-VXCNq0LUcBJvD","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":"bLiJjfv9mCp8BTYlfX3I1","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":"_G907Juixy1okO4iZ6xqC","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":"wEOp006FenMtyPtT10vEf","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":"jMWBBmTub7ok_ahP2IBEs","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":"DA-elyM-JbTRVj7LZAFAK","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":"lrhScucMfWBEENmpjo9yc","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":"kAiuSrvv32kyvqqvuivN0","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":"x6jdQBih2iXz2OMoEmOoI","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":"q7aDVHoDUUGu0Pb-9B0bI","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":"vunU0Q8i0kQmvCtVV3IWk","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":"clb27KFPd0MoZLknpf0gj","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":"2Be_PGW7xLR_Fa9g9rtFv","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":"rGpTZghfMUIBBktmagbAI","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":"e49aP8nSOKLpzeK-h1ASy","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":"sV96LIlqfesnIO6fN0Y4-","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":"cUBPSCc42y6B1g4I6dkG2","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":"jO5DQNnF0EIazYq1KstZy","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":"CpXzljcbAJ0vRZ6LpHXH9","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":"AuaoycUhAJecvn6fZFiZ6","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":"LtF8yG9jAEkLxajw1pYHZ","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":"rLjmi1UrKztTOt-xlOFcB","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":"5Lmu2L837s9yg-m0XH8g1","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":"SmLXgXMDfYzh9WD1ycHaO","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":"4Jpp6u-HXmTxeHhxSreG0","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":"HUrbG9EXYh2sGO5Ve3GT-","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":"V7SK4STAybENM6GoCCMun","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"szvO_rG-SBBB5t7eWcHJm","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

              OnDestroy Notification function
              \nCalled by engine before deleting the object

              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6TXu_3iEcWqzlTT8iGxfZ","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":"_dex_QbYOlftm6Z2hXWED","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":"7cFG4u4d9qAbIKflpWrOo","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":"bQUmedVj2cOf8euAO-t2c","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":"mZPJg6IImXbvorjXFuFAR","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":"eGHJ1lTVNczKEjQIyXWBL","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"0TLRGh0z4v6reA5vOtInd","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":"aWmelIYJDCl_r1x1TH9iR","name":"reset","brief":"

              reset the game world

              ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i0vXNVKpNapCc4afPVupe","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":"XQ_EGEoRzuUYO9iVTDWd9","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":"QlrHERG3HV9tceFx9cpMU","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":"ICh2t7Ca9LaDxOLOkIOKf","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":"ju19ifthZ8Qcha1GBLSGg","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":"X5dB_txJRjh9CZ9vk69Ci","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":"474MbpDjwowqv3STQV9Oj","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":"jbg__1BTqX0qnCTsm2t2p","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":"gK0djbYflia9zLW7rLo6E","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":"JWz7qnvgM1CXVdhkeihgZ","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":"HcYr6fnPiPe0nyARpcJV5","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":"fU82brO5Db1BJLk65SX0c","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":"TjmIzACEVaYexzieO6X-5","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":"4RNXHPWff9ZpM4WJjgmhB","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":"0W378o2LPTOOOROULf4dT","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":"7N6xgmaA8LRA9N1-iHTAI","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":"ScsdurHsUKiVyxWGIpzCW","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":"KeKOeuDOsK6ePJsByJ0kI","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":"HIi-HDK4uTfj99JIQBJbT","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":"F5qXt_meEXQVi3MnuRuXz","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":"lnnnVp9P59wpEfjKFSJI-","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":"caXxv5g_Y5Nv7dYhZ9B09","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":"ijH2Sx2vOMw54FuV7Mf-T","name":"ApplicationSettings","brief":"","readonly":true,"type":"TypedefDoc","description":"

              Application & Renderer Settings definition.

              ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"LVEL9mZBFmHlPoEwMlZcK","name":"antiAlias","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

              whether to enable or not video scaling interpolation

              "},{"id":"V2MeNx2_LFK9lOjRpu16m","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":"sEn07Md-kOpOauRT4gP73","name":"compositor","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

              a custom compositor class (WebGL only)

              "},{"id":"ryPoWptD6IGzMLyhZGbIo","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":"qiVw6gPTvb8Ahq0MrlksW","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":"imxaEOi552b0z0Z6s6oid","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":"GmEangboAgO61sUTwUorM","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":"orhRA6LXivkQ6muTJhYDv","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":"kLytnLVE4Pk6ua4T4Fviv","name":"preferWebGL1","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

              if true the renderer will only use WebGL 1

              "},{"id":"xwy1sSYveaw5AHw4LGUMK","name":"renderer","brief":"","access":"public","defaultValue":"AUTO","scope":"static","type":"PropertyDoc","description":"

              renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class

              "},{"id":"MwxOMlFK90ZXvUOK2cW9f","name":"scale","brief":"","access":"public","defaultValue":"1.0","scope":"static","type":"PropertyDoc","description":"

              enable scaling of the canvas ('auto' for automatic scaling)

              "},{"id":"1ObF7cqRbKHth7p81G8EZ","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":"1lDfNBIXTQjFfz23eJhkk","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":"JkIDjE0Tn_BE5KAWoPYQw","name":"transparent","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                whether to allow transparent pixels in the front buffer (screen).

                "},{"id":"qyrdABCx7U-VKwbpvdSJo","name":"zoomX","brief":"","access":"public","defaultValue":"width","scope":"static","type":"PropertyDoc","description":"

                The actual width of the canvas with scaling applied

                "},{"id":"39gJhY1YaLPEHsHAl5YY7","name":"zoomY","brief":"","access":"public","defaultValue":"height","scope":"static","type":"PropertyDoc","description":"

                The actual height of the canvas with scaling applied

                "}]},{"id":"HyLwHK8a-BeLgpGkwafhD","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":"edn6hP_7IujOnt64P5zME","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":"zbqyDnW2GrXqtat5GDK6X","name":"version","brief":"","defaultValue":"\"__VERSION__\"","readonly":true,"scope":"static","type":"PropertyDoc","description":"

                current melonJS version

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xVUQNhfLulVoIKKu30tc6","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":"tjL0qrfsNiY9EXyQG1HQS","name":"defaultAttributes","brief":"","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FdHb5BHIvGi5JgqfNWppC","name":"dummyObj","brief":"","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nBaJxi_UrCnROhixlaVIJ","name":"failureLoadedAssets","brief":"

                Assets uploaded with an error

                ","readonly":true,"type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kKIzciGzBAlJIu7o3iAkz","name":"imgList","brief":"

                where all preloaded content is cached

                ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SVBp1Mb6HWiCQMUdRidFN","name":"initialized","brief":"","defaultValue":"false","readonly":true,"type":"PropertyDoc","description":"

                a flag indicating that melonJS is fully initialized

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"opc-r1W6GHRq8IaD7sKjX","name":"MIN","brief":"","readonly":true,"type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PaTOgc0EJ79RHcMsApfpA","name":"parserInitialized","brief":"

                keep track if parsers were registered

                ","defaultValue":"false","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i23HFFwa53nEUAhppA70i","name":"parsers","brief":"

                list of parser function for supported format type

                ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dAVgk1CNRPkLHg9FxaTS6","name":"skipAutoInit","brief":"","defaultValue":"false","see":["boot"],"type":"PropertyDoc","description":"

                disable melonJS auto-initialization

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iUARTaxYpTQA5vv3y2DnQ","name":"supportedCompressedTextureFormats","brief":"","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BP1ewUPctA30A9rITTmfx","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":"5FzYWC1tXuATh33Y49ZkA","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":"_xxXTAHWISVzIf5q2tr9o","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":"CZA6qd2u7hETZMsAdfUfm","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":"S5mir9Ux1GP_jWHW__USR","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-WZlumkOC3sILBgxManzNF":{"uri":"/melonJS/docs/melonjs.html"},"G73c6TLYJ7FNsr_ua7vJe":{"uri":"/melonJS/docs/melonjs/audio.html"},"0sfv-U2OYd5gwvLMcOWgw":{"uri":"/melonJS/docs/melonjs/audio.html#stopOnAudioError"},"WTarVi_HUW1196cPJxhy2":{"uri":"/melonJS/docs/melonjs/audio/disable.html"},"qzauw9TBxd9N0TplpAzwc":{"uri":"/melonJS/docs/melonjs/audio/enable.html"},"hjMJNQcwydnrWez866xOu":{"uri":"/melonJS/docs/melonjs/audio/fade.html"},"0gBLyITtfXEbrfJr2MLuV":{"uri":"/melonJS/docs/melonjs/audio/getCurrentTrack.html"},"XFVIFAJIIB0FCU9kAnSRb":{"uri":"/melonJS/docs/melonjs/audio/getVolume.html"},"zMsuI5eWJKs3tUbL-jLGI":{"uri":"/melonJS/docs/melonjs/audio/hasAudio.html"},"PzLqqEmQtY9DK3KeLVsH-":{"uri":"/melonJS/docs/melonjs/audio/hasFormat.html"},"Mlwc_5UeofxOcVjX6_GZS":{"uri":"/melonJS/docs/melonjs/audio/init.html"},"EmBuU3dwEE9c2wGzwuyTa":{"uri":"/melonJS/docs/melonjs/audio/load.html"},"kC-mw8Aw1OCUVvkpP0Qiw":{"uri":"/melonJS/docs/melonjs/audio/mute.html"},"jIT3EPUy-q5VzsTTB71ik":{"uri":"/melonJS/docs/melonjs/audio/muteAll.html"},"j4ugJvahXeyAaEBUduHPd":{"uri":"/melonJS/docs/melonjs/audio/muted.html"},"aanuGnpX2Hht1dChWiMQM":{"uri":"/melonJS/docs/melonjs/audio/orientation.html"},"Tb4U6VF9U63avAuX7Yrcw":{"uri":"/melonJS/docs/melonjs/audio/panner.html"},"QXScU9MgVi2_NJxrg7YBW":{"uri":"/melonJS/docs/melonjs/audio/pause.html"},"KgqnxM9nBJ877HFcQS0X3":{"uri":"/melonJS/docs/melonjs/audio/pauseTrack.html"},"uRtDJewQ5BnOtnoJdw5DF":{"uri":"/melonJS/docs/melonjs/audio/play.html"},"NrvXeXoOQ0sr16c9H76Nu":{"uri":"/melonJS/docs/melonjs/audio/playTrack.html"},"PdRKe7KllqA1JkDFr07cE":{"uri":"/melonJS/docs/melonjs/audio/position.html"},"v6FgJ-PpVYjEOIWCzEgrR":{"uri":"/melonJS/docs/melonjs/audio/rate.html"},"WggFaX6MGp8dOBwE7NQBe":{"uri":"/melonJS/docs/melonjs/audio/resume.html"},"2yuU4u8KYS3k11NwJmjdI":{"uri":"/melonJS/docs/melonjs/audio/resumeTrack.html"},"4Gfs2_gRAmj6h_FJyqMHv":{"uri":"/melonJS/docs/melonjs/audio/seek.html"},"o37UtKUHr2fuEu-NiCpPz":{"uri":"/melonJS/docs/melonjs/audio/setVolume.html"},"yBIN7Gde8vysEel5a0YRU":{"uri":"/melonJS/docs/melonjs/audio/stereo.html"},"6A_k3O1Jwv2yhkWQ4-B8y":{"uri":"/melonJS/docs/melonjs/audio/stop.html"},"GC5PlSRcvcrjoB9SLLxQA":{"uri":"/melonJS/docs/melonjs/audio/stopTrack.html"},"MgBltGPsyvv6EJKSCOuaI":{"uri":"/melonJS/docs/melonjs/audio/unload.html"},"vUAgCMCUQylTqScdjHw5C":{"uri":"/melonJS/docs/melonjs/audio/unloadAll.html"},"qmVwIjljbFldkfS4xw8w5":{"uri":"/melonJS/docs/melonjs/audio/unmute.html"},"MMLEss6Vdw8xoY4OHrdYB":{"uri":"/melonJS/docs/melonjs/audio/unmuteAll.html"},"0BvA3QnfF_VmRSqg2KtYv":{"uri":"/melonJS/docs/melonjs/collision.html"},"J3YSfKvOwSIBSPk1LHCj_":{"uri":"/melonJS/docs/melonjs/collision/types.html"},"RE0jl3H72n7mARysiF43k":{"uri":"/melonJS/docs/melonjs/collision/types.html#ACTION_OBJECT"},"f2zYwgmfmkrCj0M2P7ZDZ":{"uri":"/melonJS/docs/melonjs/collision/types.html#ALL_OBJECT"},"f61TdqgOk02ihkbUFI0Mw":{"uri":"/melonJS/docs/melonjs/collision/types.html#COLLECTABLE_OBJECT"},"hwjY4JvW9j8hniQwkHpLL":{"uri":"/melonJS/docs/melonjs/collision/types.html#ENEMY_OBJECT"},"LzU0yteRCErcSSX-HpqNB":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT"},"QkUIzbUk1CHwqS5tJT67g":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT_"},"Hqu0z-nWZvGPM17xHKxfT":{"uri":"/melonJS/docs/melonjs/collision/types.html#NPC_OBJECT"},"4wSULlNVPpMd_9HqmEl-x":{"uri":"/melonJS/docs/melonjs/collision/types.html#PLAYER_OBJECT"},"tAlo6kh4vDNfv7VDqH-nf":{"uri":"/melonJS/docs/melonjs/collision/types.html#PROJECTILE_OBJECT"},"zPliks5v_qkbq1xtgYT4V":{"uri":"/melonJS/docs/melonjs/collision/types.html#USER"},"DcNa2vAPkkLx6DAnM1cPt":{"uri":"/melonJS/docs/melonjs/collision/types.html#WORLD_SHAPE"},"XyD3v3ZjtqukhD4f3dKEn":{"uri":"/melonJS/docs/melonjs/collision.html#maxChildren"},"-fPmMGyLW9dhDILGECxZY":{"uri":"/melonJS/docs/melonjs/collision.html#maxDepth"},"pgWqEw8mn4a5Vs4UwYQAj":{"uri":"/melonJS/docs/melonjs/collision.html#rayCast"},"rgS3nGlWn6S-d75V7y98B":{"uri":"/melonJS/docs/melonjs/device.html"},"cL6fwN1qii9RYAJy00dbn":{"uri":"/melonJS/docs/melonjs/device/platform.html"},"I4Gbi2hT_85UL0gdquPto":{"uri":"/melonJS/docs/melonjs/device/platform.html#android"},"1xDg1W83_uckrLhbTihbR":{"uri":"/melonJS/docs/melonjs/device/platform.html#android2"},"B0osnXajoLqXzuBEjJSYo":{"uri":"/melonJS/docs/melonjs/device/platform.html#BlackBerry"},"GdKMy35wuCsotm17lHaEH":{"uri":"/melonJS/docs/melonjs/device/platform.html#chromeOS"},"O6pagywBmY4fyTl3_jcRT":{"uri":"/melonJS/docs/melonjs/device/platform.html#ejecta"},"Grd2DoKPFR9NTGb3gHTKw":{"uri":"/melonJS/docs/melonjs/device/platform.html#iOS"},"xo8OVsWf-1b3_1xfph8s_":{"uri":"/melonJS/docs/melonjs/device/platform.html#isMobile"},"k9ObCORN9Wm2iMrGYc6PM":{"uri":"/melonJS/docs/melonjs/device/platform.html#isWeixin"},"QfPSestu28U7U9atZe-JY":{"uri":"/melonJS/docs/melonjs/device/platform.html#Kindle"},"EOr3-EAXVoW-uLQtE8QDp":{"uri":"/melonJS/docs/melonjs/device/platform.html#linux"},"uTGTU1EmiQ3GcGZ4HrVeD":{"uri":"/melonJS/docs/melonjs/device/platform.html#nodeJS"},"3c8a7FnR27mEow1VXHkc5":{"uri":"/melonJS/docs/melonjs/device/platform.html#ua"},"voOMj6k005aEkvndzuH5s":{"uri":"/melonJS/docs/melonjs/device/platform.html#webApp"},"faTYGX3bKNiGTpnNamnPQ":{"uri":"/melonJS/docs/melonjs/device/platform.html#wp"},"XeRG0KGhAGSXOYCBYiDll":{"uri":"/melonJS/docs/melonjs/device.html#accelerationX"},"IkwGg1hYbJ7NpKMYA3UrE":{"uri":"/melonJS/docs/melonjs/device.html#accelerationY"},"6LeDmBTaFYRnc3QjoCJiD":{"uri":"/melonJS/docs/melonjs/device.html#accelerationZ"},"HK7VJrSgTeXxno_4E7hOo":{"uri":"/melonJS/docs/melonjs/device.html#alpha"},"ffh--TW94kfJj0SRjjnkx":{"uri":"/melonJS/docs/melonjs/device.html#autoFocus"},"YIxck0VsZF5y9SrX0tZTQ":{"uri":"/melonJS/docs/melonjs/device.html#beta"},"a5PR3bFuiN4KlfRBohiJ5":{"uri":"/melonJS/docs/melonjs/device.html#devicePixelRatio"},"bjeYf-XQCO_Hj5x4fqWbL":{"uri":"/melonJS/docs/melonjs/device.html#gamma"},"Vo1WbVSp908DQKA-ryv1V":{"uri":"/melonJS/docs/melonjs/device.html#hasAccelerometer"},"8cclMJHBuhqsdOd-jOQTe":{"uri":"/melonJS/docs/melonjs/device.html#hasDeviceOrientation"},"TORqf_xX0RHSE7TO67-gF":{"uri":"/melonJS/docs/melonjs/device.html#hasFullscreenSupport"},"bghNMCzIXEZ3-MLDRZnHI":{"uri":"/melonJS/docs/melonjs/device.html#hasHTML5Audio"},"4-OOE8ZLzEoChW3egfjO4":{"uri":"/melonJS/docs/melonjs/device.html#hasPointerLockSupport"},"s2ixYCW0nXv7_Xx9whMoV":{"uri":"/melonJS/docs/melonjs/device.html#hasVideo"},"m3OFmBA8smtOlthy_b4-G":{"uri":"/melonJS/docs/melonjs/device.html#hasWebAudio"},"v8I8h-s7JFbwWKyVTFnFG":{"uri":"/melonJS/docs/melonjs/device.html#isMobile"},"D704TWWLo61051LI1Gs1X":{"uri":"/melonJS/docs/melonjs/device.html#language"},"1LBtAJUlz80IrZrrHb10J":{"uri":"/melonJS/docs/melonjs/device.html#localStorage"},"AX_sftOYulnROk26MeHfa":{"uri":"/melonJS/docs/melonjs/device.html#maxTouchPoints"},"CIj4WxSvaWPhB6zD8OWV5":{"uri":"/melonJS/docs/melonjs/device.html#nativeBase64"},"b_lGRxPQnEkAU7MCByBIz":{"uri":"/melonJS/docs/melonjs/device.html#offscreenCanvas"},"xu0jrJ5MHwaL8qOSJvEue":{"uri":"/melonJS/docs/melonjs/device.html#pauseOnBlur"},"hVX9ykKIfIJV5X6VuzU93":{"uri":"/melonJS/docs/melonjs/device.html#platform"},"cWcPt8dPwf609VUyAV2wF":{"uri":"/melonJS/docs/melonjs/device.html#pointerEvent"},"09mjoXFvoKj_tbJverZmU":{"uri":"/melonJS/docs/melonjs/device.html#resumeOnFocus"},"MPZxfpQyyka0g_I9cNOZQ":{"uri":"/melonJS/docs/melonjs/device.html#screenOrientation"},"MiZMtk0CP43p8CZpgQyR1":{"uri":"/melonJS/docs/melonjs/device.html#sound"},"iUOI1tb3ZOch0JuOdiXNt":{"uri":"/melonJS/docs/melonjs/device.html#stopOnBlur"},"qxhi1HEhmd9z5HTRkALIM":{"uri":"/melonJS/docs/melonjs/device.html#touch"},"WNnxhDKgRPv8yOwvtgmiG":{"uri":"/melonJS/docs/melonjs/device.html#touchEvent"},"xE_To7nCvTytRUNt1rCTA":{"uri":"/melonJS/docs/melonjs/device.html#wheel"},"VyU5XQIQr6jhmUNtUj7lV":{"uri":"/melonJS/docs/melonjs/device/enableSwipe.html"},"UZtcQS_w9v-5wi3HOJjp-":{"uri":"/melonJS/docs/melonjs/device/exitFullscreen.html"},"cvSKkLMgKwm_Y6mSnkkV0":{"uri":"/melonJS/docs/melonjs/device/focus.html"},"1aVSBSoKBsQ3e2VXbtz_1":{"uri":"/melonJS/docs/melonjs/device/getElement.html"},"B2-lex4lAVWD_X03GmQ_V":{"uri":"/melonJS/docs/melonjs/device/getElementBounds.html"},"IllDUSNQlALAkLyDsP8iF":{"uri":"/melonJS/docs/melonjs/device/getParentBounds.html"},"qYbQ0h2tJvPQow2zOjShg":{"uri":"/melonJS/docs/melonjs/device/getParentElement.html"},"FsIml2Ev7cnHRbm6ygK1I":{"uri":"/melonJS/docs/melonjs/device/getScreenOrientation.html"},"uQeNreU4w8VXr5RW5YY0p":{"uri":"/melonJS/docs/melonjs/device/getStorage.html"},"JjDrnmXRdo3A9E8UlfdZV":{"uri":"/melonJS/docs/melonjs/device/hasVideoFormat.html"},"q53STREY_pT3oFXwoWQ4Y":{"uri":"/melonJS/docs/melonjs/device/isFullscreen.html"},"ynK6_sJWVmKZc6WbiUgZT":{"uri":"/melonJS/docs/melonjs/device/isLandscape.html"},"Pc1qDRM23s-WJEKETRXI2":{"uri":"/melonJS/docs/melonjs/device/isPortrait.html"},"Z4FEDvRVUL4vPFpnycltm":{"uri":"/melonJS/docs/melonjs/device/isWebGLSupported.html"},"RiYILptwv5Kn9kBOgeBbn":{"uri":"/melonJS/docs/melonjs/device/lockOrientation.html"},"TlDWh_rFkXZc-ubE9Iosm":{"uri":"/melonJS/docs/melonjs/device/onReady.html"},"uPZQSSrnjISJ7gFroafDC":{"uri":"/melonJS/docs/melonjs/device/requestFullscreen.html"},"PaoV1ZV-PN3FC6hWqEwxZ":{"uri":"/melonJS/docs/melonjs/device/unlockOrientation.html"},"omiIq9Mu4XXk1I_kMrX5U":{"uri":"/melonJS/docs/melonjs/device/unwatchAccelerometer.html"},"FN_ABv20NoQN-_Rg3F9AQ":{"uri":"/melonJS/docs/melonjs/device/unwatchDeviceOrientation.html"},"G0j9TkbU6KTsatXorNk1B":{"uri":"/melonJS/docs/melonjs/device/vibrate.html"},"mgVeObsuLWYbdlN79WZBi":{"uri":"/melonJS/docs/melonjs/device/watchAccelerometer.html"},"sZkYpoNOttynEWGqXBaeT":{"uri":"/melonJS/docs/melonjs/device/watchDeviceOrientation.html"},"gJtnqay32TqsNVy7LaAG5":{"uri":"/melonJS/docs/melonjs/event.html"},"GZHKEfbufQqcfIah1h2Ce":{"uri":"/melonJS/docs/melonjs/event.html#BLUR"},"RVB8SYML7AQ7Jf96RjVog":{"uri":"/melonJS/docs/melonjs/event.html#BOOT"},"39_ZxrcALeXWn11xIbYK_":{"uri":"/melonJS/docs/melonjs/event.html#CANVAS_ONRESIZE"},"diG5SYglWfurRjT_7iXs5":{"uri":"/melonJS/docs/melonjs/event.html#DOM_READY"},"CT9GmafsmfRfZbNoji7HZ":{"uri":"/melonJS/docs/melonjs/event.html#DRAGEND"},"XoqhpCqPZRTd9w_q9gqzl":{"uri":"/melonJS/docs/melonjs/event.html#DRAGSTART"},"G8d8hrE1bO0oFfcguzlji":{"uri":"/melonJS/docs/melonjs/event.html#FOCUS"},"2sP48PW3PW81aHYFJlS_E":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_DRAW"},"eaC0NkK81wD57xSqZd-5e":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_UPDATE"},"4wlY8qFKMbFc50HsbOoZ0":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_DRAW"},"M6nkAsd5ZqHbeJJShPKtq":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_UPDATE"},"Jny8jZM33RgrgFawrBAw1":{"uri":"/melonJS/docs/melonjs/event.html#GAME_INIT"},"7kNHmBQro3sPIsPCaoNEj":{"uri":"/melonJS/docs/melonjs/event.html#GAME_RESET"},"GWYtZs7MDyBP0VDBBUsw0":{"uri":"/melonJS/docs/melonjs/event.html#GAME_UPDATE"},"Hjqwwm2Dbb1wzcA7jO1wJ":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_CONNECTED"},"MsNoqgS09xHy6-23HxbEs":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_DISCONNECTED"},"MSys-Ic18aDCpKYpBVsg3":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_UPDATE"},"R47J9TMvxwa-YphZZCnPU":{"uri":"/melonJS/docs/melonjs/event.html#KEYDOWN"},"Es0Hiq0kn777CjqHopG6D":{"uri":"/melonJS/docs/melonjs/event.html#KEYUP"},"aoXy3JRfw0PLzk0odyVF4":{"uri":"/melonJS/docs/melonjs/event.html#LEVEL_LOADED"},"uxdS_kRHrj2tPODWyFC4L":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_COMPLETE"},"NYHoDwhzhaxooYTGmCP3L":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_ERROR"},"t5SZ5gQrosDeukGreimjM":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_PROGRESS"},"tkBR1PsKsq5xFDaHDNfkq":{"uri":"/melonJS/docs/melonjs/event.html#ONCONTEXT_RESTORED"},"asM6tngRe-f2Nk7XhhrKE":{"uri":"/melonJS/docs/melonjs/event.html#POINTERLOCKCHANGE"},"UQqRY_-P7GIE9i2tLR6oy":{"uri":"/melonJS/docs/melonjs/event.html#POINTERMOVE"},"HeVXX1RJD8gjXdytZHjku":{"uri":"/melonJS/docs/melonjs/event.html#STAGE_RESET"},"mKFFpfrTwPT5k184Qjuf7":{"uri":"/melonJS/docs/melonjs/event.html#STATE_CHANGE"},"CggsN3Jdmat97XDvvNb2W":{"uri":"/melonJS/docs/melonjs/event.html#STATE_PAUSE"},"XR1KlsC5T7GbXI_cDdQiP":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESTART"},"AVxi6Ic8quQ7T3dssIvOO":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESUME"},"H5b7XJbr_xdq0hSzcqWaf":{"uri":"/melonJS/docs/melonjs/event.html#STATE_STOP"},"blWeikZJach8SHYfgLsuF":{"uri":"/melonJS/docs/melonjs/event.html#TICK"},"NOzmSdoiX4SzF5Y9ByjDM":{"uri":"/melonJS/docs/melonjs/event.html#VIDEO_INIT"},"9cnKSu-jqY74cD6Hj6xAK":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONCHANGE"},"KEiP5qhYUMatJJjI-RjML":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONRESIZE"},"RbtBr7U9g0svMcXvc5mrh":{"uri":"/melonJS/docs/melonjs/event.html#WEBGL_ONCONTEXT_LOST"},"EEMrAWoNrGxDAICGlULjP":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONORIENTATION_CHANGE"},"-kF5MmMHnc60NeT1_gQE2":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONRESIZE"},"h8MBB1vlfZAbO0Xn7m_5Z":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONSCROLL"},"dSYNZA77A0ujMZvSMcKlw":{"uri":"/melonJS/docs/melonjs/event.html#WORLD_STEP"},"ZgMpz3ALUlJ4O-jMpR3cM":{"uri":"/melonJS/docs/melonjs/event/emit.html"},"ptbTIDb9rgwgLmEvvoE_N":{"uri":"/melonJS/docs/melonjs/event/off.html"},"aTo6yuTyRtt_eQPlVEqBp":{"uri":"/melonJS/docs/melonjs/event/on.html"},"gCoVPoxPZeiQ2N1gBFNFF":{"uri":"/melonJS/docs/melonjs/event/once.html"},"9piePdVz3qn_D20SBvVeM":{"uri":"/melonJS/docs/melonjs/game.html"},"GbTedxZ1XHNdgPzL3iU8P":{"uri":"/melonJS/docs/melonjs/input.html"},"AbiOzteUVV7EZA5sej6rn":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD.html"},"_M4N2tPGZMKYAzrLqzetY":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/AXES.html"},"_0NFpST3g5Vhy0ijkylb0":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/BUTTONS.html"},"FO_nB4QToBhOMPIzXt_iQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html"},"AbNka5tSeDjQp-Zx_7Agi":{"uri":"/melonJS/docs/melonjs/input/KEY.html#A"},"dl0s9cmK8hpRUQ18nzwYO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ADD"},"rtLZ63IL74dluC4tEgwyG":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ALT"},"6CWvuRU9F725JojyBIB7z":{"uri":"/melonJS/docs/melonjs/input/KEY.html#B"},"v6KT6HoMKjcQuCuha00BC":{"uri":"/melonJS/docs/melonjs/input/KEY.html#BACK_SLASH"},"CTxCEt5nvowNK_QTZpRjV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#C"},"NZL_PMrKtiEFt3y_FGOg6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CAPS_LOCK"},"GCQfdq4gYRNE6YUgzSDjT":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CLOSE_BRACKET"},"pQo_b_KNPNcH7CuGxMkbN":{"uri":"/melonJS/docs/melonjs/input/KEY.html#COMMA"},"jiLWI9BaA18tNSchLEPqo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CTRL"},"tMjavNU92cDhLC9yWaWGU":{"uri":"/melonJS/docs/melonjs/input/KEY.html#D"},"qO57_HKzjPmB7Z6RC8_n-":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DECIMAL"},"9Q0a5Yyur32U5Vu8IvGJT":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DELETE"},"DKGB2Zg_DXxbA4Y81QQ51":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DIVIDE"},"npKiVF0nQzh0E5APzSECE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DOWN"},"Ta1sOeLfkS2PAFV0mCjea":{"uri":"/melonJS/docs/melonjs/input/KEY.html#E"},"8pzsct2TfUHBq9MH5-NgK":{"uri":"/melonJS/docs/melonjs/input/KEY.html#END"},"2JGGQATOdGEaR_FQJxDGK":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ENTER"},"taB_4X1W7i0YFVGIpzTp1":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ESC"},"aCu6Xmhqqob5714kbCxnC":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F"},"nnQ1iIKWTk3IHnCXrziKV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F1"},"9WFqU-8gR_mXfr7LRaMxl":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F10"},"S_RtU2r_6qM67P6tAQO90":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F11"},"TdvDb5VCrP3RLpJ03Xzmt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F12"},"GvQbWJ8P24HLs2nOJz2ux":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F2"},"GKVnJuXJ5T99AphYrSAu1":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F3"},"Wo5RaIDBICJgLSo9i7moS":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F4"},"GT-PhBvCckXkcXJSruwJE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F5"},"ez8bzukdqk_w8WTuRJ-3j":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F6"},"5EW3fFb6LGZUgofMEFdoi":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F7"},"Rr1qIwMGZQv__OsEgh1lG":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F8"},"ri9yY0p2SPSR8zrawsPwb":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F9"},"VUpXGM6OVIWUIDx2SFUBk":{"uri":"/melonJS/docs/melonjs/input/KEY.html#FORWAND_SLASH"},"W66OiiDaYljLJQXBvwRza":{"uri":"/melonJS/docs/melonjs/input/KEY.html#G"},"xeeA7rxTjMxCldeLqLfvt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#GRAVE_ACCENT"},"yREGMwEYfOhnE0e-k7ZSt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#H"},"dtnVVKBnxUHRD8QNVJDSk":{"uri":"/melonJS/docs/melonjs/input/KEY.html#HOME"},"nATU-LnxjyttZKySLseVw":{"uri":"/melonJS/docs/melonjs/input/KEY.html#I"},"4kKGxhMnvYI-rmWVj9b5D":{"uri":"/melonJS/docs/melonjs/input/KEY.html#INSERT"},"VNjfE67hr-YP5CIej0yyP":{"uri":"/melonJS/docs/melonjs/input/KEY.html#J"},"DquBBEdQF0yOs5KRuGhHv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#K"},"7NeNfeXkxQ7ogKiTDiDvO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#L"},"EgZajRWgIi8mrCX1LVcnm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#LEFT"},"uwjBM1lDU4N1X2V0tdNft":{"uri":"/melonJS/docs/melonjs/input/KEY.html#M"},"4XrKWbFwvT82jvU9cPgLU":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MINUS"},"Ufps-1KjKcQxBGxtzwhqV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MULTIPLY"},"09xDZEO7suCjjwHeCw_ix":{"uri":"/melonJS/docs/melonjs/input/KEY.html#N"},"HWsDF8XszBHW72mN1h7y4":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM_LOCK"},"D0mK5NDHGqNVjcSTOmeYm":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM0"},"RwuLfUK6sxBckwEtynZk_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM1"},"kLZRnojjASozR18dgk1lu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM2"},"6oy1WTEUqSYj0cwpxhNbA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM3"},"8m51sNGoRbeox53pggW_L":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM4"},"63QbfrwB5g-1xvIpJwkH6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM5"},"xz9iHEBvdl_CcbTx8WTNI":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM6"},"bkFfQE5NYNjK8aI9TzbD9":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM7"},"QAPgj-bp0-fodjKHu7GeW":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM8"},"8hcHiQRsgOSFWkenLh98w":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM9"},"mf4wt2o1OC0TrnBw_XDee":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD0"},"P2EqV6A5ROsMgo4lw8qhu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD1"},"psKpwjpO8bxwOkKMX73dY":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD2"},"CRo5knN3zoMNtycWgpxw7":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD3"},"WkB0w9XV3bthTdchoo1v1":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD4"},"fNUP5DC_QiFWEGn-9dJwA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD5"},"NYew36PhU55UPMe0hIANw":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD6"},"jea7ZVCDgUp34P6DzUPa0":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD7"},"oz7kedIc99EIBSECUAfhz":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD8"},"n4ES60pza8v5vpL9JGJ4r":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD9"},"wyOa4ZKkMkiogNcTCoGfH":{"uri":"/melonJS/docs/melonjs/input/KEY.html#O"},"4PDyxWWJUXY7aUmv2dKyq":{"uri":"/melonJS/docs/melonjs/input/KEY.html#OPEN_BRACKET"},"ndP8kpGwiUeoVAIUqHpca":{"uri":"/melonJS/docs/melonjs/input/KEY.html#P"},"KNnSqqC9RnNmufvr6wlVi":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_DOWN"},"G8sUtEB83hFTtzzCJLz5G":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_UP"},"isIkKJEIwkxhWBexYagBo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAUSE"},"a5RZWFAf1T4yO_i56RHLI":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PERIOD"},"6Emx0z9PTKiKIpcgJsZaa":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PLUS"},"LycVJOUX-jOpt2HmAosww":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PRINT_SCREEN"},"2cY7FfgrdH054ftNZ4Vaq":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Q"},"cYvm-LUoCjF63JERbbeyf":{"uri":"/melonJS/docs/melonjs/input/KEY.html#R"},"Q6E9YpajlJ84X7NUbKT5G":{"uri":"/melonJS/docs/melonjs/input/KEY.html#RIGHT"},"5rAvhT-TvHFb8qR9Gkj0m":{"uri":"/melonJS/docs/melonjs/input/KEY.html#S"},"7wAIug_yIkOexWxJjdPOc":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SCROLL_LOCK"},"1aoHz20nEYP26NzUetqCJ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SEMICOLON"},"5XiLKudfHbk_MUBwg9_sk":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SHIFT"},"PGwmfV_-HEBuD39D7b0f6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SINGLE_QUOTE"},"KoroAycnnzHMUT2YYLmSl":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SPACE"},"3PqarcE6_Khobd_hXjBNQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SUBSTRACT"},"9mO39SENCk99Yh6iGQwJr":{"uri":"/melonJS/docs/melonjs/input/KEY.html#T"},"1zQra_M6VEtGHqyEYflq_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TAB"},"Dflzb3f27klWwUa3IJaBN":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TILDE"},"BmcqmFr37TALJA5rIrWzb":{"uri":"/melonJS/docs/melonjs/input/KEY.html#U"},"CfiY7vWYgIHEtC2kNzdB5":{"uri":"/melonJS/docs/melonjs/input/KEY.html#UP"},"ZoL-GMuOMJnmKJ3-G8QRv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#V"},"PCBema4cghIqDoqTB9L7o":{"uri":"/melonJS/docs/melonjs/input/KEY.html#W"},"97FLNKVNXazBjkUOJRA7D":{"uri":"/melonJS/docs/melonjs/input/KEY.html#WINDOW_KEY"},"L4S9jgGHzHbNrW9hmyVyk":{"uri":"/melonJS/docs/melonjs/input/KEY.html#X"},"BWaQ3tassME8nInUvS7y_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Y"},"Zv3BYH4qnr-NE_hnjf7LQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Z"},"H4OpWsqf08DQEkRTMb6Pr":{"uri":"/melonJS/docs/melonjs/input.html#keyBoardEventTarget"},"NTxamQwqVwvfcEVP8tOPC":{"uri":"/melonJS/docs/melonjs/input.html#locked"},"sITCrRIqCmjDS0BAQcnn4":{"uri":"/melonJS/docs/melonjs/input.html#pointer"},"-fOKnWKeeci-hG51W1yZu":{"uri":"/melonJS/docs/melonjs/input.html#pointerEventTarget"},"6h0Kk1lZvOqL8IfvemCyC":{"uri":"/melonJS/docs/melonjs/input.html#preventDefault"},"GLRIm71Jg3I6LcPH1ny5e":{"uri":"/melonJS/docs/melonjs/input.html#setGamepadMapping"},"XmPD3lNdFjBWxBG1LQOz_":{"uri":"/melonJS/docs/melonjs/input.html#throttlingInterval"},"AUQRfGIK3Q7foGDIjTYXf":{"uri":"/melonJS/docs/melonjs/input/bindGamepad.html"},"iU14eKxfOBLi1iWzwcFxP":{"uri":"/melonJS/docs/melonjs/input/bindKey.html"},"26d_lt4pXh_Zp3lSeaOs2":{"uri":"/melonJS/docs/melonjs/input/bindPointer.html"},"mAWJCDVzR2DsED96CO0je":{"uri":"/melonJS/docs/melonjs/input/exitPointerLock.html"},"osNRE0IB-jVAwnhRpAdt8":{"uri":"/melonJS/docs/melonjs/input/getBindingKey.html"},"wwlNN1QJOdts_6yVQDERh":{"uri":"/melonJS/docs/melonjs/input/globalToLocal.html"},"Qo3ODyO0jzIkDILcqx32W":{"uri":"/melonJS/docs/melonjs/input/hasActiveEvents.html"},"uyIXi0-9ELsON0PgFyeFr":{"uri":"/melonJS/docs/melonjs/input/hasRegisteredEvents.html"},"sphzSu6_UrYZlzoQBbxzN":{"uri":"/melonJS/docs/melonjs/input/isKeyPressed.html"},"YW_KWbPDpwhMExlpS5rjV":{"uri":"/melonJS/docs/melonjs/input/keyStatus.html"},"9Tip10oCH5btht5lW5PgG":{"uri":"/melonJS/docs/melonjs/input/registerPointerEvent.html"},"Q3PwG9J0Qmz3duQhOAJL3":{"uri":"/melonJS/docs/melonjs/input/releaseAllPointerEvents.html"},"xTGQVu9bCrldVH9u2AORq":{"uri":"/melonJS/docs/melonjs/input/releasePointerEvent.html"},"oDbMDK5Zp-XzB57xzdYit":{"uri":"/melonJS/docs/melonjs/input/requestPointerLock.html"},"5X3UIZ7pHw43xfEbk6eHq":{"uri":"/melonJS/docs/melonjs/input/setGamepadDeadzone.html"},"qFM9ImK5DB4qHkb86GZIR":{"uri":"/melonJS/docs/melonjs/input/setTouchAction.html"},"shrMZZdTwV-yA6bjzyEjR":{"uri":"/melonJS/docs/melonjs/input/triggerKeyEvent.html"},"nwcAGe-eSF-5V9M10LXbL":{"uri":"/melonJS/docs/melonjs/input/unbindGamepad.html"},"_o-v_e9j2rJEzYHe1Ru61":{"uri":"/melonJS/docs/melonjs/input/unbindKey.html"},"5m9pVhHh10EcJVnhe3BhD":{"uri":"/melonJS/docs/melonjs/input/unbindPointer.html"},"BeQlI-bpP3gQ_o7O3DF3o":{"uri":"/melonJS/docs/melonjs/input/unlockKey.html"},"FqZ4XEvl82iQrNdk4BMDl":{"uri":"/melonJS/docs/melonjs/level.html"},"dE3BLQJ_wuUaD-QhWr8aD":{"uri":"/melonJS/docs/melonjs/level.html#add"},"7RIh-fOAzyokyA2aDLqW3":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevel"},"2sp3nkYunvjiCV8hL3-1W":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevelId"},"b1sJBDcTt0SyDNceBJlv2":{"uri":"/melonJS/docs/melonjs/level.html#levelCount"},"CDhhaqi3EBC7uOYEiAIW7":{"uri":"/melonJS/docs/melonjs/level.html#load"},"jmF39J8tzX7xjNip9fU0Y":{"uri":"/melonJS/docs/melonjs/level.html#next"},"KDYqm-oft_9IcjtoEzl8-":{"uri":"/melonJS/docs/melonjs/level.html#previous"},"Y55sCwdg4CVfrATTIWRuq":{"uri":"/melonJS/docs/melonjs/level.html#reload"},"PR1ttQj1pNxQksCHlttUX":{"uri":"/melonJS/docs/melonjs/loader.html"},"YU1u86vPC7UyXAw-3rhNZ":{"uri":"/melonJS/docs/melonjs/loader/Asset.html"},"8SRoMztf5MJX1kIyKDrQS":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#autoplay"},"yUA5pKM7bXzwZqoUdDB_8":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#data"},"1eO2mQZYrBfHZEXSMtR7t":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#loop"},"deLsb1_x4jOjxpl1dpOVY":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#name"},"KJ0EMR1CW7WLaFUoqihwb":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#src"},"-tnxOHpKSxE6s3or8AMUW":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#stream"},"7PR65DbtNXvObKArL9_GJ":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#type"},"SeW4LUeui1DPS5uLOfYxk":{"uri":"/melonJS/docs/melonjs/loader.html#crossOrigin"},"iCjoPgdM9sUXGcu568b8U":{"uri":"/melonJS/docs/melonjs/loader.html#onError"},"o08Uv7ODIOaokFx41UbtE":{"uri":"/melonJS/docs/melonjs/loader.html#onload"},"oLCvhi4G25TKz55K4ELav":{"uri":"/melonJS/docs/melonjs/loader.html#onProgress"},"C5NsfnWt0PMohjL3Ko4B0":{"uri":"/melonJS/docs/melonjs/loader.html#withCredentials"},"jBJAh4W_Cad98bzBD8689":{"uri":"/melonJS/docs/melonjs/loader/getBinary.html"},"bLTnICdOVIfrIzHQ6TVpP":{"uri":"/melonJS/docs/melonjs/loader/getFont.html"},"-o1Q2r1MQCsUtivOeXxk7":{"uri":"/melonJS/docs/melonjs/loader/getImage.html"},"qpqKHPRYbPRLkakFl4RC5":{"uri":"/melonJS/docs/melonjs/loader/getJSON.html"},"r-nISPVSFiUx0rk5TMzOY":{"uri":"/melonJS/docs/melonjs/loader/getTMX.html"},"34_o67aBV9HD7YEUpQ85g":{"uri":"/melonJS/docs/melonjs/loader/getVideo.html"},"lm-FYIC1sXfYQuaol44aU":{"uri":"/melonJS/docs/melonjs/loader/load.html"},"L_bJ7vHHb8V5srMFtMhzm":{"uri":"/melonJS/docs/melonjs/loader/preload.html"},"Du1RnilspN6xooy3RttF7":{"uri":"/melonJS/docs/melonjs/loader/reload.html"},"HoBj07QjebbcCEcrk6Ax2":{"uri":"/melonJS/docs/melonjs/loader/setBaseURL.html"},"VPQYwlxGH9bsoT1DY1SHT":{"uri":"/melonJS/docs/melonjs/loader/setOptions.html"},"eWG7idmH916Wb8PYPAkOg":{"uri":"/melonJS/docs/melonjs/loader/setParser.html"},"v5_Qwy0JftrUVdbXL0M6I":{"uri":"/melonJS/docs/melonjs/loader/unload.html"},"OmPTBmwAwNVJe5qpi9AmQ":{"uri":"/melonJS/docs/melonjs/loader/unloadAll.html"},"R1a0OUOaUxSn5oygXEtVt":{"uri":"/melonJS/docs/melonjs/Math.html"},"EUoeWxiVohKzjNh5xswsd":{"uri":"/melonJS/docs/melonjs/Math.html#DEG_TO_RAD"},"Oqyh9tNwj4Ke57Lyl9UGx":{"uri":"/melonJS/docs/melonjs/Math.html#EPSILON"},"OrI0BwFmivZPZSVhXwcVe":{"uri":"/melonJS/docs/melonjs/Math.html#ETA"},"7flVsxPcDvFfSCsPBIU_Q":{"uri":"/melonJS/docs/melonjs/Math.html#RAD_TO_DEG"},"njgWxbhmbVIHtaOeGCv8B":{"uri":"/melonJS/docs/melonjs/Math.html#TAU"},"ZL1x6FG3Fidvdw5Fgky67":{"uri":"/melonJS/docs/melonjs/Math/clamp.html"},"qtFieeRtDm6YHCkUfrBGp":{"uri":"/melonJS/docs/melonjs/Math/degToRad.html"},"l19GR0VRVFWoyjwqSYpDH":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfFour.html"},"-JKTfxUfBluJZ4xeMhKma":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfTwo.html"},"Kh-7bSHQ47_u10kbRoQTX":{"uri":"/melonJS/docs/melonjs/Math/nextPowerOfTwo.html"},"JFFdH8FTmgnRpCujq1RQl":{"uri":"/melonJS/docs/melonjs/Math/pow.html"},"Iyp3d2DLyorzSYUmWO1_K":{"uri":"/melonJS/docs/melonjs/Math/radToDeg.html"},"9Mup8CfLmRij7ixoSYs4y":{"uri":"/melonJS/docs/melonjs/Math/random.html"},"LjfgtuAXRgbPs8yLE3Ed7":{"uri":"/melonJS/docs/melonjs/Math/randomFloat.html"},"7ydT5S6maBkj2cOdO6I13":{"uri":"/melonJS/docs/melonjs/Math/round.html"},"ibWyvSGtqtp0yJzLp9iUY":{"uri":"/melonJS/docs/melonjs/Math/toBeCloseTo.html"},"B5KxVxWtYqVJM43quDSCh":{"uri":"/melonJS/docs/melonjs/Math/weightedRandom.html"},"v3DtE8IScMfjHjXtF8jd4":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html"},"5JNPVI9lhD9zRM7IlyTEu":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angle"},"zoBrhYTARK3rk3yfnwl2H":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angleVariation"},"rgH_N1Ob6J0gUhf9LtPQY":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#blendMode"},"FjC4geLq6CVoKsJYxm3zd":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#duration"},"z4iQeBhKLRr52y6do-Jtg":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#floating"},"1rDogjyYeeCrchfxCN8dx":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#followTrajectory"},"kGVVgbMgODEaLepZQ8Ge_":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#framesToSkip"},"2XAb18r8y7RmwUubuk1kw":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#frequency"},"2beTBr40huthkOJTRFFpR":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#gravity"},"mrbd0T4gt0EA9g-ZPcsuo":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#height"},"vxVZKr0qXFaFK_mUcnNtW":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#image"},"9sv83lqXK5Y1ug2WoAtt1":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxEndScale"},"iXIyzW1Yzy0xM0_Wzlrja":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxLife"},"Rc9JOsmMyP0aSV0wdidKu":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxParticles"},"_LVk-2tVcdF415Pg8aE8A":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxRotation"},"WRCAH1x0ldt7UsuwsNjXO":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxStartScale"},"Rk4ultZt8rqtblOyf52Fc":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minEndScale"},"1sj9kT3wBBDbHq_2abjU3":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minLife"},"wmm9UC52RIfqs9eOVohjn":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minRotation"},"jXKEQMB5MXNZhlPssOZ1h":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minStartScale"},"RgV517hbKFhXgxfRVJGL8":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#onlyInViewport"},"PYG7rsJ3TXQDAzG6hkpjs":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speed"},"9FjXHKGGnNUCxxIvnk2ci":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speedVariation"},"KUfTEIwoXcoVMyaOpcSj3":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureAdditive"},"OrDnmhjrcE_XfmO0IPpRy":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureSize"},"QoasfRoY1FMpwgAsn4ZNV":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#tint"},"7aiSx280wV-dZpGysxhtP":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#totalParticles"},"duWgvha-5CxVxqaVmudjz":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#width"},"TzOr5NNl8cGcGyAyZwNDZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#wind"},"2cbsfkM4WOeRgBKTxjMCK":{"uri":"/melonJS/docs/melonjs/plugin.html"},"Tke9kfkCVFYYHZTqqJubV":{"uri":"/melonJS/docs/melonjs/plugin/Base.html"},"SNNpBXxH9XTmbOM_M_-WN":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#app"},"TmHBeTaZ_8g4A-weDhcK5":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#version"},"R2XJ0ijVwjVwdlIgpfHH1":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html"},"loLiz-M2X81D7MfNF9HLm":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#app"},"Pz6DA4oNeWrp9VQ05jddq":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#version"},"x-Av8LDNo9RqDV6iM_TFU":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#constructor"},"dKZrNFmdSShEx5R2dXdiW":{"uri":"/melonJS/docs/melonjs/plugin.html#cache"},"KqHGcJmPQCiKCuainoPfK":{"uri":"/melonJS/docs/melonjs/plugin/get.html"},"3kGExv7mc_3NJWY8L0nTB":{"uri":"/melonJS/docs/melonjs/plugin/patch.html"},"-40p8gDZvt-Z6Mzhtq0RT":{"uri":"/melonJS/docs/melonjs/plugin/register.html"},"y-fXMfOMo1JlPWlFvpYIe":{"uri":"/melonJS/docs/melonjs/pool.html"},"7BsGza3GTY0PMwOit6Bpd":{"uri":"/melonJS/docs/melonjs/save.html"},"duPiyV4W9UsOZtqhdqtxz":{"uri":"/melonJS/docs/melonjs/save.html#add"},"-X8tet49uCc7rMWR1d1el":{"uri":"/melonJS/docs/melonjs/save.html#remove"},"fysvYLGQg077w6s4rsze7":{"uri":"/melonJS/docs/melonjs/state.html"},"DEua3jQjvHgMVezo0zFp9":{"uri":"/melonJS/docs/melonjs/state.html#CREDITS"},"Yii28ov6nQPcgnoNE6OLS":{"uri":"/melonJS/docs/melonjs/state.html#DEFAULT"},"oMwZMEOWvsFE8TxKqN_uc":{"uri":"/melonJS/docs/melonjs/state.html#GAME_END"},"evyH1wNELwy9T7QQHZh0g":{"uri":"/melonJS/docs/melonjs/state.html#GAMEOVER"},"t-VAsu7kRHfyh-vYtu4Yj":{"uri":"/melonJS/docs/melonjs/state.html#LOADING"},"io_rgfZ8v8RG-aeISAPgi":{"uri":"/melonJS/docs/melonjs/state.html#MENU"},"6PZ3L9kWy1Kjfu7O3zfBy":{"uri":"/melonJS/docs/melonjs/state.html#PLAY"},"fYSvMIQ0mKDE0ey1zrhlK":{"uri":"/melonJS/docs/melonjs/state.html#READY"},"Y9VM3dwC9PxlQc4_Oktca":{"uri":"/melonJS/docs/melonjs/state.html#SCORE"},"rNUdv577mfJBmgOHHX08X":{"uri":"/melonJS/docs/melonjs/state.html#SETTINGS"},"BSnLuPk93csG6DZvkJ67T":{"uri":"/melonJS/docs/melonjs/state.html#USER"},"nzB7EI-J-o4cb5YKd_5rQ":{"uri":"/melonJS/docs/melonjs/state.html#change"},"HumGZPRFO5kGURHFoat14":{"uri":"/melonJS/docs/melonjs/state.html#current"},"quP2bkOzP_kJECFyeExmX":{"uri":"/melonJS/docs/melonjs/state.html#isCurrent"},"63V9RjcSNAceH394wFZe6":{"uri":"/melonJS/docs/melonjs/state.html#isPaused"},"9khFEuvKpaIn5w-cHbYD9":{"uri":"/melonJS/docs/melonjs/state.html#isRunning"},"lJh1tBJ57KrytB74WAHAT":{"uri":"/melonJS/docs/melonjs/state.html#pause"},"8weKMbzWnbwmxamCSZyGv":{"uri":"/melonJS/docs/melonjs/state.html#restart"},"3C1jbHNSTdEmbvxNCJGeJ":{"uri":"/melonJS/docs/melonjs/state.html#resume"},"A8FqY8qq-96Blvsr1M_VF":{"uri":"/melonJS/docs/melonjs/state.html#set"},"jv3gmG_0t0lvDnQ9onILh":{"uri":"/melonJS/docs/melonjs/state.html#set_"},"p6wqzPUhaAnW6GrHy853e":{"uri":"/melonJS/docs/melonjs/state.html#setTransition"},"5KJ0sbUiHtbCSHgrlNUd_":{"uri":"/melonJS/docs/melonjs/state.html#stop"},"_hCI_6FG64PSQyx4Qoc9z":{"uri":"/melonJS/docs/melonjs/state.html#transition"},"qTv5hl7B-Dwh7xwKRvFjQ":{"uri":"/melonJS/docs/melonjs/timer.html"},"930bHHwRsza0WyOSe7KYE":{"uri":"/melonJS/docs/melonjs/TMXUtils.html"},"NLBM_1MX-Ey1nlzDWzIKb":{"uri":"/melonJS/docs/melonjs/TMXUtils/applyTMXProperties.html"},"O08Us2-ErkEQMAGBF4cKK":{"uri":"/melonJS/docs/melonjs/TMXUtils/decode.html"},"i1P9Y_kNjdLfs35W3Wv_T":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeBase64AsArray.html"},"c9gLJQV27YPDZgxqT7TXo":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeCSV.html"},"MCrXdURxvaBX4FxvLlWVL":{"uri":"/melonJS/docs/melonjs/TMXUtils/decompress.html"},"Oc_PsNKH_SeOR1ostOSMM":{"uri":"/melonJS/docs/melonjs/TMXUtils/parse.html"},"UBEzV3eg5UC8wJ7NWZafv":{"uri":"/melonJS/docs/melonjs/TMXUtils/setInflateFunction.html"},"sxGJZw96k6RlAzZuiI1pF":{"uri":"/melonJS/docs/melonjs/utils.html"},"dA8IhtD60QS2_SmuJhpfa":{"uri":"/melonJS/docs/melonjs/utils/agent.html"},"XN4XyANPtQFR7HYtw3lcK":{"uri":"/melonJS/docs/melonjs/utils/agent/prefixed.html"},"3QgqLgf20Po3Rvq3p2NLx":{"uri":"/melonJS/docs/melonjs/utils/agent/setPrefixed.html"},"SFm8-FSmkhwpVUxzHlstb":{"uri":"/melonJS/docs/melonjs/utils/array.html"},"LY8yuWl5yBjh-XrCsZOpc":{"uri":"/melonJS/docs/melonjs/utils/array/random.html"},"bSoHHePcCH6O4KcAj0cs3":{"uri":"/melonJS/docs/melonjs/utils/array/remove.html"},"tue3yldu2_pmNkPpkNEku":{"uri":"/melonJS/docs/melonjs/utils/array/weightedRandom.html"},"G-dCT0MpjnO_grhzO9nTc":{"uri":"/melonJS/docs/melonjs/utils/file.html"},"lwFCWADj4DP_hxPcIHu6D":{"uri":"/melonJS/docs/melonjs/utils/file/getBasename.html"},"wU_pBT1nnRS1ZjcThCyOr":{"uri":"/melonJS/docs/melonjs/utils/file/getExtension.html"},"qJwmOiiSm_hqCfFOsSIYD":{"uri":"/melonJS/docs/melonjs/utils/file/getPath.html"},"5eszMABzYobyVqIp7Hllt":{"uri":"/melonJS/docs/melonjs/utils/function.html"},"K_jBa9h1MbTNN4oX8lCYE":{"uri":"/melonJS/docs/melonjs/utils/function/defer.html"},"0cDG2c9df2a8MTJoGQfuI":{"uri":"/melonJS/docs/melonjs/utils/function/throttle.html"},"WEuf1hqBx3pB7uztI6F7-":{"uri":"/melonJS/docs/melonjs/utils/string.html"},"xMaaSgcvN1lOfPtNwskyW":{"uri":"/melonJS/docs/melonjs/utils/string/capitalize.html"},"GROgyxv1NpUT0r1Kslcmz":{"uri":"/melonJS/docs/melonjs/utils/string/isBoolean.html"},"3Z106Ud3lthLR2nW156O0":{"uri":"/melonJS/docs/melonjs/utils/string/isDataUrl.html"},"-uWwNoJcs84J1RboYT6eu":{"uri":"/melonJS/docs/melonjs/utils/string/isNumeric.html"},"-T7shuWkPvpqi1lROSb1I":{"uri":"/melonJS/docs/melonjs/utils/string/toHex.html"},"Zl6mEJ1HUMROgou_d7G6v":{"uri":"/melonJS/docs/melonjs/utils/checkVersion.html"},"L1nfxsC6Axpc32U7PBul-":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html"},"Ra5GpA7ty_txJhPpZcEM0":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debug"},"FGKAi8F-IzTvV32RjaRXP":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debugToggleKey"},"k5nEmmnPy4hUJvAoC_gs-":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#hitbox"},"hqIsFui6bJaACkRDN9WU7":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#quadtree"},"GYNufHp1uQT6iDiEVJ4h5":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#velocity"},"DiWkkx8WLK_IfMqqVBN2P":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#webgl"},"hPIySWfWrkeMQ0Sblka0Z":{"uri":"/melonJS/docs/melonjs/video.html"},"FV2zdXZFHLbnfOiN_Fj86":{"uri":"/melonJS/docs/melonjs/video.html#renderer"},"ClEdkYgbOD1y73AoqG5I2":{"uri":"/melonJS/docs/melonjs/video/createCanvas.html"},"039LJS3eBvmgB5kQ8JkC4":{"uri":"/melonJS/docs/melonjs/video/getParent.html"},"MKsYKtjXrtL8C6u6STJID":{"uri":"/melonJS/docs/melonjs/video/init.html"},"PUf1mLE96ZDOeULopbMQL":{"uri":"/melonJS/docs/melonjs/Application.html"},"anKhm7iNzo7aa1MKNegGw":{"uri":"/melonJS/docs/melonjs/Application.html#isInitialized"},"HSWuKzUVtv-xquV898_0R":{"uri":"/melonJS/docs/melonjs/Application.html#lastUpdate"},"shAqP0JD7MosCniJi1QBy":{"uri":"/melonJS/docs/melonjs/Application.html#mergeGroup"},"zwmWNscbZDjgtvaaugWr1":{"uri":"/melonJS/docs/melonjs/Application.html#parentElement"},"iAj6mK4mDQEGp_e_cnWfs":{"uri":"/melonJS/docs/melonjs/Application.html#pauseOnBlur"},"jovJoAnyVn8Tqt8wnerFI":{"uri":"/melonJS/docs/melonjs/Application.html#renderer"},"yDj2KpQppJqv2N99Oh54C":{"uri":"/melonJS/docs/melonjs/Application.html#resumeOnFocus"},"FJGUnlo0OymcqbG9rdTSV":{"uri":"/melonJS/docs/melonjs/Application.html#settings"},"hEjIImVMnF4NRa-Dfk-lE":{"uri":"/melonJS/docs/melonjs/Application.html#sortOn"},"BBfZLEwzbiyp7F5EIseHO":{"uri":"/melonJS/docs/melonjs/Application.html#stopOnBlur"},"dn17VQpO3KqoiERQHQHHe":{"uri":"/melonJS/docs/melonjs/Application.html#viewport"},"NFczq2pRFfzmEhMxal5ik":{"uri":"/melonJS/docs/melonjs/Application.html#world"},"udEmJeJZN8dMSIag4TqKs":{"uri":"/melonJS/docs/melonjs/Application.html#constructor"},"tHkJXHUFtqBDUGm8PFBhZ":{"uri":"/melonJS/docs/melonjs/Application.html#draw"},"2oTLxSoiIR3ck8o-ZFvwr":{"uri":"/melonJS/docs/melonjs/Application.html#getParentElement"},"qLFfr9Wlv-P2T0FS_QhnF":{"uri":"/melonJS/docs/melonjs/Application.html#init"},"siJaBGG8xL3Lo4ojyl-qB":{"uri":"/melonJS/docs/melonjs/Application.html#onLevelLoaded"},"3GnU9Brf6-KsId-9Gf7gv":{"uri":"/melonJS/docs/melonjs/Application.html#repaint"},"wTO_2_l8Boi97gyXiZ8VR":{"uri":"/melonJS/docs/melonjs/Application.html#reset"},"sKIs0NFYoVWcZvWc8_WbB":{"uri":"/melonJS/docs/melonjs/Application.html#update"},"ubHuZmqmuUd1q34-bm0Fh":{"uri":"/melonJS/docs/melonjs/Application.html#updateFrameRate"},"-2FNlv3UvtPpJofn5CEnU":{"uri":"/melonJS/docs/melonjs/BitmapText.html"},"OIh2Odu2_BnlcMurB6DtU":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alpha"},"UZCpnS3MaSR2ro-r_V0eO":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alwaysUpdate"},"ytotPaVa-StAowEBDwE-a":{"uri":"/melonJS/docs/melonjs/BitmapText.html#ancestor"},"MjGDHPNLrpzHe5vlrPPr4":{"uri":"/melonJS/docs/melonjs/BitmapText.html#anchorPoint"},"MW5ySej1whlSr7A48RYzP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#autoTransform"},"1A5_ieIJu2qPRZfpJgOFq":{"uri":"/melonJS/docs/melonjs/BitmapText.html#blendMode"},"A_txxJGhQ9U6zjqR-Leie":{"uri":"/melonJS/docs/melonjs/BitmapText.html#body"},"qtWEtlsSPRObXKL6qncTk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#bottom"},"98iJ-8QL49XP5PANlFz3e":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerX"},"sdemjf_P5UGjjpx5Xxi4F":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerY"},"7TEh2KvaOUGXRetg2HnGt":{"uri":"/melonJS/docs/melonjs/BitmapText.html#currentTransform"},"0__DSXYGZIc8-sqYLrDQt":{"uri":"/melonJS/docs/melonjs/BitmapText.html#depth"},"EvXNZ0T2cAfgpvYd6JkjY":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fillStyle"},"8tx9fQnLb0Rw30OzCQFEp":{"uri":"/melonJS/docs/melonjs/BitmapText.html#floating"},"sZzp7X2uBAur029NvUCt-":{"uri":"/melonJS/docs/melonjs/BitmapText.html#GUID"},"fHcJtGO2sLSSHJnmfQXZn":{"uri":"/melonJS/docs/melonjs/BitmapText.html#height"},"WUUF2Yf91epvpHjxlMlS9":{"uri":"/melonJS/docs/melonjs/BitmapText.html#inViewport"},"kX3QkKc16vEbsmAto24tS":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isDirty"},"O5SDE2GL0GveAkW0HqVNn":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedX"},"0qiLEUCQctJxyFn1bma-l":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedY"},"i8ZJdfW8dRC3J6T3cF1xs":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFloating"},"3s__g2cnUjuWUykh1Y5vX":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isKinematic"},"Ilo189QUT3CFdjFkX-poB":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isPersistent"},"4-IP8tZ-XZe2vxJvlBg8d":{"uri":"/melonJS/docs/melonjs/BitmapText.html#left"},"wkk3ESXt5N9teDYscaEd5":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lineHeight"},"BtgDoBGxwhnBcUZTrqntf":{"uri":"/melonJS/docs/melonjs/BitmapText.html#mask"},"WmFh41OXzISj7wenYchi3":{"uri":"/melonJS/docs/melonjs/BitmapText.html#name"},"xzD1d9f-Rbz5wVTm2eqjy":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onVisibilityChange"},"Hrd7inV86H42OnwSy-Oqx":{"uri":"/melonJS/docs/melonjs/BitmapText.html#parentApp"},"JLKsMNDfbwJxXksLTmtkb":{"uri":"/melonJS/docs/melonjs/BitmapText.html#points"},"wQ-67OVuy9oqvyK71R4pX":{"uri":"/melonJS/docs/melonjs/BitmapText.html#pos"},"W9NByq1RS2n_lycibgeEU":{"uri":"/melonJS/docs/melonjs/BitmapText.html#right"},"np8l8emOFu04sXbnJssJs":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shader"},"8VtYAKYkSGgTneUFPAPED":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textAlign"},"babzw4S2qZw3Sn7UYs2pY":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textBaseline"},"mVr6gJMCGVDirLNJ-go8Y":{"uri":"/melonJS/docs/melonjs/BitmapText.html#tint"},"pC_8e9wBxBMzmEVa0GBD2":{"uri":"/melonJS/docs/melonjs/BitmapText.html#top"},"MPYlmQ6RD44S4eoOlmbsZ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#type"},"_OjdmWjdQj-3mBCceVrZW":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateWhenPaused"},"s2j20PSaqk1x8s-KU2sNd":{"uri":"/melonJS/docs/melonjs/BitmapText.html#width"},"v2KrpLPIjdd2kBd4m3Gxe":{"uri":"/melonJS/docs/melonjs/BitmapText.html#wordWrapWidth"},"1GeiSmq1AWvZ5Oi2xKSIF":{"uri":"/melonJS/docs/melonjs/BitmapText.html#_text"},"NZ223q1YOIV3Wtu_199G3":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontData"},"8d0lfW_9AsQSct4dJYQOW":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontImage"},"1H6fKoGu6Hasfj8ItZwhi":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontScale"},"Nbdy8XIRHQ4ZSqDPsKlVU":{"uri":"/melonJS/docs/melonjs/BitmapText.html#angleTo"},"eHyOkep2xfKjh6P_yJh2o":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerOn"},"kBMviiSKuLsrTqMFsXntT":{"uri":"/melonJS/docs/melonjs/BitmapText.html#clone"},"iJciUoUh_CKlN3Uum23Xb":{"uri":"/melonJS/docs/melonjs/BitmapText.html#constructor"},"0RUSgomcxeyAHAGbGziVQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#contains"},"w_o4QZVQT8Qfk2wrQgE19":{"uri":"/melonJS/docs/melonjs/BitmapText.html#copy"},"LVLuepRDBKEx8ow_cbtVS":{"uri":"/melonJS/docs/melonjs/BitmapText.html#distanceTo"},"TO3pTXx69Y8dOxPl_eMk3":{"uri":"/melonJS/docs/melonjs/BitmapText.html#draw"},"LoLR3RqD9B-Pr-I359w8n":{"uri":"/melonJS/docs/melonjs/BitmapText.html#equals"},"rnMWrzZLewgC-Nbp9rGPU":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipX"},"rzv6EToUYZrK-J9M3n-K_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipY"},"luhLfaeaT3s0XZ3D_VTJO":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getAbsolutePosition"},"qwfiDIgRUrFJl4PuIpFdd":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getBounds"},"dlqTZlk8ooaQIKt6-K7yf":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getIndices"},"fSsZ9eBTMEg_A5pSIy4J_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getOpacity"},"K7TYRmF27aW17Wu_Avj-s":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isConvex"},"84TvApdKUGJDuBMMjJhpQ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFinite"},"bFC0Lyk5rwHWzr3UDMwfd":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lookAt"},"Qa0_4jxcnNNzb7b4hAUMA":{"uri":"/melonJS/docs/melonjs/BitmapText.html#measureText"},"JVzW3LTgMKfgCtG-umK_K":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onCollision"},"F8W4RJNIXEG13PRRn5c6L":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onDestroyEvent"},"Si7BP9Ur1H2vJBU-eqWzL":{"uri":"/melonJS/docs/melonjs/BitmapText.html#overlaps"},"ACbS-pxp_GKzbu_jng07W":{"uri":"/melonJS/docs/melonjs/BitmapText.html#postDraw"},"0ObpdU9W_KCpPBPtDHQii":{"uri":"/melonJS/docs/melonjs/BitmapText.html#preDraw"},"GSwtapHvl32NDd1sR6Ghk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#recalc"},"UuCcuxav0j_f8UN5fCw46":{"uri":"/melonJS/docs/melonjs/BitmapText.html#resize"},"xX7XPJXUIW7-LM95G48xR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#rotate"},"OMa841w74cE939eUzDK2-":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scale"},"PFJtJAEEyZBAOIa5PIDx6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scaleV"},"6t8IE48TpMhI3yqOQHNCT":{"uri":"/melonJS/docs/melonjs/BitmapText.html#set"},"1EUMEZiHbruZ2ZXeiUTAq":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setOpacity"},"2HFAXEnRuAVuItozr80T8":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setShape"},"_-yeIu4DFdCinDtRyc6gl":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setText"},"bHaOiZEUx07jJ3jru9him":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setVertices"},"3O4FT4IgTITr91_czfCCo":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shift"},"1vlYkJJol1PYXtKVYf_u1":{"uri":"/melonJS/docs/melonjs/BitmapText.html#to2d"},"lMI5YSzwFjkAs0EB9b2E6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toIso"},"5OZzrv7GI4inykKqWpVuq":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toPolygon"},"0AWeTuAzM8JYxhXBCE3WP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#transform"},"0hy8Yvn2_LaQpk6sd4NsJ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#translate"},"Z1rGGpadxjulZwG_Bx9j0":{"uri":"/melonJS/docs/melonjs/BitmapText.html#union"},"N-HU61cgXLVfj4N9xZYcL":{"uri":"/melonJS/docs/melonjs/BitmapText.html#update"},"lK1_a7zcFcunGAKbdsyTi":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateBounds"},"SksqJ_WdXT9kkBmrxnIYV":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onAnchorUpdate"},"iWqLW27iZd5pzBZ5chlo2":{"uri":"/melonJS/docs/melonjs/Body.html"},"B7G_I1wxMiXGEyi32_HVm":{"uri":"/melonJS/docs/melonjs/Body.html#ancestor"},"TszmWjTuHftNY5cwYxOAi":{"uri":"/melonJS/docs/melonjs/Body.html#bounce"},"C_TDCE1WVPAzfbH3uguK7":{"uri":"/melonJS/docs/melonjs/Body.html#bounds"},"BrVpsvyfrETg5w38jxHxj":{"uri":"/melonJS/docs/melonjs/Body.html#collisionType"},"eOB_etSud4xmopcJemHBV":{"uri":"/melonJS/docs/melonjs/Body.html#falling"},"tIgYf-E5LZKNRsR5n-yGY":{"uri":"/melonJS/docs/melonjs/Body.html#force"},"FlYDMoocDWQ3CMTajNsbk":{"uri":"/melonJS/docs/melonjs/Body.html#friction"},"a5cacNsEAGN3ff1qVRVL5":{"uri":"/melonJS/docs/melonjs/Body.html#gravityScale"},"ORtAMI69aYdMSA898BrqN":{"uri":"/melonJS/docs/melonjs/Body.html#ignoreGravity"},"uyBQD0iHnoMakpgzfbjbY":{"uri":"/melonJS/docs/melonjs/Body.html#isStatic"},"K38wocpdQ9M2ULViGdzzj":{"uri":"/melonJS/docs/melonjs/Body.html#jumping"},"Dyi9Ht2yopSMYtbmkioY6":{"uri":"/melonJS/docs/melonjs/Body.html#mass"},"qIOcvXOIyWQPrSybUAUnj":{"uri":"/melonJS/docs/melonjs/Body.html#maxVel"},"0t_kBQkDOUIixlf2YYd3p":{"uri":"/melonJS/docs/melonjs/Body.html#vel"},"GZ_wSCtnwJiXpI6qTpIZe":{"uri":"/melonJS/docs/melonjs/Body.html#addShape"},"z1b2WJ0qxGz4OlsmrLbXi":{"uri":"/melonJS/docs/melonjs/Body.html#addVertices"},"S9xoQVbnlAM_xh4fF2_O5":{"uri":"/melonJS/docs/melonjs/Body.html#constructor"},"JeJ0lK7HLt5aeyiJ0_uy1":{"uri":"/melonJS/docs/melonjs/Body.html#contains"},"h-6Vw5guutHtbK8v8XJYL":{"uri":"/melonJS/docs/melonjs/Body.html#forEach"},"hTXLHgzyWPqhGKkn8Nlof":{"uri":"/melonJS/docs/melonjs/Body.html#fromJSON"},"zLgNQbJRzboRFJ8giInw_":{"uri":"/melonJS/docs/melonjs/Body.html#getBounds"},"5B_HpPPwyGwukDLOq__so":{"uri":"/melonJS/docs/melonjs/Body.html#getShape"},"uC7HE65Sqxjnc0X5kLwvy":{"uri":"/melonJS/docs/melonjs/Body.html#removeShape"},"HF9g_wqoErT2ajk7y_LUY":{"uri":"/melonJS/docs/melonjs/Body.html#removeShapeAt"},"8eU3LKXQDuJJ4N49JV0FU":{"uri":"/melonJS/docs/melonjs/Body.html#respondToCollision"},"woQWEwS3-PPLZ4ASoLLQv":{"uri":"/melonJS/docs/melonjs/Body.html#rotate"},"XnQoXAmwFN2c8lciv_z_0":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionMask"},"sLDhTLI4LFK547nDgn4Mw":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionType"},"egkTJgN2CVhNZ1hPHJtFc":{"uri":"/melonJS/docs/melonjs/Body.html#setFriction"},"D68teQhAwNxBdRHLVlGJI":{"uri":"/melonJS/docs/melonjs/Body.html#setMaxVelocity"},"b4CWug18NqDT3UrSq3XAL":{"uri":"/melonJS/docs/melonjs/Body.html#setStatic"},"L90-ANHVmDa3l0Hot-91O":{"uri":"/melonJS/docs/melonjs/Body.html#setVertices"},"2g8cmKQaQqVj7r8b5HyQ0":{"uri":"/melonJS/docs/melonjs/Body.html#update"},"iUgvRCCjZkt_1W5CBoJnF":{"uri":"/melonJS/docs/melonjs/Bounds.html"},"LjIlV2OAFjVsqtbeWqySM":{"uri":"/melonJS/docs/melonjs/Bounds.html#bottom"},"XIj0zVrPmYelPd4eT6_k1":{"uri":"/melonJS/docs/melonjs/Bounds.html#center"},"vdHZwuTxRDc768fre4wu4":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerX"},"h1IdwnA58UDVym81jhJFN":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerY"},"Gw4fl0OXVMJIUECS-eVN1":{"uri":"/melonJS/docs/melonjs/Bounds.html#height"},"JK2gRubMHhEg39OHomftm":{"uri":"/melonJS/docs/melonjs/Bounds.html#left"},"v8dwQ6Feveu1OmlO9bjVl":{"uri":"/melonJS/docs/melonjs/Bounds.html#right"},"YTL6xlgNhyBKFsSvaHwgM":{"uri":"/melonJS/docs/melonjs/Bounds.html#top"},"GIEnUfzZkLdWD8ZKq5tpR":{"uri":"/melonJS/docs/melonjs/Bounds.html#type"},"ukTlzL-VL9iMcKMHskSa_":{"uri":"/melonJS/docs/melonjs/Bounds.html#width"},"Jcs129o85ROzl-78RmYzV":{"uri":"/melonJS/docs/melonjs/Bounds.html#x"},"XJu9Au8V1P-DN5bC8uhyo":{"uri":"/melonJS/docs/melonjs/Bounds.html#y"},"t4B0K1xM17livbRGnGxpX":{"uri":"/melonJS/docs/melonjs/Bounds.html#add"},"8Gdw68TErl04-Aw_B39dG":{"uri":"/melonJS/docs/melonjs/Bounds.html#addBounds"},"EoZAitkpA5KQrCZC13uUf":{"uri":"/melonJS/docs/melonjs/Bounds.html#addFrame"},"qdjzh6YdKjsWUYqswA-Ab":{"uri":"/melonJS/docs/melonjs/Bounds.html#addPoint"},"QDVguSSU1IKDbJ9y_iuJ1":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerOn"},"gkSMjWKPzDN7sRvAvo4UD":{"uri":"/melonJS/docs/melonjs/Bounds.html#clear"},"W4toSjudRoTP9L8Ol2nyF":{"uri":"/melonJS/docs/melonjs/Bounds.html#clone"},"V1jfYA8Vh0vuQ87HdcoYT":{"uri":"/melonJS/docs/melonjs/Bounds.html#constructor"},"c5VMfeuL5A11Yelp2SXVa":{"uri":"/melonJS/docs/melonjs/Bounds.html#contains"},"REwWYLuX4whVvFxG6q3JL":{"uri":"/melonJS/docs/melonjs/Bounds.html#isFinite"},"hjIlJ8X7ntGfvc-A8MZJs":{"uri":"/melonJS/docs/melonjs/Bounds.html#overlaps"},"YJMb6BaPzQwFsbEWWfYRi":{"uri":"/melonJS/docs/melonjs/Bounds.html#setMinMax"},"NoGRMcARV1HoYYRiXkNkZ":{"uri":"/melonJS/docs/melonjs/Bounds.html#shift"},"slBjcW5D196y7Omp4RXto":{"uri":"/melonJS/docs/melonjs/Bounds.html#toPolygon"},"GusWTvsslNcGPzubpv-rC":{"uri":"/melonJS/docs/melonjs/Bounds.html#translate"},"O2_Ce_ExenI-_uuLzgxIX":{"uri":"/melonJS/docs/melonjs/Bounds.html#update"},"Z1IOPcHH1s3DvTtyrE6Zr":{"uri":"/melonJS/docs/melonjs/Camera2d.html"},"B-pnDPkqhDjsXnoLZE9Oo":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html"},"NpVXR5SOQp8k0HMUAbke1":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#BOTH"},"wDFVVXH4K2n_6raIFO3Gs":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#HORIZONTAL"},"Um9sZKKR6f3W_joX0kB3z":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#NONE"},"sXRG5E-x-P_Z1F2AF_oR8":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#VERTICAL"},"Yyys0Rz7iNMh5O51bn2yj":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alpha"},"PftGJxZfUaAs5CNfC0ttM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alwaysUpdate"},"ildiR1UczaIiUr9n-7NCT":{"uri":"/melonJS/docs/melonjs/Camera2d.html#ancestor"},"nFSpGixU6vk2dhNJSEABA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#anchorPoint"},"HMIKYNIRjqfPJWX8fn-EO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#autoTransform"},"FgMkaoLt_zfheNoWsWvSs":{"uri":"/melonJS/docs/melonjs/Camera2d.html#blendMode"},"d3rme2fqP8E1PPUy_-qH5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#body"},"Ikw0_iNvjSpRYj2GeNLbe":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bottom"},"A2GUH4QmUwj92aZLMKkE9":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bounds"},"RYnzJsuqM4K5-y-EPNLyB":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerX"},"ucxflpJXmkd5jcNjB7cIG":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerY"},"STHoflZYuyqi0aJeM1Ur9":{"uri":"/melonJS/docs/melonjs/Camera2d.html#currentTransform"},"vp9pTzmV5EgtmjqJV_fwY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#damping"},"IMRCBRlL5S-rU9B3QFQpG":{"uri":"/melonJS/docs/melonjs/Camera2d.html#depth"},"3pE5-wIwnZ_9ppvo-A_Zl":{"uri":"/melonJS/docs/melonjs/Camera2d.html#far"},"jvn9SLZODzSlE_T2N0H_6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#floating"},"9N1F9Wf1xvrVrePe5Vu_N":{"uri":"/melonJS/docs/melonjs/Camera2d.html#GUID"},"OEN2NVL661OObpLIMPm3n":{"uri":"/melonJS/docs/melonjs/Camera2d.html#height"},"hl6fwLNtquKbRIencK2Bz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#inViewport"},"1mWBXzBF7cOOxfOnkHjk0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isDirty"},"QjmxaiJMZjzCG2EJ6olJJ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedX"},"uAQf3bTZo9NB3yk4AY2Pc":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedY"},"gN4sbkvGW69J5PICehIWF":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFloating"},"Nrlp1AXWpvqUtD5G6SK0J":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isKinematic"},"QH9zcxAI8Fkfndv1hX5Uw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isPersistent"},"dFlbV8qWw43ggqzMbWtMC":{"uri":"/melonJS/docs/melonjs/Camera2d.html#left"},"T3VrjRAyZ3Qbv6sfh3G9E":{"uri":"/melonJS/docs/melonjs/Camera2d.html#mask"},"x99Dwt8-H3qet3mNuhTH1":{"uri":"/melonJS/docs/melonjs/Camera2d.html#name"},"gP6qnUhnfJBImQPhfoUkc":{"uri":"/melonJS/docs/melonjs/Camera2d.html#near"},"TP_L4dnZXv91HDQ5_gTl9":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onVisibilityChange"},"TCtv0O-kRF-GmdSiEsTFF":{"uri":"/melonJS/docs/melonjs/Camera2d.html#parentApp"},"vVw6mKSJvHVvLchSLkBS_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#points"},"7T76NGtUghJQnGZeS8d6H":{"uri":"/melonJS/docs/melonjs/Camera2d.html#pos"},"pp78-wFULMrkKlzuZAaPO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#projectionMatrix"},"so6916oOeyh8jbHuoh_tM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#right"},"FJfWvVZXOwFqh4K3NAAlJ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shader"},"wc4cYEY4BFdFvskyvRoNi":{"uri":"/melonJS/docs/melonjs/Camera2d.html#tint"},"lePdCUVAj9K04awh0ZQm5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#top"},"PaN3hxXOmhaocGb7-8sjd":{"uri":"/melonJS/docs/melonjs/Camera2d.html#type"},"EzYL1QgRT7zaojl24J2hz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateWhenPaused"},"3CFNZy7Ly7quVWTBBiReT":{"uri":"/melonJS/docs/melonjs/Camera2d.html#width"},"9YpnUy3_7UaRVIo9FX_fx":{"uri":"/melonJS/docs/melonjs/Camera2d.html#smoothFollow"},"Hgp44KZwfNgIgOgV6y79P":{"uri":"/melonJS/docs/melonjs/Camera2d.html#angleTo"},"bYXVRfi-UFy1_hri_xRiI":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerOn"},"ds8mYCbpQO8GUd4_cPQtu":{"uri":"/melonJS/docs/melonjs/Camera2d.html#clone"},"BistiMTCROWcpB6kYwa_9":{"uri":"/melonJS/docs/melonjs/Camera2d.html#constructor"},"WxFymerkW_U92CKfIswm_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#contains"},"CLsys-TQOgRBI5_rCvoPp":{"uri":"/melonJS/docs/melonjs/Camera2d.html#copy"},"axBDrQ5AI6As8V-vtAcv5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#distanceTo"},"6mkXLBq3Y3wqXSgFLs2Td":{"uri":"/melonJS/docs/melonjs/Camera2d.html#draw"},"AM5lBbm2YarrzVi-yXBG5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#equals"},"WLCSj59YiLdfL3haUQdJP":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeIn"},"xXljOCYXRkGuOvftDVNer":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeOut"},"-L9haFCS_rANycY2-TvdB":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipX"},"J1qQKIMhJK7Hjwh37MmVA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipY"},"GqDzRNaenecGZGgigWmg2":{"uri":"/melonJS/docs/melonjs/Camera2d.html#focusOn"},"HMRx86U1kYREHsd4YEu7b":{"uri":"/melonJS/docs/melonjs/Camera2d.html#follow"},"OL5DAVtRxhF9IqDAkwEfS":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getAbsolutePosition"},"EfDKtQUzhGh6gcBfAv7Ic":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getBounds"},"sZFmu4X1H_7SketYqfXIs":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getIndices"},"4Gv1GmTyjh86B9H-c6pyg":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getOpacity"},"HmvqltBFW0H-pyqAPpEm0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isConvex"},"QwhmjlRAKokfJVoIb29Us":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFinite"},"kcHriB1_73apJh1G0swcG":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isVisible"},"vU10o4eAXnxL8VInyAq_y":{"uri":"/melonJS/docs/melonjs/Camera2d.html#localToWorld"},"UjToFc-3-uakTxMnZU52H":{"uri":"/melonJS/docs/melonjs/Camera2d.html#lookAt"},"aRiTyEKcUhEiIUTV8Hzot":{"uri":"/melonJS/docs/melonjs/Camera2d.html#move"},"hdRCUmAEA_uajdCzCnHi5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#moveTo"},"EORw3HokgzsqLCOwHU33L":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onCollision"},"NVOOUCtjRPDaoyHSb2eD7":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onDestroyEvent"},"24tva9Z8mK2qtTRA80B3j":{"uri":"/melonJS/docs/melonjs/Camera2d.html#overlaps"},"WXlgqADY4IzF1LcPQjStz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#postDraw"},"AzWTRavRQmj1LW7B416ZX":{"uri":"/melonJS/docs/melonjs/Camera2d.html#preDraw"},"7AD5SsNcESmqWac9glQbw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#recalc"},"h71uo9_x375FtOYMkF7kf":{"uri":"/melonJS/docs/melonjs/Camera2d.html#reset"},"2ZTNGJLfW26D1TOH6XaYg":{"uri":"/melonJS/docs/melonjs/Camera2d.html#resize"},"fPdTBG1E3LC4bW5IFkmpv":{"uri":"/melonJS/docs/melonjs/Camera2d.html#rotate"},"9kA10-waLhgSH4IpF821n":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scale"},"QdWQsK0qzCnpx0KXf-WJ7":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scaleV"},"sz7B2qQroVVr10NpabbbG":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setBounds"},"JxRCxk_hfqlE2JnTQtdzq":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setDeadzone"},"9KpH5Asg-MqrE0px9H1HZ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setOpacity"},"rktunv3IPSnXegvJ-EqBw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setShape"},"MpU4DpudPWynRbODJv79b":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setVertices"},"vzCoBGj6p39TUW4-sNRn5":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shake"},"kv25N6PnLI-MHbY1EsGNu":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shift"},"Ofy_dIDKsuPqerheZJCyK":{"uri":"/melonJS/docs/melonjs/Camera2d.html#to2d"},"l8zIbX_TUtoVSq0tDlzMP":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toIso"},"P_94GrQiNKGlb9cIu4jGk":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toPolygon"},"439NfUh2-kDIGdwqgeiLk":{"uri":"/melonJS/docs/melonjs/Camera2d.html#transform"},"WOkLRxBPK4WO44kg40VrM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#translate"},"9I78-XDchLk3ppyhgNxAS":{"uri":"/melonJS/docs/melonjs/Camera2d.html#unfollow"},"ug2AeIiguPFN-cGWVz2Wu":{"uri":"/melonJS/docs/melonjs/Camera2d.html#union"},"KFSljmDsh5NiRYP7oncDr":{"uri":"/melonJS/docs/melonjs/Camera2d.html#update"},"dhsyibZ0eGcWofGatYFeo":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateBounds"},"2IMgwHke3CrtwJSC-iRF6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#worldToLocal"},"IXTuW7FF63BOR_CDlDP1j":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onAnchorUpdate"},"0J2P-vYlEJOFhXCrcRdIo":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html"},"3lCWq0poklrKWpIw0waVE":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#depthTest"},"aSMdzToYpqfKxSI1-BFME":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#designRatio"},"Jiocc8JBS5-zJo0tEw_fX":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#height"},"KEq1PmVRqZicU6utZV41L":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#isContextValid"},"aQdvACU0s8ihLLh3BZ_ti":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineJoin"},"HKhBGi7OBr00sKYCO9x2n":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineWidth"},"j03kSsbYfOxpEbyydatPv":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#path2D"},"puQyifsckCebCsR8Rbn3f":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#renderTarget"},"4A18_PgiOu0WvowY0EtLK":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scaleRatio"},"WIPmC61KvX5OCwxplsxrV":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#settings"},"jIFarfkPidK2nd5S-i6o2":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#type"},"XhztWZRg8qVAB5AmPJMxo":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#width"},"UrYLZ2bWY_3jVNw8GMVzZ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#beginPath"},"HLGJZNRTyXZIbBohrgeOq":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clear"},"ONTP2ktjQfJ5qcW-2KqHQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearColor"},"UhFdXCzZ02CMlSmPeXPNb":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearMask"},"LEDJoeia2ZsS4_zy6fIW8":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearRect"},"VtLizEgiyqmIRSvNFxv73":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearTint"},"E_eJiTaQg7QvSFvnUsd_Z":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clipRect"},"eUOCLSpEZLrezzcBYUlX_":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#closePath"},"3hlFRS669eV6qkkV0bbCh":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#constructor"},"pXGWJd8mPFfjviWBhGxm1":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#createPattern"},"Xw5BOxTk6pR2KjPnlTsa7":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawImage"},"44ym547ZN0bp23IpdPoPz":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawPattern"},"fpwR3sWkPX3CXGChTXEus":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fill"},"HFz0RwI9Tzu-9pcxLaDEb":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillArc"},"zd-cafKjskVRPY6WJcw84":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillEllipse"},"ExHoDr_t8DkzwPkAi3pYf":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillLine"},"cag6PebtRum3oqIluRDzE":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPoint"},"Kx68g93peIGBqN3s00nqU":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPolygon"},"y6MS_LS5PKqdyyGWg1_Zh":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRect"},"flje6X5vYLsrQwCdPOaiV":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRoundRect"},"iQAGxc-KP3q9MENN53Qfu":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#flush"},"rypwpZ-Qozl3MjZOqTeJg":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getBlendMode"},"G4MdsuE560CZ3qPMBzRBb":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getCanvas"},"eQkinoZ9WbXtflHokAQ8-":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getColor"},"q8te1xJl24lmKtNQPpZin":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getContext"},"sbmm28IgfnPB_LeCZ3Cxw":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getGlobalAlpha"},"easMJHvLZnZg2h1vMqwFx":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getHeight"},"ThV8BHuAJHjRuOs60OUju":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenCanvas"},"T8TGn-2jT-jXWioBAqOCA":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenContext"},"pjWvND_GP3N9fYQmKzqDX":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#globalAlpha"},"plU5cS7an4WQp7PC-gIYu":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineTo"},"u9OAiXFLKkQBsdw2INlYX":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#moveTo"},"liOi57NZle3Y7MpxaTUF7":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#overlaps"},"cfT6lWpCe3NrpEb3DFxML":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rect"},"TGZ-VpEfhzz_JMOwuho3s":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#reset"},"F_HEDzBcEa19LrgMz0_3_":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resetTransform"},"tT9BBgN0LXabENjSllnpF":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resize"},"JArtkUOPnOQPO2sCnIVEG":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#restore"},"Hs3A3gOCsFHi8zKYWZsC6":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rotate"},"mBQ9GHiwobbqphcO6JKxD":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#roundRect"},"6SIRw013RRK26z1Cj1Db5":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#save"},"anZUj6p7bOK7zRd7Ce3FV":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scale"},"K1WS-UV1BU6i-CKkJ-0zQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setAntiAlias"},"MEJlWlzfvzyhMXiJ1k6yk":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setBlendMode"},"MY3h_6Cerv6FhFRvBEiy7":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setColor"},"Dy1LvMgfghwXVX1MGuEpA":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setGlobalAlpha"},"iWV4QeH2eDTg5SOyx9nU3":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setLineWidth"},"Vt99nnojT5dCXibgieIxf":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setMask"},"vmYZozh5fz2XIgT8x42fX":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setProjection"},"A9F5nIUoWAwxUzj4YwdLu":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTint"},"jtE9LhotA0sTl96IGpMvT":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTransform"},"hAnhZMp2DFotx3-TNy6zw":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#stroke"},"3WcFfa69cPXCbAOxVKlwI":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeArc"},"AezH7GFIxAYXGgZ1hoI5-":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeEllipse"},"_HJhXZUzUQOYPYzHYGfL1":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeLine"},"zU-b05lFv42Fhzo9mExnY":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePoint"},"_STV8U5C6-UhxaivAP7Pz":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePolygon"},"Ilrk8XSXFxe4P_K999Ytv":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRect"},"172737nBuaO1JqySBLhKj":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRoundRect"},"bVYiTZWwKlkuv_43_ayM5":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#tint"},"QWHuonnom4kWSziZ2_xFx":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toBlob"},"qITCZtLXkGX7Qy855ggT1":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toDataURL"},"NuuFh4pZtN79AJxKTdb4W":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toImageBitmap"},"sYaxJA7fyYNUCgXEJytZ0":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#transform"},"r0yeS_CJAgp-WVSKlxjl2":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#translate"},"exz3PpfmUuduKz-kZgMau":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html"},"O8haNNlcSk6TXdDkrnIpP":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#height"},"_voyOldGTzXUjkXH22xL_":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#width"},"iWplcDJy4N2YFci2rRCz7":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#clear"},"8rJ4HK8RNzpx5PoCBe_GN":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#constructor"},"s8wxzdvJq5O28m4tbcQ3Y":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#getImageData"},"18T_x85NKT-0w0A1kYido":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#invalidate"},"Y-gbdN2pS5ZmDHYTFu8mG":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#resize"},"ArjjWN1AGTBuyvzkk_ia_":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#setAntiAlias"},"ceafjdT9ld5N33A6O-6XY":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toBlob"},"v2nODmqGa274ja7HSHhEU":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toDataURL"},"YtjTgUHy-Gqt0Ip0JikSG":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toImageBitmap"},"TuKV18b-hR2tS0zTezTlV":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html"},"HOPIG7xHyk9AlBLK283Fl":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#height"},"t-BJU2g54Q1AZbJ0sHCMx":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#width"},"iGB1yLMO12HfDesAr7rqL":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#clear"},"b5lmAt7bIY2rY0tgRW22r":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#constructor"},"AxukKN6-VanyUj1Y2f590":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#getImageData"},"XlC9BPhDb2KsK1iqup3lo":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#invalidate"},"hEBg-2nAYYzn22oBngHoo":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#resize"},"bOYQf1_jB_vNqcmAv5ald":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#setAntiAlias"},"ZjloWWAIO_SNV6NWqdVP1":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toBlob"},"9LtcGkVcCAc1qP-rFOAYT":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toDataURL"},"Bh9P6lSfIH1P9kqwmwwLc":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toImageBitmap"},"AaSHA5EqYCURu0EjXHGLT":{"uri":"/melonJS/docs/melonjs/Collectable.html"},"hgvmHwe4T5xDLeVX7haZP":{"uri":"/melonJS/docs/melonjs/Collectable.html#alpha"},"ejDrRcFo213flF0wiMC8R":{"uri":"/melonJS/docs/melonjs/Collectable.html#alwaysUpdate"},"l_oe-xakxc8PeYxWbJAl_":{"uri":"/melonJS/docs/melonjs/Collectable.html#ancestor"},"e0Ow_rf4cSCgj2X0fVZ3I":{"uri":"/melonJS/docs/melonjs/Collectable.html#anchorPoint"},"DrykKSfwsR4R4jV4QXxEx":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationpause"},"LQkefi8_ZJh49DZ4k0S16":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationspeed"},"S6HClXRLVkiNThXbw56_9":{"uri":"/melonJS/docs/melonjs/Collectable.html#autoTransform"},"rfl6t9BPTH3m1dEBh4ebQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#blendMode"},"EqtS6Akolx9DsyeGCJ8-b":{"uri":"/melonJS/docs/melonjs/Collectable.html#body"},"94HEJ8VPEMiUOa8mN8I7M":{"uri":"/melonJS/docs/melonjs/Collectable.html#bottom"},"u5l12y-eIY5X8KiKXX-_U":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerX"},"C9Pw6eCP1B4xAMS1h_Hny":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerY"},"bAFL8kdj9AwsOTPFoVNod":{"uri":"/melonJS/docs/melonjs/Collectable.html#currentTransform"},"kuXKYToyeMgcF9befTD-l":{"uri":"/melonJS/docs/melonjs/Collectable.html#depth"},"wl2xCA7qzpCGThCWQjeq4":{"uri":"/melonJS/docs/melonjs/Collectable.html#floating"},"LirjqmaixCaNVU9ODd-lS":{"uri":"/melonJS/docs/melonjs/Collectable.html#GUID"},"cjTN5XlG0XRBjNH8iVfXv":{"uri":"/melonJS/docs/melonjs/Collectable.html#height"},"Zej2tHP7fI9gPEhK_YPlL":{"uri":"/melonJS/docs/melonjs/Collectable.html#inViewport"},"Sk29Xnc8Y2DFAIOJA31LH":{"uri":"/melonJS/docs/melonjs/Collectable.html#isDirty"},"zTQmPa-gi6F3RyTMx69_y":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedX"},"KnxuHNtHGL3Ys512xpEVH":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedY"},"8HS9psb3mwFFxtlTfGtKH":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFloating"},"lvBnm2y7bt0NiFKRJ5CJA":{"uri":"/melonJS/docs/melonjs/Collectable.html#isKinematic"},"pnb_FDS7jLt0jOrN91jk1":{"uri":"/melonJS/docs/melonjs/Collectable.html#isPersistent"},"rAZX0g3cA4kyAMyXW_IjH":{"uri":"/melonJS/docs/melonjs/Collectable.html#isVideo"},"iOjT-ynD9MYDWol4YFcKT":{"uri":"/melonJS/docs/melonjs/Collectable.html#left"},"hxcZ8Lq6AwgZN0QHDAxI1":{"uri":"/melonJS/docs/melonjs/Collectable.html#mask"},"LNXr9YgZUnuMCtbsHAT8T":{"uri":"/melonJS/docs/melonjs/Collectable.html#name"},"otOI6JHj0asZe8W3YsY7n":{"uri":"/melonJS/docs/melonjs/Collectable.html#offset"},"Hp0LukBJyWbxfyEWv4NTC":{"uri":"/melonJS/docs/melonjs/Collectable.html#onVisibilityChange"},"t5e4uCR2oj0m5Yb7MU8TM":{"uri":"/melonJS/docs/melonjs/Collectable.html#parentApp"},"DvuYVt8Ji7cmUy4xGD5N9":{"uri":"/melonJS/docs/melonjs/Collectable.html#points"},"silgE-h3mXzTyG2YfJ2WF":{"uri":"/melonJS/docs/melonjs/Collectable.html#pos"},"Y7LNbfCtdCswJ4Tu1ZViE":{"uri":"/melonJS/docs/melonjs/Collectable.html#right"},"4RZyLuHhjrPYCAHywa56O":{"uri":"/melonJS/docs/melonjs/Collectable.html#shader"},"FKrzjQvtY6zPhHVpmlrrW":{"uri":"/melonJS/docs/melonjs/Collectable.html#source"},"o2rb8976kCPjd0C_8UHXY":{"uri":"/melonJS/docs/melonjs/Collectable.html#tint"},"8PPU8FVW5_64Lqc9h0A2f":{"uri":"/melonJS/docs/melonjs/Collectable.html#top"},"NJzXp6kBOYDT_haN7teX_":{"uri":"/melonJS/docs/melonjs/Collectable.html#type"},"McTQgGASWU5qywSwi1_KJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateWhenPaused"},"3QFtMPjzANAGvwZFoPdK1":{"uri":"/melonJS/docs/melonjs/Collectable.html#width"},"ks-CtUQvVWSZKnHHZruWt":{"uri":"/melonJS/docs/melonjs/Collectable.html#addAnimation"},"2dDyXMbVRKZuAsqPU1bNs":{"uri":"/melonJS/docs/melonjs/Collectable.html#angleTo"},"hyTVpEBujAaaugpKE_9Ua":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerOn"},"CJJHZTTlIJ6EaqV2Zx-Nu":{"uri":"/melonJS/docs/melonjs/Collectable.html#clone"},"_kk6GqdhBFjuuhsILxVVA":{"uri":"/melonJS/docs/melonjs/Collectable.html#constructor"},"27B6NN3VhrVsPgmEx82bC":{"uri":"/melonJS/docs/melonjs/Collectable.html#contains"},"T82aYO44JJPCLZW3IRPmK":{"uri":"/melonJS/docs/melonjs/Collectable.html#copy"},"phNV6vi4Ulwskktkifxsv":{"uri":"/melonJS/docs/melonjs/Collectable.html#distanceTo"},"-YTbmhvmOE_biI2whUKe6":{"uri":"/melonJS/docs/melonjs/Collectable.html#draw"},"opyPXY4LCIXO2j1hFR7M1":{"uri":"/melonJS/docs/melonjs/Collectable.html#equals"},"nbKghg4yecQY5-fyJiUAD":{"uri":"/melonJS/docs/melonjs/Collectable.html#flicker"},"5pHEZ-VlTzc7OQ-dMCgCm":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipX"},"D53muDCws85MqvWqgvLUb":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipY"},"4LQPxhizLCmG05GpowtTg":{"uri":"/melonJS/docs/melonjs/Collectable.html#getAbsolutePosition"},"eOAA1IxkRl2mhXWowsv-t":{"uri":"/melonJS/docs/melonjs/Collectable.html#getBounds"},"50wKVRceLBUnc74vFbH7p":{"uri":"/melonJS/docs/melonjs/Collectable.html#getCurrentAnimationFrame"},"RFtK35ldRGOwjyVhcmqzi":{"uri":"/melonJS/docs/melonjs/Collectable.html#getIndices"},"YF4kluQQbSnwNSotYPkYc":{"uri":"/melonJS/docs/melonjs/Collectable.html#getOpacity"},"T4qxUXwgWXXpLW1GZO_eV":{"uri":"/melonJS/docs/melonjs/Collectable.html#isConvex"},"teSal71bQ04vij2_VSwUT":{"uri":"/melonJS/docs/melonjs/Collectable.html#isCurrentAnimation"},"bQbYzRfUJudbeJT0hq9kZ":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFinite"},"G4B8LUkbqTo4_W1jU4xpm":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlickering"},"SZ5qKLEdJ2L8So69ohrCs":{"uri":"/melonJS/docs/melonjs/Collectable.html#lookAt"},"4vz5ssEPAlMLZTfl0vWrT":{"uri":"/melonJS/docs/melonjs/Collectable.html#onCollision"},"vssdWIE8kpg70gS7ta47Y":{"uri":"/melonJS/docs/melonjs/Collectable.html#onDestroyEvent"},"khE-1309f5MeBOXf1urRe":{"uri":"/melonJS/docs/melonjs/Collectable.html#overlaps"},"kLnhIeJciMNVDp1NTpjqk":{"uri":"/melonJS/docs/melonjs/Collectable.html#pause"},"TjreIlg3eRIfJllFmiZvo":{"uri":"/melonJS/docs/melonjs/Collectable.html#play"},"WOdBraYH_ljvqaY2ak_6z":{"uri":"/melonJS/docs/melonjs/Collectable.html#postDraw"},"YFnY51gywRTO_6F2mjpxD":{"uri":"/melonJS/docs/melonjs/Collectable.html#preDraw"},"qm5YByw-B4iMh9NgiTiur":{"uri":"/melonJS/docs/melonjs/Collectable.html#recalc"},"DB5I__8Mcumvia_WVz6MU":{"uri":"/melonJS/docs/melonjs/Collectable.html#resize"},"jIWNwYEZzNn15vTsN3zFe":{"uri":"/melonJS/docs/melonjs/Collectable.html#reverseAnimation"},"BF8vHdcRW9ihpwViaYsu1":{"uri":"/melonJS/docs/melonjs/Collectable.html#rotate"},"2f_gRG8kY1a-f0ryMKQUv":{"uri":"/melonJS/docs/melonjs/Collectable.html#scale"},"prscRPt7V0vTmaU8A9O4n":{"uri":"/melonJS/docs/melonjs/Collectable.html#scaleV"},"Nx3haMZ2_bBkdHcO5skyN":{"uri":"/melonJS/docs/melonjs/Collectable.html#setAnimationFrame"},"WsVA-_jJC2AvS9tG-W35D":{"uri":"/melonJS/docs/melonjs/Collectable.html#setCurrentAnimation"},"H0_N2ylnlKluvjFCgLpA5":{"uri":"/melonJS/docs/melonjs/Collectable.html#setOpacity"},"OqMzhPhjgHxuFlbAc7OiA":{"uri":"/melonJS/docs/melonjs/Collectable.html#setRegion"},"uvxYRH6SV2tIrS_ps0xsA":{"uri":"/melonJS/docs/melonjs/Collectable.html#setShape"},"OyOFa2V8NMEbRHIhUh7fG":{"uri":"/melonJS/docs/melonjs/Collectable.html#setVertices"},"DCvO1EbCeKs22wd9dMjyV":{"uri":"/melonJS/docs/melonjs/Collectable.html#shift"},"1iIRLvBXA5pLpFHNtPvYU":{"uri":"/melonJS/docs/melonjs/Collectable.html#to2d"},"2n4tAEVLBHBE6q1cpvaRW":{"uri":"/melonJS/docs/melonjs/Collectable.html#toIso"},"WoStTV9xfNakfufyMaIkJ":{"uri":"/melonJS/docs/melonjs/Collectable.html#toPolygon"},"27jWJEMEcI9lIiFc6yNUC":{"uri":"/melonJS/docs/melonjs/Collectable.html#transform"},"NnNyCNwJ2RuueYTRCNYaU":{"uri":"/melonJS/docs/melonjs/Collectable.html#translate"},"aZXj7qPa6vK22ad65Cdf-":{"uri":"/melonJS/docs/melonjs/Collectable.html#union"},"wuOWtygL11aXDRyZLDjTu":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateBounds"},"U9uBdRVMeOceGpdWneD_g":{"uri":"/melonJS/docs/melonjs/Collectable.html#update"},"Lm9DesM2o3AO2kMKJ0e-S":{"uri":"/melonJS/docs/melonjs/Collectable.html#onAnchorUpdate"},"yB-QEokGxGDRhKhQRxCTI":{"uri":"/melonJS/docs/melonjs/Color.html"},"DRQeolM5X7C1Dxk_gUv3O":{"uri":"/melonJS/docs/melonjs/Color.html#alpha"},"RvOwImCxmNWuoqhCdUv4-":{"uri":"/melonJS/docs/melonjs/Color.html#b"},"HVXcqD2r2qMUKjZjwmLnm":{"uri":"/melonJS/docs/melonjs/Color.html#g"},"XG4198pKysuyrsznitKQO":{"uri":"/melonJS/docs/melonjs/Color.html#r"},"kRUvw2h0vEZlLwah4fD38":{"uri":"/melonJS/docs/melonjs/Color.html#add"},"dGukjZXlJ3JAf8CmfO8Mc":{"uri":"/melonJS/docs/melonjs/Color.html#clone"},"DSrR0oTxygM6R2hzaea5Z":{"uri":"/melonJS/docs/melonjs/Color.html#constructor"},"GFebdMMYzlL2THO8cMPOE":{"uri":"/melonJS/docs/melonjs/Color.html#copy"},"hPD1m1JqhS3E2TgM_NJcd":{"uri":"/melonJS/docs/melonjs/Color.html#darken"},"iFjliNBxqA5qdTNOR9nMK":{"uri":"/melonJS/docs/melonjs/Color.html#equals"},"jlYKsGnKNa9n7XFeO8Rc8":{"uri":"/melonJS/docs/melonjs/Color.html#lerp"},"I3eCnzeqSe3qKuECs4VJu":{"uri":"/melonJS/docs/melonjs/Color.html#lighten"},"lGic_nMWUp9T9t5dq-vkV":{"uri":"/melonJS/docs/melonjs/Color.html#parseCSS"},"XyI8fiW9kRZYyMDfoX9wA":{"uri":"/melonJS/docs/melonjs/Color.html#parseHex"},"NQV8XLbmKPCQXhkQAe4x-":{"uri":"/melonJS/docs/melonjs/Color.html#parseRGB"},"2AECOJrjrSbGIXuSdTvyn":{"uri":"/melonJS/docs/melonjs/Color.html#random"},"afQUNAa-UMfdnUFtvXfKs":{"uri":"/melonJS/docs/melonjs/Color.html#setColor"},"WK0mva3J2V2f8Iunkhtlz":{"uri":"/melonJS/docs/melonjs/Color.html#setFloat"},"AVMdmKIqByokLg4B-KIzD":{"uri":"/melonJS/docs/melonjs/Color.html#setHSL"},"bPwouRYaVX1hNWwtD2uWR":{"uri":"/melonJS/docs/melonjs/Color.html#setHSV"},"Wv6yAmRAQ23knKQSHHxLB":{"uri":"/melonJS/docs/melonjs/Color.html#toArray"},"mc2ECkKBU7aOSP6ZPieRW":{"uri":"/melonJS/docs/melonjs/Color.html#toHex"},"SxPcYozUcWgrH4h5qAf2r":{"uri":"/melonJS/docs/melonjs/Color.html#toHex8"},"avqDQ_BWQMZchwL6sdhbg":{"uri":"/melonJS/docs/melonjs/Color.html#toRGB"},"5RAxsOr1YUx_DQ22l7h6T":{"uri":"/melonJS/docs/melonjs/Color.html#toRGBA"},"nvlF3f8NS7ZxgHbOBncv2":{"uri":"/melonJS/docs/melonjs/Color.html#toUint32"},"ZfJu9u5YztERFYfwjI0xc":{"uri":"/melonJS/docs/melonjs/ColorLayer.html"},"1XGjgDfmkSPf6m5QZ2bsn":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alpha"},"gnfPVi3Cru0pkX97x4tbH":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alwaysUpdate"},"qXWEhsV_Axwyh-RuW-XXP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#ancestor"},"DvoE_azxIuknqivCXly8W":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#anchorPoint"},"i-Z3ypzsLv81WuEqbttDJ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#autoTransform"},"ZCm29lKF6xlnUW2nQwSYS":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#blendMode"},"9oetfRDxJkQCqmBAL06F9":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#body"},"lc3BP4YRl1LP7S5ek_vU3":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#bottom"},"JkBih-ZMxu3RlAZgB80cr":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerX"},"-p4cYCkQVangzAotmNAlz":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerY"},"YuomGvplGZK0K0QqP2IaX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#color"},"PwTry1h2lYlbU9u9_Kpqg":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#currentTransform"},"DhSWrCsDsHL9_bajOO0-g":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#depth"},"r3vqJkKMWGgwn6R11n31B":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#floating"},"3qaeml-mElmee9j7ilKcF":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#GUID"},"V7yoZfNJ1PdBBrrzipRTh":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#height"},"rALdCoHZhDnInSdKECgyy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#inViewport"},"-vfbcXMStlk4NQEejakK0":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isDirty"},"wmA6opywmie0X_nU-OJ3U":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedX"},"wPBZaxpDaYrk1PDZb85iy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedY"},"k27h7eeYrK-P9yDFHioTz":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFloating"},"ah2iisRsmhmiOb_yx3Etd":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isKinematic"},"MCb72rRCIcHQNJ0yhGNkx":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isPersistent"},"F-mQCa99Lt8_FOfpt1y4C":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#left"},"BUpVpN2Rfea7I6mXTj9F6":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#mask"},"ppAw8JNNT-DaSz31am9Ak":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#name"},"FK0N3KhneiWBffOWhFbLo":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onVisibilityChange"},"wzRSRlr0ZOdLwZG06HH-a":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#parentApp"},"X8LLVV-_0adVOjCpP8pxd":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#points"},"7s76iY0vEJymg-hihrWbu":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#pos"},"AebZatcVGLyfkHciZkN5N":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#right"},"n0ojSKzY6WfUdqwgpsp_e":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shader"},"4zksujTHSQtF9nrOCDoqP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#tint"},"dv5DbNhQFaih5Y6Z1hOmE":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#top"},"70cwFffziagCtU215SDRb":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#type"},"F9boJHs8B9EMqny0k0ms8":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateWhenPaused"},"E13Bp1uCBZGRTJAsNgKIV":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#width"},"gqBKsHpEwMKbRikP-7jtF":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#angleTo"},"Y9-UUjx1Lf5XLeT8fk5Dy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerOn"},"ixh70_5lJ3HfQVNaULdqn":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#clone"},"AWoHBZr7Eni64FP49z6OG":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#constructor"},"Zi83et8xmHhUJvM0magUn":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#contains"},"800lxXLzDazWzWWvlpwym":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#copy"},"iRDo5F6UYFTqkGTtyarLK":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#distanceTo"},"SuoD4ZEcobOj0XzOhnJ-I":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#draw"},"KGDKBE-Y4tQU3ajxEahyX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#equals"},"ntnouFm63pRluPzmTOnSI":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipX"},"9_a7dw1fwvaBKnIsbFGzN":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipY"},"yc5zWA3SRBt8WYBj7Efl6":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getAbsolutePosition"},"jtcqB2GdhUGsOAoXIC2fN":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getBounds"},"a-6F6DbjalDPXet74dl2I":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getIndices"},"Wrm4P-p7-geP3DGX_-NSs":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getOpacity"},"55yOk9SbK7iRGg3lpuHCt":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isConvex"},"3XXNSjqdD7Mdsey1UiMpV":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFinite"},"wzLdIiXRnHoxUKlIzEOLM":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#lookAt"},"9AQKWQNCHhM8z16DJXtpX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onCollision"},"Zt3eLnIbxYB9Oo22_mT7A":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onDestroyEvent"},"nMD5t1JYHvHfjke97uqOW":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#overlaps"},"c0PsMEkhvHoxPyAEqOHWG":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#postDraw"},"FtxxQZ2901POx8FNqBsHs":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#preDraw"},"9PI3Emz7iDmE2-XGM0hwn":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#recalc"},"oCNhV26ocb_5nBCXjRb4m":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#resize"},"61LEd8mAi6dKdPwlk5zWC":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#rotate"},"x79rJHXz7YD-x7IzHpP8P":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scale"},"iR3VyVayCLkJjVNXezmLo":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scaleV"},"pvbuNm9uyKU25Dy-Rf5-v":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setOpacity"},"i-OOYPynBykjIdzzbEb-8":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setShape"},"qkvh23I0fZvbgTb6Y7WnP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setVertices"},"A7HTfdZhl_QRQDPQfZ56d":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shift"},"tJJRCvBQhW5RFkFiM-KLm":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#to2d"},"QhSxKvuQ3THztiuSHS92k":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toIso"},"7lwuDWzZ324UvC0FpICpl":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toPolygon"},"702cXhfq0cFX4ZLE1raZ2":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#transform"},"8xPLti-jQ4TfYsBDuXn9N":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#translate"},"b2Y9J2yNe1fdsZUM1ZjyS":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#union"},"tEGQ-Xh3xwnpgdh8ZwDKF":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#update"},"FyQmxiIBH-bPW4FJ79puL":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateBounds"},"s_XAb-iW4f9rusLhFm6q9":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onAnchorUpdate"},"5Lrzgdy-I154gpuqn2kwk":{"uri":"/melonJS/docs/melonjs/Compositor.html"},"-LzrE6ctZ5duiZIFaJ1av":{"uri":"/melonJS/docs/melonjs/Compositor.html#attributes"},"LnBKdGjbsH8_viATbPjme":{"uri":"/melonJS/docs/melonjs/Compositor.html#currentShader"},"jK5aqyv2J_v4mxA3XTDsJ":{"uri":"/melonJS/docs/melonjs/Compositor.html#defaultShader"},"W8tm6EwJ5RVzdUBiQNjYw":{"uri":"/melonJS/docs/melonjs/Compositor.html#mode"},"r_QJOeyBxkUHQbmO4b1EV":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexByteSize"},"dKUjk3JQPOJcKTaBE0xVR":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexData"},"eM57n7MICRrpoEmO0u980":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexSize"},"bZlCTU44Iw7nINO55iLkT":{"uri":"/melonJS/docs/melonjs/Compositor.html#addAttribute"},"6oBpApN7NAtwsmTg2Nvye":{"uri":"/melonJS/docs/melonjs/Compositor.html#bind"},"UMPUePxapyuhPvlLeL1Wo":{"uri":"/melonJS/docs/melonjs/Compositor.html#constructor"},"IC7IZh3jJBKgIt7OHLje3":{"uri":"/melonJS/docs/melonjs/Compositor.html#flush"},"ZBOPLrijuDnDsgsakOGO-":{"uri":"/melonJS/docs/melonjs/Compositor.html#setProjection"},"mE6O57GfsaRz6DfK6tqT9":{"uri":"/melonJS/docs/melonjs/Compositor.html#useShader"},"5yDVuTZDxsXWnnN5tKiiA":{"uri":"/melonJS/docs/melonjs/Container.html"},"O7haA6_aWJ_i-eQOBLPxW":{"uri":"/melonJS/docs/melonjs/Container.html#alpha"},"0djx_sBFjFfB0oxB4fkgY":{"uri":"/melonJS/docs/melonjs/Container.html#alwaysUpdate"},"FeKt0UjIt_SFY2zM69Q5z":{"uri":"/melonJS/docs/melonjs/Container.html#ancestor"},"Mjcxs443U2N3LhmUTyRpf":{"uri":"/melonJS/docs/melonjs/Container.html#anchorPoint"},"U4vlGpJVQ-sUoPXYVdjji":{"uri":"/melonJS/docs/melonjs/Container.html#autoDepth"},"crIOjdaILb89Miq7G3630":{"uri":"/melonJS/docs/melonjs/Container.html#autoSort"},"OZwx0vhubQpcGv_4wo7Di":{"uri":"/melonJS/docs/melonjs/Container.html#autoTransform"},"TxSuXPnWr7Eswg02yetuk":{"uri":"/melonJS/docs/melonjs/Container.html#backgroundColor"},"T5-krzPuUSDnmMA94HVOH":{"uri":"/melonJS/docs/melonjs/Container.html#blendMode"},"th9zVTAS0o5RaR9Px0JFo":{"uri":"/melonJS/docs/melonjs/Container.html#body"},"1aDKNdZbh26VIVeZFBSXu":{"uri":"/melonJS/docs/melonjs/Container.html#bottom"},"RRJpvGruvKgC_iUE_kcnX":{"uri":"/melonJS/docs/melonjs/Container.html#centerX"},"xD9lhbuQ0wC6dUNOzmvN6":{"uri":"/melonJS/docs/melonjs/Container.html#centerY"},"cxHCvAeFtlB6FMoL8zfI-":{"uri":"/melonJS/docs/melonjs/Container.html#clipping"},"vzD-VzvemHlzca8iRsi7q":{"uri":"/melonJS/docs/melonjs/Container.html#currentTransform"},"pY1JT6pCxQivZGvDWSdg8":{"uri":"/melonJS/docs/melonjs/Container.html#depth"},"P7anrX1Xlyqv7T-oQvezR":{"uri":"/melonJS/docs/melonjs/Container.html#enableChildBoundsUpdate"},"o6IzYFjMDj-QB3UDVtuUx":{"uri":"/melonJS/docs/melonjs/Container.html#floating"},"wkArF6d1Da4OiRRT_AvyU":{"uri":"/melonJS/docs/melonjs/Container.html#GUID"},"F4CkvBgX2uqE_oe4i6L11":{"uri":"/melonJS/docs/melonjs/Container.html#height"},"mEY-RrPtk-gcHJwNToECz":{"uri":"/melonJS/docs/melonjs/Container.html#inViewport"},"WZUX_7gwz5cr4-NNGtX8c":{"uri":"/melonJS/docs/melonjs/Container.html#isDirty"},"L8vi7SoEtLmuB9L9Nkd28":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedX"},"JxReNNk0TmM7Iv5foqell":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedY"},"3Tc8yID3ynU0FnroXa3he":{"uri":"/melonJS/docs/melonjs/Container.html#isFloating"},"u527ZCHIdDykcFE_U0sYB":{"uri":"/melonJS/docs/melonjs/Container.html#isKinematic"},"7kuLfV-iQDc2Z6UdmLaTH":{"uri":"/melonJS/docs/melonjs/Container.html#isPersistent"},"SbSxMWyy0lYBJOTY5p4zF":{"uri":"/melonJS/docs/melonjs/Container.html#left"},"itE6lIvOmiTxwhnrUha2f":{"uri":"/melonJS/docs/melonjs/Container.html#mask"},"kz9_32wlr5-at1OZ4766J":{"uri":"/melonJS/docs/melonjs/Container.html#name"},"YUOyNtXEmbf_4IFwd44Df":{"uri":"/melonJS/docs/melonjs/Container.html#onVisibilityChange"},"Ds-XDesFinxcEmBdqvz0c":{"uri":"/melonJS/docs/melonjs/Container.html#parentApp"},"USZo8R3EGv0F6Q_ceijGs":{"uri":"/melonJS/docs/melonjs/Container.html#points"},"qfRmiloJ7QqboWuNo4XQY":{"uri":"/melonJS/docs/melonjs/Container.html#pos"},"roCUsxL4hKGk6mPuKl5pv":{"uri":"/melonJS/docs/melonjs/Container.html#right"},"KCPCg6ONYjeZ8We3_Ea4l":{"uri":"/melonJS/docs/melonjs/Container.html#root"},"HAStCdHXwG7BCZ8rdwJF6":{"uri":"/melonJS/docs/melonjs/Container.html#shader"},"ObQKgC-nTnomj3Y__Jc4h":{"uri":"/melonJS/docs/melonjs/Container.html#sortOn"},"OAFJ7p3NkNSAyUBl9L5Wu":{"uri":"/melonJS/docs/melonjs/Container.html#tint"},"6eDJG85HDOgS7guFATmG0":{"uri":"/melonJS/docs/melonjs/Container.html#top"},"-f_yYIUNjnfLcEm5BsSYt":{"uri":"/melonJS/docs/melonjs/Container.html#type"},"lNUGVXWMi7dTE5ovio9TL":{"uri":"/melonJS/docs/melonjs/Container.html#updateWhenPaused"},"GrZG6c2UeE0UU2wOaasw2":{"uri":"/melonJS/docs/melonjs/Container.html#width"},"A1KfMGiwmnV7mFXMNcbaq":{"uri":"/melonJS/docs/melonjs/Container.html#addChild"},"xP-H8FfOnXMBSGISBiAEN":{"uri":"/melonJS/docs/melonjs/Container.html#addChildAt"},"EO8mjWrEr7Ee-_Eojk3-Y":{"uri":"/melonJS/docs/melonjs/Container.html#angleTo"},"4unG1uTuXkzxiS88jEh8c":{"uri":"/melonJS/docs/melonjs/Container.html#centerOn"},"FOV2AojirbpkVZSwUnKgh":{"uri":"/melonJS/docs/melonjs/Container.html#clone"},"p1Kc2-ZJcfnAn3kkgoXdh":{"uri":"/melonJS/docs/melonjs/Container.html#constructor"},"ZxwJUE___IWjNotP63GBu":{"uri":"/melonJS/docs/melonjs/Container.html#contains"},"lNzLWBxKSNQPCk_kvbYHG":{"uri":"/melonJS/docs/melonjs/Container.html#copy"},"k_CoT9YcfHL3ZAm9L0Uh0":{"uri":"/melonJS/docs/melonjs/Container.html#distanceTo"},"xezos09FKTjfu1pVMioJR":{"uri":"/melonJS/docs/melonjs/Container.html#draw"},"LKe45MX4Hulegel-UrY2H":{"uri":"/melonJS/docs/melonjs/Container.html#equals"},"8Nk9JTCJBk-Rglrjoawmy":{"uri":"/melonJS/docs/melonjs/Container.html#flipX"},"VfHlyIkrtfHUOvfczCbAs":{"uri":"/melonJS/docs/melonjs/Container.html#flipY"},"_cK0p4JFCTqxtTUZPlrel":{"uri":"/melonJS/docs/melonjs/Container.html#forEach"},"eJ_4VzDzp0_ft3uzsWYkd":{"uri":"/melonJS/docs/melonjs/Container.html#getAbsolutePosition"},"hoWtH475zc0AewdtULuEi":{"uri":"/melonJS/docs/melonjs/Container.html#getBounds"},"Y5k3IT8WZ9lCeMcZJTpty":{"uri":"/melonJS/docs/melonjs/Container.html#getChildAt"},"NPA6IfVGBJnitGst3cEt7":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByGUID"},"ytYOWwl2pk6npafEfYnJL":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByName"},"SIxJ-KGZc9pGqvvt7RS-F":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByProp"},"TYQOJOWxrYt6sf_0IzAYd":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByType"},"1jYT4AUCewf3lPjI1xdBP":{"uri":"/melonJS/docs/melonjs/Container.html#getChildIndex"},"vIpNtsoCl8YBPjE9Cs3aw":{"uri":"/melonJS/docs/melonjs/Container.html#getChildren"},"LExKijR-ytxHBsg5bODZt":{"uri":"/melonJS/docs/melonjs/Container.html#getIndices"},"PIrgYn0hOraHKZ_gVOuCd":{"uri":"/melonJS/docs/melonjs/Container.html#getNextChild"},"bZ5Af2lxMnoRMeuwZVr0Z":{"uri":"/melonJS/docs/melonjs/Container.html#getOpacity"},"B3Ot0BnSYLIrO1feNOV-r":{"uri":"/melonJS/docs/melonjs/Container.html#getRootAncestor"},"0lgS01oEeqOFgt56qpmW4":{"uri":"/melonJS/docs/melonjs/Container.html#hasChild"},"ZICi5zRFgEsQuGydwZYuA":{"uri":"/melonJS/docs/melonjs/Container.html#isAttachedToRoot"},"76WSC1ZV6PsdAaUcegZrH":{"uri":"/melonJS/docs/melonjs/Container.html#isConvex"},"bV_g3Bxo_q9fhXcN0Rnzv":{"uri":"/melonJS/docs/melonjs/Container.html#isFinite"},"RVj6laUG3ft9b8-9sRnE8":{"uri":"/melonJS/docs/melonjs/Container.html#lookAt"},"wbt8VMB6EO-eiRHMtMcSl":{"uri":"/melonJS/docs/melonjs/Container.html#moveDown"},"kKXq3MSYXAIgeR8ZO4Q36":{"uri":"/melonJS/docs/melonjs/Container.html#moveToBottom"},"ywnpjfDABDAFRhOzigy2c":{"uri":"/melonJS/docs/melonjs/Container.html#moveToTop"},"pe4BvaR8-7_q6XUWQ1dSL":{"uri":"/melonJS/docs/melonjs/Container.html#moveUp"},"rW6TBHBkg7Dg1VCkvDm2X":{"uri":"/melonJS/docs/melonjs/Container.html#onChildChange"},"MCZKlp3p7t_WkcdfOpvI2":{"uri":"/melonJS/docs/melonjs/Container.html#onCollision"},"WzFGPqdF6Igd42ccM32V_":{"uri":"/melonJS/docs/melonjs/Container.html#onDestroyEvent"},"j7Gexk6YlXfW872dalxbC":{"uri":"/melonJS/docs/melonjs/Container.html#overlaps"},"fv2PryLdXhFU4HUtRd5jJ":{"uri":"/melonJS/docs/melonjs/Container.html#postDraw"},"drG19dE_lMDPFizdvLsSj":{"uri":"/melonJS/docs/melonjs/Container.html#preDraw"},"oxxNyo71uAItJ3n0UgbkD":{"uri":"/melonJS/docs/melonjs/Container.html#recalc"},"eA4FKonkxhkX9giGH0hGt":{"uri":"/melonJS/docs/melonjs/Container.html#removeChild"},"J53PqO0kkSZ79iOOG1iei":{"uri":"/melonJS/docs/melonjs/Container.html#removeChildNow"},"1LiIk_8Lhy5lZge8rb9vO":{"uri":"/melonJS/docs/melonjs/Container.html#reset"},"rBUH1uk5l9O8dR9rSdXBG":{"uri":"/melonJS/docs/melonjs/Container.html#resize"},"solApgOqnFxsmtw9vR0gQ":{"uri":"/melonJS/docs/melonjs/Container.html#rotate"},"i7fWJUi_pCpQavIEm4BUl":{"uri":"/melonJS/docs/melonjs/Container.html#scale"},"PeYHxxjUK5OWa8q4bNd7M":{"uri":"/melonJS/docs/melonjs/Container.html#scaleV"},"VNwnjIE8pRdUr4iMK7OI9":{"uri":"/melonJS/docs/melonjs/Container.html#setChildsProperty"},"0Mibt2Aki-FBVfSnaxN1N":{"uri":"/melonJS/docs/melonjs/Container.html#setOpacity"},"gPdDLSfIgy1cjckmS1WZa":{"uri":"/melonJS/docs/melonjs/Container.html#setShape"},"s46NSWe4pTV7FMJPqzJ-7":{"uri":"/melonJS/docs/melonjs/Container.html#setVertices"},"l4iMmChLVi73wVwKCe-Lf":{"uri":"/melonJS/docs/melonjs/Container.html#shift"},"1zydE5eYw0CV9v0shGnC4":{"uri":"/melonJS/docs/melonjs/Container.html#sort"},"EGHcLx1RK56oN59qV3BBK":{"uri":"/melonJS/docs/melonjs/Container.html#swapChildren"},"OsD2nQJ_jayKTnYKmTWx2":{"uri":"/melonJS/docs/melonjs/Container.html#to2d"},"_CKQGH22n2bi7PwxuAPLG":{"uri":"/melonJS/docs/melonjs/Container.html#toIso"},"vWnq6MP07yrYPN5Q4tI4t":{"uri":"/melonJS/docs/melonjs/Container.html#toPolygon"},"-X1dYOb03vEOkCslnwjaL":{"uri":"/melonJS/docs/melonjs/Container.html#transform"},"Oz2cT5uDwjY595--tbOKb":{"uri":"/melonJS/docs/melonjs/Container.html#translate"},"wXeEc-uS-DBCSWaxzN05l":{"uri":"/melonJS/docs/melonjs/Container.html#union"},"96sSIjbZXL4NGapmiylhE":{"uri":"/melonJS/docs/melonjs/Container.html#updateBounds"},"rZWJsmWc68Cb8z971GNvK":{"uri":"/melonJS/docs/melonjs/Container.html#update"},"tZQfWP4mDNZWI8_FlxW8g":{"uri":"/melonJS/docs/melonjs/Container.html#onAnchorUpdate"},"i6889kEWLAjsJggw2H0Y2":{"uri":"/melonJS/docs/melonjs/Detector.html"},"OmbxBffbzvQwUHicp5lAM":{"uri":"/melonJS/docs/melonjs/Detector.html#response"},"6qwt0PlQNmOzXJPRVpOcE":{"uri":"/melonJS/docs/melonjs/Detector.html#collides"},"BSJqCkmbRs3fFI2VdR5yH":{"uri":"/melonJS/docs/melonjs/Detector.html#constructor"},"XbC9oKcI7uXtx5gWv79fG":{"uri":"/melonJS/docs/melonjs/Detector.html#shouldCollide"},"vu1lDUAf0rsuc4JW5lprL":{"uri":"/melonJS/docs/melonjs/Draggable.html"},"SmEXbywp9NEeIx7LCLa3x":{"uri":"/melonJS/docs/melonjs/Draggable.html#alpha"},"f8XCVHxrlcCp-LImofn71":{"uri":"/melonJS/docs/melonjs/Draggable.html#alwaysUpdate"},"G9boSQcI0mdczUClrCXi3":{"uri":"/melonJS/docs/melonjs/Draggable.html#ancestor"},"FOjn1sthkK_WCDQIiaErR":{"uri":"/melonJS/docs/melonjs/Draggable.html#anchorPoint"},"069y_dG-iS_xq2lAsqDT7":{"uri":"/melonJS/docs/melonjs/Draggable.html#autoTransform"},"Fwd0hMO7VoWUJW-R-TwbE":{"uri":"/melonJS/docs/melonjs/Draggable.html#blendMode"},"e9MT-hdIfTSUYXHlcRwg3":{"uri":"/melonJS/docs/melonjs/Draggable.html#body"},"uJb99dydGGO79-YAKX_db":{"uri":"/melonJS/docs/melonjs/Draggable.html#bottom"},"X5CKs0PdCzj82QI4KLpeX":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerX"},"imZtjf3_jdkgeLTxZ4Jr5":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerY"},"Pz4tzxr8zDvf7uTxtdYCq":{"uri":"/melonJS/docs/melonjs/Draggable.html#currentTransform"},"FKur0yMlRNdQpuSg5l4G6":{"uri":"/melonJS/docs/melonjs/Draggable.html#depth"},"UrYblMe892-5Rtvt_azZk":{"uri":"/melonJS/docs/melonjs/Draggable.html#floating"},"eh5uMgfOJt67tuID-UEDt":{"uri":"/melonJS/docs/melonjs/Draggable.html#GUID"},"WqQk_eAF1k3e8jNoQmr2M":{"uri":"/melonJS/docs/melonjs/Draggable.html#height"},"aHxvz5zR-rXxP22GsZFpF":{"uri":"/melonJS/docs/melonjs/Draggable.html#inViewport"},"ww7iiWsAeiipWybkxNi03":{"uri":"/melonJS/docs/melonjs/Draggable.html#isDirty"},"GxdHsPMUejlx7p8pJT0ub":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedX"},"sc9U595LF42v1HRDvz027":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedY"},"r8JkMOHzHrT8LzoNCDVXt":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFloating"},"GYD2MgbKXWUWWLlWXqz7w":{"uri":"/melonJS/docs/melonjs/Draggable.html#isKinematic"},"T45DlFhoGvJrV3Y2lMgnn":{"uri":"/melonJS/docs/melonjs/Draggable.html#isPersistent"},"cWmkbK1II6jpMtn7vvxXc":{"uri":"/melonJS/docs/melonjs/Draggable.html#left"},"AYy7-cGIZAFQOxojATSzX":{"uri":"/melonJS/docs/melonjs/Draggable.html#mask"},"b08Thy4RdK-ZH2q6GdN9_":{"uri":"/melonJS/docs/melonjs/Draggable.html#name"},"lRGb-CR_rzRCv9u5_fQAu":{"uri":"/melonJS/docs/melonjs/Draggable.html#onVisibilityChange"},"fj09seE5L44UMmCnVwpJa":{"uri":"/melonJS/docs/melonjs/Draggable.html#parentApp"},"JjZS4JOsxTcIGFvnCbWYM":{"uri":"/melonJS/docs/melonjs/Draggable.html#points"},"rPTcy_GdEsADlPcFee-Jm":{"uri":"/melonJS/docs/melonjs/Draggable.html#pos"},"GTpPGfhXPH9YxQm3h1WIE":{"uri":"/melonJS/docs/melonjs/Draggable.html#right"},"8C-mvEKTS0p-QmK21aNxU":{"uri":"/melonJS/docs/melonjs/Draggable.html#shader"},"MLOXeaN_ItvSePkWTPgKq":{"uri":"/melonJS/docs/melonjs/Draggable.html#tint"},"G5pdQX8d8SLGKC_D2r0pj":{"uri":"/melonJS/docs/melonjs/Draggable.html#top"},"v5vK9y6kf1NNvchPONsQb":{"uri":"/melonJS/docs/melonjs/Draggable.html#type"},"QZQUQPjHKMOWo5sl6iZT9":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateWhenPaused"},"DdMVKgY27DIE8lgDyACVt":{"uri":"/melonJS/docs/melonjs/Draggable.html#width"},"uFmKHGrqs8cbzH9pvssxa":{"uri":"/melonJS/docs/melonjs/Draggable.html#angleTo"},"1v9pLT6mT7qXAjnncZsgj":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerOn"},"skHHJdb63q90029LxzoXJ":{"uri":"/melonJS/docs/melonjs/Draggable.html#clone"},"RFzf2LjyGXMpweFxOUwjW":{"uri":"/melonJS/docs/melonjs/Draggable.html#constructor"},"STDIhC0z6VOYEz-6ZyjgN":{"uri":"/melonJS/docs/melonjs/Draggable.html#contains"},"tdauoyIg5RYSJ3Gf0d9oh":{"uri":"/melonJS/docs/melonjs/Draggable.html#copy"},"_lJdv3-Wv8k9SEVY29HvF":{"uri":"/melonJS/docs/melonjs/Draggable.html#distanceTo"},"W4T0lZ8v2a0oAMRUcTg8T":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragEnd"},"4Jz4A2FYGVpqUt_0F4t9Z":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragMove"},"yIsOFqSljazp-8oWKvhGI":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragStart"},"xvEOMWLyd3t1mFmcdp2gg":{"uri":"/melonJS/docs/melonjs/Draggable.html#draw"},"OTV__jf6ucbothglkPpsr":{"uri":"/melonJS/docs/melonjs/Draggable.html#equals"},"h7tbpOs5OrboN4recP2c4":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipX"},"TugbBx0F87XLMVtpQ2P4R":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipY"},"dKP3MpDRQq-c66r67mRWk":{"uri":"/melonJS/docs/melonjs/Draggable.html#getAbsolutePosition"},"uwVYGqWIus2kxj5h0Zi1L":{"uri":"/melonJS/docs/melonjs/Draggable.html#getBounds"},"XKD9rEQR7Tncdqg2gxPfI":{"uri":"/melonJS/docs/melonjs/Draggable.html#getIndices"},"OLWlSkRE4KXVUofm7-LkN":{"uri":"/melonJS/docs/melonjs/Draggable.html#getOpacity"},"2eb_U_W1TVLZjm_OQMYaw":{"uri":"/melonJS/docs/melonjs/Draggable.html#isConvex"},"WsbojIpMYVNgBNCW2VsLU":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFinite"},"HDHLCn3alvqoFVJxVC7QE":{"uri":"/melonJS/docs/melonjs/Draggable.html#lookAt"},"GOAwXP5ZRgogplVEBbFYU":{"uri":"/melonJS/docs/melonjs/Draggable.html#onCollision"},"58xQF1bFNNJKPU3AiYrG8":{"uri":"/melonJS/docs/melonjs/Draggable.html#onDestroyEvent"},"YDY3Dduw6jOmDI1zhV89O":{"uri":"/melonJS/docs/melonjs/Draggable.html#overlaps"},"ZcTNAcmOPndf8-Fv8zZ3i":{"uri":"/melonJS/docs/melonjs/Draggable.html#postDraw"},"qZolrfisN7jykUvTQCWsh":{"uri":"/melonJS/docs/melonjs/Draggable.html#preDraw"},"OyRt7JTvbxRw_IEq4KSy8":{"uri":"/melonJS/docs/melonjs/Draggable.html#recalc"},"YMokyQ35GPXjn2ZRMowqF":{"uri":"/melonJS/docs/melonjs/Draggable.html#resize"},"6V5HMTCRwLw9wpbPv8SeX":{"uri":"/melonJS/docs/melonjs/Draggable.html#rotate"},"cT2dzLlFuRzFWlE5HFuMj":{"uri":"/melonJS/docs/melonjs/Draggable.html#scale"},"o0WBMOX9h8isKcXH27sW3":{"uri":"/melonJS/docs/melonjs/Draggable.html#scaleV"},"QzVYQQN2jQ-9Om3K1Aa9M":{"uri":"/melonJS/docs/melonjs/Draggable.html#setOpacity"},"h_iZZHgQHL4yB9SKTpuqO":{"uri":"/melonJS/docs/melonjs/Draggable.html#setShape"},"JdCZ-FihNxT4ioD4F80ig":{"uri":"/melonJS/docs/melonjs/Draggable.html#setVertices"},"sfXZJgWIDsjQr0Mt05kg7":{"uri":"/melonJS/docs/melonjs/Draggable.html#shift"},"zBJjsAQTcsElC_IInNXrG":{"uri":"/melonJS/docs/melonjs/Draggable.html#to2d"},"Gsn6kdFaTg1b3grGe4Vd4":{"uri":"/melonJS/docs/melonjs/Draggable.html#toIso"},"Ohqt-9y4qOwWHte9LkYXX":{"uri":"/melonJS/docs/melonjs/Draggable.html#toPolygon"},"BKYqNh_PmXtACZcyVhwMw":{"uri":"/melonJS/docs/melonjs/Draggable.html#transform"},"QJ8I2hUsxOr8xoA3-gPFf":{"uri":"/melonJS/docs/melonjs/Draggable.html#translate"},"RuIDK997-I5wG7honVZXw":{"uri":"/melonJS/docs/melonjs/Draggable.html#union"},"v_2WYXVUrm39bRDAs7E5g":{"uri":"/melonJS/docs/melonjs/Draggable.html#update"},"dvNjbKxwG2vGkaTNbcL8f":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateBounds"},"FPpHqwosCitCc8ICjH8VX":{"uri":"/melonJS/docs/melonjs/Draggable.html#initEvents"},"V62dEF-HAxqYob0Hix54R":{"uri":"/melonJS/docs/melonjs/Draggable.html#onAnchorUpdate"},"mxRN4-_RP7qAcMM8i1u6A":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html"},"17LhE9TDkeutzN532CGzI":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alive"},"lYWsD31oqFjwt3HW10XNG":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alpha"},"DsFV5IPNd26W_9cQQreMv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alwaysUpdate"},"ehRxnqeFMAj7zM-pJ90pk":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#ancestor"},"97w-cgH5X-LiGgFeKyPww":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#anchorPoint"},"--GPQgeIyWpO0djzi7T1I":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#autoTransform"},"SJ4DOvuSfzFPiTdvqXSIe":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#blendMode"},"e-i_5Nab60vA_Y5liVUPd":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#body"},"R_CWkDy8db1d37YYISPjo":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#bottom"},"tLPgJSh9srnL6k6rcvACc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerX"},"Kvb1lqEAYh1HUyF4tpnDh":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerY"},"zx7e-37lTK6WZykHse2xO":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#currentTransform"},"nu44RULoNJm6ZLzIAq92Q":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#depth"},"r3sqHPkMkcoJIdzA8IMxU":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#floating"},"BcAVzeoDpoMKHYlP2h9LY":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#GUID"},"w1ciT6VRpEiMGVrqJbnhl":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#height"},"XU_TRN2ETZcwabDESS2wg":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#id"},"1DbhidsKh7ZeGCD2ZKn5d":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#inViewport"},"Pm_wgPBnzq_ZiFeww2RWj":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isDirty"},"Y8ng63C16ZDOGzUsGeMLv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedX"},"nVSu0YhI3Q6sM0meGmqwI":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedY"},"u7vcmG-0hYnSYcQKIjcmN":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFloating"},"elqOe3aewsfPo6VMeA1lc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isKinematic"},"evjoszpEiFV7zz5pBRVIh":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isPersistent"},"XtxHklxs08CyI1xLrpGjy":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#left"},"IcosUUF1KjhVfzJljLWKf":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#mask"},"KhOhmZMD4AgUQpMtP9OkI":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#name"},"Brx7y3vimnm8N0BACdtVF":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onVisibilityChange"},"fIJhGf-tMPlDeuM1JrS-a":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#parentApp"},"yR6UkTDruYa2D-mxbJBdB":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#points"},"lPQI51RNWX3TPebw5h-oI":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#pos"},"7vJg6FRrrMXdQlQ5zm_Vb":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#renderable"},"wxlAJ3319QOfPQo6DKeIV":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#right"},"6NYRr0zKzsP9gUuybPJeD":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shader"},"gvEybLHNpZe6YwwrEJaso":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#tint"},"71Xuh7QPQ9BjRkSGAgREb":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#top"},"Za7lKYVd05ZD1ENCp98YC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#type"},"SJjIDOsmyvzvhO3FNnpZQ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateWhenPaused"},"UHoJ34dvbPfgFgGPDN_ge":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#width"},"2auxnHQK1-U9a6LsvClJF":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#angleTo"},"qvByp4H-GbtpIsR-B-LYz":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerOn"},"wtR8GG7vJvTbUW-CjmWz9":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#clone"},"uSbwq49awjUDJYnXyg9tj":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#constructor"},"XvgCOq1ocN3OEV21_OdK7":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#contains"},"iWvZ8W0qqUB_YWLQHnjMe":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#copy"},"FaP78TzbLhDXEohfsvzLo":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#distanceTo"},"dBP6DNG2xDFABBop4Yqpo":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#draw"},"eNB4Tl0nOweGBRl_vdQCl":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#equals"},"DTHhn7jTQyplKM1ziH1zC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipX"},"6GX0sLLxHK95z_QE8vXCT":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipY"},"A9zvTX4zNlaTWPdPkZZEq":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getAbsolutePosition"},"HYvQg7Nln5xnEocASn5Gf":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getBounds"},"nLrSfZ7q2LdmVX0HcjMbt":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getIndices"},"GDmK0xaWgvT2v4SaVT9bA":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getOpacity"},"A_kOsvKpxPvM8A5q-aq4G":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isConvex"},"038pJkQAGB2TqJ2rscLKF":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFinite"},"wSmrgZH4AskM2sDEUmzKX":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#lookAt"},"QZ3c8ebtdXVGTSkFd02kc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onBodyUpdate"},"WJJ0YCiOh1PcTl-5DlFVE":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onCollision"},"oglK4sFXVNalD6Lz53TNR":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDeactivateEvent"},"pEooeXGumnM7N2FhF6gz2":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDestroyEvent"},"zh7XbBMNnNLjnLFaTcKwq":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#overlaps"},"yZ-y--YE0Mvg5yDzUrvCX":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#postDraw"},"dO-cR8uPjOkjj47gyglFw":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#preDraw"},"sa4NhMbpD758pkFj69jtq":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#recalc"},"cJWtZwt26sEUs-GrcS2Yr":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#resize"},"XtBfejVqZw2zUntkOGAQl":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#rotate"},"G55tc80J4hLVorVGNJUR_":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scale"},"rw219wPTmAhZlO7Fotexo":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scaleV"},"DwzSlMF5OVk9EJ067Q7Tu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setOpacity"},"L3_LM4MMrPjyoeqss22bc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setShape"},"byf3sUC6E5mJix-1eBc-6":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setVertices"},"bFF3Z4bPtXAkJth4GMr0E":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shift"},"34X2n2M6nQMgkixgMvqFM":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#to2d"},"ARP5bQLmVhi7iJ3HeRfJK":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toIso"},"TZeRSc3JmgQCELfDftkZf":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toPolygon"},"2cdSigzVoW-2KR6sTV7VD":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#transform"},"3O7GyJJwbBM9wQGEz_9MC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#translate"},"-FHKaqs6KDyfIZjrFlx6T":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#union"},"UaDoo3ACpZ-m_djIcIRvv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#update"},"PQAPsLbljUUBXITWNjE-u":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateBounds"},"D80JoWTbigklEOKjp96gt":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onAnchorUpdate"},"Rj5q-hhUe1YRJGgePUvrS":{"uri":"/melonJS/docs/melonjs/DropTarget.html"},"b2IkFem6wy9BFRXndT_Xb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alpha"},"boaICmY_6enuB7jAc_KDT":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alwaysUpdate"},"HVx0QSLlvmVKQIcBUSnty":{"uri":"/melonJS/docs/melonjs/DropTarget.html#ancestor"},"UaUDXEkhdTFgkr-YiM621":{"uri":"/melonJS/docs/melonjs/DropTarget.html#anchorPoint"},"wcoed9RVLTkIozr4Veism":{"uri":"/melonJS/docs/melonjs/DropTarget.html#autoTransform"},"lLz0-ZwaHKXr67zddnOIb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#blendMode"},"OVvNfaRHQXiXP7zc9lWyG":{"uri":"/melonJS/docs/melonjs/DropTarget.html#body"},"M_jIgZ596jGxeXpPZydDI":{"uri":"/melonJS/docs/melonjs/DropTarget.html#bottom"},"6p2-leeNfJVD-IN6hCLpz":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerX"},"MqZSPlrz9iBa2u9Gp11PS":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerY"},"YmKhU7qVtkePjH9CsXZgb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkMethod"},"LQGFhKAPxLk7V5ehwwKi8":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_CONTAINS"},"1cnO4ZolfqSQ7Bq7EY1EV":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_OVERLAP"},"EP4SEEdFE_Ez84YkoBUND":{"uri":"/melonJS/docs/melonjs/DropTarget.html#currentTransform"},"TJ7BdQBSHo6moCQRRBUf5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#depth"},"cYyl20DGQc27re1Lt8slh":{"uri":"/melonJS/docs/melonjs/DropTarget.html#floating"},"I5s_RX4BmtiwmX7NOkEBs":{"uri":"/melonJS/docs/melonjs/DropTarget.html#GUID"},"WCdsYbavucyFAeed-3g_z":{"uri":"/melonJS/docs/melonjs/DropTarget.html#height"},"ocqoTwbCX_P1jEcTIAvcA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#inViewport"},"YHCd5M7qS9K_kOdDjuTes":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isDirty"},"YjSlrLAU_Rc3T_7a1fsuR":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedX"},"7GuLl0hAvVY2ov_-DKIWH":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedY"},"g2OVAqIk9vXTRJxEi8qYg":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFloating"},"a06IYwC_wk_zqyoHkbIVc":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isKinematic"},"_EnhaAWqm5TUjGvmx5nkR":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isPersistent"},"s-3Aq-yZwkNduW39vRSIT":{"uri":"/melonJS/docs/melonjs/DropTarget.html#left"},"vdMTJbJZxHqVreI5sZodp":{"uri":"/melonJS/docs/melonjs/DropTarget.html#mask"},"a32wn_9jGwxBOi-VSaBRw":{"uri":"/melonJS/docs/melonjs/DropTarget.html#name"},"j_ubhiNGARrlRC1xtfYPe":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onVisibilityChange"},"5-8nEwQhJnqT47fawM0gq":{"uri":"/melonJS/docs/melonjs/DropTarget.html#parentApp"},"tfXi5Vl1clRWvYDNe2P11":{"uri":"/melonJS/docs/melonjs/DropTarget.html#points"},"xPOQU9YDBLzYGrS89CRvY":{"uri":"/melonJS/docs/melonjs/DropTarget.html#pos"},"l5hxmk7hrVb18Tm5QbuHM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#right"},"Qtvwy0zSzCu5F59NwLRPq":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shader"},"6FxwzhnbW2JrLnDLZZHeU":{"uri":"/melonJS/docs/melonjs/DropTarget.html#tint"},"5JiDXLO1q9bdP9t2NRp3s":{"uri":"/melonJS/docs/melonjs/DropTarget.html#top"},"qDjVaEU0oeO3s5vPgegYB":{"uri":"/melonJS/docs/melonjs/DropTarget.html#type"},"JOaUpG21fBvx8LP4toTHJ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateWhenPaused"},"zl3JtzuQU-IZVRqFcmKFR":{"uri":"/melonJS/docs/melonjs/DropTarget.html#width"},"V-ct15XWBqUdAFvuRxrlt":{"uri":"/melonJS/docs/melonjs/DropTarget.html#angleTo"},"CZY_vfEXlE28Fu8aZJ-g5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerOn"},"Z28lcaidu39-k-y6wv5G6":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkOnMe"},"aC-UXWOE_8DIiw9DfRtmk":{"uri":"/melonJS/docs/melonjs/DropTarget.html#clone"},"CxhV-M8SGoWJfpVT-cesU":{"uri":"/melonJS/docs/melonjs/DropTarget.html#constructor"},"WP16zhiGiYlsGT-VOccJh":{"uri":"/melonJS/docs/melonjs/DropTarget.html#contains"},"AM_64nZQD7WuuYX8Uk58S":{"uri":"/melonJS/docs/melonjs/DropTarget.html#copy"},"v6nJKp_hhzNFMuw1zrvIM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#distanceTo"},"xyZ-Eto0UKXpBwTrTY0F1":{"uri":"/melonJS/docs/melonjs/DropTarget.html#draw"},"awwqIZFOm6fHxDshNb2sj":{"uri":"/melonJS/docs/melonjs/DropTarget.html#drop"},"1yKtaLxlcgQ_m_-5451Ig":{"uri":"/melonJS/docs/melonjs/DropTarget.html#equals"},"8ygCTyfmcusB_4gky4q9k":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipX"},"FqEfMYuRcixVmaHTspz_6":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipY"},"8-gu5sTFb3KU6WZcDloXf":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getAbsolutePosition"},"qZk5cH_Fga3SvHlcpOI1K":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getBounds"},"MuS4CV4cDYTK5muOeakTN":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getIndices"},"BtY9pN411OBSqxeF6w-YG":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getOpacity"},"8OM1CxdT9_FSmnJyPZgXK":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isConvex"},"31frZNBh8pBlmZ4HSzE7M":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFinite"},"nTFLZ0oD_vo6ThlKEnr-9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#lookAt"},"wmmUjNHZ4ktAVvITzYrwF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onCollision"},"I8RcThvIpx5VGZEZ8apEj":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onDestroyEvent"},"arqSNVG00suS8aq-ZXBeD":{"uri":"/melonJS/docs/melonjs/DropTarget.html#overlaps"},"nWalebIwYhaLduNPMcJXc":{"uri":"/melonJS/docs/melonjs/DropTarget.html#postDraw"},"CCJh-mkTiV71XTc-uCC1l":{"uri":"/melonJS/docs/melonjs/DropTarget.html#preDraw"},"ewZH_rYGbDjP470SET-aq":{"uri":"/melonJS/docs/melonjs/DropTarget.html#recalc"},"CbTHRVTmKAssAqHBlbNpQ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#resize"},"fJzRpPA9Iba6JDZrdqF90":{"uri":"/melonJS/docs/melonjs/DropTarget.html#rotate"},"jXAR5YQE_euheXt1Gy1a0":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scale"},"lwp69UBXX8lFaoiUyqU_c":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scaleV"},"Ef76K4DpkpIJ0ITkD1ve9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setCheckMethod"},"QA-pO00VvT9khOT2gY3bb":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setOpacity"},"p1nSUJSmCTtJaIY4zhlKV":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setShape"},"W8a4vEI-AJMGV9fLNW4tZ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setVertices"},"266tjm-rbwIdjeqH_kTIk":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shift"},"4d3MX9NAxhFnyIdzIPmyP":{"uri":"/melonJS/docs/melonjs/DropTarget.html#to2d"},"d8-o2aNBKh0ykzVo73Vyl":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toIso"},"kBwF_5w0ckLpmQZEqtxRc":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toPolygon"},"dBmC2_dtO2Vuk5FaT0lWr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#transform"},"mZ0ky6Jy0THytAlB7o--M":{"uri":"/melonJS/docs/melonjs/DropTarget.html#translate"},"5UFVGaDfGluqJpTbr_2fv":{"uri":"/melonJS/docs/melonjs/DropTarget.html#union"},"sReJaK42BeIuxFfYWa8y3":{"uri":"/melonJS/docs/melonjs/DropTarget.html#update"},"9p8uPVtkDcM7CPlkkj-4S":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateBounds"},"he51iZ9B7bGS4lLymOXKn":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onAnchorUpdate"},"jy2rGm9IlEDdhIKuNNoC0":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html"},"BkfsbGXPNqabtlcP4uO1x":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alive"},"eJmi4C-09oLV4YCzmnIrH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alpha"},"iiPzn8SB_wKnU9XMqTwuj":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alwaysUpdate"},"zxv-yr7IlHq33dtxFDHXj":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#ancestor"},"LLhOKMXbSk0S_gGv_Yt1K":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#anchorPoint"},"IkS9X1-SDpY21xKKbpCX-":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#autoTransform"},"1Lt-yIh3e4UW-zqEVUnpn":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#blendMode"},"zAt_hIcLpVA3uXddYkbOc":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#body"},"tcy6vgP_64AnlTUWdIgYk":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#bottom"},"sMX88EIfswo_SMMv4ffGZ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerX"},"TSnwi3gjHfcJ5jo5Aevtd":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerY"},"SmmghrnwrmR82r935dsTQ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#currentTransform"},"vEjY1Z7GOamRd7UZIj23I":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#depth"},"0P8RoSVC5Aga7y_z73OeI":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#floating"},"wD4t5kxkqVBC2ca-hJ8W_":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#GUID"},"0sltP5jLWCJv5-Dr7pbtX":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#height"},"d8jzvlXKUOmG7kt5KAo53":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#id"},"uqMTZTlQPIy1z_rREtt9J":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#inViewport"},"zTGkHTmSqHqtu4z8927-K":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isDirty"},"uIUVqTmVACURBJa1ATMIr":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedX"},"ErkTBkHmIjgCmECQPF_FU":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedY"},"ve8VTSomLv2LRetp4Lgok":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFloating"},"qB7eOGI85KyGXLwR_6y2f":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isKinematic"},"J7oW6uQTXyVNwHn3-5BN7":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isPersistent"},"Zwl8xcuuhQhSLTMl0WSVc":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#left"},"67QAshy76dNT9Ts7iaqCZ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#mask"},"fFx-fyUgc-ONLQEIoG0Js":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#name"},"sT-EiAAPKOONrROegBxFv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onVisibilityChange"},"FqpUVvhNwOPQmv6jK3eMQ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#parentApp"},"qQzJHCRuS0XHgfert-eNe":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#points"},"4gqZHOjNdkyV8C4PWgIPQ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#pos"},"jMZAGyllFe1CnLd3GuTty":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#renderable"},"L2ImUNYBYE0xNtovQ5y2x":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#right"},"54KD5h4TOIeaBHJ7erj7C":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shader"},"7vbxhj_ng1ZlHskd-Qb2-":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#tint"},"TFoGhZGhETcj1_cgX3qro":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#top"},"J8S4CTCrtFGIQ4RHyA6aQ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#type"},"lX6dXnLBUWnjPXJ1QBm_x":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateWhenPaused"},"my6pjzBQMYrmGDa-vAwcH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#width"},"uKpTNPzLQ5osW3eWLTXCv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#angleTo"},"Vbv5odAMerDQOQu7VzoFU":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerOn"},"GcVJ2PdmD17FgsNuoqd_g":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#clone"},"B_hshV8wpmRFxO2k71mI0":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#constructor"},"ny3QA-sybGMB8AbtN6wy9":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#contains"},"5xkUTnUZZXr9VeV7glc_C":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#copy"},"6c5MHfT8ay0-6H2g4z_lh":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#distanceTo"},"SDlRcEdig_-WIZZWC_R4c":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#draw"},"onNiZzGWC7SYG42GmQJQj":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#equals"},"vUSqm85OcywKne8BkwgX6":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipX"},"ltunftex9ezUwXmuNM2tu":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipY"},"-hnWnt6VDqnz0h6MZqw4J":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getAbsolutePosition"},"1y8-3GQ4keviAX9aPXhbx":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getBounds"},"GGk_vK5-DtqLx2YyB0wH4":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getIndices"},"V0IgoBRxEJR2X2PURdQf5":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getOpacity"},"IIq2wh2Ww4moSwuNplhZn":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isConvex"},"y84waYmDD6xuehWnKbB4R":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFinite"},"wnHJSlEofdgeVWdofmrDk":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#lookAt"},"dzTH70Icmlx0w1o5NRla8":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onBodyUpdate"},"Nr0XUTketp1Sw7c8jtVZ7":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onCollision"},"iw2GDWJtLdDVDnRFdT1OJ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDeactivateEvent"},"0QDGRLfI0HLpVLbL4OzL0":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDestroyEvent"},"emE8G90aByZlAymt3Y5b4":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#overlaps"},"Sra_PgDD_on1-JkCnSece":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#postDraw"},"KcMXzdunR4sO-MKyaQAf_":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#preDraw"},"i7Pb4Fxj6jLkhJy3EDMkd":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#recalc"},"bzVCvrjnqlewnfgZIBGb2":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#resize"},"1Sz9obbAowNfGezAJNxPt":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#rotate"},"ITwOx3lhNrU7DqSD78xZc":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scale"},"XOkE4j6KBcNv5iVVh0KHD":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scaleV"},"oNDAYd-KUJwWwSAbo2Yxm":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setOpacity"},"on44_xggS8vZB5rdk3hiL":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setShape"},"GREY9Ekhucgg91aWElzIa":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setVertices"},"MIhaFbLME4R2JH_YEpvU1":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shift"},"LGRvPPVx60QFQmCP_oINO":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#to2d"},"_8mnuapXPegr-6sAv-6s0":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toIso"},"0xLpa88xNh9xuN_Iq2pvL":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toPolygon"},"X2eyh_dxhAUkJjs5-jHvW":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#transform"},"MZC9xKnq6aynXAfBeeA5J":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#translate"},"zOjmEwYqEU0pxMWhUqCED":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#union"},"61f7MBq-484aUoU4XoRuO":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#update"},"17YuvApnTm80ESW6lHhn6":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateBounds"},"cVgHOBk0UeIVRcyPbYff4":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onAnchorUpdate"},"RCht5pAL7IdFwIUi85X3n":{"uri":"/melonJS/docs/melonjs/Ellipse.html"},"uQfN1f67z_aqpKdRMNDxl":{"uri":"/melonJS/docs/melonjs/Ellipse.html#pos"},"lwCSNBq8M7JR8RSgTkFsg":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radius"},"vR8DrcQypoZSZS5vHnXQ1":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusSq"},"HxQBBt0VPhKO2-RauNver":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusV"},"2KNpB2JS_WZtYJ3zcfYAC":{"uri":"/melonJS/docs/melonjs/Ellipse.html#ratio"},"YBp3LkTZRGbWo4MyVDX1a":{"uri":"/melonJS/docs/melonjs/Ellipse.html#type"},"s8lJDsWuqtdqHO3Bt4TEz":{"uri":"/melonJS/docs/melonjs/Ellipse.html#_bounds"},"TfVaJnSpK9U88CrD_1fJ2":{"uri":"/melonJS/docs/melonjs/Ellipse.html#clone"},"Dgqa32jaHtaZ3Y63NvdHj":{"uri":"/melonJS/docs/melonjs/Ellipse.html#constructor"},"Nzr6V-juIfWHlFTO4mj5K":{"uri":"/melonJS/docs/melonjs/Ellipse.html#contains"},"GlHR2nA1YRlYDB82nVTww":{"uri":"/melonJS/docs/melonjs/Ellipse.html#getBounds"},"UNTwKLIgOaTf8M4eUHdlT":{"uri":"/melonJS/docs/melonjs/Ellipse.html#rotate"},"vv_vv9WxpuatBkMy7yX4Y":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scale"},"ApqVLl0OZKm7Fuc6wsxpg":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scaleV"},"k7FYApTtiSbRa8mOpr3c8":{"uri":"/melonJS/docs/melonjs/Ellipse.html#setShape"},"71p7kZsnMWaWT9bLWHvSx":{"uri":"/melonJS/docs/melonjs/Ellipse.html#transform"},"V5nDyCzS0vsv0ii6sypy4":{"uri":"/melonJS/docs/melonjs/Ellipse.html#translate"},"bMD81QtF_CTjRp_kpg9Ex":{"uri":"/melonJS/docs/melonjs/Entity.html"},"Zg5VOhA9zG84P2xeosyRh":{"uri":"/melonJS/docs/melonjs/Entity.html#alive"},"Rok47NLntpoSo4s2Dz3RB":{"uri":"/melonJS/docs/melonjs/Entity.html#alpha"},"OGZB8y4gKOg-ZcBWbVEeF":{"uri":"/melonJS/docs/melonjs/Entity.html#alwaysUpdate"},"LcJBUPv4lk4Ujj8cwGSG5":{"uri":"/melonJS/docs/melonjs/Entity.html#ancestor"},"4s8WiGEiz8F7mDHDng43l":{"uri":"/melonJS/docs/melonjs/Entity.html#anchorPoint"},"NPZLrzpN7Ub2x0euRPfWC":{"uri":"/melonJS/docs/melonjs/Entity.html#autoTransform"},"fAB6AMzpgqJ9TPoJPaetr":{"uri":"/melonJS/docs/melonjs/Entity.html#blendMode"},"007YHJ5q7sXl34usGOkm4":{"uri":"/melonJS/docs/melonjs/Entity.html#body"},"hYTnAU30AyemyCq4ZbrTP":{"uri":"/melonJS/docs/melonjs/Entity.html#bottom"},"b1mj5kh7m0PwwDTRlPkoy":{"uri":"/melonJS/docs/melonjs/Entity.html#centerX"},"9GFsra6Y1hXGrvgJD1ES6":{"uri":"/melonJS/docs/melonjs/Entity.html#centerY"},"iP-PsCN46H0lNAnSf9UN-":{"uri":"/melonJS/docs/melonjs/Entity.html#currentTransform"},"aUQ8SksJINKTYMAuoxyv-":{"uri":"/melonJS/docs/melonjs/Entity.html#depth"},"mn-8ips3KEzDDyGecc1kS":{"uri":"/melonJS/docs/melonjs/Entity.html#floating"},"2XjwKgluQvHnyVJ0vyTfU":{"uri":"/melonJS/docs/melonjs/Entity.html#GUID"},"RNPCVX-v23Sl3WVkVkDVA":{"uri":"/melonJS/docs/melonjs/Entity.html#height"},"mIPbm66WBhdrBFCFPO8EC":{"uri":"/melonJS/docs/melonjs/Entity.html#id"},"iusO6GzB9fb0AZ7qPi22e":{"uri":"/melonJS/docs/melonjs/Entity.html#inViewport"},"Vd_VRrkYhFY-WN5PCXqSc":{"uri":"/melonJS/docs/melonjs/Entity.html#isDirty"},"tv3LAkF8S21fHr2PTmUB5":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedX"},"GtgP_m_rArw0t1jNYA-Bn":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedY"},"0_2aAtv3H-QyxA5Rp3vBW":{"uri":"/melonJS/docs/melonjs/Entity.html#isFloating"},"ukU7InXiIPwLuk52FkDoc":{"uri":"/melonJS/docs/melonjs/Entity.html#isKinematic"},"8FD3G6wH2EZqmJf6FDPAq":{"uri":"/melonJS/docs/melonjs/Entity.html#isPersistent"},"8XOsVSY1Cm8t5XKlTNJ0f":{"uri":"/melonJS/docs/melonjs/Entity.html#left"},"Uy9suBaeDFz-XBhiDm5nw":{"uri":"/melonJS/docs/melonjs/Entity.html#mask"},"juLKZvFY_4Qn7gT08CXxm":{"uri":"/melonJS/docs/melonjs/Entity.html#name"},"H5cj1Bd08T0UIXXGBd5cx":{"uri":"/melonJS/docs/melonjs/Entity.html#onVisibilityChange"},"UnHga48vXJlKrdKCmjh-2":{"uri":"/melonJS/docs/melonjs/Entity.html#parentApp"},"a6NajR_wi1BpsqrTKcCw9":{"uri":"/melonJS/docs/melonjs/Entity.html#points"},"4O51Oc41L5krhd7Kx7O2B":{"uri":"/melonJS/docs/melonjs/Entity.html#pos"},"gH2plzL_VnrbCvPkjDCs2":{"uri":"/melonJS/docs/melonjs/Entity.html#renderable"},"ILS5KETvOB7UYwjWSfrcV":{"uri":"/melonJS/docs/melonjs/Entity.html#right"},"iysVH4iB1Vt-ZE9mOXGQi":{"uri":"/melonJS/docs/melonjs/Entity.html#shader"},"yeoWQrin0NL_1cWsW6OA8":{"uri":"/melonJS/docs/melonjs/Entity.html#tint"},"coMWiR0CjzOTZiHS1XpFe":{"uri":"/melonJS/docs/melonjs/Entity.html#top"},"iL5c7dqT1n11Vb6k9B7f_":{"uri":"/melonJS/docs/melonjs/Entity.html#type"},"STSHbj0YmAduhvWvbxnXK":{"uri":"/melonJS/docs/melonjs/Entity.html#updateWhenPaused"},"xX-shbeZTLz8ElAhRkZSp":{"uri":"/melonJS/docs/melonjs/Entity.html#width"},"7ShAgvx3dPQXzRYRLwPCr":{"uri":"/melonJS/docs/melonjs/Entity.html#angleTo"},"5LciTs4pFGecydKUd8rak":{"uri":"/melonJS/docs/melonjs/Entity.html#centerOn"},"s4A0ydqhoDGw5h9m6tjEe":{"uri":"/melonJS/docs/melonjs/Entity.html#clone"},"ZxkYX4jQELTnkVPNqT5F2":{"uri":"/melonJS/docs/melonjs/Entity.html#constructor"},"GDMhtA8zlvsGZiT68YvCm":{"uri":"/melonJS/docs/melonjs/Entity.html#contains"},"z7IyANIejbxibxcxJBewL":{"uri":"/melonJS/docs/melonjs/Entity.html#copy"},"dKRLbARolgonduo6uGw6L":{"uri":"/melonJS/docs/melonjs/Entity.html#distanceTo"},"5AV-oQEXARP60MY1Kzaje":{"uri":"/melonJS/docs/melonjs/Entity.html#draw"},"3ofCtlyoNrvJsR1VZQUsn":{"uri":"/melonJS/docs/melonjs/Entity.html#equals"},"1D6SM0GLXtP71xazQSyZd":{"uri":"/melonJS/docs/melonjs/Entity.html#flipX"},"sW--m5CooHbyAkup1TFAK":{"uri":"/melonJS/docs/melonjs/Entity.html#flipY"},"IcWGWbWDFmk_B03r4xC5o":{"uri":"/melonJS/docs/melonjs/Entity.html#getAbsolutePosition"},"0e18I5R6BwpZM2wOHuDT9":{"uri":"/melonJS/docs/melonjs/Entity.html#getBounds"},"Oe8wnLJcn0s57RiKWrc4E":{"uri":"/melonJS/docs/melonjs/Entity.html#getIndices"},"PhX3GsuMrisgrY7d734pe":{"uri":"/melonJS/docs/melonjs/Entity.html#getOpacity"},"G3o59ZM2TGzfdeIf1d2_D":{"uri":"/melonJS/docs/melonjs/Entity.html#isConvex"},"Y5_PosnH62gg0_SefWAnd":{"uri":"/melonJS/docs/melonjs/Entity.html#isFinite"},"o8Iifo8dg43nsOyhljNB-":{"uri":"/melonJS/docs/melonjs/Entity.html#lookAt"},"GMM3atc7KEm7swPUoaftq":{"uri":"/melonJS/docs/melonjs/Entity.html#onBodyUpdate"},"kOq1498SVKFVJkk1781fs":{"uri":"/melonJS/docs/melonjs/Entity.html#onCollision"},"BVzAEJOOfLfmvMd7d-WBl":{"uri":"/melonJS/docs/melonjs/Entity.html#onDeactivateEvent"},"xL_3-QP8PR2wV_7VLNdhL":{"uri":"/melonJS/docs/melonjs/Entity.html#onDestroyEvent"},"TVYWN8pF3aV1AIuvMu7ss":{"uri":"/melonJS/docs/melonjs/Entity.html#overlaps"},"zrvt7h6UiOVjA_L7PvZo_":{"uri":"/melonJS/docs/melonjs/Entity.html#postDraw"},"tH_zmuvCOv5o8b6IfiRfL":{"uri":"/melonJS/docs/melonjs/Entity.html#preDraw"},"chbiRX-GK9hAcaDmkZZg1":{"uri":"/melonJS/docs/melonjs/Entity.html#recalc"},"Ikuk5lJNHh0dV_gL_eVB1":{"uri":"/melonJS/docs/melonjs/Entity.html#resize"},"i58xqCIS0M7j4sgmobkDh":{"uri":"/melonJS/docs/melonjs/Entity.html#rotate"},"eUOgwQv7-6XrvgljUNct_":{"uri":"/melonJS/docs/melonjs/Entity.html#scale"},"JuIOjHwCb_V7byqWR5gHV":{"uri":"/melonJS/docs/melonjs/Entity.html#scaleV"},"FmJkFCL_NhSfRzAYrzN8L":{"uri":"/melonJS/docs/melonjs/Entity.html#setOpacity"},"_7EyLf3VeEmgld0VUUL8p":{"uri":"/melonJS/docs/melonjs/Entity.html#setShape"},"3WTaGmElPVIq19ACPAnG9":{"uri":"/melonJS/docs/melonjs/Entity.html#setVertices"},"E8BjLJ5k-U8YAcPlQTxEP":{"uri":"/melonJS/docs/melonjs/Entity.html#shift"},"hi7YwdzDegUS02HMpVcaP":{"uri":"/melonJS/docs/melonjs/Entity.html#to2d"},"2Ctl9eAOHQZPtEKfWcNop":{"uri":"/melonJS/docs/melonjs/Entity.html#toIso"},"-pn3k2Ds1oX3omoScr19p":{"uri":"/melonJS/docs/melonjs/Entity.html#toPolygon"},"2i0M535j1NpTkHD0a-ECW":{"uri":"/melonJS/docs/melonjs/Entity.html#transform"},"BjdVRr1aP9AaihzirYw3O":{"uri":"/melonJS/docs/melonjs/Entity.html#translate"},"VA2eGrLde8D72lXtpmuqG":{"uri":"/melonJS/docs/melonjs/Entity.html#union"},"Wq6XQe8__JkgnoNGGdPE2":{"uri":"/melonJS/docs/melonjs/Entity.html#update"},"5ZqEmiuEa_BPD0Zm84fyt":{"uri":"/melonJS/docs/melonjs/Entity.html#updateBounds"},"iOzUCmSOOEVckh0Dlrs4f":{"uri":"/melonJS/docs/melonjs/Entity.html#onAnchorUpdate"},"JN5enmcVjWZN-mXdPaiSN":{"uri":"/melonJS/docs/melonjs/GLShader.html"},"rpFWlbFMk7kttw3QW_SJf":{"uri":"/melonJS/docs/melonjs/GLShader.html#attributes"},"CvTXCfCjYlY4aON4VFlF2":{"uri":"/melonJS/docs/melonjs/GLShader.html#fragment"},"I4fak29JUuKOdLDedCRFf":{"uri":"/melonJS/docs/melonjs/GLShader.html#gl"},"giDn31bTU6KXsT8yZ7-Qi":{"uri":"/melonJS/docs/melonjs/GLShader.html#program"},"mi0zdh50QMpJgVRzwV6W3":{"uri":"/melonJS/docs/melonjs/GLShader.html#uniforms"},"SATrEjvGQ3rBkoqJnDj3Q":{"uri":"/melonJS/docs/melonjs/GLShader.html#vertex"},"BvMXBt-KINMf8K_pw9UlL":{"uri":"/melonJS/docs/melonjs/GLShader.html#bind"},"4ZodNeMTfrlob8yck0xDL":{"uri":"/melonJS/docs/melonjs/GLShader.html#constructor"},"7W3eYqvoIn3mNeDEx-ZJE":{"uri":"/melonJS/docs/melonjs/GLShader.html#destroy"},"2wPks9_W7HthHMV3NhHJK":{"uri":"/melonJS/docs/melonjs/GLShader.html#getAttribLocation"},"g22vKFfi2kTKDiwMc1Uv6":{"uri":"/melonJS/docs/melonjs/GLShader.html#setUniform"},"aTU6fEVvsQBYfPjN0Gj1z":{"uri":"/melonJS/docs/melonjs/GLShader.html#setVertexAttributes"},"8iqpORwfAmugYLca_x1mU":{"uri":"/melonJS/docs/melonjs/GUI_Object.html"},"rka8FUYic1rZ2BAfQprji":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alpha"},"wk_RvD1rX7tOaVWL9MmST":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alwaysUpdate"},"NVY5C_7RAJV2E6j1Ma4xb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#ancestor"},"mNSSm-2FnTxq5Pc2GZB_R":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#anchorPoint"},"uQVLObyqfH7ZL6funYQAO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationpause"},"zDbGHNFjzqkZFUWDyMjfZ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationspeed"},"-K5UiZ6VSSVmMokfX89-j":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#autoTransform"},"v2n6kHtGfVFIU9gqC9tbS":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#blendMode"},"-pTB6Dp2ZgasEYWrQ5aje":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#body"},"BVeYTY7B1jE1YBtsfFI-y":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#bottom"},"NgAvQZHFIDEelt3lgzqTG":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerX"},"sMFt8DjT7vuK097sqMMQ_":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerY"},"CeBepWSlDQ4FgDvBe4TWK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#currentTransform"},"VRBbmWj356rsBQ2mrRgKr":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#depth"},"pk__Tw-8gjhSPG428UOJk":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#floating"},"zm5Vxg6-UkwBDByBAaGjO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#GUID"},"b0am-cNIyGhmT8CeliXlt":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#height"},"l0Uo3-kRAqEihuBnCrIE0":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#inViewport"},"4nj625MctZHC9hQb1ULaC":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isDirty"},"HzmHKXj3nEmeTCFTLH0MP":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedX"},"FRT03jfaIfOssgdPszYPp":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedY"},"UlFBC-GONtnXILakhRyLX":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFloating"},"NFmn5q5LPlDdmUBsrChlo":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isKinematic"},"JAzr-bcawS0js0I_oamiv":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isPersistent"},"tOineOHA3gXlFKLkVoD1Q":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isVideo"},"_FFzfphSkD7MhnDtzEPhH":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#left"},"VCL77XP-cW4NucD0SdQAE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#mask"},"LatxlhbI2XnxYbYjVuQxu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#name"},"1mOG3e5hom301uicGGbh7":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#offset"},"sqbu1cqIRRG3ElOICRqLt":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onVisibilityChange"},"Cbv6ZrGcpZbLt8GbzmBU6":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#parentApp"},"7iZSgGyigHp792ipwXRVv":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#points"},"gdlBJOvm2DUM6hlGY4BBE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pos"},"xhhODXkpiYwUbB5rwN0nQ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#right"},"eD3glypILKKV_t0doJFLI":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shader"},"liuwrT4taNn552zulCuEu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#source"},"RH-Kl6JSHYhWSXqkrxtoU":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#tint"},"Q4tHR2Sw1ASFMj7IHdhjr":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#top"},"3z-Y5KIx4xtVNbJ69o_Kj":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#type"},"k14ODGitL0b89vN0AmAJq":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateWhenPaused"},"YPfHYqa0m6hABy6df-2Ef":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#width"},"m_yNegZ3bemXPVzNzGM7l":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#addAnimation"},"aQVGV0x30gLAgW-pgJ8Hy":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#angleTo"},"TMIM1O6oz6qxwvnYu3AM1":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerOn"},"aCwTqFVZloLBL23QIujdF":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#clone"},"95M_9RBctm-GvvOkwGFHK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#constructor"},"XhA-NgqncH2tLI-J0XErt":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#contains"},"uPK_fRc4JfqzzQyz5XzoC":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#copy"},"v6sIclrnjbYNy7XUs6CgG":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#distanceTo"},"XEzv1cNKQBVugglqxxnKK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#draw"},"NW3X697EQRZgk2OILjpoC":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#equals"},"auIy8kp3KuqemQCQOcK2i":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flicker"},"5qIqktiU1oHeVA4OBqjPc":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipX"},"Fpq-nyQHjYpVhyX8OVHJy":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipY"},"jyf1uHUAbX6Zp4-piH_Ew":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getAbsolutePosition"},"aAYGCGX3WSK4LNEcxmSGP":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getBounds"},"DZ_2LKisgHJc0saWu01Nc":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getCurrentAnimationFrame"},"1AbbGlst6K0f9yjDqZWgh":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getIndices"},"zts9ExmZydkDYKSbH75gU":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getOpacity"},"8lDrxYsUxBndoI8opzUDa":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isConvex"},"alM8aywEa68DATmYlbEIV":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isCurrentAnimation"},"qxI-YgmWQfPpSGhzfDYg2":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFinite"},"0EqQjRX0iB0iJtKA6-JzJ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlickering"},"8HjPnU3VqfIY36KWN6R-c":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#lookAt"},"bpMBRqZzCt_h6bf7p-pJh":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onCollision"},"vFrkYxaDz2n2Vuc2QpfmU":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onDestroyEvent"},"PPBw8ZVaeVG3KwNLI99nM":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#overlaps"},"utRV56FMnrs53zGi3PcYQ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pause"},"8dCte1vopnUkA2_ih-JCG":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#play"},"G1EA6MuaH65982z83Q2-I":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#postDraw"},"WSllcyATpEx29tpeeyXUi":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#preDraw"},"PbHHEeZS6fpPUs51Z4O-d":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#recalc"},"4GHPffIMMIyL1oWNBg9eA":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#resize"},"uIOLedYZklt7WTT8L8KPH":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#reverseAnimation"},"LLcboUYNbxSq84URliISN":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#rotate"},"w-TSEl3ZDGHA04OPMAoxe":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scale"},"9QZJIsmeOk4gfqfSApTD-":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scaleV"},"Q12yZ0PEiTebiGMIOvCRA":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setAnimationFrame"},"4x21lbStt62cHFMSyvtK6":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setCurrentAnimation"},"xP548Y0H-E72usyvKk15w":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setOpacity"},"Td8lx7D1iQONN2d7qP_Cd":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setRegion"},"KZPPuy5n-msIK-bJcBFTB":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setShape"},"HPDVSZZ_yxj9MyI8o43DE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setVertices"},"q1SZU96IStTpL1rKnD2Dw":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shift"},"Fn0F72UzuxYF9BqvPNpG9":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#to2d"},"A8ZkVlDHcxL1okq9WxgM-":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toIso"},"R_7OkzO3nCdd4rhcrEnXj":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toPolygon"},"1vox-pVzqTYTQyEpZcGia":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#transform"},"0dyPPvA3wyxtqmLqeYYDq":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#translate"},"dD__yYeyjPtZcvJaw-72F":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#union"},"eiq0L_wwpM8wRn41jdQUf":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateBounds"},"95vYaBrFPXnckA_aatA73":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#update"},"PlyZcMdtPbJ2MIrnonIKm":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onAnchorUpdate"},"3HF_ZqwAud7KTettv1nos":{"uri":"/melonJS/docs/melonjs/ImageLayer.html"},"lLU1Pwi_J1vRPTI_S0Aku":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alpha"},"DlodvlZ0R0fUPM7v-r8sW":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alwaysUpdate"},"puh43GYUjRg4tawgzWUq9":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ancestor"},"MZZBPp_UGwjptlhkDX3le":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#anchorPoint"},"T6CwFb58-u7Bs8J3Lo3bc":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationpause"},"hr86wPLPO9c2lIeiVl3V1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationspeed"},"-Fpc-OE0rNzeaI7vbiKOx":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#autoTransform"},"OO0g0RSIdQfCjOs4wz8nx":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#blendMode"},"zWFOmzZ1yFEKKiJz0OKzH":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#body"},"dSDD6cw-FNnfxjgs6Ir2l":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#bottom"},"zZdaM9wKAoybHcsfl9Bbj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerX"},"4X_-H78haQTMlU7Eaxq-I":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerY"},"4KBklLUBYpRgtXcrIfvQ6":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#currentTransform"},"kTiFsLsG02suYx7ksGzLQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#depth"},"iYVhKdcVbQ2MEjbH5ui78":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#floating"},"cgtaFLgRVU08b5to2a3kj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#GUID"},"K0yTXRDTu5s_PHPfYC8WQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#height"},"cVBZgEqJuwPzPgOAhtYML":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#inViewport"},"LuK0F5fbouudMjFOSR5Pc":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isDirty"},"eADVyF1JKmQZ_j3iVsg41":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedX"},"mwL6JWfuPO0xLydWic9ux":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedY"},"-6AGr8rDa95TNGdh9IXIx":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFloating"},"CFZD5XH8t8UcirtAchgT-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isKinematic"},"AEp98sabdD5iv575QiFLQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isPersistent"},"Wj3hYgwLILug1qQRW5922":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isVideo"},"CmN4txpqiP2hn_a-G5xbi":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#left"},"rtkrBLTyVKJli4k_nkuKX":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#mask"},"BrQdExFdEpbx8GzDnb4qE":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#name"},"NjJtxac18MANUbdbO7X_v":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#offset"},"s4CLD4cXDWI_dmuKlzLmF":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onVisibilityChange"},"qknPZsgDWP9N0ZejD7xeA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#parentApp"},"QcjW6o1OhDO88h_nVtT_H":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#points"},"k5rDv0hrwq4u42d4j0o9w":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pos"},"B0TXGLs0U7eXjlX7OqdxM":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ratio"},"PeqNtgS-KfkYGu1uZ66np":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#repeat"},"wuIHvWeVHyeqh4zqXcFcf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#right"},"iPy8QCzDfgjRchE3VR-BD":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shader"},"FQPCS9TzLdOKaORM9DZR7":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#source"},"4D_CBBmPC18Egyq1IPpEB":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#tint"},"poYdzDs9dnVxul4nzI3Vk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#top"},"a56VHcT49UskGFfx-mEnu":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#type"},"SpJXpowpKkXaI79ExfEsq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateWhenPaused"},"9MfCovIgIA7x-qjqVWZsQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#width"},"wfIwKFIUT6HR3zRQkp5CQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#addAnimation"},"snBvaH2Ru7vH1d29qKImg":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#angleTo"},"EWPbVKMXY-KXs8IzC2jKp":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerOn"},"qlfoqN5or1kbVeKAxJ7NA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#clone"},"fowlg0Yz0ew75Vr7LfB4m":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#constructor"},"DOXYnEg_S_AsFTYQIlG8i":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#contains"},"GfpH4gU_jOsUUVhZnTjaE":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#copy"},"CGv4Yb0vfKF1nO2_586Zo":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#distanceTo"},"_w-2KpFDem4bYKnOKYCkG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#equals"},"Tqh33zj1VGVXcbX_guUd1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flicker"},"o_8UMoB2UA7qd1vm7AQU3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipX"},"5h9qR2xJofgN4MUkwVEWY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipY"},"_tjnWNJVQmzfck-UFUiXK":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getAbsolutePosition"},"69mAOuTfNB-2BvvV-Zt7T":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getBounds"},"X7uR7Zs8zd6BKsCko9AsR":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getCurrentAnimationFrame"},"sGjd4ewDjmCy7Rqf5HDfP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getIndices"},"ci_B1MZ35mn5QXdeqgWJk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getOpacity"},"c_tcX3tZDggjGOX4iI5aj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isConvex"},"j2a78LcrGkVBxEQzv2nXd":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isCurrentAnimation"},"mjzS53D2jv3PdQE-vXUXD":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFinite"},"eFkoyvZihGzcbTka3JDVK":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlickering"},"YBEvK-e2i1tuHU8ZruTQh":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#lookAt"},"3HfmbSS_g62eav4VhiEJ6":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onCollision"},"4eCCalV7Hy42QJmmeiksP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onDestroyEvent"},"gx_9SsbU-dWSw1gTT1a51":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#overlaps"},"iaDyDUDgualQf6WSAjMOI":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pause"},"O9b3hDl5g_hQFkN2z9eXf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#play"},"e0PRWAeMd4_LTZXjTQGE-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#postDraw"},"sagKGpgrZJt-j99NuExHS":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#preDraw"},"-TrT1X8vVDVX0iiocwQIm":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#recalc"},"t_hjA0vfvYFWfqUncEF4c":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#resize"},"gttyTxZu8zQ4lTkcgBnK8":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#reverseAnimation"},"9_m2osPJEGwqJviQgWkyG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#rotate"},"2P0HuTc6mFgot-3zLa3Mc":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scale"},"_YGwnb46hRkXUnzmSdDgd":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scaleV"},"bD8Yf1eFiQfgnk9GnI8dL":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setAnimationFrame"},"7ShTxoGUL7MxgvE1WLKj5":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setCurrentAnimation"},"FKjZFwPEawzQbtAb-ravT":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setOpacity"},"pfGAZy9QQXmtQspN1Bf91":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setRegion"},"vWK-SSE5r2JqBpvp_Tewe":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setShape"},"vRhAD3qchjqwlLREXtu9E":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setVertices"},"jDHvXqXiNAl6RaInPo6kM":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shift"},"WBcsuaQIG3gdiFiUhGTxS":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#to2d"},"jv2DOKx3FR1kqGjJHFH7c":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toIso"},"PmBVyfja49wDuYNoYAIkQ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toPolygon"},"vCD8-7Yo862O7S58vnQB9":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#transform"},"0e9rY9D4CJ7Xsq2KAD6r0":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#translate"},"_z-GSYjDDGY8V0eNSVXsZ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#union"},"pSybH0Jun1CbK6btJtFcv":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateBounds"},"DliU5wTR-qh4U5wc1vwYv":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#draw"},"HotQHv_aDa4-224QrpiSI":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#update"},"Cy3GmMlDNyHoywfXHbvhI":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onAnchorUpdate"},"4inTm5Ncae3UAeFIg9FXP":{"uri":"/melonJS/docs/melonjs/Light2d.html"},"4qu4C2IovENfcp4oPFthp":{"uri":"/melonJS/docs/melonjs/Light2d.html#alpha"},"Rg1Br4NLVRaOgkbcqJPK2":{"uri":"/melonJS/docs/melonjs/Light2d.html#alwaysUpdate"},"wkDDeMPZMyteZQ-ucBD3X":{"uri":"/melonJS/docs/melonjs/Light2d.html#ancestor"},"EdqCJssKW-mZUjxUKNJZA":{"uri":"/melonJS/docs/melonjs/Light2d.html#anchorPoint"},"FMLVFs-3mFuepaFby64z3":{"uri":"/melonJS/docs/melonjs/Light2d.html#autoTransform"},"dfhIr7f6t4WyMOet7Lmds":{"uri":"/melonJS/docs/melonjs/Light2d.html#blendMode"},"xGjerkR30rQ_10aecfq4k":{"uri":"/melonJS/docs/melonjs/Light2d.html#body"},"XwEAzbzIF9cinw1fBVcL3":{"uri":"/melonJS/docs/melonjs/Light2d.html#bottom"},"T-pJ5Ye6zRjHBmVPKzLNl":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerX"},"j555hzh_L6XGvHvMi2PaK":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerY"},"VSn3qmGk_fpv7AM9UiAJI":{"uri":"/melonJS/docs/melonjs/Light2d.html#color"},"uoRv9rQRD6jtK1DmS1GSa":{"uri":"/melonJS/docs/melonjs/Light2d.html#currentTransform"},"fuCvzDrWnnnKW8IXsQIwf":{"uri":"/melonJS/docs/melonjs/Light2d.html#depth"},"DKsbJULjvv7tYQ4JXi6Fp":{"uri":"/melonJS/docs/melonjs/Light2d.html#floating"},"xH_UJ2l82oTmT58XQ0n9S":{"uri":"/melonJS/docs/melonjs/Light2d.html#GUID"},"u3l9Kz5Ps8otdgmR-lr_y":{"uri":"/melonJS/docs/melonjs/Light2d.html#height"},"joJBfyKGrH-ksDpaa_V3p":{"uri":"/melonJS/docs/melonjs/Light2d.html#intensity"},"zmAk92V1MyizqjwbHp3Ou":{"uri":"/melonJS/docs/melonjs/Light2d.html#inViewport"},"NIUhelFUUTMD28Tnye0rW":{"uri":"/melonJS/docs/melonjs/Light2d.html#isDirty"},"KV6hp1AC3CmBQmSO55Aq4":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedX"},"HzuRF64Z65l9gx5PT6AjL":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedY"},"N67DlSFG_O3z4QS12OMM4":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFloating"},"aMqQ-BisJwEgqg7-aXyXm":{"uri":"/melonJS/docs/melonjs/Light2d.html#isKinematic"},"Ft0VmrTS7lgvhwVhMkrjV":{"uri":"/melonJS/docs/melonjs/Light2d.html#isPersistent"},"8SPhJclfEPLbAW998NpBw":{"uri":"/melonJS/docs/melonjs/Light2d.html#left"},"FH6HySoPRUji02FpocgTC":{"uri":"/melonJS/docs/melonjs/Light2d.html#mask"},"y1GBqb1qbbyFLUJnd8xuA":{"uri":"/melonJS/docs/melonjs/Light2d.html#name"},"1XRZ_-_vPW2uwmX4g7xur":{"uri":"/melonJS/docs/melonjs/Light2d.html#onVisibilityChange"},"Uyt1YukBXcyM1OjUPuoNn":{"uri":"/melonJS/docs/melonjs/Light2d.html#parentApp"},"gN8yg8JeuW0KvDI1T2-Kl":{"uri":"/melonJS/docs/melonjs/Light2d.html#points"},"M8okmXjQCt0ucReN5UXcb":{"uri":"/melonJS/docs/melonjs/Light2d.html#pos"},"qPvh8hMAmKWfypRL5mARb":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusX"},"1478O446DCEmQJft0x7SV":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusY"},"P0tFxw9AeH9BGpjsTg5b6":{"uri":"/melonJS/docs/melonjs/Light2d.html#right"},"m7wGzHA3jXE4nctUWZf_I":{"uri":"/melonJS/docs/melonjs/Light2d.html#shader"},"uAf6Z1SXGw5N8wpWRiWCQ":{"uri":"/melonJS/docs/melonjs/Light2d.html#tint"},"Z55Za0fp2uVbepqtRuQ9l":{"uri":"/melonJS/docs/melonjs/Light2d.html#top"},"CXb6Cv3r0NDnB-iC1SlS_":{"uri":"/melonJS/docs/melonjs/Light2d.html#type"},"fKPOwa3m3LkjDcuLBtUo9":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateWhenPaused"},"bMWV-P-nSmJ8oy8S93xoF":{"uri":"/melonJS/docs/melonjs/Light2d.html#width"},"N3FFaFH-nI67pBEyWBFOk":{"uri":"/melonJS/docs/melonjs/Light2d.html#angleTo"},"hzO9Y_c3Uh8QEA7Xz7Iwc":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerOn"},"qr_m_UsXK4Ty1FkVynFGE":{"uri":"/melonJS/docs/melonjs/Light2d.html#clone"},"VlpsFmtiJzhJEfUWe7MFr":{"uri":"/melonJS/docs/melonjs/Light2d.html#constructor"},"xk33iA8Hh_NEiezCcT94B":{"uri":"/melonJS/docs/melonjs/Light2d.html#contains"},"QBw9us4eqGcnpQ-2S1dWa":{"uri":"/melonJS/docs/melonjs/Light2d.html#copy"},"LQsQKVGqixpLma4pbIV22":{"uri":"/melonJS/docs/melonjs/Light2d.html#distanceTo"},"PY8mjMeQ23-WY7woG5NW1":{"uri":"/melonJS/docs/melonjs/Light2d.html#draw"},"ww6oYCv5NJPG5TC_staNY":{"uri":"/melonJS/docs/melonjs/Light2d.html#equals"},"tx7K5pOOjiaYHWQ7VfpKH":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipX"},"pMTpckNH5ye56E-4bqCeV":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipY"},"IJmexYsoGl8Bh_iWBPrP2":{"uri":"/melonJS/docs/melonjs/Light2d.html#getAbsolutePosition"},"570MpRUIKKOzADpaVt0GE":{"uri":"/melonJS/docs/melonjs/Light2d.html#getBounds"},"SyXmIux4Nhcik0V-W0EuQ":{"uri":"/melonJS/docs/melonjs/Light2d.html#getIndices"},"uPV0qtyHgrHyzKBYYP9QJ":{"uri":"/melonJS/docs/melonjs/Light2d.html#getOpacity"},"55z_xYM1Q1VvbRhViXmkV":{"uri":"/melonJS/docs/melonjs/Light2d.html#getVisibleArea"},"HVskP_nfIPidW9JcjUqMF":{"uri":"/melonJS/docs/melonjs/Light2d.html#isConvex"},"4MsUs82-1bo0OzoGiA3Pi":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFinite"},"PGoJ3Aj20TEa9Yw1q80lL":{"uri":"/melonJS/docs/melonjs/Light2d.html#lookAt"},"FjdlY1LNa8ywhSelU1wKz":{"uri":"/melonJS/docs/melonjs/Light2d.html#onCollision"},"Qg0jBcWTWeCjLjUGP_UyQ":{"uri":"/melonJS/docs/melonjs/Light2d.html#onDestroyEvent"},"rFX0U0KdrDvx-UWU88ZF8":{"uri":"/melonJS/docs/melonjs/Light2d.html#overlaps"},"SIm0gHVoY2zPIvaearv2G":{"uri":"/melonJS/docs/melonjs/Light2d.html#postDraw"},"AWFQuqVXKN9_NowdVE8cm":{"uri":"/melonJS/docs/melonjs/Light2d.html#preDraw"},"HHo8cTizm12Ski-cMv3gX":{"uri":"/melonJS/docs/melonjs/Light2d.html#recalc"},"pd6UHItJOiz4Zf32qftLN":{"uri":"/melonJS/docs/melonjs/Light2d.html#resize"},"3RuoNM9F-L-Vo62EaKRMQ":{"uri":"/melonJS/docs/melonjs/Light2d.html#rotate"},"xvM8outDtHTJIZ_V-1zve":{"uri":"/melonJS/docs/melonjs/Light2d.html#scale"},"4BynmzZmjkBkkU_6xfjty":{"uri":"/melonJS/docs/melonjs/Light2d.html#scaleV"},"l3ICzizvBc1lk5lGtbJVW":{"uri":"/melonJS/docs/melonjs/Light2d.html#setOpacity"},"kOlzJ3CgFqq0cC-2Qaxgv":{"uri":"/melonJS/docs/melonjs/Light2d.html#setShape"},"3_rW-F9iIb_4dlshu0YEi":{"uri":"/melonJS/docs/melonjs/Light2d.html#setVertices"},"EzunmvmYyp0QGxZPwoFcD":{"uri":"/melonJS/docs/melonjs/Light2d.html#shift"},"F9iE8Zu43QWaAPm4H8aZF":{"uri":"/melonJS/docs/melonjs/Light2d.html#to2d"},"--Iu14ZN6jeYGQJ5bqUxa":{"uri":"/melonJS/docs/melonjs/Light2d.html#toIso"},"-U_EeCzfHjFx3wvKDXYX1":{"uri":"/melonJS/docs/melonjs/Light2d.html#toPolygon"},"ROINVlgmNp2JVwk7rHIFk":{"uri":"/melonJS/docs/melonjs/Light2d.html#transform"},"iv--HAnnd9aKaQZ1mjwi2":{"uri":"/melonJS/docs/melonjs/Light2d.html#translate"},"b5rp2QxGfheQMpcUis_n4":{"uri":"/melonJS/docs/melonjs/Light2d.html#union"},"aqk3UqI7spqGTg1uX09Z1":{"uri":"/melonJS/docs/melonjs/Light2d.html#update"},"b7qvFJtlMlhcwuBjbaip9":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateBounds"},"Mif5psKm7wyFHHrH5V46U":{"uri":"/melonJS/docs/melonjs/Light2d.html#onAnchorUpdate"},"dhsdsqTmPGzShC-qKvSrK":{"uri":"/melonJS/docs/melonjs/Line.html"},"bEtfRxyqUHl-NcXisNkQy":{"uri":"/melonJS/docs/melonjs/Line.html#points"},"bZ2-bb0ph21qqYIq7TgOP":{"uri":"/melonJS/docs/melonjs/Line.html#pos"},"mKvZod_av1z5K3BqLO_mF":{"uri":"/melonJS/docs/melonjs/Line.html#type"},"LzsUDFf-_WgmkDEFjlNW9":{"uri":"/melonJS/docs/melonjs/Line.html#clone"},"xsyicBSh0Ma6UIu1GgEUx":{"uri":"/melonJS/docs/melonjs/Line.html#constructor"},"MSl6mzCZg0-NssUmteDJH":{"uri":"/melonJS/docs/melonjs/Line.html#contains"},"0cCpP1MJC0Wb3bNNa8sMu":{"uri":"/melonJS/docs/melonjs/Line.html#getBounds"},"WnNjU69-8iz1y_LuJ0f-R":{"uri":"/melonJS/docs/melonjs/Line.html#getIndices"},"whNI1LYk2_-Q2PHIEQCZx":{"uri":"/melonJS/docs/melonjs/Line.html#isConvex"},"AgRHsdV_G3OMSqCkj5g8V":{"uri":"/melonJS/docs/melonjs/Line.html#recalc"},"HkuwTOkgLZ8MD6CxZcufp":{"uri":"/melonJS/docs/melonjs/Line.html#rotate"},"ecqO0SqUfb7lJ9TaiXD14":{"uri":"/melonJS/docs/melonjs/Line.html#scale"},"z-CBo0YIIQYoqwo0pXbPq":{"uri":"/melonJS/docs/melonjs/Line.html#scaleV"},"x58WT1OwuCPpNrXt1v7LK":{"uri":"/melonJS/docs/melonjs/Line.html#setShape"},"31ODYjQZElkbqDxvLSZHT":{"uri":"/melonJS/docs/melonjs/Line.html#setVertices"},"MmFwJOPnDaKDDE8CSHEUJ":{"uri":"/melonJS/docs/melonjs/Line.html#shift"},"1Z7VoCtYKXZtaQidA5WkV":{"uri":"/melonJS/docs/melonjs/Line.html#to2d"},"wE8xdv0jq4w_osimfFFsQ":{"uri":"/melonJS/docs/melonjs/Line.html#toIso"},"WIY9WjGCNcJ-j4oLEtsAG":{"uri":"/melonJS/docs/melonjs/Line.html#transform"},"7sP9-oWNLsDkrt6pmbuzQ":{"uri":"/melonJS/docs/melonjs/Line.html#translate"},"YrJ0yKn7D4t_I1tX7lYFf":{"uri":"/melonJS/docs/melonjs/Line.html#updateBounds"},"PMeGDmpBbWM7jnHctyJw6":{"uri":"/melonJS/docs/melonjs/Matrix2d.html"},"hK3ApG4xDWtwDleKsqXXC":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#tx"},"54FGbYuPfFRP5pA0gb-uR":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#ty"},"mlTGF7gwIllwhVTBwPu-1":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#apply"},"pMaLlOwxMwc98yEa8hNl6":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#applyInverse"},"XXANSpgM-CDJ8p_PvAykd":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#clone"},"wBOz8a0EKTMMAuopPtqvL":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#constructor"},"v2XPj88hDLvVOsqpp-z8p":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#copy"},"JsSrBXnyIW7afOoTZ8WWS":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#equals"},"wVsUB67oR-FP2fr1wLfdk":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#fromMat3d"},"OBIABXBjcXZzsvWdAYb9p":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#identity"},"kzVNrEygvB39CfHRPv20r":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#invert"},"YQxoRQpmsxNwvfqNjOshI":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#isIdentity"},"_2r9loDHuCD3KX_So8RRV":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#multiply"},"DbdqRCdOgyyF6F-GYtV_W":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#rotate"},"HtPxJrewSHSGZgTkwH__z":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scale"},"nx00CKtM-0scsOdx_cE8h":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleV"},"o-q1AT8gJxrjAmVagyN71":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleX"},"sdZmZxdYxAmOk802P-CMO":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleY"},"w6fcnC2lDupxsCMRCazDf":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#setTransform"},"eAuy1dTlHuvf6bV826b6C":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toArray"},"Y1i0HJOMN_YZe1L1F3vld":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toString"},"48FBl8awriUn2NYd9cY7W":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transform"},"s1MoiYNJkCcpS_6eIA6fz":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#translate"},"HM64J951C5Q1UtMMO5IoV":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transpose"},"mT5g4R_7M7_mZ7cItrR9S":{"uri":"/melonJS/docs/melonjs/Matrix3d.html"},"vxj_e1LDw8td01b4MujaQ":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tx"},"79RwJWov0jExGt6OWp1fa":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ty"},"Mfx2cbnVi5IpkCM-ZVN6y":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tz"},"hK3t50unTdCo0sYj_eINu":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#apply"},"3r1JHadBvX6gx7i7p4UR4":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#applyInverse"},"g5fEJiZQzyvzFHAbgGIxj":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#clone"},"v7f35sVDWE0CyM0gHTPqR":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#constructor"},"R0ruOHHZNzdk19Ab6hRwO":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#copy"},"BlA27c5gePV8HxtkQ7tfi":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#equals"},"SdHjJCOXEAx85BB6bY366":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#fromMat2d"},"pmTeyCxJdN1DxSe8gq_4y":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#identity"},"Jcob54okHuVkcHLoZokyM":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#invert"},"DqLDaYySvHiyQsBPYOOXG":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#isIdentity"},"baPMH8l9gd5IWLgstUtB2":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#multiply"},"OVWFAIZfzlcBRt3YEb0Sl":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ortho"},"PNbEgGEnlxInqGM55P3MY":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#rotate"},"HlZXbTYlIl9RdLb8_XcQz":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scale"},"vAzdh0mKTETdItWnQiB2t":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleV"},"b7EtH-j6h0iIL_Fq3IPeS":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleX"},"O6ER7AP1yDjYdKDiRK1va":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleY"},"hgTBTXLi-M2OfkgwDahPv":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#setTransform"},"CMvyR5diVJXww-KNn2vWp":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toArray"},"hhyk2aKrGTYk3Vo4nu6O_":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toString"},"8zYJwLd5ihnMZ9y6akV6d":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#translate"},"BaeZeQ0eXiw8PBnH20FIX":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#transpose"},"_NLdLI69QMOrhQpjvxqVI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html"},"MG0csv51HWUVMdcBNBhrv":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alpha"},"-LT1EtPYOsU_D5F3tmmbz":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alwaysUpdate"},"BF-BGon4_F5noCF9bqyxR":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#ancestor"},"Yrr3Yo_7-8TM-IKrIRe52":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#anchorPoint"},"SWTCEHf1Z5SwmMHIEVmYr":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationpause"},"LPBPDpKRtE28jUX-fUgVZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationspeed"},"93C4MhJkoKemQ8JCtTreh":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#autoTransform"},"7rx-5ewCV8AiPdMdu9CqL":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#blendMode"},"98ATpg4pkzhMtYfXBkMz7":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#body"},"K5DxScJTyiDeDie9fkyzt":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#bottom"},"8E8RcqYhGm8-GAmbWBEu3":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerX"},"SejqbSR9jMlHN61fbMoI6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerY"},"VHjNHSVOERcT651SmUfL9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#currentTransform"},"PpBlDk8SBFlTh6mnng0Rs":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#depth"},"vvG1Qu5Qcn_lbp-Q3Vtfi":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#floating"},"nxySs2JiBNNo-pd41EpB0":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#GUID"},"VfmPpkTGeQQfyIz8PqBJI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#height"},"l3bNiY0XrJGXi7vmeKits":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#inViewport"},"gkqDnhLtaowh8wqHngivU":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isDirty"},"EM8vRqY6xV7N8LtfrlG92":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedX"},"-bOqvZi3RuevFZ2TujXMJ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedY"},"Kw00ZRo4Rgf3oyqdljeIP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFloating"},"HvI8TnKLnbnmZqUMajigw":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isKinematic"},"B9DhZCuF1NeNd1X5qBmnh":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isPersistent"},"BoJ8-kxAkqsQh4JrGrd9n":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isVideo"},"UdD7Cu4o2lYheuFW2O4KA":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#left"},"sb4uTvMIjAz_IiYl9snL4":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#mask"},"YskbkDYLAkOq7qqI1sSEK":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#name"},"PbjYeaMX49R--gOAOLj7U":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#offset"},"H6V37bKhmATRlHz0R1pBb":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onVisibilityChange"},"1y53e7bscfWzzQPP9CB_6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#parentApp"},"5oHRM8XKeOCU5k2UREt6Z":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#points"},"kW-dy1MH2nV-sUqdu2yk1":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pos"},"JHWsxE9L6i35in7xx7kaf":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#right"},"zquV_WHT0wnB9oIeMQluz":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shader"},"heXgfni4OaN1bfl46zP94":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#source"},"_b0lwgvbW4bHVIxAiZ4Rk":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#tint"},"hiLDSCV7Z76i9I1n9Uh3e":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#top"},"Hjm_SKiDoNrABHVtP21mG":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#type"},"EIRBq2TaHNGICFnZFeEe9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateWhenPaused"},"F0zkI4H-czbkTqvfo-gDq":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#width"},"yrHdoQxXeeJRP6uCO-iSD":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#addAnimation"},"nMCA-duxvhonZQ_G6Pw8Y":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#angleTo"},"FUQm8FuOn_9txQDjYFOwK":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerOn"},"vC1qf0arSzarT9zxS-4SC":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#clone"},"ahX7DZYPOXIfboNU8rCyx":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#constructor"},"Kby-TWN-vx45G67MhaMbV":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#contains"},"QYHCsltM9ogSE1OC6IhEa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#copy"},"O-UsopyPL7lmwOnJIjr-u":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#distanceTo"},"U48Z-T0K3VYBrv3GliKhY":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#draw"},"TOzfEYX-Dz3XjpWM6sbgt":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#equals"},"fEggGVoorgUZ8MZFlG6nW":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flicker"},"R3nEk3gmATKCYnceqDOQU":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipX"},"_netXC8Mlvv3U2y7UrRvp":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipY"},"lBK0u5uW6xFnc4o0dh_yi":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getAbsolutePosition"},"zEvnhwXwYHeeA6Ot-0N7j":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getBounds"},"os3v6op_ObCkxSLdtpX7S":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getCurrentAnimationFrame"},"AVGZ8ohxzSgOwQN4LG0an":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getIndices"},"J3tXCHWn21eGGOV-R9XuB":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getOpacity"},"0IhY7XHuyKktg-qo-tRvv":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isConvex"},"q1iGvBMJsnSCV-pv5w6pa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isCurrentAnimation"},"VcGtSW6UCSLRnloJ3YdVo":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFinite"},"H0XwqsFI8sIDXKcYt7e5K":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlickering"},"AQi8LIOlg2MHy7SUk1Drl":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#lookAt"},"jJIjfz3Qn-ElU1JhXfA_D":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onCollision"},"fSZlfJlckyKrF177Nj5r3":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onDestroyEvent"},"vBDftxqY7uytiI7ioGRVI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#overlaps"},"GMrsOG3SmIVswqr5mqT_F":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pause"},"Eajm_t_ofsS_oTCdQlrhh":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#play"},"D64pvf1_ulO0PB1MgeCNv":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#postDraw"},"7X18fTPCdzljQiRr4p93i":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#preDraw"},"nxPKb_LshqzuMFBYQiu3x":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#recalc"},"_fg1XS4F5Xq2-OeRltz0f":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#resize"},"_-QDdsB5bz2J_zFTjfPF1":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#reverseAnimation"},"p6biYahVEvpfnilSLNNOP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#rotate"},"JbWs9yBwAyjVtQU9a-pBI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scale"},"lAwz1cHA-KOJfD5OobrgB":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scaleV"},"66d1TqaTcgd1_11cp3C8G":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setAnimationFrame"},"DBczmHSToP7_b1I8haZU9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setCurrentAnimation"},"vXeLYoQAHGuUQ0_qfbb2Q":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setOpacity"},"AAuU7l-3ewC_PMalsjiWV":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setRegion"},"lUopXPrhUOpGWVMCyFSTg":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setShape"},"MDaRWq4ctzUSiqsLWAxeB":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setVertices"},"OvNBvFIs3kXO0NUaBCPod":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shift"},"huKF09CiBnhdRglJ9bbBE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#to2d"},"N0uyZ0I5B-j-NIwVv5V8H":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toIso"},"TK-VEDuKjlSFHc7aGru-f":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toPolygon"},"VVdkmLBPw00_h_3gnNWz5":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#transform"},"QqK75pxHMPzUwqRmcQp6S":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#translate"},"BROo9mpgLuoHECoowhqeU":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#union"},"pxGO0j3No6jkEdtLqArJH":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateBounds"},"-PtxoXQ-1ecdrJpHWvpda":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#update"},"RlGAdStbQ01xwut8QjHJa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onAnchorUpdate"},"017ivb8TcMu2YG8LaPak3":{"uri":"/melonJS/docs/melonjs/ObjectPool.html"},"cWvrHOmjwqou9vtmgWefl":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#exists"},"bZK9ehTXfNq9RrojzkEBs":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#getInstanceCount"},"FAAwMwdIWZYkZMTcxK2FL":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#poolable"},"Z-rHDYzyeEFFM2fFCTBT1":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#pull"},"nZGObxMOdCMrmmk5n7NTV":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#purge"},"Uu4xzhtnKtTPO4NBH4dP4":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#push"},"aRR5TzAXeiUWl7dK0etg4":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#register"},"r4PrAW79-Cj5gKHaQO0E3":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html"},"bzc2PDH15J02TjjNeeoMI":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#x"},"lPCKrLwAJQ7MnXdddBwf4":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#y"},"hwWXekIFtw6GcJdsuvIe6":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#abs"},"fUgkSlWhN7341y0zjYct1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#add"},"s5QrK4ivLPKeFH-JJO8sp":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#angle"},"LaYDwUtLEwzSgRGi0Jxpd":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceil"},"gkw4nCsLcoLpMUPmQZrx1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceilSelf"},"5ngmX9EjwCKZIPV9h9AlA":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clamp"},"GkvGNGVmaIOqag4Zbvzdq":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clampSelf"},"YdBZWDMArmpT_mlHzcBxV":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clone"},"3AkKCtPUGdrlGFGkF0sJy":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#constructor"},"ZlKJYNFo0scu6u1jngErG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#copy"},"kCtD8q1y2-5AfqRv6KkcK":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#cross"},"ap3cT-lywKP-2uiymJJEC":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#distance"},"BdfsF307gDH2hzzUHp20a":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#div"},"2hIPF0-ixwbkPE1kx9iJ1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#dot"},"XEvvWIcPW8anTeoklJteb":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#equals"},"2CTxe5fimCEDpX-4nCvVt":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floor"},"RtOE3w_ixM06jz4mfn1_8":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floorSelf"},"mfZr2bUB5UPoLS4WYCxLs":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length"},"8RlshNLq-sklRb6Rsppu9":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length2"},"orwimd1gkHEQJ68mBUvRk":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#lerp"},"rKopkHFtW1st5xHl1EiH2":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#maxV"},"QwFLYzXDT8fFlaDaDDgda":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#minV"},"FDtwlops8czNGavrCHWYb":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#moveTowards"},"5EXGcbHkDz4saeYbz560x":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negate"},"kt2NHBiO-LIUdVvDcHcZ2":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negateSelf"},"xCHSRpdWI4XrVP6b8epN7":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#normalize"},"3K3YVFetdl-wkAZuR6MP8":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#perp"},"5cNP9U43OY86k__wAGLEk":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#project"},"2tDe960iSdTG1gRbsMR-c":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#projectN"},"1gFSipsc3NH432NTVAdNG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#rotate"},"TCrDbRx0nzqiOD9lpsm8L":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scale"},"FeHGRM8r24_GUqrIpFUOf":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scaleV"},"rUPee0DrYIwhJccbX0qAk":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#set"},"8GwOZOwZbAv_dXzge1erH":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setCallback"},"bNGlbh4BNAwiAZD1txqCp":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setMuted"},"pRrNliJuDl5TFEzl-Ry_w":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setV"},"xCViOPBa56xo0nabB1Lp_":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setZero"},"vH63hqTcazEB1l-fqgHj7":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#sub"},"qEoWf2DRydXUxMI_f1BL0":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#to2d"},"Ty7YrvDCc4vn5tNwEL2gP":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toIso"},"ZOUrB1wJrnaDU7CyjfsSf":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toString"},"us26AvnVcLipZnvBKnvvm":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toVector2d"},"b9LN9-eipBXxRCWDGWJpn":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html"},"JquN7BY5AX2TVS5j8e5aW":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#x"},"i83XxQ2p66q9j9MMlB6ht":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#y"},"6Nuej16t8aJd4o4EFVldn":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#z"},"2qgjgT-5_hk7A0sOZV_Xa":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#abs"},"o9ImUEkPJhuFzyZUVIu_I":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#add"},"irrAQ5RE8T8ANfaQ-bfpA":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#angle"},"unlM2FIxSZ4jFIVsLa7h0":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceil"},"mrF-5O4GY7x46D8jNhD-C":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceilSelf"},"e1_UoGSQ8z4S1UtlfMtBj":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clamp"},"0wj_te_6V43vE7N_cGdXH":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clampSelf"},"BP9HYAWdLWO62rKTCPW-x":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clone"},"WeL8XVZL9zDxCnHa4DFNt":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#constructor"},"fVqOnAuBei60cmPo70rsN":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#copy"},"1QLsjfNwLUp1AoGqSB6kb":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#cross"},"mLLdCbRKI0kFD0LX7zjIF":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#distance"},"h3YINYxWYMPV0xzKHV2Dw":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#div"},"gEXYIl3BlVqJG4oqg413s":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#dot"},"iDzxY6mhjn5EZuVakmrNh":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#equals"},"ttv5Y-o8idq3Vla4QiwSL":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floor"},"mRrZcDjhDxgnU3-liNTFl":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floorSelf"},"OPob9R-242b8vpDekAqta":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length"},"7r5dwzOttbtgu9RrPVD3k":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length2"},"Cb2tsSjqJNKRNNWbUYi-g":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#lerp"},"NDpJIJJS3SSeYbQWfdhMZ":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#maxV"},"3cqb6Txo3GIkO2XvFSeTa":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#minV"},"RSD4aj_TEtKcJ4M1cEVAT":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#moveTowards"},"VRWKCeXhILYm036R3rxWs":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negate"},"YINWoa7UcCkpbPsKjVI4O":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negateSelf"},"_1auX6lAbC2rZsyRpAr21":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#normalize"},"jeVvOQTpwu8-eZSZdhN67":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#perp"},"LH8hkKo4b2v-y0DftJYx-":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#project"},"q96YJPALrTmV7XGXmP0So":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#projectN"},"Y2OW9Yljtni4KGxdjzUbY":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#rotate"},"DahXomwL27Ic2qHYgpTzp":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scale"},"3gUr-1z26P4abYbuvND8j":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scaleV"},"0mPH048-dViSZo_TqXRh6":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#set"},"U7h6HgtnPRgqr4ANtd3Y4":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setCallback"},"CTatNJht7vu3bbJwT8i8e":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setMuted"},"4s9jd9ky_Jx2DkJszJyiy":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setV"},"WxDHFZs2c4Bj_S8Ad6nbe":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setZero"},"BRR4BvgamHcdtYIGtfjFi":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#sub"},"znY0euNDm-FIjj4zLxwFI":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#to2d"},"_LrB_sS3h9RslfDkTPlll":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toIso"},"pGLmivxXCehdpsAUBUjQP":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toString"},"togb_3-8Lak7nI8ypclUt":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toVector3d"},"e5VXwRwa3cUtSV83j2A_t":{"uri":"/melonJS/docs/melonjs/Particle.html"},"r70CgghFxQGt6Gc28BU9l":{"uri":"/melonJS/docs/melonjs/Particle.html#alpha"},"HXQhocA1OJEWGJ5gzV3fy":{"uri":"/melonJS/docs/melonjs/Particle.html#alwaysUpdate"},"2g9iS2mHk0TSy61aiKISC":{"uri":"/melonJS/docs/melonjs/Particle.html#ancestor"},"qhu036wcUxyYCFlLHr-9A":{"uri":"/melonJS/docs/melonjs/Particle.html#anchorPoint"},"GYo6cnDbyJ-x6b2yySj0-":{"uri":"/melonJS/docs/melonjs/Particle.html#autoTransform"},"AXHtZXyvPJGX_W86eMZr6":{"uri":"/melonJS/docs/melonjs/Particle.html#blendMode"},"AUZs_yerpyEALPAfjvNdP":{"uri":"/melonJS/docs/melonjs/Particle.html#body"},"BxUvTBDvCLN4gKoTdFrnR":{"uri":"/melonJS/docs/melonjs/Particle.html#bottom"},"hpsdklYqCCZ4RZUdQQEA0":{"uri":"/melonJS/docs/melonjs/Particle.html#centerX"},"zd2rGAwrPgFmw5-15cVZP":{"uri":"/melonJS/docs/melonjs/Particle.html#centerY"},"5LmKskyCU6rRKBDy_Niqg":{"uri":"/melonJS/docs/melonjs/Particle.html#currentTransform"},"oil4XQ_so46WGLFzXo6A5":{"uri":"/melonJS/docs/melonjs/Particle.html#depth"},"LxVim-XaTyCxk3A_Cs_aa":{"uri":"/melonJS/docs/melonjs/Particle.html#floating"},"PXwrFZOil_LfCtEv1pLDy":{"uri":"/melonJS/docs/melonjs/Particle.html#GUID"},"qwNhE9tEi851jGNtm2BN5":{"uri":"/melonJS/docs/melonjs/Particle.html#height"},"Aql9CgLQBc4O-8WX7ARJp":{"uri":"/melonJS/docs/melonjs/Particle.html#inViewport"},"nB1JLOxc5lHfR2Icx2U6l":{"uri":"/melonJS/docs/melonjs/Particle.html#isDirty"},"nxfyB6R4MoV_mUkU7O-6r":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedX"},"N4o7cLxhzCKi1si93idmd":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedY"},"NuPXqh112z6P-Z9B6T7eR":{"uri":"/melonJS/docs/melonjs/Particle.html#isFloating"},"wa_kPgKmi3IKBWBLA2YRv":{"uri":"/melonJS/docs/melonjs/Particle.html#isKinematic"},"tBlCXrsvDnizXVsUQLCiB":{"uri":"/melonJS/docs/melonjs/Particle.html#isPersistent"},"V0mrkrQetHyt_1D16N2ks":{"uri":"/melonJS/docs/melonjs/Particle.html#left"},"bquQ6eNS9K0taLP9HAfUg":{"uri":"/melonJS/docs/melonjs/Particle.html#mask"},"jo8DFebTjqTEzrIhVr2hM":{"uri":"/melonJS/docs/melonjs/Particle.html#name"},"2hI0eVStJW6o1ItF7vExl":{"uri":"/melonJS/docs/melonjs/Particle.html#onVisibilityChange"},"GES3jGK5cdeyz58UuG_l3":{"uri":"/melonJS/docs/melonjs/Particle.html#parentApp"},"MArf_VeUn-EtwlZYvBj_w":{"uri":"/melonJS/docs/melonjs/Particle.html#points"},"w7yXB1nY1r163ZdtikR3q":{"uri":"/melonJS/docs/melonjs/Particle.html#pos"},"d3TEjVBorpFjGr2y3PiN0":{"uri":"/melonJS/docs/melonjs/Particle.html#right"},"qOevfcyHsIsjOUCZ3AKfZ":{"uri":"/melonJS/docs/melonjs/Particle.html#shader"},"H2vaF0jn5fBkmVwhb2fDb":{"uri":"/melonJS/docs/melonjs/Particle.html#tint"},"_e-99KTom5ohLbGyIUbvZ":{"uri":"/melonJS/docs/melonjs/Particle.html#top"},"q7-4lOLKeaB4JWOBGeqFl":{"uri":"/melonJS/docs/melonjs/Particle.html#type"},"J9QOZJ8epqPydbUordYiF":{"uri":"/melonJS/docs/melonjs/Particle.html#updateWhenPaused"},"7_VFyKUlzx_LG8I407TaW":{"uri":"/melonJS/docs/melonjs/Particle.html#width"},"yh4D7dxALkLp-NEei50oD":{"uri":"/melonJS/docs/melonjs/Particle.html#angleTo"},"ktLZ4J80VL46epEZbtlLs":{"uri":"/melonJS/docs/melonjs/Particle.html#centerOn"},"fszUC-ex-m0_iI2od47gD":{"uri":"/melonJS/docs/melonjs/Particle.html#clone"},"xzY6u4d0VHJiYhWaDENZj":{"uri":"/melonJS/docs/melonjs/Particle.html#constructor"},"jaKaiX3nQlrRokD_3gZ8X":{"uri":"/melonJS/docs/melonjs/Particle.html#contains"},"kEFGv1j0Zz6C44MeiQ3T0":{"uri":"/melonJS/docs/melonjs/Particle.html#copy"},"HTh4zducski0amurgfXt1":{"uri":"/melonJS/docs/melonjs/Particle.html#distanceTo"},"LB3Jrq_k5P1kN2x2SiTMm":{"uri":"/melonJS/docs/melonjs/Particle.html#draw"},"YEguRVhT3dVTDzm6j-p_i":{"uri":"/melonJS/docs/melonjs/Particle.html#equals"},"THR5sIk16as-qbVeDQqeg":{"uri":"/melonJS/docs/melonjs/Particle.html#flipX"},"SNwKGUIqkGgGYtsXF6tjp":{"uri":"/melonJS/docs/melonjs/Particle.html#flipY"},"s1NIdFGFtfDO4asQgfbXd":{"uri":"/melonJS/docs/melonjs/Particle.html#getAbsolutePosition"},"VGL8VWTkmFarHUneMv5RY":{"uri":"/melonJS/docs/melonjs/Particle.html#getBounds"},"WigFfpDQZE2bjdiY9GUTj":{"uri":"/melonJS/docs/melonjs/Particle.html#getIndices"},"Uh3ambwHbqSiPr5eAK2-h":{"uri":"/melonJS/docs/melonjs/Particle.html#getOpacity"},"ZuV_1aCigupahFpzU_-N9":{"uri":"/melonJS/docs/melonjs/Particle.html#isConvex"},"kB39jeqppBSI5LHHKdFRS":{"uri":"/melonJS/docs/melonjs/Particle.html#isFinite"},"pobVb-98KewQ5ALZsAnLX":{"uri":"/melonJS/docs/melonjs/Particle.html#lookAt"},"sMXKJJMfIRD2TmXeFFpia":{"uri":"/melonJS/docs/melonjs/Particle.html#onCollision"},"eUkTPlwjIVpS6I2MQlW1P":{"uri":"/melonJS/docs/melonjs/Particle.html#onDestroyEvent"},"tff8dZeDRj-B5Q9P0PgDE":{"uri":"/melonJS/docs/melonjs/Particle.html#overlaps"},"Uoy1hrD13pJarQttwjPWQ":{"uri":"/melonJS/docs/melonjs/Particle.html#postDraw"},"OiU_3WU7LHsVJRP-14Its":{"uri":"/melonJS/docs/melonjs/Particle.html#preDraw"},"Kl6UnSYD0GurGK5Hbo7rH":{"uri":"/melonJS/docs/melonjs/Particle.html#recalc"},"jZD6haT8UI3SXXL-bkOLE":{"uri":"/melonJS/docs/melonjs/Particle.html#resize"},"aAYscHQs8LK5GZo5ibTg2":{"uri":"/melonJS/docs/melonjs/Particle.html#rotate"},"a_sOyEAx_qkz7JJi1R8fH":{"uri":"/melonJS/docs/melonjs/Particle.html#scale"},"zAp3nHKW68E6OScFi-lf0":{"uri":"/melonJS/docs/melonjs/Particle.html#scaleV"},"25blONrREyhRSq-SwSyaC":{"uri":"/melonJS/docs/melonjs/Particle.html#setOpacity"},"HchTXuMUpfmDzo9utuI4n":{"uri":"/melonJS/docs/melonjs/Particle.html#setShape"},"yf3dxD9EebJaI_8bkenUR":{"uri":"/melonJS/docs/melonjs/Particle.html#setVertices"},"xfVM73Xb5i8wk1lrDmcUx":{"uri":"/melonJS/docs/melonjs/Particle.html#shift"},"sGq-fArGVYyjtaLUjQWxX":{"uri":"/melonJS/docs/melonjs/Particle.html#to2d"},"SDf3BnLC1LmYFvNT1PUHm":{"uri":"/melonJS/docs/melonjs/Particle.html#toIso"},"oCwCvoZ5VSSgjbqc4qT_H":{"uri":"/melonJS/docs/melonjs/Particle.html#toPolygon"},"Ztem6YHEuXxxoH-s4VXzu":{"uri":"/melonJS/docs/melonjs/Particle.html#transform"},"Th3n9PIyjXluui7oW2G__":{"uri":"/melonJS/docs/melonjs/Particle.html#translate"},"AZsjIgA93tEj7iN7FM7d8":{"uri":"/melonJS/docs/melonjs/Particle.html#union"},"eKHLCNMndZc_vYZI909vb":{"uri":"/melonJS/docs/melonjs/Particle.html#update"},"cprSuqxgCyeAlUwQa-tET":{"uri":"/melonJS/docs/melonjs/Particle.html#updateBounds"},"eFveIz9F5cifJ9BDFK4QD":{"uri":"/melonJS/docs/melonjs/Particle.html#onAnchorUpdate"},"2125hEpvJi8QRhMRU-vNC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html"},"brxeAzZ7_nNH3tLlBLvpV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alpha"},"9LSzgBai5K5OF1Bw8ncLx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alwaysUpdate"},"qexoBXjg8uIMwj7hgUHfS":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#ancestor"},"AFCRRFZHxO5dazs6cXAlh":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#anchorPoint"},"9VMd_6ka8hmMkdV_5pLI6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoDepth"},"EjQIjVi82Erwjc3o4xYkp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoSort"},"48oCjdrFGZyT3BASgZ43U":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoTransform"},"C7RnD4XX8AcQq42nK2HNp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#backgroundColor"},"EXhOvQYVnyY4Em0NzcxSp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#blendMode"},"m4GoTbfW2nB7GIEZodplN":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#body"},"nfGdRBWtulfFIfaGp-8OZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#bottom"},"_Z1q-VkJ7NEvXAlUTUJBR":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerX"},"5_Ewah3FJnleIJo-3qMtG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerY"},"iNrZzWSNcIw2utXkYmvIL":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clipping"},"4uu4kzeADJwiHqd5KwcmT":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#currentTransform"},"ZN2gndwFbtoBb6ZvV91YZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#depth"},"uRJo4ABsI8m5h-Z72jNMi":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#enableChildBoundsUpdate"},"ev2iQz2EHNuHYRPzJOMZt":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#floating"},"CPiDSW6UZO5pdSTGSWIqC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#GUID"},"LBXt_J7hWpglucrMLQuX9":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#height"},"ZrdcGpAgIRnxeCu6agYAQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#inViewport"},"nsRCOWTXv2x1_1cFS8XkC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isDirty"},"knS6Q8UkJZrl3_L_EPvBv":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedX"},"BIuetoUo-QCOgyLr6y-cA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedY"},"e2281UGrJKHSNG0OBLNGI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFloating"},"wyWHtk5rCLLNu22MWFnf7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isKinematic"},"Y3clSLcowCdbgbIydkq-C":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isPersistent"},"NaTLZWWbU52R1AOqzIrBk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#left"},"Pqwdw-K3Z0WepEODBINs4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#mask"},"zG2TfprzSJ6kWdbPvycxu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#name"},"XdupqAJ3pAPatpHNETmtd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onVisibilityChange"},"GZJpSTysMg1KhNx7soJrF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#parentApp"},"QDO6jqNG9VawMgQE41_kd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#points"},"_r4RS0wp32Bgg3LC23ENv":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#pos"},"F3M8SO5beA_9wiOHxhbFZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#right"},"yglSqOsZ37CiMmv9NDvbq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#root"},"7PzTxEgm3U9siC3O7oA0m":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#settings"},"ppkrMs7ziMLp_MnZfOQFX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shader"},"oyWiu3wSSRINh7vhLgVzp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sortOn"},"r-iDhAmIAeGCnw33bO-vC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#tint"},"O9-4HcJNqRDXrk0Ep6-ZQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#top"},"wx5fFZcJx0WgnouxFyydu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#type"},"EuVM2hb1QJwGXTz7zdO0e":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateWhenPaused"},"a53jKG9Omgxaa-_VWmSWM":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#width"},"olKZ09UHQTpCxGKNUcK-W":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChild"},"rasE0P41mI8dlstSpIK5y":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChildAt"},"XSBLJzESnYOET6RRcbJZr":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#angleTo"},"a6rRdi06vF0GqefNeq3Xz":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#burstParticles"},"3Y5PXXiVeQ0DplL-Pb94D":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerOn"},"gDniCHDe_-mSz3Q0_Dmcy":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clone"},"MZ_4b7r0h74VLkTwYFhpW":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#constructor"},"5G1gz1ykz6CzS3W3eGrvh":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#contains"},"-ecOAgcRqYFZtKqi2Yf8K":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#copy"},"1rS6bnzELa7-siZ55NBAF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#distanceTo"},"eHqxfzqK9G_uNtjpy25S_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#draw"},"RDpjmKEj70QRFlFDsmYki":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#equals"},"XOP2G0RKhq1o6ZOehMrNq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipX"},"W33raaFHK-1AwTPXbOT9R":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipY"},"Ll3hKWV5gv88PCQlMq7Vn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#forEach"},"39HiUORRhQTvHQK6Of6q0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getAbsolutePosition"},"oFhzSd9fipFadpYz8UZSN":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getBounds"},"TODcHA-blFfgAA0roQrEU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildAt"},"x2mLkTyxTyKol2KHIM7oq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByGUID"},"xasT4SOjUnHI0HZuhoiNq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByName"},"T_coIDSw1qTlBosHPeSq_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByProp"},"FBry1ekv_ecyZ6UgBVXhy":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByType"},"k8bSgeFxja3hegdfoAkuF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildIndex"},"eW1HTtIlKqMTJN74U0eQP":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildren"},"Hob7rZgGnhFGdOKZSfEgb":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getIndices"},"5EQAv3H9G3fBKr2zsNYUY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getNextChild"},"YXBD9eIlHKG0OBkIHdwmw":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getOpacity"},"4KVxY00gYzuBTrtI692LY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointX"},"rm8INpkGYetXZmSpBKlCJ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointY"},"S1cdWwOS6LIIQDjyoyUOY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRootAncestor"},"IUPPIz4Fa5_ofaa-NWC4L":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#hasChild"},"wwvUHrEevjpY58A8DLRoU":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isAttachedToRoot"},"31xRcCSMuQlONdh5vUXbg":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isConvex"},"Y77VVNXoFCGXH5kt4jcdi":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFinite"},"-KGkuFJ7EOvAM1LAFS_0l":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isRunning"},"bR8tPcXXuoQCjFnRdiOzA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#lookAt"},"Ynn3_GYi72R9mbgOHW9_W":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveDown"},"U89Jzb_r6yoXZKrb-vz6h":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToBottom"},"ZahkidH6i2sp8Lz5ZuoC3":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToTop"},"AmPI-KphB6kYrW-_PmKaV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveUp"},"KWmNyiPHLQfGt4Rl-LQL4":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onChildChange"},"TJKCLg6PS5zwJK3ZlPF0k":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onCollision"},"W8Hg7wjVHzNvqK5VwUQLX":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onDestroyEvent"},"yUEDQvXObhGa1ocXy5kFx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#overlaps"},"SyAmqFt71of7DKfh7wxsG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#postDraw"},"H5S_qIgfDTVbyRN0--cQx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#preDraw"},"Zd8G6RLrU8LVieMqd6BYT":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#recalc"},"fNHYuQqLMx8_S_HFQFU3l":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChild"},"Qu9ySsI80dqwySbIpAuy0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChildNow"},"TJNg4bmZOajOq3T73tMPR":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#reset"},"IyOXetWld8x0fbBEUfP4n":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#resize"},"jbcq2U66QuKYWT6mVj_Fs":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#rotate"},"L34hq60pWkFor41YBlV7-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scale"},"hgU72JLrBJXlQ3ECiVEyd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scaleV"},"TGGNyeRnxAeXnPAJZfzXH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setChildsProperty"},"QGpUC9g6Yj0jg_xyv3OY0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setOpacity"},"bxmFdLcgoOP3Ztk7-1od7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setShape"},"r3uC97J5SJHHsm8snggGQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setVertices"},"3JDJ9c1EiryWry4kY0xmT":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shift"},"4pYKjeyU4l5oSH1gcGxP0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sort"},"HvP4MLiVk39sLOBfwE-eg":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#stopStream"},"6BRl5J6OAxjef-4f_9g4c":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#streamParticles"},"AV1TDxKJVJ7z06O5yaWuP":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#swapChildren"},"pc--YO3zNwOfXqSjI5nRd":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#to2d"},"PehOc11_fwPuEwRRJ87sO":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toIso"},"1uE5XLleb5v5gFr10F-ER":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toPolygon"},"oYQ5fiqrogRuK1FZN20SM":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#transform"},"04l5pA2SS55jPlKPE0vgF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#translate"},"-BYDUqX1lW4yzPTplxFl-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#union"},"gIXID6qXoyWDii861mtrx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateBounds"},"emqbdlzIBFg6cG_Cxhda8":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#update"},"rGzYyn5taICNEoYxjmK-N":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onAnchorUpdate"},"Ijpf_r_h4V9pz7Xu4FPTU":{"uri":"/melonJS/docs/melonjs/Path2D.html"},"DmASK0hqa8vKzvWqH5C1t":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcResolution"},"6s2jq2T4IbhmG1RbQhO7C":{"uri":"/melonJS/docs/melonjs/Path2D.html#points"},"6909AM3kw6RKKzMBtw9LZ":{"uri":"/melonJS/docs/melonjs/Path2D.html#arc"},"Jyp7n7oOXivmr6x6s_Xcq":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcTo"},"syEYqDxW7c4mv37sXoDuh":{"uri":"/melonJS/docs/melonjs/Path2D.html#beginPath"},"huzoIGIHU601rxFiCBVBk":{"uri":"/melonJS/docs/melonjs/Path2D.html#bezierCurveTo"},"PMyBm6JC0MFf0Kor04pZg":{"uri":"/melonJS/docs/melonjs/Path2D.html#closePath"},"Ak5MYRcZXjeFzKvJ_vya5":{"uri":"/melonJS/docs/melonjs/Path2D.html#ellipse"},"c5FMLHBtBGa7IFRYejIEJ":{"uri":"/melonJS/docs/melonjs/Path2D.html#lineTo"},"FNhVnPZY0aVU0kf0ERpkW":{"uri":"/melonJS/docs/melonjs/Path2D.html#moveTo"},"SaPAWC1G7HpYQWKu71UV7":{"uri":"/melonJS/docs/melonjs/Path2D.html#parseSVGPath"},"-YlX3wD8qKqxPOF0BvgF9":{"uri":"/melonJS/docs/melonjs/Path2D.html#quadraticCurveTo"},"ksNyrxg7MDkKaF1QbbchQ":{"uri":"/melonJS/docs/melonjs/Path2D.html#rect"},"Nk786zy1LxYIigri2cCJb":{"uri":"/melonJS/docs/melonjs/Path2D.html#roundRect"},"SSMjEBPAC5YglgsNNtbmh":{"uri":"/melonJS/docs/melonjs/Path2D.html#triangulatePath"},"UplYXAFD7lvheLuVhTMBY":{"uri":"/melonJS/docs/melonjs/Point.html"},"HfI29nvmeYrG14nRhudHg":{"uri":"/melonJS/docs/melonjs/Point.html#type"},"hReMW1sPR1JlNseVbpNuS":{"uri":"/melonJS/docs/melonjs/Point.html#x"},"_3gez8zwldAocAZ8MBZjI":{"uri":"/melonJS/docs/melonjs/Point.html#y"},"GIsDNU2mNhYMEleNWDyYi":{"uri":"/melonJS/docs/melonjs/Point.html#clone"},"iSUVCBYLeBuME0G6d54Y_":{"uri":"/melonJS/docs/melonjs/Point.html#equals"},"IwuchjnoAy24h6UHifzF5":{"uri":"/melonJS/docs/melonjs/Point.html#set"},"MSthBL5V_orLqz0E40Cix":{"uri":"/melonJS/docs/melonjs/Pointer.html"},"0SmPwyFv7FCs9XGDJ10YB":{"uri":"/melonJS/docs/melonjs/Pointer.html#bottom"},"D1Pc1pzr6ltM59OvC1XxW":{"uri":"/melonJS/docs/melonjs/Pointer.html#button"},"6elUOfK0-sXjprF8ECwbs":{"uri":"/melonJS/docs/melonjs/Pointer.html#center"},"0zkzN8kimFC35UxWLEmZ-":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerX"},"yDdGR1qdKzAf8DCB0KjNu":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerY"},"3cBLRT94TfRwVbb7WaRN9":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientX"},"O6pWfJrqAd4mvd5OQ1Vm5":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientY"},"Zvit8efinTi0yhftXe9zw":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaMode"},"5rEamx3U-r0Ub9ps1WDhG":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaX"},"UpkCQCndYkuPxuJZmRzXt":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaY"},"GqBDQfwYMoln2UoKJ9HnD":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaZ"},"gS4Us-AAZ-Hv755yriUNG":{"uri":"/melonJS/docs/melonjs/Pointer.html#event"},"Ctx2ZoATXwAXuxGVQa1h5":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalX"},"swgC2LEFfcpxjt7YWXqOL":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalY"},"2yDrPDGo1kOyeBrt8LFlg":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenX"},"EpXO2x3VmOZ3fFPHhSVet":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenY"},"aiJyRAN0Fefwfj_XCFSKY":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldX"},"2sm5YZfufT7GE0s570S95":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldY"},"du6FTmU-4yPSurFDaEYGL":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameX"},"8DVqFek5zdGOr2qsvsXzO":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameY"},"E5mfO1CVmX_MBElIVi8Pn":{"uri":"/melonJS/docs/melonjs/Pointer.html#height"},"p98XEt-qTail_GB4M7VxJ":{"uri":"/melonJS/docs/melonjs/Pointer.html#isNormalized"},"b0kKmcYb-4Epa77Dlp6Ye":{"uri":"/melonJS/docs/melonjs/Pointer.html#isPrimary"},"dj00vw640AG70qzkguOWE":{"uri":"/melonJS/docs/melonjs/Pointer.html#left"},"AEqoFBlxzeaYF53LqjE0S":{"uri":"/melonJS/docs/melonjs/Pointer.html#LEFT_"},"zXjiAVV5DNZWjEDYOtBnA":{"uri":"/melonJS/docs/melonjs/Pointer.html#locked"},"XyUgzzqCh1bslm75t1wTj":{"uri":"/melonJS/docs/melonjs/Pointer.html#MIDDLE"},"TSE8QkyJxrxGxpvdeKW8h":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementX"},"Bx6VmUuEhbAjYx48kLaTr":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementY"},"GLc-bXpTMzb3h3rB0lN8j":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageX"},"kp2zVqwbEtNy21ffi-XSY":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageY"},"Z9HoHsMauiYE9jqSZPPGN":{"uri":"/melonJS/docs/melonjs/Pointer.html#pointerId"},"YWrmryKZCmkrO8LaG143F":{"uri":"/melonJS/docs/melonjs/Pointer.html#right"},"5JhzrV2epArz4Cg6sLsWj":{"uri":"/melonJS/docs/melonjs/Pointer.html#RIGHT_"},"WK11kbmgCHJKycDgSsMJL":{"uri":"/melonJS/docs/melonjs/Pointer.html#top"},"RYLZjnPbeQ0HGIwPrx4hQ":{"uri":"/melonJS/docs/melonjs/Pointer.html#type"},"n5fFl7XCe7gv2LThzru5h":{"uri":"/melonJS/docs/melonjs/Pointer.html#width"},"tG39ydNPZcX-RfTv0Zl99":{"uri":"/melonJS/docs/melonjs/Pointer.html#x"},"kPcH9MyMz6X8-svsZMERD":{"uri":"/melonJS/docs/melonjs/Pointer.html#y"},"yMh23Z_LE1IgbdDg4ib-a":{"uri":"/melonJS/docs/melonjs/Pointer.html#add"},"Jkx0asSe71mXq7CcPkQeG":{"uri":"/melonJS/docs/melonjs/Pointer.html#addBounds"},"Ryt4aK658NR5L6uJcYmQP":{"uri":"/melonJS/docs/melonjs/Pointer.html#addFrame"},"eb-G6YZgEi-6geLr430xB":{"uri":"/melonJS/docs/melonjs/Pointer.html#addPoint"},"bnHFSNEYoFleG-KjC-bXX":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerOn"},"iM_-Q1PTIJvApCpXiJI-b":{"uri":"/melonJS/docs/melonjs/Pointer.html#clear"},"NdwmgygthpMCOXAeupj3z":{"uri":"/melonJS/docs/melonjs/Pointer.html#clone"},"eYL7tZDZFm77sq1dbzxa_":{"uri":"/melonJS/docs/melonjs/Pointer.html#contains"},"N2QyiGNxfEcANPE9q22pv":{"uri":"/melonJS/docs/melonjs/Pointer.html#isFinite"},"9F4DEjYf16GROJ7LX-urN":{"uri":"/melonJS/docs/melonjs/Pointer.html#overlaps"},"y-XTVnxBPL-TajrBeiA79":{"uri":"/melonJS/docs/melonjs/Pointer.html#setMinMax"},"b3a9AcvQhCmA6CP8_VEdT":{"uri":"/melonJS/docs/melonjs/Pointer.html#shift"},"BkxmT52LoNBtCVmTsiEf1":{"uri":"/melonJS/docs/melonjs/Pointer.html#toPolygon"},"ViYrM2q116C0qYXyXQXvs":{"uri":"/melonJS/docs/melonjs/Pointer.html#translate"},"vW6skw7a2zoT3Yhsfnerb":{"uri":"/melonJS/docs/melonjs/Pointer.html#update"},"ckJmrEqOdp0T5H8lnjDJO":{"uri":"/melonJS/docs/melonjs/Pointer.html#set"},"P_Yvrs1wj6hLZaAKPZqHC":{"uri":"/melonJS/docs/melonjs/Polygon.html"},"AGmW1Vtj4u9HQbi6oYgjK":{"uri":"/melonJS/docs/melonjs/Polygon.html#points"},"uqjc3Izfeqk9FjpCD-HVb":{"uri":"/melonJS/docs/melonjs/Polygon.html#pos"},"kkH1TKQtkdrNS29KY5Qvg":{"uri":"/melonJS/docs/melonjs/Polygon.html#type"},"h9wKjd19MMLN0ahJ--KE1":{"uri":"/melonJS/docs/melonjs/Polygon.html#clone"},"6070m44XEfmR0L4N_5pbf":{"uri":"/melonJS/docs/melonjs/Polygon.html#constructor"},"LKXRgkmrGDZ6vVAPPIaAR":{"uri":"/melonJS/docs/melonjs/Polygon.html#contains"},"DtoC3J_OGuhnSbHEvZGC8":{"uri":"/melonJS/docs/melonjs/Polygon.html#getBounds"},"Z1AMO8K9ArcVUtp8ASyJk":{"uri":"/melonJS/docs/melonjs/Polygon.html#getIndices"},"NVipIm0oz1DZ-LQW79lMu":{"uri":"/melonJS/docs/melonjs/Polygon.html#isConvex"},"EY1qlRUjVg2DcqLTvew3B":{"uri":"/melonJS/docs/melonjs/Polygon.html#recalc"},"u5CmA5b_G449otmZAAfmy":{"uri":"/melonJS/docs/melonjs/Polygon.html#rotate"},"Ddn8W5Z0qodgBUr36Cwob":{"uri":"/melonJS/docs/melonjs/Polygon.html#scale"},"R1OFZhSYE8jKW5077id1S":{"uri":"/melonJS/docs/melonjs/Polygon.html#scaleV"},"ygl58rEUhP-p43lYBeZpG":{"uri":"/melonJS/docs/melonjs/Polygon.html#setShape"},"XaelrQOIi7K6SojC2mpNk":{"uri":"/melonJS/docs/melonjs/Polygon.html#setVertices"},"U8iXLMWBaP3f0JNxj7ch1":{"uri":"/melonJS/docs/melonjs/Polygon.html#shift"},"Vi5W9nn9_06x-hp-fV0He":{"uri":"/melonJS/docs/melonjs/Polygon.html#to2d"},"IcUXaoLzXHUAPTA2mhTMv":{"uri":"/melonJS/docs/melonjs/Polygon.html#toIso"},"1tcC_ZPUKR9aouacFtrck":{"uri":"/melonJS/docs/melonjs/Polygon.html#transform"},"MKaoCllxQQLH738n4iAWl":{"uri":"/melonJS/docs/melonjs/Polygon.html#translate"},"-4hccPSR8fWD3NVtMajIV":{"uri":"/melonJS/docs/melonjs/Polygon.html#updateBounds"},"TtEfeSRAleqsfQ8oEDawN":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html"},"UrZJ-XoftsZhBYDWdZOfU":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#attributes"},"dJwgFL8tiJFs6io5xoVVY":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#currentShader"},"xZlTM0maFSk29El9Htc3b":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#defaultShader"},"n2jUqk6xMhJo4ewx3OaFt":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#mode"},"Mr74jDeLjjUdS39vuHAni":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexByteSize"},"7py1G-oRP3ZtBalWDq_GL":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexData"},"lFzqaOLHIuHkMEcoA_W2F":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexSize"},"ps3d5hCcSQdFoZ5YYjdXv":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#addAttribute"},"ktWfEwul71m-zFUjLQGn5":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#bind"},"VIdaG-9ATA5HHIA91jsZO":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#constructor"},"lBQLrhpz5UPdi6nCxpevG":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#drawVertices"},"tOncbLOTaohW8zBWN64CX":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#flush"},"TJ7WHrVs_pROcndcCarE2":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#setProjection"},"qb5CUm9m7XDiLo7Ntk01O":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#useShader"},"rhlNdyKoqyGyFmVI07vUF":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html"},"vMudF2-j-sRNDlh5LumIs":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#attributes"},"FKj9sgxatDsSS3dj8tQeF":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#currentShader"},"XRoFuZtYuYBDvzl-P6YGt":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#defaultShader"},"QL63AA2G1yeuJCf4U2gqf":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#mode"},"T67kad62wyGm2DUoKYGK7":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexByteSize"},"NjoRvDG3u6Uufy4GieAc7":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexData"},"n3g1AYA2Dtaw5-911VCdN":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexSize"},"qkVJRC5le6k7yTctiQjdU":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addAttribute"},"ZN9_Ce4Rw9kV6uxYlyxeE":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addQuad"},"IUyhe3S2P2fd81GPWWvp9":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bind"},"PT01sjEm93HVFaV5N98tC":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bindTexture2D"},"DuW7kSHnbNO3EpQNuExOV":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#constructor"},"DIOLf4pLy49oRrOv2xEwS":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#createTexture2D"},"HEnpZU7qTRlL8Z9Cuo_RF":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#deleteTexture2D"},"VDs0S2z__Ftwf2FzZxThe":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#flush"},"g1FtgM_SvycORDW4_Vsrz":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#getTexture2D"},"FlwA4qUYS5yYyKmFTkPsW":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#setProjection"},"c9HV1-fRfPIloSfbpNjNa":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#unbindTexture2D"},"irxq0aTXFkc2sQAa4bTom":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#useShader"},"LQwtKIBmFQ91jcwT80IAo":{"uri":"/melonJS/docs/melonjs/QuadTree.html"},"od_UeQd8qtIKpY_z9LRoF":{"uri":"/melonJS/docs/melonjs/QuadTree.html#clear"},"Q4tyLqg8FY91tnGgsjClR":{"uri":"/melonJS/docs/melonjs/QuadTree.html#constructor"},"3q3eSl4lT038nsWZmBbW0":{"uri":"/melonJS/docs/melonjs/QuadTree.html#hasChildren"},"Bm_WUg7TZhV8YsPX82oqY":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insert"},"c6yvB_FYEy4SMgRDX-KRb":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insertContainer"},"ycxwmMxAr-6-YzciZrCqn":{"uri":"/melonJS/docs/melonjs/QuadTree.html#isPrunable"},"tP1hjatGFa7m4LSV60bqm":{"uri":"/melonJS/docs/melonjs/QuadTree.html#remove"},"H_4lhEUVYPxYLV6kEH_G4":{"uri":"/melonJS/docs/melonjs/QuadTree.html#retrieve"},"JEFgR0Bl-znmESug8KCjS":{"uri":"/melonJS/docs/melonjs/Rect.html"},"m-V-onXWCPe22g60NBbXo":{"uri":"/melonJS/docs/melonjs/Rect.html#bottom"},"_cp0PYBAVLelO6paxHT70":{"uri":"/melonJS/docs/melonjs/Rect.html#centerX"},"pSPVvcOUms7BoOnASCH_T":{"uri":"/melonJS/docs/melonjs/Rect.html#centerY"},"Opuf8pN2FoMDpu8-Gtk-r":{"uri":"/melonJS/docs/melonjs/Rect.html#height"},"GddmYP0D7QKG-nX8hhR5V":{"uri":"/melonJS/docs/melonjs/Rect.html#left"},"CQd8HlmJSBaj8RXM-gEaj":{"uri":"/melonJS/docs/melonjs/Rect.html#points"},"fu4zz_XzzEa3p8l3SgxdA":{"uri":"/melonJS/docs/melonjs/Rect.html#pos"},"9LXU2gNibZoRSdhgaE2e3":{"uri":"/melonJS/docs/melonjs/Rect.html#right"},"OQAfDarLKA_CCTL8V83t7":{"uri":"/melonJS/docs/melonjs/Rect.html#top"},"eGj4asb_KwPkIqxSVlHtQ":{"uri":"/melonJS/docs/melonjs/Rect.html#type"},"AXMyfAF5EnptPTcl20HdO":{"uri":"/melonJS/docs/melonjs/Rect.html#width"},"xqvrRNi126ElMYDvAeGb5":{"uri":"/melonJS/docs/melonjs/Rect.html#centerOn"},"WrWLtoEEw0M0UNmdDrtZb":{"uri":"/melonJS/docs/melonjs/Rect.html#clone"},"krv-nCAPQOG_ge1b-EzX1":{"uri":"/melonJS/docs/melonjs/Rect.html#constructor"},"fITcn-0-bUgPHqqs2Qzzg":{"uri":"/melonJS/docs/melonjs/Rect.html#contains"},"PEdiES2U4SZTJJl3_Rsui":{"uri":"/melonJS/docs/melonjs/Rect.html#copy"},"p39fuxR7weZ3cgKCGuLzL":{"uri":"/melonJS/docs/melonjs/Rect.html#equals"},"vh6_Q-svSUPIa0TTDGq2M":{"uri":"/melonJS/docs/melonjs/Rect.html#getBounds"},"o5Rfuia68LPxWAnomj7OF":{"uri":"/melonJS/docs/melonjs/Rect.html#getIndices"},"3aePCRdPnB_4rNjgXPb6u":{"uri":"/melonJS/docs/melonjs/Rect.html#isConvex"},"hlVAvYiGE_AU5WgWsRufL":{"uri":"/melonJS/docs/melonjs/Rect.html#isFinite"},"pBQX7p_3IOZCAiDVOi47W":{"uri":"/melonJS/docs/melonjs/Rect.html#overlaps"},"C4cWSBC4xDzSmyW7X1FWL":{"uri":"/melonJS/docs/melonjs/Rect.html#recalc"},"2f8uPVvzkvBcGBc7Z1yF5":{"uri":"/melonJS/docs/melonjs/Rect.html#resize"},"NLF8qP9v9UKrA_LlvHRaD":{"uri":"/melonJS/docs/melonjs/Rect.html#rotate"},"sqdYr8l5WVZO1Ruj1G6zx":{"uri":"/melonJS/docs/melonjs/Rect.html#scale"},"t_lwtjEv8aRzXkSxzbXWL":{"uri":"/melonJS/docs/melonjs/Rect.html#scaleV"},"1WXNvCK7iSQDHuXqeMklT":{"uri":"/melonJS/docs/melonjs/Rect.html#setShape"},"3MEAU0NQAhcAxg2YNd0K3":{"uri":"/melonJS/docs/melonjs/Rect.html#setVertices"},"a7bRnVNaLdaz5Y6209c_a":{"uri":"/melonJS/docs/melonjs/Rect.html#shift"},"0OADljdaiugwleVA-DBz4":{"uri":"/melonJS/docs/melonjs/Rect.html#to2d"},"Tmu0CIf7U7LBSQjuPAghD":{"uri":"/melonJS/docs/melonjs/Rect.html#toIso"},"mzXFv_xL1wcL98ieeJyEh":{"uri":"/melonJS/docs/melonjs/Rect.html#toPolygon"},"Xorg_5irMT8UqpUojrDCr":{"uri":"/melonJS/docs/melonjs/Rect.html#transform"},"IxNXDLYLR7KkIPa_JYaCu":{"uri":"/melonJS/docs/melonjs/Rect.html#translate"},"rtRviLCUsXTgeApUtTDST":{"uri":"/melonJS/docs/melonjs/Rect.html#union"},"_yLiNBqbarILbIT3VBGDM":{"uri":"/melonJS/docs/melonjs/Rect.html#updateBounds"},"reN8YWp287CLR5Hf47RtH":{"uri":"/melonJS/docs/melonjs/Renderable.html"},"g_BsoLKfRYKsVd2g-6Yjp":{"uri":"/melonJS/docs/melonjs/Renderable.html#alpha"},"hKPRvjKwmxYFF8yFo8Dh5":{"uri":"/melonJS/docs/melonjs/Renderable.html#alwaysUpdate"},"9VtxvPg4fRjY_6UVNtgu7":{"uri":"/melonJS/docs/melonjs/Renderable.html#ancestor"},"xLXbx90L-Rj-lTMRj5-N6":{"uri":"/melonJS/docs/melonjs/Renderable.html#anchorPoint"},"mbzhWYWi-qme2FGnCi54f":{"uri":"/melonJS/docs/melonjs/Renderable.html#autoTransform"},"wE8TJSl-jpCRBNVo0nrGL":{"uri":"/melonJS/docs/melonjs/Renderable.html#blendMode"},"VT-JIX8gqHoAchVpuaRhC":{"uri":"/melonJS/docs/melonjs/Renderable.html#body"},"n9_LrE3R6ehbmKu2L0LLL":{"uri":"/melonJS/docs/melonjs/Renderable.html#bottom"},"PGHkDPNdqqHNRX8L___yG":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerX"},"7nwf3LkG5P2CD0RXYDZSu":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerY"},"XC4ws7wNLWxq_PQ8CcqRx":{"uri":"/melonJS/docs/melonjs/Renderable.html#currentTransform"},"tTQ87Hc7rVSVLYtJV8AHU":{"uri":"/melonJS/docs/melonjs/Renderable.html#depth"},"FVnkXHDAGEIkBsNm3YhMe":{"uri":"/melonJS/docs/melonjs/Renderable.html#floating"},"sBrSc4TC7lJ7r2KiIvN0E":{"uri":"/melonJS/docs/melonjs/Renderable.html#GUID"},"T5LfIaASXrBsoTZ5v4m4y":{"uri":"/melonJS/docs/melonjs/Renderable.html#height"},"inMg2ebeWSYAkZSwVvwza":{"uri":"/melonJS/docs/melonjs/Renderable.html#inViewport"},"B-IZByPb5DDQtNm3E-JCy":{"uri":"/melonJS/docs/melonjs/Renderable.html#isDirty"},"VcKGTZpeseJd6aIEfgkvd":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedX"},"zgLUiTiRrohC1Pct5GTz7":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedY"},"QSHLYrBDT6JM17FZNUJPe":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFloating"},"J7eNM7lSP9miNeCzKkPib":{"uri":"/melonJS/docs/melonjs/Renderable.html#isKinematic"},"ZRJagNcZLj_v-ipRIgO-M":{"uri":"/melonJS/docs/melonjs/Renderable.html#isPersistent"},"uLRch8yJcMY-w9VKaBiYM":{"uri":"/melonJS/docs/melonjs/Renderable.html#left"},"9sxdTym0FWHpS_Q9hkqyo":{"uri":"/melonJS/docs/melonjs/Renderable.html#mask"},"X2adheLOttWqv4tbnWykK":{"uri":"/melonJS/docs/melonjs/Renderable.html#name"},"gvB17PnLOy4jTjmfkpsgt":{"uri":"/melonJS/docs/melonjs/Renderable.html#onVisibilityChange"},"jtgL2bXDj2U_soX2UYzpr":{"uri":"/melonJS/docs/melonjs/Renderable.html#parentApp"},"JE3CN-Z03GSIAXaDtNwyr":{"uri":"/melonJS/docs/melonjs/Renderable.html#points"},"LZ5YXFS0e6x32pWFaxyXZ":{"uri":"/melonJS/docs/melonjs/Renderable.html#pos"},"7cgJYRjmXglbr1-EFueaZ":{"uri":"/melonJS/docs/melonjs/Renderable.html#right"},"ZsrNZ-h226S6_78FSO82L":{"uri":"/melonJS/docs/melonjs/Renderable.html#shader"},"IIvM0SomP09Aqfk_rVBuM":{"uri":"/melonJS/docs/melonjs/Renderable.html#tint"},"xjE0j-IpWfUKncrrzfl5M":{"uri":"/melonJS/docs/melonjs/Renderable.html#top"},"BHtdTx_73c631S5hW-r0y":{"uri":"/melonJS/docs/melonjs/Renderable.html#type"},"IFb79HVHsSCltCSDyyROv":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateWhenPaused"},"9O--J8Lmmfoazxaiz_pI0":{"uri":"/melonJS/docs/melonjs/Renderable.html#width"},"ObBBcpZF-XsnFV-dIIEpA":{"uri":"/melonJS/docs/melonjs/Renderable.html#angleTo"},"XhdfA9E0fAi0jiIEiWDs5":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerOn"},"N499-7smbJWRFEZG8QCLl":{"uri":"/melonJS/docs/melonjs/Renderable.html#clone"},"RanX4-FeozTFMbbLf5abq":{"uri":"/melonJS/docs/melonjs/Renderable.html#constructor"},"DHkDIpipaz-AUhJsGVViw":{"uri":"/melonJS/docs/melonjs/Renderable.html#contains"},"UmiJs_43BE4-k0jQ05uv7":{"uri":"/melonJS/docs/melonjs/Renderable.html#copy"},"vgB8mfKD_cqykoLAwOyzL":{"uri":"/melonJS/docs/melonjs/Renderable.html#distanceTo"},"iVOly5Fg5t3Z_34Wd_-5I":{"uri":"/melonJS/docs/melonjs/Renderable.html#draw"},"wJ_YmqiBnhg02WPt4UzAy":{"uri":"/melonJS/docs/melonjs/Renderable.html#equals"},"n4eGZwv2nno2KRmB9E27Y":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipX"},"4LFyPIcScbfwQ5JgWdjqQ":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipY"},"jHN9Y6mV6L6cVWhN6r52q":{"uri":"/melonJS/docs/melonjs/Renderable.html#getAbsolutePosition"},"moXtW3CYR2dUqCfbu6CEm":{"uri":"/melonJS/docs/melonjs/Renderable.html#getBounds"},"o7qRSNiFFjL9wAV22KbjM":{"uri":"/melonJS/docs/melonjs/Renderable.html#getIndices"},"DoEyWqH41VOP7C55bnp0G":{"uri":"/melonJS/docs/melonjs/Renderable.html#getOpacity"},"jFjJQafdW2-D12VJwtY_J":{"uri":"/melonJS/docs/melonjs/Renderable.html#isConvex"},"L6VipNDT8r33tB88DV7H0":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFinite"},"r8rAoTszr0vPt9GzIPSgT":{"uri":"/melonJS/docs/melonjs/Renderable.html#lookAt"},"02dbSyC7GqYUcZBZH7L5h":{"uri":"/melonJS/docs/melonjs/Renderable.html#onCollision"},"x8ys5wTLNz_rIjppkXxpf":{"uri":"/melonJS/docs/melonjs/Renderable.html#onDestroyEvent"},"S4l_8DkpQTP5tub0WNbh7":{"uri":"/melonJS/docs/melonjs/Renderable.html#overlaps"},"zHa8zuiOjgWS60OTOAgzd":{"uri":"/melonJS/docs/melonjs/Renderable.html#postDraw"},"nHLs-uepggboVcezTlm4s":{"uri":"/melonJS/docs/melonjs/Renderable.html#preDraw"},"re0j588XoLLatcf75BYtc":{"uri":"/melonJS/docs/melonjs/Renderable.html#recalc"},"gAaqEf5QazV-A-n9Kf7To":{"uri":"/melonJS/docs/melonjs/Renderable.html#resize"},"nX1kdLQJaTWRGwq52R4NZ":{"uri":"/melonJS/docs/melonjs/Renderable.html#rotate"},"pGIZk8RPU7AG3DmmkYFG7":{"uri":"/melonJS/docs/melonjs/Renderable.html#scale"},"9tamsf80jzwIM9bf03bXH":{"uri":"/melonJS/docs/melonjs/Renderable.html#scaleV"},"Ex5aa0iUWjgg-QiIb_35u":{"uri":"/melonJS/docs/melonjs/Renderable.html#setOpacity"},"MJZBmWCusYkneM4c1vewz":{"uri":"/melonJS/docs/melonjs/Renderable.html#setShape"},"1ny-KOAN3d96CQEvyyLvg":{"uri":"/melonJS/docs/melonjs/Renderable.html#setVertices"},"LHkUJBeu434USWt1Hggtp":{"uri":"/melonJS/docs/melonjs/Renderable.html#shift"},"plD7Ti45VK_rHVzOTcIDV":{"uri":"/melonJS/docs/melonjs/Renderable.html#to2d"},"3OWkMjbCb-yCuO_g1OLuK":{"uri":"/melonJS/docs/melonjs/Renderable.html#toIso"},"5kdhrkw5oFywFwJRaQsc2":{"uri":"/melonJS/docs/melonjs/Renderable.html#toPolygon"},"B7pZCd6kVRUb6FnWx97rS":{"uri":"/melonJS/docs/melonjs/Renderable.html#transform"},"_-_dKdpjyEqXX1QAd8Car":{"uri":"/melonJS/docs/melonjs/Renderable.html#translate"},"ouThkWmDNka78Jy7TR1XD":{"uri":"/melonJS/docs/melonjs/Renderable.html#union"},"33WajF9joGp9gfL_evtk-":{"uri":"/melonJS/docs/melonjs/Renderable.html#update"},"HImn-XaElRv8w6AQ2YpuZ":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateBounds"},"wvsPbvc6TdoLAjTcKXx7x":{"uri":"/melonJS/docs/melonjs/Renderable.html#onAnchorUpdate"},"elYLD1xGGjx_8eWM7qC0a":{"uri":"/melonJS/docs/melonjs/Renderer.html"},"a_eYLmOlbbUNk1oX5uS_6":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html"},"dUcv3BS5tWXpIFJPFEeLo":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html#constructor"},"NkAyVKHjbD03p5uECSe4I":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html"},"Jtia6nrZKCzQqhrGmUbYh":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html#constructor"},"uXj0Nnt8T0NwV1e7bIQE7":{"uri":"/melonJS/docs/melonjs/Renderer.html#depthTest"},"-5jnFMEaFTcWtABiGH2gf":{"uri":"/melonJS/docs/melonjs/Renderer.html#designRatio"},"RWaulBGm19opVQq9Cg7m1":{"uri":"/melonJS/docs/melonjs/Renderer.html#height"},"RmMVTI5ac4PM-QK1kC0pR":{"uri":"/melonJS/docs/melonjs/Renderer.html#isContextValid"},"Ajnk8v6AnsGF8yb5bPhKd":{"uri":"/melonJS/docs/melonjs/Renderer.html#path2D"},"Pxg18Xu3pPd6kcbc18j2v":{"uri":"/melonJS/docs/melonjs/Renderer.html#renderTarget"},"lk34N2t_6z7eWLLXG6Ypb":{"uri":"/melonJS/docs/melonjs/Renderer.html#scaleRatio"},"xfOWCmU5-OXtKMzV8CYhu":{"uri":"/melonJS/docs/melonjs/Renderer.html#settings"},"80Kt-BP2jOMLRJ53A3sM6":{"uri":"/melonJS/docs/melonjs/Renderer.html#type"},"hoS0NpR9UIE6VkE41LCJc":{"uri":"/melonJS/docs/melonjs/Renderer.html#width"},"s_pPkWoQXneFrUMFmLn5s":{"uri":"/melonJS/docs/melonjs/Renderer.html#clear"},"jXVq7ejDUYKOouJHnCbtI":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearMask"},"jHpQcdH9tgIaH_wN3Shsk":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearTint"},"Z8k9UAoayrmRo0d45Rkic":{"uri":"/melonJS/docs/melonjs/Renderer.html#constructor"},"evGsg0PP0z1DQLPAgHOeo":{"uri":"/melonJS/docs/melonjs/Renderer.html#fill"},"wUMxAXpy0h7RWWyj6iII8":{"uri":"/melonJS/docs/melonjs/Renderer.html#flush"},"kSP9JCbXPuBWDYWJdhAV6":{"uri":"/melonJS/docs/melonjs/Renderer.html#getBlendMode"},"tmd7IJOeRASXZxnM8V4la":{"uri":"/melonJS/docs/melonjs/Renderer.html#getCanvas"},"nRM-vPDu9-is51GdST7ra":{"uri":"/melonJS/docs/melonjs/Renderer.html#getColor"},"BNj2XNqEP2R4G2EEc1LQA":{"uri":"/melonJS/docs/melonjs/Renderer.html#getContext"},"T_8CgEJDeG3PvQxrR0DQm":{"uri":"/melonJS/docs/melonjs/Renderer.html#getHeight"},"pa5j7Qb281-NIJ-wI42ME":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenCanvas"},"VSu6YqCX44-DRo4q8Ml1T":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenContext"},"HJQm1QoY0dVIxbf0j8ZVI":{"uri":"/melonJS/docs/melonjs/Renderer.html#globalAlpha"},"Dkma5XaqByrRfXeDVHqNX":{"uri":"/melonJS/docs/melonjs/Renderer.html#overlaps"},"2fSFYJ7cJDiHJNxB9iEzM":{"uri":"/melonJS/docs/melonjs/Renderer.html#reset"},"iUgXcFeZAHZZH_oaLt4u0":{"uri":"/melonJS/docs/melonjs/Renderer.html#resize"},"4CpOyJOEhS6_N8umTqfkt":{"uri":"/melonJS/docs/melonjs/Renderer.html#setAntiAlias"},"Jf6HdeIlFerAe60uU4Isg":{"uri":"/melonJS/docs/melonjs/Renderer.html#setMask"},"U7L7eY97vR0KqjsQEUe-K":{"uri":"/melonJS/docs/melonjs/Renderer.html#setProjection"},"G7Te-uLAmf7o963F4o2Hp":{"uri":"/melonJS/docs/melonjs/Renderer.html#setTint"},"jt_i8qSohjO5VUgQovrwX":{"uri":"/melonJS/docs/melonjs/Renderer.html#stroke"},"KnvGlytSTHqK-AWsuO1Wh":{"uri":"/melonJS/docs/melonjs/Renderer.html#tint"},"yb8ZlloQIFkX7wkCErF0E":{"uri":"/melonJS/docs/melonjs/Renderer.html#toBlob"},"94wdhfYF29phEc9UtqMSu":{"uri":"/melonJS/docs/melonjs/Renderer.html#toDataURL"},"rzdwV185QzR0xB0f1so9t":{"uri":"/melonJS/docs/melonjs/Renderer.html#toImageBitmap"},"mJPiicFaC_F_dz3WYyHSM":{"uri":"/melonJS/docs/melonjs/ResponseObject.html"},"SZddMnCz0kifqPG41GJmy":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#a"},"IyBPmXAOe7DpHbPj91Lht":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#aInB"},"dtefYQH6odo6wrSl3khdW":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#b"},"x7_1Ekxpr9hsXHmkYEOKD":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#bInA"},"S4TSPfePGbn18pgoTpbYT":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeA"},"SR4GS5IBk12ygm-nj9reV":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeB"},"6i6DGYflkIyQjSYSUtr9V":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlap"},"b944zyP8IrfoDKz5Ogo0U":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapN"},"g5xjUSpe3TbR9OAT2a5u-":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapV"},"7qZLe9uBQ5xxGDFaUxhgm":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#clear"},"iejlIkicBYkPftbxV7g3-":{"uri":"/melonJS/docs/melonjs/RoundRect.html"},"0kz4msIF-tTGG0VymwnbE":{"uri":"/melonJS/docs/melonjs/RoundRect.html#bottom"},"WKDpqVDDWkpwEZ5QSa-6v":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerX"},"DlYLFTMuRh6248Fk81aas":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerY"},"Q5IJtd_UVFpvUAnlDNwxC":{"uri":"/melonJS/docs/melonjs/RoundRect.html#height"},"5OLbp04K_ZnNCEwsswSCg":{"uri":"/melonJS/docs/melonjs/RoundRect.html#left"},"5G8mwMrO7zusrEn-wgse1":{"uri":"/melonJS/docs/melonjs/RoundRect.html#points"},"Q2P4untG91wKso9RGPJH4":{"uri":"/melonJS/docs/melonjs/RoundRect.html#pos"},"vPFsRjm_z4ACyGPMvOvf1":{"uri":"/melonJS/docs/melonjs/RoundRect.html#radius"},"M11Cadtst-9AueJZRmuZv":{"uri":"/melonJS/docs/melonjs/RoundRect.html#right"},"wzgZD33NR8BlqV0LbFMdu":{"uri":"/melonJS/docs/melonjs/RoundRect.html#top"},"4WYBk89n6xAxP6tG5aXe9":{"uri":"/melonJS/docs/melonjs/RoundRect.html#type"},"3oQH_j6eBWqc5A9BRuHsH":{"uri":"/melonJS/docs/melonjs/RoundRect.html#width"},"4oNZKJy1fnyqBQ6v04bGN":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerOn"},"ZCjFMBqOm8AtByL-ri6cx":{"uri":"/melonJS/docs/melonjs/RoundRect.html#clone"},"o0DmWaHkfScP7bv5ECi5F":{"uri":"/melonJS/docs/melonjs/RoundRect.html#constructor"},"LZ7SkE2AnBrqsouMq1880":{"uri":"/melonJS/docs/melonjs/RoundRect.html#contains"},"g_lEX18qD1-Law3V7Bjlm":{"uri":"/melonJS/docs/melonjs/RoundRect.html#copy"},"avuT2prfMe1ozEY5vZ1Y5":{"uri":"/melonJS/docs/melonjs/RoundRect.html#equals"},"FB29yPkzAHrSA54Y3BuOr":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getBounds"},"TphLP3F0ikJjRXbDod6xA":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getIndices"},"7mjm_U6BDg4tflYXj3lXN":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isConvex"},"PbNZ5bHnJOKihSxN6kqzL":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isFinite"},"UC8bSialsEROe6jjHONDC":{"uri":"/melonJS/docs/melonjs/RoundRect.html#overlaps"},"UCFblNUacGttAB-4RYqyd":{"uri":"/melonJS/docs/melonjs/RoundRect.html#recalc"},"GJzlNpsJsECygQfhbcGzJ":{"uri":"/melonJS/docs/melonjs/RoundRect.html#resize"},"aGMxfsQBJMj2a9NpfLY6l":{"uri":"/melonJS/docs/melonjs/RoundRect.html#rotate"},"zNSpCL-L0dpRyGR34MSd_":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scale"},"McukPXlpt6mooTlv55un9":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scaleV"},"Z4BHYRjZDxtA8fWrF4AOG":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setShape"},"VDBLi-p45esNcoxYoFxCe":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setVertices"},"LYs3hqyAwnNtObRHuY8QH":{"uri":"/melonJS/docs/melonjs/RoundRect.html#shift"},"Ft9Vy9yaWdDz-pI7fF9rn":{"uri":"/melonJS/docs/melonjs/RoundRect.html#to2d"},"NfJl2CJmqsAbkSUqvfHLX":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toIso"},"jjgFgb45AdMpjgSQn-bOi":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toPolygon"},"SuIxAhA8eyzoJhu_op6aE":{"uri":"/melonJS/docs/melonjs/RoundRect.html#transform"},"p6YECO528s7if2RUsGmZM":{"uri":"/melonJS/docs/melonjs/RoundRect.html#translate"},"5SvA8Kuy3_hK8aYnCRIyD":{"uri":"/melonJS/docs/melonjs/RoundRect.html#union"},"RMk-Ka4KT9PaTrFePLJmn":{"uri":"/melonJS/docs/melonjs/RoundRect.html#updateBounds"},"e19DsobpgY634ZOvjFZp8":{"uri":"/melonJS/docs/melonjs/Sprite.html"},"fPT_NQoT9Xxk5glrYBUrZ":{"uri":"/melonJS/docs/melonjs/Sprite.html#alpha"},"rKar68d7ktG6-R0L96EK0":{"uri":"/melonJS/docs/melonjs/Sprite.html#alwaysUpdate"},"ODsSOIH5GvPgasB6wVGUO":{"uri":"/melonJS/docs/melonjs/Sprite.html#ancestor"},"HiVArFxoxamMQrNS1SRrv":{"uri":"/melonJS/docs/melonjs/Sprite.html#anchorPoint"},"cQl-66NT2AoHjWaIxhanm":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationpause"},"Gm-XJ648sCTVKE5etavYi":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationspeed"},"VPpg0SIKtdN9JtvT7Rszh":{"uri":"/melonJS/docs/melonjs/Sprite.html#autoTransform"},"yQeLocPKBDYJ16B03Hs5a":{"uri":"/melonJS/docs/melonjs/Sprite.html#blendMode"},"2nHuVp3ywCpgptA2ckKC7":{"uri":"/melonJS/docs/melonjs/Sprite.html#body"},"Es8kGG7wUlRpVMIIPmZuW":{"uri":"/melonJS/docs/melonjs/Sprite.html#bottom"},"bPr4Fgu9Ia_A3b22ola0E":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerX"},"9qvzVUTCCFEpEiKd3Joxa":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerY"},"93J1wDDt51VFEP1iON98b":{"uri":"/melonJS/docs/melonjs/Sprite.html#currentTransform"},"MkBgy2Dqu-7Gsm5SH0EK0":{"uri":"/melonJS/docs/melonjs/Sprite.html#depth"},"_lfsYjyIZAS1Mai3xWaiU":{"uri":"/melonJS/docs/melonjs/Sprite.html#floating"},"HNaHhzJqxj71_iQ2FeLzb":{"uri":"/melonJS/docs/melonjs/Sprite.html#GUID"},"NpWxk-f6hSLEDO2wSHZtm":{"uri":"/melonJS/docs/melonjs/Sprite.html#height"},"tcG-46X2fePYPbo3rHyng":{"uri":"/melonJS/docs/melonjs/Sprite.html#inViewport"},"a47maq9f5sXaqnU9VzxYB":{"uri":"/melonJS/docs/melonjs/Sprite.html#isDirty"},"iJvXXMco5udkTd3QLaCcY":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedX"},"bASEoCgkXxr2zSB0T1mJe":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedY"},"aiT1ldsqQ4JPrL9wI2q_U":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFloating"},"zzVhzpHYIm_6pcFdWm286":{"uri":"/melonJS/docs/melonjs/Sprite.html#isKinematic"},"bHiQobQ8sHeIaLkzB-sWW":{"uri":"/melonJS/docs/melonjs/Sprite.html#isPersistent"},"vRrTbjtUhsN1iiQuHurE8":{"uri":"/melonJS/docs/melonjs/Sprite.html#isVideo"},"A0LZmb579sVMLGrE9KcKR":{"uri":"/melonJS/docs/melonjs/Sprite.html#left"},"1lIqM_DCJ2TRFMcLzaDdZ":{"uri":"/melonJS/docs/melonjs/Sprite.html#mask"},"wENJyUZjyTyorurtLeoih":{"uri":"/melonJS/docs/melonjs/Sprite.html#name"},"-ib4dPFjIEd-OwTogwBRQ":{"uri":"/melonJS/docs/melonjs/Sprite.html#offset"},"jUHMk_JkYysJdwe04Vki7":{"uri":"/melonJS/docs/melonjs/Sprite.html#onVisibilityChange"},"le3BLT3QaDpoeF-kqjkUm":{"uri":"/melonJS/docs/melonjs/Sprite.html#parentApp"},"cEqTcFW9qUMv-NQ8w1Xjd":{"uri":"/melonJS/docs/melonjs/Sprite.html#points"},"QUeXjIJsuqieyJ0RfUnnG":{"uri":"/melonJS/docs/melonjs/Sprite.html#pos"},"VcZDruF0hZ1XnhHOXpPPL":{"uri":"/melonJS/docs/melonjs/Sprite.html#right"},"lP77_yxcyi3eSxU-WDm0b":{"uri":"/melonJS/docs/melonjs/Sprite.html#shader"},"MUnr1OHX9IRp8xl1YJUba":{"uri":"/melonJS/docs/melonjs/Sprite.html#source"},"7x-ksIARCaZaCujGd0CBm":{"uri":"/melonJS/docs/melonjs/Sprite.html#tint"},"eNkjnW9wV9aO9QTgNS-eQ":{"uri":"/melonJS/docs/melonjs/Sprite.html#top"},"nPtBE48pRBOiC4wXhh2jW":{"uri":"/melonJS/docs/melonjs/Sprite.html#type"},"oq9sqloMyw3PW-49ns_cq":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateWhenPaused"},"wZiEdJ5tTOj8i6rivG8aa":{"uri":"/melonJS/docs/melonjs/Sprite.html#width"},"UBrx7eIVziZE97WmPNJsD":{"uri":"/melonJS/docs/melonjs/Sprite.html#addAnimation"},"w9DjBx9YRAquZ09XVHc3u":{"uri":"/melonJS/docs/melonjs/Sprite.html#angleTo"},"_rmDZSbOEj5FMYvGl_9KS":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerOn"},"lDQQtIrZvPDfw8z6tJpjY":{"uri":"/melonJS/docs/melonjs/Sprite.html#clone"},"NiU3LI5Rs8rgXRuLHnocf":{"uri":"/melonJS/docs/melonjs/Sprite.html#constructor"},"xx_mnAG3MBpYGDHMp-he-":{"uri":"/melonJS/docs/melonjs/Sprite.html#contains"},"FMrqdQWy-lfbcDe0PQey1":{"uri":"/melonJS/docs/melonjs/Sprite.html#copy"},"pX4rD0aq88z6uAx6nvrhI":{"uri":"/melonJS/docs/melonjs/Sprite.html#distanceTo"},"1Xhmz4j9CMJdWEz1XjSgU":{"uri":"/melonJS/docs/melonjs/Sprite.html#draw"},"dESK8DnlwxkNvud52zyd2":{"uri":"/melonJS/docs/melonjs/Sprite.html#equals"},"Vxw7Spb30KbUcNkC1E4CT":{"uri":"/melonJS/docs/melonjs/Sprite.html#flicker"},"fAaAQZyqRYrOTo5612l7Z":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipX"},"mBhMSqN4fHm8ARj8dh20v":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipY"},"QrOFpE1HVXLowhHOpPKWL":{"uri":"/melonJS/docs/melonjs/Sprite.html#getAbsolutePosition"},"yf3x2qRshgKUaKZdHVTBX":{"uri":"/melonJS/docs/melonjs/Sprite.html#getBounds"},"rE0EuLK0FoAfu9ig27wUX":{"uri":"/melonJS/docs/melonjs/Sprite.html#getCurrentAnimationFrame"},"ldZTExkhgurpqDanaqrUA":{"uri":"/melonJS/docs/melonjs/Sprite.html#getIndices"},"Qs7NQLTQNrumx32fJljFz":{"uri":"/melonJS/docs/melonjs/Sprite.html#getOpacity"},"b5B1YFz8ctZUvgBaC3RK3":{"uri":"/melonJS/docs/melonjs/Sprite.html#isConvex"},"hrKfjkbnxK6IeL2koU6hO":{"uri":"/melonJS/docs/melonjs/Sprite.html#isCurrentAnimation"},"FYDNp6xK_fpAGxZ7LXWlT":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFinite"},"s003nu-m9j4fIl2mYMQQ6":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlickering"},"yMQyFrx21uJ_63FGwJxQ4":{"uri":"/melonJS/docs/melonjs/Sprite.html#lookAt"},"UziLLOKtNhMWdZ580g9Lo":{"uri":"/melonJS/docs/melonjs/Sprite.html#onCollision"},"zQ7AI7arOOYrBeOJLugSs":{"uri":"/melonJS/docs/melonjs/Sprite.html#onDestroyEvent"},"CA16mwK1xaNrhKV5f7dpE":{"uri":"/melonJS/docs/melonjs/Sprite.html#overlaps"},"jRAi31PemdIqMTLx5GxCR":{"uri":"/melonJS/docs/melonjs/Sprite.html#pause"},"l0Zu1fXNMRKLoJujzkC8K":{"uri":"/melonJS/docs/melonjs/Sprite.html#play"},"bkNZ1AIa2G3FOlPvzScVJ":{"uri":"/melonJS/docs/melonjs/Sprite.html#postDraw"},"o4hTsA93qIHtN_aWPjH2i":{"uri":"/melonJS/docs/melonjs/Sprite.html#preDraw"},"-XiE06hkD2LvPLxZ6UvlD":{"uri":"/melonJS/docs/melonjs/Sprite.html#recalc"},"7czfa8Uu23K210Deux6hb":{"uri":"/melonJS/docs/melonjs/Sprite.html#resize"},"Hyu8s4qJv8ZlwXqaPJo-X":{"uri":"/melonJS/docs/melonjs/Sprite.html#reverseAnimation"},"ldGwah-7rKesZylh8eB1f":{"uri":"/melonJS/docs/melonjs/Sprite.html#rotate"},"ZvQ-alvpFcZW-LRqFcGDK":{"uri":"/melonJS/docs/melonjs/Sprite.html#scale"},"J0DBHF4sqtk4ejqyHZurW":{"uri":"/melonJS/docs/melonjs/Sprite.html#scaleV"},"SkzEyj0EQM8e0FXT08NX-":{"uri":"/melonJS/docs/melonjs/Sprite.html#setAnimationFrame"},"ws1HpNmAN6lOO0GXdS20g":{"uri":"/melonJS/docs/melonjs/Sprite.html#setCurrentAnimation"},"XKclf4_9eJRonQr97TF3s":{"uri":"/melonJS/docs/melonjs/Sprite.html#setOpacity"},"VrC9-Cvpww2Mdc6j5pdJV":{"uri":"/melonJS/docs/melonjs/Sprite.html#setRegion"},"KW-sRa4sm9wXM6e5qkytV":{"uri":"/melonJS/docs/melonjs/Sprite.html#setShape"},"qSUTU-CQ9U0IFPl2d-WC2":{"uri":"/melonJS/docs/melonjs/Sprite.html#setVertices"},"_AQLWTtnxQbdJJKjzJdDW":{"uri":"/melonJS/docs/melonjs/Sprite.html#shift"},"7h0eYd6JFKESYGUdstEEL":{"uri":"/melonJS/docs/melonjs/Sprite.html#to2d"},"X19L_w0T_4pFnCiCuSJtW":{"uri":"/melonJS/docs/melonjs/Sprite.html#toIso"},"wDIZdtq5fyloVIHdQb2Xx":{"uri":"/melonJS/docs/melonjs/Sprite.html#toPolygon"},"L3KSclUUDtlNpsRNjC6Cg":{"uri":"/melonJS/docs/melonjs/Sprite.html#transform"},"DOZpERT4QHTZglripDi6X":{"uri":"/melonJS/docs/melonjs/Sprite.html#translate"},"dbgdtY-JMOiOhoiuxFpTC":{"uri":"/melonJS/docs/melonjs/Sprite.html#union"},"PmjRBkWKdBcIeCBGhKWy-":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateBounds"},"vxGqkTHVAo7BVLCTdlti1":{"uri":"/melonJS/docs/melonjs/Sprite.html#update"},"itDRVZQvp3ewtYx3n3z4M":{"uri":"/melonJS/docs/melonjs/Sprite.html#onAnchorUpdate"},"YRuTnIt7otW7bebzWFtQH":{"uri":"/melonJS/docs/melonjs/Stage.html"},"EkxaCEoReKMqFFqiXZkxm":{"uri":"/melonJS/docs/melonjs/Stage.html#ambientLight"},"AEk7Qn3HcAjGRsmMJTFKd":{"uri":"/melonJS/docs/melonjs/Stage.html#cameras"},"_hx9Hx431fuESR-R57Nom":{"uri":"/melonJS/docs/melonjs/Stage.html#lights"},"TBmtYwtf2oMETDTHk0K6E":{"uri":"/melonJS/docs/melonjs/Stage.html#settings"},"I1acnkL_UeRxwl1cYugFB":{"uri":"/melonJS/docs/melonjs/Stage.html#constructor"},"PeknOkMnOCy8r2ALQzASK":{"uri":"/melonJS/docs/melonjs/Stage.html#onDestroyEvent"},"hOnFuPc_KVm9R5_pIFZ16":{"uri":"/melonJS/docs/melonjs/Stage.html#onResetEvent"},"nxEj-sh64UItPu8xfpFrI":{"uri":"/melonJS/docs/melonjs/Text.html"},"wiwTtt9jASUsGZQ1vtCp-":{"uri":"/melonJS/docs/melonjs/Text.html#alpha"},"rp2KpjeegFYleGtWNUK8e":{"uri":"/melonJS/docs/melonjs/Text.html#alwaysUpdate"},"W32Nv4NL-Ogu-mCNHy9r6":{"uri":"/melonJS/docs/melonjs/Text.html#ancestor"},"uXJFCTMbK6BH00WhigwAC":{"uri":"/melonJS/docs/melonjs/Text.html#anchorPoint"},"_oo2XQ--QLCHEM0ORbvW7":{"uri":"/melonJS/docs/melonjs/Text.html#autoTransform"},"W1KYPb0hcf1KsfD5Zm7K_":{"uri":"/melonJS/docs/melonjs/Text.html#blendMode"},"3eQfx0jwqmjUvBQcrHe86":{"uri":"/melonJS/docs/melonjs/Text.html#body"},"c3Z9KfHhdA2xiLoe9BJFx":{"uri":"/melonJS/docs/melonjs/Text.html#bottom"},"xfacxVCaGdlwmx9ann-g3":{"uri":"/melonJS/docs/melonjs/Text.html#centerX"},"S_p0cYbq93Gt6j9rYsfcX":{"uri":"/melonJS/docs/melonjs/Text.html#centerY"},"fJwZ0ofMFnYLjR0GBZ5Sh":{"uri":"/melonJS/docs/melonjs/Text.html#currentTransform"},"QYIxvKtqVN6YNzUNOc2BL":{"uri":"/melonJS/docs/melonjs/Text.html#depth"},"JHDLeSs5sgzKfoDt9KAli":{"uri":"/melonJS/docs/melonjs/Text.html#fillStyle"},"bXnkadce8GwG8v57HElHk":{"uri":"/melonJS/docs/melonjs/Text.html#floating"},"fnGNSJzVUzi0D0FnRaXXD":{"uri":"/melonJS/docs/melonjs/Text.html#fontSize"},"pMVDXCvLyDGzFXhvulBT9":{"uri":"/melonJS/docs/melonjs/Text.html#GUID"},"qMo4LKYm376o2otsDAsp_":{"uri":"/melonJS/docs/melonjs/Text.html#height"},"gQ30PJxaffafOsk9Z3wp3":{"uri":"/melonJS/docs/melonjs/Text.html#inViewport"},"hTpXC7OsL_pyymm-hnTTM":{"uri":"/melonJS/docs/melonjs/Text.html#isDirty"},"9J8-FLuReS2a6q58eC0ET":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedX"},"bJLdnFb43zUq_eFscNnI2":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedY"},"1vT6O9m_bvVjj1PkI7qRg":{"uri":"/melonJS/docs/melonjs/Text.html#isFloating"},"TqIDyeW38gXH3BRnLh8tW":{"uri":"/melonJS/docs/melonjs/Text.html#isKinematic"},"m83RCJxrMO_tN8K-jXPta":{"uri":"/melonJS/docs/melonjs/Text.html#isPersistent"},"9bx-VH0O_gMyTxPps2SLs":{"uri":"/melonJS/docs/melonjs/Text.html#left"},"MO8hEhRO4UC6L1hojJDtt":{"uri":"/melonJS/docs/melonjs/Text.html#lineHeight"},"JICQrJkaEA3wZEY3pHBPT":{"uri":"/melonJS/docs/melonjs/Text.html#lineWidth"},"iLoPa7Ezv77KCHdwBM8vP":{"uri":"/melonJS/docs/melonjs/Text.html#mask"},"1SnoPexPdaoGDEoM_waWM":{"uri":"/melonJS/docs/melonjs/Text.html#name"},"N4nHFth8koinGzI16_hhT":{"uri":"/melonJS/docs/melonjs/Text.html#onVisibilityChange"},"kQOvtgkL372Of8RkdyX2B":{"uri":"/melonJS/docs/melonjs/Text.html#parentApp"},"Kr0F0pqqhkHP6LciKx3ZU":{"uri":"/melonJS/docs/melonjs/Text.html#points"},"bq14AgCk03nqI7QR9mA4U":{"uri":"/melonJS/docs/melonjs/Text.html#pos"},"IuG9yQ2q2J-rmmCNsb2Ei":{"uri":"/melonJS/docs/melonjs/Text.html#right"},"x52Z_RQR7u_LheDxCAfGN":{"uri":"/melonJS/docs/melonjs/Text.html#shader"},"3fp1LXsejhXR49R_E8CKl":{"uri":"/melonJS/docs/melonjs/Text.html#strokeStyle"},"J4HKmEHxJwl-cxxG_1Xya":{"uri":"/melonJS/docs/melonjs/Text.html#textAlign"},"rjzZsBVS5rz3bynYpfrZv":{"uri":"/melonJS/docs/melonjs/Text.html#textBaseline"},"Yibbt-s7z7m2ZhqHv_VAZ":{"uri":"/melonJS/docs/melonjs/Text.html#tint"},"-yACGNzf-ew8mtInllgzO":{"uri":"/melonJS/docs/melonjs/Text.html#top"},"HZVKUGnuE0altCJCCiGcQ":{"uri":"/melonJS/docs/melonjs/Text.html#type"},"N5fIs6K1R3OFOhrobssl9":{"uri":"/melonJS/docs/melonjs/Text.html#updateWhenPaused"},"TwfQa6n7cQD4mj9UMfE3d":{"uri":"/melonJS/docs/melonjs/Text.html#width"},"ZF9Z5HMgJYAzGOaCICE8J":{"uri":"/melonJS/docs/melonjs/Text.html#wordWrapWidth"},"78DQyA2y5TU3WApUShs2g":{"uri":"/melonJS/docs/melonjs/Text.html#_text"},"khQlBiFYExEZ5U-YHP6F9":{"uri":"/melonJS/docs/melonjs/Text.html#angleTo"},"9cL42wgbvs4fbOAltoblP":{"uri":"/melonJS/docs/melonjs/Text.html#bold"},"Jry3YKjfe9mFeyQ1YHRlU":{"uri":"/melonJS/docs/melonjs/Text.html#centerOn"},"PFhCerWjQSWP46jHWVxQV":{"uri":"/melonJS/docs/melonjs/Text.html#clone"},"asqTfy_mTJWjLdM7mpLxO":{"uri":"/melonJS/docs/melonjs/Text.html#constructor"},"MnqCrtz-7rrNI3t9j2ivw":{"uri":"/melonJS/docs/melonjs/Text.html#contains"},"WPQwhNByZqDWdeQFPs86R":{"uri":"/melonJS/docs/melonjs/Text.html#copy"},"KfE7LaQoAaP2cAEM1dnl2":{"uri":"/melonJS/docs/melonjs/Text.html#distanceTo"},"bvwXecwZZvDRuzChSvJb1":{"uri":"/melonJS/docs/melonjs/Text.html#draw"},"1bVlNs_VtHsn63eFpPFn7":{"uri":"/melonJS/docs/melonjs/Text.html#drawStroke"},"7_Q8yt4_q727pdZQkWB4R":{"uri":"/melonJS/docs/melonjs/Text.html#equals"},"eglGlEetwVwD7BUwWnHye":{"uri":"/melonJS/docs/melonjs/Text.html#flipX"},"BWJgXCjhtFfR1auDea1mc":{"uri":"/melonJS/docs/melonjs/Text.html#flipY"},"frIiBeNiZB2chUPzipcum":{"uri":"/melonJS/docs/melonjs/Text.html#getAbsolutePosition"},"c-bNfR4lT0JDgAe3rt2RU":{"uri":"/melonJS/docs/melonjs/Text.html#getBounds"},"1qaDbg44_tiI0WlBrEm_C":{"uri":"/melonJS/docs/melonjs/Text.html#getIndices"},"LZ7KZVKmZQ0xW_5KMZDFH":{"uri":"/melonJS/docs/melonjs/Text.html#getOpacity"},"uawOWY1RxPtDxq4_JUszX":{"uri":"/melonJS/docs/melonjs/Text.html#isConvex"},"dvFXz6YXnLlKHkGrc8brF":{"uri":"/melonJS/docs/melonjs/Text.html#isFinite"},"_f7o5GsC2hV9wat06OY6Z":{"uri":"/melonJS/docs/melonjs/Text.html#italic"},"zp6folcswT56WnMUM624o":{"uri":"/melonJS/docs/melonjs/Text.html#lookAt"},"B9IBav55AVwcj_nLUoeoq":{"uri":"/melonJS/docs/melonjs/Text.html#measureText"},"510PWLUA8ysni99UBg72F":{"uri":"/melonJS/docs/melonjs/Text.html#onCollision"},"vCaJ8Ze981PZdO-ifu4ty":{"uri":"/melonJS/docs/melonjs/Text.html#onDestroyEvent"},"VMBatlbYZ0_7IZkM0Pgum":{"uri":"/melonJS/docs/melonjs/Text.html#overlaps"},"x1LqESFgF25W5H458IxSV":{"uri":"/melonJS/docs/melonjs/Text.html#postDraw"},"wOR8n99xhjfG-w07dlylk":{"uri":"/melonJS/docs/melonjs/Text.html#preDraw"},"-LfL0Q7pqekuJpah1wr7U":{"uri":"/melonJS/docs/melonjs/Text.html#recalc"},"lCNjM4vneVcuRZXxLkQgg":{"uri":"/melonJS/docs/melonjs/Text.html#resize"},"Yjyj0lwI_pwNZl9Y1AxZi":{"uri":"/melonJS/docs/melonjs/Text.html#rotate"},"gF9Gllw-bxgGvxD3xrfJ_":{"uri":"/melonJS/docs/melonjs/Text.html#scale"},"g9i50PhfxMkUMvO7rsUau":{"uri":"/melonJS/docs/melonjs/Text.html#scaleV"},"-JU0TRk7H5sYTqWZ_JazD":{"uri":"/melonJS/docs/melonjs/Text.html#setFont"},"au6QPZAJDjaQ7dwBc5qu0":{"uri":"/melonJS/docs/melonjs/Text.html#setOpacity"},"F_QyS7IkGxsQouSbU9-Z2":{"uri":"/melonJS/docs/melonjs/Text.html#setShape"},"9pGhPSWgaeuhJCjTWLdg-":{"uri":"/melonJS/docs/melonjs/Text.html#setText"},"7vgK01XWgqQk_6mB_QwJT":{"uri":"/melonJS/docs/melonjs/Text.html#setVertices"},"5dqSj479xM_Y_NgKS7l-M":{"uri":"/melonJS/docs/melonjs/Text.html#shift"},"OqDWfcvlpgoVCBjggynD5":{"uri":"/melonJS/docs/melonjs/Text.html#to2d"},"BYt1OJezyCo1bql_tykgi":{"uri":"/melonJS/docs/melonjs/Text.html#toIso"},"_21V3CMshMXfJWR1KKpsl":{"uri":"/melonJS/docs/melonjs/Text.html#toPolygon"},"O6oR4qVL6PD8FQfBGn4Ei":{"uri":"/melonJS/docs/melonjs/Text.html#transform"},"jPmN0H5jKmmpd-fHGN6hP":{"uri":"/melonJS/docs/melonjs/Text.html#translate"},"rI-8zIN0o0ydkPGcGT_uX":{"uri":"/melonJS/docs/melonjs/Text.html#union"},"hhFGGU8FQRkeuJJhTUBpL":{"uri":"/melonJS/docs/melonjs/Text.html#update"},"NHs_Ol--JkGkIIPHci1Ps":{"uri":"/melonJS/docs/melonjs/Text.html#updateBounds"},"5UQlUvoxUcNcKTACz6RJk":{"uri":"/melonJS/docs/melonjs/Text.html#onAnchorUpdate"},"bcGUTUG0MfvP0PBxpHiYW":{"uri":"/melonJS/docs/melonjs/TextMetrics.html"},"GRz0A-TWBmPYhQZkDv132":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#ancestor"},"ioxhbxfQCax9XWk7aUJMI":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#bottom"},"apIzsp1KOXgIDxUTLGhL2":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#center"},"anbA_5mWRs-MLAr1t4Nbh":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerX"},"buCoo3pndLL7HUM1TmSIM":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerY"},"Ffjd9ngyN0Zm_8ayvuzko":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#height"},"l5miYtlsLn8UwTLia-coJ":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#left"},"Q9FltxS7YXKMjLwk587Cy":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#right"},"vMCH4d20XBZF54wgc_A8a":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#top"},"cvDokkr7kchQIXBeklf8P":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#type"},"C9Xru-f-wip3iIZNj_Qv9":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#width"},"r-A7RfMd03bSbVq6CrM09":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#x"},"RtaQbWbNSpy8TS8HbnCy2":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#y"},"BAFnqEb3UMUJ7ciEj7Z3z":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#add"},"fYrliKKG9Dar2MgGGia_5":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addBounds"},"ZKfGnpblw34PDcIG8sur5":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addFrame"},"wO5Zr4X8fkVMOBCLRgTBa":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addPoint"},"LqxgH0Y2y2soBqhS4TccX":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerOn"},"70tacM0O7-z5WB7QZw242":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clear"},"_TDUtCTIV8W4-mIcHdivl":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clone"},"UF-AzmL5D4i_FU6zC5XLa":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#constructor"},"TDplVIxQm68LvCmuloLK-":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#contains"},"0UqIzmlSCM-LhANMrDPE-":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#isFinite"},"IIxtJNeWnDF4KGaP1XkVq":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineHeight"},"04Jb60EFelV7N7IAIYEbg":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineWidth"},"COLGgMtZ9OWbNJ7oNyUpY":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#measureText"},"kJIV1XgiiJJRnWGGwE7E_":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#overlaps"},"127x_yDiYlSt5AB3sThS6":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#setMinMax"},"HVJeLQCxue6_IA8sshpUD":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#shift"},"WFDbHtVWCa_ojiNNLq0tN":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#toPolygon"},"-I2KE8uZo7JTptg2l01Ds":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#translate"},"WtUZhmMhdBJta0JrNKxrs":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#update"},"2W-4Q1OGtkzgNuokYjSUL":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#wordWrap"},"FTIZuIjmWYcD23GWz7179":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html"},"cmL_ggJI3y0JEPmk8km8L":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addRegion"},"5_KIV1jpUNs0U3Fij9v-3":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addUVs"},"r2tNsCOSYYbfNUGlKhE35":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#constructor"},"TqnAF_P1qtL1YDCbyq0P4":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createAnimationFromName"},"wyHZT5c8472LOVCeNHpU5":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createSpriteFromName"},"XVnsCt6Dbcmd3J4NVA1SO":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getAtlas"},"zUFigxdwTyFYp9TJ_7RMA":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getFormat"},"jS4Dir0G-KIvnXuW1ZbfI":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getRegion"},"ThIdPome2Z6eGiaMy9M1q":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getTexture"},"Iub05UIXGrySYnrhn5qO0":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getUVs"},"hUYiy8XUU2lMm6OIjcyC9":{"uri":"/melonJS/docs/melonjs/Tile.html"},"HGRahDizCmZ7N6SVcC1as":{"uri":"/melonJS/docs/melonjs/Tile.html#bottom"},"RZqZIwZqDA4TRMPUkR6pn":{"uri":"/melonJS/docs/melonjs/Tile.html#center"},"2EsAj_6hoQ7xh-npP1Qs2":{"uri":"/melonJS/docs/melonjs/Tile.html#centerX"},"BV6p2dldS3I1M-zf8c6kb":{"uri":"/melonJS/docs/melonjs/Tile.html#centerY"},"Deivd_idRZIXg-dkYE9Z-":{"uri":"/melonJS/docs/melonjs/Tile.html#flipped"},"mjCYrwDwaW44Jy4iTHU4y":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedAD"},"POBQQlOEKeJEpUS3nDBvW":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedX"},"7DlF9Lv6ozvqmNHEOLTC8":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedY"},"RJk1KBDPvsKpiyuTLeLul":{"uri":"/melonJS/docs/melonjs/Tile.html#height"},"dlKIQ33ajfg-nJ3Qn1isO":{"uri":"/melonJS/docs/melonjs/Tile.html#left"},"Mjhr5qIcnV-So26r-ZYjG":{"uri":"/melonJS/docs/melonjs/Tile.html#right"},"FCFV47wQFJGLydNUevWu_":{"uri":"/melonJS/docs/melonjs/Tile.html#tileId"},"qqGq7p5vHsyOeudNP0mzb":{"uri":"/melonJS/docs/melonjs/Tile.html#tileset"},"Bym_p7Sp387ab88O8B4AS":{"uri":"/melonJS/docs/melonjs/Tile.html#top"},"lEXGIYaYFvcEfAKK7B3Dt":{"uri":"/melonJS/docs/melonjs/Tile.html#type"},"L24zvZzipiYRPims2eJ6h":{"uri":"/melonJS/docs/melonjs/Tile.html#width"},"2s24efizUH5TB5TEanKs8":{"uri":"/melonJS/docs/melonjs/Tile.html#x"},"NpkvqeE13qwV-8Kuwo7Jv":{"uri":"/melonJS/docs/melonjs/Tile.html#y"},"wkNP1loISJbofiULLU1nL":{"uri":"/melonJS/docs/melonjs/Tile.html#add"},"NAUlhb0BNxCCfZg7VLGKN":{"uri":"/melonJS/docs/melonjs/Tile.html#addBounds"},"3I_ENMZm6qgwR6lrY1tdE":{"uri":"/melonJS/docs/melonjs/Tile.html#addFrame"},"1WmYtIOQv2aMMWW2PYuPc":{"uri":"/melonJS/docs/melonjs/Tile.html#addPoint"},"4XjY94phod-z5s_6XdCmi":{"uri":"/melonJS/docs/melonjs/Tile.html#centerOn"},"KkqO0PNucNpEFmoIx9Hgl":{"uri":"/melonJS/docs/melonjs/Tile.html#clear"},"g_H0oYmuYRDnKb7qpirmm":{"uri":"/melonJS/docs/melonjs/Tile.html#clone"},"7bCYsFn3cQFTLYtFiZKLz":{"uri":"/melonJS/docs/melonjs/Tile.html#constructor"},"OvVxwKLFKqsE9ZLi64GPC":{"uri":"/melonJS/docs/melonjs/Tile.html#contains"},"NgJ8D0iJBTF8l4uD6GqvW":{"uri":"/melonJS/docs/melonjs/Tile.html#getRenderable"},"fv9A7BJVVrxkR9llss9G7":{"uri":"/melonJS/docs/melonjs/Tile.html#isFinite"},"KuK9F4J7DgV28STC9RR5i":{"uri":"/melonJS/docs/melonjs/Tile.html#overlaps"},"eq5uskqfegsoWHZMyXgil":{"uri":"/melonJS/docs/melonjs/Tile.html#setMinMax"},"y9M125lyd283wMuLazjdP":{"uri":"/melonJS/docs/melonjs/Tile.html#shift"},"7QgODFI8bzJCrjJ6oFNzO":{"uri":"/melonJS/docs/melonjs/Tile.html#toPolygon"},"VejfVBb57jSeFKdlkkvoS":{"uri":"/melonJS/docs/melonjs/Tile.html#translate"},"xxuI4Pc5QVjOwERuzlRx7":{"uri":"/melonJS/docs/melonjs/Tile.html#update"},"2L-Fn2wI38rZmpgBpAd3c":{"uri":"/melonJS/docs/melonjs/Timer_.html"},"d_1znf8sjq-5ki-8PPARE":{"uri":"/melonJS/docs/melonjs/Timer_.html#fps"},"52EKLd3Fg8EWm4IRIsrbT":{"uri":"/melonJS/docs/melonjs/Timer_.html#interpolation"},"8rEwpykg8tj5GExg9_8jW":{"uri":"/melonJS/docs/melonjs/Timer_.html#maxfps"},"MAz44lpKDlIgQdO64S1AO":{"uri":"/melonJS/docs/melonjs/Timer_.html#tick"},"Fja7x2eDBdKSrD0l60VF0":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearInterval"},"HRddw8vvKTFeBTrNmkuiE":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearTimeout"},"s6YsdkErolR6d1NDekwCD":{"uri":"/melonJS/docs/melonjs/Timer_.html#getDelta"},"T8YdgJIUFa3gZSpu4TJC7":{"uri":"/melonJS/docs/melonjs/Timer_.html#getTime"},"fwVNYUk1KTTQxzr7sIJXL":{"uri":"/melonJS/docs/melonjs/Timer_.html#setInterval"},"d7Q0lsfOlMUxp9dfTGiJ8":{"uri":"/melonJS/docs/melonjs/Timer_.html#setTimeout"},"PB3ZXuaU3VlhzBHurcASr":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html"},"NkRHo3ETkbh3JU8QLKPbx":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#canRender"},"i8ttFpS1KfowOmw4OzMeW":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#constructor"},"sd9XUjYrZwHwzWMrIuL3O":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTile"},"pM4YTShBJK8uHoOVa1zS6":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTileLayer"},"TA9ByJ8YEtI_k1a7RV764":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#getBounds"},"eSfSuye9AVN3sQrWLyr3j":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#pixelToTileCoords"},"DPKDkorfkGj06be7_x9uY":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#tileToPixelCoords"},"f4M8ozx640-bZMKZn2MQh":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html"},"wd5vEdDba0m7ce5f840Gz":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#canRender"},"D4h7bYLd5fVFG8WBgNM6s":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#constructor"},"7wxNieAzKa17Es2sl76_w":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTile"},"dI00vTSavuVBPo_FqX7vQ":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTileLayer"},"D8FmtsOMBs39_Izti_p0j":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#getBounds"},"-A0lQXV7XCo4thNGEjiht":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#pixelToTileCoords"},"aPb1w26XTvYQfKyyRoshc":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#tileToPixelCoords"},"mJ-Ht176H15aKmhh31OyH":{"uri":"/melonJS/docs/melonjs/TMXLayer.html"},"SGvlkm8GU8Wp6pd4KzKYN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alpha"},"7yTWdSOHTCWcroHJhwToG":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alwaysUpdate"},"Q8z_vkOer1vN5WeJeOLZz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#ancestor"},"SMsshzOtDzV9ZHuWd9Lbv":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#anchorPoint"},"fwpyMnF7XXdVQIJVOKgRA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#animatedTilesets"},"tKUzvzjv7IF3_tQ_qavds":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#autoTransform"},"D8D-_oeZBcZ56UyIwyiBt":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#blendMode"},"OlX-ZnRZERQvRbqJIg8fw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#body"},"TCcedNAipKR1-yIx00JPb":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#bottom"},"VeUf6h3R5H9VzW_YSX1I7":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerX"},"qEyls_Zq2S4mqYiojWacn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerY"},"yEmp5Im2eY38itJpAhfHy":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#class"},"pn10UYTbEOr99G_vuSJCh":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#currentTransform"},"aVzTVZPwk6Y1YT3MBMKR9":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#depth"},"Ci_s8Wl2JKNhNXcOVdRxw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#floating"},"y5Y1ByqFl4l7DM6LeyYUa":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#GUID"},"5x3imhhLOErb3jAE70g4f":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#height"},"VWl7MHM29SAf5acbIjf5e":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#inViewport"},"6kZz2xVrDmU7uOaMRNgu1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isAnimated"},"yhPr7Zwmx6CyFtuH2Wcej":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isDirty"},"BrRbFQEbphflAtbhpxb5R":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedX"},"9xUBkY0CxArZV3GxoBJg1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedY"},"-ZlkjFA6cYwSfF_PRLVnE":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFloating"},"9YKeJQg4OmDbhMsNMQ_d2":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isKinematic"},"KfI_I5_vP_WCf6BefteRY":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isPersistent"},"wXf0Ttu0s2wFO2n9ly-kq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#left"},"Vn5iCI-gziBtGnglYYt7X":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#mask"},"2VEsGsiUWSf3-SbcrCo4f":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#name"},"dzW2V18Q0bc9GdfIwbsns":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onVisibilityChange"},"VZtE2xbG5IXeMj7dTnv2m":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#parentApp"},"HeFSnwDsxFC3yajfQLo0l":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#points"},"cf4fT11dPAhB3BZNOw1f1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#pos"},"8TjMVelgKT0-PugqyajQX":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#renderorder"},"WVjcfNaV0zeIUYfy3iu_f":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#right"},"-kWUNTg2vp8iVagoFrOij":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shader"},"1S_Z4WNY6WKbVRbvf25GV":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tilesets"},"CbMJRDLEumNIh5w9cWE9y":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tint"},"wOvKm2wN82vuJ2z32ZSOS":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#top"},"u4YW17K84rbE_iaztOLNN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#type"},"sj2dIDo8lzy5CXhaZmkeS":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateWhenPaused"},"nTcydkZe0KzPCoH3AXpqa":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#width"},"PvE0kIvcD_kYm1W7XEDqL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#x"},"Vm-GwobSB9a9ge7plOEYf":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#y"},"lKQ05vRcJuMqDaKwybvrl":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#angleTo"},"UK725TesS0NUyUVuw5TMn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#cellAt"},"t0_6AXszek4u9izhZsZGD":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerOn"},"1B7H4j4u8xTkzAaJtonJq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clearTile"},"mvTyHF8DNC70ieChX1pJd":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clone"},"4ajugAeoPkzTT6yBJTeVg":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#constructor"},"_kzSqFfKXu6ERWTdTEdai":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#contains"},"8FK0HfjxGUKk-BzgmHFEJ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#copy"},"Qv_CNNFmqGDDoNORWu0dz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#distanceTo"},"TIdrajAVIdXCbE_9ioJNj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#draw"},"L2Xhy5T5mIS1yBWQ1gO1v":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#equals"},"d8opBspI-XGCgO8KJ5U4d":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipX"},"3L7QeU-4yXQ5yUxwNpEdW":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipY"},"RNtqtcCE9II9TKMoufqEn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getAbsolutePosition"},"WuqegTQ01zyLZ-3VFBN77":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getBounds"},"Yo8EnHeLgupeB-h_ZuNEt":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getIndices"},"2bXLdhHpCKPwLJpaXENwz":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getOpacity"},"sWliQoTLZuY8cJFiTSBD1":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getRenderer"},"BV-ukbkTQhjfqr2DtEaFn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTile"},"iOgKv3KdphrkF2z_UslCj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileById"},"C02LoK2RHuK_nSaOHqwJn":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileId"},"DcIVgO35X1KFUCyeGbdsT":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isConvex"},"Q9mNl0FNa1b9doJKJ8Le-":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFinite"},"7Kak8Jk5tZsL_vfGcD8cN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#lookAt"},"2x8vYMMtXxZEte1MzAYye":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onCollision"},"QeF1oQouT6lPqQKgqkXU-":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onDestroyEvent"},"-GIVUgKzhFjpq3G2A1lov":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#overlaps"},"6PZ89I7FvoZ_P9WGbjbmV":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#postDraw"},"7d4_O7NFoksvpd_QzG4w6":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#preDraw"},"3SgReFq1cAOsizJtkED2d":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#recalc"},"7TN8Y10fMJKmX0iELfEj4":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#resize"},"UUIqJXkl8QIEcIK5RrNOi":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#rotate"},"QvTV9kCSTv8vOtjlJ8h0W":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scale"},"OTtWH6QagSZgK3w5iAKsJ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scaleV"},"Tj35zGPxQdx2nlGy2ZSKB":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setOpacity"},"y2v19lxEIv1TCE7fNdUBg":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setRenderer"},"j5KQsiVzXdmY_dj3PgYLU":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setShape"},"nkI1ny88Ii62YYYffbnWe":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setTile"},"-Sfa70LziWDyYz05kgodo":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setVertices"},"cLjNJAIXfh2KALQjKC4d8":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shift"},"bgvtrsRMXB6aQW-1kVcpq":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#to2d"},"7ciXRtw2QA8Udoh7DsKWe":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toIso"},"4ZZCsNsQyewyO6KjOBhC7":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toPolygon"},"AtdR8WXL8Ww1H6PxEbCSA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#transform"},"DhJrclXEsYTBg3UQ2mBLj":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#translate"},"itOx0aC-YeT53rbj-FeSw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#union"},"Ix-0QfPW5mz4z1wvTDSzs":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#update"},"aaDepfHUrec5HcxKYYPBA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateBounds"},"4bO-qdMb_V6sEMU8cdWGh":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onAnchorUpdate"},"lQrFkjIgkq4QpKtsJ2Ii8":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html"},"kiK7hKjM_hW3otuKBDASn":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#canRender"},"a6t6giNVoijxOO_R2eeT_":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#constructor"},"TcmBBc30cLO2Q_cjeXuL9":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTile"},"oit5pigNV6aWJCVm-kIWy":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTileLayer"},"0EKZtuaaHb9dWjK0EGILk":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#getBounds"},"s3KxO76QdzeHnAp8BATKM":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#pixelToTileCoords"},"CJPG8kJyS_6A24aBVDQKy":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#tileToPixelCoords"},"L6QtTk235ifySknqTYi4H":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html"},"AozKkt7Hqv-4NkILExGvJ":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#canRender"},"iX78Z6vbOVvI20UJyCZcd":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#constructor"},"NRMWOrDpvZdetXGZlUFL2":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTile"},"X5PsPHjB8e1WEkHYAHy27":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTileLayer"},"_MMJHcYAnj7voBw18innq":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#getBounds"},"kXYQTEBisJ5qHdj8teBpj":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#pixelToTileCoords"},"ONh8iPYBSd1sziG_Xw822":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#tileToPixelCoords"},"t70G6KR_BbyrRibpKEYn2":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html"},"Fs7U8O2V-YgNpaTmV_2J3":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#canRender"},"-j02OnblxRH0rzqdjFAnE":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#constructor"},"lQIr3jXNqMQU1aX6znait":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTile"},"cgqgUV4IYzVn8DGEJwoEN":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTileLayer"},"LqlyE6H0_8L8BKpwnJjIl":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#getBounds"},"YoxX7neXqF_vwjshxp4qW":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#pixelToTileCoords"},"11B2nZg1WJ6v7Zzx3YpVD":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#tileToPixelCoords"},"6taynSXO1NosZ9cjbKL6O":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html"},"UymKoTVSjrGZi4zVMr_fp":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#class"},"TeBlhHZSkZ1-DGByERraF":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#cols"},"SE9M5eqIYXqZKVWjW-xOq":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#infinite"},"uGdHhdCi5NmYqyrjgWcCx":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#name"},"RW5lFtgrCdyGgHLMi-qJ-":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#orientation"},"xR55NhnLgetvpxvJcXKD4":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#renderorder"},"n4RbGsbjBbmbCqDbP1WAf":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#rows"},"FxuG_3skZkBsYOULvq0Et":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tiledversion"},"qYShFniJqURZNqELavCvR":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tileheight"},"0_-R95RrKtSzPEjmok4Vl":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tilewidth"},"9mJnaczxtgKyw71nxp9US":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#version"},"gbGaNoVnOX7OFYHbqBeod":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#addTo"},"RXic0KBtKmVlJCwS03a9y":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#constructor"},"OLQQwyfm6hgc1B-j4qE32":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#destroy"},"UL0PMMVSMdppmIbrgiz1q":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getBounds"},"Q3aLGyLkWOwJgwltViTe6":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getLayers"},"ziDi4N7oP-M5TvY1xEJkM":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getObjects"},"7Dqj9E8dAJ5nd16ZXwfTo":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getRenderer"},"LOSDbnZqOoEJZ9XbbnIPN":{"uri":"/melonJS/docs/melonjs/TMXTileset.html"},"6eanhUtFB42nPQVsSBfWs":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#class"},"vUWNifhUGDbo_VuurrwJn":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isAnimated"},"H9spPe9Cu6BjeH6Nibtt7":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isCollection"},"M9BCmR3YqPuJHID-wGJsx":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#_lastUpdate"},"-4PbqudBJZVQp_8ZPnmtc":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#animations"},"R6lhLsdvauyHmacihdlTh":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#constructor"},"iu9yvIbZkefizVnJGWPuJ":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#contains"},"ESwRT7l_ey55riePEreEn":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileImage"},"OpDXc_0PaunkrNdBO3AMa":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileProperties"},"KU2wqLx7RxPQAPAnylJzt":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getViewTileId"},"raNCEuqg2D7xRQ5QnxIX1":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html"},"RZBDAJb7kI4klCEAIuv-3":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#add"},"weea_wB655E-RuVF_sBn3":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByGid"},"UGaVDGd0523_Nd-iQYfTH":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByIndex"},"oXkrns_EoHLF4buS2hyQv":{"uri":"/melonJS/docs/melonjs/Trigger.html"},"ItapNyGhmJSefw6x-Itxi":{"uri":"/melonJS/docs/melonjs/Trigger.html#alpha"},"s3dTAl7iKrSkQOd6N9tpS":{"uri":"/melonJS/docs/melonjs/Trigger.html#alwaysUpdate"},"ok6TWZ2aEsJbLnSYRqkg8":{"uri":"/melonJS/docs/melonjs/Trigger.html#ancestor"},"8L85PCR4m0pyjqkb8-0_g":{"uri":"/melonJS/docs/melonjs/Trigger.html#anchorPoint"},"vs1G-1RW4E9A3tf4GkvSM":{"uri":"/melonJS/docs/melonjs/Trigger.html#autoTransform"},"9cN5orFn5iVGiilJdyFaz":{"uri":"/melonJS/docs/melonjs/Trigger.html#blendMode"},"O01DDzfFmnaGGf8T9Qx7G":{"uri":"/melonJS/docs/melonjs/Trigger.html#body"},"OyEjHM75JtNhR38AyY4Pc":{"uri":"/melonJS/docs/melonjs/Trigger.html#bottom"},"g1PR75-phNP8nv1KIHVJM":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerX"},"-3xlQWEj4NXN0dkEt_3dK":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerY"},"lkLf7xy8Wx1RqM8ZW57_b":{"uri":"/melonJS/docs/melonjs/Trigger.html#currentTransform"},"sL63d7E6RYKUZOlNKd67k":{"uri":"/melonJS/docs/melonjs/Trigger.html#depth"},"BjQ5l_vMVtwqcyL2KCWd_":{"uri":"/melonJS/docs/melonjs/Trigger.html#floating"},"tUeB3b_gao8mtQbH5vbRH":{"uri":"/melonJS/docs/melonjs/Trigger.html#GUID"},"ckq8s49Uia-427XADfVqH":{"uri":"/melonJS/docs/melonjs/Trigger.html#height"},"QVG1YG6G2m9H_Ji8AojwG":{"uri":"/melonJS/docs/melonjs/Trigger.html#inViewport"},"kfOae3TQNwQGJ-Zdn7jWF":{"uri":"/melonJS/docs/melonjs/Trigger.html#isDirty"},"-jYJs8rVtdzpMlqVPk7p4":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedX"},"6MmMGa_dMAjyQQvKBtRSQ":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedY"},"Xb6sNFAQLRaj9Iy-kVgxT":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFloating"},"CZ2yoQq4H8ru7RxrsBAlt":{"uri":"/melonJS/docs/melonjs/Trigger.html#isKinematic"},"BGYoBC2PKxre_WrBD_1K1":{"uri":"/melonJS/docs/melonjs/Trigger.html#isPersistent"},"R-GYPLqoqwnD69boeN_LL":{"uri":"/melonJS/docs/melonjs/Trigger.html#left"},"56GDnBTP_I9v1U5_Yr0kj":{"uri":"/melonJS/docs/melonjs/Trigger.html#mask"},"qDJ5lCEfwFCkDCWPUoW6I":{"uri":"/melonJS/docs/melonjs/Trigger.html#name"},"BFdbF3oTZR7-r-4G6iyrA":{"uri":"/melonJS/docs/melonjs/Trigger.html#onVisibilityChange"},"vJOkwjD60EKp7TcAkIZhs":{"uri":"/melonJS/docs/melonjs/Trigger.html#parentApp"},"LBms3h2Boyeur7CDxO9DD":{"uri":"/melonJS/docs/melonjs/Trigger.html#points"},"ten5tHIUe2HQtfto9YbKM":{"uri":"/melonJS/docs/melonjs/Trigger.html#pos"},"_Cf7eoByx5AQ5qF5CbvjY":{"uri":"/melonJS/docs/melonjs/Trigger.html#right"},"uz3govL8rEkSa1KUfIBP-":{"uri":"/melonJS/docs/melonjs/Trigger.html#shader"},"EL3TVzHYRDm3fRx5or6KO":{"uri":"/melonJS/docs/melonjs/Trigger.html#tint"},"P2d_ARb4G5IPCPpy5WKlq":{"uri":"/melonJS/docs/melonjs/Trigger.html#top"},"nUjNFEsYKMPmQjr1SW1xE":{"uri":"/melonJS/docs/melonjs/Trigger.html#type"},"49z6lrvIssBpNp_xuWkUd":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateWhenPaused"},"XxS0u9pMQoL1cBNhSQtjX":{"uri":"/melonJS/docs/melonjs/Trigger.html#width"},"acT6-ptIxRiDPDFdGRz_n":{"uri":"/melonJS/docs/melonjs/Trigger.html#angleTo"},"o2eVD-aPGZEzL-KBMVl_9":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerOn"},"S7xnJgKRL4aFZbcY96tXT":{"uri":"/melonJS/docs/melonjs/Trigger.html#clone"},"GcV0MnjVJfxCP5_9LmMEZ":{"uri":"/melonJS/docs/melonjs/Trigger.html#constructor"},"B3nRhXmuZIDt7BdE3Lqpz":{"uri":"/melonJS/docs/melonjs/Trigger.html#contains"},"Y3aXkGKhozILksuhamzyv":{"uri":"/melonJS/docs/melonjs/Trigger.html#copy"},"nzdUObSvqVptGL0Q7YiEf":{"uri":"/melonJS/docs/melonjs/Trigger.html#distanceTo"},"L5iLCtl5pPG7Hug5dDbzv":{"uri":"/melonJS/docs/melonjs/Trigger.html#draw"},"o3pZAx8CcV9q0q6_Cb1rd":{"uri":"/melonJS/docs/melonjs/Trigger.html#equals"},"ooZ5EVVgjaG7r9IQGEGsX":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipX"},"L4rI7kdHcJiKknaxpsOea":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipY"},"866xGkIa_v-BabVeTXD1t":{"uri":"/melonJS/docs/melonjs/Trigger.html#getAbsolutePosition"},"uN_LiGmVEiqBZAkzbOmej":{"uri":"/melonJS/docs/melonjs/Trigger.html#getBounds"},"-gdD-XRvhelebytn6Cb66":{"uri":"/melonJS/docs/melonjs/Trigger.html#getIndices"},"nPMzipHbxZ0rPuQtNSePZ":{"uri":"/melonJS/docs/melonjs/Trigger.html#getOpacity"},"dnX72SI7Ffrp9vQAVxMF2":{"uri":"/melonJS/docs/melonjs/Trigger.html#isConvex"},"c9GVzuyvhqSM9dtqzX1XN":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFinite"},"oPJDSRSEjsXTpoJ6cGtar":{"uri":"/melonJS/docs/melonjs/Trigger.html#lookAt"},"k9bacxdyWi3JoxMbuoBxD":{"uri":"/melonJS/docs/melonjs/Trigger.html#onCollision"},"8cT1_DWXkstVbCimfkQ6O":{"uri":"/melonJS/docs/melonjs/Trigger.html#onDestroyEvent"},"jCw2XUkbfFm6SWMDRivF9":{"uri":"/melonJS/docs/melonjs/Trigger.html#overlaps"},"guGO0yruZwkIFztIoJix4":{"uri":"/melonJS/docs/melonjs/Trigger.html#postDraw"},"XiuGlJTFvndrReTT_r9B1":{"uri":"/melonJS/docs/melonjs/Trigger.html#preDraw"},"-J__eecGl3Ou1GuyI86bh":{"uri":"/melonJS/docs/melonjs/Trigger.html#recalc"},"1tpi5H2AejaZebYytHOmR":{"uri":"/melonJS/docs/melonjs/Trigger.html#resize"},"70UFLiDVPgY5MrdgouFvR":{"uri":"/melonJS/docs/melonjs/Trigger.html#rotate"},"J2cS-0-UkvK7nmtWlD2O6":{"uri":"/melonJS/docs/melonjs/Trigger.html#scale"},"GqfXxTNa5Q9r1yyOFnD5k":{"uri":"/melonJS/docs/melonjs/Trigger.html#scaleV"},"0CS2p2lEs_vMrh2995Z5x":{"uri":"/melonJS/docs/melonjs/Trigger.html#setOpacity"},"WSlzAu48pOMJiTkveU8a8":{"uri":"/melonJS/docs/melonjs/Trigger.html#setShape"},"r4juziEnMlBp2Xtyg5VRc":{"uri":"/melonJS/docs/melonjs/Trigger.html#setVertices"},"BK8sjIDOoJtZMV7r6-m-q":{"uri":"/melonJS/docs/melonjs/Trigger.html#shift"},"-MDO0Xb4v2HWBpQCWRL7F":{"uri":"/melonJS/docs/melonjs/Trigger.html#to2d"},"ekUOPGq_hV_HAN0la39o4":{"uri":"/melonJS/docs/melonjs/Trigger.html#toIso"},"vcHw32u-k1ClTXFWYLcUa":{"uri":"/melonJS/docs/melonjs/Trigger.html#toPolygon"},"rwcV_YNBPUucr3hGrCdiR":{"uri":"/melonJS/docs/melonjs/Trigger.html#transform"},"dTCu-VfKdONdx8S760G4A":{"uri":"/melonJS/docs/melonjs/Trigger.html#translate"},"TNhFB8oqTi34ydmQ6_iXs":{"uri":"/melonJS/docs/melonjs/Trigger.html#union"},"VLrq8GThnyc35-Yl5ZL3E":{"uri":"/melonJS/docs/melonjs/Trigger.html#update"},"MDqm81EMpjCaP6s6MgkwW":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateBounds"},"wTxtG8A126Cvpduqnu03I":{"uri":"/melonJS/docs/melonjs/Trigger.html#triggerEvent"},"r6iEP-9gWL8MUpJJoSwdt":{"uri":"/melonJS/docs/melonjs/Trigger.html#onAnchorUpdate"},"G-eWykkpfzKhXKxlRWx7D":{"uri":"/melonJS/docs/melonjs/Tween.html"},"za-9RAi4ZV9_UsNly6ljM":{"uri":"/melonJS/docs/melonjs/Tween/Easing.html"},"0koD2uUrk8XOKr2ylZq3c":{"uri":"/melonJS/docs/melonjs/Tween/Interpolation.html"},"UllOt4UjTwJ7eZ-lOm61t":{"uri":"/melonJS/docs/melonjs/Tween.html#chain"},"obY29EvAxsBSWaV3Iff8Z":{"uri":"/melonJS/docs/melonjs/Tween.html#constructor"},"o9GXFU2KecAarmqEO4OM9":{"uri":"/melonJS/docs/melonjs/Tween.html#delay"},"-KqFnWowIzwh9iF3epCHp":{"uri":"/melonJS/docs/melonjs/Tween.html#easing"},"7SARksqlmmkVPvFCc7MII":{"uri":"/melonJS/docs/melonjs/Tween.html#interpolation"},"WiJK7ENHNA94meLULUYc2":{"uri":"/melonJS/docs/melonjs/Tween.html#onComplete"},"PhxCZQykZOy4eoPpsBk9F":{"uri":"/melonJS/docs/melonjs/Tween.html#onStart"},"Cbndv7abjEc2OXisF_7Lg":{"uri":"/melonJS/docs/melonjs/Tween.html#onUpdate"},"UCbxmUW25BIiKq_XTb7OW":{"uri":"/melonJS/docs/melonjs/Tween.html#repeat"},"Fws3Y-VX2bfSzJUB9qACm":{"uri":"/melonJS/docs/melonjs/Tween.html#start"},"ucTHcLPuUGuGu8hlDadxx":{"uri":"/melonJS/docs/melonjs/Tween.html#stop"},"xHIc5i01vhKX1qABxZ7Sh":{"uri":"/melonJS/docs/melonjs/Tween.html#to"},"m0t8E8utJ-G7u3ZijofLi":{"uri":"/melonJS/docs/melonjs/Tween.html#yoyo"},"so2WwLfNSwKtTst30RuAa":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html"},"XcZAe5PnI7YjYd31kxplE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alpha"},"n_qW-NimiHl51Go1ZLSGF":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alwaysUpdate"},"o4dYlO_vUEI8rdzEQvyA-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#ancestor"},"FAgYz7iYu5R0fBBmPL_hz":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#anchorPoint"},"IGhx-F_d6tzczk5gqm_t0":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoDepth"},"gLmsMiExrrGo8MRw3hJvw":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoSort"},"rMh49nsDGV0dxmL5nj9q0":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoTransform"},"nOgtGptuN_XiFHUV6YyGJ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#backgroundColor"},"BG0kHXAhsvXcPcdr2WEtU":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#blendMode"},"VU3CnepgnXqeW8ScaRvCr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#body"},"RqmEMvFOea67BXViaxFnU":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#bottom"},"XVbWe88xTJXKtS5m921Mw":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerX"},"Vb9QD9fmcqm9NR5Tq_94T":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerY"},"LQ7KFdwN_d5CtZZwqRl6h":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clipping"},"972-ZhYkAU4MOLIkd7Nfz":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#currentTransform"},"yF6CioImM5bx0YRsBTzxl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#depth"},"Q5RKs8f38pljEGQnmGc6H":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#enableChildBoundsUpdate"},"3BFsxTYimz5qPuD8B6SdB":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#floating"},"4YoMarQKNkmjdTepsToOm":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#GUID"},"1qF3zmfSgTrliifsJL8bZ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#height"},"vX1cI3DaQ5MetNKISy_zy":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#holdThreshold"},"eR9ajMMWr0qsAeUzYMz1-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hover"},"vgs1z5slM83F5gYcs2KqZ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#inViewport"},"jyT8njvD35XF8d7E-D5hk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isClickable"},"5xfQr67UTAkBKtKVcYG3k":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDirty"},"tdF4DQ9hejQL1Q4UWcaiv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDraggable"},"UOHGOP8_ZtD_X8eXjU73-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedX"},"tRREHzCc3Lm7INwW5ktB3":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedY"},"oQBC5j9voBbLAcdZnWqkx":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFloating"},"cCpifuwPSJATRJ6Yop8AS":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isHoldable"},"9XZYHWcygBFbe5xapy7vt":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isKinematic"},"hjVARjkupGycvQUOOxWtX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isPersistent"},"LMfxLCKClv3JIrchRAr3H":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#left"},"QSIN3Xtfra_TM80vhLRt9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#mask"},"rdqH6qLNa-hYsi1AzYrRr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#name"},"tjP8zej6hkx1GvFBX5xH9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onVisibilityChange"},"golVKuN9d0U99JukG4WoR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#parentApp"},"Z4m8TKsWfEVJg09yVL4rB":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#points"},"TxNoB6eInkmXreM5mklbh":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#pos"},"tqp_kS-FAlemRNs1_w45o":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#released"},"yq62dlpz7LuGmBXJg1u9G":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#right"},"lU0PqiRGFjvuMaRcLQFDk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#root"},"RbVNUrMtlYcvcvm543nIk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shader"},"oWbbg4nyUITE6p49nhbPt":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sortOn"},"FXHXUJ4tKqwqv3tgvolV9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#tint"},"GkSZsdS8BC9ZtnAsRHUAg":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#top"},"KeZqSNSsbw14M0cEB77om":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#type"},"lPoAyUwXLhFd1lk1YAZi4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateWhenPaused"},"qe64eNPhFF88YvCr88_06":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#width"},"XtvjueQSmRJ-x6Qsb9QIb":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChild"},"GxOT-Hgr4-TVgNvgdr2vX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChildAt"},"JEOnwGGFMHyfwxqI5qMOX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#angleTo"},"WzpIDg8QUh0Hyu7HKnK9t":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerOn"},"MaDpH-6XO6TNZSk8ZO4iB":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clone"},"EsWFWujLOpou3JsqsJnVo":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#constructor"},"UqZPaI6A3Mc1yj9RhefK2":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#contains"},"IJuMFh9p8dymGphFVjuof":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#copy"},"o1oj2WJRGk_xQYunDus8e":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#distanceTo"},"V-l8PPpUa5dYL0shNsWR9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#draw"},"mh8Aq8xSiC8JZkCYZ2nG1":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#equals"},"ZOzGekzYBeUYc2iVgJI7Q":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipX"},"TNhb0271_APUSyR6Jy-QO":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipY"},"IqI095dJhjBmRvkcWpx8P":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#forEach"},"A49Sefs6CW3PLZ6D0PEc8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getAbsolutePosition"},"FMYjZJGvK4-lPscGhd7bv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getBounds"},"qyyHPPbuGNCnO6_VF4oe3":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildAt"},"5xQG6NjUcH_Giuito26Pp":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByGUID"},"2kOrEay1AASF619YVaDSE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByName"},"fzxhnglMW2O122-K2g9qe":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByProp"},"xAN9rnN8Dj7KhT0wTt107":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByType"},"u3lRjTzl-L-mMaZgiEO48":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildIndex"},"AoX6WSH4IlwDRWOUWP7l7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildren"},"fOyzMnooeHpPDIkojAZ4X":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getIndices"},"evqqHErdj1uo1eO_eJfsE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getNextChild"},"NXNSl3EE2RBV8mpbJHBHM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getOpacity"},"DO0W2xMgROfJVzva02y0K":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getRootAncestor"},"YNgebvYXbC9ig2m4nv_j5":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hasChild"},"M-OzyCyw7QcC6xt9QwasN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isAttachedToRoot"},"w1GWXps-gj6zu-yifYTM9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isConvex"},"5RxWVlsNuJuo1oWuCtv4n":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFinite"},"xPYaruYd5_1GD6zGyLjtj":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#lookAt"},"RHjVH2-q_U3EQH2GYsbuR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveDown"},"G5a0-3TIdMuPefR-aZ9WZ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToBottom"},"cwyYjox7DnvmEiSRowbTA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToTop"},"fZaf4zS3s00nfC_5Bmv7f":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveUp"},"yw61kM8Aguc45-L-9xD-j":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onChildChange"},"Cf_0pRFkxKtMoULIUeoOW":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onClick"},"tPzknUkZLTZQgDbD2jxVP":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onCollision"},"31WrbN2yc7ZtEpQbEoO3G":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onDestroyEvent"},"uF8Zhb5NH0DgJ1EpAYl4H":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onHold"},"7CGq0wnBadOtYdKIbml8E":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onMove"},"eLccSZ9alfl582bv0ojd1":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOut"},"99CQ1VB6yY3aCM8EEzOCc":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOver"},"1_97aXV7ljTrqgApTUCDb":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onRelease"},"O-ZY-Y1r-hADFGG3YKE1a":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#overlaps"},"2gEPNgA_zvxxwxyo57usK":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#postDraw"},"YBJc3fI6N8O3fHIjuQpAs":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#preDraw"},"3JqkntpfpPQXg5cUKYmsq":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#recalc"},"eskXJPALGp9tchSuEDlVl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChild"},"6Y2rJYnL9I1O1iEUXYU4J":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChildNow"},"rHJbfQc2YZIXoKu5Ye79C":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#reset"},"jFvVqowexP_4gyuJSltF9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#resize"},"BhaZHPyYKLjc5mnIyHPYs":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#rotate"},"4zrDVJA5ixT25uI5FHGeo":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scale"},"NPcmn8vvhNwyN7RqxdNb8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scaleV"},"UFxwj250Cs4_P0SUiGzmf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setChildsProperty"},"Hmf_SfAzZqp4RL9Eua9wA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setOpacity"},"e2LxORsy7aMI3fNa3BaPA":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setShape"},"6RiRnOJxgLJLPfsiZ9O_q":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setVertices"},"4b0HC38suG5Xos5q5jI9_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shift"},"XiIFEsQdWIj3ny6UQ8jpx":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sort"},"b3NcLyyEh9e6fm-4pMPdR":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#swapChildren"},"GG0kQF5LUy5N6zUncUWBz":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#to2d"},"ehd5Vkyw7HDc1LEAHFCa_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toIso"},"WL7Ml1wsgJpO1Kosa6xcj":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toPolygon"},"Cu2Br33WUnILRkyl2eWue":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#transform"},"2XiQRA8c865XHrBnrbMjf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#translate"},"rFSAwzLtJtsdSqlqq4mNu":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#union"},"Kt5VLm57hx57vTD4xP5E8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateBounds"},"jh_Dev3K7wiU3EgwRt_5Z":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#update"},"FLexzgduvZh4LaUpCh8fc":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onAnchorUpdate"},"-sC6FS3iJrE5DSY8XAn8F":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html"},"d3BLBtrIEGFWTcDodl7qT":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alpha"},"iTw3FIoTxd5PZpMXRwzSj":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alwaysUpdate"},"kfiRC-ksGvS1LXzhSefmz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#ancestor"},"cSUFC-rKcYZ1WnnIpKe1K":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#anchorPoint"},"Nc1-GvCMqy2sEK_Ibdkhw":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationpause"},"Mtztj0Iv7tOZkfnjaYsqM":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationspeed"},"yVFXxvUZwPAPthvJVhVtF":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#autoTransform"},"kfZT5pEOmx3mYeH7OJFHs":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#blendMode"},"hr8hz9kTXKBCwauaiZU4P":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#body"},"c2cMRF0ZLl4gkpLerkHBq":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#bottom"},"UYlQxEakg4xW9Wq38tvRQ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerX"},"oU8pjKBIMSwGkHOoh1oWt":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerY"},"zXCGmczFNEDqPasr0Ntxg":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#currentTransform"},"iKExsIg7WM3N7GSvlnjHb":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#depth"},"tzz7IRrTrjSiTCMf6YNU5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#floating"},"dRsUzXBTUdo4sO3qiCF9D":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#GUID"},"BrjWbpKHwunc_W99Q9RrL":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#height"},"qgJ4yBZrn5j0gwr8ekldq":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#holdThreshold"},"bfedqdoSnKd4ddP2zeQQ_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#hover"},"OcXX9w0Q4RCj5ZySCcaB-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#inViewport"},"QgKGoWMgfevQgsiP2SCAH":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isClickable"},"Q8v16PGHHHDiPtrLhvq97":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isDirty"},"eUbhesAihhhxmxqTT4Ovz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedX"},"NW01TdYkGTI6wAqvn79jZ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedY"},"sBCuMOK2vhZwrF2wC_x-p":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFloating"},"7i1BLGtcPrgQNEzy6qgz8":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isHoldable"},"AxEFu1wKODW8HN6I6J-LM":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isKinematic"},"d7L25Tqn-ifMS68mmqnV_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isPersistent"},"WHhEZX5GltVFYQn29oIzQ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isVideo"},"GWN5NCRBr3cDgmjZSBQWZ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#left"},"eU4rBFT8-91qc_s65WWUT":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#mask"},"2nh1TFlxV4am7uwhbBuKL":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#name"},"gx_1cEWTAMXgBxxidb8zo":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#offset"},"6lLZK4SNdOv_XR-_z6nFm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onVisibilityChange"},"d4DyTXB2hnnkGxMIvJkIf":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#parentApp"},"8nd3eKq6zQt-XP5aYvrgN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#points"},"cDEE2cZy8bVLbsZpPh7au":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pos"},"RhGgCGhW8bkH-_ZEPvseb":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#right"},"jOK2OczQ4BTsmRhGiVdS9":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shader"},"5tpcBXcKOzvTfNTPKwZuO":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#source"},"HpsWk9OvkLpcIyK5A8zWG":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#tint"},"ckyFbuY383DEEwf7iFITN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#top"},"JgiweSFn3xtyRcCt4YuvN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#type"},"igp5X9JKucdmfDP8kWJym":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateWhenPaused"},"YxzowCFkkFqo1yQFYGu38":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#width"},"iS4xf7WuSGSuGFqf-yV_O":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#addAnimation"},"ZQ91QPHOYGIRMJZM093NR":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#angleTo"},"FyTYBJqXGBlNpU9Urh5-Q":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerOn"},"ZpyVkbzIexVMEbOpK2daq":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#clone"},"C-GvaxQWfst-rKVWz3aCU":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#constructor"},"o9AJ0j78kkCoyniKQjXth":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#contains"},"tw4ziyaXginKaiLb56K7H":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#copy"},"IAAez6xJZ5ePmlpAVuyas":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#distanceTo"},"KG5adM7Z6b8MU2IRr5DCw":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#draw"},"Cg-1VxMcXJ4L6LhLgNlUA":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#equals"},"ZrqZVrteAPRWoK8lB-yYi":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flicker"},"QxZOBaxPThDBtnnOszaLI":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipX"},"tg3b0949aKdHAKtuFmJRH":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipY"},"I_84DZvOhLd9rk0NxV8_w":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getAbsolutePosition"},"2X3bdaOYv014qiYM2mqNw":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getBounds"},"goj2DWmnL0lItMowhcUK8":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getCurrentAnimationFrame"},"Hrl8bhMNaEjVEJjwnBmFc":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getIndices"},"4j4S22DckcZVW2yB3F1Je":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getOpacity"},"s4wh0YnnNDtN6Yy_Mn78R":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isConvex"},"CGesfVD4GanteZ0xTnrKz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isCurrentAnimation"},"g098nwCOR8f2_A-8zlTJb":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFinite"},"Q1bRHxJdXIVsqOcVq1qjz":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlickering"},"A3TzOYOaLQAD2R_rif8OT":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#lookAt"},"qAOQ8dwBah0mq7t9hWLcm":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onClick"},"xskeZh-5s1jXT2b5t5tl_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onCollision"},"dYHYpIpjaksb6qKXQpK6s":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onDestroyEvent"},"-Gj071-7eVc7MnZZat3RM":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onHold"},"rgCIDNtFC7oMDH3CXeZhq":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOut"},"wSBwpjySZIEPBgTWfrnAy":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOver"},"iTNgohyESv6VPilhTOr7i":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onRelease"},"vMqi7WCJCSZ3-LjGk_t7T":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#overlaps"},"OS3UAkFFXHkFPaj-tVyM1":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pause"},"oBGcIR-tdTa3aNWoAKRC2":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#play"},"F2UJFMKXqOsQr8pqsXoY0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#postDraw"},"mFwp0-0tRClTqYyyu9U-O":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#preDraw"},"diFfjJQlrR9clGg9N56b1":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#recalc"},"J_Sh9QimLG-Mh4fKnXazl":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#resize"},"7bGoDoR-dtQ2IxoVJw4ar":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#reverseAnimation"},"JLmVNc1mO19e4Gj2QEFNk":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#rotate"},"hiuvThB2CnuoiD8mIdiYS":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scale"},"tfnbEqrGmFTdeMbsQxvn1":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scaleV"},"8wjBLa9ZBJXsrvO28IgF3":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setAnimationFrame"},"WnLpUtWTilqKR7jeDIxM8":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setCurrentAnimation"},"RILb2W5f_sh292msJS_Rc":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setOpacity"},"kLW2DLtWxi0ZMgoz0K-nP":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setRegion"},"2jGEVSIryWAhz6Zbkbux8":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setShape"},"NKYluyAnp7kwBje926794":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setVertices"},"YiXOy0UZWtFquX9ZLzfMt":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shift"},"LZ5oLy07ZKrPZff14wTku":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#to2d"},"muKUtxQ5yfdlR0x7_D_oH":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toIso"},"-e9N4gwOlkuIvWx3HQ89I":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toPolygon"},"3A9Q4WNrNjgs0Wz8_9imN":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#transform"},"nZV7ORdrSiN21KuD2Mzp1":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#translate"},"BcOwNZDok_t6xyVAwF67r":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#union"},"iTRKla_Nj-EBcp9FPmnZr":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateBounds"},"jstUFmJuz0X97SPK-pFnr":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#update"},"gM9ezdNLJ-QIUWg5pA6wp":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onAnchorUpdate"},"6Ol8J2lcKLVuY9vR2dM5a":{"uri":"/melonJS/docs/melonjs/UITextButton.html"},"NoOtghzUKA2vZwl7M1rFV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alpha"},"c_UmcYKyEZ23Ec3YqNSN_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alwaysUpdate"},"f_yPUyuAcoZZuKvfw4KhW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#ancestor"},"PIC_upS7_F-bB5_SIPL6S":{"uri":"/melonJS/docs/melonjs/UITextButton.html#anchorPoint"},"4vIj2b6nRHd0DVrhPKPR5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoDepth"},"A8Xbe6S_ler7taywaLrDp":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoSort"},"aRtnGj0H98Vr1fR9NalzB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoTransform"},"_JAM6WwbpgzD1gZ83LDi1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#backgroundColor"},"UBg8etYElD_ROfzOYOhon":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bindKey"},"rIh9qrday2fLCo7WSElro":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bitmapText"},"HCgCThMREAvnEnZ95EdSf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#blendMode"},"SbiWHLs9ygwD70KrVuLB1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#body"},"HlHls6-uY1GY-GN9Z_Med":{"uri":"/melonJS/docs/melonjs/UITextButton.html#borderStrokeColor"},"lZDKrBSD52cG9qVnEojEi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bottom"},"bf7cuffnSwxba0cT1Es06":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerX"},"GjZvkK1Ky8jGf3iR_EcEO":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerY"},"SBWnbOf_vNvQYGqH-xx8N":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clipping"},"lqGj2GpmzQxhGhplIgj0x":{"uri":"/melonJS/docs/melonjs/UITextButton.html#currentTransform"},"7RxS9zPZEU95AhcezpljZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#depth"},"ihDeqUUS3r9V5cY-1ZNNu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#enableChildBoundsUpdate"},"BspZoVXWUor0Nl7L4xlm9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#floating"},"XQV29Qy31yTz2tJ0r8fK9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#GUID"},"xEjdwbuM1MYx80lqpNtW7":{"uri":"/melonJS/docs/melonjs/UITextButton.html#height"},"ABP8LfIzMbq0HoPjp74ug":{"uri":"/melonJS/docs/melonjs/UITextButton.html#holdThreshold"},"qM7ZTnOZBYoOIndxq_62t":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hover"},"kLr1p3CNxrPvCHG9a_Wrf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOffColor"},"nzD3I1DkAQSQ6np_K2vBG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOnColor"},"30BVKxw11u3fzau_PwHfD":{"uri":"/melonJS/docs/melonjs/UITextButton.html#inViewport"},"buHAeAGO8GAILPfyMV6wB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isClickable"},"PLZUGpY5blk4wuyq_zglo":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDirty"},"VPQoL1gHS0jkZAUQ9nFzV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDraggable"},"W0e475gBitdAhGX28e9io":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedX"},"eV3QGfN8AxpnDA-fB4vq6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedY"},"wJtEyKLJA1TfXrs7yDAhX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFloating"},"hBaa__gqSy1csbgD2PsiP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isHoldable"},"MYK8cnxVYkIcHceMBmrtL":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isKinematic"},"mEBeVhftk-OhW6JJ16-K2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isPersistent"},"VmasfG5rz49HN6urmP-hx":{"uri":"/melonJS/docs/melonjs/UITextButton.html#left"},"yHQUA6koxwsggGIOhcu3Y":{"uri":"/melonJS/docs/melonjs/UITextButton.html#mask"},"f0YO7diU7JQbPNRp62Yrv":{"uri":"/melonJS/docs/melonjs/UITextButton.html#name"},"7rFq2PSRNKPtg9bP4WD-1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onVisibilityChange"},"AwBvy5QTmGscx7UNnEjeT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#parentApp"},"8S2yzVu5elJl-MtRxIypm":{"uri":"/melonJS/docs/melonjs/UITextButton.html#points"},"eAnabAEmeChUt1rJGDdES":{"uri":"/melonJS/docs/melonjs/UITextButton.html#pos"},"JZge8Vd5T8izlJff9qEfG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#released"},"5EITk9WpqV9s9wrSwiuF4":{"uri":"/melonJS/docs/melonjs/UITextButton.html#right"},"UXBtoObkcYdjItjrAkpVc":{"uri":"/melonJS/docs/melonjs/UITextButton.html#root"},"A55QAldD0s_EeT3zLEZtT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shader"},"iGuNb9l6Y7ry7ayTbddhQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sortOn"},"wfUI6GKU_ZN_J-gQa7qkt":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textAlign"},"oZrrR_s3AX-Xt--gRXuuA":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textBaseline"},"dY7OmuakeyIARfDaPQzlz":{"uri":"/melonJS/docs/melonjs/UITextButton.html#tint"},"AeyDJ1dtzmbDZ9cG_I3Se":{"uri":"/melonJS/docs/melonjs/UITextButton.html#top"},"qX_Z3ZbZk7dHZk45r8OrZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#type"},"KW2i-Uzph7ed7W-NXUKBA":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateWhenPaused"},"ZItnqZbWQJBzSZxG_izyW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#width"},"zviELzG-yI_VJrRnvCgrC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChild"},"AkQJ9Jwo9W-Ij4Hpvft7T":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChildAt"},"v-xtsIXXdQ7vnExrqRlPR":{"uri":"/melonJS/docs/melonjs/UITextButton.html#angleTo"},"UonNNKWaAaGjprBcir-T-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerOn"},"6Ux-aq0nV0LUeDOyS1hbo":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clone"},"cDDhti6RJy7_GIYlPwcEb":{"uri":"/melonJS/docs/melonjs/UITextButton.html#constructor"},"bqLXBa1bC7SzPrPrI5IgG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#contains"},"-xAxGuMa53QCtZ-xL3V1w":{"uri":"/melonJS/docs/melonjs/UITextButton.html#copy"},"gah9nPM-pXFQe7S5MpLHG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#distanceTo"},"x8PWftvQ_T8jtVX6CUrbE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#draw"},"mk4WnvBtuvVPLNeQ0yCq_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#equals"},"GVxJaAtquIEcPqG5syy6m":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipX"},"EUGsyzocZktx__PptxHp0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipY"},"fGYfv7GzC0iUEHYWej9ea":{"uri":"/melonJS/docs/melonjs/UITextButton.html#forEach"},"yiKMJgTkL1j-w5My26MRs":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getAbsolutePosition"},"eUhHAIv1e8mU2DoZpRibE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getBounds"},"O697CIaLb7mo4JowIaxxa":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildAt"},"qwv0eZzEQcXWS4sJRWiT-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByGUID"},"u_i_N1PPV6FTU8DVYD9l0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByName"},"OF7nbFpDrv4C_7HsX_Kbh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByProp"},"E40T9oZYAAYhW5AKBoHjL":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByType"},"-MsxhexGBiaK68XU0-Fb9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildIndex"},"0MdX0E9gt4o_o_LuF9C4w":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildren"},"wFNFe7MB8LzFWCQhEOGjA":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getIndices"},"PTYtdsj9-CsQ2E6Bhizkz":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getNextChild"},"rhTq-LofaLCowKDs1RmkG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getOpacity"},"bgaziPWn9QBwzTV7KGz2h":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getRootAncestor"},"PUtyBLziWL1XMor8Eg9MH":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hasChild"},"p0Ybc1cuJSxFSOSyUqKNX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isAttachedToRoot"},"eXAr11ZM1DaIdb1sSGnJf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isConvex"},"F2EaNBvRUivKGHj8wZPXg":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFinite"},"wEHQX4vLDIGR7EcU_6mBo":{"uri":"/melonJS/docs/melonjs/UITextButton.html#lookAt"},"EVG553z6OXS22vzJzZ3we":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveDown"},"5_oK7OkkFy3AfjvyHaRpT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToBottom"},"Vfd4ocLE_00aFDJG3r_f8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToTop"},"Z6Xxqjf2m3kCS4yxi4C4h":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveUp"},"-gHqPoiw98HkWgnQTzL27":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onChildChange"},"lP5VjpntlexVJ6sOrhAvV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onClick"},"QT7dFsD1l9TSGUsEs1SZ3":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onCollision"},"g0XPjDCJwMVPrMD7F389e":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onDestroyEvent"},"sCTF4c94nzrG5ELYcuCVU":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onHold"},"xAMq_eZssVxfLa-OW03Xu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onMove"},"EI8GkM9Tl7teQZOPVdVU6":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOut"},"SJtN7NbZnjsRYxcVWKuPq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOver"},"A8ddtemgIuva7-tZjYbr5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onRelease"},"8oTT7xukgO-AMQK1bO4s0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#overlaps"},"8aOYrjr0ht7tYF7jghWKg":{"uri":"/melonJS/docs/melonjs/UITextButton.html#postDraw"},"k8HJ9YS_GY0M-OhbPspTY":{"uri":"/melonJS/docs/melonjs/UITextButton.html#preDraw"},"DS6qZOvD1Zy05lkHk7qnh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#recalc"},"1ALy3NX7JwxokU_Fe-FYe":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChild"},"ZdcMT11j8Su7tiHq-Aj_w":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChildNow"},"zL3PhBgTcn9RSJk19QFOC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#reset"},"OKPCquk0uj-WbbK1Pd7oH":{"uri":"/melonJS/docs/melonjs/UITextButton.html#resize"},"AB5hc-BXBKl4YIqZ4EBun":{"uri":"/melonJS/docs/melonjs/UITextButton.html#rotate"},"fHIiRUBrIpgOocN_APc93":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scale"},"YaQSVhs0mcsQWp5fo_H_m":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scaleV"},"BGg3uOeAVbijIswpsSegW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setChildsProperty"},"ABeW7PZpp-otdlRjY4rAc":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setOpacity"},"IdTmWbwygJj7UaKJM8bJz":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setShape"},"qBJd5b8sm1RYFGF90iiZp":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setVertices"},"xrJKymecDx3VS4R62nRba":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shift"},"uMNHlOSMsn51D49KfUPOu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sort"},"GYbgxGCtVeXbZVSW_dOPb":{"uri":"/melonJS/docs/melonjs/UITextButton.html#swapChildren"},"O4eZWjF3TjCjL9r7Df96N":{"uri":"/melonJS/docs/melonjs/UITextButton.html#to2d"},"yLfpP3uxvWY6SwaccbW2S":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toIso"},"mrHka0s-Ex1UqLJzqUctg":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toPolygon"},"1blcwQI39i9t2KH14XKEf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#transform"},"ovMc6T1tNj3lKxr1_il0F":{"uri":"/melonJS/docs/melonjs/UITextButton.html#translate"},"NG93kb1_KtYLuYeCU3-Q8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#union"},"DWs4TjDLBJcdphDV0nH-i":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateBounds"},"6W7EAicGkNirMDN9z8K2O":{"uri":"/melonJS/docs/melonjs/UITextButton.html#update"},"yor7T-JCkTGeAysuyfoj_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onAnchorUpdate"},"w1DPBdhCZ4hZ8SFRnOhRV":{"uri":"/melonJS/docs/melonjs/Vector2d.html"},"p3OtEq_7apP4O1PknLycH":{"uri":"/melonJS/docs/melonjs/Vector2d.html#x"},"XNmKPafj8L3qwFjh-8ZCy":{"uri":"/melonJS/docs/melonjs/Vector2d.html#y"},"-KJYZ7QJOt2H4HzPt_y8m":{"uri":"/melonJS/docs/melonjs/Vector2d.html#abs"},"mKqghHUM-9Dls4G0Olxya":{"uri":"/melonJS/docs/melonjs/Vector2d.html#add"},"VPdbZI34aB-CnMl0KQ9fH":{"uri":"/melonJS/docs/melonjs/Vector2d.html#angle"},"hj9dEf8dj92PdUvKw3xpl":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceil"},"qxUwiKHidwOIfre0nuEGn":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceilSelf"},"OGyygcFqhU0-Vcyn9XMqI":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clamp"},"f5nfSvFJlTH_qtinK26Nw":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clampSelf"},"bNuprQbbtEe2GtJszLMqW":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clone"},"IP0mJvAeGKmmlTTs_vveT":{"uri":"/melonJS/docs/melonjs/Vector2d.html#constructor"},"cF-loQa59duK6mta1Dkji":{"uri":"/melonJS/docs/melonjs/Vector2d.html#copy"},"WV7U-C9iQGNu9PmXXNLwz":{"uri":"/melonJS/docs/melonjs/Vector2d.html#cross"},"5S3f_ML3LjM8DR6ByluK4":{"uri":"/melonJS/docs/melonjs/Vector2d.html#distance"},"WQkw0-cwV5RYLBv2zRNC0":{"uri":"/melonJS/docs/melonjs/Vector2d.html#div"},"y_rcuWz-v6BwQ75B5enJG":{"uri":"/melonJS/docs/melonjs/Vector2d.html#dot"},"rBST5dLXCo3PGbKlpA0HS":{"uri":"/melonJS/docs/melonjs/Vector2d.html#equals"},"xrxv1MHz9eFUkKlYHZ1mY":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floor"},"Ry-ENsTP7aR1WwXkeL1k7":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floorSelf"},"Jcst1JNACOImiAeDv726b":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length"},"oiX5XdejBD2oV56GUeaYt":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length2"},"ddgyLWExAaXQXtxqW2oPe":{"uri":"/melonJS/docs/melonjs/Vector2d.html#lerp"},"6zVqOyTtwYncGsMF4zEno":{"uri":"/melonJS/docs/melonjs/Vector2d.html#maxV"},"-x4aOf5WJQX1dyDDZ9I6Z":{"uri":"/melonJS/docs/melonjs/Vector2d.html#minV"},"pxG95OGLd3G-VP0Xm0fd0":{"uri":"/melonJS/docs/melonjs/Vector2d.html#moveTowards"},"wK032il25Bb2lHDesQmF3":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negate"},"8mEsngyb5_4QumInxcbRx":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negateSelf"},"G0qwsUu2DUbeoqA1-hoLO":{"uri":"/melonJS/docs/melonjs/Vector2d.html#normalize"},"eKXy8rm762yy7CUUj8Gvt":{"uri":"/melonJS/docs/melonjs/Vector2d.html#perp"},"oGMy7yBMtTkdbE_DX0fZO":{"uri":"/melonJS/docs/melonjs/Vector2d.html#project"},"PICidbhtwerZC0o07l32C":{"uri":"/melonJS/docs/melonjs/Vector2d.html#projectN"},"QkCmYJ1eTYo7VWC2GfvG-":{"uri":"/melonJS/docs/melonjs/Vector2d.html#rotate"},"h_JzBZc7iRadktX3uvWk3":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scale"},"EBLL_iIIOJzwksTQJeBe0":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scaleV"},"mZMY1AE_AKpLkB9kZeH9a":{"uri":"/melonJS/docs/melonjs/Vector2d.html#set"},"wueqY4JIbNT_YzGkAwgqQ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setV"},"x_W7ltfJKz0WfIOY6IT9E":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setZero"},"QcXCWw6csAikOACjL7PId":{"uri":"/melonJS/docs/melonjs/Vector2d.html#sub"},"yY8NTLSwgVeQFr_8IRQ78":{"uri":"/melonJS/docs/melonjs/Vector2d.html#to2d"},"x8DCHhPZDQe6muYDLdpc7":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toIso"},"aKbn_KYJ6xKDFlN4HtYkc":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toString"},"BRbCG-exEVZmGdkach66z":{"uri":"/melonJS/docs/melonjs/Vector3d.html"},"mH-VVj08WbKexwV6C2V67":{"uri":"/melonJS/docs/melonjs/Vector3d.html#x"},"oiqJewxerZlCzCGO8G_qC":{"uri":"/melonJS/docs/melonjs/Vector3d.html#y"},"jWOWYWnxJvQXvF6RfNMYe":{"uri":"/melonJS/docs/melonjs/Vector3d.html#z"},"UmabpLFzXGC0G_b2l-xww":{"uri":"/melonJS/docs/melonjs/Vector3d.html#abs"},"-iE9XjJj9X9jW5bYQ61ai":{"uri":"/melonJS/docs/melonjs/Vector3d.html#add"},"_wv7YfxkYtDWrrctzKi_y":{"uri":"/melonJS/docs/melonjs/Vector3d.html#angle"},"uhPOP94QRFj38SZBhEIr7":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceil"},"ksvsRAaKzYTq1Z_P3pRKx":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceilSelf"},"X4G_a0iE7KO-UC2ydmsKV":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clamp"},"kRERDeCZTGZvdLGUjUy6X":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clampSelf"},"U6a_UcOUg54retPzUv5Zx":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clone"},"nrmqvkMnLtd-K2ivhSAFl":{"uri":"/melonJS/docs/melonjs/Vector3d.html#constructor"},"8lbHhzEhx83DAd52-vLbf":{"uri":"/melonJS/docs/melonjs/Vector3d.html#copy"},"4rHXrpkO9ZJmhHXmAVQD7":{"uri":"/melonJS/docs/melonjs/Vector3d.html#cross"},"lg-k-2PDJUg7Av4glUF-e":{"uri":"/melonJS/docs/melonjs/Vector3d.html#distance"},"RbjoX_kMnJyB_Y8Ln_IDH":{"uri":"/melonJS/docs/melonjs/Vector3d.html#div"},"oqPcnAGIr5oA7UYOUtOGQ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#dot"},"mo3h7TwDsu9nAIZb0VMqi":{"uri":"/melonJS/docs/melonjs/Vector3d.html#equals"},"xM9HsJoZ9qciGnKRdKyV-":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floor"},"0kmdrkAkKOMO5IAeNTKec":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floorSelf"},"ViJv-E9zOCQNTY0-vCA1p":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length"},"EGwguRZDX9cw-E-Wpo1Da":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length2"},"Kmg5BsrfZm5o9v3jlRzFp":{"uri":"/melonJS/docs/melonjs/Vector3d.html#lerp"},"e8WeRMzICUtyXR9HeotvY":{"uri":"/melonJS/docs/melonjs/Vector3d.html#maxV"},"uKfJywtc8w1om_WSSewiQ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#minV"},"6dSREpn28TYy_NGgOvhbQ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#moveTowards"},"EHh2_R8hIcntrcJqBQpCe":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negate"},"c8ECFlAs5FGIyJUFe2JCd":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negateSelf"},"7toy1p2bhrX77oL4ezh1i":{"uri":"/melonJS/docs/melonjs/Vector3d.html#normalize"},"HDxHExUgkADp1wWrz6OS1":{"uri":"/melonJS/docs/melonjs/Vector3d.html#perp"},"DwZ_DXRN3nL6Qkt9fvQ5E":{"uri":"/melonJS/docs/melonjs/Vector3d.html#project"},"kJC-psryNifHo6ODvEYhI":{"uri":"/melonJS/docs/melonjs/Vector3d.html#projectN"},"54ISDcd2SMZ94l3qu9vGb":{"uri":"/melonJS/docs/melonjs/Vector3d.html#rotate"},"B7QFAoGAhYxSFg6-boJKv":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scale"},"k-XiBSQWoL2jjFoPTGRNd":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scaleV"},"OuzNVB0Lk2nNI4aNu2s2g":{"uri":"/melonJS/docs/melonjs/Vector3d.html#set"},"5mJ97tWATQLRUl3YghslZ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setV"},"29lVQPR6OkgYER6NgiLvG":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setZero"},"Suk4e50D2z4gw8QtyY6E0":{"uri":"/melonJS/docs/melonjs/Vector3d.html#sub"},"bIoE7Ztao4U9RKkCdmOph":{"uri":"/melonJS/docs/melonjs/Vector3d.html#to2d"},"JaGd1Tn6PQO89eebnOhaK":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toIso"},"aBdtPa_8nYzwz2F79S9IC":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toString"},"lULIO1UQMIH4sgeTLGGh4":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html"},"4qS2dHMNKigz-8HzSNDwa":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#compositors"},"d-thuVcNKrywpQxcsqPgq":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentCompositor"},"XtoLwpcDFbYfYk3nQRYBj":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentProgram"},"pFOB2vYur3klPzwtAmg-a":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentTransform"},"qCkSz5ybGyoBk7Vu1QmYy":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#depthTest"},"lqycNZlO52BTAIdQbpRUE":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#designRatio"},"AbQnQvgxxRKwNnC7vpwOF":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#gl"},"6qIA1JJ6-Dmp9uPrgpMDf":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPURenderer"},"zxIohGmNDWV0X26IcHZNh":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPUVendor"},"cfkfiwzwvu4ruG8ug6B9X":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#height"},"sdTo5WQkpaZCX7Qlst8mx":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#isContextValid"},"aPkbcbx9JRcIkIhjw-9DV":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineJoin"},"9R_lkyzRalsMyxvah1sup":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineWidth"},"oJ3sjsrMYGvGQ9RAOWe2Q":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#maxTextures"},"7N4RKrDdSrS1592-diuAp":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#path2D"},"xyx_xlgcmzvpXn16xU26V":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#renderTarget"},"l8bPAqOJlMgN4uCYldbi_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scaleRatio"},"SJe5wHJ5MqJBA8RkHOF6v":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#settings"},"dPh5cF3TQ6_GsBq-krv7X":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#type"},"6Qd_9ABisTUDsJQTeeUJL":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#vertexBuffer"},"McDqnPr9cyv-moAFFK86_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#WebGLVersion"},"ioC-xiwAODawC6UCL7FiH":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#width"},"907QqAQ1qeYpwKWL9ywlc":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#addCompositor"},"EVOO9fYN2mvg5RDyYDDeY":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#beginPath"},"kOjrGUu02wt3kdXTSt6ce":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clear"},"ouH9yMY_-RwfHRirHaMIe":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearColor"},"Vnskuob-ry0WFEeAsHm-G":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearMask"},"tSYuzdQjKoXE9UwMyLxdi":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearRect"},"5r5mqQS5MiIGuFAltzsdY":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearTint"},"2CeBo63c9udoA6ShsPgkU":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clipRect"},"cg9Nv5-U5mJQRjqtvwuRp":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#closePath"},"LgSeyrWhW7jKsa4Jtdo7Q":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#constructor"},"KpHMJHVsq81CXDHED0nDA":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#createPattern"},"rCp7vo1hOSKwE-ZxtGhv9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawImage"},"Sdv_oOm5WVEOh5Nz6K59E":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawPattern"},"Awo-gO5-iHcqT6Y4gWOzT":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fill"},"uIzEiwSneWD59yPYM4YT-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillArc"},"LGK5TePAU1nngf5FIMDhc":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillEllipse"},"a6NT_HLRtWDX-Q8aUUiqm":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillLine"},"WopNfDSgH_eJZuyD3yko7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPoint"},"eVow31C_reJxEuQzfjYDz":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPolygon"},"6JcTE2xQa1LJWMoHpfkSc":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRect"},"Ekj7E0QTrLUJe_zFeHHw8":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRoundRect"},"2w3mMQiHiouBg8z9r3iPT":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#flush"},"zr7S62yBM8Q8N_Rkw68uh":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getBlendMode"},"cpniE9bvHo7HaOuGNgxEj":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getCanvas"},"vEa_VhB9Ufy9mmx_eMXCk":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getColor"},"vQM0kog3NbI7ir2xFEGtv":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContext"},"7OigrprYlKiF3ViZnM259":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getGlobalAlpha"},"QFwQiVj7WeEjH59i0_BG3":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getHeight"},"tFw2B1DE2up77ALAhOGMb":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenCanvas"},"RjWr9hdNSHpt1HNPNZS7k":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenContext"},"riq-elApUJqhTffj32Tb0":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getSupportedCompressedTextureFormats"},"Oq4C6gi_Ck2qAG20P5VFH":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#globalAlpha"},"XtNXVcclH4yatjBNQCnpD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#hasSupportedCompressedFormats"},"vW4vfYhTakDfGZkqe4sdu":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineTo"},"j5RSxLfHqKeAAuXBOQGPa":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#moveTo"},"YKeDERsYKgsok7I-6mZyX":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#overlaps"},"_iWYyyZ-0x9oYAE7WegvW":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rect"},"UJZDaRSq2MI72VcuSlkWo":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#reset"},"QAKFnv_xvovX1iYIJ6Nxi":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resetTransform"},"5YvgV5RhK_MpqSnD3dwUC":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resize"},"a1Z-GgABlnLh97xFkB0c0":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#restore"},"8aOAHKxmWoCHofFkcXBW5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rotate"},"Q7MhZZpJ1-UwCU5LbSEWt":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#roundRect"},"AYQk2iJMH1nRcKnjF-hyu":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#save"},"Im2hsheqpZZ3J2ojPetNm":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scale"},"fa1skmMqpMJ6jDU10B-Oy":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setAntiAlias"},"PCPTAUQyV-xgQgEqeq3NU":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setBlendMode"},"_h3FOGZumXRf7edHSiu5V":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setColor"},"M5KyNjjlcbDnVbBwdItHI":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setCompositor"},"PySRT47v0Fpsshp1_p4KY":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setGlobalAlpha"},"T0gh-Ir0Hd1C9KmAKvTzI":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setMask"},"TWEvZcll8NnuewSCzG8zy":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setProjection"},"j-KInzhK43jY66UN_-30-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTint"},"doJZpbPm3uaXIekYJnbnt":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTransform"},"y2QrFy6Wk9G8Rdm-d2SOq":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setViewport"},"Lj4qp3MyDxng3LONi9fAL":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#stroke"},"jNzxUFNNG1R_ExhFWYBNM":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeArc"},"qDyAbZpyml6jkSyZX-sj7":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeEllipse"},"SY2Q7Y83sbTUKDrNL4Kvo":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeLine"},"Ehn9LIsETq_vxdFNvK7ji":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePoint"},"f72jkYkGoAE8OhNsX0JCC":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePolygon"},"SkSgIJEevmnD2mlJsqsZp":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRect"},"G2Dyj748HRvbudvWSdu5P":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRoundRect"},"yS0zbdMT4NFmGSwNbL1el":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#tint"},"eEgOB5z-oJwWMvVmvn_gx":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toBlob"},"apJW66j-QsTLTRAcV4CFo":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toDataURL"},"-yBJ3-uBhC9f1ZzbFsPck":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toImageBitmap"},"fX2Q0P4pfh1TVzTIdy5YG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#transform"},"8Too3msNHJZWPHEJOosGT":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#translate"},"92F3xUBTS2EE7Rgzcqkoj":{"uri":"/melonJS/docs/melonjs/World.html"},"TQ3aJ8mnVh0fYyqFpsuFw":{"uri":"/melonJS/docs/melonjs/World.html#alpha"},"0f_ubS4PyeMY_qe-LygY1":{"uri":"/melonJS/docs/melonjs/World.html#alwaysUpdate"},"mPePcRooaLrNFGY2kJKhD":{"uri":"/melonJS/docs/melonjs/World.html#ancestor"},"kSHola7004TKw49Kjs23U":{"uri":"/melonJS/docs/melonjs/World.html#anchorPoint"},"udbUAtjPmZkhQRul_KF-u":{"uri":"/melonJS/docs/melonjs/World.html#app"},"QBSPGfdsMGTTmDjWyYU5-":{"uri":"/melonJS/docs/melonjs/World.html#autoDepth"},"U3cUWDgVt0j8PhdUG4YLp":{"uri":"/melonJS/docs/melonjs/World.html#autoSort"},"XVYjR-JxG0Sj3ODITXLoa":{"uri":"/melonJS/docs/melonjs/World.html#autoTransform"},"oKuMHIweyNKRfuRscyVFT":{"uri":"/melonJS/docs/melonjs/World.html#backgroundColor"},"uU5mGqah2NknuYpl38TI-":{"uri":"/melonJS/docs/melonjs/World.html#blendMode"},"2KVAi4Rzjl5yCsa02m6Xx":{"uri":"/melonJS/docs/melonjs/World.html#bodies"},"loHC49TzJHM9wns39w5nX":{"uri":"/melonJS/docs/melonjs/World.html#body"},"0Ed9cpgzArFLGgEUq7vAN":{"uri":"/melonJS/docs/melonjs/World.html#bottom"},"txYz3QW-VtlC8Kg_drvLk":{"uri":"/melonJS/docs/melonjs/World.html#broadphase"},"tlSoEhfED8uGPmpPg-lV4":{"uri":"/melonJS/docs/melonjs/World.html#centerX"},"XhvLenbvfWFPa8IDIM88s":{"uri":"/melonJS/docs/melonjs/World.html#centerY"},"9zev1ehZ3YNPPhbCaThG7":{"uri":"/melonJS/docs/melonjs/World.html#clipping"},"TgMuLL9RXtdw2_3kSDT0s":{"uri":"/melonJS/docs/melonjs/World.html#currentTransform"},"joSWegrA-AD1GSHeYcTWX":{"uri":"/melonJS/docs/melonjs/World.html#depth"},"s_DjsaLxJtVbyXGR4JqEz":{"uri":"/melonJS/docs/melonjs/World.html#detector"},"jlpBBJmjCOs48LGbOdNFL":{"uri":"/melonJS/docs/melonjs/World.html#enableChildBoundsUpdate"},"kjTmUdPhFh2y-bO_5hFe7":{"uri":"/melonJS/docs/melonjs/World.html#floating"},"lClOY8g0bPpX4vIeeQbi-":{"uri":"/melonJS/docs/melonjs/World.html#fps"},"8KNNvV-Kv53Tif72nj8we":{"uri":"/melonJS/docs/melonjs/World.html#gravity"},"yzhaC1-vTmIG9zEBJ-PFq":{"uri":"/melonJS/docs/melonjs/World.html#GUID"},"XStfFcHeRG5pRznIY6Vp6":{"uri":"/melonJS/docs/melonjs/World.html#height"},"57-VP6rmfqHlFBQ21H8bh":{"uri":"/melonJS/docs/melonjs/World.html#inViewport"},"rTfLtN9ZLruFr7660chNQ":{"uri":"/melonJS/docs/melonjs/World.html#isDirty"},"FwawGKIygeQarBOfzmOuZ":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedX"},"XEc_U5n0epYvn4KtX4X4I":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedY"},"CS3xfNy7cDrtEto1YIMtS":{"uri":"/melonJS/docs/melonjs/World.html#isFloating"},"dI938GAJ2kRvwtjbnb7PE":{"uri":"/melonJS/docs/melonjs/World.html#isKinematic"},"GvwOmpfYRsUtZTctAgbyy":{"uri":"/melonJS/docs/melonjs/World.html#isPersistent"},"0EJxbmFkreOsl1s1hy1WD":{"uri":"/melonJS/docs/melonjs/World.html#left"},"YSc4uhRpBjAqAK9uJmUgU":{"uri":"/melonJS/docs/melonjs/World.html#mask"},"wbg_TxMxZULkfQQuqYSII":{"uri":"/melonJS/docs/melonjs/World.html#name"},"HKjv2iBaAMic0Uq2iK8vP":{"uri":"/melonJS/docs/melonjs/World.html#onVisibilityChange"},"-Egsa59A1VWLVobNN4NDd":{"uri":"/melonJS/docs/melonjs/World.html#parentApp"},"zoH_H1luyKkKu840MHgUt":{"uri":"/melonJS/docs/melonjs/World.html#physic"},"gGcj9RRtjb8AlFfcRCOIR":{"uri":"/melonJS/docs/melonjs/World.html#points"},"vnR6Zc60kNmx6QTsl4oqw":{"uri":"/melonJS/docs/melonjs/World.html#pos"},"w5aEMnhgTa0t69iI5Yme6":{"uri":"/melonJS/docs/melonjs/World.html#preRender"},"zIpGAMMdI32mKcnFytBdp":{"uri":"/melonJS/docs/melonjs/World.html#right"},"qeRIK0MgqWNWIGqAqDrbH":{"uri":"/melonJS/docs/melonjs/World.html#root"},"RUebeqzKO3BDxM_K3-bfM":{"uri":"/melonJS/docs/melonjs/World.html#shader"},"nrcWvFCDG1RR73mlvgJEk":{"uri":"/melonJS/docs/melonjs/World.html#sortOn"},"VrZxtILrrh0h7WPziab1r":{"uri":"/melonJS/docs/melonjs/World.html#tint"},"Ke6Fbe773yZeUrdD4lm8f":{"uri":"/melonJS/docs/melonjs/World.html#top"},"WLfovI-fXhv8ilAWyk7-4":{"uri":"/melonJS/docs/melonjs/World.html#type"},"tT5akk9pMJmpu5O9Edk6l":{"uri":"/melonJS/docs/melonjs/World.html#updateWhenPaused"},"MO2SHJY_rZiANxYo3q7TG":{"uri":"/melonJS/docs/melonjs/World.html#width"},"q_-yb58oSkiiobbMS-i3J":{"uri":"/melonJS/docs/melonjs/World.html#addBody"},"-RPi9Kba4QrLK8uXbGunl":{"uri":"/melonJS/docs/melonjs/World.html#addChild"},"HqqUJ3oIh--oUgZHDJRop":{"uri":"/melonJS/docs/melonjs/World.html#addChildAt"},"5NOW-wOK02bdqMc7UUekw":{"uri":"/melonJS/docs/melonjs/World.html#angleTo"},"c9HHAkv_SvuT55H3IvqlF":{"uri":"/melonJS/docs/melonjs/World.html#centerOn"},"uUoO0felfl5fRha38kYSr":{"uri":"/melonJS/docs/melonjs/World.html#clone"},"C1x7Ui4OUxB68z0V4rxUI":{"uri":"/melonJS/docs/melonjs/World.html#constructor"},"B4oEHkgJ-KQa7vGDqTmHo":{"uri":"/melonJS/docs/melonjs/World.html#contains"},"PsNtTIkg2rJ39hvQXD1VK":{"uri":"/melonJS/docs/melonjs/World.html#copy"},"81AXfGNDaKFt14B_33-Qw":{"uri":"/melonJS/docs/melonjs/World.html#distanceTo"},"iT5Fgi9Vxes6IN8c2dwho":{"uri":"/melonJS/docs/melonjs/World.html#draw"},"xfkZBYXRfhqJLE4o87zku":{"uri":"/melonJS/docs/melonjs/World.html#equals"},"QHVpish-VXCNq0LUcBJvD":{"uri":"/melonJS/docs/melonjs/World.html#flipX"},"bLiJjfv9mCp8BTYlfX3I1":{"uri":"/melonJS/docs/melonjs/World.html#flipY"},"_G907Juixy1okO4iZ6xqC":{"uri":"/melonJS/docs/melonjs/World.html#forEach"},"wEOp006FenMtyPtT10vEf":{"uri":"/melonJS/docs/melonjs/World.html#getAbsolutePosition"},"jMWBBmTub7ok_ahP2IBEs":{"uri":"/melonJS/docs/melonjs/World.html#getBounds"},"DA-elyM-JbTRVj7LZAFAK":{"uri":"/melonJS/docs/melonjs/World.html#getChildAt"},"lrhScucMfWBEENmpjo9yc":{"uri":"/melonJS/docs/melonjs/World.html#getChildByGUID"},"kAiuSrvv32kyvqqvuivN0":{"uri":"/melonJS/docs/melonjs/World.html#getChildByName"},"x6jdQBih2iXz2OMoEmOoI":{"uri":"/melonJS/docs/melonjs/World.html#getChildByProp"},"q7aDVHoDUUGu0Pb-9B0bI":{"uri":"/melonJS/docs/melonjs/World.html#getChildByType"},"vunU0Q8i0kQmvCtVV3IWk":{"uri":"/melonJS/docs/melonjs/World.html#getChildIndex"},"clb27KFPd0MoZLknpf0gj":{"uri":"/melonJS/docs/melonjs/World.html#getChildren"},"2Be_PGW7xLR_Fa9g9rtFv":{"uri":"/melonJS/docs/melonjs/World.html#getIndices"},"rGpTZghfMUIBBktmagbAI":{"uri":"/melonJS/docs/melonjs/World.html#getNextChild"},"e49aP8nSOKLpzeK-h1ASy":{"uri":"/melonJS/docs/melonjs/World.html#getOpacity"},"sV96LIlqfesnIO6fN0Y4-":{"uri":"/melonJS/docs/melonjs/World.html#getRootAncestor"},"cUBPSCc42y6B1g4I6dkG2":{"uri":"/melonJS/docs/melonjs/World.html#hasChild"},"jO5DQNnF0EIazYq1KstZy":{"uri":"/melonJS/docs/melonjs/World.html#isAttachedToRoot"},"CpXzljcbAJ0vRZ6LpHXH9":{"uri":"/melonJS/docs/melonjs/World.html#isConvex"},"AuaoycUhAJecvn6fZFiZ6":{"uri":"/melonJS/docs/melonjs/World.html#isFinite"},"LtF8yG9jAEkLxajw1pYHZ":{"uri":"/melonJS/docs/melonjs/World.html#lookAt"},"rLjmi1UrKztTOt-xlOFcB":{"uri":"/melonJS/docs/melonjs/World.html#moveDown"},"5Lmu2L837s9yg-m0XH8g1":{"uri":"/melonJS/docs/melonjs/World.html#moveToBottom"},"SmLXgXMDfYzh9WD1ycHaO":{"uri":"/melonJS/docs/melonjs/World.html#moveToTop"},"4Jpp6u-HXmTxeHhxSreG0":{"uri":"/melonJS/docs/melonjs/World.html#moveUp"},"HUrbG9EXYh2sGO5Ve3GT-":{"uri":"/melonJS/docs/melonjs/World.html#onChildChange"},"V7SK4STAybENM6GoCCMun":{"uri":"/melonJS/docs/melonjs/World.html#onCollision"},"szvO_rG-SBBB5t7eWcHJm":{"uri":"/melonJS/docs/melonjs/World.html#onDestroyEvent"},"6TXu_3iEcWqzlTT8iGxfZ":{"uri":"/melonJS/docs/melonjs/World.html#overlaps"},"_dex_QbYOlftm6Z2hXWED":{"uri":"/melonJS/docs/melonjs/World.html#postDraw"},"7cFG4u4d9qAbIKflpWrOo":{"uri":"/melonJS/docs/melonjs/World.html#preDraw"},"bQUmedVj2cOf8euAO-t2c":{"uri":"/melonJS/docs/melonjs/World.html#recalc"},"mZPJg6IImXbvorjXFuFAR":{"uri":"/melonJS/docs/melonjs/World.html#removeBody"},"eGHJ1lTVNczKEjQIyXWBL":{"uri":"/melonJS/docs/melonjs/World.html#removeChild"},"0TLRGh0z4v6reA5vOtInd":{"uri":"/melonJS/docs/melonjs/World.html#removeChildNow"},"aWmelIYJDCl_r1x1TH9iR":{"uri":"/melonJS/docs/melonjs/World.html#reset"},"i0vXNVKpNapCc4afPVupe":{"uri":"/melonJS/docs/melonjs/World.html#resize"},"XQ_EGEoRzuUYO9iVTDWd9":{"uri":"/melonJS/docs/melonjs/World.html#rotate"},"QlrHERG3HV9tceFx9cpMU":{"uri":"/melonJS/docs/melonjs/World.html#scale"},"ICh2t7Ca9LaDxOLOkIOKf":{"uri":"/melonJS/docs/melonjs/World.html#scaleV"},"ju19ifthZ8Qcha1GBLSGg":{"uri":"/melonJS/docs/melonjs/World.html#setChildsProperty"},"X5dB_txJRjh9CZ9vk69Ci":{"uri":"/melonJS/docs/melonjs/World.html#setOpacity"},"474MbpDjwowqv3STQV9Oj":{"uri":"/melonJS/docs/melonjs/World.html#setShape"},"jbg__1BTqX0qnCTsm2t2p":{"uri":"/melonJS/docs/melonjs/World.html#setVertices"},"gK0djbYflia9zLW7rLo6E":{"uri":"/melonJS/docs/melonjs/World.html#shift"},"JWz7qnvgM1CXVdhkeihgZ":{"uri":"/melonJS/docs/melonjs/World.html#sort"},"HcYr6fnPiPe0nyARpcJV5":{"uri":"/melonJS/docs/melonjs/World.html#step"},"fU82brO5Db1BJLk65SX0c":{"uri":"/melonJS/docs/melonjs/World.html#swapChildren"},"TjmIzACEVaYexzieO6X-5":{"uri":"/melonJS/docs/melonjs/World.html#to2d"},"4RNXHPWff9ZpM4WJjgmhB":{"uri":"/melonJS/docs/melonjs/World.html#toIso"},"0W378o2LPTOOOROULf4dT":{"uri":"/melonJS/docs/melonjs/World.html#toPolygon"},"7N6xgmaA8LRA9N1-iHTAI":{"uri":"/melonJS/docs/melonjs/World.html#transform"},"ScsdurHsUKiVyxWGIpzCW":{"uri":"/melonJS/docs/melonjs/World.html#translate"},"KeKOeuDOsK6ePJsByJ0kI":{"uri":"/melonJS/docs/melonjs/World.html#union"},"HIi-HDK4uTfj99JIQBJbT":{"uri":"/melonJS/docs/melonjs/World.html#update"},"F5qXt_meEXQVi3MnuRuXz":{"uri":"/melonJS/docs/melonjs/World.html#updateBounds"},"lnnnVp9P59wpEfjKFSJI-":{"uri":"/melonJS/docs/melonjs/World.html#bodyApplyGravity"},"caXxv5g_Y5Nv7dYhZ9B09":{"uri":"/melonJS/docs/melonjs/World.html#onAnchorUpdate"},"ijH2Sx2vOMw54FuV7Mf-T":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html"},"LVEL9mZBFmHlPoEwMlZcK":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#antiAlias"},"V2MeNx2_LFK9lOjRpu16m":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#canvas"},"sEn07Md-kOpOauRT4gP73":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#compositor"},"ryPoWptD6IGzMLyhZGbIo":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#consoleHeader"},"qiVw6gPTvb8Ahq0MrlksW":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#depthTest"},"imxaEOi552b0z0Z6s6oid":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#parent"},"GmEangboAgO61sUTwUorM":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#physic"},"orhRA6LXivkQ6muTJhYDv":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#powerPreference"},"kLytnLVE4Pk6ua4T4Fviv":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#preferWebGL1"},"xwy1sSYveaw5AHw4LGUMK":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#renderer"},"MwxOMlFK90ZXvUOK2cW9f":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#scale"},"1ObF7cqRbKHth7p81G8EZ":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#scaleMethod"},"1lDfNBIXTQjFfz23eJhkk":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#scaleTarget"},"JkIDjE0Tn_BE5KAWoPYQw":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#transparent"},"qyrdABCx7U-VKwbpvdSJo":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#zoomX"},"39gJhY1YaLPEHsHAl5YY7":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#zoomY"},"HyLwHK8a-BeLgpGkwafhD":{"uri":"global.html#AUTO"},"edn6hP_7IujOnt64P5zME":{"uri":"global.html#CANVAS"},"zbqyDnW2GrXqtat5GDK6X":{"uri":"global.html#version"},"xVUQNhfLulVoIKKu30tc6":{"uri":"global.html#WEBGL"},"tjL0qrfsNiY9EXyQG1HQS":{"uri":"global.html#defaultAttributes"},"FdHb5BHIvGi5JgqfNWppC":{"uri":"global.html#dummyObj"},"nBaJxi_UrCnROhixlaVIJ":{"uri":"global.html#failureLoadedAssets"},"kKIzciGzBAlJIu7o3iAkz":{"uri":"global.html#imgList"},"SVBp1Mb6HWiCQMUdRidFN":{"uri":"global.html#initialized"},"opc-r1W6GHRq8IaD7sKjX":{"uri":"global.html#MIN"},"PaTOgc0EJ79RHcMsApfpA":{"uri":"global.html#parserInitialized"},"i23HFFwa53nEUAhppA70i":{"uri":"global.html#parsers"},"dAVgk1CNRPkLHg9FxaTS6":{"uri":"global.html#skipAutoInit"},"iUARTaxYpTQA5vv3y2DnQ":{"uri":"global.html#supportedCompressedTextureFormats"},"BP1ewUPctA30A9rITTmfx":{"uri":"/melonJS/docs/melonjs/boot.html"},"5FzYWC1tXuATh33Y49ZkA":{"uri":"/melonJS/docs/melonjs/consoleHeader.html"},"_xxXTAHWISVzIf5q2tr9o":{"uri":"/melonJS/docs/melonjs/warning.html"},"CZA6qd2u7hETZMsAdfUfm":{"uri":"/melonJS/docs/melonjs/onresize.html"},"S5mir9Ux1GP_jWHW__USR":{"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-5GGEz5Qp96w0oFwO2r2QS","name":"","type":"RootDoc","members":[{"id":"W564kgKeFKZ2gl5J3mUvL","name":"audio","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"t_Z_07jhHAqibe_qCqod2","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":"yesAGUer6qCtT9NYC5WHJ","name":"disable","brief":"","type":"FunctionDoc","description":"

                disable audio output

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kRG3cNP84a3kGhGqjcAnd","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":"oGTWEsGeDS76CR8gCvJhE","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":"ubrVVYx1Qxv1QwsiwOO_5","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":"MoQVsmL4IPTmK0zFsw_UC","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":"DMTNNFbds3N0Y8vZbyeNo","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":"yItAGeKjqPyNDvf6OKmCI","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":"JQlhbPdNXf0wjsUKzwYUN","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":"MKwO1NDptvhOrYX5n-ISP","name":"load","brief":"","type":"FunctionDoc","description":"

                Load an audio file

                ","params":[{"identifier":"sound","optional":false,"dataType":{"tokens":[{"value":"Asset","kind":"canonical"},{"value":"Asset","kind":"canonical"}],"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":"SCKdiOYJxoeWFLUDXBbaN","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":"Yg44HFGfRlvQ60MW9691K","name":"muteAll","brief":"","type":"FunctionDoc","description":"

                mute all audio

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nC229_ST-D_CmUxEqkbY3","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":"xIvVtBe86BD7LS3SOKrVW","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":"hV2qNYGXa-2OOxSS_kMus","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":"-tIdeBPLAcUIMbHX7daty","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":"faNlCc7QCzdEdwd_oRcPk","name":"pauseTrack","brief":"","examples":[{"caption":"","code":"me.audio.pauseTrack();"}],"type":"FunctionDoc","description":"

                pause the current audio track

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BM3VSNGIQQP52tFamBthm","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":"zqAYQnG37o40Ajt8K1_fy","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":"YIOGjF7FEzWihhkugi_PN","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":"zQe6yG1hR3UZB_6iStd0h","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":"d75Fmq3MG6q-M8AQRqiRv","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":"XHxib38HHJtFkrM_6pmzV","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":"8rEqiMOVQYEhq_WiGMB_Q","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":"L2elnmSBEJoqli35P_BO3","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":"iuXEwvJv0VuWDRP9uYWa6","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":"47fuAZcZHAqyZfU3rwbKO","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":"sHGmWzNxrbJayOCf8A_Cn","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":"JQppVhQ33iywrAb_VBXrx","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":"nT6JJ0Vj1Jymyz5kS-vV4","name":"unloadAll","brief":"","examples":[{"caption":"","code":"me.audio.unloadAll();"}],"type":"FunctionDoc","description":"

                unload all audio to free memory

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pb-XjlFRssQT9BMXE_9Ma","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":"hw3XZQTVWBYIVCmKT-r9d","name":"unmuteAll","brief":"","type":"FunctionDoc","description":"

                unmute all audio

                ","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"jIW3XPgOT5oNTcIOpVxN1","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":"rBzWlQ_4PVhvBMSWLz-MF","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":"0YQMQ-yse1IMlRB4ukUal","name":"ACTION_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                e.g. doors

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

                all of the above (including user-defined types)

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

                collectable objects

                "},{"id":"3ToZh2WWPY5-IOEem2Z5u","name":"ENEMY_OBJECT","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                enemies objects

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

                to disable collision check

                "},{"id":"S_mKKuuiwNyeWLuWHzZvm","name":"NO_OBJECT","brief":"

                to disable collision check

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

                non playable characters

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

                playbable characters

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

                e.g. missiles

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

                user-defined collision types (see example)

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

                e.g. walls; for map collision shapes

                "}]},{"id":"gixjLYjBIeefMkdiI4fYa","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":"_c1FIT6on8g5_fqPwExCo","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":"BsYvDw1JkSCLVsJ-ePiWo","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":"UaYviXK4TsO0r6CA-_Puq","name":"device","brief":"","defaultValue":"false","type":"NSDoc","description":"

                device type and capabilities

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

                The device platform type

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

                true if the device is an Android platform

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

                true if the device is an Android 2.x platform

                "},{"id":"1Eg-W79jR99mOuGCZbg6_","name":"BlackBerry","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is a BlackBerry platform

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

                true if the device is running on ChromeOS.

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

                true if running under Ejecta

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

                true if the device is an iOS platform

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

                true if a mobile device

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

                true if running under Wechat

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

                true if the device is a Kindle platform

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

                true if the device is a Linux platform

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

                true if running under node.js

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

                the user agent string for the current device

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

                true if running as a standalone web app

                "},{"id":"2uGbzhrBLsKhNriOErcrn","name":"wp","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                true if the device is a Windows Phone platform

                "}]},{"id":"HL3QHo1aL3DbEOx94_PPa","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":"HCEPO4zCOEsJMKu11vA5v","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":"NSBW-8fLW8MXpUBY3ESQb","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":"b5bsJDbs5INeSq5gkBgNu","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":"pOpEITTj7Mchy78SLOoX2","name":"autoFocus","brief":"","defaultValue":"true","type":"PropertyDoc","description":"

                Specify whether to automatically bring the window to the front

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jhfaWcx4IeNDeYoyp7cS7","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":"t0gcpl27zcj7TlyLcgQYj","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":"38KEpVzy8zE3OrHu_-L7J","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":"VjXxQwsPgwxdiZ6lVEjEL","name":"hasAccelerometer","brief":"","defaultValue":"--","readonly":true,"type":"PropertyDoc","description":"

                Browser accelerometer capabilities

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

                Browser device orientation

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

                Browser full screen support

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

                Device HTML5Audio Support

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

                Browser pointerlock api support

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

                Device Video Support

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

                Device WebAudio Support

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C9HjjBH6jR5Ap6oXsI5te","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":"zzYYsKbrP1Tw7P9W4lAF9","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":"R_YJ4yWQvpzVJoKwEXDO9","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":"_sGXZO-K__vysamlBQiUC","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":"Mqhbiu6dkNFOD1-c1FbdK","name":"nativeBase64","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Browser Base64 decoding capability

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

                equals to true if the device browser supports OffScreenCanvas.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BN2W-DHmubOUR2st-OkgZ","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":"BTkB0j9jwKrwfsbFthxjG","name":"platform","brief":"","readonly":true,"type":"PropertyDoc","description":"

                the device platform type

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

                True if the browser supports Pointer Events

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IGLHFMe1icWoyw-FEQYz-","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":"56kthN7rQf1ZU_HaWivnz","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":"pqUwQ2iSRdH1TAQICHOmL","name":"sound","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Returns true if the browser/device has audio capabilities.

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VfDoEHsa2XUREAEwLHbug","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":"KrKdHFzOlp9IXyQ7cTyUS","name":"touch","brief":"","readonly":true,"type":"PropertyDoc","description":"

                Touch capabilities (support either Touch or Pointer events)

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

                True if the browser supports Touch Events

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

                W3C standard wheel events

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sRGAGPdR7xqN8U4yOzABm","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":"eyGBiIH-wUbVvbdt-vqrP","name":"exitFullscreen","brief":"","type":"FunctionDoc","description":"

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

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EHEJcdpMvcHtjsnIc08jF","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":"_I6v5d5lj6orCfz4iwOjW","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":"FDMClwfaVHqNSWzgcWBz6","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":"i4XNu8lzaYfqxMh-NR7bC","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":"GYw4N2UkJwTD0vP7Ue4pO","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":"HWajDvM3-u0REhPy_dxB2","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":"1-IMEUQKiKl-0ubCW5_rm","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":"Osfw-t4aCFuMiGm2CYldv","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":"SR6VobXfve68s-aWvacRM","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":"Hb4962xz5RssDNpXmwlkK","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":"GwP54f4kAa3L-xrJzNsja","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":"qaccAzpzOGfGa_ZaqKn6v","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":"C1lBbMZc2qGN4bq817pG4","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":"8xMVbIKGX1FVQx3NmSIVU","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":"vIvnYZNQ3lQNV5aeiMpk-","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":"RH51Ud-S1Dh0_q4AP1pXd","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":"AvpsR3HQmX-IUBDmppO-x","name":"unwatchAccelerometer","brief":"","type":"FunctionDoc","description":"

                unwatch Accelerometor event

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

                unwatch Device orientation event

                ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v0a2KAMO8F_SlzPVt9fAO","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":"Gq9obtUCCmxg01TcvBvP6","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":"NumzRTjr3yKhNEYFNjteP","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":"tswtqxZluugNa5owy5eLA","name":"event","brief":"","type":"NSDoc","description":"

                an event system based on nodeJS EventEmitter interface

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"i34WzdC7sPhNRioT1gojM","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":"TvhamYkNXQUlMPAI_lJjx","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":"p-kY9z68WcBk5GmvEaFb1","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":"c9O6tbIbfttCYNgakdKKq","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":"3C4KWU74ffUtrbFHwz_4l","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":"5Q-2CJU7VyxbFz120os3s","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":"z_HHYdfBX7UIccoR6cKzt","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":"NKpF0Yc8pNgkmHSLC92d8","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":"aKHaMiSucoiGRdg0grXFH","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":"2J5RxF7-GbUdIP-qnEEdn","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":"iA4_LDMhcvQaPoVB07Wi-","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":"D4MKv8GA4kbL_fixPnd0r","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":"-u0-s_u_QQk1l_oktj6nH","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":"rFvcN2-pWtR0bo_c8Ea_L","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":"9cPQgLpQD75aEIlkGH22O","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":"8i13A-8dbJBUBmmNTTKTj","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":"8GprmCOD7hAVFOdCI0q4r","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":"9DnMLvVfhBcQsaCItJ-uJ","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":"tG1g6WzgvTQWJ2V_FraNU","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":"ctKxyxHkld-agGd8J51FD","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":"cDRPo5eotiHHiGmZY2AUe","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":"hQqukxNrPTuH9-zMqJKl_","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":"-w5OLNH5IRcRie6zothaO","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":"Otnabknobb8llIPAYNuDC","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":"fRYGv4d8Px8Q8o645dL1w","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":"wDn8LI938YttcFx9KHJDz","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":"9Jeyr7rCHTEYKmllTcPI2","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":"QHL13mi-yzNzqAVqdP8kh","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":"guiKQK67uAi-GKLNonL2C","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":"6ZsigUeRTpUyya0xBstQI","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":"7SEhrUKjZ8cgg0NyH1xPt","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":"jVtKfc5diu-gy501qILpp","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":"4QixDS-W_pX4kYRXZySvS","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":"xIlOhZoKCRdJ3msREzItp","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":"aaRhn6oXFSusDhH6rXsKA","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":"uTVG6B78YAQD3aRSxehLm","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":"daKz55sey1Jxl-igGT6Ng","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":"KB4fWSyOayr-F7d5HhZkQ","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":"tlQE_K5yPPCKQXhnwMrdb","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":"wvgi4ADI5My1Rc7kl7AhG","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":"1Hj0OHzEXbeF9HIODjPdS","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":"EMpNSu2s9fatL027s8zh0","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":"6EsHFO2bAmmJKPItQDcmA","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":"1a3fCLdiv_f0nJjscSTXr","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":"Xa7H6Lu-PS-rj4N-W9sLl","name":"input","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"GQ8CJlAcdnjk52rDbQI_E","name":"GAMEPAD","brief":"","access":"public","type":"NSDoc","description":"

                Namespace for standard gamepad mapping constants

                ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"GUUpTpX7woUijynD_8wB2","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":"i0V1agoziy-4lnd3gDwrx","name":"A","brief":"","defaultValue":"65","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SsqVF4xGPpLeZ3OQ-ksXu","name":"ADD","brief":"","defaultValue":"107","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1TKNm1igfIXGv-EgPgkSU","name":"ALT","brief":"","defaultValue":"18","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uABUrgQFRbkqQS3uT8-KD","name":"B","brief":"","defaultValue":"66","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lCyfmq378mOqofmpdj97k","name":"BACK_SLASH","brief":"","defaultValue":"220","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w4tUaUM6jIWdIxUaB-aiR","name":"C","brief":"","defaultValue":"67","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VAKhJisP5h-JhsOz84wHP","name":"CAPS_LOCK","brief":"","defaultValue":"20","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OsRMXzCCMVW-sP4ZdCNuC","name":"CLOSE_BRACKET","brief":"","defaultValue":"221","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gxh-qmi_Aa30_c2OvQqjy","name":"COMMA","brief":"","defaultValue":"188","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IQeJGGbN0Ub8wZqJT3jDB","name":"CTRL","brief":"","defaultValue":"17","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TQ1Gn1_fYA8bDbzkOnM3_","name":"D","brief":"","defaultValue":"68","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-m4V9zSY3klHehbwhhn3f","name":"DECIMAL","brief":"","defaultValue":"110","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kjRUXnYzVcCXudtjPNHJD","name":"DELETE","brief":"","defaultValue":"46","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F6TeCgTxZRYpbG_psSMFo","name":"DIVIDE","brief":"","defaultValue":"111","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"svdNDEv3qSnhdfhq9ADCK","name":"DOWN","brief":"","defaultValue":"40","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pB2qMVF8PZ_lUAQ9noxhv","name":"E","brief":"","defaultValue":"69","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ddh5wK89B464x1dOSxT4L","name":"END","brief":"","defaultValue":"35","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"chxNLrCTsf6_c3IKjp4we","name":"ENTER","brief":"","defaultValue":"13","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FK9WTZWI2DsMIXA-5Y6jp","name":"ESC","brief":"","defaultValue":"27","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EigV9K_KW-tBEZfZZnLLu","name":"F","brief":"","defaultValue":"70","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UDd0wyyGTTDrWl_J3_QpW","name":"F1","brief":"","defaultValue":"112","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZrhO-NCpXhE7d9aZFVWE3","name":"F10","brief":"","defaultValue":"121","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dm2GiKWoP42KFChyaiwGR","name":"F11","brief":"","defaultValue":"122","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hEKKZNxrFxvcDtkQ3UpRD","name":"F12","brief":"","defaultValue":"123","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6Y1OOV9I-h9XT-iZs2wRK","name":"F2","brief":"","defaultValue":"113","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yVMfOTLUTLTN6ie3z4_w9","name":"F3","brief":"","defaultValue":"114","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aUyJwV2xkSDPQjWATDJVy","name":"F4","brief":"","defaultValue":"115","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JCgyttQc55f3cAIShhCXv","name":"F5","brief":"","defaultValue":"116","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HIlzVKHWO2bH094DgxaqA","name":"F6","brief":"","defaultValue":"117","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zP1Rv9HWpLDaxLIzThpb1","name":"F7","brief":"","defaultValue":"118","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5KfviLC8D2lHbjrnw9mVE","name":"F8","brief":"","defaultValue":"119","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ksGYNFj3i_2NSGbcNGCyv","name":"F9","brief":"","defaultValue":"120","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UIfPIavu1_-zCvzcAex0b","name":"FORWAND_SLASH","brief":"","defaultValue":"191","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9_v2hMSfWWZqlhMU3has3","name":"G","brief":"","defaultValue":"71","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_TVp3ESigf9wDbpoXe9GX","name":"GRAVE_ACCENT","brief":"","defaultValue":"192","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aRldYyTFJeFmHI3BZn3NF","name":"H","brief":"","defaultValue":"72","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VGXlUc4Lj3esitfMqQg4Z","name":"HOME","brief":"","defaultValue":"36","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TxiKBUTTdMI5loGCVz0Y_","name":"I","brief":"","defaultValue":"73","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FuJPJkq0nJZq9jpy7yn80","name":"INSERT","brief":"","defaultValue":"45","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u2_U2o97-QzbJUC07TgKV","name":"J","brief":"","defaultValue":"74","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HTiulwqvoXC2M8p1XP9W6","name":"K","brief":"","defaultValue":"75","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"awPI3nVjx6B4wxezoNx9l","name":"L","brief":"","defaultValue":"76","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xiyJ1y7qN3vUTN-XZVRX2","name":"LEFT","brief":"","defaultValue":"37","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Yuu1Fw1WkLCb5Z6uEE76Z","name":"M","brief":"","defaultValue":"77","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QVhOpbklG2Q2VJ84CW7lG","name":"MINUS","brief":"","defaultValue":"189","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hkZITXXAldwlSwN56_MUL","name":"MULTIPLY","brief":"","defaultValue":"106","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6RUnzTh68aiqVZbXj44bE","name":"N","brief":"","defaultValue":"78","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dRycN6aAqDV7ugqgsOFjD","name":"NUM_LOCK","brief":"","defaultValue":"144","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uY2e65xng-6HDg0Gnb3tt","name":"NUM0","brief":"","defaultValue":"48","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zeAKYzUIs62pbOu_3xOV3","name":"NUM1","brief":"","defaultValue":"49","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iNqykLff3suk8orze4T6V","name":"NUM2","brief":"","defaultValue":"50","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CY8mEZo32ChfRxw0aYMyN","name":"NUM3","brief":"","defaultValue":"51","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BHLfgcEsbI9yljf4KasQT","name":"NUM4","brief":"","defaultValue":"52","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QJlTIdXqhVWzdyee1liDd","name":"NUM5","brief":"","defaultValue":"53","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yuQDqf5AKBc702LrO9Mvu","name":"NUM6","brief":"","defaultValue":"54","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xbFHrawdKPWMEzuROYf1E","name":"NUM7","brief":"","defaultValue":"55","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uKTFRjR6NyJZH7Y7nGLV9","name":"NUM8","brief":"","defaultValue":"56","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IWuWs7a5Xh-i2Gyk-3KNz","name":"NUM9","brief":"","defaultValue":"57","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iRHv0K5vQPz7SBawc8PXa","name":"NUMPAD0","brief":"","defaultValue":"96","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t-9stlkbbYFBj_pgPZRz6","name":"NUMPAD1","brief":"","defaultValue":"97","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CCRwEm408FMb1nlS4hsXE","name":"NUMPAD2","brief":"","defaultValue":"98","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wFa4SUxUvP2vFUMQ5eIJA","name":"NUMPAD3","brief":"","defaultValue":"99","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"We1eH5w5bd2Xsnd1Ajyji","name":"NUMPAD4","brief":"","defaultValue":"100","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YtqBokwg5Lui8NBfwwjyx","name":"NUMPAD5","brief":"","defaultValue":"101","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"X5fu7dazXOfwwsoNRlSoL","name":"NUMPAD6","brief":"","defaultValue":"102","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6NLp4gYbxELN0HkjrMNcL","name":"NUMPAD7","brief":"","defaultValue":"103","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9IdWJXhFibmTJUJG05IW4","name":"NUMPAD8","brief":"","defaultValue":"104","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y3wJTb6mGXYQtLlcncnTO","name":"NUMPAD9","brief":"","defaultValue":"105","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d3XnjUdX3W1pQsRLn31CV","name":"O","brief":"","defaultValue":"79","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZzhbYKnntAseSSTyRMJof","name":"OPEN_BRACKET","brief":"","defaultValue":"219","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aa9ri7PESbrbEiCdF-k3S","name":"P","brief":"","defaultValue":"80","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EeZVmiHjOl6qeixHXedXM","name":"PAGE_DOWN","brief":"","defaultValue":"34","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aiQygnusJDkyXY2GsPnGc","name":"PAGE_UP","brief":"","defaultValue":"33","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fbxMYleOhkf7B0RXgodSE","name":"PAUSE","brief":"","defaultValue":"19","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eRKxBoR4oI2pHxNOQEwlR","name":"PERIOD","brief":"","defaultValue":"190","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IPLY5s0XfFYZHo9r-V0El","name":"PLUS","brief":"","defaultValue":"187","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qv7n4ThJpzlKIW2Ffb_aQ","name":"PRINT_SCREEN","brief":"","defaultValue":"42","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h1MH1INObUR6nCqK4kewP","name":"Q","brief":"","defaultValue":"81","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NQA1MAEvyNu047TKXUtR2","name":"R","brief":"","defaultValue":"82","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"b6ORgb1c0Fy5xm0ixxr8P","name":"RIGHT","brief":"","defaultValue":"39","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_h6bTGMhFWaG9pp2rbRjO","name":"S","brief":"","defaultValue":"83","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WbCSAssvn4tBltmakzcV8","name":"SCROLL_LOCK","brief":"","defaultValue":"145","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GbaQq8-9HWyFcmFDeR_fF","name":"SEMICOLON","brief":"","defaultValue":"186","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"agOdTwnYj3Q1rLne0-QyQ","name":"SHIFT","brief":"","defaultValue":"16","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GUhGWAXvwWX_VFgACpzxY","name":"SINGLE_QUOTE","brief":"","defaultValue":"222","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jc6NizffxqFtiWj1Z93la","name":"SPACE","brief":"","defaultValue":"32","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"buHfd4uSFef2ig1Mm3F5U","name":"SUBSTRACT","brief":"","defaultValue":"109","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dUTOPeLMTfW1xEpAw6KwY","name":"T","brief":"","defaultValue":"84","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8tVyi8g5dZIHDBl8jr10C","name":"TAB","brief":"","defaultValue":"9","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eqfnBqEHDUshXxK5xfhQ2","name":"TILDE","brief":"","defaultValue":"126","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uUioeqcAAJ0W41tDQZjgn","name":"U","brief":"","defaultValue":"85","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xERxtZYA5HnTuqc2nrogF","name":"UP","brief":"","defaultValue":"38","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MDLI967fZDdGyFSDWiPw5","name":"V","brief":"","defaultValue":"86","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lwc55dshEXVU3z9bqhrex","name":"W","brief":"","defaultValue":"87","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t6A17Tha8KfWDrni55p8O","name":"WINDOW_KEY","brief":"","defaultValue":"91","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z9T_Jbi3Gk97b3C5dxAy0","name":"X","brief":"","defaultValue":"88","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Rsu9zChcWDT6lxpa2EmHQ","name":"Y","brief":"","defaultValue":"89","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TMIXNHLzhmT9oNBIe0nB4","name":"Z","brief":"","defaultValue":"90","scope":"static","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]}]},{"id":"WMfoQ214TRNOdX7g92QYs","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":"0-y3QaJVaaNQt0VNEeFZu","name":"locked","brief":"","access":"public","defaultValue":"false","type":"PropertyDoc","description":"

                    indicates if the pointer is currently locked

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

                    Pointer information (current position and size)

                    ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BMj4wxlqouXKyBGexw5_q","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":"wvMCuedkHBAIqWURkD7fw","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":"ofKIUW-BugGsna3Al4DhJ","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":"yS17YxX05bdV04yqEWt_b","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":"wDJzdwHRRvgxQ_OjU4MCg","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":"Q8o1jfe9B_psYr0UIYbZ-","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":"lCj718i7erspI44XY3D6G","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":"-50cLima0y-ILBiwEKCV6","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":"_ifPz03gwDTG20pAlp9o3","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":"bUzqWS8icKyKh1BUNBnii","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":"WCiFUM77xW1Z3m-sQvjhZ","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":"r6bHsRR6HNc3xh5ruLxjD","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":"s0Z_y-p0u3u13kKmPoPEc","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":"XPzRgv35Lx8a1gDe5SDnC","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":"vuPns6z0dGXomwTjh0R_v","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":"wVp4OgCDwS_QufF8Iny64","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":"mEgE57qEs1feE2AQ9N7KW","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":"u6KcQxdmWx2BbR_sRqMzw","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":"UNFtk2M-xgG8vc9MaAiV8","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":"Ah3MB8ZEnbWywa0hncrrM","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":"RLFfURHd-S9BOaoVZUte7","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":"4tpaB4JssxZjbKzmFoOwk","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":"coOcXoVeAKLrx-iFDh4CQ","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":"AbLb1AnJSqdMRbE_tkjwE","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":"NGzXapYIK3drnX6fuEdJg","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":"BxUZjLlwBK7VcR_c69V7S","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":"-aUeWcfrO_qonfTyTag8F","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":"vY4eZ53So4xwSSOADJOR3","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":"HWGsGI_tWS7waGZ5rhQBp","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":"HGMZDb6H4pnD1FBqWBtr1","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":"ro25-jW6xrS-x53rOs9xw","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":"W8nAAqPtqPrtifsrzwnNo","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":"lVriCbamTFuaBdqt1QMX-","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":"V83tiBXCOK52LeqK6VLd-","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":"Moj8OGzGcq3163i2l4shP","name":"loader","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

                      a small class to manage loading of stuff and manage resources

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Q_vhJlfZ37Il-CYvqR8XS","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/\"}"}],"see":["loader.preload","loader.load"],"type":"TypedefDoc","description":"

                      an asset definition to be used with the loader

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ay4KSUKs04iISU2FhbsnS","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":"ktQrtJws0iuv57JmEQxNB","name":"data","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      TMX data if not provided through a src url

                      "},{"id":"aNX5gqQcNrJnIRp-vXH1u","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":"xrfQbgrQPLZKNsd7RtSjD","name":"name","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      name of the asset

                      "},{"id":"5QSu7BDXysIf_WCxuTLzv","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":"zhqLebzfRZ4a5TCeS2DhB","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":"OcB0zXLRAIiFN5NynZUJ5","name":"type","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx&qu..."}]},{"id":"a04nRQagC4pOjMoYyp3ko","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":"vBgOoZN3_3bRTJCru2lmv","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":"o6CQuMbPVTqYeYkAXFdZu","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":"2i8l6bQx1sK5K3BE6ynKH","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":"EzRQCudoguzm3bB7k1Zje","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":"38PQzXdpk03vCkZkis4g1","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":"gZmD0UeMOUvdQ1J1klCB_","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":"eT4i1cu7s3K_YZnYE0QiE","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":"i7oVDbfXHLLitPkKmtXUB","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":"9u7u37Wk4eSQ2KR7oweY-","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":"MykVMpEQYVuB4upE46Thn","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":"yyisIUMy5FQhpijEnXcw-","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":"Asset","kind":"canonical"},{"value":"Asset","kind":"canonical"}],"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":"C5yGKo-ZrUqO6keNRBd6d","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":"Asset","kind":"canonical"}],"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":"w-Zd7Fs-o6M_dMG1Exwty","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":"arn2ElLi3BHUpSy4_8OVo","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":"8TlWJGfEP9CHTXgY0EtIv","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":"pd6rSc7QHwfVbuZTPWRSf","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":["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":"B7ur4yOJB3imVGe82E3D6","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":"Asset","kind":"canonical"},{"value":"Asset","kind":"canonical"}],"template":"%1"}}],"returns":[{"description":"

                      true if unloaded

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

                      unload all resources to free memory

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

                      a collection of math utility functions

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

                      constant to convert from degrees to radians

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-6BU93JGbKJrkbnOvANp0","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":"TlD9fEe2aH9bv-RINF5Yo","name":"ETA","brief":"","readonly":true,"type":"PropertyDoc","description":"

                      constant equals to half pi

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

                      constant to convert from radians to degrees

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

                      constant equals to 2 times pi

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5x9S6xcjRmeOtZ36ntu59","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":"pU6farLjtQrN31TEeNC3H","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":"aYfu3JWK0x5Mh-5FpbVzf","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":"IWBbVzbCIWjnaLCMQdwIA","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":"2075dMFmJa2aTrgdJv028","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":"K2D5215rKEtLwVcgtjblN","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":"2zk3Epm_FkkF8tASKzAln","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":"j4GiCjCyuKceIEJgGma6a","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":"tKVY2vn9WUWat2LeO16xn","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":"sOlUYPYFtO1ihDPFgNSE5","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":"lt1oxEOyQQZhBlsbLM61u","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":"5YMDh0CAFQY-ZUq19S_Yc","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":"rlJ5XT7ZmLsLMKuvtybjC","name":"ParticleEmitterSettings","brief":"","readonly":true,"see":["ParticleEmitter"],"type":"NSDoc","description":"

                      ParticleEmitterSettings contains the default settings for ParticleEmitter

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"-gyaQQNfnaY3eBTzD1AZg","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":"WmpYsQg6AgliT1ytdIy4m","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":"omBW4xfJEkBEj7Jl3rG7s","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":"v64YRts9JREK1m_EzbOoM","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":"4LSjYFkPoKkdzouNk1MOe","name":"floating","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      Render particles in screen space.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hRzzCAlxXGGq6krg_3QcV","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":"hgL46IlGWj_d_mGsaDguZ","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":"IoSIR63ZnaxJeaCUms7IY","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":"k4omJ5298nPfxj140rSW2","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":"6UTvqFACsi21rogOWYgVg","name":"height","brief":"","access":"public","defaultValue":"1","scope":"static","type":"PropertyDoc","description":"

                      Height of the particle spawn area

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9NH6RwGbHkR03C-fD5kCd","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":"nwQ0WXlo5j85QhKjYlPJA","name":"maxEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      Maximum end scale ratio for particles

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u_9U_hMNjCax0DWqX-dga","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":"wn_C6osJYZwNquBFBTCXe","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":"6OlsVtsgQ9QhNO49vCfDj","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":"90le2IlEFsV-i-ThW24bV","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":"PQYgqJs1LYTbBeQJGgGJG","name":"minEndScale","brief":"","access":"public","defaultValue":"0","scope":"static","type":"PropertyDoc","description":"

                      Minimum end scale ratio for particles

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ktzmz8qzKotImVRBb8Vvf","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":"1ITYVDht4QJdRUxMZwnwM","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":"7DnVh_e29obOjmixgBhOE","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":"S5F723VoYYKZ98S_qP_8r","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":"sdx1Pom0baN-AEBB1JpFF","name":"speed","brief":"","access":"public","defaultValue":"2","scope":"static","type":"PropertyDoc","description":"

                      Start speed of particles.

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

                      letiation in the start speed of particles

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4vXl2CNOG-u-Cy0tMzH1I","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":"eKALWap8inUTvv0Z-aCP3","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":"mBMJ2N2OyT3wuNU8UkOVt","name":"tint","brief":"","access":"public","defaultValue":"\"#fff\"","scope":"static","type":"PropertyDoc","description":"

                      tint to be applied to particles

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

                      Total number of particles in the emitter

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

                      Width of the particle spawn area.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wgDyYOrygZ_eMGN1QfiQZ","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":"fJ-LDrsKvM8u-269kvfJx","name":"plugin","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"b3hzzYa6oysu-2A1NAH79","name":"Base","brief":"","deprecated":"since 15.1.6, see {@link plugin.BasePlugin}","type":"ClassDoc","params":[],"returns":[],"extends":["plugin.BasePlugin"],"implements":[],"members":[{"id":"JKsVkeNCamOqNS7UVT99o","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the app/game that registered this plugin

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h0fEr6EkJVpzWteT-7Q82","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":"m_ad1-P9_fTY5X73yVHbJ","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":"JxGyLzQ7MSiDhZ2yraF_z","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the app/game that registered this plugin

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_Jt66LtxlMDwxdmOwBhG3","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":"YlFFLRw7VWzkP9JSgnLIJ","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":"NoJbQS71O4JzLkaKqgsBV","name":"cache","brief":"","type":"PropertyDoc","description":"

                      Contains all registered plugins.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aQKYEWaP0dERe0QjE32mp","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":"WM7f74zICJY4R8qyx4mEh","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":"9r8_zaQkyt_H70KIBvedk","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":"BasePlugin","kind":"canonical"},{"value":"BasePlugin","kind":"canonical"}],"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":"pX1l--rATXMkVF0FG6mWp","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":"aIvtQb9sYZ5L6D8xjuOQg","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":"Qd74Jx7fWGan58t1HIJIg","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":"LfQwIZg0KMxZeCeLiiU8R","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":"KXGZsFJBD-88_gfpzkZC5","name":"state","brief":"","type":"NSDoc","description":"

                      a State Manager (state machine)

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

                      default state ID for Credits Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cRj9slB71fAei0vYgljRL","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":"y2p62DRazVN5U3Lkd63yl","name":"GAME_END","brief":"","defaultValue":"5","scope":"static","type":"PropertyDoc","description":"

                      default state ID for Game End Stage

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

                      default state ID for Game Over Stage

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

                      default state ID for Loading Stage

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

                      default state ID for Menu Stage

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

                      default state ID for Play Stage

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

                      default state ID for "Ready" Stage

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

                      default state ID for High Score Stage

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

                      default state ID for Settings Stage

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l2Csg1IqctIV_K1VE9AA3","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":"OEYV55EhALzi5jH0Ps_RO","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":"9xdtzk34CdJISWEwg4Q1L","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":"uxZBvxLdjAs2A5QaDYWQm","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":"F9ebvF0UM951IduFXKffL","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":"UmEpBPMNip52KThPkvdWx","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":"jx9MdEyV5UiGK7qTW3Z0D","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":"kzD0K8PHCw2pngIg-vTGf","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":"txA7o4zVUFIQYnRwe13Oc","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":"aqifEGXFue3pbhXj-IRby","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":"exDNvvEA89kk6Eni394BK","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":"pS28WU-uGa25O1GmvzdsY","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":"gexYdTsLFGUTmchUTcIRu","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":"SbdeYmbXaQMs0yGXVnVV6","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":"JdNkuR155fvmjlnDAwUJC","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":"xXWf-i_vtvxaf7gGko9qg","name":"TMXUtils","brief":"","type":"NSDoc","description":"

                      a collection of utility functions for parsing TMX maps

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"OTTB7nWUwiCx98atXRG4e","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":"pA8AeTN9etDoXrMPp520b","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":"0vk116_isG4Of5unW0dXI","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":"5jeon847SwRDDFu0b_mmi","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":"dDzNTMoykLZ2DYzSDjT1b","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":"s3Z_W24gxZuhK_VdPmNIz","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":"yfvxGZA0uo9cJqRKN3sxK","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":"VMV4QU4luRkArI29Xf7tx","name":"utils","brief":"","defaultValue":"\"\"","type":"NSDoc","description":"

                      a collection of utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"M2f76Vc5hdsEb1qrja65q","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":"TIzCIBHyGk1pvgCQCMmzr","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":"F4c1dFgPZwjZhsWpRhHZo","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":"4EmeDCeYgwk2eU6xah0WB","name":"array","brief":"","scope":"static","type":"NSDoc","description":"

                      a collection of array utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"jAee8pxPAFRc7-Pos3_zl","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":"jw7cAh75gzbYTwF2mvzkd","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":"AUUL6WLGFCMFOY9KaSLhI","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":"f2lBgYir88wpXj9riYDqt","name":"file","brief":"","defaultValue":"undefined","readonly":true,"scope":"static","type":"NSDoc","description":"

                      a collection of file utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"U9hok8vvVaeQtjj29s3cy","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":"Smc3HvkPTgEbnuwJjXiBS","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":"F3EHr428C_9MNdtX6tC2y","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":"9uVc7WKaYzz-tsF73OK-A","name":"function","brief":"","scope":"static","type":"NSDoc","description":"

                      a collection of utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"-bru8cinI9vkEE-feUNY3","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":"xZ4x85Ouk5IpuTVeIb6GX","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":"GSzBd_kKu-VdPE1kiqAy2","name":"string","brief":"","scope":"static","type":"NSDoc","description":"

                      a collection of string utility functions

                      ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"eiw7l0BjxZ0LpPXMJVlBc","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":"ttodmkc4dK4Id8Tq5DG4x","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":"GTxUQISo1orFX3B0HnOwn","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":"CPTkRgFM8BR-yf2O9wX-2","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":"twXSjjI3e5oSshfaY5uze","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":"uLoeE87GdrrYXRjD1N16O","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":"xbgGl39tIAtEEEXnCfqvg","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":"Ppn6ojUD2VRDWIfwRwDnN","name":"debug","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      display the debug panel (if preloaded)

                      "},{"id":"osrBDE0Gm0bvLyz6vOm4m","name":"debugToggleKey","brief":"","access":"public","defaultValue":"\"s\"","scope":"static","type":"PropertyDoc","description":"

                      show/hide the debug panel (if preloaded)

                      "},{"id":"Onv-bGXJYj-0J7DcYM5Zt","name":"hitbox","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      draw the hitbox in the debug panel (if enabled)

                      "},{"id":"-KspiIqx6jVeyfcLpGWQd","name":"quadtree","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      draw the quadtree in the debug panel (if enabled)

                      "},{"id":"-Q4h-XPgyms3KAoMzQ86-","name":"velocity","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                      draw the entities velocity in the debug panel (if enabled)

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

                      force the renderer to WebGL

                      "}]}]},{"id":"Q6AjY84uXonPKXJdLESgW","name":"video","brief":"","type":"NSDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"dzlxW25eiy8DmaXyK6m1S","name":"renderer","brief":"","defaultValue":"undefined","type":"PropertyDoc","description":"

                      A reference to the active Canvas or WebGL active renderer renderer

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OTILlSa8lR8EEO9yWTVEc","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":"FiQNqOQmWSQdfGeHlSmYK","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":"mEEZd91pO82UVFEYV5Zxa","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":"hy4ohau52peayb34pVHRn","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":"9OfdBGFvGidJMQTjOG6PC","name":"isInitialized","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      true when this app instance has been initialized

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U6xXfTnIyddDaqkCPia8Q","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":"fUY7tN5IlgLUf56Afq46H","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":"RFcOpPDptGGnANBmtUg49","name":"parentElement","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the parent HTML element holding the main canvas of this application

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DLbp4kT6_ExUNh6MWM-AL","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":"KTSksBIVmLtEequR197GI","name":"renderer","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      a reference to the active Canvas or WebGL active renderer renderer

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-zBCKPCfod9JLw0RTmgP_","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":"uQIx43YOfwQSBnHVLrDJa","name":"settings","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the given settings used when creating this application

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VX4h_03FQSDEu1YNqmqos","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":"-26y8nPprAPuRup1XmJp2","name":"stopOnBlur","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      Specify whether to stop this app when losing focus

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EIPMWbM5yfyIRlcId8Aix","name":"viewport","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the active stage "default" camera

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FmGHq91FoiLGi0Nao7t5P","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":"BkWSiLiDxZ4DvhwPutL4L","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":"I3bYT9SxVTk3ilyjLZlXk","name":"draw","brief":"

                      draw the active scene/stage associated to this game

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6LqNJ5RpvL4HRll2gaAz2","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":"NS5irQJh3dwVtffOwxnQN","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":"V4h21X21me_J01mU5guKv","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":"MpJvRDEdLaswcGFKnRa9_","name":"repaint","brief":"

                      force the redraw (not update) of all objects

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6B4Msv0PV_V9Oju2gI6lL","name":"reset","brief":"","scope":"instance","type":"MethodDoc","description":"

                      reset the game Object manager\ndestroy all current objects

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DrkjnGwn6V8DR7JzxxQva","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":"b5xFUA3xtpmpWSrq1TtCx","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":"dFjRcQlL75wNPox9b6mWZ","name":"BitmapText","brief":"","type":"ClassDoc","description":"

                      a bitmap font object

                      ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"BC2FJKsu9mA2HmSwXBJjo","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":"dO_0F-JUpaMul7eii2Mzj","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":"NiEsXnJVkBh0Ph7C64KZ7","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":"uzGlngPJpF1dQ4TCINZUg","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":"3tNF7UorSPafnn1zCHcgo","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":"FhDFnCTiwmg96p2b5bSSP","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":"5o494Jqqq2-XXjEPb9NTS","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":"yI_BVhspGPmG9VdipL--6","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      bottom coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DoPACPr54D0rMNiWRJzyl","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      absolute center of this rectangle on the horizontal axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gvlndtSZSKSysfqLCZj_v","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      absolute center of this rectangle on the vertical axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0U6h8X0bwZ_L5ywhfyHFY","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the renderable default transformation matrix

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vlC_z-b8KwkbsAvFvhsJZ","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the depth of this renderable on the z axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QgJAVSr-dQTmQd1trigAL","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":"ArkosF1jib31melrG0F_p","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":"EvS4CXSsK4hCj659qbMNg","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":"qyjlHoEXlw_vPAkGzY2Bn","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      height of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S5s9gPHpqLCJGjvEY35QL","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":"LWRusWYpQm_ISNUZ4TCGZ","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":"QFdyaZiTUFsOnT7wIFnlW","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":"vzDKthmhjzLLzQUkYXHK6","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":"ssahWqnS221CT6yjwQ33z","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":"T1t3r-YJCBslkuZG_S25_","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":"tp1mbGGxYAQRzAbzp2zPT","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      make the renderable object persistent over level changes

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VEkkvyJ0LHqusBFmOCXye","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      left coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yf9REf6GuJH0FSsHqbtTS","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":"5cCdVdB_cI-582OrtcmWy","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":"MBu90fKFDtlYlxYQ37rTI","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                      The name of the renderable

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Whi381BnJ4PxfMv3AUZRM","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":"RixejnhBkgUVcILgVqNOx","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":"nVO1OMK_iWhQs--8jZE5o","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":"sSTZ_lj-lXvlz00GqTyq5","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      Position of the Renderable relative to its parent container

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rvQwegx6zFoFPkKLyC0U5","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      right coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9nFsq8J3gREEufHH7rcc0","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":"i7I5Ad1iXxiBUkkJ_9m-S","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":"1kXk9u5o2oS1bYsiBvScW","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":"MNYpt_vO4DCRk_xF_-3Xi","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":"-AQMBiABWuvzCasMNQGjc","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      top coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-MIrmvgrFeQMQGQXIX0Z9","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                      the shape type (used internally)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xb0Cy6Z3LAA7Z0BOOUYa6","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":"Ekpm_iFnZw39ABoHqdYWE","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      width of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"31nduLYPjCmHPoIXA3bfi","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":"C0JK3RGl-bxUA7ue7M5JN","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                      the text to be displayed

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-DbNZeU63EbJEku7QZRrR","name":"fontData","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                      font data

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rtTkQRGhMo0HPHj5TerOS","name":"fontImage","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                      font image

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sWM9X80GmzamQllf9qsq_","name":"fontScale","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                      scaled font size

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-DPFjz7Jt6Sq_iM_RUGGC","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":"rJTE5bsr_jIQzMr1t5e0e","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":"__AY2oeiXBZPDXD2Mg-p-","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":"rsDXzs7pu8fiVtVcw5hMk","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":"7ADrviFS_ZcBrrwJhNZO0","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":"_4Y5qkFNzitMNkO4u3VV9","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":"JlU2OBlwozI3SR0KK35je","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":"3g8KU94MbKA-apLwXYU7B","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":"s1tY2eE85KJ5K9oWBMa9s","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":"8E-3Ev2RshYJyqNhsdVDd","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":"s7XN1eQP07xpVV-no6kNR","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":"2fkQPz9rSGHR5AiKJrI6R","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":"Qcn0qA64bv-obJr2Emwe3","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":"AZryfPo3I4O_cbA2JIdo9","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":"T9gujeG5c3afokRPyRgFN","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":"e9mT9cNTiKcOUIlHxu2qU","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":"i89pIaMaAxYUU_FMowG-R","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":"jHV-ivYh8KKudnVF0QtpJ","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":"oKvD1yUhRsfz73ovJNWIP","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":"FBaAPUAztWweXfqNWHb_Y","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"mJK8X2UKtKF2HodG2bR0h","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                      OnDestroy Notification function
                      \nCalled by engine before deleting the object

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5mtkA72-E_9tyMV3LM97A","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":"ges853td0FY2cgiuKiE--","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":"RtmXM8EUkpjogTntlN2dV","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":"pt2VwFOVVav5hoC_mZCGR","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":"_-YXTt0EfKVeC-nqJC2W6","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":"zeMaiXCaWFq3YPM3EnG_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":"a2njqCImkTC-L7spSC3hA","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":"jdLQTdpu6Ce54dgqawFKb","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":"P4wWZsb7BJwZ1knBZ9R_j","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":"tZp1hhR2L_moBDpZEopsl","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":"1BR-GmFpUdIaO8nRGouh8","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":"rV98xxYK5_7jYDbkA0DbY","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":"FIiBv9QSTec6a7XgegzY9","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":"OCfhj9OITLJe917rOMJJO","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":"55JgZWqSozXNQHnnIZcdF","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":"cFbWUChkqHaI0dobNuVUT","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":"gZaKHqD3bEEXqHPGPkaJH","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":"F86rdizzFDNsD1Ftqf0iv","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":"NGrNhInY-oqPp36OvRp6j","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":"BQSpH4YrkSPgXrazNnnwn","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":"ifUY3Bjd36fyApvjYuCFS","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":"LAsi1n7Oyd4yc4kRTTiXM","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":"f9nV2CRYXxBNiajiaYk3B","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":"P6bLVy36l1AHBj6p07gq1","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":"GeJAT64CjDeK1ex_bRzpv","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":"JEzHoTbgboaqe8CNctqvl","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":"J1e5MevD_L0IMfLYrErdc","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      The AABB bounds box reprensenting this body

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"InceZDkVP_rfU0BsQb3jc","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":"y5FkEDBJLeFKWXfWl8fV8","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":"iKXY7hrgfG5vVLAyf0bxl","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":"i9yxynjFuyz-034P4aCbi","name":"friction","brief":"","access":"public","defaultValue":"<0,0>","scope":"instance","type":"PropertyDoc","description":"

                      body friction

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UceUG71j7NbN8VBCc5NX2","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":"hvNJlwHpHraa63Px18z57","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":"L1Vc32wlQJzQA-g7d4Go2","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":"aPtXVguW3LB5jtCn-Ntp0","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":"ugYS7m7PwRibq-xt_RRQg","name":"mass","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

                      the body mass

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g6xzFJOnz-vXywVwypybG","name":"maxVel","brief":"","access":"public","defaultValue":"<490,490>","scope":"instance","type":"PropertyDoc","description":"

                      max velocity (to limit body velocity)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xoX9UlA8NlXoaGb8scBEM","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":"-spM_nh96-3XhieYdinP2","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":"zNQKl4Io5J2MYOpSi4t6t","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":"ASMOCwFkO1aId3170R5dc","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":"64PhbUpcfhoHES0qsDgyG","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":"Ke0qFZHpCWEAMLb_9cjqw","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":"fxhOJ4vrq7u5sbXjAsXaH","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":"3AiRftQA7K6sltafbhfAK","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":"bCTL7TzxSNdNz-LnvmIt9","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":"GLUgbngTwAs-P5hX3Nw_R","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":"epAFzTfwQO_PvXPHo2_7U","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":"A7YyiG9mbaANRfrdsh2eh","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":"D92v47fDrQyGNRtpEWDBc","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":"VjTR0xE9RcvJQm4hstgJp","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":"l8fSQVnV49g468UcA5Ipt","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":"BwV5RM8I8ZHY3CQDufcQo","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":"XEN_FSVTbJB9ahr3EAi_y","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":"ejWMWtyaPCmEqy8EcMtXN","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":"udtLcqQZqS7I24ZdRDqc9","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":"f0Gi4KYziIuIhnVwjDex2","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":"pCQZ2GNfPAFhhk72m7dO8","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":"2WuU_rc6Uma-urAf8oyMj","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      bottom coordinate of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H6suZdpoL4Zg2pBAKYOH6","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      return the center position of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LsQrzJMaOIlXcvN2FLWog","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      center position of the bound on the x axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4B6LfYcBatNvaNNc735MB","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      center position of the bound on the y axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n8YatLiHdfFT7Zain1lTY","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      width of the bounds

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v_uf60s38I8ONlHV6C5Ao","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      left coordinate of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"do3N5xIsdXfwt9Q7Lhgdi","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      right coordinate of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hkEmU0iAIPrRcp_UuWU7y","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      top coordinate of the bound

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

                      the object type (used internally)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6-Ln-zEHhfuDaBZlBkztJ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      width of the bounds

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DxjPDTERCfmvxXn25sYmf","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      x position of the bound

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bC1WE70gQqP7oz5Uw_HQn","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      y position of the bounds

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uiYEJgrIFgr1xV_lo_ev0","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":"vo322WlFrNOkwiU4KP_ws","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":"kdGNF65s-x_Zb8AWTdF38","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":"kFzpuD4GuISuTrwCfMgfi","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":"cISvbyK2EdqGAQvToMurA","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":"khZNv0GBh2FjysCUw3Fpg","name":"clear","brief":"

                      reset the bound

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DNaZy90vWvUw1jhftVcxR","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":"e3y_JhuHnVts5q58PfXXV","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":"4C-5IivY8QSNXKwpsFi_e","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":"ufKdIlhWYiR_Kpa2qpboS","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":"WbR6dtOYEd-QAEdmCQ26m","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":"4q8abVJOJhZgnW9O_gKkm","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":"XPsXNafXiA6lvooz7EE54","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":"n5OooqYHgQRgF3vKXsNvZ","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":"idWafhD8lE_Yrd7Yuti0G","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":"wnipNSZMl1-MOJ1gT5xp2","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":"mxH-3cXzKljlmtgw529U5","name":"Camera2d","brief":"","type":"ClassDoc","description":"

                      a 2D orthographic camera

                      ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"tS6yzY2HOqxOMsetRZADl","name":"AXIS","brief":"","readonly":true,"type":"EnumDoc","description":"

                      Axis definition

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

                      both axis

                      "},{"id":"kKz_s_qdaLvqH-6jbJAp1","name":"HORIZONTAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      horizontal axis only

                      "},{"id":"sElkImc6yWWj40-gvaqNH","name":"NONE","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      no axis

                      "},{"id":"6cM57LVNxE9Tu4rI4iqLh","name":"VERTICAL","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                      vertical axis only

                      "}]},{"id":"RrawfwaOOkZEYDROFep1q","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":"3sZsJ5wWBgZ1QNVk6wV6E","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":"rANWRFZyMsXatC7dYOaSQ","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":"kI71DW6L5dM-Rmmn2XqTX","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":"6h35ggLO0_mV7jfX3KjRY","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":"_NNXai6UEKo1v2njOrI0G","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":"79anGxm52xpHEqngX8HCi","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":"WpXadrCa2io8trRkI5Db6","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      bottom coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KD6LKTXV-MGQIMGllKBpv","name":"bounds","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      Camera bounds

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4krCnApttmPkAQryOnNay","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      absolute center of this rectangle on the horizontal axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"M6LsDlBYWZOGvTAcXqWmJ","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      absolute center of this rectangle on the vertical axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"icd8tB6RNdt_iUSlD6-ch","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the renderable default transformation matrix

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mXc-Q5d4h4HPiShpz-cMc","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":"PhldINjqWmCOmnqysF9pC","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      the depth of this renderable on the z axis

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F-R_AgTWPw5rsFWIu-LAx","name":"far","brief":"","access":"public","defaultValue":"1000","scope":"instance","type":"PropertyDoc","description":"

                      the furthest point relative to the camera.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"41U3-DtE_MjciA1CFi97e","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":"ncPf2A0b6QHbBeKveEp3P","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":"GZI5fCotroK761Lgz3asY","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      height of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bY4h9Gk0b_0PbCgYVKe9w","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":"fBXdlZ6BMvNB0hGhzpP7b","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":"HwO4al_rGeVLXWEwb3M3r","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":"NTQl2I_CJX-tjmkc0DKwA","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":"HZRo4_OYKCE-WRI3bNRx6","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":"7UWiVU1UwgU4V_2tWvB-f","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":"wCFbK2MsA2MaX1L8f3EC3","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                      make the renderable object persistent over level changes

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jC2afmCLpAdHhNqY6RmwN","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      left coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XrhpH-Dv2AivSO_AyiacY","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":"E7g7aiCbQoGi6RRsOZDj4","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                      The name of the renderable

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bW380igOTqo0gdSz12vsz","name":"near","brief":"","access":"public","defaultValue":"-1000","scope":"instance","type":"PropertyDoc","description":"

                      the closest point relative to the camera

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Aaz9SPI4JI4-So_-vIh62","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":"11pmafrrWl83scYcGwHq_","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":"1B02ibwWrUDqbOaDrdkeW","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":"ZjD-0fG9cyTDU_veCgspx","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      Position of the Renderable relative to its parent container

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LIHkgaJWIvHuN09TI0j8-","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":"AH0mHZRE8Z3gPp7Ie5p6o","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      right coordinate of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UXG7b7Vb32qkv5CRJ4CFk","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":"dqwygnf03zJzOnEofcq9B","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":"ZAWHku3xXz1m21h3UkfTR","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      top coordinate of the Rectangle

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

                      the shape type (used internally)

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1wTaJITI3QnS3V_zQKpRW","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":"k61sfepEhENvOZNN5LFYL","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      width of the Rectangle

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_0X2qRn5-UFSOZN-qzxZn","name":"smoothFollow","brief":"","access":"private","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      enable or disable damping

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oMwgGSJ89neNw_-h3cE94","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":"KcplEqsMruTz2viD08wQe","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":"vpkgoD8ROZO2jsqY_LL0m","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":"l2qr4f1qyj0yrT0iRvvrO","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":"024_jtqMlya7jE88pYd9k","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":"cXgBBHvfaFS1ZHz1xELdK","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":"OR51WEMP36LMMQgKCP8yA","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":"o9JhbnV_wDd67N2oKEOOC","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":"NNAZp_hj7qC5gtd_Dd4D_","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":"NYBzop252UVfk9H6aEIpX","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":"qV1GfHCOCF8Mu_ztFdneE","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":"yo5FnKbO2iyAMfCFASMIt","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":"h8vEZl54UTpH35zMwoaR2","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":"6eY_YmQ2Mi1aQI36cP0Mi","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":"o7n4wN4P1Zxe0hR6ou8yK","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":"JvUGSyfrFeiGEUGMM_VzU","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":"6EP5cABGeimpIQ4XSFCwb","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":"aAmbvH_MF8zasRP3uhf6h","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":"RARtCVl9WpDhhX2z1lLcz","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":"hVBfAEjYQRn8bsNMHIb2m","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":"qi4SMF3QBfOFkf-MWiDvS","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":"4A50s2eIQQLmQUnvCs-LM","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":"yg_PYH0dIm5e4XzARX8Ja","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":"J7xbees9XwDSvoyTZKwMe","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":"Df2e9M_ml_KIjcRr8qFz4","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":"7WMBwoZC2fbVkBCm90o93","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":"kjYeR57YaSdn5HVQD8ZRu","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"q5hc20LLhPB_EFNnAsXLI","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                      OnDestroy Notification function
                      \nCalled by engine before deleting the object

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"33U0-BnhcTy9FzmNxi996","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":"udUHZmwWS-U5GDWjWQMWc","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":"upYK4UKM8M-vNJ1zX_2ST","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":"HGBlVRdPhVyCYsjUsq_-u","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":"X3e77v8q9HrifycbV5fyQ","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":"KIwOfpI7uWv13aJTwaeRK","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":"mT3-RJY1oT4QEa1J4wxRR","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":"kSOSS37GwjYEW2hLsBnkk","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":"icOCTMnMXE6zxEuLd75bd","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":"cRyG0RbHbzWbSpUHfMyzO","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":"wA9u53pEDqnvhKc5t7FWc","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":"FyheD68feIy3QZvlpq9u9","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":"j3_jzBOIcFz7wZPYeh6PY","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":"bbUGFwcO0GCpNt4OAqZrl","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":"Xf1YS_SLRvMNXsN_7iXuk","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":"Gz9aSqHPGHonegCcskljR","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":"CChfu91yHnBxSviA133qB","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":"xxRNFjSpORi0BsbdxaVSt","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":"bn81qL8Qml_rcZx_gnfTY","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":"saBaEhktrffQZHy1mPKN3","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":"qgJFvA_ysQh4yLtKgsIw8","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":"PWBXi8lEgixtcfXGPFfDN","name":"unfollow","brief":"","scope":"instance","type":"MethodDoc","description":"

                      unfollow the current target

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8lqaIcPnrmYf2nsF8Cgg-","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":"ugzciVnZgGIb9sBRmB5Pw","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":"FNcp2ljAOvYInb4A2lguM","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":"73xdiMYbkSZfE-7cfvcj_","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":"SwDUPkQG9mQHPAjR6hdg2","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":"1JiXaJQ9MDgHsZK9kwLYF","name":"CanvasRenderer","brief":"","type":"ClassDoc","description":"

                      a canvas renderer object

                      ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"Q6MRSmiPufa3Tfu7SubyI","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                      the default method to sort object ("sorting", "z-buffer")

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LfhDVmXw8dpXqOVTCjIzh","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      the requested video size ratio

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RWxjUyqtjcJ0-0Xp0yQBh","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":"Q-UhZi8CplTIlAlX4PLPl","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                      true if the current rendering context is valid

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eMuXK9zMqhmDDfdmfTHVG","name":"lineJoin","brief":"","defaultValue":"\"miter\"","scope":"instance","type":"PropertyDoc","description":"

                      sets or returns the shape used to join two line segments where they meet.\nThere are three possible values for this propert...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"K7gyMfVLUaNXMyDHPUtac","name":"lineWidth","brief":"","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

                      sets or returns the thickness of lines for shape drawing

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e8TOcQ_ePdGc1bbM2xNFP","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      The Path2D instance used by the renderer to draw primitives

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RYF1SHXDaJqBm4_YdUy6B","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

                      The renderer renderTarget

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NlHm_KDsozl63SuSAfjV5","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":"tjdd0fx2kgzwbPx671Ho4","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                      The given constructor options

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ouo_EI0D3UQZ6NWLEVDXr","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":"yoKo74gAvLim6Z8oW1Kox","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":"vAicY9D8sY4lzZtYAuj3B","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":"yReFq1FR52n-Fe-5eKBVG","name":"clear","brief":"

                      prepare the framebuffer for drawing a new frame

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JOu9L2nNSy-9_teAPWtcY","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":"2uwroD6WylYAef9SU2sTA","name":"clearMask","brief":"","scope":"instance","see":["CanvasRenderer#setMask"],"type":"MethodDoc","description":"

                      disable (remove) the rendering mask set through setMask.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nXHFfGeWLpiRWIgV9rAVc","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":"gFPk6uj5jwZm5DA6zEWDx","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                      clear the rendering tint set through setTint.

                      ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Dj2jMFx4YTz1SccGOH8Fi","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":"mswyjgNQzVQpUFfRlcQSg","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":"G1h2QNfu1AuNT0IsPLW9I","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":"30Cco4Gpd62tLwrCHwOro","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":"BcG_4uCAC33hHlZeSrn5D","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":"R4b8pohY2_fYYjZvAaA09","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":"n2rtUzUI-0UYZgCFxLo0Q","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":"Sr_tVKBH2zMUETVtK-A54","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":"6Od-nSvLkb0ltZ9cmpJ_O","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":"eKcf-jc1p7uNrel2tgWqa","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":"48y2jopTKoHJaFA8FwFbW","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":"o98dMy_CzLVkCFF1Foxyh","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":"66-kqCNvnU24-goLSNTfS","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":"82n22-kEXGP2RDcZomG5l","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":"YXcpiv1p8oWi65G_TgY1w","name":"flush","brief":"

                      render the main framebuffer on screen

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MbCYsAMTvft9vUMqIU3Oz","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":"tt9vGMo-o98wBsRuNM-f3","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":"EL0VWq_OjcT5vVaCJ-5kt","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":"qYLoZwI6BGLquWYVLlFnL","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":"iqX2ygYAMK-oU3ZW-xFLN","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":"fYhj3ePbc2qsVnW-a8CCe","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":"qVSgThFgAjpteOra9l3SJ","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":"DO6xILZPzq5Zg8-WI_H_F","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":"q4Wy2Q5fltq_sDxamkcrY","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":"vK-FDrdFMjLm01RFD3rgC","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":"0mbgJfpzYOkxg-8WaCymq","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":"9Z8dcB-Y_VdKM7guPNDNv","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":"opR-Y_QA2QTPCrP-ejW2h","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":"yzrSH_a8PnI633UiOBndb","name":"reset","brief":"

                      Reset context state

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qLO4HfUemzk-N7F9Rkrzl","name":"resetTransform","brief":"

                      Reset the canvas transform to identity

                      ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5gHi_xewuLkqWyvbybh-h","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":"IyOhWFz2DfwcNeAIK-Bn6","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":"FfA2bek5a4aXjtpmIInJE","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":"w2YZ9TpSqwQ2s0z08RM0L","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":"4NXvMJSCSbvFOrkKgDVQa","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":"gFDiClRovwhQIYWElrDs3","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":"zixDKrwFjmlFHs4qXJtYo","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":"Atq9XLnzsnkwOSajlP9MZ","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":"1_jDeoWDTXvdS4ma2elLM","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":"je2KKjTkvBVVx5bq5ONf7","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":"nyIFS4u_dZyAbEJNJ-59V","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":"5rtSOYfr-JhGuvbNCezWQ","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":"B-1inh7c0kVHUm-p3p7BU","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":"xgXVxr2DhFhAmJ6rXnYXy","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":"_HcwXlf2_NoCkPwsZelje","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":"vRPfr7FNufJAZpv1zAPf0","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":"YSxZuWvYuqqAAbSZbTxqO","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":"-kfpctS8XAMmSoZqzZ1i9","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":"dZX5SEFT5PhHZzZnrrw5o","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":"N55zFQlXOi9FhnM_RyB-A","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":"XCMJ-itS0XZ1HFNoQSQJw","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":"VRnyMeFIfoCHTov0Lc_0o","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":"sL2G4RMdwVAG86YhPfXAt","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":"95xY3bt2VgWIlWc9iCgvP","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":"NH0Q5iccak_kOEHgpp4H4","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":"O-0h0BnHxS9hXJ11ne7S0","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":"S5-iS45jORvuv5x3Y8ALw","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":"CxUCO5d0J_2Az6jkFCKha","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":"zqEXih92Le04nDMJF3aQ8","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":"NOWAovyIceBk2HA025m3K","name":"CanvasRenderTarget","brief":"

                        CanvasRenderTarget is 2D render target which exposes a Canvas interface.

                        ","type":"ClassDoc","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"2Z12rkE-72TSswrEB2qNg","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The height of this canvas texture in pixels

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3dXTWBCjiT40nt-9QpbGQ","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The width of this canvas texture in pixels

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zkQWEskjV96OtwNlKzbft","name":"clear","brief":"

                        Clears the content of the canvas texture

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iAEEdXAnSd3lyxAcdKGQ3","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")

                        ","dataType":{"tokens":[{"value":"string","kind":"canonical"}],"template":"string"}},{"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":"xhSj_EpnQXPr5zVnLhCL8","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":"1d6bu40-vpJi-HNXMbAA5","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":"Yodwfj3Y8RfK72WHtMw3C","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":"T-BFJDhcQaqe3iAbGnFBM","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":"Vc8Oz_aWURdk1ivrLLooS","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":"ia0dBssk5X7McpCz4GIYY","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":"QfI4NBIUe-udVXWzivxeu","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":"zhNRTnRkXbxHrILBFguzK","name":"CanvasTexture","brief":"","deprecated":"since 17.1.0","see":["CanvasRenderTarget"],"type":"ClassDoc","params":[],"returns":[],"extends":["CanvasRenderTarget"],"implements":[],"members":[{"id":"OvLGE_lN4mgZhv4WKOaoK","name":"height","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The height of this canvas texture in pixels

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5fEn78v2K7SpJN2yajNtL","name":"width","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The width of this canvas texture in pixels

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UUWTbTXFQiv-CuiAtvZWi","name":"clear","brief":"

                        Clears the content of the canvas texture

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5SJQv-oHodj1AuM35N08e","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":"Ii82yp8N8Js6z0II4immv","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":"YKyjqqDCLmhYVpr7i-YVT","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":"hXfzN8vneVueCbhBh2cMe","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":"o3OhataD-s4z2Aq7J0jEL","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":"Sf8yxx3vqxWHuYizNmmgW","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":"5rOqsK0q5H0iTwDgKc0P3","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":"USPne1CCE0MUVEiVOfFLT","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":"kpYMko2T3n31kGr9rm7Kt","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":"1ZE768nb5e3yGKDx9KswT","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":"UrYojggrdgBBTzGyWaC2O","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":"4q3YGOlT4kSRkpiaY2Jqf","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":"kfIDtZGjQ3WVOWCCj4y7j","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":"JAg2TX-YcM89qSQtD0GZe","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fUG61W34INNlOqYIjaXfX","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HPNLgDtevP2lMwtzGxSxb","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":"8D3dKcERyZo2qxmDS8IeM","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":"iPAZDRaV2Lqj7ticJstne","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":"Cz2ls2JsaCyF8-I2yJ7tk","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h_VBYdzTye3V47kZkxMNr","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pUyKogIcRsTu9Vu3C-dqW","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xj08AuqwdUCe0e1XHbAwD","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ytdKkNe_GTgv96xWVTD6g","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wFV0mFEIoFfWTUu9_klWm","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":"R9M3zuDgQj6jh_lHiZa0d","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":"oJaR0_RQ11tQSi2EwYmK9","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TUu-GAiy_E7RG39cUKnx9","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":"AUo6YZI2v58oJyauzfbpy","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":"BO8CbdebYwGKXWAMLxWrB","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":"ao8Ns6OMAr2zD4O6XqJRg","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":"x-VKbK20PRgq5hWSfgM1z","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":"gV2r4as0_HLzFsvUHoYa_","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":"WLsQXCGfS8C-B_L2i0s_Q","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G1tz9HabsT08ZGUD8npjn","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":"w8Qj9tk6d341xTDXLSGQF","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"205K7mdKv-YDhigyTe3uw","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":"i55EuSUVj35xOw7KHB8Ro","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mhx5sgkCVhE7YgqrY0Pvo","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":"X_NjlQ5C62Z-CAOJRTLmQ","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":"wtOJuibMr5Iix9efrIIXC","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":"Pv-fS8XHo2KgT67CALWUY","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":"GOqwvesVWlEu2vE6c-UEy","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iYt5pItPsvPfVNAzO-ZpX","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x1lOaGYVVupXWtdRG9VO0","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":"wpFneevmSgtlMUwMhswNk","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G4tM5GcpE4uqFEygZqcvD","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":"DrZacFdbuIypEjzN4HdXm","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TNxq3m-bHiFC4dg0zmini","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":"fxCA9W37xn0TjafvgQUj1","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J3xGh2o8lnEWY8Z8IOZ6o","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":"NjW3s2IJuKKC7uTiNYvBe","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":"WGL3ZEtSOVNcT8aDL0QCz","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":"I8X58yPL63mcKNQjsPOh7","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":"9vwrPys4piXDjqThuN5Xw","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":"kl_Ah1UhzVyf66Ki0NA1O","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":"3ygAYN8HEUd5ALnbE9m6e","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":"q3I43LxmJurFfatzH3fu_","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":"jcCRWiCmD7uM984fY-coi","name":"draw","brief":"","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":"DLI08-6QnAb-uknEnNHjQ","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":"vnPfQQzg-DZZfTJQ_kMWm","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":"TvbQsZG2r_ct-2oQ3lhQb","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":"uyPrhigr2NV8ZG7Q2UajW","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":"-ChINk-W55N5CAam0cAGw","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":"lZJfFu2FmLJWMyBFdaw42","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":"BU4hHV6sIyB3cJ8ImYIB2","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":"DJzrSZ6XdLeFInycNtyox","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":"MBlwrYkszWSE_jmU-X2Se","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":"RFrnJdhYzDbqKUXfQiiNq","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":"A6t64LbOSzBe7j9SuiuPt","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":"jSpLTVEDrLmz83qaNaVrK","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":"C_fZjHbgg6T1JM9WRwiSt","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":"kY8Bt7TTK9Zt8JxtNfFHI","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":"RLzuCUTcRDX3ztFh4YZxh","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"_kxNtilsoPupig58FLhUT","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SXU4qhSwo03AeZ3Ip4rp4","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":"cz15w9sx_DgVGoi4pCIiy","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_up6igqAaW_v5p9HfnL_S","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eFnNpxQYjLC9Vx7mBsBPO","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":"AUqx_hwcSqC-SJVlvPCAq","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":"Bel0T7qjnSYVFraVyrFdn","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":"ueHPI_KDPFTXezuYV0aoi","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":"XeAjYwz6kmvpBs7SYnzG_","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":"1b0WS0B0djjOnc9fUk5jE","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":"0ffQLdaIHNNN1iioFsfrM","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":"XZnzjlPYYMN6mZ6TPE5Dg","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":"NUlzDpplvH-U-pBGMSnbI","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":"NJpWvF5AibzujWEIUxxB9","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":"Tj7d9YIPjX1u3sqxLaaqT","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":"F_QSB43P8DN1LEU0G09iA","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":"FtBJbPj5u4mQRJ_AGkKUa","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":"D9OxGzZM7db9kwfpPkolo","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":"JrVVdAVTz0qP_X2OxK0DR","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":"ytjnX6BJJfJvD6QBi_DMU","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":"NwtW9uPPSlbP3_FgiUTda","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":"Ly3VmqgmcXziWAb9Sqjjx","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":"Sj-L5ZLZpBq7bTfuPRc0p","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":"378zFsx4jU7rtQ81-Hwzf","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":"HxFxiwH1ozjNrvmG3nzEF","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":"GU2LU8Jqh9FsQVKCTVUtd","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":"dGF8OJf1EFBvQ6rPb6ciU","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":"lEEe9Cgw8w6RPslDptX_9","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":"bRrDIzplAJfU5mGtgTLAS","name":"Color","brief":"","type":"ClassDoc","description":"

                        A color manipulation object.

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"dcKaSLrCQPfp1mPSl4m81","name":"alpha","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Color Alpha Component [0.0 .. 1.0]

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tQz2il9N4uB0QHMQGt7eJ","name":"b","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Color Blue Component [0 .. 255]

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"NmInnSuIaWmCzg8hXKCLI","name":"g","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Color Green Component [0 .. 255]

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ATiGrbtRnaUk9w2nlYwLl","name":"r","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        Color Red Component [0 .. 255]

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-7rK7dNMAVibi5SOxTbMr","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":"LWvvUIJ4OTBGY8wQ47fk-","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":"-dBk57JFbCMVeGdPFr_mW","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":"ChJZ4qiAX8l3tPhiiBxPb","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":"ORdR0FZTsZ-a-JYTI7LER","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":"2XlCZyUO5An4DVHEpp-3O","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":"O8oszlDq0hxekTPYvh8rr","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":"R_wJotbFNJtWvI2mG85xn","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":"QNf6Buh50QOzDIRimOU-k","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":"BVk_o5_G3FcK1nCL9_lTy","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":"tM4DPJ21iQGSR14033el1","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":"IWVjyTw9seqXyURwKSMpC","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":"cjYrBPYbfNMDS-21yfhZl","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":"TV4OJjU_XgwA8jYIvvMlq","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":"MzxVNp4N3E3QEI8BwSkz2","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":"6zsKYAo5Qow8NuCZMu6m1","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":"vlZLCQN5NGLvAbl6j46_F","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":"JaFScwGW7qexvLxudMAKY","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":"EpLPPWFXE2Un0A2AixgPU","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":"pfgFf33rvyB4Q-RnSfawV","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":"m6_Xxq_WFI_4ubpkG2neQ","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":"ABvSyHV9UPGJ0OGEtXFow","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":"5eeQsBsxsLOMCg5z1Sb63","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":"Ge_3PZLcGjnEfp8RjN2l9","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":"HP2YUDWwlQ6m5C-CbObge","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":"OiZTolzXl93OaUAAlTZN_","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":"EGwYY3azWzQEHpWdnLGNa","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":"uZBoieYML7SSD3n1SpEnq","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":"CdOj4_ZdYEYifoEoSEvzo","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":"nqNpF2UltzYCg20D51hzu","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":"TYzMBw-Uk_sMtpzENT-yt","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pG22xbOgSARv7Q01FGzCl","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c4bSWzkCBHJX9KR-8WeKK","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MudBOdpQIB3FYT2DaWk61","name":"color","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        the layer color component

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C03z9w-YHko4yxvxbN5Oa","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0CDSrbVzMWzyqefDnpDc_","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rXIz0dm-j3OeGL20epIVb","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":"Q-sDyf7_xphpL2UptEmIT","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":"t1lwEihbmJzyUa03lr9eV","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3CI6IX0tnOKhWvSeTmgsX","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":"Fgb9r1nOQVbAELswAMiD-","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":"m2220MQvmSN2AxRxut-CN","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":"hPwnwwqcEDIHkX2h04y_L","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":"PKkbImU_CF-83uLKD7dnH","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":"4stMjDqeMBa3P6eghIueK","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":"ONMaqd4i2KDXw_2Uqv1yQ","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zYcwnonNJ_w6OYMlTqydR","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EPqoajJvfMcuEqY-Qmtl5","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":"gSAE1b6Bo0uTz2CebokdP","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EoGruI2pmUNACq4zvSvA9","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":"WFtcpVAsVHoqzcFAAjNv-","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":"ptx9RulBRMSZIQOL896oj","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":"5NbTOLDeXqjUVsMTmJHd5","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pi0dtHpkumjba-zUUIoPJ","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ay-pA6ugLRKZWR0xFhM4Y","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":"ewW3KMF54usumdpz-lkWL","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":"sE-iaRuFkzrPf3yRvQm5l","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_FrbGiNW-ODMRskcPdedf","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":"1_8kQFqmJILbZA71KRldP","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kAbfT397_TqJgnAbMbJb5","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":"f5Z9nx4YPtvtS6Stb_SL7","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":"htkbNoypf6HnnLLcF0zGh","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":"ZzA8Lf1l98hqkHO74XFNW","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":"z50hp17av25qK52NurJXA","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":"A98W5SU2gLhoWTCH0Mlad","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":"U_I8lHlav_0cQhef3vU6H","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":"g7BAXQwhyVC4GLmFphJ87","name":"draw","brief":"","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":"_9uJw8OGWGf5e2U0eNgt-","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":"vmShL4DYJmHZjVQZKhTcI","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":"LU5eIbNaOH-_5wNWPC8F1","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":"ivHxAsMqajjRgIIJJ65ub","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":"L0ieI-UQ_qqM5-yzBdNP4","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":"mygpzX-78tVnf1a4YZint","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":"tizAsYWECw2V2Xz_ik0m1","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":"XrmsTiGCIZ9gcvprBizUA","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":"7SCbBexBq6ecE9XZVdhBQ","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":"SbYILunisVJ3EsMDfjSz7","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":"GzW5kIKuM7_j1EdgAnclD","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"bTc9w1g8-RlekfvfgRxqr","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TgaQy73Kc_dEH7piBd6R_","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":"IrTSCs6eJId17WdrYBTKp","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":"e8CeXB7ta1SnvJZD049R4","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":"FuijLQh6RW6sEHZbbIffW","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":"_up-VWW4k5RaM0LttYLsK","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":"JSjgUIfq9K2RNwkPF7vXl","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":"dh6bWA_-EB8L40D3H1k57","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":"QrArVGbbLqq7inI0JXJ4K","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":"jeuwAooi1EVDeg4ZUB93D","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":"pADA2bRkXROtZPMIsNcIP","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":"MvcZB2J4PcJ3x5P6YrxYv","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":"EoDjdtekMxtgNHHha4L3U","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":"8rDbleQz9elgUdrtgrnUd","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":"y70Oi-vGhe-svw1oV4mfy","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":"dylVxVCwELE--38oHmuIx","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":"m-_mlfm4OHpxpZB3JpLFR","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":"HZoAskDjlO0ct7L4RcJYy","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":"U0qbpdEsrGUiiiOeJ6mWl","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":"9mBSbA7C6WPuRR_6OSkwB","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":"i2EsJPhBLL7sdJ5ZEqe_n","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":"rTs6t7G9q01g28zVvSXjV","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":"penFCFA02V1P1pKHxj5Te","name":"Compositor","brief":"","type":"ClassDoc","description":"

                        A base Compositor object.

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"EHBdJjI-psrb0wNFsE8GT","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        an array of vertex attribute properties

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DrMV-4tMgjwKMIf3GE3XB","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the shader currently used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4xocD3aHD6TZ9ZEG8AUGS","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the default shader created by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H07PFQfBYl3qHUPYY0m32","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":"c5XSZTEPTAeMrLKECp4d1","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":"7mG0FOAahBFTFIzxKozdf","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        the vertex data buffer used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iFBTLMqM954UpTi9q04ZW","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":"QViuXSRGmvsK8WK2Kqcqm","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":"K6KqFUcGsWbwmzu6dQw1J","name":"bind","brief":"

                        called by the WebGL renderer when a compositor become the current one

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cIlswiJx2GfRh5jLvX9IQ","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":"BfSCWkmq8Xc_ciyb58Ygt","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":"HhmicGFZ02mwmkLUF9yLq","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":"XB3TM7bzF9QtsHOu2jcMh","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":"fk4DO1mdJHDyK18_AEdxJ","name":"Container","brief":"","type":"ClassDoc","description":"

                        Container represents a collection of child objects

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"lyYYSrQyg6F-vwPIIKVfU","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":"5mb8kLhxKXeloOvjAWOXx","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":"c4W4NC224S2X2TNsBD-NE","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":"eBlo4_mFQudIeVieMc52y","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":"AhrS9av02dvtDZ5KxJ7L_","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":"kz8608mf4E23W96kFH-5n","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":"oHuJcNUchWUStDgQ7ygXW","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-PsPUliauq_ujV1-KEIe","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":"n9x9Y2BeeAkWw6Px97Hg4","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":"rKKvsIJ__aZhf59lj3v8D","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":"PgwU9Z8Jxe9vWBFt7FC5R","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2USx1svF7cYlXrS74rPf5","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ynMSgnG20bL8cUUUKAF-V","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"29lvxsFHFSKUrATN14S3u","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":"UFuXKXLMcpo8pwWm1yaVK","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"etrfbUK2Fx_a-VUX8jQ1-","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dB6h9pdZVrMr3rC0-Bk03","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":"34cFH8-zpygVS2pipXdMG","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":"6WwkKrrKTKwjLQAxyvDxR","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":"gnMLPa5tqw_13BD7-gzPZ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I6e2KgmIxloOE5_6VdLdc","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":"qeiheSoMouWiW55h2vI6d","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":"Qycq5yvgsvgvr98buYt74","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":"a7U-0Qwj8AAqiTfr9TAmi","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":"yuw-csLNnFl34V7ZFdwHT","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":"tnmLe1XfKyuBw0DqrgtjP","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":"LMzjXJHLmKaLfrdI7smij","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"keIEZWkFM08J9wY4gIpyq","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Fjfr7hEHYz_YHJdORjzC-","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":"qMZ4URKXmOWGKrb4JwB0E","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CvbU2svBbiEi4kblJu5Fd","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":"LMmQCf06MQYHBuA_yl3W1","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":"mRo9QD71ZjtClkVkxWDQt","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":"vNgcVgKi62rmrp2oPtQqJ","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1PVRstcZXST730wm-MEyh","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"73xbS8AacWKbMl78XH6OO","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        whether the container is the root of the scene

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S6bymzU9bOoUVqHOyOYx6","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":"G-CQ_Fk0mAzfYFHUgRs9j","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":"OLWQhLMPr5c1CqKFm-YjM","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":"yZEY3yEqltr7pTaKboOkt","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4JEaUwN_hmNuptuagCnLS","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":"gjopc6w5cTBK4OvWaszp0","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y0Nku6zO1ivU8gMEcFwh0","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":"mWbFKV3tu9087rPSdS-zm","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":"9uPMUV93WD5ZpUYuflpXZ","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":"rGxNk8_oKuquK-mRlX6Cp","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":"Tz7ku4Kab7X0ttjPP3Fc2","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":"68Yl63mkE2A7Qo3r3EPl9","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":"McjpZ7DcPhNhrvcomrDpT","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":"F2wVZ1-vQkTzKKCnN4_jq","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":"TUTlYj32WmTMw4Y-mSA7T","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":"D11aIQBZVyxzSHGhfoRoq","name":"draw","brief":"","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":"otmp96wmoTVXGB3dZPhXP","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":"FQV8ODQdDG0WcP96a1qfr","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":"JX_PKX8mkuI_72xTGXq8x","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":"jXC3zOsfL9pOI2uAP0lzg","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":"AhjvPm7_154IJ1pBdU474","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":"nKRwmw8OA3lypvIm2GO0v","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":"IN3mrMMoTBpZQpnuNe4Gi","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":"hOi7wMscfoCj32qR1QCc5","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":"t70tWQoYE08I2y5SHl08g","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":"wti-MoewGdzOHYT__Z0j0","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":"cQ2m-5-ECmiAMLAnC7AFq","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":"YtiBWuQkenpZEJiE0ifpB","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":"_8VCO7DK35bsO4Iq1JeiH","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":"ggU42l-XU1DmE7yqooowf","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":"IXAZPKIlDbfpLF4CAfT0c","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":"-a_KGRYjC26We5usk_2ei","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":"lEhu5WRxLdDCh9jNO8WKB","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":"-cNuX3TpmmGtNjYHZZQos","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":"K1wZKYEO6ltp2v8Y7emUA","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":"ZtaGTMOZWuJdUP7pFmPcS","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":"ec-nZIOJKADiT0Wg02VQ7","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":"xRQr3AzzjnF0jwAsgtLUq","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":"iVvGQQoNZt4a5rsLtqCJu","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":"_pv8Z1ta658txPMhXEmB7","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":"wtNLMxXkwcfX2GPHFu3bg","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":"PVjDVBx2bYe7K6dl2UlxL","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":"mtAeRMoe9y6GcUMLsZ95J","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":"nI36f8HzaTSfbpFQ422dm","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"MnAhHjEk7aGooEuWWy2a1","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rFEXKSZOb9uRy5e1IRZuy","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":"8gm47npmiYfPHvWTDytYM","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":"Aq4ppmN-AYkLBH1-EZCeO","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":"ryXZYOgyA_87qxtyNtSJ-","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":"y0rCW12IbDz0tXo9rm3Te","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"DT6KEfq5vUrTFH_4YeMGM","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":"Skq7RxEwhPrEj2hmjF6wC","name":"reset","brief":"

                        reset the container, removing all childrens, and reseting transforms.

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"99f63lnbdAu-_y5nkg9O7","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":"XHRMxiu9y9iVUEqwmm1lB","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":"OFyGLePSEB671VX_2AqCn","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":"FAh_gT22hGxaP7cV7wKYN","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":"8R-xQVKVNg0STMEU_ldPE","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":"Wa5P44BYwz1EsZaY0Hhel","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":"wG7KS7RfYdOgQrBBd16mW","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":"ar6dDuHJM8i4YVwtH6-DR","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":"_5GxbfeH2BXMayxIfXV2L","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":"upprVCZ4kbyfXrSGTjFQK","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":"gohTOrSBnXPdJArzyiLcH","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":"OaV7AD8nbyufM3d4IivbJ","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":"iUiQax0-u1beEQW9uIgUc","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":"Gm3XVGcdCwBTg0gYA2EWM","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":"Kv719hqtM9oQIbMrdAInx","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":"ZyyXiX-hKlQt49Df9WHHQ","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":"GT1LyhmjWiduAqXRI3Nl7","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":"4nSWbt6S2e_LrB2EwGm2N","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":"HnXCL6OmsqGVhmDKO-2xb","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":"TokiM8ycpMpMnLBrFfq-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":"EvJB-d3pkcKJpGzZ9WwVs","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":"RMse9eE3AckBG3iTetvjq","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":"iSIw7137B4H5Cjxp7BnCJ","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":"oeSzwK5Eh1Uvm8Ko2PdXU","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":"fOUpkB2hqoJDm7yVvRKbg","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":"1Vu6iHlk-eal3Ejg3nlJI","name":"Draggable","brief":"","see":["DropTarget"],"type":"ClassDoc","description":"

                        A Draggable base object

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"Pl_PeZrhhqMJJ0dZ7VTX5","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":"COUmV5k9jrq_hFQSnwJEc","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":"VeuF3ZE_NFoK0n8W1aEwv","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":"aJKIc2jCuLfVBAhEGssnt","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":"nXpkVwv0XwchWH0pGjWT1","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":"erOH2ZypVWwywrM7TeUtU","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":"c6KPnuK0mAiRaJsuhcd4J","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":"-2iIID1tK2fQxGOem-tbj","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3YC78kWNqgq-_pDUdaCbj","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JKLnef1WJoqQpVq8D-ntY","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hPx-6WMbQvN3KAcmHpOT2","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7LHfC9Hp9TE3GBYfzhAbq","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ke3YqlQfZLae7XTV02Lqk","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":"9ZBd1Umr3gaBVzsz7gd4C","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":"l9QM9dXz-1NkzQTuWVuTH","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zPjUgqFwFeUzQZd0dLsmz","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":"7KGB1yyjkRcHdg5GnjZdg","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":"suaqJFO1VdbxkICsCIZlT","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":"LqmG2eTbkRil4_sRRitF4","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":"WDZudV7lvuYnvep1s3TYf","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":"r9888DUqmTfIqYfMhllWu","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":"jg2uubrfdg16eUy09xXll","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qFxQpfWf8Uu14IwMLLUG5","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VDnCQjHg_occS9WH1Hjlj","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":"CZ-JgTlnp3dU6TJ34EdAm","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zPd_czhI2waEoySB5wE0E","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":"Yjh7vXStpU69vGRvCduYb","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":"LPyyuGJnt2MSLvoRmdNBI","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":"Zd_dszehs0AqPVcm3LMkO","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6h-CRvnFJoyyWqk6dpZHj","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bUaWA8LLZDJjtM_PdP6tk","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":"48T3ovCxk0_FhKwmwskJa","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":"YR6WAhUBF52wfA_knkMNm","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k8cguH3-8hPUJNleJCXhf","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":"Puqy3JtXSdqKKRlZH5CDw","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eoftYRbjeIg_rXjxLW2Pg","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":"yFdNc-Ywq3a2UQTs2T9km","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":"2l82dEWsCe4KpyLok_b7_","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":"ids_qh6xgKSl90QCj1RDr","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":"bmv26bGW8fsfG01sZcdaC","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":"H68FdmvXp5g5n4pqUqceI","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":"PG1mND5M4QZU_lg1kpDM9","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":"SvBt6U1_MLAc2PrHBcgBr","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":"-0kk4fwdMG2fINr_sYpo6","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":"0CIDvxMWQ8x3tpeWh5vbl","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":"jSs1Nit1xBc_u80bHRQSo","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":"ZNrbDU8JCXn5c4aoGIrtv","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":"exImMDtU1mvB0zQz1puTo","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":"0i7T94RKZsVcBlBYyRHVa","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":"qjTiLimt15oN3VQz8G23Q","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_l3jiJuW2RYpbE7FLLtf","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":"XUpUPUW1iQMFNzWJ32FVH","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_5PH2Sipffv3_CKE2FVa","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":"Vqsy5t4JzgtYg3CgkzPwQ","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":"V7Vip246RnXU_MxO-eWts","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":"_W5WaxNXnw45ecRXMeVbM","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":"bd9GEY5faZ9-lrdHU0pIF","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"1jKTT5T1DJL2Co05SpKhi","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ibkD5toRhQCZihewBNVvw","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":"q4Yoj40wY6LsVnlUhOMi2","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":"Wo5f5bweMK4eO8bMZbA2A","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":"QRycgMAH9IN2qdQibYou7","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":"lhP4BQIvloVtYEeyne5XE","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":"i4B_nkfZ0hcOKxAfyeVFj","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":"cNLhfvDrHLe-SwE8LTThQ","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":"q0UKftf60pShD3esCdBMp","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":"jQUWRXSRCsdfo9DrPbTNF","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":"G9ywxZ3TcTlF-Cq82I8Jf","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":"cs35cDAxFvHZzozHA1z6L","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":"dXc9axp0X-RfLBaVsRwj_","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":"f0Dp7u3VDm0GN4Ll05Z1G","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":"6Jjv3itaYjHbqpLfdeXgu","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":"07ctwoKTdN-H3c2Cz2RIJ","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":"zEoUyS67ijmCG197iNrEe","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":"UFdJ-HNmi7dkiHTDqEiFQ","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":"Hjy-mswz49jVA3Wi3Lwja","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":"2RfOW08gCH6N1yJmAZEKD","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":"yn7Dpv9dGokpEOSZZvQtX","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":"PZ1QnMcNAds0YtwRQl3GL","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":"qGYOps7u95TmXQz4zzwU7","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":"ooTG1dITGjfhuEBXQg4ZE","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":"1JwPDWbsR0MSLd-FhHUUa","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        dead/living state of the entity
                        \ndefault value : true

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WWrmxTHMkcgzA72hpFzKJ","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":"Cmq9ll-05ALfGxsv5kvf5","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":"uDoZvo7bvSVPIB-D4zUPI","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":"Ao1ABcbvJBMl0tliUvieu","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":"yP3DV9RO6sfeEktWbZxiS","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":"71U55tsBHlvkXFXmUdKjH","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":"wrCuGiud2K_1iQy1ngHKh","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the entity body object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xw6B3tnF5fHLiWbZrfJIL","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t0TwISQeT_Xdm50yF2RgA","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wORN0JP_i9m7x8AYaTlw2","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3gvqIwrt7Cq0CFvzsgFyC","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"niYMPNA6yLcJldpGYV30y","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"28nNFT926Mc722kfdg1vM","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":"ND2Q4OU1V0yw4CFIaka1z","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":"xbpZoPyfnDlhsOzYXWrip","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"v9lonT2v2WBsRNY9BOdm_","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object unique ID (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CrnXc2PzjTz-XLW3u2ykc","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":"Q-NB6J3dWVYZn5mPD90Rm","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":"uXvpBHbIwiV9v2rY9znhi","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":"s5T9mKEeINhNof4FpV_2q","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":"sjjniO2B0YnOpXA1pxUuJ","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":"wcuTWV-KHGUuNJyg8CbNr","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":"m1q4CIng3_fU1H8Cpb_5J","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GHMNv07pYi__axpublAzh","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_fwYormWc2bl3CFiWRcsm","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":"aawbhv1yu_gd7OEdZH5tf","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"naL_eRMolTJ1fCUMMRUKJ","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":"cTuJGUO2zhpCRVGrhvoRA","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":"m1Sx_CjWet33NNxglVkVx","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":"7QxjXIxfDOfcXmJzpl0wO","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LcEIQSDgSORH_kBHM8sbc","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":"ExAfDYBt0_4d7obU0OOBU","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6eblAjDw-e-wKKJ_ofJod","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":"NEfSQBD28CEbcfAqu010q","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":"zkZeHhJk2mJaFoXNPgRq4","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eJR4Tk8k45b7Vd5WgtyMz","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object type (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eeHkrHQHw1Gzob8yeoi3M","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":"xThAwBVoNNWQ3-K08jb6V","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wPFTP7bakZnGctApUusdu","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":"I1UDY8Pkz6B-JFRggJmmc","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":"NMh0QrGV5MJfQ9rv7RAM8","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":"4WnuntrKLGySOaqi9_W1C","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":"gg9IVI2Yrtv8tuesGD3Pv","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":"_ZVH4FJrGhm7XwgEsDhpA","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":"VTHqwWdUGanY2eyxbcfID","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":"kotggEnRtjV5t7BRXdBIs","name":"draw","brief":"","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":"mHYEKK5d1qpdIGHm5G6qa","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":"XOkJeGQhAf5c5j2yCrxri","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":"H1YXHTNUryuC2AN0xHh5C","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":"qpTrK8jz0aw2vImT2eUJ2","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":"jct6Gyt5tlEnDELPxWb7B","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":"w2PZshW73JAGDzaUTBoEL","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":"NFALO8v95F8FhWsx4Z6A-","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":"J3a4PFP-u6ZC1Rg6kAIm2","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":"EwzTZLFcuFgJXZLtzrj9l","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":"Zn2Z6VkepL7G__cWcGL3c","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":"_WJJQgx5pVj9EQlWTAqi3","name":"onBodyUpdate","brief":"

                        update the bounds when the body is modified

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XGUHx8jMuOPdPMAjJxfuC","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"6Xx2fqKZdUMxfb83B9YXa","name":"onDeactivateEvent","brief":"

                        onDeactivateEvent Notification function

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RyPnuUQfAAAVec0yEhbWQ","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PYUEiQXeW0qj8keKlX1DQ","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":"8vi13XpbYUUOcK0sJfHyv","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":"JZf6ZPkmgCknMDg2kHZNv","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":"mKQ46o3uhOYh4DItiGosv","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":"X4yxkDOPrklaeLlTyKza0","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":"YHfsUo4aYPcO1wKZxDnN9","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":"8MswVodqMZ3EFElaunNda","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":"lTLnQVNZo9u2Q7GXUCR26","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":"vuuAYNdaPieUqAbCcXcGo","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":"YtBZqbAEcuuKqyVFUU-ls","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":"a6YPVraUd6VhRps-6yQsG","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":"vBClo0dXmSOyU5jneVe1q","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":"ukRx5BRom9qUmRyK8-8dP","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":"usEDW4YIzHj5GDg42db4B","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":"7FV4ZYK8CQSfTlQylxrsq","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":"uCqgDF49Jbv7XcPScJ9qB","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":"lZ2EPQtZ4n3-JnMP2JH4W","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":"dHr28LEHhn32WWNefcdPL","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":"TLeS4PIXSB5kNbRJSm64X","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":"-zyPS5PKPA4FuecE55y2U","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":"6_M3I1z17C4QPF8RXmsR7","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":"pDJaonJHRpz31AaDIIjHu","name":"DropTarget","brief":"","see":["Draggable"],"type":"ClassDoc","description":"

                        a base drop target object

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"sOXvar0ny3hxjDu2Ho8YL","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":"lZjVt7qxZPuQ3MfxgnAc1","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":"BGz9eXOxTWYnZKLjevnbX","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":"3kdJg9Au_7oOfPgmfiDA_","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":"1CraIWgf3FU7RB9hSXByB","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":"DX3FUNYHwfQkHg90HuXXi","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":"FU8yQHce_Bjmmu2jZqB_y","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":"SXnbxrvXOiQWvRD6jrEXB","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tBsCn1Va5N2GEIVF4VwlJ","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"usBbhkkLyhsd8RK9EhcmY","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fK6X3ejSR2H-i2dF8ZMeN","name":"checkMethod","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

                        the checkmethod we want to use

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"86c2Nvxs7Wp2tNZPc5VvA","name":"CHECKMETHOD_CONTAINS","brief":"","access":"public","defaultValue":"\"contains\"","scope":"instance","type":"PropertyDoc","description":"

                        constant for the contains method

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FrshD_i9oQGwsLniwKgjq","name":"CHECKMETHOD_OVERLAP","brief":"","access":"public","defaultValue":"\"overlaps\"","scope":"instance","type":"PropertyDoc","description":"

                        constant for the overlaps method

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DhpC-5uPKOCgjuvcZTiSU","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yo0lIo3mjmbp0MCXxOAhn","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gJDBxCw2KTlCbyZU8Erig","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":"VzOaSv1_rwcoe6jdLOEJK","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":"zr-wUUUOM5LdcSoqH1K8w","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LTzLIvvBQVd4EwgVm8Sah","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":"LeZ-sFt_ht4f0G4Wyykn2","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":"i_fC_53RPVJ-40sjZx2dC","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":"Yg0h_RbkfJkWfMs1h5hAU","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-805xiFYxACjckrvmCjq","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":"dLrHT5cLCGXYJ2dARD-4w","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":"64ndwdoVpKCkNLKXYT-ni","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g_OcxiB-2LsYEaymhaA11","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JOL1xfjkqubkcSwZtvbnC","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":"UTFobLCm76XYht2j291ZV","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x8-N5cCjxeOnLbFSeI0wR","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":"MpCShjc_JjhM1qyQFyGnq","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":"VEJhLTscKIpIJdkRHdM72","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":"x-VwFiFQJOcmSl4RCeLht","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m1mH6G90ucfJolO9hM2_E","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a5m3cjziNtLvPLFHo0yLr","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":"xjaZAEZU_po3lr__A88-5","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":"Rv0hrAOi3VX-oDYNnf60J","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wycUP1_1gsb-YJyMf7AMN","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":"2UQMo21af0IFE8E31kA0Z","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uaHQpiraOW6j1I0gTeQfA","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":"h1H6grz_AgHY4a40DxZyy","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":"AlOTrUZSyvgpN3SVcwqvP","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":"pctA3lF5oabFFyeeJv--X","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":"fH3vB93tUwHr4PboC0lBH","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":"RjC-CvtNVcAGlKmDdD1RK","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":"9CRwyt5g-APpXCdPSoqD1","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":"5I2RYOUJqFZQ3LYWCwO0a","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":"je0ARWPO1zVCdxcnH09HS","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":"dYGztroUij5Ud7CeqM7G5","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":"E6kYQLAHe_kKhLpiNELK-","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":"eDAL0ergDacM6Jze5FF9p","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":"Pna_qHJRY8moZl3OA5lkm","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":"GypV8jAFwkxwiX39wdx4M","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":"eTW3Mf0QuB_zLXsI8b4a8","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":"R0ktu04HPYgONaJSYkRas","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":"_w4hltP1oI3VBc3F99qaT","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":"qf7D5WSwBt0OvT4ORgJZ8","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":"lj5ifaO19RiO9giCLkIYa","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":"BF7OuqmoSqMZva1mF3HFF","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":"fffpSKg3KIaTBETsdgFcH","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"30kKLAr4nVBGdw0au8M8H","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cgfLAzkNDMenw2JhnDILM","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":"t9Q2UBmuaVZmO9_FmxmO9","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":"UP-_7BCF7eKptgnMTwqcM","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":"Ot6mhI3XXD-sJesKz2T54","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":"fP1ru5J42LT2yxc09afVL","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":"IctAIrEeqm0GMz8n2CV_z","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":"Yer7HQRRsWmYGVGS05ctN","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":"OoQkdAUSTuCbWyResuwpD","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":"r1kI2bO64B_NHiqbIiJQ6","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":"AQL-GHrEWdsMulRs_cvIF","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":"Z1zEU2p-9n0o6TVS_u2uk","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":"0pvPmzPVBEm-483CLqvyv","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":"h33GUbEGjsLieP80hO1Hr","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":"bikYYowxWkNSQUtQJHotf","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":"3IIiNK0nyTffgQTjxdmoi","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":"ouVZ9oYkVdbrtsJpBxQM_","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":"vpxL5WhYPb_kgUhI7XGy7","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":"RRPuruN4uaOJw2EpNV22e","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":"_RePh3qi1adSlw4HiYH1e","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":"S-BU0HhB83vAyR6odBz8c","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":"tzGLN4q_h7W9oeOyTWmXd","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":"EWqqutYmXyiCi_iHp-Ayx","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":"S-uOKUWBkgxwEYIyYdSGv","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":"bT_lel5vurUayaJ_Nb55I","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        dead/living state of the entity
                        \ndefault value : true

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CduF2r5TAN-YMurVWv0RS","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":"Cyegk4O5a9DFXWZqNf5pN","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":"zsFbInurLttqSlDBZ1WVq","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":"NlEjhA-y0gqa3IzfzeSVH","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":"Z3nG2vVUD8E2dLB_RvslV","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":"UtkUk8oank80Ziv47wU0U","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":"sOHTXT7WajxeRZWOS_ZqZ","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the entity body object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gn5yCPGVBElOz7JXFOdy-","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mP3cF66mCGYkB5a7odZSJ","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZsY_ixs9rO-jj7l82yxlZ","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LLkIjiXoj4XaVIjkoKiNE","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jcktxKOFhEiqjeW56scd6","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UCFitl-ykG6uDXB0MtEj6","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":"N96g5WkbRnn0BiDvnq02T","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":"efQddWS1gwVW_Aw3gULnM","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ha4hibfT3KcQYkW1ov6tZ","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object unique ID (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4NX5BGeoLduOnrnTdvoWh","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":"5ym17_wn_ZLYr2mqbJkOY","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":"AEthbSU4a4PYXkyKWFNFe","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":"VJft0XzVt-aY7eBuseCt-","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":"pG8e1eeMm_fK8_x8c0Dms","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":"7hSXMIAn1yzpZCPYJu55j","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":"77UykLwoHU5l6xycNU7g7","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XCR0WVpYnR2pxswuBZEgp","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TWPeX_ItO2eInq_JzW1kJ","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":"_IE4Dp21RrDCFdaLOi8rM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FAZwxD6CIDz79OvqRv3uI","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":"fc82uc2rsdM8rUx5rJkJx","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":"TU2tT-vVf3XRwLbE2KCNi","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":"p15NsjgDxLKBcabzeJSYV","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lr4ZMndkES_eBveK5Enua","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":"Cdz-8ADFxdCsDKzlAiZQK","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ay4dlE4xHa4rsyi5rpXa7","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":"VmGwPCJu1PGfIz02vAA1E","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":"u5D01n-MkNtBNt0z1Yuxy","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x37dyPPYmRlcHftF_pf9s","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object type (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Za-sSTMKjyCVy7EsPnmuu","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":"90d0t0tvomCnNx1atIBmJ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lWPLWe-h_VHEjLYCGkE5M","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":"a33AGe3WxeGd7TBetUOfw","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":"zaPLoSn0PGMrCaqn8j8jx","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":"jx_EtC5ZEmS4DsJQfJouB","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":"Ru-RcJA3BHBmLEzY6A4Hz","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":"NemPwjbxkg3yXULYhUFSH","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":"L76ejH5AaNP1G1PSvGwtw","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":"_2tQghudd4uApaBN9eKuL","name":"draw","brief":"","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":"dBiiT2RvCKRx7-9TAkXxq","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":"fyb5i0J4S2W3a1_ya8F1j","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":"EG8tGwtegjb-icgGGO7MT","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":"x-XfG-8E82z0CvyZEAeh7","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":"Qav-6bDX15kIV8HzhFUY9","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":"9paWZL1d3v-VTo5vppKGU","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":"4nTY98M0FJeRm7y-tAss7","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":"sqcAeck97OZ-jSFP0sIAh","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":"YnnpD22luXdJZFgz08jl9","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":"wvJpybcPH3M54o3WE6tH3","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":"kuQXkClW6albu9c7LIGwA","name":"onBodyUpdate","brief":"

                        update the bounds when the body is modified

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4WI0uoGkwp50LgwlnFYSR","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"nTmGy5rG9GqGaJT2fd2c8","name":"onDeactivateEvent","brief":"

                        onDeactivateEvent Notification function

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rQd5dpBbvV4lgpS1D9NPs","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4vNufHnsoG17EkQ5X9_rU","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":"4kGYjTlMHkxC5FoPa0Vt-","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":"biPFsCo05hjJClnJLtkRb","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":"zqypiCvsoj2Py6Xn63AYC","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":"GTK-iRmsVDPVH-l9SzZvR","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":"bUgXLa7sWaYxEpPxMgEvn","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":"QOhWlBFfxm6UTFRQZR5az","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":"vE0Fa8989AMIpN61oXyuh","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":"ek5ADwHlWNLmYPWIX8cUg","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":"JNoGPuF0vaTXIxNXIEIxW","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":"G8WXsQoeDv7uNm-iJ7mXU","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":"wCp4EyJzG7ccda0PzvwfS","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":"GncW2qBgcFwQslN_BnPEi","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":"Km-lJaDThu0FHxdxxRdDz","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":"CkbOYxfAKNEBjyZzY0Vd2","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":"tNZ-UVcwvvs2tGWV5k27i","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":"zPOyNx3MurEGPs1SCW2oK","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":"GuKHucfRlHD0uZ6adGAFG","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":"Ne6B8tyn1PPCx11H3SEoX","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":"zMQeeeZ9W8GVSQSLfxNB8","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":"krZaOBoW34AZ3oXLsJ2DR","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":"29Ivqnpofjv6mS0Mh8BW1","name":"Ellipse","brief":"","type":"ClassDoc","description":"

                        an ellipse Object

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"Yz5BSQFf4Z_kmTC3GQZIT","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        the center coordinates of the ellipse

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XQ2xzaiqJr8YtwKCshWZi","name":"radius","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Maximum radius of the ellipse

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vIUxEsq9YXoSgVYPyvGuo","name":"radiusSq","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Radius squared, for pythagorean theorom

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rea95VVwL-wxEW1qui1TH","name":"radiusV","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Pre-scaled radius vector for ellipse

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YNCZ8tDzziLfXk8uYB7ko","name":"ratio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        x/y scaling ratio for ellipse

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ku_ysuVkhLfj2_j-qpyWX","name":"_bounds","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                        The bounding rectangle for this shape

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3FgJqZ37TUeXCqjpbuQ-L","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":"t50uzCxLzmRylD8fTnR9V","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":"j5td_ezpaQPgLiPggwda_","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":"IUDQMVlf2yd0eCJF0Wfwj","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":"32XnH_LfDcfjN3f22mAEa","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":"SWtpTqcdEPDmGox8sRINn","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":"L7vy-pihzQEtLfgXmvKki","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":"mGBdhlGvsYDyfCfkdswV8","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":"Nz1JOAZl0uC-XtvmXGeey","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":"Ellipse","kind":"canonical"},{"value":"Ellipse","kind":"link"}],"template":"%1"}}],"extends":[],"implements":[]},{"id":"X84gGFD4iFCkDtLLZNu5B","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":"BNwyEDYY7S1FQSqkyCxzE","name":"Entity","brief":"","type":"ClassDoc","description":"

                        a Generic Object Entity

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"sXeBrMuNSp73BNgMdsEPw","name":"alive","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        dead/living state of the entity
                        \ndefault value : true

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wg5Gu_v2W_9jo0C3VL1Wa","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":"BrDjJd_gUc_cxD0dRQBHu","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":"zl-Y7zEotFon9H1HHh6w3","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":"gQQ-aizPMe0xwbkhPhu4u","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":"QY4okFPKX0SzTskm9Pz0G","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":"hsrmtBCAMLyXBXojG4jOq","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":"kxrzhD1xL0aQPkT-q5XtN","name":"body","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the entity body object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qbT_lify5h87RgHl8rAfO","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TuOXuOdz7WkdiDKo7Fqox","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TA5z6AbpXyNB4nXNgPpZk","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yIJt7tbWj1jtq1GZ5iP8R","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AByfCizGX5VvIHG--2qOi","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZeaeiV_mOG2SkO8gZppSa","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":"V-pwsv6tktRQ3xT8yqs2u","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":"Bpc5ubtTFFf0uBqvlyHwp","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Av9E6G2NCAB8yFGjOq3IQ","name":"id","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object unique ID (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vAUp9XbtZCptl9QU9XODS","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":"NwjX4AnSb1hafp3DiIcsq","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":"wER2Jy34qwsQRMWdSEZxq","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":"OybrwTXlSEXAER6YBw-I6","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":"mNcU6w5IT-lyLYjx6_fg6","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":"D_kepnNTpqrWsK3QJu8fi","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":"xy-vnHWetOnbKYTHPXLNb","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6u6TA5X2K8uBl9jxUIIy8","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T8v3FmxgTm-fz4QliRuM3","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":"wZZ8NfEysxo1aXmAfbi7b","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XvnSW6U9cGPLlcqWPLwzE","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":"i6fol-lVRXSnfPIbLC0_g","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":"pG9RMu4U3YzZkPun3rABX","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":"wbWtZ3w8c-_7CjvgMYG1N","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m_-Qli4SPR2unBB_q7CM8","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":"rscuObJVAz6GKjisYmq7J","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DKXYBnYCm4v8zkkBgwbuq","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":"0og_QAHrsIg-qkf39ZFYd","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":"bX3aa_-8H1E5qsZEpSqnG","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tJ397Ikx48BVZDLJVEcsg","name":"type","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        object type (as defined in Tiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dj2cbulgD1mRw6_I-Ey1e","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":"5Guuw6d8UE5d-e5mi3aLp","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XV13mWv-kkwf8f2tlf2_I","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":"m59yMh13QjfGODRflPye_","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":"cHFamhLyKx1zgbGG62rt0","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":"Mn9ng6oQZfEJy6lQVGT6M","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":"P91FMrvaek6dzcMCr0tfJ","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":"dJRToW4Hua52soD-xX4L_","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":"WWCztysOWeUfHXTboU3Qv","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":"Uvua9eKGbIfMn0soycUxD","name":"draw","brief":"","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":"d2Srh9d3hlPueIAWcGb5r","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":"LJayPvBIizKiwJs_tbWDW","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":"-miAaP_8AlAXRcxwf0r6G","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":"nIblpXWYkoUE4k4YmXc2l","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":"xR4seHaFBRsYKjNTh9hfL","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":"mK5mzexd47wxZydU7cK18","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":"RmaUE5ixXHmj2IKvhTmrr","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":"zb1yqlkaAzHUw6idZuP3y","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":"j2adhQhSdhTbok7aYUqrw","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":"ycz5G0ACpS3mJl6lBY8C1","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":"ju9FKyErEDAGCIloeYLGp","name":"onBodyUpdate","brief":"

                        update the bounds when the body is modified

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a8zsaPa6gCFoGpr3X2NHa","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"DIDxrzq5fgDXix-UmFvza","name":"onDeactivateEvent","brief":"

                        onDeactivateEvent Notification function

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YjD5jHJsGzFDB20KPFC7k","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7zEPVqeyZNLdCyeuhQI9e","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":"1-mjqcdYKkf6xC150RT_1","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":"KJtzNv1zJjiDvZKyB8ndI","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":"xJwzh-fbkLIHggXrAWYJV","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":"vEiZC_9BwfPDUOwinxA-1","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":"cud41e9Lw09_45cmysW5P","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":"YTU33K328JiLqKrYiW54K","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":"XY8L5JParR-9WDReYZQIc","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":"Ge7LU2N3ihSJqOPgdtIHW","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":"bAQDibe9cIyHIqIfo9xeb","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":"GuXWtqYX_0bQF-d6cg4Sh","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":"Yr53lSAqpllldHKKivxQ-","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":"qW-YwKEril5ljyRewUya0","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":"eL1FOYMH2KpXSJIQ5tGUm","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":"R1T0m2qlnjn6IexAHK9fc","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":"Yl6nmBOFTCz0PqxShmgN-","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":"ppBnTRRxWpO8x4AK5SIzs","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":"Z4pINomIrX6wwTrqmoXcY","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":"_eTu07CLphN5CvgjZeX-B","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":"5wEIOo9C_mahR3WuKiINu","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":"qtxeYCsTkwcGNhBmJr2RN","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":"rFgHh0UsO-3DgpcGxGxG6","name":"GLShader","brief":"","type":"ClassDoc","description":"

                        a base GL Shader object

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"g3QN4x9C1pyj3sme9y7ue","name":"attributes","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the location attributes of the shader

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LzzR-lm8ja3-YWv-0K1hc","name":"fragment","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the fragment shader source code

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4KRVq5w7puCpF88_jbn59","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the active gl rendering context

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t3XwQVK-9dIh07e4vE4aV","name":"program","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        a reference to the shader program (once compiled)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"INcU-1c_7SAvZYWsHfkS1","name":"uniforms","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the uniforms of the shader

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZR_jO0cngoUMxyePJUC6U","name":"vertex","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the vertex shader source code

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bOV_7lxnSvwvn2rHgrKrj","name":"bind","brief":"

                        Installs this shader program as part of current rendering state

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bMNJoBmZnq0vJgGJl5QIx","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":"fnFdLtrfTWlZyYEe4fOHn","name":"destroy","brief":"

                        destroy this shader objects resources (program, attributes, uniforms)

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tQKuPZcM1gbeUnNr2yZ7K","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":"syQW8HD4SvJvadiSJ5Zmk","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":"p4po1tyFuG4ZKuf-R4F3W","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":"w2FfEzAj4e1Jv2k31xtn9","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":"lS2_3BFmvtBx4AOc3SCUw","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":"x-YSoiLOtwhxqIozsVs8p","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":"WWN1cIhauDoh4qSgSVlod","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":"-0K4ZJls7LKacdjumug7R","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":"hVviQQAZ_YH__5VIZPHAx","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"akMqkZZghOLQWxKifMogI","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-_Aqo-KcejLWquZvHHzIB","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":"aMyXLPXkmCh4GTNIbjfH7","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":"dyIA3xvlutKQOpFXzjXjm","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":"Ke-EtLQegapw7dDfxkRFl","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"xovMO4ESW8M-XxLXQS111","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ppfup4MHmOjR_FgjyWbKB","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"56QFHAboi0sV8ecoJMkRG","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Oq0q01XRCGuCeVz_t3x43","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OClhQQ4vQ80CCwEiEVivk","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":"v4D5vAyFfWjQ8LZyrzxBk","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":"HJsXtQWmC1ViYn4OhcFkj","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ap2p_tN6I70usEQfEt1x3","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":"e5mtSOJs71WSjbSRerusq","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":"jj3gu8DAwOHMkjH6ZtrJ5","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":"dN5V4yAqlYaeuIXWCL41X","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":"XZZZgKyswCrOoeKAa9BVg","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":"22D4ItUr9Wxhu-hsHhe_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":"9kodxPLRm0uhg4IARw1H1","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mT19YebQ_s7dJSLykcyXe","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":"5WsDbdk8-J3gcne2vK4_5","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mE0n5ApGokTH6nyQn26Cq","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":"c1gBQPfDkLYNSrUzINLBG","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"h2QV_FEgsoxe-CjMW2bXM","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":"inb1oT2nAzXXPJNol9ftL","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":"FqR3xQXNDEfTH4av3kU88","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":"yDSiHzY9KY2Tr6eNIwuxO","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":"p4fDL7vUqIDNaTaoMgGIu","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0z_kaK5HiBnvtvOFiIA3U","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S-i54GJ0fHLAlbEe5k0WV","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":"zItY6YzD1ypuCwMjEnT-u","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ia1HBZoyglFN-HejEiihg","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":"_E4a43p8_I68MtDTpxFpS","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eI5L8jLXXIIoW0rXqCw0h","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":"ZOeHAj50q1_IKfz0MXO4C","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cWhQA-kIS4IufclxMuG0Z","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":"g_ameDBUHpFN0MQJpeGNW","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":"v_6PK4_vO8D4nyyHn8hOP","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":"KFrEp1DyiyfYUNZ0sc-GV","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":"UTA_rgfVwXzD084s4OMOb","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":"2pnRxlfbl_9Irb0AOS1m8","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":"jusc_aDQVzMa5O_TNE-gR","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":"OuYdyZPgPnGcVJMHoZVAc","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":"VBj_P76q0i2Ig4fEAXqNk","name":"draw","brief":"","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":"KAgyMVQsCufNbl2c2Z8Yt","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":"Cx8umeMv8HvSOT-nNtkQO","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":"bU3ovoAG2qcHTsMZzFP6c","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":"izDuieVApO9hmhS4krU6B","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":"ps4q-X22sWNAhuUTAfgaV","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":"btY9UYCxlpOiBZa_R0PMz","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":"wCcN4Yr7UD-xl7KfzqHl1","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":"tX-90mHShsW2ucYy8NQdz","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":"jjR1TQkvd42rHa2DymB3I","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":"hrUT4QhxQFb8Rpqbemjx_","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":"qHuqfUucBlxF2utioiOJ5","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":"oj9538HWLflfWZZn7JOSO","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":"316JlZTe-B2yN6MmAab6B","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":"wJbcHDOBqxl4JXQvTQAPx","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":"7dpzn5T4Do1Dsint5ZQcZ","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"-IGpfYJANSUbIh3U2n6za","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PNK0Yko2q7OztYaDJl3BC","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":"8QTLqdVPNKf4zwunI6rJu","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a7G7xapSsnEBYYjqweJhU","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uJNPHidhM-5nBOGCqouCO","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":"CJb8c7JQ8O334UH05eOkV","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":"XSMGIdi83dSfikRN_ZFU8","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":"3Lvj6mijbUSFwCSj3rMPU","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":"2jIzyuuc-j8qPEe6H7aB8","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":"KPv2LmiXsseUP-WrlSPL9","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":"uGHqNTb438WsN1-IUsc1o","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":"xStG0Lyme96ReEefNwpTQ","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":"A6SIR377aUrr46OE-lg6P","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":"fBkXNXzrg1s8k-PNpXJIr","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":"AC6nCqvPnAVEhJHSqpTv2","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":"46NtFtL8CDKGdj3_FSOdo","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":"TAT91bld_wL05rZ7PwHGE","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":"E5Nab9_iwqpuYpVEyYPy-","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":"0JpY9UlHSzhw4WHz17dU4","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_gKGSWg_0uj1Zqc2II0U","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":"DK6k2bVG4VO3HaN1qCrUr","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":"ex4LZR2EeBakTYf3gID7Y","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":"BbYaTQT0J-_Pa3OMDplA8","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":"jgpFpPWPMEFe1jfhEZTSo","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":"KpDf21SqGbqcdTZmDZozK","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":"sNH3XRBN0gNW6dfCe5hgk","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":"rguMFavY-dko-Dy-yFtzk","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":"Qxbb98tFYRZFQpcNiWaJW","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":"j3DN39BU658-i2wHM3M0Y","name":"ImageLayer","brief":"","type":"ClassDoc","description":"

                        a generic Image Layer Object

                        ","params":[],"returns":[],"extends":["Sprite"],"implements":[],"members":[{"id":"2Ntd_BhNc7xJ12MddgbiP","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":"_5of9XXgrle3vz_tXVj02","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":"j_r6LOpCfvw_SEnr6srnA","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":"RGmPRm4ZH2Z4vj4c1fZVy","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":"grpdYIoAI7GcbKll1lx7V","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dEGW7yozZcCcSCrsud-oj","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0taZkeF7DFsDPhTyF4XLv","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":"gt_1_xQn_H88nZoCdidwB","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":"rWKu4Wad20MbCRjQ87eTZ","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":"0Qt58dj1xmWtC2ag5urqP","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"97qzEYOpFQMFjVaQh8SNv","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C12g68DnqdV_6bgGXW1C9","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aDqvDTI14rKfFlXjyYpPM","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Q4gqCI73PZjIxQLjorzDF","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EfvHRW4sFSUBRKLx7ifv6","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":"sV0aFAELl25Ya12WKwhYb","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":"LQD5V_sF4IkU6WkQklTXZ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pQWjqdAv0-s-JRCQmvxjk","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":"hXhlAxSCZyp7TbhHFpBwU","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":"nNBjl1a3tRyOHIiFExvE8","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":"HeOtwr1A3GzudId2Tado7","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":"U6R_Tv_GGjHlK4dugLIsg","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":"0m2oD35SxHvQwDsTpJt9A","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":"2Hz9x49dPcWSPFRUd2vU1","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cx9kX877WAfhFQ7MQL4-a","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":"K2GK8C0JZGqUrrmrqtKR4","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kn5iCAH0IE0jfsFRERrB9","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":"2gvB9Q044TgWAOWuxVCQt","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BIPSDSaus0Z95_JsDnodi","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":"m-6bpRf1mMAtwOLS5ACxb","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":"pAoNaZZKVDU12ksV5mvOt","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":"CC-TRjfHf3m7Yz-N60x91","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":"u_t-eX7VUDvV1x1TVcKAi","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KOS595ippy0xTmfTm3Dh_","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":"ZSlFoniv-7Xr7SZZ5G8Uo","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":"SPQ9PVCHcripNFnbk9CpA","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jhQPhswRVavM2TOVrvnso","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":"Di4_YXYt4nZjaq7CgINXb","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"svB5m19kkrRyNuAxX37dC","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":"PDdE2oP-6a_do6ReQl-tL","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GHYE25giuS6gjuCcS-cbj","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":"r4I6g2gXEi7rHL_2NLclY","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BMydAJbTVldhSkqbAi88Z","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":"0pit1SacknCUmPFcBuVA-","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":"gAYL9AR78r_-Tx4FpF-Ws","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":"jNUWMUwNlF-zqgu-ixGHH","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":"dqztZkR-9rcQuMNU2Ld_k","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":"yJc4JScg_4ml2uI5nOTjq","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":"lBs113U9bnAzNQO9iLIfv","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":"-FhxbTCtYU5YU29JNnGvX","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":"LqOl94lQgiSPdEAHLFN1S","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":"R74Fw1fwcjJe7_pIq3Y80","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":"mYkMKo8yL2HBwro1n3ThH","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":"Al1W8XDijYUTTO08Annnn","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":"Dcp-wHpNVbfK9A-mbOF-_","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":"HXoAJec-rlVD7lSxvY9p-","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":"ks-cHtu1Tv14-L2pL7EF4","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":"vTp2zH53SbYiI3vvZUZMF","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":"dE5f5dJivHoLoQa-Wftbe","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":"ZNO4DsBL2KO0eWRqMWh18","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":"bjCVVepFEPxFMJNnbXXSf","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":"ZdRRQxKgd-ME4vFNfDu21","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":"oyf_udTxuLVKNL6J2vPfp","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":"zyrRyGozx7ww7tAA0HgM4","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":"ab_KcUOHJzZEvnDT1kVoa","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"rvfcIWqz6ct-RCn_5dHqV","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DbofNnhdJOfn87VLclusI","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":"x2bv3t0QFnuuUOiicew6F","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wMJNfTCg4NEc3hP3lLvcj","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TTxcuERvqVcv5R5A7tq85","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":"r8httnycisvRc_ISL1R-G","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":"VAmiDiuJwn7uebJWlafMD","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":"D0xcKuEWG3jXFqI3p1OsG","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":"k0sPXa7x5nuWf8lq7sPQA","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":"eMp-iBqbuqiuAih6SeKTR","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":"mV-QsGtPnnYy3po5Exe_y","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":"wwR96jJEg0X_KfHaleyj8","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":"jhDCPjnS3I-zO_4KJv0v2","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":"5avE_DBkfjaOQxHuKVqQA","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":"TQwMCMqsr8fKE8ObmnyKj","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":"8NAmCwwjSQOh64OlT4czG","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":"7lCYl3GMx8ATXBSYvZ6qj","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":"JyTY4VeZ9uX3DQkpNgTj3","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":"PAbChs_5icPsLlDtTl-FE","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":"Uu4lVd87_UFv2wTen45oj","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":"i4nep3A1_NrVa680CtnUf","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":"3-XSG8pIyYfE21Fhj4Pfe","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":"IooQs1pLvp7_ihKOuWk5t","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":"JqUAHrIO2hSDa0q_oa7RO","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":"6DUr7Ul3aU1sODRwxtWMl","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":"oqzv7NQSPzm5ixOD-hNwk","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":"u4hzNpDJABOOjKlSYsugZ","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":"_sONzC1oUTrOwF94y9ek8","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":"lAl41Db8TpJailicxr1TP","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":"4PYKcNQtr8FULLFID3VCg","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":"sxnDeDeLlL6BXcnOAPQ2b","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":"Mh1eZEItiN0v9m3D5HczW","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":"9PaDJDIUiWG_LOrJgbol-","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":"YJGXvu1OPY7dcxlVgiYjt","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":"Ef6WtudF5nyG_VpCeaAVS","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":"CWTWwcVdAWyBZ-LrhNcHS","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":"Lab4vLoBBcHCHqNkwfCyM","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":"xD7GK9KChuy9sIqGLNT29","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zbSDCo3ES14gXUAlWX2do","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F2JHDNe_TDV_VF1MH6owD","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GJXzFfCfCnIz5KFArNxHv","name":"color","brief":"","defaultValue":"\"#FFF\"","scope":"instance","type":"PropertyDoc","description":"

                        the color of the light

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ly_YuFv-iL5sHHyI03wJe","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sdST05hUxWJi5XN9E211w","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"k5elY4JAKl9xQbJx2LfsQ","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":"U5FSg-Qp1W2G9Zft9sLhq","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":"XumvUGOQS-OsdweGRpWaS","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gcUuOGC_XnxiIYw2jBT0D","name":"intensity","brief":"","defaultValue":"0.7","scope":"instance","type":"PropertyDoc","description":"

                        The intensity of the light

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l2-2YjSdwzF7v4DjD-Hvy","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":"6c2Y3dgSCOnpXsWUkl99D","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":"QS54m-kE7qLQv4yJpieBN","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":"9emZfWYMFQLeFjl_0-RLp","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":"nqC_FjA21aICyw7EEl-8y","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":"DPFXXboQedvtGNQ00fIEz","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":"o1x5V-icZP2XxvQMlu-fB","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cJEeYLVY0evG-6auEyGD_","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-Rm3K_3V-05VZDF60auKq","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":"rqLLHvJFtcsAiVwk6X_E0","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TyWPtwNOyFvv7K8HlTONI","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":"il__xrl8was-28SoV4282","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":"JNAVP6oH7W82ZssUtEJ_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":"SwfvqlDEQ_dT6enO20PHL","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j8ilt7uVUwBSVy2cCXbvF","name":"radiusX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The horizontal radius of the light

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WfOVZBhQwSxdHpRrmjw0l","name":"radiusY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The vertical radius of the light

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D0zJgUuNqMJVUtFohztPj","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MJyeftLKm0LQKV2powUh1","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":"7nbfLykUVCEZrTYXwuyfN","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":"RCuhd8YYiVKJHdG0JZGBA","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VLUkcCq7d-4vNlu5yALdl","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":"rtbkp88ccC8U9oe_jiCG_","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"te7QrCg48HqW9-IEx0COy","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":"PwJy7pGaUrXbuGRVx6TRp","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":"HAR0zZh4gJ4uzbaDlRLiq","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":"KTDDZXDYqTHLO7bJ6sMvS","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":"0Tu3mKgn7OxmidNT3x4Y0","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":"S8qLgnMB3hTjxdDbfCMgT","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":"RnmbJla0Sdf-32CSOGWbx","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":"uDQKdaGEvLStvd52_h9T5","name":"draw","brief":"","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":"XeB6MLaHGN5jqoK18e3V9","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":"LapEQQDqCuzKQ6HOitMjS","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":"2CwAfRcSYzzHGDvEXRjWz","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":"wzxld2yyiV1ZvyptBeV7a","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":"YzgVEaoojIUzTqVdrYRe8","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":"NfU1gkGS14lFqP0IsuG8F","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":"giGCDgA7XdqsGnu8ds52w","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":"YYLfIhm5PZtTCV1zm4oTO","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":"oIlKqw2iWkUgZGoxoAoVv","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":"SKWz9JVYSvC2rV5JqYuIb","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":"e6kxQJJQG-6tpUzmTTHe3","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":"7Hi3X9sym77GnQuYFZHmI","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"VccbqsZzPO-UFhCypkSLO","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"58eCR2RW6tQvjCVXRrMQA","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":"hinmlAtTn_xkM5XvmetzI","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":"DwhK15T1m0KG2D9J-1g8t","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":"S17K3p_W2olXjC532Bwdr","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":"44LwdW1ZZmwY3DpoolGKc","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":"c8wlB-GYUBjGoTAJJ4ABB","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":"X7Y1EtO1WLWPzz6-esbLj","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":"M5NeqKHeBrz2hDaeSSm98","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":"PX2B4pJxizfiXVYHV98Ft","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":"hXWYGgDqdBzD45EWoi2pv","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":"-5lqrsrQqAhZ44es59N2C","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":"zL01rMix_QvRas8RcfhhF","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":"tgZndsSxSoX2s6_-D9NUU","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":"lOOdkMUjslEOXPrwl_tf5","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":"5OHTUVPa5tRql7-E-TmV1","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":"yPB2KuZPVqOQOJnNKOYB3","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":"yHsBBmQAF8xhXaOXIgyn6","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":"GTWENznGnW2hkiR4J2SUP","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":"BoMa8Os8skHmrNkS4cJUP","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":"PCBe-4CZhwAOaEoDoHfxe","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":"K7D0HQNJWaCoRSKcdi-ao","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":"spXNh1xTPP0aN68wbaFwP","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":"-P6BasqwPkKYwc1MwpJSv","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":"x7i7eqDjVw4gSpSKt_lJR","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        origin point of the Polygon

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Avexuv3OUUlhJeq8OOyZH","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":"RBIi-fFqs0gP7k4gzBabz","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":"IK90CG_58-3hQUL_pLerL","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":"l7ZsOUFcYAlPg7ZXPvhm5","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":"GQx1SpEYiICk7P9LSoQVT","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":"PUd4Oy5z72qX5StIMEQ2S","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":"hC7s_9kbDahn14GU0yFNG","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":"KWxksmoqr6zQ2PxbFsAjT","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":"_BsrurhVXWht1v6A2Eh7Q","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":"K-UeX2Rr4-JhFXVY6u5Gs","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":"AaxbGBjQdg0qVRmq5qZWp","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":"BRTdWaKEqFPkqifIDpWpH","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":"D8s-ADUtR8wrmtCak14bS","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":"5TtxObDOJqRWRxHkkQ_vb","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":"JLJCrHLqSYk2Aq5iyc6Mh","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":"TzE_sfFyp0SXL3iDE-jL2","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":"H69fknhVmMvx0o7hcC_P6","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":"b1NrndRl3bwo-7RMAxEiO","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":"9-BxA9kQZ7nnQjwD4DCau","name":"Matrix2d","brief":"","type":"ClassDoc","description":"

                        a Matrix2d Object.
                        \nthe identity matrix and parameters position :
                        \n

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"6M4cSecimYv426mepkCIY","name":"tx","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

                        tx component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FboVoVTF52HoE-Y-4U5WE","name":"ty","brief":"","scope":"instance","see":["Matrix2d.translate"],"type":"PropertyDoc","description":"

                        ty component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0YEZ_8czFdWpIH4m5zhPZ","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":"lkrxbmmthPIoEln8ILpJ8","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":"6gEtMaXp50Qm9l__NH5p9","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":"bHPipNq4rhwBDS3mPra94","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":"7KLQY33QOBuQZT62VAwJY","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":"a9olp-KAJgstZ5cqyGIHT","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":"YkY13AP_TTtRAslS3YGF1","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":"z8zVo6hGtxftfDfaW3vLo","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":"sKGkQE-hUEs8GpcJmzF8M","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":"o2hKJx_53kxQwoJbHYEeP","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":"VtknDAKQtPEW1dsxw7YqK","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":"POvEunf-UUKnTlLdFZhcT","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":"eI770Dmd5oTTnEv4IwZm_","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":"ajRGS8R7EMLJwpL49ZBHB","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":"K_lcRDQtpydiPjKUiJ_SR","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":"FcgOF37Vh56JzfjLfNeRx","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":"zyLVco9-4h4uN3kjFAu5A","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":"A-72ZjS9QaoOVEmAyrfY6","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":"CwQq7DYXwhFVjvDVILkC7","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":"SzozzY35-bOVs0Cg0-GOL","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":"z348-m8IG5mV1NSw9-PgD","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":"C-t24DMeHhN3ofVczYq3Y","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":"dpZ7mNiwJpzfVuwhNiTQ0","name":"Matrix3d","brief":"","type":"ClassDoc","description":"

                        a 4x4 Matrix3d Object

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"tzc_79aIwywNuQxqwVJ2S","name":"tx","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        tx component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9LXiDf5wUHvpFNday1WNn","name":"ty","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        ty component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oRCtcbvWCqSFNyJYrC7o0","name":"tz","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        ty component of the matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LhTQHMFOC_f8bn4QQZRl6","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":"nb4KJBCEEGLjUYZyzOqMF","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":"URlQ9pIA-rwK9OleTdrAC","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":"1v3AbG4c0nYj3mgKTENf_","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":"YFjCrBF1PgjIY7jnLiiqK","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":"c2ZXkoY9F2FFZO7yQ9RP4","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":"V_mKjK-_GeDtvLlOoYYXW","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":"MPsr9188Kx9W-J72EdX8S","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":"aZdVrq43KXvzXs2-d-_A2","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":"pxc6xe4AWYSPbupxHHaca","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":"1sDNneOz75PDoSEL45-pU","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":"heeIXkdisnX-R03N4tcFH","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":"T9T1g1dJQ9jZa3g0Il40g","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":"nC0PZrl0P3TJDeg9XDlrG","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":"K3qlgsWf5kglaAP7ItUlF","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":"3rSyCXlbfEM6cgUhT51bf","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":"hZY2dydXr7NIdSwMuVpX6","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":"xLzBI5RhP3uGD9isN1oCw","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":"czhbmApxi6IqE1pM6UnEP","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":"9schHptZJF9Ku5giOY61k","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":"xZ5o_B1WndPXdOgLOPqY3","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":"10RhN5BAo1DNpgPl15swZ","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":"BWpH3L2RjvKcRDqT_M2uf","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":"CZSNXNYldz5gJHyGifExv","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":"DVxf54UbV-FxxQsZToHoE","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":"WpGK_lxxqlkfrcYSBTwbh","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":"4dg51WhHijd_fkwBEnQVI","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":"No3qFB9qrkmDSh8QKfD8j","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UNLiJjhMKqMAzFomI0tF9","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"G9xRtQabbJkwHxtBy5ig0","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":"A7Zo5bYKFZzH94HXVaEPk","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":"tdjgYC5X1jzmJGuIa-47E","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":"0zSCG6mFlFbPgtNqvO6gm","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UPCwxuOs8b_ltq4hdKSdi","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ma00mArkNJlnbYwbcTnuP","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wojeEuk97FbTW9mrRJBGb","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qenmxQXT_BlVnHzITeKK7","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_NvyQm2HKpXKcRup4P30a","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":"GM0FpL_lWeVmaYGHfCtM3","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":"2dgedlH7h55nYncnVVSf6","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the NineSliceSprite

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IIbx6bwbeOGf9eRH_FbXE","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":"BNMTVatj7u0jbq28Zdlj2","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":"OUn-OHXrlMTZ1S2Zj086C","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":"QDf5vtvhhmpDMtmfNBchE","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":"EYF1hcR2kRMkJGYNm6z9S","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":"lsGfCjEGefx8_jDgZ4F8n","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":"rYepoAJS0mCEl69wsyZRm","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VpfbYWQZOSZlApMA3HIV4","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":"UuPVNhwk63Wgkf-AO3HWP","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vpc9U09IOe-MbYK7VWpXu","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":"_tjEppB_OQL1GrU82FrcM","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Ts8cu__Ju20RZRc4NLxtk","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":"E4BwLtdcw7HgsdX4cmOMe","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":"6bezdIjXTUId8uQWME_96","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":"FJGmjgW37EopcjcSnX2tC","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":"mTOcPcZGaLx_uDFQXzpm-","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rziUWTqvmzLl28hWNDYpu","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rKBR4TmrVFCUeHzM5inQ-","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":"eicOL33M9VzTnrF-JldIo","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bbiUsXPLT1ixYSgxIGVjg","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":"vVJ9Mr2b2xzYqISoLXxmZ","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SJSp-wxarzbRh96OUAsHf","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mAMId5k3VPsfLOczAfhhv","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":"gKp-yeoZz9YXmm9MAe-yg","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the NineSliceSprite

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Z0dI7f9PSovo1-p36_f_V","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":"wcMLfP5wtDSknWNasEn2X","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":"FP8b-cEh44pXQg_N8KHis","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":"iFkGzEwSj1bTsL3k771RN","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":"BQBZKLt_E7-jtxgahwJDx","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":"QQDDEJJhQzq2qyIZBgnaT","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":"63qV0deJUJcBqKTTt-m_Y","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":"0sxn1Gew71yfdRYPfDoSd","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":"arAS3l4q4irO9Re7Diufj","name":"draw","brief":"","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":"ZLEg0X4w8ReQSY66w9yuf","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":"FXG0fvKnEPmj2Obfhrn0T","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":"FaR_HDsvQtCDKkiUc-1BO","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":"5hS-SKmqWOUkkgZ0VxRxn","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":"CQZzm4kL6eYTugQ6dUriI","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":"tbFLnmupzg701lOykEKIa","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":"VDLBqShPuQV8csVY3hlLP","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":"WrIhiWkINS1F661tSd9Hs","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":"GExhOesSt4pXHwHk6r5Lh","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":"gr9BwxHVzhLT_r8Jr79b-","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":"rlUJNHy09z7z-F7fNZhMw","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":"MNjZvUQlhm9wjVg0RliDC","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":"evqGdQKi4GpCXLUdwZi6Z","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":"yj52ZLpNoqyMIpF18u_s1","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":"SRsI4hUeKyO0I5AtSnIT9","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"Jo3LV638zsiu3y9-i1pxJ","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a01cQbFsHCocGlJrIIIjK","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":"C0BEH__Xlr-iBNdFn2KiW","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9SXSWYE_X38YzZWolpvDG","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4wDFj-O5glnTgcpfhAzPa","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":"lNAW2NYnrYuDlLnYOj5pw","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":"y0TMmA7Z-cAWMUUMxHD_Y","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":"6JcW3JLHSgrPq_TtFVWMZ","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":"segCH7laEEQgO1JLdn6ol","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":"UdHMnXuLi_zIKidlnt6-D","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":"WNlb3lFZ41Z-LxFwkRYUI","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":"jUE7B4QCTBdibJntwAweN","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":"s6rej5tbsqEh_dC-9wO3D","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":"8IQmwnq7RvuJg_Scp_BU1","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":"YUZsjce5dYvNtliM_WF6p","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":"d5WpCwqqEt0ef-3EfE3Qx","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":"bKnONDd9L6GVxK6FStlij","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":"Za7_HTARvnXyWMb7kOPGV","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":"AEHpdzOBT_7oIwqR1MfyK","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":"n9BXcpwvqLAAD5k-_nDzG","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":"Z5T4UxguqnVomG_Tn70tk","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":"clCAlD2JKg4zH_43n_SaM","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":"o7GRpVrfVEky3ivS4m6Rn","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":"9sAUzMTZRtVuwomJ8pboD","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":"IvQ3e8cE98wKjgS-NZPLD","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":"pekhdgVy1GARQzrEnjfK9","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":"KnwA_RzoW4QnWm2WcXu1r","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":"tvG_xCb9yytcm-hYM54gO","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":"p9gm_1uudhy28r20mZuMZ","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":"61UPBF5YvtHbANBcc3t8q","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":"gbRY7qKsiO9jdWfRXAW2A","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":"yd-T-FsXWThNZiehic9_l","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":"zPfVX8g3GFWJuxKm4iDhj","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":"rncRNz1iV9z3QbdowM8Jx","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":"CIl5FnoMgv37m7DkqRnwt","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":"WyRiPa38I6gr-pQCliXx8","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":"7_RNDBdCNz6sVIfeQ-9U1","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":"XWKjSr3sKpoeqtU8ho_hO","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        x value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z2S8bXB2B44auJ1LeQRok","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        y value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bxao1Sa-YxKaVQBbT3s7z","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":"B9U9qGo1ncNJE-_LWpiF3","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":"PnWDUtaib3opHXh27e9wv","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":"dGaNbC57CgXlnSI5plg6v","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":"95dtklnHPmx93kKOcn9s-","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":"ANhBfb0G4D0Utrdc5nS7O","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":"19nNjWNvkg8PHcDyDe-Xn","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":"pM7_liIz1b6UtKn3tfoDJ","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":"mHTjxLqnt82V9_eXDTs8B","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":"flduS1lC7H1SftJYy3aOY","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":"NryWd08pUWiLDyQoKiGW4","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":"aL3GmS2yuujP6O6wJW3yG","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":"smg76Y5n0MfxhYxOEczl5","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":"9gQCqgHcWoBeB1xv1AeLj","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":"7hwID-jqmu-n9q0qTPBMF","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":"Mff52WD4Qbyewz6Sjx6Bz","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":"URrHV8Vd1_WjnDCAz6NcI","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":"RVXCHJJfpigTwZCEWm5Zs","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":"ye4fsM3ECSBX6_oiB07Y_","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":"VffIqKSyFxL9P5Se9LFSM","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":"eYwzPbMdfmU70Z3YBq4tA","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":"jn38lxms2mItj-c11SUD8","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":"YvDfGMv6Gqhfwm6942tzY","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":"zPpd7OJjgxWndQxZ2PXfm","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":"Bb0stT9RhLUQhmN15O0w1","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":"kxlaiOP3N-YHvAvljmPRQ","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":"Bs7lFQLPoY69saIVhOyUk","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":"zzn_CDp8-GADwrApelUkG","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":"nyCbbJ4EGRcS19fslSAu_","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":"4TxX0hHYiMNOh0iSAlsFh","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":"T5MzjtjnsT4-3TvAIuwe9","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":"PW9QMiOzn6PBa0_2ihUG0","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":"QplxVDW55rfygJCQauaHm","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":"t7ZKiOJ2NEzXmcP5QbOkt","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":"jU6IGywUwctmHJEzP72PR","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":"1m_C2xNFJqy-3m3RfbzNr","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":"lr1-LtLRXbjtmSgUT3zP2","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":"0W_AL1VrzS6ajATygByPH","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":"vgB7rcxuhE2mCg4vkYJ9j","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":"H82hkLmk9R0CUg1LWDiYf","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":"LDNyrLaN_iUbo8-xsohRq","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":"ZtIEQz4d2TtK8l6WPimtO","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":"VViOHJ8c84omvSgIhIOnu","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":"d060O2mZn-y0kg4pv8P59","name":"x","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        x value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yfWYzF3ngzErfQ44Pc5jL","name":"y","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        y value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BajoiebdSe-aSQE1myM6_","name":"z","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        z value of the vector

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d8cgGVlXC4nzsV9a-cwtS","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":"rUiOc-2ANhd8CiiAfAUoO","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":"31Zicv187HShQsJUK9Kly","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":"KMoQwbG0nTatSiJxg3JGf","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":"JstlIjUWYO8GJ662Ki_QS","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":"-tKvW0fx00Fj3mytdHUv3","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":"J4yKxR4VxxopMlcGK8_MB","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":"YG1UOPyb56RbtckV6tsBE","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":"ksEtXWPeBfOipeUyF9CCj","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":"LDbNTGaKcDBzDiZUXif1c","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":"K1-6n7U8BUIvy2kIeL68Q","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":"KxTM13c9thbMclTSkW3Zv","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":"KfZG1JY1Jee62yU96XvNG","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":"UzmZHNePhp_d4AocNCCC2","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":"y4J-KRqbN5JhUiH-gW-YA","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":"tGrJXJf1M70RYXu79_Tf6","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":"GVUEaAUDj6GAs6giPXszk","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":"6En4SaIwmA6O9q9hGLXOJ","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":"dyvYljjRfZ3syMnWE_kY_","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":"BsRWm3HB-rl5Jvfodjsgj","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":"WBZdRhvAaIwAA5QXEBW7w","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":"NdZLo2OYvknYSz68fu28z","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":"6oIQ4XEADFMrqJbE3EAla","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":"49vdq95w112rIFpkr2ssv","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":"HVM1nAm2TF6ZbyKB5A_TL","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":"iOFsR2ysdTjNoDeAORSMI","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":"QLYJHISAKYCjECfEWvAae","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":"0Ld8QuJ4JOFO3KITOU_7S","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":"VjpJQuf9zKG7ccK36t_Xq","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":"U1QGyyO80b0-jF1cnmeeQ","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":"lBshPM-DJzuBQxqxwWZXb","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":"xDub1qeZ_m0_SgqjKB0Lp","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":"zAVxL9jUvWxAm6Ic6JBMY","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":"CVJVKuP_5lR7P-tQgZ_Nx","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":"25FcC0gmKWmRU0Ly8Fq1H","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":"Z-7KBjtEG6R-zKVJZPmkA","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":"wKl3vD2Fk37vqOC1pL9O8","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":"i3OaXCtpltuPhbZcmdrY3","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":"kbVfO2OtJR6MORoDfwBQu","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":"DCluk91oD1rrwDkGWRZrf","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":"IL09f3GStludsY3E5cBRO","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":"9Sy-s-x9uldAy_CU7eoGs","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":"vnCX40q8pBpcTCjrb7mLG","name":"Particle","brief":"","type":"ClassDoc","description":"

                        Single Particle Object.

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"vzrm-KsmUJ_7ICjVTNRDR","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":"YbnYwS-cwXkKI5nVtevyl","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":"jhMiQOThX4WnJMSgHvuzI","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":"N3qZqgAH68YAy7ffkcYhN","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":"w3u1y61dNVi19aU7NuUZ3","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":"Jl_1UZDY4QjkVR4gPpyzl","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":"Zq9Em1VmsDN2LZG9_NRjO","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":"AbL4WEhRfwX5ftI94x86p","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"l2FrGrNL6qFUVbThcaNvh","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cnYErcdVaQAI3PfaKF1uj","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"E83EWKMhirVV14hgUQFt2","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9ZuFVu08Gu7xixmjnH8QB","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1puNIth1DT9p4uLr3bU2f","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":"iG5ciN6fGgr0LOpFUHclH","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":"iEqVjO6yOcKk37zhAoo3x","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VrfwIXekopCXD_L6tv-Ba","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":"zRKCwIprqbK5kGNnveQ99","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":"EJaz1zdckkdJoGOZ23u8d","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":"jalv3P0TXqKsjZbB1ucR5","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":"olqdedZ76njcm2y6ijL_h","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":"6L79gPuaMgLdvI8e1d6qK","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":"1krnucG_fHU47-nbDviMO","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SP9dLDtfY6nrif4PfHYTa","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"14JUz-CxKmFK39Htn4TVH","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":"Crho6Ldjxr6FVuKaPr3vV","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"194-OFriF_ULBQn--Wyl1","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":"pB7bfDlP6hGc90enKa5Ol","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":"57jfSEWU4n2KoGQ3scYMB","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":"--ocHSa3GW0sRv_QQAetf","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u19p_A_aW4KwpMjvVXYSh","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TfmGezAxDJ1E13WNnvUtK","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":"OP3jO9FpQijuH1NM5fEpN","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":"r8Vh4YyZULaZdCmHJg99G","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0ysL_rgyyzkek_kwZp80k","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":"7wIwMgdvrGpEHQJGzChkv","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x2NUBbAKrMtacvVq16dGe","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":"KusWQaVvNiV14evq1XSSi","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":"VDYecV743wK5AL2kvUJV7","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":"Jtgxtp6qeHcnR-GlXzLZ1","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":"9tUQFrQSvps7AZyGA58vB","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":"9JTR4wLsqyC7EvmSMNtHp","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":"XzSRfjYOo40S268w4g-eJ","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":"MfXa8n2M3lbZE8UgJK1jE","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":"FmFHaFcjUubdhAz1cS4yz","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":"rhs2-f6L0OJAy60Rc-dfd","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":"VxnRKc9DfeUPWptS0oq9k","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":"zI1NrZ3Fg68koOxUKTOOS","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":"wLM8qUdkKop-vmGvCqv5M","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":"bfQPfZ7k2cE8GyYkf9IDN","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":"a2J8J1TksJ0vXft4OHYBO","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":"LP-dwcA_8heOsRwNCsOr2","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":"P8kz8bQmKZruYIf9fjTIW","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":"iRjq9k_Q0mOTFSdnyNP5m","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":"n8DLOV-aRp73DYJO-jYYc","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"wdd0LC2ZrLt_RnNpJfQM5","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wAtfvskJjFypp1EgF272J","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":"VnsLBuIasF1CP4uIU-VUO","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":"iF08RptJp3gOrTrQhA9KM","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":"nzSWLtfqORaIgoSolMg1k","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":"DeluavO10nydlcEjUcPK2","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":"wNvBUE71aJDLBy1nv08pd","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":"hGP55F-22LDJTLjEWg1GP","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":"UfbERvxO-UaxwCQFjK2Bs","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":"X89rE7ULcsv-7SgOsL4xM","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":"mjSjG0ledl5pNFC2fMXHv","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":"MBPt6Hv7dxcuNFNQMvm-1","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":"ysMSLImlLM6ZuwY04i91d","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":"jH2iM60j3K9pONOGlF9r3","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":"cx3atpjlbyp37k96wzdQP","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":"dfe6qszR0wwXlXZ8rHf9Y","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":"FC4WsTA4ehMXJ5tIRLeDE","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":"974AuCHcKIOhmDeDkXJvv","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":"jsJlZxEQtdHVI5_V1QXO3","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":"lmacJ6hBMLl_4MxklcOAG","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":"ljq5Rbtex1gwudopPw0E_","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":"jPI2jAYG4ZJtxxoFZP4Ii","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":"qwDZsRGaxPhxZ5SDWpYXB","name":"ParticleEmitter","brief":"","type":"ClassDoc","description":"

                        Particle Emitter Object.

                        ","params":[],"returns":[],"extends":["Container"],"implements":[],"members":[{"id":"f5Djn7GnA5rK8lqZINJ1v","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":"Z0iHUlrFMRItO83bP3I6x","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":"ojIAylBLRaqPKgMIe4W1T","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":"O9KN5NAetzVAcQPrmqNhB","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":"Qnm1MuBNj7IRwKhCGwT_h","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":"VtpGAHTZYwyoHy689ef1h","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":"4KKh39eDz4JhNpJaWnIVq","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":"N1X_M_K3UlQbtRYedk-ow","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":"h5nC5JGqa3y2LszWalRPB","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":"w-iMQoCvc-AQcWcTTfHS5","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":"RJTbUtPmxrXZyDLiAHLxk","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nUtbFYbKxU60FKGO1vRyt","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TOgNLxNAzVcF3wwb8Q8SP","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RFe5p2DqDlhmp2TkYgoqn","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":"TLva7eDaZy0YsAMRanIsV","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9eNWhDcdCO04W5gCWsQ8p","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-grsDPW_TE6I78qoaMPTS","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":"FBeWjuA006soXnPVmShIi","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":"NF-9NLVvzkkid8ROq68u7","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":"LRdNSsIJXkbICBq_mO8lJ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"58xGWXUfZdgqNIc92QZb-","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":"AAw4tXLR5TujS5Pth5TIK","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":"3EiewVvXm0bd3o1Hf0P7t","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":"2M1q8Kqr3z8oX04Z9tibH","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":"siY4eIGrTMIO4rx6O3WaB","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":"Im7_p-X2du7Un5IXSHTvp","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":"5_zqOn1Sy468S25yEPrWC","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mm-aQFK_Od-UJKCAwd9vu","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CnwYOHkjvBRMS3c1xRyHJ","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":"rif8qFbfGiaaAH31O3p6V","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FCLU2oRByOActUlC_NGPi","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":"kESbWGBlertrWEIN_7CHf","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":"gR6EmusXBAU_3OIy2Ih9b","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":"4lBE9HyN8gPP2wqSm69EE","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aHC-JNJ7XTWDeDNC_PCD6","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nq9ZbdMpoO0iw_t81TcsY","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        whether the container is the root of the scene

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bR-W8iMfjkU9cnUlqq0qG","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        the current (active) emitter settings

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XSRAq2DP45fme3MFNdYl6","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":"zn9uKz6_qnJ71bY59ua42","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":"SapSdwcRgqwnvgxsGMkrI","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":"7Wl2Qg4ZhdRx5__gfk2iQ","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"028_NBBIcz-L_nuxgaqGF","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Gkxl3HnZfHDyzQIqBzUDB","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":"kGSXaJ9VbLBIy0LR8Nx4W","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QhQEmIsiTdoImMV3H_rmp","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":"5cek7RojPp0BvxkveS4o5","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":"zDD87QwhuZErJ8GJO4gH_","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":"3MUXn-YpwQFq16eidgfgz","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":"Ue0ybHXWn-HyiL1EOLPGB","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":"qv26Dsgb6Bo3h66UNHkwn","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":"02JrzFEp_47rpXOYa4Bs_","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":"q41tWmkkJxrTQ749pGzWQ","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":"OpFdBmdTX9U18t7PRNfjm","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":"YK1dsDYG6cPott8tJJ2pI","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":"oWUWfw4QUgrZ5yLSpuveg","name":"draw","brief":"","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":"c9svK31GWmXsxrpME_tUy","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":"OfaeU9nPkJLEx_5LdGBpn","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":"n7DiAd_wONn_YdVOXPFv9","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":"UFtdjWyGLbLFKvH3B4ujG","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":"LQ_4Aknt-oJLWtdTEYtMI","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":"jLNYMDMJdi3hucoexPzim","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":"X1WOBkH12_5Xg5yZKXAya","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":"L8mpxhZkmngbZmPhmo9Tf","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":"VWzAXcMn4-vDkgdJfrCRZ","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":"_6vW2pWvpOauFHmnDIbat","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":"g2rzcSbHv-Aup0v9Qy4Bk","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":"xfvV6xOSFcsanUe3Iwarv","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":"56cmZkTtYyOAIVDkJWm4s","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":"xgte0Oed8IvC8yGmKzB5H","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":"pqiLvxVhge0kJ_99AdylD","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":"F7wUWmS72K0bPsY7jS2Q0","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":"WyzaWOGlyRqXlf1QGUPGl","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":"l5jkOIB0fYXj4qmDjFBkb","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":"NBJ3BpCgsEAo3n125zs1b","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":"wqajLHurqeSGroAhOx5MY","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":"WfnFT-mhk0_AfJyJOzNk9","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":"oXexXc4OZ2Wc0wDORbWM8","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":"lSYt1T0BARxo5YXNkKjZI","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":"7CwkprHej6sL38kq-cgdf","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":"K2lWLff-EDOMouzO79fsB","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":"A8YmQ2_hDUrzrZLNuWH-H","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":"64tsCuiFz-LUySeylMoMc","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":"vDiH4v8J5rgM-T9EVOaDr","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":"M6xzZ-VHTAyCAab3tBlv6","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":"Q5l9sdSGF7r8R9_H6N3Rr","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":"f1OcCz_apbTQYMNP-MUYA","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"xu-qjWAmfkWNO3cgc4dc3","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3b13I_nU9wJKhxR6Az-GJ","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":"sFLqo0eRsQb3UxaEjjl3E","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":"oLnswAm_-LeoIcCP0MxfY","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":"szZcy1IhWax38MHFVa0nh","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":"C4ZieAXDyyDegLrDCTvS_","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"1fJLSnbO3i3esiQwNswtE","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":"culOFAuX_7x7cFpXahJ_F","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":"jVmb1ujrKoh4nV8Tn5qPO","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":"rpKPfxh9Wi12croJdeqt5","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":"mhnzznYTtx27htcg7GJqk","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":"7xCXqTmnDikF9DQSrhzML","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":"DznlgEsM0xJpLOWxzq3qM","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":"cYDs9UnwmkwsZ9i1cd09C","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":"us8BwpRvphQHQvx-WJADn","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":"vy5ZboMB1y_D5nrr08BX_","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":"NOjuNVHVFyHzgLRqHDIhI","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":"d5_1eMt8gCPJzRqcOPMPz","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":"YGD2lwPLk0wPMXAhPDrgw","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":"0MpDIAcSKFpYMOaaUmH9c","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":"mI6GZ0mJmArWQZEW4CWLF","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":"cooD4d7A6SYUmgr8Gn-Gg","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":"KVdaAtk8ATcVddMb6-X6i","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_sdj7uK1cs40Cjlk8Kkx","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":"kjHLRX87gUixbtcv_q1KG","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":"cvveIq9pTtjGU7OxKxvFP","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":"pOGk3-xldRmoUak6LUa1C","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":"Te0nhFOyCwbzuMFWtTnTu","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":"sq1FWfuXiXCAvZIpsRdu0","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":"-8U7qX9qWG6iH7d18FHbu","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":"XlnoEx8P-LQj_5jJbH56m","name":"Path2D","brief":"","type":"ClassDoc","description":"

                        a simplified path2d implementation, supporting only one path

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"wBK9ohhU9nQgndFuN70Br","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":"PbKUxVJmU_H-9ZLI9btq5","name":"points","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the points defining the current path

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"T8RJJA7nx_qKaJPYXqN7D","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":"FRIDn2yWZuoMcAGaa4b8A","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":"ykpT6GiH7BJL6wHBJhJ7R","name":"beginPath","brief":"

                        begin a new path

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ExnJRkx9O_qpduEh3TjF0","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":"WnEdLmDC8Jzxmr1ZAReAY","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":"Qs7OYnVcq80saG3mdrEfa","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":"tLZHqMLKC3qLBtRCrL26s","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":"UMQeiR7NBaSFvptMxoPtb","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":"6nCKMY9d1vjpM4eNSx5q3","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":"424VwdJMRcrIUP2KN8c7N","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":"1_aaXj6pyY3Okczw01SJJ","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":"S0gLSYUyHVQRUlLFtVBz4","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":"at76DnPRwW_DPS8yI-bp-","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":"F9l13pSFJgeGlRtX_p5eO","name":"Point","brief":"","type":"ClassDoc","description":"

                        represents a point in a 2d space

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"jo4Bi-NfawgSOoujuANdU","name":"type","brief":"","defaultValue":"\"Point\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g8_7CtGfuE06VirPaZi_1","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        the position of the point on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wch-yBHOB-Fb9oxNvqL9Y","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        the position of the point on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9-WZvto-1P5WaYwtUbYpU","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":"EB6-uR32Q34Jb2KxqqCLn","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":"zX_b3t5-T8u8Yj22a3vq7","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":"ayk9w1wTml5yhdrlk6zeE","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":"2p2jIH_OAStbcBwyzTdcx","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O_hQoDdHY-xjS5FN3ro0D","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":"PNl8TJHCQxuD-PezUmHGP","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        return the center position of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-ilwBobDqSjOZpn9xnWVK","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        center position of the bound on the x axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"opNDorq3IW-8oo52PkwdJ","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        center position of the bound on the y axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vmkL3SNQQUYnDhzSqMSkg","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":"E9y5ZVoPd1CYb8k9aavch","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":"jFs28eOHdl8ncowqpWEC_","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":"Th-f_piDZM6mPbFtVEjQD","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":"I9BEXEgbX3-97bnbahTvB","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":"6JLUE0rr5fWjC8qOMvOJb","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":"kaRbgKhumO3IasOWWHF4A","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":"EBL8w0ZLllxQ2kFxEsOAg","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":"Nc6Kc93nsw-o5wkjLJolZ","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":"zbA05Atl18WuT3q45Wf4I","name":"gameScreenX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event X coordinate relative to the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kxigdA0OUveHIZxFEXeVa","name":"gameScreenY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event Y coordinate relative to the viewport

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"f4HQHWdyTg82zhwk25IaZ","name":"gameWorldX","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event X coordinate relative to the map

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JxggQKBng7mgeadZwKbvX","name":"gameWorldY","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        Event Y coordinate relative to the map

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vf9B1AG9U4T0FFWd9b7mW","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":"bvYT4fl4SvbifEhwLfcN4","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":"9TN92sZMgtH4mFofgHx4A","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GjwBQGT5oGhHXWZV3bOLL","name":"isNormalized","brief":"","access":"public","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        true if not originally a pointer event

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OpWKVJsnTsXmr9Df6fsdP","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":"cL34X0DM8lZy8k_GV3RhX","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8XqqMVlxAixilJVV2DfR9","name":"LEFT","brief":"","access":"public","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                        constant for left button

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

                        true if the pointer is currently locked

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zygtDcPGWl-WZ6kq_rn1E","name":"MIDDLE","brief":"","access":"public","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

                        constant for middle button

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0iSYaxBtw6jPc0K5M3Soh","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":"7K-kjn39cbfxaN1wjcDzr","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":"DkR3azxMyNHEMWX07yxKf","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":"9MWiqOCa8Zn-drFDyFdNi","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":"FOAN7JMZ89_esE6dZEPfr","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":"xJe5-1H-sBeTLgDQwxGph","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"61kZZVb07z0KFmFQ98TZa","name":"RIGHT","brief":"","access":"public","defaultValue":"2","scope":"instance","type":"PropertyDoc","description":"

                        constant for right button

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y6gPIJloYq4aRDrKcGTnr","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"i-fJwRgHINOrkVdEhpJZd","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":"JR-3m-55YqwvXbfmfFWU5","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rNrKWkizPFtcnHqyxotin","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        x position of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"DuVzh8K2OiIUSeTLh-NY2","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        y position of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-YvO7NBOpW3l36QatLamX","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":"b5TWg84Zkpt1Cjogbj6K_","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":"OQbiYb9wpuG9xR7quxzJh","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":"FO1wv4tie5LSk8TFsX8-N","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":"P2fBml4xJHAF1hODfdPsA","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":"spZuZr-jMWY6KxHV2Nfme","name":"clear","brief":"

                        reset the bound

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"syVbtsHztEFv10cN7pe92","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":"ZEujvf86ENz6_FrRuGp9H","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":"j1fevwqtg5OsxJYUgpkyR","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":"9zKqOyx6byyF0JXwx2Z61","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":"WPQEPryRG7CtYG4Whc1XQ","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":"ZTqEa3gVvDH8xZUCcBN_2","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":"jbZB8zRY7FgoPQvwKzUhg","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":"mBEeKITuyXNCqe6_w-QS2","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":"WzkMJ4Q6TAzZ_FvwWITCo","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":"Jqw03OT0oKsyNv7WT7Wc6","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":"oJs0RrSLrnsJA13wi7Bh3","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":"LLfNOrbtD1oYVvY4dsnIV","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":"avPjq-yt1pUmC8HbyGc8V","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        origin point of the Polygon

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zDjcPzIri8TUWbevKgB7_","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":"Cdp_HT0gllvQ0v7vwrUXb","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":"z2H4Uhw99-L6cw9mWkg0k","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":"wjTk-B5VZDqc8u3p0Xaf6","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":"HcY3vP0ysIUGV9QXuYd0n","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":"pq6TaU1r7UrfJDxomYnI5","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":"IZ0Jwf1_EBYcR45XEiC1n","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":"EGB_PSZRr-DiI-z5ot4Qn","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":"rGfSoGvYBPitj1vWpes08","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":"ZJVerBW6Svt8aSk-1POwH","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":"6zRfoW9ycf1PrEp5qoay4","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":"huL_bk0zAv31irY5tMbjH","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":"wxLXvJFYzCF_iW3JsVz7M","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":"T32uvLkrRjzqQsCgncDyG","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":"0cwUX50JANFevL9ucgsbF","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":"erjYd1TNhBlDaEt3dmqId","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":"lOOmzwSDfyjsyOle7vUhW","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":"JfpebovIEG_OcIlS-b3h8","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":"VwSOXASzNxVHnfLnTMOhi","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":"WzfOZpnxo5dY-4ZBvYDCZ","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        an array of vertex attribute properties

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pU_91t06fQxPHfwva50Cu","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the shader currently used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"noQybySLAIZVFHcIUyLc7","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the default shader created by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VWLUWXVg9J0EJRyxf3dgY","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":"WM3vdRGG2Dqc_WRekW9d8","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":"kaCtob96-0JTeQHKy3jUy","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        the vertex data buffer used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tnmlL0EfrnDwWTekVai9o","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":"siuJhHy-7EegSwbhUkv-B","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":"BQtMs-NZUUTewxAbUgdak","name":"bind","brief":"

                        called by the WebGL renderer when a compositor become the current one

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x5bF62253zB04Y8UaiY2u","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"7dOv1F4wPglF-RWIh9Lzf","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":"2M8aEng3BzIVatCR_clOF","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":"OIMqiqD4Z1rOsHvFe5z_e","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":"D88oImL4r64x_APovwpxi","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":"JdJjaBA4WU4R__hdoS2Ff","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":"6TVFx2jal80n3yhzSd-Af","name":"attributes","brief":"","scope":"instance","see":["WebGLCompositor.addAttribute"],"type":"PropertyDoc","description":"

                        an array of vertex attribute properties

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y09c9L7kqNf8GIRED6NlP","name":"currentShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the shader currently used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EhshrD_z5Hm9aXNBZuz7J","name":"defaultShader","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the default shader created by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QzFCrn40g7uz7AMDaVHuN","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":"rGUqyUO1Ub-AncnqYQs0a","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":"jRBjRPLPdM-42Btb9O88y","name":"vertexData","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        the vertex data buffer used by this compositor

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"t7rkDZdmir6Mp7F_EbuyD","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":"gYjyGLgc5iBxHxvDSujEI","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":"vt7-AIg1nrddhclcugXbQ","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":"elJGrRQ_PGD3zGmR1nagS","name":"bind","brief":"

                        called by the WebGL renderer when a compositor become the current one

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PhNUQ5zV3FxgD5iB7NTAa","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":"TAnO0aTKsacVySh-CumWZ","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"khbf9Ec-aMZJMLp8oNTBA","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":"BcxSVQUZdQCq6ieqeysEF","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":"B1_P1T8DYIKIDOcvA8Ubf","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":"5kST4H1QE6Yhq7zeS7Sw4","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":"mEp_27lVPMpPKGWsoH68_","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":"TYR5FdAMDvcJwFcz1kgis","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":"b9HkuDON8ZrvrOQrrGwjC","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":"aJWfn2qNW41UdNhyBnN2E","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":"URmKDJJ8jRmB4oo4A7cLy","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":"w0UNDMy0RkFuYHAY1VHz4","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":"ncMwsgo8Qu7a5LEKGO17z","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":"FdbXGQfpQAAf4kJ29M1a9","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":"mAmOEEhU0fJ0IP-m7VDei","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":"ZKJ7y-xt6j55_vxCiHJBs","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":"_Xhr-mRGngSTxAnURJIYe","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":"UgX4fwQuWNB7WlpZbtNeC","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":"J7Sz0k6uNii56Gaxu9Qgg","name":"Rect","brief":"","type":"ClassDoc","description":"

                        a rectangle Object

                        ","params":[],"returns":[],"extends":["Polygon"],"implements":[],"members":[{"id":"MMy4gOykvyDJF6oox_h0L","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wJovhA4LhRlplA15rgXft","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"O9Rh5XINbBTst5jFXVsAu","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rlkqs8NW4UF6OEV1yCmQv","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MylVer2K2iKmfRMcdkkCl","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"C1uo3eUKHJDqb3Hwb_Ku7","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":"C3TApl-EeNR-LNetyc26D","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        origin point of the Polygon

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fzXGzVMQnV82wzRp7KLyB","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ragXNu3MzGMPeY1DmVph5","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qGhJhCDRu1-GGTtGBrGlc","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fbjO7j9pxst9pZWUbL-Dh","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":"c60L2MzhEDsRIjw2brzl9","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":"ULAExZqOO1zPDk0QzC0Gp","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":"gzzwnqbJOqvY0QV7JdB9h","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":"6YkoBBN8vc96MLIDFDrdr","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":"fB6Yxw3KoY2DoajXRJLkI","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":"EsyPMrHDT5GeP9m6vp6tC","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":"0LELMuxVd--sWJbkn1sYh","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":"gZwHOKPupm1Tm2IRM9M1L","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":"fDn_UrXQpL4PHmGAo-UmW","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":"VJk3p7c_fEOkw4fXR4hyP","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":"Qvb-t-QVeHASL206pGeFK","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":"0t2uFym1OXx6bhhuc_sry","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":"qcf2T6jc1_KJRCD9gyKDI","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":"MZWAZd_Wd-gObY-imWGEx","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":"IaNYRM7PMyAOu1D5xmitr","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":"SlzQvLDPAaVHEYwNSUbnJ","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":"_VVny93SUJVA8gbRagMlz","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":"LJqrHuFQgOeYUeNTLuaZb","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":"yRJKUz27KvM3pyYZ5knHk","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":"bXX2SSLeP3-Ky37BL1sxy","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":"nntpou6oPsQ8dqNJEStow","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":"qrodCzenZmXEw4baGwHB9","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":"1LelZSebxRqM7_6ERBCB4","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":"A92Ub1O00v-oCqtay6deA","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":"ZpZNY9xxY2cRQrKxfRDhH","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":"huwDSJ-1vqC5j_xlRV8_D","name":"Renderable","brief":"","type":"ClassDoc","description":"

                        A base class for renderable objects.

                        ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"dUPvTlpypAAWvuaEz6vO0","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":"hsyY3e7lm8gmxf79hnpkt","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":"7IuOAGYwGBOcIB9gHSqev","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":"ih4IKrtba7xJ8KP95Boy_","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":"58v3cwIZ4l4mKIMsZrAgA","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":"tn1IxVOY5QDOhFJBtHdnX","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":"WEhSWsuXMsRb74CyXlda8","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":"hRqCnfruDNfrSg0zD2OH3","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qtg6QRjJC0x5wCIlcXHIr","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1iwM5vBkpQ3Hfcu8NLpdJ","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o96EwqqrZdDBAp-o9nDaa","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gmb9H-q3kSSSy7pcGcGr5","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"78UxcKOtvLfEbny1wwcKb","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":"DgVSUhJUkOyFphtxo_HjN","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":"Gdfa0kKrZH07YiVz_o5RZ","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"EfJm-dO1B50j5BQjp6iyD","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":"-CibM7kPpcAZPArTmAOZ3","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":"jKe9NU2NhFf_Kxvj1n9J5","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":"kTrsITHlzvucTfJy1vP4A","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":"zTiZaRP7-wAeTmUsvbtlS","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":"vzh7CvDdOJNQIz5jyWXU1","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":"hiFrZ_nlMZsd_JNIioZki","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LDJyIIMrVB-Tjq6D7ey3W","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GzBLj54hfWK4qQK-2IHzx","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":"d8LE3rOpPVfLcuU8XGsD1","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5hb_i08x0C-vJaV6MEXZp","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":"vDZ-YOKqSZDTshtLjz5I8","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":"G4xDCfZ8N6-xUP3mRkc4L","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":"lzwxO-ObFWL6BkqwS0tvw","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wZ-tPxjGF4BFmlT8AU0pL","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aeFRDV1Se7ts1UGj048yI","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":"DxmUor0SfT3xyD0X-ml18","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":"WqXh2kYjpwkowVN-WQiq9","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5J-tLSWZBJKjLtrMnINWG","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":"pcchoyYp9FXyxbHl29wk0","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aQSjGN3aPmXhCKbh_cXL-","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":"DRwnBgD_prsfa_WT351s-","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":"40pCuf6TYhAGC3qKbRR-K","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":"4uVNdzlscVsyfeZOrr8fo","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":"UsVm8GjtECSjrdKjDUXNK","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":"qtOMN_dw4g3RYYb3d8v7K","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":"YhdWp7-aNL8fyIVSsrQai","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":"fbX5rfvF0sKosJ8A12gzg","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":"_ZfX5tT43Li-PI7_rn9cX","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":"9A-phNNMlhj3Zsz0o7sRS","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":"iMvzWvvlYb5hiGhJ0RVWM","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":"5tDlBizu5QblZYPoZmjwb","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":"UPgv6QwAwp1XlM5RqGtVk","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":"aQ87TvXN78Z_yySECBIUX","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":"0cSJl7rZUtzFbQcgW84k7","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":"kntTKZ2HHkkjk_h9PI20B","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":"Yatc2lGD3EK3_eNnnqu2D","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":"ejP2Js5P37tn5494ljQey","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":"9OCmfSMEhIt6z7MaPphQu","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"1zg6Bd05ii69pw_yz8bvX","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3g1aTqBtrbbMDZlULOe-1","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":"DqOzT5KJVFkOvCJFs3Lgp","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":"DoZJTYgRQ5CTKWBO9Lqty","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":"6z3a6Jdei7FxjCyjtoqc9","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":"NthfDqCxkq_iV6j8U-JTW","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":"ABYdSToVIT8cNAtUSzMI1","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":"POLIVEiDwuoGfO4Hjy6pT","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":"AMePRl6Yc5HZconhUnksb","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":"NYDeqWJ2y4cDVBzeTm6vP","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":"rNgFohvzMFxUD4BoxkQ2M","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":"gYOpiF0Bg_KVhf2ZDKrW4","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":"KOt1mAoJ06uK21Z3MbM4J","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":"OAK3EQHQuB1UnasKYKd70","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":"V4OQuWY1WA8XowgKAhRUX","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":"AwqqkdU9uXxAWAXTIoOBi","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":"gvlONlXwxpS41vjrZoFBU","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":"TdqHCzdgllOqC7qpmZUV7","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":"_Ltpq8Ve4z9Bw2LnwnaJH","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":"goeVNUaPmoZtSnPueCe9E","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":"n_mDvn5hK7_ECovKccz4I","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":"h0cEiGgyez0XTNMHaB6np","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":"UkXRFWxihQu62T_I6itPL","name":"Renderer","brief":"","type":"ClassDoc","description":"

                        a base renderer object

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"ip8LIC93DJTml1FTQG5nA","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":"YrE_ZCrAB_LFBYxu99JFY","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"-QBK3kDiNI6vsN4MOD0Tl","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":"oBgL8CiPc5rB-h5sOXjri","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]}]},{"id":"ZMcYEYP6YsD5fuNpkZnN2","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                        the default method to sort object ("sorting", "z-buffer")

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OcZRETwYiLlDA_FWp0Lvo","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        the requested video size ratio

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GJ21Dz16Z60C99a3umrPy","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":"7IQ4hOCPrJXzsdXgYOmaA","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                        true if the current rendering context is valid

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"8xLpP9-ko5agAOwBa0WOH","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The Path2D instance used by the renderer to draw primitives

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"drv07HXpY5wQ7TkWvhyNX","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        The renderer renderTarget

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QsFvzfLTmEq05ugmxZY5M","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":"C59krgRnvN-NWLELr9F2L","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The given constructor options

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"98pHIeefanvvtYED3PVW_","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":"_7czRJ1LNdk2TPnRH40ql","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":"DBQRG08BxjcXQPfDHku-4","name":"clear","brief":"

                        prepare the framebuffer for drawing a new frame

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OZBuEo2QRWOmOVkd0bzOc","name":"clearMask","brief":"","scope":"instance","see":["Renderer#setMask"],"type":"MethodDoc","description":"

                        disable (remove) the rendering mask set through setMask.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N_lFZkQi-e3IXNM9mpclo","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                        clear the rendering tint set through setTint.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2NFR9nLivGzOsUOJNtLUs","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":"0GvcBUlzKqxi6d-iaWWLh","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":"kbNhK_7j7K0CEUW7gJsD2","name":"flush","brief":"

                        render the main framebuffer on screen

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"waEOMXrAjnoFuMc0nBok7","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":"MAkcOWEWlf945yD_OxGVQ","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":"tWGPRUAYR36HrnQoeUXjK","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":"Xtd-0hJD-fMMX9zQ1FPch","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":"qXPa3UEXI9SN-HP4vEiQt","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":"h7gZ6fvv0QSATxWuPwzwS","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":"wV9JdbytiNtdoVJ0hKR3x","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":"WoQdJau7FvkPFxaSqZ2Gg","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":"ZSFsicZeWJiUz7r5V4D-3","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":"aUq29vTmJuPy73rgJJbEW","name":"reset","brief":"

                        Reset context state

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zOUxBG1RxOYAI37bjOFtz","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":"bWAOAVnI-rG1bghfRvmxf","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":"mVLrSJGPf6wuMe7jFCsM_","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":"8Tse-kfpl5dqA0C--3AqA","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":"dz5DgnqoGUVNI8iFHbpSY","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":"PV9miwP5C7Tp1OzLhMbtN","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":"igKQrZRvM4rpJH9jpw3Yv","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":"8d5po-eNk0390D19xAGPa","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":"220B6XF9SRXisTJiNsyJ4","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":"0hLCF9KW4bbF1Ld8VljqI","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":"uQZg9tnY1Zu0K2LuFsDg-","name":"ResponseObject","brief":"","access":"public","type":"ClassDoc","description":"

                        An object representing the result of an intersection.

                        ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"xYNPyG_dmGWBKpLW3hQSE","name":"a","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The first object participating in the intersection

                        "},{"id":"p6TbqCKfktyowl_oqoDOz","name":"aInB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Whether the first object is entirely inside the second

                        "},{"id":"cbL4xZnvPdvzEPUhlDBdf","name":"b","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The second object participating in the intersection

                        "},{"id":"-LOBExYAGiv5VejdpVg1M","name":"bInA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Whether the second object is entirely inside the first

                        "},{"id":"WHJ1RNEjsEKdV49PVPHFj","name":"indexShapeA","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The index of the colliding shape for the object a body

                        "},{"id":"blb8wzf8EVHH83ZPesf4k","name":"indexShapeB","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The index of the colliding shape for the object b body

                        "},{"id":"TTEnxU3-uH429M-IYNOiE","name":"overlap","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Magnitude of the overlap on the shortest colliding axis

                        "},{"id":"5CKzJj2kXFS5VrNoq9Fmd","name":"overlapN","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The shortest colliding axis (unit-vector)

                        "},{"id":"8DpeGk9O8Ac19_yNuVP8w","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":"hT8m3odXQWaA9_prh911j","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":"r-ElnxIH3tZns14iu-6S-","name":"RoundRect","brief":"","type":"ClassDoc","description":"

                        a rectangle object with rounded corners

                        ","params":[],"returns":[],"extends":["Rect"],"implements":[],"members":[{"id":"vWXdlYcUEClXTQA0mEN2D","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nIS0z0Hrk72qFSvv-xk1I","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gMDpTajPkyO0b_jya-sV7","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qOykI-JFD25tvhFrhsLwc","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RRLBTTqXQRlIgP2OURWIE","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vsdMD3KQ8cA9rnNfeTVk3","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":"oQ8OBijHUR7Bv8FSYxpLA","name":"pos","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        origin point of the Polygon

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qeFz0U0yqFN0Mv6sbv78w","name":"radius","brief":"","defaultValue":"20","scope":"instance","type":"PropertyDoc","description":"

                        the radius of the rounded corner

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bNotUDJp0qMKq2LczBY-c","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gHYCqrRPQ0dr4w2p_lXXX","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

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

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"XG2UXoC1JazgQPoJVw9lu","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GwGMZ6Rj90eflQDaYzf5c","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":"F00ZbnCGwMRMAjf1K1ACv","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":"lT6FC-8xzKdJA5rAHWAV5","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":"J2VtToRa9_EJHZhdM7rUp","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":"Y0jDOmo6WfKrorO06dXi4","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":"8ep3pNI_oKcQ41ZS8g5aq","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":"0EfQh28E9LIefOgAZQ8L3","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":"ZJGpbrKA0EPX4SwD99vL2","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":"jZWr8C913-9R3sG4PUY-P","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":"rlcVFuk8JIb-Wfb2D3xks","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":"RJwImItqoAtaaswvxm5D0","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":"bAgJp0XykbwtlycFj_PeM","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":"eKPhb3WA8gpl3sRe93hpw","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":"EsuWtWPNGsnzUZ-G-v1qv","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":"O_oOvacHugPUh8SOHHKsI","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":"faoEUoRRzkqVeSxazE0jK","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":"oJicB6JjhlKj0EUZ-1rQ3","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":"BDdgs0YqpnTsRorjtjUp4","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":"sSEH8SC3yg5if_V85Xo1x","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":"S-n7YZlcmfqxrPxssi2Z0","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":"7x5IMIlJpLo6n6BNJ_oCG","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":"Pp7zCxwFPkLe6o8gKOeVv","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":"O0eE75hQfc3ABXFO8Ym5R","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":"8b2WCLXNtS_8MAjTZ0C7F","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":"1EHAQ7zUXAA-XHEvvPSWa","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":"MMPRuqocReNBUa4Swwkht","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":"39KquT95vISHlTlJSOWP_","name":"Sprite","brief":"","type":"ClassDoc","description":"

                        An object to display a fixed or animated sprite on screen.

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"f3Di3MqR0Z-ph5rLYKENq","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":"s51fZ0cGUzuwcH08zgj3E","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":"TuUPkLUP6_ul8WOmQpPHJ","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":"qVtYlLKd3SOimJL0x5HbH","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":"1wLf1vJaDbL1zl0LlIkMx","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Y85EHWlfNBMeDyLOUqNem","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                        animation cycling speed (delay between frame in ms)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N0lRUfqa2UgjbuYrKIMF-","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":"nluvrNy5fczsnB0JM2Dss","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":"KuZqd2oZLmRWLYjPOFqfc","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":"L8eZYxjEYGH5mHGvDCwkO","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gdN3fzi5qHtRG4-JRGJ3Y","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"abpsMOzvWbPy6uI5ZdKXu","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SNhxNCnQDzeke1jLqKUUM","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9VOVsSEZztL8aWV6-any4","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AEX2s9cwsb1_XTvZsZR88","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":"_TSIKWkmoR7pARtAVIwB5","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":"Wl2w176QxP9JOw1CtEMhr","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ys3DhwCiXgJCMooqe9XlU","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":"ERb37HUNYDLC1A-TZnm0I","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":"XeUhriP2SA8j0r4YKnuRM","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":"xcZgsY8BppmomOukxl5oT","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":"igX2iFrFJ6qkgNFWAtj7j","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":"oO3rEpfz-r8zElWwBYSSX","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":"RLZtotIIXS83JVOoFbLdZ","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"g0v1tSCwVNgIkPYobqkwk","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":"yYWyjWgVHnaB9kpP49hDi","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gFDb46TXOgbte-4bT3yJD","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":"8NYPrqY-z9wf2vhI3Mmdu","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tbNCaDe_FyGCMDi_Lchjj","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":"-vEpngoY4mevY36R3u4yB","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":"ERWNReJjakk7Xk3CiDm1Y","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":"huf4DS-wKmb2uJII_vnt9","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":"3YJd0UGhwBgw-nyhZOd1M","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"V3NV0GGNQ0GFwaof5kTQM","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gsqFHy4WAa-3WcoC_VTA2","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":"yJG0i-n73UMB8J_MfdrIt","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                        The source texture object this sprite object is using

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FXgG66Dwv5NBgerhXk0Kv","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":"7FLDueSyuWTZ-4CCj8_D-","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N1uFdFopGsP9MfYQJ0P-p","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3JhpgjOh7IIZkrfZ6LccK","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":"BNdH6J05sIyumcQa4GNML","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w_OWZ7NHnN5XNcoHhXAN7","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":"GkrLqjVb3LF63KIMKsa0K","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":"mkDbV0ZvsPkn8BPCk43-0","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":"Jype9LBoHlUQdeGrzQvv0","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":"sLTY7Jmd9IC4nLVnV7GDh","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":"R-jOEb-TfZlZv0451clft","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":"x_hJG-RU8eWI6hfo6WneV","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":"vS4vimaYvae6ZlFPTXcdb","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":"qvXccYTro9nTJ4zZEc9_h","name":"draw","brief":"","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":"s6SEkDFUfAl8b5M3NJuH7","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":"aBIoYIthyofNpcI3HsqwF","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":"OOLJyh31LumoJSeAt6O84","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":"Ecz4I7i_DV10x8pFdCp3C","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":"L95-umMswmij1q_cK6MB3","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":"mbc6K-9jpPQHZ7kj76ceJ","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":"PAvEa7uves5MYEDYCHcMI","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":"mFRqRmCR23FFBTCRjSVGl","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":"oWsu7Ka__h8JYYa19CgGz","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":"FN_0ADCwef_iYAyucXDpg","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":"TM0LkuzglQTawGf7isGKW","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":"ynIkTiDuEyvArhEQrP5SK","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":"u08J3ifj76WLV9V7qSqTp","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":"uyuT1AOqnJZEOxmSBkW2q","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":"vg1fX8iaftHYwF9c8gBv7","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"zz_eTlGOPIn9AKQRaQoXe","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3uW925ciUlMclZrNggAYN","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":"q4nKyzsUIzdbSvm7i1BLK","name":"pause","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j7kW03VpuK1b-FROQBpz3","name":"play","brief":"

                        play or resume the current animation or video

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JKx_tdbR7NIUHwFL2zXpY","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":"zcai6GjEjwmtJlmJ2t708","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":"u01C9iVI0coOzexM5HDhU","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":"CcMupu2RyyVTlRmQf7mO3","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":"EJ-nDx39sVzLk5F5Gysvz","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":"EhmxSdOwpshlkQDBYeixS","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":"FkbYWD1hLNOe1Gk-hJ9wW","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":"UTIAi4miKj41fQm3rUz94","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":"cWTw2um3-zOFPf_qHZOtL","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":"Z_2W-0zONE09LVX4Y6uQW","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":"cyTR91rWxYptqofeth7O-","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":"Uai0vsgxOks6LiPDxgB5Z","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":"DHtXgQv6UC35YUP6SApOB","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":"mp4lbqRIxkeKKtiBAcpXP","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":"6jtHHpRfteSLf_tBNNLoH","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":"pdd8s63RB5z7anfluo0cY","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":"1eUo6FQT85ytsBzXNsVom","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":"2H5W_pkv6gycPSGgahowc","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":"TEHmsiJ1f8WnQ0tQRmFbu","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":"4tRYd1-nkt21tGbgZc0yD","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":"rJoPEEVMLSvCSZ4bfyO17","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":"8kF7QFGyFV-9dFiQGyoZ6","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":"4m5rjyWgp-ls5I2jGH5-r","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":"Qe7eRVqpGA5srgvRgLnAi","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":"OWb-7y3sTjWAONpujXa60","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":"DIXyaCozpZ849QUCCNpnC","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":"EmthaYH5TFbTnRVZriatp","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":"Wz7tDiKxxU1sZiWhvXH3T","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":"VXeVrVEK26obUi4bMm5cf","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        The given constructor options

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"n82Thxoo_Iz0DSsnX4R21","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":"J8BlM1O4mIwrBKI1zDeIx","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":"vwMPwfIyqslwMF34dP7D6","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":"-06EYxX6ToVmh2Jc4RObD","name":"Text","brief":"","type":"ClassDoc","description":"

                        a generic system font object.

                        ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"lj8hw2GSjNyNyb-2Z-RW9","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":"vjb7m22NBmyzRpR00qQE_","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":"nAMytrHrxOjU6sJOm5Vc0","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":"feJQ2_ZZwvdCi82tXoF7h","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":"SFj5DLYMat__LPCQFic_P","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":"2uXXWNzQdgR3LaXRxwEnS","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":"sjVAVdvAhEMuzUARtuMni","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":"jyUQoElLb5TO4ovT6KWkq","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LDFdZhUE6HAr8swNjsXl-","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the horizontal axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gRSR75vI-i_XTkSGl2Rty","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        absolute center of this rectangle on the vertical axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"a1u3aalBMETCx2lY8YQSJ","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the renderable default transformation matrix

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U22HAFX6u6Qd7cA_W7kQa","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        the depth of this renderable on the z axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3RWW8_GnaLq7aTkxjJWCo","name":"fillStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

                        defines the color used to draw the font.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iXJy0-D3rrPOQZy_vOOw8","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":"bJBnfwcx9h_KdAUCakZsZ","name":"fontSize","brief":"","defaultValue":"10","scope":"instance","type":"PropertyDoc","description":"

                        the font size (in px)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mAmDciW2H9HxtV8oxs01H","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":"3IJEcgKNokq1xv9OuGL9L","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        height of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-_8qKGzIdx9SFCbeyvDJX","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":"0U5PBY2SCMFYNb7gK1jTb","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":"-rVO092HJ521jxXpZnNCw","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":"lm6S_zOH0winP9NsmPKtH","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":"IcjLQqhUCv3iGiljYzNnt","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":"T0BHxbXFNe8y0r8iMQbxI","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":"g01CN23ujTNY7ZowLui3X","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                        make the renderable object persistent over level changes

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"leKFushTE29Zr57G-rVnT","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VZQaB0OLeJzsmKtyR8l8H","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":"t5MZSvZNy5WWjRyvOXwh-","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":"4NbxJhxIK--ot6XQD2FCT","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":"TRsUEctkgCjCyeGQeEL48","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                        The name of the renderable

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yv8eEzzE1Zn5RsMhJnklK","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":"eHaRnDm3XPjPyTJovIsQW","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":"yADl6kN7irF0HeeNDEzOC","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":"5ugI5vm1i1ReZSj2U1Z9T","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                        Position of the Renderable relative to its parent container

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I7wug2Mn_mRTsoDOxePTg","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fUq_CdKHTvbFiF5kRyMRw","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":"31LHIHw7QQtP3_GPLcCIJ","name":"strokeStyle","brief":"","defaultValue":"black","scope":"instance","type":"PropertyDoc","description":"

                        defines the color used to draw the font stroke.

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hpv6gQwCQEYuJscO9d-7W","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":"kCaQynIKvSaOXUE5bUqvM","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":"u4baDocEL_DN5Fpp8ftRK","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":"CrQxE8iV8U6tw4AZotuxB","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3DaVdnD-3nVtKt4m1oGPk","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                        the shape type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vujDuVSa_znMw6YKUidz2","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":"GHm6KRTnblq_UkOqGLeQQ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the Rectangle

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SbVbFnnKbFzJe0MKnTwFB","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":"a-8Fa86RUrPMjeasJvbvR","name":"_text","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                        the text to be displayed

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YbpAKcsR2Is8q_zgmA1Oo","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":"8LdIxP9Vlpg_B4ItAdHpb","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":"cLQim3w_GuuALwiaY-lXg","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":"WpDcwuYrIAUE1VzTUBD5o","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":"THWZ0HLUxrWCkAmHBvbbP","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":"nXZiR6DzbWBpe2Q9ziZns","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":"Q8ntjYgeHPaInjpjvIbjE","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":"MGyaoGRYHyTiB1v8nQjLS","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":"fDTae0v2_m6O8952y4zSU","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":"2oatIcQQPINrFgeFE-z5M","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":"dec2DoEe0WZ4_rjERA31g","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":"8S16QYcvb2EKyb6y4wipK","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":"mz9oe0DJ2QuR-pZfDjGUv","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":"P4vcaEjqqzAR21m5cQVmr","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":"BwliiO9wWqf1WdQrvGfnO","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":"3GTy1YEgCKcY_h4E8Yu_d","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":"H6Pqbfoq8O25r1O7Qxmf5","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":"Neok4GcH0ydhPo6mRZFIv","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":"17FGN8CP4IcIub-BHgvZK","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":"I0Z0zrFmOj_KuPhBJKBrT","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":"Jy_32vV7ZibIV7uuPGoOP","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":"p9RwfaGJ-5Cv9PY0rT3Dr","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":"d6ic2sKr-jqupiIYbwEjx","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"PnDpYt0iUteXgDEGMeBMC","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                        OnDestroy Notification function
                        \nCalled by engine before deleting the object

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TIAKGAYvlsbPjos0IZc4s","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":"ht-xSE4WD0PpkD2U67Qwu","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":"SkQCgPFt92WB7E5DPdi-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":"5X-cl64fJbAbS9IgPhO_2","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":"xSSVjKDsS83LcMEAH6NZD","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":"utrxua0e4x_foUPKP3Oe6","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":"15SH_OQuWzBQPNqxE5BYo","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":"X0pZbcUKT31vV2j8TZrtC","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":"hPrp9CTxuBPCufZShy0rj","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":"70vrv-c5V9TJj6i0-b9Yl","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":"PtTcninO5C4x3qdg9BsKL","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":"ywSsvh4rnRGYqV0QaWjd6","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":"viDoKu0KUYNMBzL-UYijv","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":"j2MI7W0dVGyEMKbfxRkEP","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":"Lea-LiyJKIPbdF_cv3uDe","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":"fXrviz0bXzplLD8QnJr0u","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":"LRFAbRhF4PyVLudVYyc5k","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":"fokGhNlJtE6AjsqniqcGz","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":"pgHdd6Ne2jYWRlFbIdosk","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":"5komCq28YnxzaBbuFt-8b","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":"KNMnkvmUPrsIJWLjRYvA1","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":"-cYDwT7sxbGQPVxR2arhp","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":"ExYXfjzIMiGcHY5KYIE--","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":"lli7ScO3vKE7gaLSGBiPm","name":"TextMetrics","brief":"","type":"ClassDoc","description":"

                        a Text Metrics object that contains helper for text manipulation

                        ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"8BgRe11sp6DFep_uU1Cj9","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":"dZr7-Sbxr87wrdmbK0ZmB","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        bottom coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QpGsr0oXo5kgH1NsZQhe1","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        return the center position of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zUi9ml6H4lBjqku_KQKTU","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        center position of the bound on the x axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GotkUWJ7vSYNHNKjvUl3Y","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        center position of the bound on the y axis

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wrh-7QOCCKYgJxULoY_I1","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KsaC52ieoLQNe-FzYFAL3","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        left coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7iAqSRwY0tfpO7URuHkSI","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        right coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"69tzvUhbTTD41VO803lso","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        top coordinate of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5nVHlXUzj4xxiGCXJTDSb","name":"type","brief":"","defaultValue":"\"Bounds\"","scope":"instance","type":"PropertyDoc","description":"

                        the object type (used internally)

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ciapYWouwLADqHeSs6Pts","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        width of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lIyzXqYlFpkH5f9_cs-ZC","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        x position of the bound

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Wdb20vCgmK46uLBEOErx9","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                        y position of the bounds

                        ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OJH8ui2brfmhffAA0vHyY","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":"VhYY3uh7zvsDELpXB3JBb","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":"Qa_Pp51QvkWYC96cguHii","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":"SEBJp6fJgCNcCRNXnN6SD","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":"XjKDqMzu0V_Ny7lNOlPTE","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":"M-P_RpyFvvDTxGD689c2k","name":"clear","brief":"

                        reset the bound

                        ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HWY9wSANeQuqpmSHJJe1V","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":"8nlu9QMKHkOxIj28Fpri3","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":"YjxCWtM7gx8DmeEsYNVIF","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":"iKMTPLzcTaytJl1qT03xv","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":"DDc0OePXQo-AUOiGYxzMp","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":"J8Dq9lNpbKZq2QdXJimUi","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":"MgdbHkMayXTd9vdK2OUIV","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":"nYTWAeAkyF8NKX80vQ2Uz","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":"a3qSeBVmtlLllr8oivlnk","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":"msyqchraqTo756QJEtNCb","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":"Xul74bZvlsz-OXh14APes","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":"XtPOuKWHBRIFxbH_Km_av","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":"PDZpsTo-72TR-BmasmIFC","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":"dGs03r7tLCkP26uU8vUVd","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":"8t3B4IJDTq2VQGMKFO3hV","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":"RVpkWvyaSIP7a-_fJ_fVB","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":"OZSo8ZANLfY_WS2zvwAfQ","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":"VI0-zwFN9qMp0GqCOhU7Y","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":"vGr00xp0rZSkqR348V6vR","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":"SQ0pBunNySfurbemB0xoY","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":"LTle--fQ1a8qkgHMrvsmS","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":"Obuxkld2JGC8-GNf7jwhG","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":"om79Ffz_NKJwNQboIIyNi","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":"f_LxN3ntWNL60tN3gc-QF","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":"aa6fW2bcXhW8P3Qh_FoHJ","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":"2qqHL-q8UQHCmJcOhfuRo","name":"Tile","brief":"","type":"ClassDoc","description":"

                          a basic tile object

                          ","params":[],"returns":[],"extends":["Bounds"],"implements":[],"members":[{"id":"gS8cd7M3TuVttqchFnuFB","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2jUzCKWzLyVowcRYg1_Uw","name":"center","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          return the center position of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7UgHtKfKGKKUYhL8tpsJX","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          center position of the bound on the x axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_4OYiP1Whp4zvtmUxsTiX","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          center position of the bound on the y axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"7DTs3mNze7_SON3dcRb_g","name":"flipped","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          Global flag that indicates if the tile is flipped

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kEn4Z7Z-DvYmvn-4pxDE6","name":"flippedAD","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          True if the tile is flipped anti-diagonally

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RNL5Zb8sXtSpJWbMU4p40","name":"flippedX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          True if the tile is flipped horizontally

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H9jg6cj0yM5TXJweNZPuZ","name":"flippedY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          True if the tile is flipped vertically

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PY5ZN1jmiLi44aSwv1vGV","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GEOQ06rwVmxm5ajOpoNRv","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"N2cHPEIS90PqTfrU6EQj9","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4ULtkxiDWUVsiL7F_88kn","name":"tileId","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          tileId

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"26app0wA6U8Ik_0NmR4Cq","name":"tileset","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          tileset

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"z1lbo3iZIsBln024zSRwY","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the bound

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

                          the object type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J21jDNnBXQPIFYbtzdjfM","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aEzVe3RlsJMODYkFX8UnE","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          x position of the bound

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gGIgImfwhZ93BOsPBVYOf","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          y position of the bounds

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"771bTnBpnvJafVy0SxUVs","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":"YDWtQoKZOiProEk1E2dtq","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":"3qYIu-F8U1_P7A6oqpy4r","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":"V96lNxmrR9NSXZtN_oQZe","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":"5W7MP5Kh8caa_4Vsv-Hwf","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":"0DFAMDYyCxaWB3so-U6yE","name":"clear","brief":"

                          reset the bound

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pDmGu9nHhHI9XwSpCe4C2","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":"q5q4qvSs2ql29EWMdxe2e","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":"b6owiXPgo7gf1jJJGcxft","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":"AT-FXBZw-aoHfGX3uzb8_","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":"pkZN3ojr0IlbZZpT9e9Zt","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":"LwR1hUHO0lCuGAsmayOfw","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":"5mapC5KqtxV7rXfkIaI56","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":"ICuuNgcDS9ncBUt2Xm4f7","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":"OVNtQX5bmP4_S3MZJrOyN","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":"NAtT9oDsbICkSHS5bXvJi","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":"A3RA0zGfCYnXp4FiAfl8U","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":"-m5iyDbZrEZVNWCpPMfTA","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":"_vlzOSmvuQ6HKg0TyuYZh","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":"S8RdO2-lJQ8Wt-hR3kxFT","name":"interpolation","brief":"","defaultValue":"false","scope":"instance","see":["tick"],"type":"PropertyDoc","description":"

                          Enable/disable frame interpolation

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"IPAmAgoioheymHwWMRxdU","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":"QXutnBsPrfIChxHNWXiJO","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":"wn3smajf9OKhSG1f_RUvJ","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":"XO1V2xarBvIWDFWvS8mp7","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":"MgbLO3mmmts5xOXmbDZ1K","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":"fodd06mHKMT8QE6Mn77JU","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":"MP5Tps9kQjrCBLtcGeHAE","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":"Nuib6c67Y1vg8oz8TeTwh","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":"Sxa9PfIYuBGsQK_w7JPbU","name":"TMXHexagonalRenderer","brief":"","type":"ClassDoc","description":"

                          an Hexagonal Map Renderder

                          ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"Jy4s6qCwyoATFG4DtDhd2","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":"P_dwrA_F0r4GlBT7oP8Wf","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":"I1cLgyTPvQ0KQeWhG1xNy","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":"uq2zX3-1dalMW7UsD8eQ0","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":"iHbHWyF42vuHTl_EA_D0C","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":"lXZATw6uoMQagIvj0Fx7V","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":"a0Oe_bLUfdkaHrZFEyOBC","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":"2lWaZKAaKAQ2WcVhlyEZ8","name":"TMXIsometricRenderer","brief":"","type":"ClassDoc","description":"

                          an Isometric Map Renderder

                          ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"RuSJPAm3LLXBa_f6j4Erq","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":"XWZu4SmKDJJYI9XPW_XmZ","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":"wG8Nlx8GSdrg2pwmk7_Mu","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":"NCpNVWBj9gfi_BdFjMyEw","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":"ELxWabIDMPl39dR6ELZVI","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":"YXch7OMXDDL1wah5gihVx","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":"SRmXQwzIs7AZYO_a7J5_u","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":"twdMcFEzpdCvBjjESz4xu","name":"TMXLayer","brief":"","type":"ClassDoc","description":"

                          a TMX Tile Layer Object\nTiled QT 0.7.x format

                          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"lhaJ4OaKQ5If4QFID9mNg","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":"UMHy76lrNiAZeo-SLseUI","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":"2bdO9KsnpAczwCYfbOiKA","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":"q38kegyQ1-SKRZ1vlN629","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":"6L1y9Why4vsJsr2u3uI-c","name":"animatedTilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          All animated tilesets in this layer

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RY1AHEOnX7qC-rBC7VLmv","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":"cWH5g51V6BY6cQBXLtF31","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":"0VgzXVHHsQqJZqjgLLer9","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":"2AOJ5cX_wzfmrCUatpj9S","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YeGsrdrorkFOZ7wFQ7L04","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"u9XrN2FrXUDsfcfgvtDOk","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"lwC7NcQSQd_IKoUhe7vTS","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the layer class

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"odL2SnS7C4yuOhltXTmUu","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6WBRxrSOtsUfjSLPhzUMT","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SKWXsbM1Oj1ZBZDRzYc2g","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":"Vs_SIr0gGGu9DROwzySrQ","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":"2EYgB-0g_khl5iVnxxtQi","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"auLzqAazCK-FHfdWQsqBF","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":"QkWC4ek0QwaKz-hrTWPIf","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Layer contains tileset animations

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1u4CWgGAKPOiKXU7SF_Np","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":"Gs2JSl9Raikv0XP7DOlHA","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":"GdO8wE2o4tY5C8L8oBXC8","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":"GVuVLuTSIh4Lfu_qr8F9g","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":"V54g-E76gTg0YK4h7Lokx","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":"tDg3nyrydjQNdGxoHPU2B","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jWkph6fimcOltx73mGraH","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BvJystdMdXhLmvGHklv9n","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":"7kYi3mvz93ipdzj507hDm","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mN521oz7M_VeucB_OcqlQ","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":"MWLG03lDMKmV2z_LzxJmO","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":"179OIpx07-EzUj8qkN_0y","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_BCRHL4qn7FUpEwu1KAY","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SNjsxMFS6iBEiYHt0BJ3z","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":"4ENTuMYoAh3EyK5P50Ww3","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vIZ_LtUvbp7mO2MoR3-Jd","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":"bMbFTJhR5EeJdO7lplWKh","name":"tilesets","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The Layer corresponding Tilesets

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PgzQCvRrGJmuXVWDczVOb","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":"7Z2wci955pQq36l-l0SDY","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MYZKJjuPDJZn-qZzXcAdh","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OLv9fOOMCgGzw5vxXdj1Z","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":"wHawrCQj1lSKHAm7WgNMA","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zr9Zuo6I7OiDdNhmAqUSm","name":"x","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          Horizontal layer offset in tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"x7K_FsVbfIQltF2VqxuxH","name":"y","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          Vertical layer offset in tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"y8Gwv-aTOjgOPOyPhbflB","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":"doPjqHV_9Pm3FGxXdz94X","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":"v2ZAUWh_4eJ0nD5N4AnTT","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":"gMckG-rgatRk8PPev7egR","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":"S7MFL0uuFadUlKEg3KG3P","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":"neKoVqQfyt1O1YHVsxZwU","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":"htc4ovMgl-l_h_cwc91K8","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":"y5njUKhfTLqEiAArTvGmw","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":"FvaXKIBdp5d_dARwBl1S4","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":"dVHSBiTu6290XRpBhZaci","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":"_9RI2kEgz4UQa8a1xRst-","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":"TN5UeT09oUFPTSr3V6d6W","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":"rLycP3vrGkVLWpr9cKiJT","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":"BQ1rcjDEVIlQlqnRSy3uL","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":"ZZRZ5py_2CsY5p1NX5a2T","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":"_XdOUs0itGWUubdaUtgPD","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":"lYbRxkGhrICFrL8_rVfLg","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":"oDSwkSTFw6BeYRklsyHr3","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":"ZJitw_s29g8ZrAYOU7aEr","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":"D5bcH9MZA9IK0RU6kvRiK","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":"la2IxkykFQmDw-5fmaf2l","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":"b0JnvarWKskcV-XfOUdnk","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":"YiVHhAWktCkZBLe4NdIde","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":"KcY44DWZHYcSUsUpRl7ho","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":"nSQ53IZky2a0vMb6hafJN","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"ACDMCrZQ2ITIk4Ubko4d7","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_UQdzfX4QE3zlSJX9iTyJ","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":"paYpyADqE6ODjvw6mxBd_","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":"V_EY8loYMVMu884kHz-XU","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":"LlFYzDVFjeb3ix8AQDTif","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":"Xu1AJIKHq31hOcTTW4ZGX","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":"d7BJs47e7dyUM0--deIwZ","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":"UrFNjgOq5n8MyaMpNNxAQ","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":"KECW4FS0KQD3z1_poeMNT","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":"lx0X1qKIWBYYYBL8Neogm","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":"4OP6RekpcSBZhg1mmpmvN","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":"lU2neKBPQs8XDE2ldVhPt","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":"O7lUJQW2GIr9MqXbDbyEe","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":"pRNkiy0LHZhwoUL-Bct4q","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":"LZUPKHf7b20IcpAQN8UMf","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":"ZJ3lfKicjj1okCNqIIGGd","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":"YaABxub0cTEz6BilJOwy6","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":"VYUvCsjpoEzaq9c-1uSId","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":"UYxqBD6SL_A6yzvURO0Jl","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":"HNCVt1nLvDi6R27yYKiNS","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":"pdjZAudDIeUAYhb-mwPiw","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":"EfwQuVAAUpJarMDEG5l2p","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":"H4SwjCg2xYYg7lRU_UX0t","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":"i6nfN01SnHb3vXwyp5xo5","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":"j6Os22grHc7QXk38y21ih","name":"TMXOrthogonalRenderer","brief":"","type":"ClassDoc","description":"

                          an Orthogonal Map Renderder

                          ","params":[],"returns":[],"extends":["TMXRenderer"],"implements":[],"members":[{"id":"XPBFIPSxwBN20pPM3hdRl","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":"aK64Kic2T1YBT-MCioLq9","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":"wVBbKND1GN4wQoyJoh4LF","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":"HH0D7CcGzBOt7TNfO0MBI","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":"1E2ZItRHy81GCtcTm3mRm","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":"T438nE-IVmlJKvuNoVrMR","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":"UfZsHdUWiqihpwFU46Eyn","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":"4W6ugjHBtM5mDure84Dmu","name":"TMXRenderer","brief":"","type":"ClassDoc","description":"

                          The map renderer base class

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"f2mhnkOUMQwpozP6yjKB-","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":"hzH7FHACglK5-wS6LV1DW","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":"o1jsWiw4zw33LylXjuOTx","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":"xb67QfeDkac9JXYdUOfMi","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":"s0ULclMuswcI6OA6MWxpC","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":"11I64Umrg5hRMkQsx8o3C","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":"sBQcLyhHWp0VXqnVIqXe6","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":"rQzDu2YdkamcjU57hGFWa","name":"TMXStaggeredRenderer","type":"ClassDoc","description":"

                          a Staggered Map Renderder

                          ","params":[],"returns":[],"extends":["TMXHexagonalRenderer"],"implements":[],"members":[{"id":"trcUoTJz6TzpUO2SK1kYu","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":"SgjvmtWFQAr6pHVtAD8YO","name":"constructor","brief":"","access":"public","scope":"instance","type":"MethodDoc","params":[],"returns":[]},{"id":"57o3DUIkatKz6_sLwL4EF","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":"4bYH6BFlVsFxIQu15FiYn","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":"uk9bOWty9AbaJX31jaSAs","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":"tyckKqIEHqUdxXE0slZzS","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":"OUuvtTBKoPN_St-oFNbN4","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":"NTeMAc6GGGu97vHU9GjR7","name":"TMXTileMap","brief":"","type":"ClassDoc","description":"

                          a TMX Tile Map Object\nTiled QT +0.7.x format

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"YUNo18mbY0du4H55yeZYL","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The map class.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PYuFipgEzZo-CWuoQJkvZ","name":"cols","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                          width of the tilemap in tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WnWa_wTPHNUehGTtPbFo8","name":"infinite","brief":"","defaultValue":"0","scope":"instance","type":"PropertyDoc","description":"

                          is the map an infinite map

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ruJvkwzy2gcn3fK-m2XXi","name":"name","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          name of the tilemap

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"YOtdtD4HYvEy30BV6F4AQ","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":"344aelZzQ_f294-fm7tCI","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":"jG1EfDtozcUVHOi8oXI7J","name":"rows","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                          height of the tilemap in tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SGh_y2FKLn9Kfax-rNB-0","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":"ZZ030y0ovpD3Uv8vsb2Yt","name":"tileheight","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                          Tile height

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ByIXv2mY1DF04hMitKCcl","name":"tilewidth","brief":"","defaultValue":"-","scope":"instance","type":"PropertyDoc","description":"

                          Tile width

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

                          the TMX format version

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"HU91ueXLAiKsa9Pc11z2w","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":"hbGzwqlKg2Groka3nUgrc","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":"XcPPRZjZDKk44pLSP3nhS","name":"destroy","brief":"

                          destroy function, clean all allocated objects

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kgnpZ3HyjvzKXRnRBhd-n","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":"IXorD1QMVUWo6UFxRZLED","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":"HQrxK5FE_YtVU13fKvrtk","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":"8ZtrM96A-iZfoCSRJOY7D","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":"XS3zu65u1DMO3wGyP8Req","name":"TMXTileset","brief":"","type":"ClassDoc","description":"

                          a TMX Tile Set Object

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"46xPt5fLe6bFFotkZd7zQ","name":"class","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the tileset class

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"D0KlR6sYmX7hjk1t8dldR","name":"isAnimated","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          Tileset contains animated tiles

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"PI8_BShthyJ-HIemMP0zs","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":"FHDJyFU-tKGo-PSyZdr83","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":"nr8bsvYtl71LVTjc7Vbbo","name":"animations","brief":"","access":"private","scope":"instance","type":"PropertyDoc","description":"

                          Tileset animations

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZuUNWlE9UoXIWh5IURFka","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":"0Cl5Y_oKSCX41d1qQVTFU","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":"7n07GzTT01P4K_WpTtiFP","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":"GXfw9qt74etkDwiTq_rFg","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":"6eo8O0C-zKCHLTAT1n78j","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":"Buwn6Q_TwLxmG4HruOGvQ","name":"TMXTilesetGroup","brief":"","type":"ClassDoc","description":"

                          an object containing all tileset

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"S4GUZY-v3DyNZEsLnCOKS","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":"BXQu6tuSYSLBU80FEytzk","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":"cZC5Rq_ORBlvSPjMh88Ov","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":"IHy3fiiDTDs9kgg-4K_WJ","name":"Trigger","brief":"","type":"ClassDoc","description":"

                          trigger an event when colliding with another object

                          ","params":[],"returns":[],"extends":["Renderable"],"implements":[],"members":[{"id":"U7-hR-TRyGY2msQALjmVI","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":"g3fNYldDDMhUEm8OEYwit","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":"5PM2k09xkkNRKHKS676ix","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":"h6D6fO-oyH0xIy6Z5GOV1","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":"meZqbNivVlPkLhyvqntEx","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":"qGPnr3HqOBYYCZnmvUmC_","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":"bBtweuC980bED852-pjTf","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":"XNeGJ2lDkxQghpgNwBvGX","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"4y3zq_vsttWOujigrR8ur","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9O1E_0vkCo8u_d1K_pnjN","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fRrqsS_5a7wBWcEbCRBHf","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"0qxG3vcnf4qN4M550dpwr","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oSTbErKw4r_54FmF51q13","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":"4fTsJESkmBgLt_XGwfw1X","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":"zDatb-HXhIzihYwAWLwqW","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1JqXS_U9XsrrKwgRKjhf2","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":"_QiAntwEj3uXQYFpIQ7u2","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":"JF5aK6oGl4YcVtPNvbFrg","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":"xaDP9xCG8q0T4UunIP0H3","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":"Bc60TUhOzAtIw8i3JrQQV","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":"OLgeqGStNxFVIcIO8aNIb","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":"-834x-DlkPdn-2s6KkNSX","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"gix4Bi_vKQ2hnniIv0u7p","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A1zv2i1zK5CfU1VnJhY0v","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":"1tUMMCRZtWLrGuxJSVNPz","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5h-EL25lGkBmI0To9DDRU","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":"SyzwCR3gBjeTI3ZocH8dY","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":"ONrw-LXwAvKDGBUQG7kwO","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":"RORFeoEN28sFtiJ0nEBsv","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CoeV4Q3nFx3UkHGlPDc1H","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-bK5B7DdFjlHlTCw_-CVs","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":"_rbQv16BWbpZd08rWElPW","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":"x8VW3KKFy3eqSucgnaTJ9","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

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

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dj4uefyOAeLBDGzXDnVwl","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":"JvF5SOVI7xkYWZMVDiBD3","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"OcJlgrqieg92owFLda01F","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":"841Gort3g1xyuvvqj8JRV","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":"qC3hl4oHDTZMiNDVDpn2e","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":"Kg2NWNUi_ZncqRM7JCcrC","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":"KYYAHsqeqQ0mdHcgl7p3B","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":"FkfN8895e75Djq6MGep0c","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":"_bwgLncGGHoyYgA3kjkm4","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":"R2OTTib99shIMYBmTFdPx","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":"1TjaE7ggtw1z41DG4J4ll","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":"cWIwKUQr6Ge5O7ZDnVEPi","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":"TjiJdhekRr8MWn3QRGRo5","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":"rVWJ1a8tWdEPdjuCWRzvw","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":"miEn900BJQZmcpvvZHVvC","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":"Z9oZaxski7CIpuj_PLKKG","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":"2x-OQhjinqXnYwnY1QJbc","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":"mPWNUYC_xZr5Z4D4Qbyjl","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":"vUUDFOO8Qao6vc-b_V5IL","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":"RYsNI5Th2W15jqcE0qReT","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":"NcivmorPsiYcBKludl1_r","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"tFggfIJs26ImisS0EGM5f","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wNxUKkEk16C4Aga73kyBq","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":"GIKmMirfWzLRk7qIhQNmk","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":"YpYH33riU8p00_ZzdxD4H","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":"utgWi56xzzqPGllQI2ZQt","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":"9y_31UZ6qmyr31CkItGyc","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":"cmldCbw-BwvuTczHcM0-M","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":"FSJgvLYpzy_ew27tVv3V_","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":"GXaq-_vVLreR3lxIygsqZ","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":"hFfhQQ-PGHVSG4lnI66R4","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":"tYhCwEi7_hbpHJI9MExez","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":"4pZ3SJvgECRaXibLFkSVJ","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":"rcywkcubA5Xnd1RSI-vM6","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":"kxWksvPoH7XXnpRmnUt1T","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":"mX9fhxWdED_tvTelyJT-R","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":"46wklgVbiaOW8mTba3nBf","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":"x15CXVf4Am_CFpbcci7zw","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":"hfC-4EpwBM3EY7mV7fIT4","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":"eELUizNcRHQfLwSy4oXmv","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":"4eeMcoF-tzPUCiij3PaXB","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":"wLPFsLDmH-XQaI2aY5Uk0","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":"NBolRe1xnAo62HdSBYeYA","name":"triggerEvent","brief":"","access":"protected","scope":"instance","type":"MethodDoc","description":"

                          trigger this event

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"223M8rIw_Tfdxcj72URYi","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":"HrGiD7uo-WEg0yzSMP3xZ","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":"MNlPqVhfTz3rbgzdzci3j","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":"7yygCqmMxDqAD-npYc-hB","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":"Lp42k7v6PA0nudLT623h9","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":"4ix6fhwf4YJZQXtheCD9x","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":"G4T9ujIlgZm7epOhfzwQ6","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":"obt_9Pw9Ys9NzQHXXR4Vm","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":"_cu_1IWSmBsYEhBDFKm27","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":"LI5YXpQDFeM0X4f59amPa","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":"eJDVtoO9xNC5F7ZqjmHaS","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":"3goGTKnAbkGPkGfdugRxo","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":"kMnVbss9ZqZx_glP7bKdP","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":"EUmeq3bQ4g2e2G6nD9cQF","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":"QweyIWRcLDjY4cMwJElbY","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":"2L1T_uGfhi9BgviwC6m8G","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":"-4_9pCSQrz5DmIIy7_nun","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":"HNDLXXCYsFA2mFfkRtMX5","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":"GzAH5VoB56D5b49AJOwrr","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":"lTPMvKuUvXD_00KssfkA7","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":"hkDtGPidSfOQ5dk3heO-k","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":"CI-f7iBGZo_JktmBuC3hM","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":"sXDRFe-WHqz_fgVOuB5WT","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":"isKsQNqk2jnO3ai5vQR0t","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":"yaYsq_TjPQVIUtftjR9Em","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":"iyVjTJst5NLGGpjZzMYOO","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":"nVLL7JdWE6pwliu4_K4j5","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":"QxcBEAy1JJd2VdSJ-sIlx","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":"T103Wbc9S4JmRTKr8vDqN","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3GV-5xlrFdw1qoxu-rIvV","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"B1GEA7s4TvqCA0Tkx_R4M","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6jsiw2flQYckggEdB0TFn","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":"X7dyD-lJtayw4QtDnos6p","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iAh79OvQzgviCb-m-yeV0","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2hnqqKpGniB1eOb1zm1MQ","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":"FtZiZDd7Ta7n9Lfp2AtL1","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":"j_9AyCDRluK5U9mSdwBWX","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":"fP1jn2uvs-mHS05SOcXM0","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oYQfTYqe0lQPiZCxWxLl5","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                          Tap and hold threshold timeout in ms

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"dKhxmOA8gnUJzuseaoIeq","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          true if the pointer is over the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VdRu3zT1c7Z79l1Ozui4o","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":"3HGl7s8y-wCXRei3LrhNg","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fl0SZfQqq9GHFR_aSjgzX","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":"kwcCUgszeEa_Jz4A5X0vo","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5YAsaZTokkGZC8XlIEsfw","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":"ZH43i8lAbtoZQBP4OBNE8","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":"JwVImFk4JagAlcqd7oaY2","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":"8yCG4TcH1QU-9FdeOBvCN","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be tap and hold

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"sDSCbTG0a1Ka0C0KTzzX9","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":"X7YLW3GDwdG16ZWFEE7Vs","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"w0dLzC0egcT3vtq-wYGeM","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Xmtr1LpU5dokhlnhVwBpt","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":"gVzBgDs_B28rFZDBsv8Ed","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"48WiUabsuM3V4KaYp_wV7","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":"I4NU0-YeAdrM3x14DXBZv","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":"S7a8dGYLf-p549mpAwux-","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":"wqGS6_Wb4hsTR6psbvZZM","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"U-XQabtcjZqXEr0sCv-n8","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":"UddyK98FtTbw9CFi2rK-s","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qtKSMh19IMOBgv6Mfm9iO","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          whether the container is the root of the scene

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"A_u0PhhOlxJouosA4G6VS","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":"pB_LZCC4dPT1g9IxxeVnP","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":"72wv8aSBod_eNMQOuXBCy","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":"fSTyTnWeEZ5XLgNCpV7U9","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VnR6rKpjVj-ysB5OvBihO","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nHqh1SvGFK1dTTWNk2I3T","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":"lUnwbAQ_PtVa38CJeLfid","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"o_46-ex8omea7SxSR6TRT","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":"WbcNPUXQYs8MxYq3duEI7","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":"AP8y5dPO4AzrEotNmyBPn","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":"3zqHZR0w8BIS8y72rI3Mv","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":"w_B4Z8NI_-aevQScDx-6x","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":"m_MhgoS9zueALLVFeZClm","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":"048JqLfxZQWdndTh1YFgm","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":"4kvMdpa-n1M_sAMO5-k9n","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":"zX191ga8v4nTVHTju135o","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":"_PaNAYTHwZa3EVEZNk_Zo","name":"draw","brief":"","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":"bgwyOAPHmoqcirWqLZwfH","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":"jDwI0W5h-tarlX-xRo0rH","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":"-n0M7I_eMvQnqcjTGzlVX","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":"7dJogloEFe9p8c4yEut3k","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":"d6mVH9TNvjlM25QD7qONW","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":"1KtgGw8n6cJqYD2FO4ly_","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":"EJl4Dloqkiu3aJnpuc48G","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":"puFmiwurcchaiSjSUF58O","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":"mEJCX7XzfA-R0ljfr7kYe","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":"vXdHGwUvHebHHxBOwty2Z","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":"dTXOjZSPi14VpdQYTEw7t","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":"eOSIwKMpHtsy9CSu3kNny","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":"nitFZ37rMab7mZp3TafE4","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":"bT1c6xOaPvQJF6hYztlAL","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":"_p6mXX3wIuf3_DluWCFyt","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":"-075FN2OyN-pdXbi2C_72","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":"HG3C0wjrnBeqJN6oWmB0W","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":"SM34kJ0PMp73muCKHgWMg","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":"oUQ-d7YfhJ6x83vrKZJYk","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":"MVMwsBwnUIUd0ZxO-xtRl","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":"-kOhOTfK-5DfQ9CmRjWWv","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":"LQeHKZBd5Q3ci3kMmtr-C","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":"lFFoUaFeiPPUoJUTbnu83","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":"1qJAbVO3B5fGtxFzyee43","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":"aeX7wIfGR-LPIa4ts_Eb4","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":"9ev7DEFfxrx9ZT8oOL-4i","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":"Qy6X4k7OgeXX11-EIAp_v","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":"4qKtThsDiB9khL5uvRY9U","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":"IXDaJhYW4LexHKv8jhTM-","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"TZ0sI9RFj31z3RX00CvUw","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"oT3wmaME5KvhGS_cyD_iJ","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":"xkAtG3F0uNXaClXR_bobg","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":"foDs8CNumcTrFhBJN2vPe","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":"zUhLwtonfEkayB-AnkWxZ","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":"BQgZ_7SgbilNKXOI-Dizv","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":"aCPbZJTN4qG2iQAi26m6R","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":"dfh0HoBQ43USgYBkgD1-Y","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":"o2b8-ei4MWKXXjCHyAMZL","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":"j8uqnZx6kJWqOt_7QdDLV","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":"ZcemgLFJs6EI5RaFWm7q4","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"5MnmDxxdZ1NH7Jg_amJni","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":"cwVzg-ZRZBGWFFMamzQ8y","name":"reset","brief":"

                          reset the container, removing all childrens, and reseting transforms.

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TfppjHXZhArKWG4hNPrzY","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":"FrQACFoy1JcNz9uE5ddRC","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":"WBGsRTxA67fmfwh7HMg9X","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":"Dl7VFR_K3hQRgNf6J1NmX","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":"khtDBQe4LtEJItgrEzdBj","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":"SzIvZEm49JAT3jveP7snH","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":"xu56EyFFTLufBxuWCtqBW","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":"7ysR5vp7Y4xOwZxgcYeUC","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":"1tw49A7kQNI85HaoScocT","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":"fNg8tAF4UYWM5dVsP-7GU","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":"p_inL86Xb0g08OrB0LVFE","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":"pWWn_cnhASswC-GMXEito","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":"HOx3_rkRnl-6R3ODvtVIy","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":"Pr-4myrpUBpEZzgKHZ1Za","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":"Gh6RKmW5IBgJR_Rf7tbQr","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":"TtePaaVAhtVUyVONoniWf","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":"JHbiVi-9od32yF3Uy2tEL","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":"So8mmOCkmPPckEsfuVb1i","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":"gTW4T15K12zkv4pAbXupt","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":"RF-liJkd4L32A7gKPXhv6","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":"7IM-JixlrAaAn4FmXl9K0","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":"kTlIcmmpvamDObeoGJ0U5","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":"OibyVxykcIsKYUM33wn3r","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":"vpF-WIjuYVaAJJU3HvwV9","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":"t0oRiuIqsp-YCVuwvDH9o","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":"4-78KjbYDZlLttE1hUT62","name":"animationpause","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"cl3uOMvfcj3_VohAx-eiw","name":"animationspeed","brief":"","defaultValue":"100","scope":"instance","type":"PropertyDoc","description":"

                          animation cycling speed (delay between frame in ms)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RgnxogrlT20x_Bem6RCzW","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":"WRdB0gHrY22NP9tjEicvU","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":"NnY59K-rU9WSgSvPJpWzq","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":"0IzVtfxSDK-SrrQ6sylPb","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"AMscGUXIPRBRh7MjbAVPC","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_1E4l_1RH36uilxXABphX","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"c7g_EfOf70saW6yCZvbne","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qn847ECmdGWeS2Ur9N2tq","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mCVMMc-mN-RLVV7HlZHYV","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":"yjkmvwm53nrEC5MpchkVx","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":"Zj4GUWN998D6b092lCY0S","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"L2zKv5x8-NfvCuDLjNAIn","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                          Tap and hold threshold timeout in ms

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F3BU72MGMsxa5VjlhMXr4","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          true if the pointer is over the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"m8GCFhQpyur8bVA6IqtMp","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":"gw6e0vQXyBjZAJVdZxfq0","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SRuOPvAFwtJPrV7fuaCIS","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":"yESJCpq4oL1JwfcpApuMx","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":"0LaUpvGuOVv9smMbTC_Wd","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":"qm2SyoQ_wtWHw6W2p91QK","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":"X3IpHIlVAEmdqBynSOAez","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be tap and hold

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_zRXHO5tst5vGUImVVfvG","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":"EyoUG0lvY1XTUCmEUU6oZ","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"23mfq2Dc3mzV_qC9_0oer","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":"LSZcsGW1NBEewTWBTrL00","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jbxuPZeDhThO77es-xGQI","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":"DOwutYIVglFIDSFxnVKS-","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"9sWz39Vjua0yxVKIgO1jc","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":"jdVSBK9ib0QF2-WSK72dl","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":"zMMnAPN_AwX2j5qq7gor_","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":"iYUAq4tfloml__QuoTB0e","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":"MTyx9mjBUjvNXoQnelYe5","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wiTwD_p2p14x4YTgZ7qdC","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"eANXOe3UQgcr-46HNvHhD","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":"PhCZnz16fCzsgeW7ADth7","name":"source","brief":"","defaultValue":"undefined","scope":"instance","type":"PropertyDoc","description":"

                          The source texture object this sprite object is using

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RA4_7-vDjU6BxVSDweyc-","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":"DyEFffaB-KaQzZh53F2wX","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

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

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"77TGooL8mSoPDp4QR-q4b","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":"-lGLNDKiTJUP3bFN4Vvft","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S8T6cSHWyU7wfFHkjiJfL","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":"cwGR53unNcq-VY3Z4obPZ","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":"bJ6XB-nSHAHG5IrW9cNxk","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":"HBlYiPQWoZ6KnvuXUrfxQ","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":"aIr7mq31zmxBp_3YZfGEy","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":"IMcKhewrshZmcFeiWS2Lj","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":"yDiTWK-7zE9xSwx0ObuKA","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":"bHLpO-q6pK7a8iUFCU69V","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":"FPwWyEV3A5ut45W9fRSE1","name":"draw","brief":"","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":"s9OZvhSn2KBKUtREGEhNY","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":"--bWwgKuyI1pQHaUX5r8M","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":"iFI4TDDUQjAsf4dL4fw8v","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":"ujTZb2PI74a6YzRkhtFCd","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":"u6VUnveuipOoZkXaeVjAJ","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":"YZNz4NVQwX_VrXw5Jhiyv","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":"m_gppBYsM2zV63VcodJfK","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":"_yVGXAGc2jGPtO_Qnp98v","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":"ybMyufNbPnzo9Tok8bPe7","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":"Ecx5PmNGXGCbcMii6M3FT","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":"ovBxSZqnwtm2RwdNcYgW6","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":"6isqgXk0Sf8E5uxVJUTY-","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":"F1GBAV_8KJPcXuONLBYe6","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":"XFZGEwig5QjQpDHA9wAOX","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":"9klcl_HAnVUkbdgdBYoT4","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":"9iFSvX1MtyJ50_4fgT8mC","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"kQ_e3hoSp-8GaUBwnyRi6","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hlh-0YmfYxJrh39SFBmBF","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":"HlIHoMeFL02t8zyMPdEEn","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":"cubFGfn5puPJPBrgN4jGj","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":"Wyly06JmVUQAa-aeBS8DI","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":"FHCvczIu0h2qeoNaVZmuo","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":"TvCL3rrcQn0EdSj4CbK59","name":"pause","brief":"

                          play or resume the current animation or video

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"MA0_HTcY6MCEIFVQwSoP5","name":"play","brief":"

                          play or resume the current animation or video

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"56w5GjlP71Sgc3A1T7aj6","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":"wQppyd0KdudRwbXO0LPel","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":"Vc-NugyUjc760NFvq2SyK","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":"5K-s6gUfXSacUIdlqW7el","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":"bXrGlgJSCdEtiAEnI938g","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":"wToIaI5EbdfEhKOTwApyb","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":"mKydAE9auuQKsfNoOkJ0L","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":"uj7Mnxxy6Tt0Se75kE9BB","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":"jrsvKRlIj1gCSaGK3AEUY","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":"YFJ4CEH7BVIyVgNXKuf6L","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":"RsZ21Kaj3LbfDykQvTS89","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":"5Ov4MvOGRfhU1cpxvbX-0","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":"5-pjtBXwH90nYOvUnaPAJ","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":"QEiUFKe2g_2y7u8ZWQ2n2","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":"qnwWtTRLmPI46DeKQw8SX","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":"SIVxIz6hh6f2efxz8pyUe","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":"KHuuwwDhN_ZjC6KTDNHQI","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":"dFZikstCK7H_yp4A1TF8-","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":"jBj-uvAn97Gnn2n2t8Fjn","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":"Mmh3kDA8mcdp-XgRhCu7e","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":"reNrRbq7lH2BezIKhyelj","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":"gDq2jVFsOTSA2UDI4z1Ej","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":"h17tqlIMkL30ZEqArMALv","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":"Bu_80J7WsWw1UAH_t3ogs","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":"BMcbIeE3b_TPIV0JGko4L","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":"Pz144VYK0eJL-tKUarjf_","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":"jHBriXTknyABrtlQvoJ54","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":"gnA49AU4c2vGF78ZAh85v","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":"QM5vZzMYM3qa4le517dGW","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":"80yAaKCXfA7oMxw7e1fRb","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":"J3GhyP-MRkYxaJMZjZ8-a","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":"JxMuyx4KZ-fLzuqGNhuHP","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":"qpscHDGfA1RidOJSBmuWb","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":"9I6bVGNHa9jVrozixZsvI","name":"bindKey","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The key to bind the action to

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"1uWwdai4gQpOM1X90Rnf4","name":"bitmapText","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the bitmapText used by the UITextButton class

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"I98G5YFkCOeWcGC3gOGsP","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":"z4itK39Oscgr9cBcfpOto","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":"iX-7-Ielv57TFtZOfwA9-","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":"YovtmgAt3JTrT9qp22Vhv","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          bottom coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KQBoxhazs5m3yUBfkJO1R","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the horizontal axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"56SXCuohl4gZM__osr2VS","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          absolute center of this rectangle on the vertical axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"VyX0r6Cqmc8Py_Yzgywx9","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":"GFzdVDVjQcWiaJWeyMoWg","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the renderable default transformation matrix

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"TzW530AJZhkJ_-lJmynMM","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the depth of this renderable on the z axis

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kDLrItC-_6OKktN8WSJOJ","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":"gEk1-5np4q-71cBlAfgw7","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":"hXb_wff2DWBibzI1IwMLd","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":"mYrEa1WX52YzEhsg6BIAM","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          height of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ue3KV8pfhCqMI3OJQu-t_","name":"holdThreshold","brief":"","defaultValue":"250","scope":"instance","type":"PropertyDoc","description":"

                          Tap and hold threshold timeout in ms

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"vysy9kk3JPBuAN8w_cdVK","name":"hover","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          true if the pointer is over the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"QKtYX_y2ifJ0358FbQB-5","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":"6Rtp6CyZhc7thlIVHXZQk","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":"C8bE3CBSNBZn7lLYT1-ba","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":"2DhKDqzPK5cZRm6YjCu19","name":"isClickable","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kSyaT6BiOvLuN3v9wp4Q_","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":"bE6jEacw78aD8jquP2aHB","name":"isDraggable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be clicked or not

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"S7I4b7uc-SYWuzEkgyWs1","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":"qlEZJokqYerFkCPf1maOE","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":"NUIoo_yEoM1hR6gMIn_Jh","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":"zA_7ArHs_HSoxL5veRZGT","name":"isHoldable","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          object can be tap and hold

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-GM-gvrdGsn2OFqaAHXSz","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":"fdCkx7SKHZNeARpKQAhG5","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          make the renderable object persistent over level changes

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tFMwioinIKfN-s3SMV4Vu","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          left coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"bgH6kT4b1YTFrHZNUssp5","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":"1iGs7UYF_tch0toq6TFGJ","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                          The name of the renderable

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"d56Wuf6f_7JifewN3hhUH","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":"j8j2W6CfgEohryezekWCq","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":"WywIqW_vAa3-JUCZi-Jez","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":"oIt55X1j6cmEZcmHfnjOe","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          Position of the Renderable relative to its parent container

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mw0P5pkVFqZyrtlEuTRrL","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":"wlLv5VCVQD2QZYNFQ1a4l","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          right coordinate of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"e1HwYJyCd1-Ul2T2GbDvq","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                          whether the container is the root of the scene

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"zZXaG-aevxZTz2wm7htme","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":"Nf9kMafj6h0AaElj87kM-","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":"JwHM4n9y5h33wJmpUDSaV","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":"ruPnfKH4IMruOpSVxSTuh","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":"LMv-yxQ6zSw1HZcjfB0Pf","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":"4DyRX69U1mXiFI4G3WTkd","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          top coordinate of the Rectangle

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

                          the shape type (used internally)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LrRhnWtYpyI29hdKVCkXp","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":"LHWcqmac2vGsFxiOczPnP","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          width of the Rectangle

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"nnd6q_2Z3Dc-GkbG7JaUh","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":"YfxIO2Tyi_so_5RqoxPBw","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":"f-MOBLgWe9jh9srqmqFqi","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":"T8EbT3s86x9nVQnE4Xb6q","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":"3ip-fKLETPzkaKspmYji9","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":"OVYKUtiBBkIDlcVjZk0t4","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":"DweZa6rkm2OXYrsnk5oSq","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":"ZghzXuVS3WXiAZiZNPll-","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":"cJSvoGFsXVDJS3zOdZcQL","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":"zjiOW8Sz0KoWGZjmPOlVV","name":"draw","brief":"","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":"4GjWyolFZ0Ec51aIqFaF_","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":"CcPgBiUcR8EleRxqjsxjV","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":"MwzCdFbkzJBlsALpY4e9A","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":"MRTWuIOi8Euxn4IW2xG3Z","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":"qVF77J7I2gz_5mjenVLxh","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":"l5kmmQO_7Wmd82appwTJ1","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":"MfJy2X7yso8KYCrOXOYe2","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":"q0EjCbivlZSjCSxDO16jj","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":"8Jgsn8aza_tfi4JPWSwov","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":"MzywBUTHA5u9CgK3v9Fzl","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":"5L9wCeyklrx8W7NWJZ4yc","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":"6ZLICCq_syn0q5JubE4rm","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":"IDZ7Hi7zxLvSVUtRR9Cra","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":"XbGHpVQNIetOC4msWij-g","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":"WKYjR6o-8RrJOplxiTyKN","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":"vuR-QldnAdho1sPC3PzTG","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":"JC6O3sLNU_qc6wOG1yawW","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":"3A_A8omyGIUbaarv38iGU","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":"CCCr6ou0jDA6s_xJeSh0V","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":"GhuoCdBNhSNoxJQAeqsSf","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":"ck0eBVwlk8Qi3Dn5qNPYI","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":"EuRj7L6jl8oKfJ154T8nZ","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":"iNAvFZ-d_oftfKfMV_mwE","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":"ZxaTKt1MuaqOAOdEd29uu","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":"z75493sgqgXGf7EQu6t3U","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":"Aqphm22Iy9BlsRXVSvrvi","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":"_22fjIoTvdTwhYuXVojKl","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":"sX1j1pDArpe4sVJrc4hvH","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":"aaK4aamet_mganmbaLGBT","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"Ph3DpPJFdYEKbupNIJJun","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                          OnDestroy Notification function
                          \nCalled by engine before deleting the object

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"hbiE5S8yhOQdq7QGs0tfB","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":"WalqSGbl3G6IKhfamB_7H","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":"kg-LcFqH5Eu24yvnrUdP-","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":"Z7JGYvaBTv8N_WlgCsfIJ","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":"Y18KyZLWngXXZFmIgstq0","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":"iShq7dRRlx7-6FH4Y8h3O","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":"Bso1OmLQE7bRoqS6ULiVK","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":"5NOX6uSxMM3wlXOCfncjx","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":"Tnt782qx5FtgdXIVWCLbF","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":"cpu0mZIuwEKuoeGAxpQvq","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"2KL20gCV3Scbf_Zokj-01","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":"-5ZbZ2mV25jVRkl15Nzfj","name":"reset","brief":"

                          reset the container, removing all childrens, and reseting transforms.

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Zjw0tVtTxyIKUjWedwDfe","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":"0DJVyyoQ6b9TCDdSP-S-5","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":"f0DfVHSxJCEuA00JyK28P","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":"Q59QEi7Eb3CdihOq5Vglx","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":"RTL4NY-PQgGeDWZh4Chfw","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":"4GhZhz0Y4v3LO4aWV4e7Z","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":"36OsjwWApUx-Kx1FI2yvV","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":"qCSgyg2ViKMeObuefw9QQ","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":"QYbMvHJy2NOfpiz69SON9","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":"2vZBtklQ47G6v-JAU3TBr","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":"NBVuy4F3j6Myr_s5HfrcG","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":"FCc7NdRK8uyOudoKJT1r8","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":"m8QQhU2NG8mEJYQTVffpk","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":"_bztBb5bBpEu1kD88sZwC","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":"TGuPLm2lT9gBGn8gmO0MN","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":"r9pbvsNVOXvthf_hMv1rX","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":"up8jc0WMrAiJ9HnriJsri","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":"MyW_5zYBneHjRLT9OVxMU","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":"QBT2jQcYiWUtn2kZMeZlW","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":"3KJ3d87Ez4Ux30Qn6_CdP","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":"uDO-m1kZA0wJNPKyluWZd","name":"Vector2d","brief":"","type":"ClassDoc","description":"

                          a generic 2D Vector Object

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"E9mWMX9bKTAfUgGDQmWdr","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          x value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SoW9YMrJRIHNJkw8UK98a","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          y value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wq9Es7fS_qFi4hKgEGaTD","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":"Wyp0SUjybJrx-NzE5JOI0","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":"CdcDlXavNYWvmmyr5TEUj","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":"qTIL3phAXrcrV7p5r5ybp","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":"W13fo_i24V6TQR7YuHpfZ","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":"BNQS5dm4mXamaCZF16tA9","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":"DljmA5XRqA4xHL9BYJZZJ","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":"viwp7PGnylZyxdR3FkB8k","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":"WBUgPAgERQlFGhZwtWLKg","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":"2u-hrtY5Zu-s6anf6jkxv","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":"BEqOWzBTOlFh0Ch_nkAW_","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":"6xt9lhQJvZoorD7V9flO3","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":"jdBjRVoDmthSQi3MMHfHQ","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":"gB2slllYxHeLzMgbRKw9m","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":"fPo01znYmjmgngjXxjQA4","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","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":[{"dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"PnZoaXf8_xAJCJFV-GcXn","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":"7KUkY1L8bo5FZkPW1MWKm","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":"jMn2N6Pb3NVeySo6KqR9T","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":"ckAb8JgexlmpQryfN6a9X","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":"sv2TPN-RPxeykvWz3ueM-","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":"GJjOCWHtxUfyUC5i8C8_7","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":"xNwtAnVuJNviyEyEVdbSy","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":"KFMrWruYqsZPKG4oSHrS9","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":"Dm1pa9VnQcVcq-knU75XJ","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":"oY5wNytCussHk0qgwDszf","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":"DpLb5JO7n0JcgFhQH20JH","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":"8knxylQkJirEOHhzNd6fa","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":"9mwYQYIhoC4Qpv1PT4Fda","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":"ujJ2LlOJjvSTjj9Rvco-J","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":"YicnPar8TTeaMgHakpIPq","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","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":"gSumXKryN9-ZVmY4Piimt","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":"UFBX1Kh4TKoBE422mjSP5","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":"DWP2nnomZOA_D1OXreZSl","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":"0eHdd_vo8mGIhHO4-Q9V7","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":"-hm5-NWRyDs8eC8_uviSG","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":"wZ-ts3PPI369WHncHNK0w","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":"nQClJZJAi2QDegCBTVOIT","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":"3GgP-ssG_yn5bKbXBfGYg","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":"fs9yp4NxoDD-nnEsUpokK","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":"hhL7yv-zYi0sH9oLaUPCo","name":"Vector3d","brief":"","type":"ClassDoc","description":"

                          a generic 3D Vector Object

                          ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"rlTls-EiwjrP3sd0zugyy","name":"x","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          x value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RbZYEMxs6VBtH7sURejaU","name":"y","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          y value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FyLyx-1B4w01huJacifxY","name":"z","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          z value of the vector

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"WwE9xA-tIteHmlbts9LK7","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":"xGwRbWgVH706GP58srJNq","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":"MWZkQtbqrI12yUrl2JyhP","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":"6HdkNJ87AHHzuayu1E4GI","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":"gLG15-gbwiAmUl2EgpsyA","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":"eEkenVfEj_HAXsED4SBJw","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":"vl4p77pljlmzaMkkpRVVf","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":"kV8ClN_70MFimXwLWsMIc","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":"2z0srGj1BfiB7Lkvhy_nL","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":"kX31l3tbnqYiBtFvFgPIs","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":"kaMG5pMVCSyjF_tkeqBxP","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":"n_okTTd34QU4dhDFXfrK_","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":"_0x7axc_szWFCHJtUJCHm","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":"xXoaX-8VvlVSyqCWb8YCr","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":"iMqtr1EB_PRvn19pd7w-8","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 | Vector3d","kind":"canonical"},{"value":"number","kind":"canonical"},{"value":"Vector2d","kind":"link"},{"value":"Vector3d","kind":"link"}],"template":"%1 | %2 | %3"}},{"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":[{"description":"

                          true if both vectros are equals

                          ","dataType":{"tokens":[{"value":"boolean","kind":"canonical"}],"template":"boolean"}}],"extends":[],"implements":[]},{"id":"xk5JuydVylzaD2PUU-EzK","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":"Pn8e3oDFGlKRySzXVczGE","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":"gMm1pBZVAqkpmjk_CDX4X","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":"AQCIHehGOz9466NQuyXwS","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":"N0zKE6Kj7-xqG8XM9zvP6","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":"c1MNOGn1wFscbqqbjfMws","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":"_zAahzdpYc-Ud5lOnD_Su","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":"TMKPW53iMvPxBc9uniWTb","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":"8TuOTtLkWnW0U88_bkCNr","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":"BhXxoIJezGrW5EwPci_fW","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":"wmS9Srx4ggRVrDTGeT76I","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":"i7I3FIffqYlyN69LQEtkZ","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":"gFVw-qopwGblRz_5sJ50J","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":"ZATFVDGwCbQ_9uJQqxsEG","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":"4X0QLu_U0-E5r2D6rqxCu","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","kind":"canonical"},{"value":"Vector2d","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":"7h1_T1Rt1sGAVKEhRbafT","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":"_o5F_vaP2TMaodnQAjsll","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":"cLI9a9UGWFuhNkmNw7p3s","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":"e7FfI-6zjCWsVNzekz3Fe","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":"OgmEq-DEAVCP6VqwUMH9x","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":"VdfXzMRJXE9SSBiEN68-J","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":"P_SasDMN03mWChcHCrUSu","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":"2kHQfasHVU6hJE1EdF1Dn","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":"9R8MIrjQkKJnJ3C1tGAr0","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":"Gfk7bTL6-g-J4pLcN3N6Q","name":"WebGLRenderer","brief":"","type":"ClassDoc","description":"

                          a WebGL renderer object

                          ","params":[],"returns":[],"extends":["Renderer"],"implements":[],"members":[{"id":"heQt_jbdFN_lL47FJ227Z","name":"compositors","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The list of active compositors

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CJbDuNYARPJSA4RKOWnRH","name":"currentCompositor","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The current compositor used by the renderer

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"JzI3xVCpZk1AmnjwexezY","name":"currentProgram","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          a reference to the current shader program used by the renderer

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yz9XoRA8pEbbi5di-R7Uc","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The current transformation matrix used for transformations on the overall scene

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"KNiMb8Lw02-Y583Un8U4R","name":"depthTest","brief":"","defaultValue":"\"sorting\"","scope":"instance","type":"PropertyDoc","description":"

                          the default method to sort object ("sorting", "z-buffer")

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Algp7BM24YVcx-jVcPDSb","name":"designRatio","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          the requested video size ratio

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5RXD-rFXDgJis7J-WWgrK","name":"gl","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The WebGL context

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"rTGl15FCeqkVzvt2pz82E","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":"2p9q85U4t_kPnsfuQ4jV4","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":"FiCQC0o5UbzRhZ9WnKeLY","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":"7ZAU3eDvwikKr8_OknAa4","name":"isContextValid","brief":"","defaultValue":"true","scope":"instance","type":"PropertyDoc","description":"

                          true if the current rendering context is valid

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"yPXCtgSJkh9hvm-DlesSy","name":"lineJoin","brief":"","defaultValue":"\"round\"","scope":"instance","type":"PropertyDoc","description":"

                          sets or returns the shape used to join two line segments where they meet.\nOut of the three possible values for this proper...","params":[],"returns":[],"extends":[],"implements":[]},{"id":"qYpxbbeHvu3rHbYiXrzBT","name":"lineWidth","brief":"","defaultValue":"1","scope":"instance","see":["WebGLRenderer#strokeLine","WebGLRenderer#strokePolygon","WebGLRenderer#strokeRect"],"type":"PropertyDoc","description":"

                          sets or returns the thickness of lines for shape drawing (limited to strokeLine, strokePolygon and strokeRect)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ZcziRWTuSsxE2FPkmeSGr","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":"4FmyiM6ZIRCmt5oO80v9B","name":"path2D","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The Path2D instance used by the renderer to draw primitives

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aiU24rNSuwWC-0l7J_eLN","name":"renderTarget","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          The renderer renderTarget

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"tA3SHWbziSkukkkkcIgGe","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":"vgaVJXSTooHgsjruTD-Bv","name":"settings","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                          The given constructor options

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"whstl5xaIcXILsb2VJDVH","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":"MlLXatAQDiDPpm71rTFcn","name":"vertexBuffer","brief":"","scope":"instance","type":"PropertyDoc","description":"

                          the vertex buffer used by this WebGL Renderer

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"iLk4s49Cx75ej1sIpoeeD","name":"WebGLVersion","brief":"","defaultValue":"1","scope":"instance","type":"PropertyDoc","description":"

                          The WebGL version used by this renderer (1 or 2)

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_V_oAAUYYeT6N8yw9Pv4s","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":"Dmzk4F8aLp_2rVN6xnetQ","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":"FeoWp2qCbklkDqz6_HjTD","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":"xN1oPpLtkvxMe5LJz5Wtu","name":"clear","brief":"

                          Clear the frame buffer

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6OkhJgKeFxCwvIDbNhtCl","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":"QvABFUKYvMcrJX44I1MmK","name":"clearMask","brief":"","scope":"instance","see":["WebGLRenderer#setMask"],"type":"MethodDoc","description":"

                          disable (remove) the rendering mask set through setMask.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"RaYvmKwCy3PV1kjwrmagw","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":"FKiAZSOx4gGSci12432iM","name":"clearTint","brief":"","scope":"instance","see":["Renderer#setTint"],"type":"MethodDoc","description":"

                          clear the rendering tint set through setTint.

                          ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Aj_Rrr1qIyQSPHgBS2645","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":"VddFLoNsY8DFsJKzslsJG","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":"MhAwuKiSqy_KC3vP2XiDB","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":"G3JNNokRErm-n_5kqP6N9","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":"_Kufbk2yc7GMtJ50_PLbN","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":"eBSHPAUq5X6p-rbAo0GHi","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":"446ci2aKcvqlbc8RCllD_","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":"yg7ZyeJ7fw1vHUqq63SBw","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":"jQSsr1ngAVEMxA8T7hM9T","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":"dzYQ0XzxFQev_uf8QUcQd","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":"9io43it0He0VD0N4ufZBB","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":"r0k5EVmOpvGGRbxmd0hcR","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":"BywLyE-k6j4Rr1qjqPjI3","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":"eT5H42jhUoeu7RurOMjOs","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":"mqGf5AriCmT7visrpI55D","name":"flush","brief":"

                          Flush the compositor to the frame buffer

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"W6gAHXS0YUdQekgJnh-ua","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":"jgPibjItnyJkA7oE8Sy2G","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":"dhR7tjqoSVjozuD38fitW","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":"GBSnp1AsnFRgtjurV9xuw","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":"04-o6o3jWOebzNGO3ZBFg","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":"vUa2h9TiKQpmEg2tZmgFO","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":"ZdIxU6LvbG0DQFfe9veBC","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":"98vpPYfgd1rW9ovv9G9rr","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":"QmiDbN6lw10TSz5KnU6DL","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":"uyLyBWqcFcql21OKXxrLy","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":"97dVF5uGyKnC9DTkifqsD","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":"3FOJV39JnasGvgmbOwfO2","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":"kH6lzS9pkVNdLHwuhp7nR","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":"l_zLVckMV94ZD5LGkqAVS","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":"xDQ0C2Y0FH5xyAkwkjOjM","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":"aLqJ6b4t_DWcW0zUaMpT_","name":"reset","brief":"

                          Reset context state

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"wKM_9-FEYfSRA2Teiagsz","name":"resetTransform","brief":"

                          Reset the gl transform to identity

                          ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CAbmgSWxYO6CVh6ZYkGC_","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":"eKLIyWWR9ESnq8Lrxi7My","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":"noErfv09nA9TvV3QDal0I","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":"MtYYphC7mwQisyxzyWS5S","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":"S8svCNhmGK8qImurccd6_","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":"M3_Pk8V5GUrEQGX82aV-b","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":"AMwsNyaNot6Cxfn77KVmC","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":"WorhRXT2JuYfwjAMwXvep","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":"13DWAD7OyZsLKtyKyedgl","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":"CgVV-wSUkn9rdoKYICG1d","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":"4c4uw825QkWjJahVZuIhR","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":"6dhgO5imDa5BCyA3opswB","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":"98kwjYJeEVLANQYUBtOwN","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":"_XJFsUyN-iwWdX3e6NYAI","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":"LvNEsYzn-cv9ty1wtpOW9","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":"_TOlk93nIwEjqni6fh-Rm","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":"4KodUWt_x2_hKnEHBe-tt","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":"x_zAOFpckGIR_H36KN6K-","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":"UsJTdJLityS4hizcH99d9","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":"cPPU_m1KOb9k18ERnqdGM","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":"Ufn6VDg48JPlF8LUjcag8","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":"4I0Ua4na2DCah5WPX0y-Z","name":"strokePolygon","brief":"","scope":"instance","type":"MethodDoc","description":"

                            Stroke a 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":"2bviXEWaFiZHPGjb9nmrH","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":"x7ck0pHFDqj1O9FTcqvkD","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":"yG6qbeTmBFWJKEY0UVwnD","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":"65DyfF1Yr_hsy83vzckd5","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":"j2f0EKzod-ompbnAYykpD","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":"hxz9lnEW_1qOjzdXK3W2o","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":"VsHb-eZr3FFWlc990r3EQ","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":"9VTR46ApGIQtN4LaFfxXn","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":"iuGnHuTTBo114ZJhcn0ch","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":"HrDwnM8f-07PvJc5njOP1","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":"w3tw-lggZayfQBUzNYc8G","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":"28xVxcaiAWu7dOXuBAVN3","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":"i5I6nhxe9aywMmdzYJiFH","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":"QFcsxgu8Oad58zR8zS1DJ","name":"app","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the application (game) this physic world belong to

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ATSQGym0GMmU30CwgKovy","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":"4GUfHgfHh42sO1D0d5A3z","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":"Qg7YOA-oW74DWqmW4ZF1L","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":"Tl6GD-s-0CPw2V563p9AO","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":"eCjTzpGY4XXIcXxJBdPHF","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":"Fb0YF4vg-3b5zxPMg3OeN","name":"bodies","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the active physic bodies in this simulation

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_C-kr_16rJUsJK0OpWyhz","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":"QU15iMLvRQXGKU2AIATYe","name":"bottom","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            bottom coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"fnmeoyuhXGJo9vLFBXJI6","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":"Ko4tfaIbMPGlUz-aBnSBk","name":"centerX","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the horizontal axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"H3nBoJiQZWHRmMgDjMA3r","name":"centerY","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            absolute center of this rectangle on the vertical axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"GMVWDV2JZKX1Fe8yUmA7W","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":"B5wuN20lO4IfeI90TXSxK","name":"currentTransform","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the renderable default transformation matrix

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"uQ5LLw5pa4C84iQM1qmsY","name":"depth","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the depth of this renderable on the z axis

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"5CTMCS_NB-eAoo25RLtap","name":"detector","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            the collision detector instance used by this world instance

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"3lfcp_nU5IEDOjQzK_4pN","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":"zFY2A_hOkum3KcbD9MmLW","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":"054vr7UG5cAKsi52fj6UP","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":"JnusSiGTVMRr57KJxsCK3","name":"gravity","brief":"","defaultValue":"<0,0.98>","scope":"instance","type":"PropertyDoc","description":"

                            world gravity

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"BkKk8nQrJxDGRNxEOBz_j","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":"Mv9XE6_0Y1clqtPO11BvY","name":"height","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            height of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"UNyHky7qHSq5ZAGhAeIWw","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":"QpbyTOwVANMZsFNNvC-94","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":"ltHsNeiJBTg-QfIZTihfF","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":"sewXbc41jJatEXIeCUbat","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":"Q3nQdE7q7GIdmKyKGFHEz","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":"mtEBajHpbjf_y2K1pSa1p","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":"KjRPlz5fiDPbC8AVybyvl","name":"isPersistent","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            make the renderable object persistent over level changes

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"2Y0rna2XfQDaapH_cWizi","name":"left","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            left coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"CyxSmOuaekjp1HBLFQt3u","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":"HOAGC0Shm6i642IQ10L0m","name":"name","brief":"","defaultValue":"\"\"","scope":"instance","type":"PropertyDoc","description":"

                            The name of the renderable

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LLmR40OmVFzM7b-kvShSq","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":"Of-zTFyt_Gb7u9SiqEWbq","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":"4N6V9_v5lkwLK6NZYl-a0","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":"TveTObCr88QLUgt1tCgY1","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":"RxcKqFr8iGQIKw8j-4dy0","name":"pos","brief":"","access":"public","scope":"instance","type":"PropertyDoc","description":"

                            Position of the Renderable relative to its parent container

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"-4ZaSKqjpPZCe3UVSQT-l","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":"oJs0ChILqf2xU08aX3Xv1","name":"right","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            right coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"LxB3O4l3YOXbZK49Gt6zF","name":"root","brief":"","defaultValue":"false","scope":"instance","type":"PropertyDoc","description":"

                            whether the container is the root of the scene

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"F-Jm3A-bp8kfc54_J63G9","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":"WjPszLiDFyx42cpamc8j5","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":"d6w9bJjfRMxesZ11Al9Fk","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":"oMViU8wLWRzte6eIZLq1G","name":"top","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            top coordinate of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"26h_3D9tNkwigndHIA1uu","name":"type","brief":"","defaultValue":"\"Rectangle\"","scope":"instance","type":"PropertyDoc","description":"

                            the shape type (used internally)

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"mxtgz-sWSdPKJNVs7JL1A","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":"y_FE0JTNrwnXt_Sak_wYJ","name":"width","brief":"","scope":"instance","type":"PropertyDoc","description":"

                            width of the Rectangle

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Bgnkt6nvcwLKyQpalaWAy","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":"N1iGt3UQ1BdyiggdJ3hSJ","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":"Th4b3erlPyeO-WdBlOHqb","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":"J5MjEEuuqX-AxDDDdVPv1","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":"V3OZzJptwAGb0BieYlpWH","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":"uRwShwkgIBkj5Xa85ugjm","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":"XMLx_OxW8w2Qjhst9coDx","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":"-ET4HPWbMqTtKkOSfJoMT","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":"dTcOIYgyxAgwlaoLX6YKV","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":"6qFEtl4vjIyOJUxSfJr2M","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":"q5RA7w3uJJWWCCemrwCfr","name":"draw","brief":"","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":"Ho4h7IujrZf4eDvkeOs-b","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":"ZBq4c56Dn6Nzwwvc9qCYl","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":"6gklCqFWkv50YdaFQDI8P","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":"UpIaxOf-AC4IAnMlANeNX","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":"Evhcb6l9rGlY4uaJiXtKU","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":"8-Wtq-b39hcthntzqbJNr","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":"lZ9ReUMWAylz2-_gj9Cn7","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":"E04_sEaDXHGpLj63zu2Dw","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":"4PpUt3zLa9lmC91mFEbZG","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":"JgYOFkeFm9RAyfu7cr7hs","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":"sgt14q3cyzf9Y_o72b66o","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":"Exny3IsWYF5Q8M1rvk8hR","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":"52gvpgw1k7JaFeKh1dGIO","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":"JrkhB7Ooag1dQcoR9xpL1","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":"_oZ9FsLByBbhPf0muL7sL","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":"k9w3kCYhoU1jydxoocba7","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":"LaWdFseNcbpgRiDkUS0cU","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":"gqJ3giCPGdJEdXwNAl4Uv","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":"zuP349m-UTUBnqVlU2XTp","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":"KO1ykgc0wLAxc5EerF7a5","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":"8umZHhsdzRa5JThxe2kzg","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":"VRq-tWwWzu9zFuxgZJTPl","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":"C9T0IELmJI_-jtp7TbDj0","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":"ATCvY2dlI2AZ1HX8pnuIb","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":"x1uiMN4vcQEavApYFD0-Y","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":"9MSK8N_zS4tkpDEei0YUr","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":"0JD9wt77vZIn5Xeq8Xz7Y","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":"oMla9JG6uEOVJzbeKPbBG","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","kind":"canonical"},{"value":"Renderable","kind":"link"}],"template":"%1"}}],"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":"nsMjHI2SkF-erHwEQQ7GU","name":"onDestroyEvent","brief":"","scope":"instance","type":"MethodDoc","description":"

                            OnDestroy Notification function
                            \nCalled by engine before deleting the object

                            ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Vb1GwGFpnW3gpFhlbwRDE","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":"sky0-PCGtRDEHD9P5zB9k","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":"-B9qdnwBshtrx4WpG5-Wb","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":"Cu1YrKgz_nV-Xr90hVn-c","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":"onG1aKb9kxfgnnUkqA7SX","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":"j_bz9pwJRxI_ORv-cw5bo","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":"Renderable | Sprite | Collectable | Trigger | Draggable | DropTarget | NineSliceSprite | ImageLayer | ColorLayer | Light2d | UIBaseElement | UISpriteElement | UITextButton | Text | BitmapText","kind":"canonical"},{"value":"Renderable","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"}},{"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":"NlzLG0kWLeCA9JZ342fyC","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":"3OYYHOMz6oK7cdAizagiQ","name":"reset","brief":"

                            reset the game world

                            ","scope":"instance","type":"MethodDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"6JEVZ3i5ec4WSPU62CD2d","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":"9wCZoNPcZlYuGfNbXWqIH","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":"Xw6YaKesOyQrgu7uipdiR","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":"oaaovnelnCjRsZDtdwvm3","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":"05SPCZOEPrndS09hROqPI","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":"P_KRV6ksRAeC6tTTQh5-O","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":"Huw8K4gTQeOoheBFrB9-M","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":"H3NNuaP4omcl2eZkzeG9T","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":"NDzuW-IBFzdpomQYduWlN","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":"VqzyRKDTHdcIA9MuvACjM","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":"K-zVwLTHyF9Xmkqf6ARcz","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":"WdQUnT6FuDaDPV6w_JxOv","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":"pZiEJ9viK05zSBVi9JnqX","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":"A0YRTJszo1dbHEPuYc8_F","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":"8CNCtpUKebH7kFdOnZhbc","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":"SNtD_gOL7Ej_7vWJXn6UA","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":"JC7WxuGEvl_Dg53vzcxSq","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":"t70Up3VccTpGDeDq2MLtG","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":"pNIZUTQSJIPPlPfKCArbB","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":"cQzz3RS64s3oYzn8JitKZ","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":"lA0zFL6QqJn-UNG989LsQ","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":"jMDsrdc4Ik8GkIUBa9TEG","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":"neBGcPrEd4q_S5Nr4QO9z","name":"ApplicationSettings","brief":"","readonly":true,"type":"TypedefDoc","description":"

                            Application & Renderer Settings definition.

                            ","params":[],"returns":[],"extends":[],"implements":[],"members":[{"id":"lt285UOQ4JNl0v9RHZxL0","name":"antiAlias","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                            whether to enable or not video scaling interpolation

                            "},{"id":"cf2VDCvolvsZwSTepQj26","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":"XeCavsrmHNbMhxiWNcHSI","name":"compositor","brief":"","access":"public","scope":"static","type":"PropertyDoc","description":"

                            a custom compositor class (WebGL only)

                            "},{"id":"tI6NMZAlCyli85QTGt-LV","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":"lsAA8a2R8R4HrTVgMPV5_","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":"r3QLIo72SIR0buvqGAFm3","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":"VpY_DJiLGe6-HI_OIP401","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":"-Ska9y3p2RApHqHOS5MBR","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":"Ml2GQc_R6e6AlXj3hFznH","name":"preferWebGL1","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                            if true the renderer will only use WebGL 1

                            "},{"id":"mZKsxLMnlsT4SbHMpIUyq","name":"renderer","brief":"","access":"public","defaultValue":"AUTO","scope":"static","type":"PropertyDoc","description":"

                            renderer to use (CANVAS, WEBGL, AUTO), or a custom renderer class

                            "},{"id":"79UBmEr2DehvoQGSLRpRe","name":"scale","brief":"","access":"public","defaultValue":"1.0","scope":"static","type":"PropertyDoc","description":"

                            enable scaling of the canvas ('auto' for automatic scaling)

                            "},{"id":"Gmu6BP9AQLnVJKXskwY7D","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":"u03zESdeaERCUiCkvOnbI","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":"-aoNMYFxC-joYSm7sbIa6","name":"transparent","brief":"","access":"public","defaultValue":"false","scope":"static","type":"PropertyDoc","description":"

                              whether to allow transparent pixels in the front buffer (screen).

                              "},{"id":"ptNgk7EiqAQ-mdAvdw2GI","name":"zoomX","brief":"","access":"public","defaultValue":"width","scope":"static","type":"PropertyDoc","description":"

                              The actual width of the canvas with scaling applied

                              "},{"id":"yEsYL-vBDZ21cYm_3c_Nw","name":"zoomY","brief":"","access":"public","defaultValue":"height","scope":"static","type":"PropertyDoc","description":"

                              The actual height of the canvas with scaling applied

                              "}]},{"id":"obD2DjJuPays5_LqfNJ4y","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":"gL46jIdt23WWfMKcdLTyo","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":"qIPXiEFOUI7ACg2kvLms1","name":"version","brief":"","defaultValue":"\"__VERSION__\"","readonly":true,"scope":"static","type":"PropertyDoc","description":"

                              current melonJS version

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"ac6DgULo8WZz3pgdv44ft","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":"t3xudMaJ4_OLtsX0qqzwx","name":"defaultAttributes","brief":"","type":"PropertyDoc","description":"

                              additional import for TypeScript

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"pp2DacN1W0Kf1Er01EX-T","name":"dummyObj","brief":"","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"FxAdekLKUKz0r3Y-tG-BC","name":"failureLoadedAssets","brief":"

                              Assets uploaded with an error

                              ","readonly":true,"type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"kvxfMZaAGKFRFOuFb4TIC","name":"imgList","brief":"

                              where all preloaded content is cached

                              ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"Hm5hhHZCF8MlXICHKJBhL","name":"initialized","brief":"","defaultValue":"false","readonly":true,"type":"PropertyDoc","description":"

                              a flag indicating that melonJS is fully initialized

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"j4lRMuVd69Lo-5gpBQI0d","name":"MIN","brief":"","readonly":true,"type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"THZ-BzQZYm2XTvZSjVZQE","name":"parserInitialized","brief":"

                              keep track if parsers were registered

                              ","defaultValue":"false","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"_GxllU3g-DE7hGEvmRbaS","name":"parsers","brief":"

                              list of parser function for supported format type

                              ","type":"PropertyDoc","params":[],"returns":[],"extends":[],"implements":[]},{"id":"jxHezKApjLBqPobCMtFnB","name":"skipAutoInit","brief":"","defaultValue":"false","see":["boot"],"type":"PropertyDoc","description":"

                              disable melonJS auto-initialization

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"J54UtD8yo-Wfx8R_CsnEI","name":"supportedCompressedTextureFormats","brief":"","type":"PropertyDoc","description":"

                              additional import for TypeScript

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"SFjyao6qZrmok_to0vccb","name":"V_ARRAY","brief":"","type":"PropertyDoc","description":"

                              additional import for TypeScript

                              ","params":[],"returns":[],"extends":[],"implements":[]},{"id":"aRdVc-dnwzi8SMCcbQzPa","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":"Ga-_JIApVj21cvBBcPLiw","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":"vu7y33mkxNtEInFOkk6Km","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":"kEBkiGhmL4xz3eFgQK65Y","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":"qoMzQnMJC3B-7w1CCwlR2","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-t0gUlz1urR37cAftA91JB":{"uri":"/melonJS/docs/melonjs.html"},"W564kgKeFKZ2gl5J3mUvL":{"uri":"/melonJS/docs/melonjs/audio.html"},"t_Z_07jhHAqibe_qCqod2":{"uri":"/melonJS/docs/melonjs/audio.html#stopOnAudioError"},"yesAGUer6qCtT9NYC5WHJ":{"uri":"/melonJS/docs/melonjs/audio/disable.html"},"kRG3cNP84a3kGhGqjcAnd":{"uri":"/melonJS/docs/melonjs/audio/enable.html"},"oGTWEsGeDS76CR8gCvJhE":{"uri":"/melonJS/docs/melonjs/audio/fade.html"},"ubrVVYx1Qxv1QwsiwOO_5":{"uri":"/melonJS/docs/melonjs/audio/getCurrentTrack.html"},"MoQVsmL4IPTmK0zFsw_UC":{"uri":"/melonJS/docs/melonjs/audio/getVolume.html"},"DMTNNFbds3N0Y8vZbyeNo":{"uri":"/melonJS/docs/melonjs/audio/hasAudio.html"},"yItAGeKjqPyNDvf6OKmCI":{"uri":"/melonJS/docs/melonjs/audio/hasFormat.html"},"JQlhbPdNXf0wjsUKzwYUN":{"uri":"/melonJS/docs/melonjs/audio/init.html"},"MKwO1NDptvhOrYX5n-ISP":{"uri":"/melonJS/docs/melonjs/audio/load.html"},"SCKdiOYJxoeWFLUDXBbaN":{"uri":"/melonJS/docs/melonjs/audio/mute.html"},"Yg44HFGfRlvQ60MW9691K":{"uri":"/melonJS/docs/melonjs/audio/muteAll.html"},"nC229_ST-D_CmUxEqkbY3":{"uri":"/melonJS/docs/melonjs/audio/muted.html"},"xIvVtBe86BD7LS3SOKrVW":{"uri":"/melonJS/docs/melonjs/audio/orientation.html"},"hV2qNYGXa-2OOxSS_kMus":{"uri":"/melonJS/docs/melonjs/audio/panner.html"},"-tIdeBPLAcUIMbHX7daty":{"uri":"/melonJS/docs/melonjs/audio/pause.html"},"faNlCc7QCzdEdwd_oRcPk":{"uri":"/melonJS/docs/melonjs/audio/pauseTrack.html"},"BM3VSNGIQQP52tFamBthm":{"uri":"/melonJS/docs/melonjs/audio/play.html"},"zqAYQnG37o40Ajt8K1_fy":{"uri":"/melonJS/docs/melonjs/audio/playTrack.html"},"YIOGjF7FEzWihhkugi_PN":{"uri":"/melonJS/docs/melonjs/audio/position.html"},"zQe6yG1hR3UZB_6iStd0h":{"uri":"/melonJS/docs/melonjs/audio/rate.html"},"d75Fmq3MG6q-M8AQRqiRv":{"uri":"/melonJS/docs/melonjs/audio/resume.html"},"XHxib38HHJtFkrM_6pmzV":{"uri":"/melonJS/docs/melonjs/audio/resumeTrack.html"},"8rEqiMOVQYEhq_WiGMB_Q":{"uri":"/melonJS/docs/melonjs/audio/seek.html"},"L2elnmSBEJoqli35P_BO3":{"uri":"/melonJS/docs/melonjs/audio/setVolume.html"},"iuXEwvJv0VuWDRP9uYWa6":{"uri":"/melonJS/docs/melonjs/audio/stereo.html"},"47fuAZcZHAqyZfU3rwbKO":{"uri":"/melonJS/docs/melonjs/audio/stop.html"},"sHGmWzNxrbJayOCf8A_Cn":{"uri":"/melonJS/docs/melonjs/audio/stopTrack.html"},"JQppVhQ33iywrAb_VBXrx":{"uri":"/melonJS/docs/melonjs/audio/unload.html"},"nT6JJ0Vj1Jymyz5kS-vV4":{"uri":"/melonJS/docs/melonjs/audio/unloadAll.html"},"pb-XjlFRssQT9BMXE_9Ma":{"uri":"/melonJS/docs/melonjs/audio/unmute.html"},"hw3XZQTVWBYIVCmKT-r9d":{"uri":"/melonJS/docs/melonjs/audio/unmuteAll.html"},"jIW3XPgOT5oNTcIOpVxN1":{"uri":"/melonJS/docs/melonjs/collision.html"},"rBzWlQ_4PVhvBMSWLz-MF":{"uri":"/melonJS/docs/melonjs/collision/types.html"},"0YQMQ-yse1IMlRB4ukUal":{"uri":"/melonJS/docs/melonjs/collision/types.html#ACTION_OBJECT"},"TOAuYIJWkuAO2ouZv6nnQ":{"uri":"/melonJS/docs/melonjs/collision/types.html#ALL_OBJECT"},"ZtzEmzqq2Ybl_hkjf2w0B":{"uri":"/melonJS/docs/melonjs/collision/types.html#COLLECTABLE_OBJECT"},"3ToZh2WWPY5-IOEem2Z5u":{"uri":"/melonJS/docs/melonjs/collision/types.html#ENEMY_OBJECT"},"bE5uGx9WVU8IokAV3Wj88":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT"},"S_mKKuuiwNyeWLuWHzZvm":{"uri":"/melonJS/docs/melonjs/collision/types.html#NO_OBJECT_"},"M5IKMsFIq5W_8P9RqdlR6":{"uri":"/melonJS/docs/melonjs/collision/types.html#NPC_OBJECT"},"Qs4lam2ZqnXZPugg3qAzi":{"uri":"/melonJS/docs/melonjs/collision/types.html#PLAYER_OBJECT"},"wRqFhkKJv1hIuFBx8D2HC":{"uri":"/melonJS/docs/melonjs/collision/types.html#PROJECTILE_OBJECT"},"CvxRwuhWF8UKOQuYW6-_z":{"uri":"/melonJS/docs/melonjs/collision/types.html#USER"},"aOgla6jhtvpffe1TiIGB3":{"uri":"/melonJS/docs/melonjs/collision/types.html#WORLD_SHAPE"},"gixjLYjBIeefMkdiI4fYa":{"uri":"/melonJS/docs/melonjs/collision.html#maxChildren"},"_c1FIT6on8g5_fqPwExCo":{"uri":"/melonJS/docs/melonjs/collision.html#maxDepth"},"BsYvDw1JkSCLVsJ-ePiWo":{"uri":"/melonJS/docs/melonjs/collision.html#rayCast"},"UaYviXK4TsO0r6CA-_Puq":{"uri":"/melonJS/docs/melonjs/device.html"},"hDh52pZyA3vlfcu3giFfK":{"uri":"/melonJS/docs/melonjs/device/platform.html"},"rgGaz2yAcpWocANFp09MX":{"uri":"/melonJS/docs/melonjs/device/platform.html#android"},"pjM3hVlYp9yuyP-kbZKqK":{"uri":"/melonJS/docs/melonjs/device/platform.html#android2"},"1Eg-W79jR99mOuGCZbg6_":{"uri":"/melonJS/docs/melonjs/device/platform.html#BlackBerry"},"YP1W45UPk0oJ5v_RgssEq":{"uri":"/melonJS/docs/melonjs/device/platform.html#chromeOS"},"uHipzcjWuu3KnEm1Sr_Pb":{"uri":"/melonJS/docs/melonjs/device/platform.html#ejecta"},"cgKlb92PsXHBq24zssCHE":{"uri":"/melonJS/docs/melonjs/device/platform.html#iOS"},"rChXnjGKCSRjd6zx4drJ6":{"uri":"/melonJS/docs/melonjs/device/platform.html#isMobile"},"mrNN6NAr6BbUwO11gMQ0l":{"uri":"/melonJS/docs/melonjs/device/platform.html#isWeixin"},"3iyg2KWVONg_A7wZucByr":{"uri":"/melonJS/docs/melonjs/device/platform.html#Kindle"},"TS6wm18Vgqsx3YsEx4pSZ":{"uri":"/melonJS/docs/melonjs/device/platform.html#linux"},"xNT5VimFZX7IBjfS-YSOa":{"uri":"/melonJS/docs/melonjs/device/platform.html#nodeJS"},"Bb1E4FuqkoLLciOLu4yqq":{"uri":"/melonJS/docs/melonjs/device/platform.html#ua"},"vfzHEXeIaZEIHQrkp6KPD":{"uri":"/melonJS/docs/melonjs/device/platform.html#webApp"},"2uGbzhrBLsKhNriOErcrn":{"uri":"/melonJS/docs/melonjs/device/platform.html#wp"},"HL3QHo1aL3DbEOx94_PPa":{"uri":"/melonJS/docs/melonjs/device.html#accelerationX"},"HCEPO4zCOEsJMKu11vA5v":{"uri":"/melonJS/docs/melonjs/device.html#accelerationY"},"NSBW-8fLW8MXpUBY3ESQb":{"uri":"/melonJS/docs/melonjs/device.html#accelerationZ"},"b5bsJDbs5INeSq5gkBgNu":{"uri":"/melonJS/docs/melonjs/device.html#alpha"},"pOpEITTj7Mchy78SLOoX2":{"uri":"/melonJS/docs/melonjs/device.html#autoFocus"},"jhfaWcx4IeNDeYoyp7cS7":{"uri":"/melonJS/docs/melonjs/device.html#beta"},"t0gcpl27zcj7TlyLcgQYj":{"uri":"/melonJS/docs/melonjs/device.html#devicePixelRatio"},"38KEpVzy8zE3OrHu_-L7J":{"uri":"/melonJS/docs/melonjs/device.html#gamma"},"VjXxQwsPgwxdiZ6lVEjEL":{"uri":"/melonJS/docs/melonjs/device.html#hasAccelerometer"},"l55S0YZCjy8fTdSupg9li":{"uri":"/melonJS/docs/melonjs/device.html#hasDeviceOrientation"},"EvpQiEwHjV5M4_WrN1CDF":{"uri":"/melonJS/docs/melonjs/device.html#hasFullscreenSupport"},"dg5Tq1PbyhWXCDGonsy1M":{"uri":"/melonJS/docs/melonjs/device.html#hasHTML5Audio"},"ZWGV4f4D-X7s7H9fokEeJ":{"uri":"/melonJS/docs/melonjs/device.html#hasPointerLockSupport"},"VMMFe0ZQX2V6Z3HsOPlnv":{"uri":"/melonJS/docs/melonjs/device.html#hasVideo"},"21GGskiE339USCx5ewWtF":{"uri":"/melonJS/docs/melonjs/device.html#hasWebAudio"},"C9HjjBH6jR5Ap6oXsI5te":{"uri":"/melonJS/docs/melonjs/device.html#isMobile"},"zzYYsKbrP1Tw7P9W4lAF9":{"uri":"/melonJS/docs/melonjs/device.html#language"},"R_YJ4yWQvpzVJoKwEXDO9":{"uri":"/melonJS/docs/melonjs/device.html#localStorage"},"_sGXZO-K__vysamlBQiUC":{"uri":"/melonJS/docs/melonjs/device.html#maxTouchPoints"},"Mqhbiu6dkNFOD1-c1FbdK":{"uri":"/melonJS/docs/melonjs/device.html#nativeBase64"},"xBn3twqTVYZORAB00UMzp":{"uri":"/melonJS/docs/melonjs/device.html#offscreenCanvas"},"BN2W-DHmubOUR2st-OkgZ":{"uri":"/melonJS/docs/melonjs/device.html#pauseOnBlur"},"BTkB0j9jwKrwfsbFthxjG":{"uri":"/melonJS/docs/melonjs/device.html#platform"},"sQxhamq8gHtzlXOYH9sZM":{"uri":"/melonJS/docs/melonjs/device.html#pointerEvent"},"IGLHFMe1icWoyw-FEQYz-":{"uri":"/melonJS/docs/melonjs/device.html#resumeOnFocus"},"56kthN7rQf1ZU_HaWivnz":{"uri":"/melonJS/docs/melonjs/device.html#screenOrientation"},"pqUwQ2iSRdH1TAQICHOmL":{"uri":"/melonJS/docs/melonjs/device.html#sound"},"VfDoEHsa2XUREAEwLHbug":{"uri":"/melonJS/docs/melonjs/device.html#stopOnBlur"},"KrKdHFzOlp9IXyQ7cTyUS":{"uri":"/melonJS/docs/melonjs/device.html#touch"},"yhtwrMoZdvxM1LffSWpks":{"uri":"/melonJS/docs/melonjs/device.html#touchEvent"},"zd63dRvYoxh5Uxt9tkdQl":{"uri":"/melonJS/docs/melonjs/device.html#wheel"},"sRGAGPdR7xqN8U4yOzABm":{"uri":"/melonJS/docs/melonjs/device/enableSwipe.html"},"eyGBiIH-wUbVvbdt-vqrP":{"uri":"/melonJS/docs/melonjs/device/exitFullscreen.html"},"EHEJcdpMvcHtjsnIc08jF":{"uri":"/melonJS/docs/melonjs/device/focus.html"},"_I6v5d5lj6orCfz4iwOjW":{"uri":"/melonJS/docs/melonjs/device/getElement.html"},"FDMClwfaVHqNSWzgcWBz6":{"uri":"/melonJS/docs/melonjs/device/getElementBounds.html"},"i4XNu8lzaYfqxMh-NR7bC":{"uri":"/melonJS/docs/melonjs/device/getParentBounds.html"},"GYw4N2UkJwTD0vP7Ue4pO":{"uri":"/melonJS/docs/melonjs/device/getParentElement.html"},"HWajDvM3-u0REhPy_dxB2":{"uri":"/melonJS/docs/melonjs/device/getScreenOrientation.html"},"1-IMEUQKiKl-0ubCW5_rm":{"uri":"/melonJS/docs/melonjs/device/getStorage.html"},"Osfw-t4aCFuMiGm2CYldv":{"uri":"/melonJS/docs/melonjs/device/hasVideoFormat.html"},"SR6VobXfve68s-aWvacRM":{"uri":"/melonJS/docs/melonjs/device/isFullscreen.html"},"Hb4962xz5RssDNpXmwlkK":{"uri":"/melonJS/docs/melonjs/device/isLandscape.html"},"GwP54f4kAa3L-xrJzNsja":{"uri":"/melonJS/docs/melonjs/device/isPortrait.html"},"qaccAzpzOGfGa_ZaqKn6v":{"uri":"/melonJS/docs/melonjs/device/isWebGLSupported.html"},"C1lBbMZc2qGN4bq817pG4":{"uri":"/melonJS/docs/melonjs/device/lockOrientation.html"},"8xMVbIKGX1FVQx3NmSIVU":{"uri":"/melonJS/docs/melonjs/device/onReady.html"},"vIvnYZNQ3lQNV5aeiMpk-":{"uri":"/melonJS/docs/melonjs/device/requestFullscreen.html"},"RH51Ud-S1Dh0_q4AP1pXd":{"uri":"/melonJS/docs/melonjs/device/unlockOrientation.html"},"AvpsR3HQmX-IUBDmppO-x":{"uri":"/melonJS/docs/melonjs/device/unwatchAccelerometer.html"},"FrTdiQEozQ7Y6tzpRRnlc":{"uri":"/melonJS/docs/melonjs/device/unwatchDeviceOrientation.html"},"v0a2KAMO8F_SlzPVt9fAO":{"uri":"/melonJS/docs/melonjs/device/vibrate.html"},"Gq9obtUCCmxg01TcvBvP6":{"uri":"/melonJS/docs/melonjs/device/watchAccelerometer.html"},"NumzRTjr3yKhNEYFNjteP":{"uri":"/melonJS/docs/melonjs/device/watchDeviceOrientation.html"},"tswtqxZluugNa5owy5eLA":{"uri":"/melonJS/docs/melonjs/event.html"},"i34WzdC7sPhNRioT1gojM":{"uri":"/melonJS/docs/melonjs/event.html#BLUR"},"TvhamYkNXQUlMPAI_lJjx":{"uri":"/melonJS/docs/melonjs/event.html#BOOT"},"p-kY9z68WcBk5GmvEaFb1":{"uri":"/melonJS/docs/melonjs/event.html#CANVAS_ONRESIZE"},"c9O6tbIbfttCYNgakdKKq":{"uri":"/melonJS/docs/melonjs/event.html#DOM_READY"},"3C4KWU74ffUtrbFHwz_4l":{"uri":"/melonJS/docs/melonjs/event.html#DRAGEND"},"5Q-2CJU7VyxbFz120os3s":{"uri":"/melonJS/docs/melonjs/event.html#DRAGSTART"},"z_HHYdfBX7UIccoR6cKzt":{"uri":"/melonJS/docs/melonjs/event.html#FOCUS"},"NKpF0Yc8pNgkmHSLC92d8":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_DRAW"},"aKHaMiSucoiGRdg0grXFH":{"uri":"/melonJS/docs/melonjs/event.html#GAME_AFTER_UPDATE"},"2J5RxF7-GbUdIP-qnEEdn":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_DRAW"},"iA4_LDMhcvQaPoVB07Wi-":{"uri":"/melonJS/docs/melonjs/event.html#GAME_BEFORE_UPDATE"},"D4MKv8GA4kbL_fixPnd0r":{"uri":"/melonJS/docs/melonjs/event.html#GAME_INIT"},"-u0-s_u_QQk1l_oktj6nH":{"uri":"/melonJS/docs/melonjs/event.html#GAME_RESET"},"rFvcN2-pWtR0bo_c8Ea_L":{"uri":"/melonJS/docs/melonjs/event.html#GAME_UPDATE"},"9cPQgLpQD75aEIlkGH22O":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_CONNECTED"},"8i13A-8dbJBUBmmNTTKTj":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_DISCONNECTED"},"8GprmCOD7hAVFOdCI0q4r":{"uri":"/melonJS/docs/melonjs/event.html#GAMEPAD_UPDATE"},"9DnMLvVfhBcQsaCItJ-uJ":{"uri":"/melonJS/docs/melonjs/event.html#KEYDOWN"},"gOgRi3ur4Rvgvja0fBojv":{"uri":"/melonJS/docs/melonjs/event.html#KEYUP"},"tG1g6WzgvTQWJ2V_FraNU":{"uri":"/melonJS/docs/melonjs/event.html#LEVEL_LOADED"},"ctKxyxHkld-agGd8J51FD":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_COMPLETE"},"cDRPo5eotiHHiGmZY2AUe":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_ERROR"},"hQqukxNrPTuH9-zMqJKl_":{"uri":"/melonJS/docs/melonjs/event.html#LOADER_PROGRESS"},"-w5OLNH5IRcRie6zothaO":{"uri":"/melonJS/docs/melonjs/event.html#ONCONTEXT_RESTORED"},"Otnabknobb8llIPAYNuDC":{"uri":"/melonJS/docs/melonjs/event.html#POINTERLOCKCHANGE"},"fRYGv4d8Px8Q8o645dL1w":{"uri":"/melonJS/docs/melonjs/event.html#POINTERMOVE"},"wDn8LI938YttcFx9KHJDz":{"uri":"/melonJS/docs/melonjs/event.html#STAGE_RESET"},"9Jeyr7rCHTEYKmllTcPI2":{"uri":"/melonJS/docs/melonjs/event.html#STATE_CHANGE"},"QHL13mi-yzNzqAVqdP8kh":{"uri":"/melonJS/docs/melonjs/event.html#STATE_PAUSE"},"guiKQK67uAi-GKLNonL2C":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESTART"},"6ZsigUeRTpUyya0xBstQI":{"uri":"/melonJS/docs/melonjs/event.html#STATE_RESUME"},"7SEhrUKjZ8cgg0NyH1xPt":{"uri":"/melonJS/docs/melonjs/event.html#STATE_STOP"},"jVtKfc5diu-gy501qILpp":{"uri":"/melonJS/docs/melonjs/event.html#TICK"},"4QixDS-W_pX4kYRXZySvS":{"uri":"/melonJS/docs/melonjs/event.html#VIDEO_INIT"},"xIlOhZoKCRdJ3msREzItp":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONCHANGE"},"aaRhn6oXFSusDhH6rXsKA":{"uri":"/melonJS/docs/melonjs/event.html#VIEWPORT_ONRESIZE"},"bvTFwsnwvUc-x8QzKtjzO":{"uri":"/melonJS/docs/melonjs/event.html#WEBGL_ONCONTEXT_LOST"},"uTVG6B78YAQD3aRSxehLm":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONORIENTATION_CHANGE"},"daKz55sey1Jxl-igGT6Ng":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONRESIZE"},"KB4fWSyOayr-F7d5HhZkQ":{"uri":"/melonJS/docs/melonjs/event.html#WINDOW_ONSCROLL"},"tlQE_K5yPPCKQXhnwMrdb":{"uri":"/melonJS/docs/melonjs/event.html#WORLD_STEP"},"wvgi4ADI5My1Rc7kl7AhG":{"uri":"/melonJS/docs/melonjs/event/emit.html"},"1Hj0OHzEXbeF9HIODjPdS":{"uri":"/melonJS/docs/melonjs/event/off.html"},"EMpNSu2s9fatL027s8zh0":{"uri":"/melonJS/docs/melonjs/event/on.html"},"6EsHFO2bAmmJKPItQDcmA":{"uri":"/melonJS/docs/melonjs/event/once.html"},"1a3fCLdiv_f0nJjscSTXr":{"uri":"/melonJS/docs/melonjs/game.html"},"Xa7H6Lu-PS-rj4N-W9sLl":{"uri":"/melonJS/docs/melonjs/input.html"},"GQ8CJlAcdnjk52rDbQI_E":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD.html"},"GUUpTpX7woUijynD_8wB2":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/AXES.html"},"qVaNa9jdNJ83q6Buu8uHp":{"uri":"/melonJS/docs/melonjs/input/GAMEPAD/BUTTONS.html"},"pN7-Jw3mwcg4cdtUJ4t5K":{"uri":"/melonJS/docs/melonjs/input/KEY.html"},"i0V1agoziy-4lnd3gDwrx":{"uri":"/melonJS/docs/melonjs/input/KEY.html#A"},"SsqVF4xGPpLeZ3OQ-ksXu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ADD"},"1TKNm1igfIXGv-EgPgkSU":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ALT"},"uABUrgQFRbkqQS3uT8-KD":{"uri":"/melonJS/docs/melonjs/input/KEY.html#B"},"lCyfmq378mOqofmpdj97k":{"uri":"/melonJS/docs/melonjs/input/KEY.html#BACK_SLASH"},"w4tUaUM6jIWdIxUaB-aiR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#C"},"VAKhJisP5h-JhsOz84wHP":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CAPS_LOCK"},"OsRMXzCCMVW-sP4ZdCNuC":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CLOSE_BRACKET"},"Gxh-qmi_Aa30_c2OvQqjy":{"uri":"/melonJS/docs/melonjs/input/KEY.html#COMMA"},"IQeJGGbN0Ub8wZqJT3jDB":{"uri":"/melonJS/docs/melonjs/input/KEY.html#CTRL"},"TQ1Gn1_fYA8bDbzkOnM3_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#D"},"-m4V9zSY3klHehbwhhn3f":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DECIMAL"},"kjRUXnYzVcCXudtjPNHJD":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DELETE"},"F6TeCgTxZRYpbG_psSMFo":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DIVIDE"},"svdNDEv3qSnhdfhq9ADCK":{"uri":"/melonJS/docs/melonjs/input/KEY.html#DOWN"},"pB2qMVF8PZ_lUAQ9noxhv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#E"},"Ddh5wK89B464x1dOSxT4L":{"uri":"/melonJS/docs/melonjs/input/KEY.html#END"},"chxNLrCTsf6_c3IKjp4we":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ENTER"},"FK9WTZWI2DsMIXA-5Y6jp":{"uri":"/melonJS/docs/melonjs/input/KEY.html#ESC"},"EigV9K_KW-tBEZfZZnLLu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F"},"UDd0wyyGTTDrWl_J3_QpW":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F1"},"ZrhO-NCpXhE7d9aZFVWE3":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F10"},"dm2GiKWoP42KFChyaiwGR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F11"},"hEKKZNxrFxvcDtkQ3UpRD":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F12"},"6Y1OOV9I-h9XT-iZs2wRK":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F2"},"yVMfOTLUTLTN6ie3z4_w9":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F3"},"aUyJwV2xkSDPQjWATDJVy":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F4"},"JCgyttQc55f3cAIShhCXv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F5"},"HIlzVKHWO2bH094DgxaqA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F6"},"zP1Rv9HWpLDaxLIzThpb1":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F7"},"5KfviLC8D2lHbjrnw9mVE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F8"},"ksGYNFj3i_2NSGbcNGCyv":{"uri":"/melonJS/docs/melonjs/input/KEY.html#F9"},"UIfPIavu1_-zCvzcAex0b":{"uri":"/melonJS/docs/melonjs/input/KEY.html#FORWAND_SLASH"},"9_v2hMSfWWZqlhMU3has3":{"uri":"/melonJS/docs/melonjs/input/KEY.html#G"},"_TVp3ESigf9wDbpoXe9GX":{"uri":"/melonJS/docs/melonjs/input/KEY.html#GRAVE_ACCENT"},"aRldYyTFJeFmHI3BZn3NF":{"uri":"/melonJS/docs/melonjs/input/KEY.html#H"},"VGXlUc4Lj3esitfMqQg4Z":{"uri":"/melonJS/docs/melonjs/input/KEY.html#HOME"},"TxiKBUTTdMI5loGCVz0Y_":{"uri":"/melonJS/docs/melonjs/input/KEY.html#I"},"FuJPJkq0nJZq9jpy7yn80":{"uri":"/melonJS/docs/melonjs/input/KEY.html#INSERT"},"u2_U2o97-QzbJUC07TgKV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#J"},"HTiulwqvoXC2M8p1XP9W6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#K"},"awPI3nVjx6B4wxezoNx9l":{"uri":"/melonJS/docs/melonjs/input/KEY.html#L"},"xiyJ1y7qN3vUTN-XZVRX2":{"uri":"/melonJS/docs/melonjs/input/KEY.html#LEFT"},"Yuu1Fw1WkLCb5Z6uEE76Z":{"uri":"/melonJS/docs/melonjs/input/KEY.html#M"},"QVhOpbklG2Q2VJ84CW7lG":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MINUS"},"hkZITXXAldwlSwN56_MUL":{"uri":"/melonJS/docs/melonjs/input/KEY.html#MULTIPLY"},"6RUnzTh68aiqVZbXj44bE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#N"},"dRycN6aAqDV7ugqgsOFjD":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM_LOCK"},"uY2e65xng-6HDg0Gnb3tt":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM0"},"zeAKYzUIs62pbOu_3xOV3":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM1"},"iNqykLff3suk8orze4T6V":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM2"},"CY8mEZo32ChfRxw0aYMyN":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM3"},"BHLfgcEsbI9yljf4KasQT":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM4"},"QJlTIdXqhVWzdyee1liDd":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM5"},"yuQDqf5AKBc702LrO9Mvu":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM6"},"xbFHrawdKPWMEzuROYf1E":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM7"},"uKTFRjR6NyJZH7Y7nGLV9":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM8"},"IWuWs7a5Xh-i2Gyk-3KNz":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUM9"},"iRHv0K5vQPz7SBawc8PXa":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD0"},"t-9stlkbbYFBj_pgPZRz6":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD1"},"CCRwEm408FMb1nlS4hsXE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD2"},"wFa4SUxUvP2vFUMQ5eIJA":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD3"},"We1eH5w5bd2Xsnd1Ajyji":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD4"},"YtqBokwg5Lui8NBfwwjyx":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD5"},"X5fu7dazXOfwwsoNRlSoL":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD6"},"6NLp4gYbxELN0HkjrMNcL":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD7"},"9IdWJXhFibmTJUJG05IW4":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD8"},"Y3wJTb6mGXYQtLlcncnTO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#NUMPAD9"},"d3XnjUdX3W1pQsRLn31CV":{"uri":"/melonJS/docs/melonjs/input/KEY.html#O"},"ZzhbYKnntAseSSTyRMJof":{"uri":"/melonJS/docs/melonjs/input/KEY.html#OPEN_BRACKET"},"aa9ri7PESbrbEiCdF-k3S":{"uri":"/melonJS/docs/melonjs/input/KEY.html#P"},"EeZVmiHjOl6qeixHXedXM":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_DOWN"},"aiQygnusJDkyXY2GsPnGc":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAGE_UP"},"fbxMYleOhkf7B0RXgodSE":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PAUSE"},"eRKxBoR4oI2pHxNOQEwlR":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PERIOD"},"IPLY5s0XfFYZHo9r-V0El":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PLUS"},"qv7n4ThJpzlKIW2Ffb_aQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#PRINT_SCREEN"},"h1MH1INObUR6nCqK4kewP":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Q"},"NQA1MAEvyNu047TKXUtR2":{"uri":"/melonJS/docs/melonjs/input/KEY.html#R"},"b6ORgb1c0Fy5xm0ixxr8P":{"uri":"/melonJS/docs/melonjs/input/KEY.html#RIGHT"},"_h6bTGMhFWaG9pp2rbRjO":{"uri":"/melonJS/docs/melonjs/input/KEY.html#S"},"WbCSAssvn4tBltmakzcV8":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SCROLL_LOCK"},"GbaQq8-9HWyFcmFDeR_fF":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SEMICOLON"},"agOdTwnYj3Q1rLne0-QyQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SHIFT"},"GUhGWAXvwWX_VFgACpzxY":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SINGLE_QUOTE"},"jc6NizffxqFtiWj1Z93la":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SPACE"},"buHfd4uSFef2ig1Mm3F5U":{"uri":"/melonJS/docs/melonjs/input/KEY.html#SUBSTRACT"},"dUTOPeLMTfW1xEpAw6KwY":{"uri":"/melonJS/docs/melonjs/input/KEY.html#T"},"8tVyi8g5dZIHDBl8jr10C":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TAB"},"eqfnBqEHDUshXxK5xfhQ2":{"uri":"/melonJS/docs/melonjs/input/KEY.html#TILDE"},"uUioeqcAAJ0W41tDQZjgn":{"uri":"/melonJS/docs/melonjs/input/KEY.html#U"},"xERxtZYA5HnTuqc2nrogF":{"uri":"/melonJS/docs/melonjs/input/KEY.html#UP"},"MDLI967fZDdGyFSDWiPw5":{"uri":"/melonJS/docs/melonjs/input/KEY.html#V"},"lwc55dshEXVU3z9bqhrex":{"uri":"/melonJS/docs/melonjs/input/KEY.html#W"},"t6A17Tha8KfWDrni55p8O":{"uri":"/melonJS/docs/melonjs/input/KEY.html#WINDOW_KEY"},"Z9T_Jbi3Gk97b3C5dxAy0":{"uri":"/melonJS/docs/melonjs/input/KEY.html#X"},"Rsu9zChcWDT6lxpa2EmHQ":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Y"},"TMIXNHLzhmT9oNBIe0nB4":{"uri":"/melonJS/docs/melonjs/input/KEY.html#Z"},"WMfoQ214TRNOdX7g92QYs":{"uri":"/melonJS/docs/melonjs/input.html#keyBoardEventTarget"},"0-y3QaJVaaNQt0VNEeFZu":{"uri":"/melonJS/docs/melonjs/input.html#locked"},"9TI_usHbF6uw98gKZlTew":{"uri":"/melonJS/docs/melonjs/input.html#pointer"},"BMj4wxlqouXKyBGexw5_q":{"uri":"/melonJS/docs/melonjs/input.html#pointerEventTarget"},"wvMCuedkHBAIqWURkD7fw":{"uri":"/melonJS/docs/melonjs/input.html#preventDefault"},"ofKIUW-BugGsna3Al4DhJ":{"uri":"/melonJS/docs/melonjs/input.html#setGamepadMapping"},"yS17YxX05bdV04yqEWt_b":{"uri":"/melonJS/docs/melonjs/input.html#throttlingInterval"},"wDJzdwHRRvgxQ_OjU4MCg":{"uri":"/melonJS/docs/melonjs/input/bindGamepad.html"},"Q8o1jfe9B_psYr0UIYbZ-":{"uri":"/melonJS/docs/melonjs/input/bindKey.html"},"lCj718i7erspI44XY3D6G":{"uri":"/melonJS/docs/melonjs/input/bindPointer.html"},"-50cLima0y-ILBiwEKCV6":{"uri":"/melonJS/docs/melonjs/input/exitPointerLock.html"},"_ifPz03gwDTG20pAlp9o3":{"uri":"/melonJS/docs/melonjs/input/getBindingKey.html"},"bUzqWS8icKyKh1BUNBnii":{"uri":"/melonJS/docs/melonjs/input/globalToLocal.html"},"WCiFUM77xW1Z3m-sQvjhZ":{"uri":"/melonJS/docs/melonjs/input/hasActiveEvents.html"},"r6bHsRR6HNc3xh5ruLxjD":{"uri":"/melonJS/docs/melonjs/input/hasRegisteredEvents.html"},"s0Z_y-p0u3u13kKmPoPEc":{"uri":"/melonJS/docs/melonjs/input/isKeyPressed.html"},"XPzRgv35Lx8a1gDe5SDnC":{"uri":"/melonJS/docs/melonjs/input/keyStatus.html"},"vuPns6z0dGXomwTjh0R_v":{"uri":"/melonJS/docs/melonjs/input/registerPointerEvent.html"},"wVp4OgCDwS_QufF8Iny64":{"uri":"/melonJS/docs/melonjs/input/releaseAllPointerEvents.html"},"mEgE57qEs1feE2AQ9N7KW":{"uri":"/melonJS/docs/melonjs/input/releasePointerEvent.html"},"u6KcQxdmWx2BbR_sRqMzw":{"uri":"/melonJS/docs/melonjs/input/requestPointerLock.html"},"UNFtk2M-xgG8vc9MaAiV8":{"uri":"/melonJS/docs/melonjs/input/setGamepadDeadzone.html"},"Ah3MB8ZEnbWywa0hncrrM":{"uri":"/melonJS/docs/melonjs/input/setTouchAction.html"},"RLFfURHd-S9BOaoVZUte7":{"uri":"/melonJS/docs/melonjs/input/triggerKeyEvent.html"},"4tpaB4JssxZjbKzmFoOwk":{"uri":"/melonJS/docs/melonjs/input/unbindGamepad.html"},"coOcXoVeAKLrx-iFDh4CQ":{"uri":"/melonJS/docs/melonjs/input/unbindKey.html"},"AbLb1AnJSqdMRbE_tkjwE":{"uri":"/melonJS/docs/melonjs/input/unbindPointer.html"},"NGzXapYIK3drnX6fuEdJg":{"uri":"/melonJS/docs/melonjs/input/unlockKey.html"},"BxUZjLlwBK7VcR_c69V7S":{"uri":"/melonJS/docs/melonjs/level.html"},"-aUeWcfrO_qonfTyTag8F":{"uri":"/melonJS/docs/melonjs/level.html#add"},"vY4eZ53So4xwSSOADJOR3":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevel"},"HWGsGI_tWS7waGZ5rhQBp":{"uri":"/melonJS/docs/melonjs/level.html#getCurrentLevelId"},"HGMZDb6H4pnD1FBqWBtr1":{"uri":"/melonJS/docs/melonjs/level.html#levelCount"},"ro25-jW6xrS-x53rOs9xw":{"uri":"/melonJS/docs/melonjs/level.html#load"},"W8nAAqPtqPrtifsrzwnNo":{"uri":"/melonJS/docs/melonjs/level.html#next"},"lVriCbamTFuaBdqt1QMX-":{"uri":"/melonJS/docs/melonjs/level.html#previous"},"V83tiBXCOK52LeqK6VLd-":{"uri":"/melonJS/docs/melonjs/level.html#reload"},"Moj8OGzGcq3163i2l4shP":{"uri":"/melonJS/docs/melonjs/loader.html"},"Q_vhJlfZ37Il-CYvqR8XS":{"uri":"/melonJS/docs/melonjs/loader/Asset.html"},"ay4KSUKs04iISU2FhbsnS":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#autoplay"},"ktQrtJws0iuv57JmEQxNB":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#data"},"aNX5gqQcNrJnIRp-vXH1u":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#loop"},"xrfQbgrQPLZKNsd7RtSjD":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#name"},"5QSu7BDXysIf_WCxuTLzv":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#src"},"zhqLebzfRZ4a5TCeS2DhB":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#stream"},"OcB0zXLRAIiFN5NynZUJ5":{"uri":"/melonJS/docs/melonjs/loader/Asset.html#type"},"a04nRQagC4pOjMoYyp3ko":{"uri":"/melonJS/docs/melonjs/loader.html#crossOrigin"},"vBgOoZN3_3bRTJCru2lmv":{"uri":"/melonJS/docs/melonjs/loader.html#onError"},"o6CQuMbPVTqYeYkAXFdZu":{"uri":"/melonJS/docs/melonjs/loader.html#onload"},"2i8l6bQx1sK5K3BE6ynKH":{"uri":"/melonJS/docs/melonjs/loader.html#onProgress"},"EzRQCudoguzm3bB7k1Zje":{"uri":"/melonJS/docs/melonjs/loader.html#withCredentials"},"38PQzXdpk03vCkZkis4g1":{"uri":"/melonJS/docs/melonjs/loader/getBinary.html"},"gZmD0UeMOUvdQ1J1klCB_":{"uri":"/melonJS/docs/melonjs/loader/getFont.html"},"eT4i1cu7s3K_YZnYE0QiE":{"uri":"/melonJS/docs/melonjs/loader/getImage.html"},"i7oVDbfXHLLitPkKmtXUB":{"uri":"/melonJS/docs/melonjs/loader/getJSON.html"},"9u7u37Wk4eSQ2KR7oweY-":{"uri":"/melonJS/docs/melonjs/loader/getTMX.html"},"MykVMpEQYVuB4upE46Thn":{"uri":"/melonJS/docs/melonjs/loader/getVideo.html"},"yyisIUMy5FQhpijEnXcw-":{"uri":"/melonJS/docs/melonjs/loader/load.html"},"C5yGKo-ZrUqO6keNRBd6d":{"uri":"/melonJS/docs/melonjs/loader/preload.html"},"w-Zd7Fs-o6M_dMG1Exwty":{"uri":"/melonJS/docs/melonjs/loader/reload.html"},"arn2ElLi3BHUpSy4_8OVo":{"uri":"/melonJS/docs/melonjs/loader/setBaseURL.html"},"8TlWJGfEP9CHTXgY0EtIv":{"uri":"/melonJS/docs/melonjs/loader/setOptions.html"},"pd6rSc7QHwfVbuZTPWRSf":{"uri":"/melonJS/docs/melonjs/loader/setParser.html"},"B7ur4yOJB3imVGe82E3D6":{"uri":"/melonJS/docs/melonjs/loader/unload.html"},"iCY02XJSvnp3B_4EG3h34":{"uri":"/melonJS/docs/melonjs/loader/unloadAll.html"},"g1Ge67f6VUHPm6KOfQB1D":{"uri":"/melonJS/docs/melonjs/Math.html"},"dyuKC2BbldUaL6SOxcuE_":{"uri":"/melonJS/docs/melonjs/Math.html#DEG_TO_RAD"},"-6BU93JGbKJrkbnOvANp0":{"uri":"/melonJS/docs/melonjs/Math.html#EPSILON"},"TlD9fEe2aH9bv-RINF5Yo":{"uri":"/melonJS/docs/melonjs/Math.html#ETA"},"uSYhrQiNlhTt_xmjDo6Bq":{"uri":"/melonJS/docs/melonjs/Math.html#RAD_TO_DEG"},"SnpbY7ZHJxu6S_ipgFSmg":{"uri":"/melonJS/docs/melonjs/Math.html#TAU"},"5x9S6xcjRmeOtZ36ntu59":{"uri":"/melonJS/docs/melonjs/Math/clamp.html"},"pU6farLjtQrN31TEeNC3H":{"uri":"/melonJS/docs/melonjs/Math/degToRad.html"},"aYfu3JWK0x5Mh-5FpbVzf":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfFour.html"},"IWBbVzbCIWjnaLCMQdwIA":{"uri":"/melonJS/docs/melonjs/Math/isPowerOfTwo.html"},"2075dMFmJa2aTrgdJv028":{"uri":"/melonJS/docs/melonjs/Math/nextPowerOfTwo.html"},"K2D5215rKEtLwVcgtjblN":{"uri":"/melonJS/docs/melonjs/Math/pow.html"},"2zk3Epm_FkkF8tASKzAln":{"uri":"/melonJS/docs/melonjs/Math/radToDeg.html"},"j4GiCjCyuKceIEJgGma6a":{"uri":"/melonJS/docs/melonjs/Math/random.html"},"tKVY2vn9WUWat2LeO16xn":{"uri":"/melonJS/docs/melonjs/Math/randomFloat.html"},"sOlUYPYFtO1ihDPFgNSE5":{"uri":"/melonJS/docs/melonjs/Math/round.html"},"lt1oxEOyQQZhBlsbLM61u":{"uri":"/melonJS/docs/melonjs/Math/toBeCloseTo.html"},"5YMDh0CAFQY-ZUq19S_Yc":{"uri":"/melonJS/docs/melonjs/Math/weightedRandom.html"},"rlJ5XT7ZmLsLMKuvtybjC":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html"},"-gyaQQNfnaY3eBTzD1AZg":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angle"},"WmpYsQg6AgliT1ytdIy4m":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#angleVariation"},"omBW4xfJEkBEj7Jl3rG7s":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#blendMode"},"v64YRts9JREK1m_EzbOoM":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#duration"},"4LSjYFkPoKkdzouNk1MOe":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#floating"},"hRzzCAlxXGGq6krg_3QcV":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#followTrajectory"},"hgL46IlGWj_d_mGsaDguZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#framesToSkip"},"IoSIR63ZnaxJeaCUms7IY":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#frequency"},"k4omJ5298nPfxj140rSW2":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#gravity"},"6UTvqFACsi21rogOWYgVg":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#height"},"9NH6RwGbHkR03C-fD5kCd":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#image"},"nwQ0WXlo5j85QhKjYlPJA":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxEndScale"},"u_9U_hMNjCax0DWqX-dga":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxLife"},"wn_C6osJYZwNquBFBTCXe":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxParticles"},"6OlsVtsgQ9QhNO49vCfDj":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxRotation"},"90le2IlEFsV-i-ThW24bV":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#maxStartScale"},"PQYgqJs1LYTbBeQJGgGJG":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minEndScale"},"ktzmz8qzKotImVRBb8Vvf":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minLife"},"1ITYVDht4QJdRUxMZwnwM":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minRotation"},"7DnVh_e29obOjmixgBhOE":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#minStartScale"},"S5F723VoYYKZ98S_qP_8r":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#onlyInViewport"},"sdx1Pom0baN-AEBB1JpFF":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speed"},"r_Ris91r4x8lXHSJRh_d-":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#speedVariation"},"4vXl2CNOG-u-Cy0tMzH1I":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureAdditive"},"eKALWap8inUTvv0Z-aCP3":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#textureSize"},"mBMJ2N2OyT3wuNU8UkOVt":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#tint"},"TGxZgRMsTT3KEepAF6yyH":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#totalParticles"},"lKqviNLR_cm6wunSeSnLA":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#width"},"wgDyYOrygZ_eMGN1QfiQZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitterSettings.html#wind"},"fJ-LDrsKvM8u-269kvfJx":{"uri":"/melonJS/docs/melonjs/plugin.html"},"b3hzzYa6oysu-2A1NAH79":{"uri":"/melonJS/docs/melonjs/plugin/Base.html"},"JKsVkeNCamOqNS7UVT99o":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#app"},"h0fEr6EkJVpzWteT-7Q82":{"uri":"/melonJS/docs/melonjs/plugin/Base.html#version"},"m_ad1-P9_fTY5X73yVHbJ":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html"},"JxGyLzQ7MSiDhZ2yraF_z":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#app"},"_Jt66LtxlMDwxdmOwBhG3":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#version"},"YlFFLRw7VWzkP9JSgnLIJ":{"uri":"/melonJS/docs/melonjs/plugin/BasePlugin.html#constructor"},"NoJbQS71O4JzLkaKqgsBV":{"uri":"/melonJS/docs/melonjs/plugin.html#cache"},"aQKYEWaP0dERe0QjE32mp":{"uri":"/melonJS/docs/melonjs/plugin/get.html"},"WM7f74zICJY4R8qyx4mEh":{"uri":"/melonJS/docs/melonjs/plugin/patch.html"},"9r8_zaQkyt_H70KIBvedk":{"uri":"/melonJS/docs/melonjs/plugin/register.html"},"pX1l--rATXMkVF0FG6mWp":{"uri":"/melonJS/docs/melonjs/pool.html"},"aIvtQb9sYZ5L6D8xjuOQg":{"uri":"/melonJS/docs/melonjs/save.html"},"Qd74Jx7fWGan58t1HIJIg":{"uri":"/melonJS/docs/melonjs/save.html#add"},"LfQwIZg0KMxZeCeLiiU8R":{"uri":"/melonJS/docs/melonjs/save.html#remove"},"KXGZsFJBD-88_gfpzkZC5":{"uri":"/melonJS/docs/melonjs/state.html"},"8rDUP57rTz6_fNWul-Rgn":{"uri":"/melonJS/docs/melonjs/state.html#CREDITS"},"cRj9slB71fAei0vYgljRL":{"uri":"/melonJS/docs/melonjs/state.html#DEFAULT"},"y2p62DRazVN5U3Lkd63yl":{"uri":"/melonJS/docs/melonjs/state.html#GAME_END"},"DOiyM9Y7Rf2osUhwGzgyB":{"uri":"/melonJS/docs/melonjs/state.html#GAMEOVER"},"WCEeJXiFDA7rzFYoLMa-0":{"uri":"/melonJS/docs/melonjs/state.html#LOADING"},"N7CiqjPuiF4jtKFwa5jNw":{"uri":"/melonJS/docs/melonjs/state.html#MENU"},"yLl2b8gZIFIi4wHq_OyOI":{"uri":"/melonJS/docs/melonjs/state.html#PLAY"},"LBbd-0Jt_OaMXwULgnZOd":{"uri":"/melonJS/docs/melonjs/state.html#READY"},"tZlRarxWVIItE25awKTwX":{"uri":"/melonJS/docs/melonjs/state.html#SCORE"},"kYLHxX5wSreypFzKqvBFj":{"uri":"/melonJS/docs/melonjs/state.html#SETTINGS"},"l2Csg1IqctIV_K1VE9AA3":{"uri":"/melonJS/docs/melonjs/state.html#USER"},"OEYV55EhALzi5jH0Ps_RO":{"uri":"/melonJS/docs/melonjs/state.html#change"},"9xdtzk34CdJISWEwg4Q1L":{"uri":"/melonJS/docs/melonjs/state.html#current"},"uxZBvxLdjAs2A5QaDYWQm":{"uri":"/melonJS/docs/melonjs/state.html#isCurrent"},"F9ebvF0UM951IduFXKffL":{"uri":"/melonJS/docs/melonjs/state.html#isPaused"},"UmEpBPMNip52KThPkvdWx":{"uri":"/melonJS/docs/melonjs/state.html#isRunning"},"jx9MdEyV5UiGK7qTW3Z0D":{"uri":"/melonJS/docs/melonjs/state.html#pause"},"kzD0K8PHCw2pngIg-vTGf":{"uri":"/melonJS/docs/melonjs/state.html#restart"},"txA7o4zVUFIQYnRwe13Oc":{"uri":"/melonJS/docs/melonjs/state.html#resume"},"aqifEGXFue3pbhXj-IRby":{"uri":"/melonJS/docs/melonjs/state.html#set"},"exDNvvEA89kk6Eni394BK":{"uri":"/melonJS/docs/melonjs/state.html#set_"},"pS28WU-uGa25O1GmvzdsY":{"uri":"/melonJS/docs/melonjs/state.html#setTransition"},"gexYdTsLFGUTmchUTcIRu":{"uri":"/melonJS/docs/melonjs/state.html#stop"},"SbdeYmbXaQMs0yGXVnVV6":{"uri":"/melonJS/docs/melonjs/state.html#transition"},"JdNkuR155fvmjlnDAwUJC":{"uri":"/melonJS/docs/melonjs/timer.html"},"xXWf-i_vtvxaf7gGko9qg":{"uri":"/melonJS/docs/melonjs/TMXUtils.html"},"OTTB7nWUwiCx98atXRG4e":{"uri":"/melonJS/docs/melonjs/TMXUtils/applyTMXProperties.html"},"pA8AeTN9etDoXrMPp520b":{"uri":"/melonJS/docs/melonjs/TMXUtils/decode.html"},"0vk116_isG4Of5unW0dXI":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeBase64AsArray.html"},"5jeon847SwRDDFu0b_mmi":{"uri":"/melonJS/docs/melonjs/TMXUtils/decodeCSV.html"},"dDzNTMoykLZ2DYzSDjT1b":{"uri":"/melonJS/docs/melonjs/TMXUtils/decompress.html"},"s3Z_W24gxZuhK_VdPmNIz":{"uri":"/melonJS/docs/melonjs/TMXUtils/parse.html"},"yfvxGZA0uo9cJqRKN3sxK":{"uri":"/melonJS/docs/melonjs/TMXUtils/setInflateFunction.html"},"VMV4QU4luRkArI29Xf7tx":{"uri":"/melonJS/docs/melonjs/utils.html"},"M2f76Vc5hdsEb1qrja65q":{"uri":"/melonJS/docs/melonjs/utils/agent.html"},"TIzCIBHyGk1pvgCQCMmzr":{"uri":"/melonJS/docs/melonjs/utils/agent/prefixed.html"},"F4c1dFgPZwjZhsWpRhHZo":{"uri":"/melonJS/docs/melonjs/utils/agent/setPrefixed.html"},"4EmeDCeYgwk2eU6xah0WB":{"uri":"/melonJS/docs/melonjs/utils/array.html"},"jAee8pxPAFRc7-Pos3_zl":{"uri":"/melonJS/docs/melonjs/utils/array/random.html"},"jw7cAh75gzbYTwF2mvzkd":{"uri":"/melonJS/docs/melonjs/utils/array/remove.html"},"AUUL6WLGFCMFOY9KaSLhI":{"uri":"/melonJS/docs/melonjs/utils/array/weightedRandom.html"},"f2lBgYir88wpXj9riYDqt":{"uri":"/melonJS/docs/melonjs/utils/file.html"},"U9hok8vvVaeQtjj29s3cy":{"uri":"/melonJS/docs/melonjs/utils/file/getBasename.html"},"Smc3HvkPTgEbnuwJjXiBS":{"uri":"/melonJS/docs/melonjs/utils/file/getExtension.html"},"F3EHr428C_9MNdtX6tC2y":{"uri":"/melonJS/docs/melonjs/utils/file/getPath.html"},"9uVc7WKaYzz-tsF73OK-A":{"uri":"/melonJS/docs/melonjs/utils/function.html"},"-bru8cinI9vkEE-feUNY3":{"uri":"/melonJS/docs/melonjs/utils/function/defer.html"},"xZ4x85Ouk5IpuTVeIb6GX":{"uri":"/melonJS/docs/melonjs/utils/function/throttle.html"},"GSzBd_kKu-VdPE1kiqAy2":{"uri":"/melonJS/docs/melonjs/utils/string.html"},"eiw7l0BjxZ0LpPXMJVlBc":{"uri":"/melonJS/docs/melonjs/utils/string/capitalize.html"},"ttodmkc4dK4Id8Tq5DG4x":{"uri":"/melonJS/docs/melonjs/utils/string/isBoolean.html"},"GTxUQISo1orFX3B0HnOwn":{"uri":"/melonJS/docs/melonjs/utils/string/isDataUrl.html"},"CPTkRgFM8BR-yf2O9wX-2":{"uri":"/melonJS/docs/melonjs/utils/string/isNumeric.html"},"twXSjjI3e5oSshfaY5uze":{"uri":"/melonJS/docs/melonjs/utils/string/toHex.html"},"uLoeE87GdrrYXRjD1N16O":{"uri":"/melonJS/docs/melonjs/utils/checkVersion.html"},"xbgGl39tIAtEEEXnCfqvg":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html"},"Ppn6ojUD2VRDWIfwRwDnN":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debug"},"osrBDE0Gm0bvLyz6vOm4m":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#debugToggleKey"},"Onv-bGXJYj-0J7DcYM5Zt":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#hitbox"},"-KspiIqx6jVeyfcLpGWQd":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#quadtree"},"-Q4h-XPgyms3KAoMzQ86-":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#velocity"},"zKFUSyhsqpxeBrdpOfHQ0":{"uri":"/melonJS/docs/melonjs/utils/getUriFragment.html#webgl"},"Q6AjY84uXonPKXJdLESgW":{"uri":"/melonJS/docs/melonjs/video.html"},"dzlxW25eiy8DmaXyK6m1S":{"uri":"/melonJS/docs/melonjs/video.html#renderer"},"OTILlSa8lR8EEO9yWTVEc":{"uri":"/melonJS/docs/melonjs/video/createCanvas.html"},"FiQNqOQmWSQdfGeHlSmYK":{"uri":"/melonJS/docs/melonjs/video/getParent.html"},"mEEZd91pO82UVFEYV5Zxa":{"uri":"/melonJS/docs/melonjs/video/init.html"},"hy4ohau52peayb34pVHRn":{"uri":"/melonJS/docs/melonjs/Application.html"},"9OfdBGFvGidJMQTjOG6PC":{"uri":"/melonJS/docs/melonjs/Application.html#isInitialized"},"U6xXfTnIyddDaqkCPia8Q":{"uri":"/melonJS/docs/melonjs/Application.html#lastUpdate"},"fUY7tN5IlgLUf56Afq46H":{"uri":"/melonJS/docs/melonjs/Application.html#mergeGroup"},"RFcOpPDptGGnANBmtUg49":{"uri":"/melonJS/docs/melonjs/Application.html#parentElement"},"DLbp4kT6_ExUNh6MWM-AL":{"uri":"/melonJS/docs/melonjs/Application.html#pauseOnBlur"},"KTSksBIVmLtEequR197GI":{"uri":"/melonJS/docs/melonjs/Application.html#renderer"},"-zBCKPCfod9JLw0RTmgP_":{"uri":"/melonJS/docs/melonjs/Application.html#resumeOnFocus"},"uQIx43YOfwQSBnHVLrDJa":{"uri":"/melonJS/docs/melonjs/Application.html#settings"},"VX4h_03FQSDEu1YNqmqos":{"uri":"/melonJS/docs/melonjs/Application.html#sortOn"},"-26y8nPprAPuRup1XmJp2":{"uri":"/melonJS/docs/melonjs/Application.html#stopOnBlur"},"EIPMWbM5yfyIRlcId8Aix":{"uri":"/melonJS/docs/melonjs/Application.html#viewport"},"FmGHq91FoiLGi0Nao7t5P":{"uri":"/melonJS/docs/melonjs/Application.html#world"},"BkWSiLiDxZ4DvhwPutL4L":{"uri":"/melonJS/docs/melonjs/Application.html#constructor"},"I3bYT9SxVTk3ilyjLZlXk":{"uri":"/melonJS/docs/melonjs/Application.html#draw"},"6LqNJ5RpvL4HRll2gaAz2":{"uri":"/melonJS/docs/melonjs/Application.html#getParentElement"},"NS5irQJh3dwVtffOwxnQN":{"uri":"/melonJS/docs/melonjs/Application.html#init"},"V4h21X21me_J01mU5guKv":{"uri":"/melonJS/docs/melonjs/Application.html#onLevelLoaded"},"MpJvRDEdLaswcGFKnRa9_":{"uri":"/melonJS/docs/melonjs/Application.html#repaint"},"6B4Msv0PV_V9Oju2gI6lL":{"uri":"/melonJS/docs/melonjs/Application.html#reset"},"DrkjnGwn6V8DR7JzxxQva":{"uri":"/melonJS/docs/melonjs/Application.html#update"},"b5xFUA3xtpmpWSrq1TtCx":{"uri":"/melonJS/docs/melonjs/Application.html#updateFrameRate"},"dFjRcQlL75wNPox9b6mWZ":{"uri":"/melonJS/docs/melonjs/BitmapText.html"},"BC2FJKsu9mA2HmSwXBJjo":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alpha"},"dO_0F-JUpaMul7eii2Mzj":{"uri":"/melonJS/docs/melonjs/BitmapText.html#alwaysUpdate"},"NiEsXnJVkBh0Ph7C64KZ7":{"uri":"/melonJS/docs/melonjs/BitmapText.html#ancestor"},"uzGlngPJpF1dQ4TCINZUg":{"uri":"/melonJS/docs/melonjs/BitmapText.html#anchorPoint"},"3tNF7UorSPafnn1zCHcgo":{"uri":"/melonJS/docs/melonjs/BitmapText.html#autoTransform"},"FhDFnCTiwmg96p2b5bSSP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#blendMode"},"5o494Jqqq2-XXjEPb9NTS":{"uri":"/melonJS/docs/melonjs/BitmapText.html#body"},"yI_BVhspGPmG9VdipL--6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#bottom"},"DoPACPr54D0rMNiWRJzyl":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerX"},"gvlndtSZSKSysfqLCZj_v":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerY"},"0U6h8X0bwZ_L5ywhfyHFY":{"uri":"/melonJS/docs/melonjs/BitmapText.html#currentTransform"},"vlC_z-b8KwkbsAvFvhsJZ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#depth"},"QgJAVSr-dQTmQd1trigAL":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fillStyle"},"ArkosF1jib31melrG0F_p":{"uri":"/melonJS/docs/melonjs/BitmapText.html#floating"},"EvS4CXSsK4hCj659qbMNg":{"uri":"/melonJS/docs/melonjs/BitmapText.html#GUID"},"qyjlHoEXlw_vPAkGzY2Bn":{"uri":"/melonJS/docs/melonjs/BitmapText.html#height"},"S5s9gPHpqLCJGjvEY35QL":{"uri":"/melonJS/docs/melonjs/BitmapText.html#inViewport"},"LWRusWYpQm_ISNUZ4TCGZ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isDirty"},"QFdyaZiTUFsOnT7wIFnlW":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedX"},"vzDKthmhjzLLzQUkYXHK6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFlippedY"},"ssahWqnS221CT6yjwQ33z":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFloating"},"T1t3r-YJCBslkuZG_S25_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isKinematic"},"tp1mbGGxYAQRzAbzp2zPT":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isPersistent"},"VEkkvyJ0LHqusBFmOCXye":{"uri":"/melonJS/docs/melonjs/BitmapText.html#left"},"yf9REf6GuJH0FSsHqbtTS":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lineHeight"},"5cCdVdB_cI-582OrtcmWy":{"uri":"/melonJS/docs/melonjs/BitmapText.html#mask"},"MBu90fKFDtlYlxYQ37rTI":{"uri":"/melonJS/docs/melonjs/BitmapText.html#name"},"Whi381BnJ4PxfMv3AUZRM":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onVisibilityChange"},"RixejnhBkgUVcILgVqNOx":{"uri":"/melonJS/docs/melonjs/BitmapText.html#parentApp"},"nVO1OMK_iWhQs--8jZE5o":{"uri":"/melonJS/docs/melonjs/BitmapText.html#points"},"sSTZ_lj-lXvlz00GqTyq5":{"uri":"/melonJS/docs/melonjs/BitmapText.html#pos"},"rvQwegx6zFoFPkKLyC0U5":{"uri":"/melonJS/docs/melonjs/BitmapText.html#right"},"9nFsq8J3gREEufHH7rcc0":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shader"},"i7I5Ad1iXxiBUkkJ_9m-S":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textAlign"},"1kXk9u5o2oS1bYsiBvScW":{"uri":"/melonJS/docs/melonjs/BitmapText.html#textBaseline"},"MNYpt_vO4DCRk_xF_-3Xi":{"uri":"/melonJS/docs/melonjs/BitmapText.html#tint"},"-AQMBiABWuvzCasMNQGjc":{"uri":"/melonJS/docs/melonjs/BitmapText.html#top"},"-MIrmvgrFeQMQGQXIX0Z9":{"uri":"/melonJS/docs/melonjs/BitmapText.html#type"},"xb0Cy6Z3LAA7Z0BOOUYa6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateWhenPaused"},"Ekpm_iFnZw39ABoHqdYWE":{"uri":"/melonJS/docs/melonjs/BitmapText.html#width"},"31nduLYPjCmHPoIXA3bfi":{"uri":"/melonJS/docs/melonjs/BitmapText.html#wordWrapWidth"},"C0JK3RGl-bxUA7ue7M5JN":{"uri":"/melonJS/docs/melonjs/BitmapText.html#_text"},"-DbNZeU63EbJEku7QZRrR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontData"},"rtTkQRGhMo0HPHj5TerOS":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontImage"},"sWM9X80GmzamQllf9qsq_":{"uri":"/melonJS/docs/melonjs/BitmapText.html#fontScale"},"-DPFjz7Jt6Sq_iM_RUGGC":{"uri":"/melonJS/docs/melonjs/BitmapText.html#angleTo"},"rJTE5bsr_jIQzMr1t5e0e":{"uri":"/melonJS/docs/melonjs/BitmapText.html#centerOn"},"__AY2oeiXBZPDXD2Mg-p-":{"uri":"/melonJS/docs/melonjs/BitmapText.html#clone"},"rsDXzs7pu8fiVtVcw5hMk":{"uri":"/melonJS/docs/melonjs/BitmapText.html#constructor"},"7ADrviFS_ZcBrrwJhNZO0":{"uri":"/melonJS/docs/melonjs/BitmapText.html#contains"},"_4Y5qkFNzitMNkO4u3VV9":{"uri":"/melonJS/docs/melonjs/BitmapText.html#copy"},"JlU2OBlwozI3SR0KK35je":{"uri":"/melonJS/docs/melonjs/BitmapText.html#distanceTo"},"3g8KU94MbKA-apLwXYU7B":{"uri":"/melonJS/docs/melonjs/BitmapText.html#draw"},"s1tY2eE85KJ5K9oWBMa9s":{"uri":"/melonJS/docs/melonjs/BitmapText.html#equals"},"8E-3Ev2RshYJyqNhsdVDd":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipX"},"s7XN1eQP07xpVV-no6kNR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#flipY"},"2fkQPz9rSGHR5AiKJrI6R":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getAbsolutePosition"},"Qcn0qA64bv-obJr2Emwe3":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getBounds"},"AZryfPo3I4O_cbA2JIdo9":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getIndices"},"T9gujeG5c3afokRPyRgFN":{"uri":"/melonJS/docs/melonjs/BitmapText.html#getOpacity"},"e9mT9cNTiKcOUIlHxu2qU":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isConvex"},"i89pIaMaAxYUU_FMowG-R":{"uri":"/melonJS/docs/melonjs/BitmapText.html#isFinite"},"jHV-ivYh8KKudnVF0QtpJ":{"uri":"/melonJS/docs/melonjs/BitmapText.html#lookAt"},"oKvD1yUhRsfz73ovJNWIP":{"uri":"/melonJS/docs/melonjs/BitmapText.html#measureText"},"FBaAPUAztWweXfqNWHb_Y":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onCollision"},"mJK8X2UKtKF2HodG2bR0h":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onDestroyEvent"},"5mtkA72-E_9tyMV3LM97A":{"uri":"/melonJS/docs/melonjs/BitmapText.html#overlaps"},"ges853td0FY2cgiuKiE--":{"uri":"/melonJS/docs/melonjs/BitmapText.html#postDraw"},"RtmXM8EUkpjogTntlN2dV":{"uri":"/melonJS/docs/melonjs/BitmapText.html#preDraw"},"pt2VwFOVVav5hoC_mZCGR":{"uri":"/melonJS/docs/melonjs/BitmapText.html#recalc"},"_-YXTt0EfKVeC-nqJC2W6":{"uri":"/melonJS/docs/melonjs/BitmapText.html#resize"},"zeMaiXCaWFq3YPM3EnG_H":{"uri":"/melonJS/docs/melonjs/BitmapText.html#rotate"},"a2njqCImkTC-L7spSC3hA":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scale"},"jdLQTdpu6Ce54dgqawFKb":{"uri":"/melonJS/docs/melonjs/BitmapText.html#scaleV"},"P4wWZsb7BJwZ1knBZ9R_j":{"uri":"/melonJS/docs/melonjs/BitmapText.html#set"},"tZp1hhR2L_moBDpZEopsl":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setOpacity"},"1BR-GmFpUdIaO8nRGouh8":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setShape"},"rV98xxYK5_7jYDbkA0DbY":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setText"},"FIiBv9QSTec6a7XgegzY9":{"uri":"/melonJS/docs/melonjs/BitmapText.html#setVertices"},"OCfhj9OITLJe917rOMJJO":{"uri":"/melonJS/docs/melonjs/BitmapText.html#shift"},"55JgZWqSozXNQHnnIZcdF":{"uri":"/melonJS/docs/melonjs/BitmapText.html#to2d"},"cFbWUChkqHaI0dobNuVUT":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toIso"},"gZaKHqD3bEEXqHPGPkaJH":{"uri":"/melonJS/docs/melonjs/BitmapText.html#toPolygon"},"F86rdizzFDNsD1Ftqf0iv":{"uri":"/melonJS/docs/melonjs/BitmapText.html#transform"},"NGrNhInY-oqPp36OvRp6j":{"uri":"/melonJS/docs/melonjs/BitmapText.html#translate"},"BQSpH4YrkSPgXrazNnnwn":{"uri":"/melonJS/docs/melonjs/BitmapText.html#union"},"ifUY3Bjd36fyApvjYuCFS":{"uri":"/melonJS/docs/melonjs/BitmapText.html#update"},"LAsi1n7Oyd4yc4kRTTiXM":{"uri":"/melonJS/docs/melonjs/BitmapText.html#updateBounds"},"f9nV2CRYXxBNiajiaYk3B":{"uri":"/melonJS/docs/melonjs/BitmapText.html#onAnchorUpdate"},"P6bLVy36l1AHBj6p07gq1":{"uri":"/melonJS/docs/melonjs/Body.html"},"GeJAT64CjDeK1ex_bRzpv":{"uri":"/melonJS/docs/melonjs/Body.html#ancestor"},"JEzHoTbgboaqe8CNctqvl":{"uri":"/melonJS/docs/melonjs/Body.html#bounce"},"J1e5MevD_L0IMfLYrErdc":{"uri":"/melonJS/docs/melonjs/Body.html#bounds"},"InceZDkVP_rfU0BsQb3jc":{"uri":"/melonJS/docs/melonjs/Body.html#collisionType"},"y5FkEDBJLeFKWXfWl8fV8":{"uri":"/melonJS/docs/melonjs/Body.html#falling"},"iKXY7hrgfG5vVLAyf0bxl":{"uri":"/melonJS/docs/melonjs/Body.html#force"},"i9yxynjFuyz-034P4aCbi":{"uri":"/melonJS/docs/melonjs/Body.html#friction"},"UceUG71j7NbN8VBCc5NX2":{"uri":"/melonJS/docs/melonjs/Body.html#gravityScale"},"hvNJlwHpHraa63Px18z57":{"uri":"/melonJS/docs/melonjs/Body.html#ignoreGravity"},"L1Vc32wlQJzQA-g7d4Go2":{"uri":"/melonJS/docs/melonjs/Body.html#isStatic"},"aPtXVguW3LB5jtCn-Ntp0":{"uri":"/melonJS/docs/melonjs/Body.html#jumping"},"ugYS7m7PwRibq-xt_RRQg":{"uri":"/melonJS/docs/melonjs/Body.html#mass"},"g6xzFJOnz-vXywVwypybG":{"uri":"/melonJS/docs/melonjs/Body.html#maxVel"},"xoX9UlA8NlXoaGb8scBEM":{"uri":"/melonJS/docs/melonjs/Body.html#vel"},"-spM_nh96-3XhieYdinP2":{"uri":"/melonJS/docs/melonjs/Body.html#addShape"},"zNQKl4Io5J2MYOpSi4t6t":{"uri":"/melonJS/docs/melonjs/Body.html#addVertices"},"ASMOCwFkO1aId3170R5dc":{"uri":"/melonJS/docs/melonjs/Body.html#constructor"},"64PhbUpcfhoHES0qsDgyG":{"uri":"/melonJS/docs/melonjs/Body.html#contains"},"Ke0qFZHpCWEAMLb_9cjqw":{"uri":"/melonJS/docs/melonjs/Body.html#forEach"},"fxhOJ4vrq7u5sbXjAsXaH":{"uri":"/melonJS/docs/melonjs/Body.html#fromJSON"},"3AiRftQA7K6sltafbhfAK":{"uri":"/melonJS/docs/melonjs/Body.html#getBounds"},"bCTL7TzxSNdNz-LnvmIt9":{"uri":"/melonJS/docs/melonjs/Body.html#getShape"},"GLUgbngTwAs-P5hX3Nw_R":{"uri":"/melonJS/docs/melonjs/Body.html#removeShape"},"epAFzTfwQO_PvXPHo2_7U":{"uri":"/melonJS/docs/melonjs/Body.html#removeShapeAt"},"A7YyiG9mbaANRfrdsh2eh":{"uri":"/melonJS/docs/melonjs/Body.html#respondToCollision"},"D92v47fDrQyGNRtpEWDBc":{"uri":"/melonJS/docs/melonjs/Body.html#rotate"},"VjTR0xE9RcvJQm4hstgJp":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionMask"},"l8fSQVnV49g468UcA5Ipt":{"uri":"/melonJS/docs/melonjs/Body.html#setCollisionType"},"BwV5RM8I8ZHY3CQDufcQo":{"uri":"/melonJS/docs/melonjs/Body.html#setFriction"},"XEN_FSVTbJB9ahr3EAi_y":{"uri":"/melonJS/docs/melonjs/Body.html#setMaxVelocity"},"ejWMWtyaPCmEqy8EcMtXN":{"uri":"/melonJS/docs/melonjs/Body.html#setStatic"},"udtLcqQZqS7I24ZdRDqc9":{"uri":"/melonJS/docs/melonjs/Body.html#setVertices"},"f0Gi4KYziIuIhnVwjDex2":{"uri":"/melonJS/docs/melonjs/Body.html#update"},"pCQZ2GNfPAFhhk72m7dO8":{"uri":"/melonJS/docs/melonjs/Bounds.html"},"2WuU_rc6Uma-urAf8oyMj":{"uri":"/melonJS/docs/melonjs/Bounds.html#bottom"},"H6suZdpoL4Zg2pBAKYOH6":{"uri":"/melonJS/docs/melonjs/Bounds.html#center"},"LsQrzJMaOIlXcvN2FLWog":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerX"},"4B6LfYcBatNvaNNc735MB":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerY"},"n8YatLiHdfFT7Zain1lTY":{"uri":"/melonJS/docs/melonjs/Bounds.html#height"},"v_uf60s38I8ONlHV6C5Ao":{"uri":"/melonJS/docs/melonjs/Bounds.html#left"},"do3N5xIsdXfwt9Q7Lhgdi":{"uri":"/melonJS/docs/melonjs/Bounds.html#right"},"hkEmU0iAIPrRcp_UuWU7y":{"uri":"/melonJS/docs/melonjs/Bounds.html#top"},"nkIrhuv_4itNfVSAwntap":{"uri":"/melonJS/docs/melonjs/Bounds.html#type"},"6-Ln-zEHhfuDaBZlBkztJ":{"uri":"/melonJS/docs/melonjs/Bounds.html#width"},"DxjPDTERCfmvxXn25sYmf":{"uri":"/melonJS/docs/melonjs/Bounds.html#x"},"bC1WE70gQqP7oz5Uw_HQn":{"uri":"/melonJS/docs/melonjs/Bounds.html#y"},"uiYEJgrIFgr1xV_lo_ev0":{"uri":"/melonJS/docs/melonjs/Bounds.html#add"},"vo322WlFrNOkwiU4KP_ws":{"uri":"/melonJS/docs/melonjs/Bounds.html#addBounds"},"kdGNF65s-x_Zb8AWTdF38":{"uri":"/melonJS/docs/melonjs/Bounds.html#addFrame"},"kFzpuD4GuISuTrwCfMgfi":{"uri":"/melonJS/docs/melonjs/Bounds.html#addPoint"},"cISvbyK2EdqGAQvToMurA":{"uri":"/melonJS/docs/melonjs/Bounds.html#centerOn"},"khZNv0GBh2FjysCUw3Fpg":{"uri":"/melonJS/docs/melonjs/Bounds.html#clear"},"DNaZy90vWvUw1jhftVcxR":{"uri":"/melonJS/docs/melonjs/Bounds.html#clone"},"e3y_JhuHnVts5q58PfXXV":{"uri":"/melonJS/docs/melonjs/Bounds.html#constructor"},"4C-5IivY8QSNXKwpsFi_e":{"uri":"/melonJS/docs/melonjs/Bounds.html#contains"},"ufKdIlhWYiR_Kpa2qpboS":{"uri":"/melonJS/docs/melonjs/Bounds.html#isFinite"},"WbR6dtOYEd-QAEdmCQ26m":{"uri":"/melonJS/docs/melonjs/Bounds.html#overlaps"},"4q8abVJOJhZgnW9O_gKkm":{"uri":"/melonJS/docs/melonjs/Bounds.html#setMinMax"},"XPsXNafXiA6lvooz7EE54":{"uri":"/melonJS/docs/melonjs/Bounds.html#shift"},"n5OooqYHgQRgF3vKXsNvZ":{"uri":"/melonJS/docs/melonjs/Bounds.html#toPolygon"},"idWafhD8lE_Yrd7Yuti0G":{"uri":"/melonJS/docs/melonjs/Bounds.html#translate"},"wnipNSZMl1-MOJ1gT5xp2":{"uri":"/melonJS/docs/melonjs/Bounds.html#update"},"mxH-3cXzKljlmtgw529U5":{"uri":"/melonJS/docs/melonjs/Camera2d.html"},"tS6yzY2HOqxOMsetRZADl":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html"},"XlKQ64CLzgkggOZONWdmf":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#BOTH"},"kKz_s_qdaLvqH-6jbJAp1":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#HORIZONTAL"},"sElkImc6yWWj40-gvaqNH":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#NONE"},"6cM57LVNxE9Tu4rI4iqLh":{"uri":"/melonJS/docs/melonjs/Camera2d/AXIS.html#VERTICAL"},"RrawfwaOOkZEYDROFep1q":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alpha"},"3sZsJ5wWBgZ1QNVk6wV6E":{"uri":"/melonJS/docs/melonjs/Camera2d.html#alwaysUpdate"},"rANWRFZyMsXatC7dYOaSQ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#ancestor"},"kI71DW6L5dM-Rmmn2XqTX":{"uri":"/melonJS/docs/melonjs/Camera2d.html#anchorPoint"},"6h35ggLO0_mV7jfX3KjRY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#autoTransform"},"_NNXai6UEKo1v2njOrI0G":{"uri":"/melonJS/docs/melonjs/Camera2d.html#blendMode"},"79anGxm52xpHEqngX8HCi":{"uri":"/melonJS/docs/melonjs/Camera2d.html#body"},"WpXadrCa2io8trRkI5Db6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bottom"},"KD6LKTXV-MGQIMGllKBpv":{"uri":"/melonJS/docs/melonjs/Camera2d.html#bounds"},"4krCnApttmPkAQryOnNay":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerX"},"M6LsDlBYWZOGvTAcXqWmJ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerY"},"icd8tB6RNdt_iUSlD6-ch":{"uri":"/melonJS/docs/melonjs/Camera2d.html#currentTransform"},"mXc-Q5d4h4HPiShpz-cMc":{"uri":"/melonJS/docs/melonjs/Camera2d.html#damping"},"PhldINjqWmCOmnqysF9pC":{"uri":"/melonJS/docs/melonjs/Camera2d.html#depth"},"F-R_AgTWPw5rsFWIu-LAx":{"uri":"/melonJS/docs/melonjs/Camera2d.html#far"},"41U3-DtE_MjciA1CFi97e":{"uri":"/melonJS/docs/melonjs/Camera2d.html#floating"},"ncPf2A0b6QHbBeKveEp3P":{"uri":"/melonJS/docs/melonjs/Camera2d.html#GUID"},"GZI5fCotroK761Lgz3asY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#height"},"bY4h9Gk0b_0PbCgYVKe9w":{"uri":"/melonJS/docs/melonjs/Camera2d.html#inViewport"},"fBXdlZ6BMvNB0hGhzpP7b":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isDirty"},"HwO4al_rGeVLXWEwb3M3r":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedX"},"NTQl2I_CJX-tjmkc0DKwA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFlippedY"},"HZRo4_OYKCE-WRI3bNRx6":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFloating"},"7UWiVU1UwgU4V_2tWvB-f":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isKinematic"},"wCFbK2MsA2MaX1L8f3EC3":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isPersistent"},"jC2afmCLpAdHhNqY6RmwN":{"uri":"/melonJS/docs/melonjs/Camera2d.html#left"},"XrhpH-Dv2AivSO_AyiacY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#mask"},"E7g7aiCbQoGi6RRsOZDj4":{"uri":"/melonJS/docs/melonjs/Camera2d.html#name"},"bW380igOTqo0gdSz12vsz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#near"},"Aaz9SPI4JI4-So_-vIh62":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onVisibilityChange"},"11pmafrrWl83scYcGwHq_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#parentApp"},"1B02ibwWrUDqbOaDrdkeW":{"uri":"/melonJS/docs/melonjs/Camera2d.html#points"},"ZjD-0fG9cyTDU_veCgspx":{"uri":"/melonJS/docs/melonjs/Camera2d.html#pos"},"LIHkgaJWIvHuN09TI0j8-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#projectionMatrix"},"AH0mHZRE8Z3gPp7Ie5p6o":{"uri":"/melonJS/docs/melonjs/Camera2d.html#right"},"UXG7b7Vb32qkv5CRJ4CFk":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shader"},"dqwygnf03zJzOnEofcq9B":{"uri":"/melonJS/docs/melonjs/Camera2d.html#tint"},"ZAWHku3xXz1m21h3UkfTR":{"uri":"/melonJS/docs/melonjs/Camera2d.html#top"},"jJXGUg8XSodeB_w41Yhv0":{"uri":"/melonJS/docs/melonjs/Camera2d.html#type"},"1wTaJITI3QnS3V_zQKpRW":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateWhenPaused"},"k61sfepEhENvOZNN5LFYL":{"uri":"/melonJS/docs/melonjs/Camera2d.html#width"},"_0X2qRn5-UFSOZN-qzxZn":{"uri":"/melonJS/docs/melonjs/Camera2d.html#smoothFollow"},"oMwgGSJ89neNw_-h3cE94":{"uri":"/melonJS/docs/melonjs/Camera2d.html#angleTo"},"KcplEqsMruTz2viD08wQe":{"uri":"/melonJS/docs/melonjs/Camera2d.html#centerOn"},"vpkgoD8ROZO2jsqY_LL0m":{"uri":"/melonJS/docs/melonjs/Camera2d.html#clone"},"l2qr4f1qyj0yrT0iRvvrO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#constructor"},"024_jtqMlya7jE88pYd9k":{"uri":"/melonJS/docs/melonjs/Camera2d.html#contains"},"cXgBBHvfaFS1ZHz1xELdK":{"uri":"/melonJS/docs/melonjs/Camera2d.html#copy"},"OR51WEMP36LMMQgKCP8yA":{"uri":"/melonJS/docs/melonjs/Camera2d.html#distanceTo"},"o9JhbnV_wDd67N2oKEOOC":{"uri":"/melonJS/docs/melonjs/Camera2d.html#draw"},"NNAZp_hj7qC5gtd_Dd4D_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#equals"},"NYBzop252UVfk9H6aEIpX":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeIn"},"qV1GfHCOCF8Mu_ztFdneE":{"uri":"/melonJS/docs/melonjs/Camera2d.html#fadeOut"},"yo5FnKbO2iyAMfCFASMIt":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipX"},"h8vEZl54UTpH35zMwoaR2":{"uri":"/melonJS/docs/melonjs/Camera2d.html#flipY"},"6eY_YmQ2Mi1aQI36cP0Mi":{"uri":"/melonJS/docs/melonjs/Camera2d.html#focusOn"},"o7n4wN4P1Zxe0hR6ou8yK":{"uri":"/melonJS/docs/melonjs/Camera2d.html#follow"},"JvUGSyfrFeiGEUGMM_VzU":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getAbsolutePosition"},"6EP5cABGeimpIQ4XSFCwb":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getBounds"},"aAmbvH_MF8zasRP3uhf6h":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getIndices"},"RARtCVl9WpDhhX2z1lLcz":{"uri":"/melonJS/docs/melonjs/Camera2d.html#getOpacity"},"hVBfAEjYQRn8bsNMHIb2m":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isConvex"},"qi4SMF3QBfOFkf-MWiDvS":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isFinite"},"4A50s2eIQQLmQUnvCs-LM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#isVisible"},"yg_PYH0dIm5e4XzARX8Ja":{"uri":"/melonJS/docs/melonjs/Camera2d.html#localToWorld"},"J7xbees9XwDSvoyTZKwMe":{"uri":"/melonJS/docs/melonjs/Camera2d.html#lookAt"},"Df2e9M_ml_KIjcRr8qFz4":{"uri":"/melonJS/docs/melonjs/Camera2d.html#move"},"7WMBwoZC2fbVkBCm90o93":{"uri":"/melonJS/docs/melonjs/Camera2d.html#moveTo"},"kjYeR57YaSdn5HVQD8ZRu":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onCollision"},"q5hc20LLhPB_EFNnAsXLI":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onDestroyEvent"},"33U0-BnhcTy9FzmNxi996":{"uri":"/melonJS/docs/melonjs/Camera2d.html#overlaps"},"udUHZmwWS-U5GDWjWQMWc":{"uri":"/melonJS/docs/melonjs/Camera2d.html#postDraw"},"upYK4UKM8M-vNJ1zX_2ST":{"uri":"/melonJS/docs/melonjs/Camera2d.html#preDraw"},"HGBlVRdPhVyCYsjUsq_-u":{"uri":"/melonJS/docs/melonjs/Camera2d.html#recalc"},"X3e77v8q9HrifycbV5fyQ":{"uri":"/melonJS/docs/melonjs/Camera2d.html#reset"},"KIwOfpI7uWv13aJTwaeRK":{"uri":"/melonJS/docs/melonjs/Camera2d.html#resize"},"mT3-RJY1oT4QEa1J4wxRR":{"uri":"/melonJS/docs/melonjs/Camera2d.html#rotate"},"kSOSS37GwjYEW2hLsBnkk":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scale"},"icOCTMnMXE6zxEuLd75bd":{"uri":"/melonJS/docs/melonjs/Camera2d.html#scaleV"},"cRyG0RbHbzWbSpUHfMyzO":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setBounds"},"wA9u53pEDqnvhKc5t7FWc":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setDeadzone"},"FyheD68feIy3QZvlpq9u9":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setOpacity"},"j3_jzBOIcFz7wZPYeh6PY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setShape"},"bbUGFwcO0GCpNt4OAqZrl":{"uri":"/melonJS/docs/melonjs/Camera2d.html#setVertices"},"Xf1YS_SLRvMNXsN_7iXuk":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shake"},"Gz9aSqHPGHonegCcskljR":{"uri":"/melonJS/docs/melonjs/Camera2d.html#shift"},"CChfu91yHnBxSviA133qB":{"uri":"/melonJS/docs/melonjs/Camera2d.html#to2d"},"xxRNFjSpORi0BsbdxaVSt":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toIso"},"bn81qL8Qml_rcZx_gnfTY":{"uri":"/melonJS/docs/melonjs/Camera2d.html#toPolygon"},"saBaEhktrffQZHy1mPKN3":{"uri":"/melonJS/docs/melonjs/Camera2d.html#transform"},"qgJFvA_ysQh4yLtKgsIw8":{"uri":"/melonJS/docs/melonjs/Camera2d.html#translate"},"PWBXi8lEgixtcfXGPFfDN":{"uri":"/melonJS/docs/melonjs/Camera2d.html#unfollow"},"8lqaIcPnrmYf2nsF8Cgg-":{"uri":"/melonJS/docs/melonjs/Camera2d.html#union"},"ugzciVnZgGIb9sBRmB5Pw":{"uri":"/melonJS/docs/melonjs/Camera2d.html#update"},"FNcp2ljAOvYInb4A2lguM":{"uri":"/melonJS/docs/melonjs/Camera2d.html#updateBounds"},"73xdiMYbkSZfE-7cfvcj_":{"uri":"/melonJS/docs/melonjs/Camera2d.html#worldToLocal"},"SwDUPkQG9mQHPAjR6hdg2":{"uri":"/melonJS/docs/melonjs/Camera2d.html#onAnchorUpdate"},"1JiXaJQ9MDgHsZK9kwLYF":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html"},"Q6MRSmiPufa3Tfu7SubyI":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#depthTest"},"LfhDVmXw8dpXqOVTCjIzh":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#designRatio"},"RWxjUyqtjcJ0-0Xp0yQBh":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#height"},"Q-UhZi8CplTIlAlX4PLPl":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#isContextValid"},"eMuXK9zMqhmDDfdmfTHVG":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineJoin"},"K7gyMfVLUaNXMyDHPUtac":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineWidth"},"e8TOcQ_ePdGc1bbM2xNFP":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#path2D"},"RYF1SHXDaJqBm4_YdUy6B":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#renderTarget"},"NlHm_KDsozl63SuSAfjV5":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scaleRatio"},"tjdd0fx2kgzwbPx671Ho4":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#settings"},"ouo_EI0D3UQZ6NWLEVDXr":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#type"},"yoKo74gAvLim6Z8oW1Kox":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#width"},"vAicY9D8sY4lzZtYAuj3B":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#beginPath"},"yReFq1FR52n-Fe-5eKBVG":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clear"},"JOu9L2nNSy-9_teAPWtcY":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearColor"},"2uwroD6WylYAef9SU2sTA":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearMask"},"nXHFfGeWLpiRWIgV9rAVc":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearRect"},"gFPk6uj5jwZm5DA6zEWDx":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clearTint"},"Dj2jMFx4YTz1SccGOH8Fi":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#clipRect"},"mswyjgNQzVQpUFfRlcQSg":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#closePath"},"G1h2QNfu1AuNT0IsPLW9I":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#constructor"},"30Cco4Gpd62tLwrCHwOro":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#createPattern"},"BcG_4uCAC33hHlZeSrn5D":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawImage"},"R4b8pohY2_fYYjZvAaA09":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#drawPattern"},"n2rtUzUI-0UYZgCFxLo0Q":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fill"},"Sr_tVKBH2zMUETVtK-A54":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillArc"},"6Od-nSvLkb0ltZ9cmpJ_O":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillEllipse"},"eKcf-jc1p7uNrel2tgWqa":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillLine"},"48y2jopTKoHJaFA8FwFbW":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPoint"},"o98dMy_CzLVkCFF1Foxyh":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillPolygon"},"66-kqCNvnU24-goLSNTfS":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRect"},"82n22-kEXGP2RDcZomG5l":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#fillRoundRect"},"YXcpiv1p8oWi65G_TgY1w":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#flush"},"MbCYsAMTvft9vUMqIU3Oz":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getBlendMode"},"tt9vGMo-o98wBsRuNM-f3":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getCanvas"},"EL0VWq_OjcT5vVaCJ-5kt":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getColor"},"qYLoZwI6BGLquWYVLlFnL":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getContext"},"iqX2ygYAMK-oU3ZW-xFLN":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getGlobalAlpha"},"fYhj3ePbc2qsVnW-a8CCe":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getHeight"},"qVSgThFgAjpteOra9l3SJ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenCanvas"},"DO6xILZPzq5Zg8-WI_H_F":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#getScreenContext"},"q4Wy2Q5fltq_sDxamkcrY":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#globalAlpha"},"vK-FDrdFMjLm01RFD3rgC":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#lineTo"},"0mbgJfpzYOkxg-8WaCymq":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#moveTo"},"9Z8dcB-Y_VdKM7guPNDNv":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#overlaps"},"opR-Y_QA2QTPCrP-ejW2h":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rect"},"yzrSH_a8PnI633UiOBndb":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#reset"},"qLO4HfUemzk-N7F9Rkrzl":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resetTransform"},"5gHi_xewuLkqWyvbybh-h":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#resize"},"IyOhWFz2DfwcNeAIK-Bn6":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#restore"},"FfA2bek5a4aXjtpmIInJE":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#rotate"},"w2YZ9TpSqwQ2s0z08RM0L":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#roundRect"},"4NXvMJSCSbvFOrkKgDVQa":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#save"},"gFDiClRovwhQIYWElrDs3":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#scale"},"zixDKrwFjmlFHs4qXJtYo":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setAntiAlias"},"Atq9XLnzsnkwOSajlP9MZ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setBlendMode"},"1_jDeoWDTXvdS4ma2elLM":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setColor"},"je2KKjTkvBVVx5bq5ONf7":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setGlobalAlpha"},"nyIFS4u_dZyAbEJNJ-59V":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setLineWidth"},"5rtSOYfr-JhGuvbNCezWQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setMask"},"B-1inh7c0kVHUm-p3p7BU":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setProjection"},"xgXVxr2DhFhAmJ6rXnYXy":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTint"},"_HcwXlf2_NoCkPwsZelje":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#setTransform"},"vRPfr7FNufJAZpv1zAPf0":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#stroke"},"YSxZuWvYuqqAAbSZbTxqO":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeArc"},"-kfpctS8XAMmSoZqzZ1i9":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeEllipse"},"dZX5SEFT5PhHZzZnrrw5o":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeLine"},"N55zFQlXOi9FhnM_RyB-A":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePoint"},"XCMJ-itS0XZ1HFNoQSQJw":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokePolygon"},"VRnyMeFIfoCHTov0Lc_0o":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRect"},"sL2G4RMdwVAG86YhPfXAt":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#strokeRoundRect"},"95xY3bt2VgWIlWc9iCgvP":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#tint"},"NH0Q5iccak_kOEHgpp4H4":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toBlob"},"O-0h0BnHxS9hXJ11ne7S0":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toDataURL"},"S5-iS45jORvuv5x3Y8ALw":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#toImageBitmap"},"CxUCO5d0J_2Az6jkFCKha":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#transform"},"zqEXih92Le04nDMJF3aQ8":{"uri":"/melonJS/docs/melonjs/CanvasRenderer.html#translate"},"NOWAovyIceBk2HA025m3K":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html"},"2Z12rkE-72TSswrEB2qNg":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#height"},"3dXTWBCjiT40nt-9QpbGQ":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#width"},"zkQWEskjV96OtwNlKzbft":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#clear"},"iAEEdXAnSd3lyxAcdKGQ3":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#constructor"},"xhSj_EpnQXPr5zVnLhCL8":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#getImageData"},"1d6bu40-vpJi-HNXMbAA5":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#invalidate"},"Yodwfj3Y8RfK72WHtMw3C":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#resize"},"T-BFJDhcQaqe3iAbGnFBM":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#setAntiAlias"},"Vc8Oz_aWURdk1ivrLLooS":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toBlob"},"ia0dBssk5X7McpCz4GIYY":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toDataURL"},"QfI4NBIUe-udVXWzivxeu":{"uri":"/melonJS/docs/melonjs/CanvasRenderTarget.html#toImageBitmap"},"zhNRTnRkXbxHrILBFguzK":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html"},"OvLGE_lN4mgZhv4WKOaoK":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#height"},"5fEn78v2K7SpJN2yajNtL":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#width"},"UUWTbTXFQiv-CuiAtvZWi":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#clear"},"5SJQv-oHodj1AuM35N08e":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#constructor"},"Ii82yp8N8Js6z0II4immv":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#getImageData"},"YKyjqqDCLmhYVpr7i-YVT":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#invalidate"},"hXfzN8vneVueCbhBh2cMe":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#resize"},"o3OhataD-s4z2Aq7J0jEL":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#setAntiAlias"},"Sf8yxx3vqxWHuYizNmmgW":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toBlob"},"5rOqsK0q5H0iTwDgKc0P3":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toDataURL"},"USPne1CCE0MUVEiVOfFLT":{"uri":"/melonJS/docs/melonjs/CanvasTexture.html#toImageBitmap"},"kpYMko2T3n31kGr9rm7Kt":{"uri":"/melonJS/docs/melonjs/Collectable.html"},"1ZE768nb5e3yGKDx9KswT":{"uri":"/melonJS/docs/melonjs/Collectable.html#alpha"},"UrYojggrdgBBTzGyWaC2O":{"uri":"/melonJS/docs/melonjs/Collectable.html#alwaysUpdate"},"4q3YGOlT4kSRkpiaY2Jqf":{"uri":"/melonJS/docs/melonjs/Collectable.html#ancestor"},"kfIDtZGjQ3WVOWCCj4y7j":{"uri":"/melonJS/docs/melonjs/Collectable.html#anchorPoint"},"JAg2TX-YcM89qSQtD0GZe":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationpause"},"fUG61W34INNlOqYIjaXfX":{"uri":"/melonJS/docs/melonjs/Collectable.html#animationspeed"},"HPNLgDtevP2lMwtzGxSxb":{"uri":"/melonJS/docs/melonjs/Collectable.html#autoTransform"},"8D3dKcERyZo2qxmDS8IeM":{"uri":"/melonJS/docs/melonjs/Collectable.html#blendMode"},"iPAZDRaV2Lqj7ticJstne":{"uri":"/melonJS/docs/melonjs/Collectable.html#body"},"Cz2ls2JsaCyF8-I2yJ7tk":{"uri":"/melonJS/docs/melonjs/Collectable.html#bottom"},"h_VBYdzTye3V47kZkxMNr":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerX"},"pUyKogIcRsTu9Vu3C-dqW":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerY"},"Xj08AuqwdUCe0e1XHbAwD":{"uri":"/melonJS/docs/melonjs/Collectable.html#currentTransform"},"ytdKkNe_GTgv96xWVTD6g":{"uri":"/melonJS/docs/melonjs/Collectable.html#depth"},"wFV0mFEIoFfWTUu9_klWm":{"uri":"/melonJS/docs/melonjs/Collectable.html#floating"},"R9M3zuDgQj6jh_lHiZa0d":{"uri":"/melonJS/docs/melonjs/Collectable.html#GUID"},"oJaR0_RQ11tQSi2EwYmK9":{"uri":"/melonJS/docs/melonjs/Collectable.html#height"},"TUu-GAiy_E7RG39cUKnx9":{"uri":"/melonJS/docs/melonjs/Collectable.html#inViewport"},"AUo6YZI2v58oJyauzfbpy":{"uri":"/melonJS/docs/melonjs/Collectable.html#isDirty"},"BO8CbdebYwGKXWAMLxWrB":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedX"},"ao8Ns6OMAr2zD4O6XqJRg":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlippedY"},"x-VKbK20PRgq5hWSfgM1z":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFloating"},"gV2r4as0_HLzFsvUHoYa_":{"uri":"/melonJS/docs/melonjs/Collectable.html#isKinematic"},"WLsQXCGfS8C-B_L2i0s_Q":{"uri":"/melonJS/docs/melonjs/Collectable.html#isPersistent"},"G1tz9HabsT08ZGUD8npjn":{"uri":"/melonJS/docs/melonjs/Collectable.html#isVideo"},"w8Qj9tk6d341xTDXLSGQF":{"uri":"/melonJS/docs/melonjs/Collectable.html#left"},"205K7mdKv-YDhigyTe3uw":{"uri":"/melonJS/docs/melonjs/Collectable.html#mask"},"i55EuSUVj35xOw7KHB8Ro":{"uri":"/melonJS/docs/melonjs/Collectable.html#name"},"mhx5sgkCVhE7YgqrY0Pvo":{"uri":"/melonJS/docs/melonjs/Collectable.html#offset"},"X_NjlQ5C62Z-CAOJRTLmQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#onVisibilityChange"},"wtOJuibMr5Iix9efrIIXC":{"uri":"/melonJS/docs/melonjs/Collectable.html#parentApp"},"Pv-fS8XHo2KgT67CALWUY":{"uri":"/melonJS/docs/melonjs/Collectable.html#points"},"GOqwvesVWlEu2vE6c-UEy":{"uri":"/melonJS/docs/melonjs/Collectable.html#pos"},"iYt5pItPsvPfVNAzO-ZpX":{"uri":"/melonJS/docs/melonjs/Collectable.html#right"},"x1lOaGYVVupXWtdRG9VO0":{"uri":"/melonJS/docs/melonjs/Collectable.html#shader"},"wpFneevmSgtlMUwMhswNk":{"uri":"/melonJS/docs/melonjs/Collectable.html#source"},"G4tM5GcpE4uqFEygZqcvD":{"uri":"/melonJS/docs/melonjs/Collectable.html#tint"},"DrZacFdbuIypEjzN4HdXm":{"uri":"/melonJS/docs/melonjs/Collectable.html#top"},"CbBguzVDLTBvArFoQt1HP":{"uri":"/melonJS/docs/melonjs/Collectable.html#type"},"TNxq3m-bHiFC4dg0zmini":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateWhenPaused"},"fxCA9W37xn0TjafvgQUj1":{"uri":"/melonJS/docs/melonjs/Collectable.html#width"},"J3xGh2o8lnEWY8Z8IOZ6o":{"uri":"/melonJS/docs/melonjs/Collectable.html#addAnimation"},"NjW3s2IJuKKC7uTiNYvBe":{"uri":"/melonJS/docs/melonjs/Collectable.html#angleTo"},"WGL3ZEtSOVNcT8aDL0QCz":{"uri":"/melonJS/docs/melonjs/Collectable.html#centerOn"},"I8X58yPL63mcKNQjsPOh7":{"uri":"/melonJS/docs/melonjs/Collectable.html#clone"},"9vwrPys4piXDjqThuN5Xw":{"uri":"/melonJS/docs/melonjs/Collectable.html#constructor"},"kl_Ah1UhzVyf66Ki0NA1O":{"uri":"/melonJS/docs/melonjs/Collectable.html#contains"},"3ygAYN8HEUd5ALnbE9m6e":{"uri":"/melonJS/docs/melonjs/Collectable.html#copy"},"q3I43LxmJurFfatzH3fu_":{"uri":"/melonJS/docs/melonjs/Collectable.html#distanceTo"},"jcCRWiCmD7uM984fY-coi":{"uri":"/melonJS/docs/melonjs/Collectable.html#draw"},"DLI08-6QnAb-uknEnNHjQ":{"uri":"/melonJS/docs/melonjs/Collectable.html#equals"},"vnPfQQzg-DZZfTJQ_kMWm":{"uri":"/melonJS/docs/melonjs/Collectable.html#flicker"},"TvbQsZG2r_ct-2oQ3lhQb":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipX"},"uyPrhigr2NV8ZG7Q2UajW":{"uri":"/melonJS/docs/melonjs/Collectable.html#flipY"},"-ChINk-W55N5CAam0cAGw":{"uri":"/melonJS/docs/melonjs/Collectable.html#getAbsolutePosition"},"lZJfFu2FmLJWMyBFdaw42":{"uri":"/melonJS/docs/melonjs/Collectable.html#getBounds"},"BU4hHV6sIyB3cJ8ImYIB2":{"uri":"/melonJS/docs/melonjs/Collectable.html#getCurrentAnimationFrame"},"DJzrSZ6XdLeFInycNtyox":{"uri":"/melonJS/docs/melonjs/Collectable.html#getIndices"},"MBlwrYkszWSE_jmU-X2Se":{"uri":"/melonJS/docs/melonjs/Collectable.html#getOpacity"},"RFrnJdhYzDbqKUXfQiiNq":{"uri":"/melonJS/docs/melonjs/Collectable.html#isConvex"},"A6t64LbOSzBe7j9SuiuPt":{"uri":"/melonJS/docs/melonjs/Collectable.html#isCurrentAnimation"},"jSpLTVEDrLmz83qaNaVrK":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFinite"},"C_fZjHbgg6T1JM9WRwiSt":{"uri":"/melonJS/docs/melonjs/Collectable.html#isFlickering"},"kY8Bt7TTK9Zt8JxtNfFHI":{"uri":"/melonJS/docs/melonjs/Collectable.html#lookAt"},"RLzuCUTcRDX3ztFh4YZxh":{"uri":"/melonJS/docs/melonjs/Collectable.html#onCollision"},"_kxNtilsoPupig58FLhUT":{"uri":"/melonJS/docs/melonjs/Collectable.html#onDestroyEvent"},"SXU4qhSwo03AeZ3Ip4rp4":{"uri":"/melonJS/docs/melonjs/Collectable.html#overlaps"},"cz15w9sx_DgVGoi4pCIiy":{"uri":"/melonJS/docs/melonjs/Collectable.html#pause"},"_up6igqAaW_v5p9HfnL_S":{"uri":"/melonJS/docs/melonjs/Collectable.html#play"},"eFnNpxQYjLC9Vx7mBsBPO":{"uri":"/melonJS/docs/melonjs/Collectable.html#postDraw"},"AUqx_hwcSqC-SJVlvPCAq":{"uri":"/melonJS/docs/melonjs/Collectable.html#preDraw"},"Bel0T7qjnSYVFraVyrFdn":{"uri":"/melonJS/docs/melonjs/Collectable.html#recalc"},"ueHPI_KDPFTXezuYV0aoi":{"uri":"/melonJS/docs/melonjs/Collectable.html#resize"},"XeAjYwz6kmvpBs7SYnzG_":{"uri":"/melonJS/docs/melonjs/Collectable.html#reverseAnimation"},"1b0WS0B0djjOnc9fUk5jE":{"uri":"/melonJS/docs/melonjs/Collectable.html#rotate"},"0ffQLdaIHNNN1iioFsfrM":{"uri":"/melonJS/docs/melonjs/Collectable.html#scale"},"XZnzjlPYYMN6mZ6TPE5Dg":{"uri":"/melonJS/docs/melonjs/Collectable.html#scaleV"},"NUlzDpplvH-U-pBGMSnbI":{"uri":"/melonJS/docs/melonjs/Collectable.html#setAnimationFrame"},"NJpWvF5AibzujWEIUxxB9":{"uri":"/melonJS/docs/melonjs/Collectable.html#setCurrentAnimation"},"Tj7d9YIPjX1u3sqxLaaqT":{"uri":"/melonJS/docs/melonjs/Collectable.html#setOpacity"},"F_QSB43P8DN1LEU0G09iA":{"uri":"/melonJS/docs/melonjs/Collectable.html#setRegion"},"FtBJbPj5u4mQRJ_AGkKUa":{"uri":"/melonJS/docs/melonjs/Collectable.html#setShape"},"D9OxGzZM7db9kwfpPkolo":{"uri":"/melonJS/docs/melonjs/Collectable.html#setVertices"},"JrVVdAVTz0qP_X2OxK0DR":{"uri":"/melonJS/docs/melonjs/Collectable.html#shift"},"ytjnX6BJJfJvD6QBi_DMU":{"uri":"/melonJS/docs/melonjs/Collectable.html#to2d"},"NwtW9uPPSlbP3_FgiUTda":{"uri":"/melonJS/docs/melonjs/Collectable.html#toIso"},"Ly3VmqgmcXziWAb9Sqjjx":{"uri":"/melonJS/docs/melonjs/Collectable.html#toPolygon"},"Sj-L5ZLZpBq7bTfuPRc0p":{"uri":"/melonJS/docs/melonjs/Collectable.html#transform"},"378zFsx4jU7rtQ81-Hwzf":{"uri":"/melonJS/docs/melonjs/Collectable.html#translate"},"HxFxiwH1ozjNrvmG3nzEF":{"uri":"/melonJS/docs/melonjs/Collectable.html#union"},"GU2LU8Jqh9FsQVKCTVUtd":{"uri":"/melonJS/docs/melonjs/Collectable.html#updateBounds"},"dGF8OJf1EFBvQ6rPb6ciU":{"uri":"/melonJS/docs/melonjs/Collectable.html#update"},"lEEe9Cgw8w6RPslDptX_9":{"uri":"/melonJS/docs/melonjs/Collectable.html#onAnchorUpdate"},"bRrDIzplAJfU5mGtgTLAS":{"uri":"/melonJS/docs/melonjs/Color.html"},"dcKaSLrCQPfp1mPSl4m81":{"uri":"/melonJS/docs/melonjs/Color.html#alpha"},"tQz2il9N4uB0QHMQGt7eJ":{"uri":"/melonJS/docs/melonjs/Color.html#b"},"NmInnSuIaWmCzg8hXKCLI":{"uri":"/melonJS/docs/melonjs/Color.html#g"},"ATiGrbtRnaUk9w2nlYwLl":{"uri":"/melonJS/docs/melonjs/Color.html#r"},"-7rK7dNMAVibi5SOxTbMr":{"uri":"/melonJS/docs/melonjs/Color.html#add"},"LWvvUIJ4OTBGY8wQ47fk-":{"uri":"/melonJS/docs/melonjs/Color.html#clone"},"-dBk57JFbCMVeGdPFr_mW":{"uri":"/melonJS/docs/melonjs/Color.html#constructor"},"ChJZ4qiAX8l3tPhiiBxPb":{"uri":"/melonJS/docs/melonjs/Color.html#copy"},"ORdR0FZTsZ-a-JYTI7LER":{"uri":"/melonJS/docs/melonjs/Color.html#darken"},"2XlCZyUO5An4DVHEpp-3O":{"uri":"/melonJS/docs/melonjs/Color.html#equals"},"O8oszlDq0hxekTPYvh8rr":{"uri":"/melonJS/docs/melonjs/Color.html#lerp"},"R_wJotbFNJtWvI2mG85xn":{"uri":"/melonJS/docs/melonjs/Color.html#lighten"},"QNf6Buh50QOzDIRimOU-k":{"uri":"/melonJS/docs/melonjs/Color.html#parseCSS"},"BVk_o5_G3FcK1nCL9_lTy":{"uri":"/melonJS/docs/melonjs/Color.html#parseHex"},"tM4DPJ21iQGSR14033el1":{"uri":"/melonJS/docs/melonjs/Color.html#parseRGB"},"IWVjyTw9seqXyURwKSMpC":{"uri":"/melonJS/docs/melonjs/Color.html#random"},"cjYrBPYbfNMDS-21yfhZl":{"uri":"/melonJS/docs/melonjs/Color.html#setColor"},"TV4OJjU_XgwA8jYIvvMlq":{"uri":"/melonJS/docs/melonjs/Color.html#setFloat"},"MzxVNp4N3E3QEI8BwSkz2":{"uri":"/melonJS/docs/melonjs/Color.html#setHSL"},"6zsKYAo5Qow8NuCZMu6m1":{"uri":"/melonJS/docs/melonjs/Color.html#setHSV"},"vlZLCQN5NGLvAbl6j46_F":{"uri":"/melonJS/docs/melonjs/Color.html#toArray"},"JaFScwGW7qexvLxudMAKY":{"uri":"/melonJS/docs/melonjs/Color.html#toHex"},"EpLPPWFXE2Un0A2AixgPU":{"uri":"/melonJS/docs/melonjs/Color.html#toHex8"},"pfgFf33rvyB4Q-RnSfawV":{"uri":"/melonJS/docs/melonjs/Color.html#toRGB"},"m6_Xxq_WFI_4ubpkG2neQ":{"uri":"/melonJS/docs/melonjs/Color.html#toRGBA"},"ABvSyHV9UPGJ0OGEtXFow":{"uri":"/melonJS/docs/melonjs/Color.html#toUint32"},"5eeQsBsxsLOMCg5z1Sb63":{"uri":"/melonJS/docs/melonjs/ColorLayer.html"},"Ge_3PZLcGjnEfp8RjN2l9":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alpha"},"HP2YUDWwlQ6m5C-CbObge":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#alwaysUpdate"},"OiZTolzXl93OaUAAlTZN_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#ancestor"},"EGwYY3azWzQEHpWdnLGNa":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#anchorPoint"},"uZBoieYML7SSD3n1SpEnq":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#autoTransform"},"CdOj4_ZdYEYifoEoSEvzo":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#blendMode"},"nqNpF2UltzYCg20D51hzu":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#body"},"TYzMBw-Uk_sMtpzENT-yt":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#bottom"},"pG22xbOgSARv7Q01FGzCl":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerX"},"c4bSWzkCBHJX9KR-8WeKK":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerY"},"MudBOdpQIB3FYT2DaWk61":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#color"},"C03z9w-YHko4yxvxbN5Oa":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#currentTransform"},"0CDSrbVzMWzyqefDnpDc_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#depth"},"rXIz0dm-j3OeGL20epIVb":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#floating"},"Q-sDyf7_xphpL2UptEmIT":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#GUID"},"t1lwEihbmJzyUa03lr9eV":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#height"},"3CI6IX0tnOKhWvSeTmgsX":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#inViewport"},"Fgb9r1nOQVbAELswAMiD-":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isDirty"},"m2220MQvmSN2AxRxut-CN":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedX"},"hPwnwwqcEDIHkX2h04y_L":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFlippedY"},"PKkbImU_CF-83uLKD7dnH":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFloating"},"4stMjDqeMBa3P6eghIueK":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isKinematic"},"ONMaqd4i2KDXw_2Uqv1yQ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isPersistent"},"zYcwnonNJ_w6OYMlTqydR":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#left"},"EPqoajJvfMcuEqY-Qmtl5":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#mask"},"gSAE1b6Bo0uTz2CebokdP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#name"},"EoGruI2pmUNACq4zvSvA9":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onVisibilityChange"},"WFtcpVAsVHoqzcFAAjNv-":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#parentApp"},"ptx9RulBRMSZIQOL896oj":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#points"},"5NbTOLDeXqjUVsMTmJHd5":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#pos"},"pi0dtHpkumjba-zUUIoPJ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#right"},"ay-pA6ugLRKZWR0xFhM4Y":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shader"},"ewW3KMF54usumdpz-lkWL":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#tint"},"sE-iaRuFkzrPf3yRvQm5l":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#top"},"gbsU9_ZfpK3UmzpB5Lacc":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#type"},"_FrbGiNW-ODMRskcPdedf":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateWhenPaused"},"1_8kQFqmJILbZA71KRldP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#width"},"kAbfT397_TqJgnAbMbJb5":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#angleTo"},"f5Z9nx4YPtvtS6Stb_SL7":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#centerOn"},"htkbNoypf6HnnLLcF0zGh":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#clone"},"ZzA8Lf1l98hqkHO74XFNW":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#constructor"},"z50hp17av25qK52NurJXA":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#contains"},"A98W5SU2gLhoWTCH0Mlad":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#copy"},"U_I8lHlav_0cQhef3vU6H":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#distanceTo"},"g7BAXQwhyVC4GLmFphJ87":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#draw"},"_9uJw8OGWGf5e2U0eNgt-":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#equals"},"vmShL4DYJmHZjVQZKhTcI":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipX"},"LU5eIbNaOH-_5wNWPC8F1":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#flipY"},"ivHxAsMqajjRgIIJJ65ub":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getAbsolutePosition"},"L0ieI-UQ_qqM5-yzBdNP4":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getBounds"},"mygpzX-78tVnf1a4YZint":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getIndices"},"tizAsYWECw2V2Xz_ik0m1":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#getOpacity"},"XrmsTiGCIZ9gcvprBizUA":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isConvex"},"7SCbBexBq6ecE9XZVdhBQ":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#isFinite"},"SbYILunisVJ3EsMDfjSz7":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#lookAt"},"GzW5kIKuM7_j1EdgAnclD":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onCollision"},"bTc9w1g8-RlekfvfgRxqr":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onDestroyEvent"},"TgaQy73Kc_dEH7piBd6R_":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#overlaps"},"IrTSCs6eJId17WdrYBTKp":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#postDraw"},"e8CeXB7ta1SnvJZD049R4":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#preDraw"},"FuijLQh6RW6sEHZbbIffW":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#recalc"},"_up-VWW4k5RaM0LttYLsK":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#resize"},"JSjgUIfq9K2RNwkPF7vXl":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#rotate"},"dh6bWA_-EB8L40D3H1k57":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scale"},"QrArVGbbLqq7inI0JXJ4K":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#scaleV"},"jeuwAooi1EVDeg4ZUB93D":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setOpacity"},"pADA2bRkXROtZPMIsNcIP":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setShape"},"MvcZB2J4PcJ3x5P6YrxYv":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#setVertices"},"EoDjdtekMxtgNHHha4L3U":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#shift"},"8rDbleQz9elgUdrtgrnUd":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#to2d"},"y70Oi-vGhe-svw1oV4mfy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toIso"},"dylVxVCwELE--38oHmuIx":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#toPolygon"},"m-_mlfm4OHpxpZB3JpLFR":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#transform"},"HZoAskDjlO0ct7L4RcJYy":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#translate"},"U0qbpdEsrGUiiiOeJ6mWl":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#union"},"9mBSbA7C6WPuRR_6OSkwB":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#update"},"i2EsJPhBLL7sdJ5ZEqe_n":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#updateBounds"},"rTs6t7G9q01g28zVvSXjV":{"uri":"/melonJS/docs/melonjs/ColorLayer.html#onAnchorUpdate"},"penFCFA02V1P1pKHxj5Te":{"uri":"/melonJS/docs/melonjs/Compositor.html"},"EHBdJjI-psrb0wNFsE8GT":{"uri":"/melonJS/docs/melonjs/Compositor.html#attributes"},"DrMV-4tMgjwKMIf3GE3XB":{"uri":"/melonJS/docs/melonjs/Compositor.html#currentShader"},"4xocD3aHD6TZ9ZEG8AUGS":{"uri":"/melonJS/docs/melonjs/Compositor.html#defaultShader"},"H07PFQfBYl3qHUPYY0m32":{"uri":"/melonJS/docs/melonjs/Compositor.html#mode"},"c5XSZTEPTAeMrLKECp4d1":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexByteSize"},"7mG0FOAahBFTFIzxKozdf":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexData"},"iFBTLMqM954UpTi9q04ZW":{"uri":"/melonJS/docs/melonjs/Compositor.html#vertexSize"},"QViuXSRGmvsK8WK2Kqcqm":{"uri":"/melonJS/docs/melonjs/Compositor.html#addAttribute"},"K6KqFUcGsWbwmzu6dQw1J":{"uri":"/melonJS/docs/melonjs/Compositor.html#bind"},"cIlswiJx2GfRh5jLvX9IQ":{"uri":"/melonJS/docs/melonjs/Compositor.html#constructor"},"BfSCWkmq8Xc_ciyb58Ygt":{"uri":"/melonJS/docs/melonjs/Compositor.html#flush"},"HhmicGFZ02mwmkLUF9yLq":{"uri":"/melonJS/docs/melonjs/Compositor.html#setProjection"},"XB3TM7bzF9QtsHOu2jcMh":{"uri":"/melonJS/docs/melonjs/Compositor.html#useShader"},"fk4DO1mdJHDyK18_AEdxJ":{"uri":"/melonJS/docs/melonjs/Container.html"},"lyYYSrQyg6F-vwPIIKVfU":{"uri":"/melonJS/docs/melonjs/Container.html#alpha"},"5mb8kLhxKXeloOvjAWOXx":{"uri":"/melonJS/docs/melonjs/Container.html#alwaysUpdate"},"c4W4NC224S2X2TNsBD-NE":{"uri":"/melonJS/docs/melonjs/Container.html#ancestor"},"eBlo4_mFQudIeVieMc52y":{"uri":"/melonJS/docs/melonjs/Container.html#anchorPoint"},"AhrS9av02dvtDZ5KxJ7L_":{"uri":"/melonJS/docs/melonjs/Container.html#autoDepth"},"kz8608mf4E23W96kFH-5n":{"uri":"/melonJS/docs/melonjs/Container.html#autoSort"},"oHuJcNUchWUStDgQ7ygXW":{"uri":"/melonJS/docs/melonjs/Container.html#autoTransform"},"M-PsPUliauq_ujV1-KEIe":{"uri":"/melonJS/docs/melonjs/Container.html#backgroundColor"},"n9x9Y2BeeAkWw6Px97Hg4":{"uri":"/melonJS/docs/melonjs/Container.html#blendMode"},"rKKvsIJ__aZhf59lj3v8D":{"uri":"/melonJS/docs/melonjs/Container.html#body"},"PgwU9Z8Jxe9vWBFt7FC5R":{"uri":"/melonJS/docs/melonjs/Container.html#bottom"},"2USx1svF7cYlXrS74rPf5":{"uri":"/melonJS/docs/melonjs/Container.html#centerX"},"ynMSgnG20bL8cUUUKAF-V":{"uri":"/melonJS/docs/melonjs/Container.html#centerY"},"29lvxsFHFSKUrATN14S3u":{"uri":"/melonJS/docs/melonjs/Container.html#clipping"},"UFuXKXLMcpo8pwWm1yaVK":{"uri":"/melonJS/docs/melonjs/Container.html#currentTransform"},"etrfbUK2Fx_a-VUX8jQ1-":{"uri":"/melonJS/docs/melonjs/Container.html#depth"},"dB6h9pdZVrMr3rC0-Bk03":{"uri":"/melonJS/docs/melonjs/Container.html#enableChildBoundsUpdate"},"34cFH8-zpygVS2pipXdMG":{"uri":"/melonJS/docs/melonjs/Container.html#floating"},"6WwkKrrKTKwjLQAxyvDxR":{"uri":"/melonJS/docs/melonjs/Container.html#GUID"},"gnMLPa5tqw_13BD7-gzPZ":{"uri":"/melonJS/docs/melonjs/Container.html#height"},"I6e2KgmIxloOE5_6VdLdc":{"uri":"/melonJS/docs/melonjs/Container.html#inViewport"},"qeiheSoMouWiW55h2vI6d":{"uri":"/melonJS/docs/melonjs/Container.html#isDirty"},"Qycq5yvgsvgvr98buYt74":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedX"},"a7U-0Qwj8AAqiTfr9TAmi":{"uri":"/melonJS/docs/melonjs/Container.html#isFlippedY"},"yuw-csLNnFl34V7ZFdwHT":{"uri":"/melonJS/docs/melonjs/Container.html#isFloating"},"tnmLe1XfKyuBw0DqrgtjP":{"uri":"/melonJS/docs/melonjs/Container.html#isKinematic"},"LMzjXJHLmKaLfrdI7smij":{"uri":"/melonJS/docs/melonjs/Container.html#isPersistent"},"keIEZWkFM08J9wY4gIpyq":{"uri":"/melonJS/docs/melonjs/Container.html#left"},"Fjfr7hEHYz_YHJdORjzC-":{"uri":"/melonJS/docs/melonjs/Container.html#mask"},"qMZ4URKXmOWGKrb4JwB0E":{"uri":"/melonJS/docs/melonjs/Container.html#name"},"CvbU2svBbiEi4kblJu5Fd":{"uri":"/melonJS/docs/melonjs/Container.html#onVisibilityChange"},"LMmQCf06MQYHBuA_yl3W1":{"uri":"/melonJS/docs/melonjs/Container.html#parentApp"},"mRo9QD71ZjtClkVkxWDQt":{"uri":"/melonJS/docs/melonjs/Container.html#points"},"vNgcVgKi62rmrp2oPtQqJ":{"uri":"/melonJS/docs/melonjs/Container.html#pos"},"1PVRstcZXST730wm-MEyh":{"uri":"/melonJS/docs/melonjs/Container.html#right"},"73xbS8AacWKbMl78XH6OO":{"uri":"/melonJS/docs/melonjs/Container.html#root"},"S6bymzU9bOoUVqHOyOYx6":{"uri":"/melonJS/docs/melonjs/Container.html#shader"},"G-CQ_Fk0mAzfYFHUgRs9j":{"uri":"/melonJS/docs/melonjs/Container.html#sortOn"},"OLWQhLMPr5c1CqKFm-YjM":{"uri":"/melonJS/docs/melonjs/Container.html#tint"},"yZEY3yEqltr7pTaKboOkt":{"uri":"/melonJS/docs/melonjs/Container.html#top"},"cwIGE8tALh00mx4phYCOg":{"uri":"/melonJS/docs/melonjs/Container.html#type"},"4JEaUwN_hmNuptuagCnLS":{"uri":"/melonJS/docs/melonjs/Container.html#updateWhenPaused"},"gjopc6w5cTBK4OvWaszp0":{"uri":"/melonJS/docs/melonjs/Container.html#width"},"Y0Nku6zO1ivU8gMEcFwh0":{"uri":"/melonJS/docs/melonjs/Container.html#addChild"},"mWbFKV3tu9087rPSdS-zm":{"uri":"/melonJS/docs/melonjs/Container.html#addChildAt"},"9uPMUV93WD5ZpUYuflpXZ":{"uri":"/melonJS/docs/melonjs/Container.html#angleTo"},"rGxNk8_oKuquK-mRlX6Cp":{"uri":"/melonJS/docs/melonjs/Container.html#centerOn"},"Tz7ku4Kab7X0ttjPP3Fc2":{"uri":"/melonJS/docs/melonjs/Container.html#clone"},"68Yl63mkE2A7Qo3r3EPl9":{"uri":"/melonJS/docs/melonjs/Container.html#constructor"},"McjpZ7DcPhNhrvcomrDpT":{"uri":"/melonJS/docs/melonjs/Container.html#contains"},"F2wVZ1-vQkTzKKCnN4_jq":{"uri":"/melonJS/docs/melonjs/Container.html#copy"},"TUTlYj32WmTMw4Y-mSA7T":{"uri":"/melonJS/docs/melonjs/Container.html#distanceTo"},"D11aIQBZVyxzSHGhfoRoq":{"uri":"/melonJS/docs/melonjs/Container.html#draw"},"otmp96wmoTVXGB3dZPhXP":{"uri":"/melonJS/docs/melonjs/Container.html#equals"},"FQV8ODQdDG0WcP96a1qfr":{"uri":"/melonJS/docs/melonjs/Container.html#flipX"},"JX_PKX8mkuI_72xTGXq8x":{"uri":"/melonJS/docs/melonjs/Container.html#flipY"},"jXC3zOsfL9pOI2uAP0lzg":{"uri":"/melonJS/docs/melonjs/Container.html#forEach"},"AhjvPm7_154IJ1pBdU474":{"uri":"/melonJS/docs/melonjs/Container.html#getAbsolutePosition"},"nKRwmw8OA3lypvIm2GO0v":{"uri":"/melonJS/docs/melonjs/Container.html#getBounds"},"IN3mrMMoTBpZQpnuNe4Gi":{"uri":"/melonJS/docs/melonjs/Container.html#getChildAt"},"hOi7wMscfoCj32qR1QCc5":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByGUID"},"t70tWQoYE08I2y5SHl08g":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByName"},"wti-MoewGdzOHYT__Z0j0":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByProp"},"cQ2m-5-ECmiAMLAnC7AFq":{"uri":"/melonJS/docs/melonjs/Container.html#getChildByType"},"YtiBWuQkenpZEJiE0ifpB":{"uri":"/melonJS/docs/melonjs/Container.html#getChildIndex"},"_8VCO7DK35bsO4Iq1JeiH":{"uri":"/melonJS/docs/melonjs/Container.html#getChildren"},"ggU42l-XU1DmE7yqooowf":{"uri":"/melonJS/docs/melonjs/Container.html#getIndices"},"IXAZPKIlDbfpLF4CAfT0c":{"uri":"/melonJS/docs/melonjs/Container.html#getNextChild"},"-a_KGRYjC26We5usk_2ei":{"uri":"/melonJS/docs/melonjs/Container.html#getOpacity"},"lEhu5WRxLdDCh9jNO8WKB":{"uri":"/melonJS/docs/melonjs/Container.html#getRootAncestor"},"-cNuX3TpmmGtNjYHZZQos":{"uri":"/melonJS/docs/melonjs/Container.html#hasChild"},"K1wZKYEO6ltp2v8Y7emUA":{"uri":"/melonJS/docs/melonjs/Container.html#isAttachedToRoot"},"ZtaGTMOZWuJdUP7pFmPcS":{"uri":"/melonJS/docs/melonjs/Container.html#isConvex"},"ec-nZIOJKADiT0Wg02VQ7":{"uri":"/melonJS/docs/melonjs/Container.html#isFinite"},"xRQr3AzzjnF0jwAsgtLUq":{"uri":"/melonJS/docs/melonjs/Container.html#lookAt"},"iVvGQQoNZt4a5rsLtqCJu":{"uri":"/melonJS/docs/melonjs/Container.html#moveDown"},"_pv8Z1ta658txPMhXEmB7":{"uri":"/melonJS/docs/melonjs/Container.html#moveToBottom"},"wtNLMxXkwcfX2GPHFu3bg":{"uri":"/melonJS/docs/melonjs/Container.html#moveToTop"},"PVjDVBx2bYe7K6dl2UlxL":{"uri":"/melonJS/docs/melonjs/Container.html#moveUp"},"mtAeRMoe9y6GcUMLsZ95J":{"uri":"/melonJS/docs/melonjs/Container.html#onChildChange"},"nI36f8HzaTSfbpFQ422dm":{"uri":"/melonJS/docs/melonjs/Container.html#onCollision"},"MnAhHjEk7aGooEuWWy2a1":{"uri":"/melonJS/docs/melonjs/Container.html#onDestroyEvent"},"rFEXKSZOb9uRy5e1IRZuy":{"uri":"/melonJS/docs/melonjs/Container.html#overlaps"},"8gm47npmiYfPHvWTDytYM":{"uri":"/melonJS/docs/melonjs/Container.html#postDraw"},"Aq4ppmN-AYkLBH1-EZCeO":{"uri":"/melonJS/docs/melonjs/Container.html#preDraw"},"ryXZYOgyA_87qxtyNtSJ-":{"uri":"/melonJS/docs/melonjs/Container.html#recalc"},"y0rCW12IbDz0tXo9rm3Te":{"uri":"/melonJS/docs/melonjs/Container.html#removeChild"},"DT6KEfq5vUrTFH_4YeMGM":{"uri":"/melonJS/docs/melonjs/Container.html#removeChildNow"},"Skq7RxEwhPrEj2hmjF6wC":{"uri":"/melonJS/docs/melonjs/Container.html#reset"},"99f63lnbdAu-_y5nkg9O7":{"uri":"/melonJS/docs/melonjs/Container.html#resize"},"XHRMxiu9y9iVUEqwmm1lB":{"uri":"/melonJS/docs/melonjs/Container.html#rotate"},"OFyGLePSEB671VX_2AqCn":{"uri":"/melonJS/docs/melonjs/Container.html#scale"},"FAh_gT22hGxaP7cV7wKYN":{"uri":"/melonJS/docs/melonjs/Container.html#scaleV"},"8R-xQVKVNg0STMEU_ldPE":{"uri":"/melonJS/docs/melonjs/Container.html#setChildsProperty"},"Wa5P44BYwz1EsZaY0Hhel":{"uri":"/melonJS/docs/melonjs/Container.html#setOpacity"},"wG7KS7RfYdOgQrBBd16mW":{"uri":"/melonJS/docs/melonjs/Container.html#setShape"},"ar6dDuHJM8i4YVwtH6-DR":{"uri":"/melonJS/docs/melonjs/Container.html#setVertices"},"_5GxbfeH2BXMayxIfXV2L":{"uri":"/melonJS/docs/melonjs/Container.html#shift"},"upprVCZ4kbyfXrSGTjFQK":{"uri":"/melonJS/docs/melonjs/Container.html#sort"},"gohTOrSBnXPdJArzyiLcH":{"uri":"/melonJS/docs/melonjs/Container.html#swapChildren"},"OaV7AD8nbyufM3d4IivbJ":{"uri":"/melonJS/docs/melonjs/Container.html#to2d"},"iUiQax0-u1beEQW9uIgUc":{"uri":"/melonJS/docs/melonjs/Container.html#toIso"},"Gm3XVGcdCwBTg0gYA2EWM":{"uri":"/melonJS/docs/melonjs/Container.html#toPolygon"},"Kv719hqtM9oQIbMrdAInx":{"uri":"/melonJS/docs/melonjs/Container.html#transform"},"ZyyXiX-hKlQt49Df9WHHQ":{"uri":"/melonJS/docs/melonjs/Container.html#translate"},"GT1LyhmjWiduAqXRI3Nl7":{"uri":"/melonJS/docs/melonjs/Container.html#union"},"4nSWbt6S2e_LrB2EwGm2N":{"uri":"/melonJS/docs/melonjs/Container.html#updateBounds"},"HnXCL6OmsqGVhmDKO-2xb":{"uri":"/melonJS/docs/melonjs/Container.html#update"},"TokiM8ycpMpMnLBrFfq-K":{"uri":"/melonJS/docs/melonjs/Container.html#onAnchorUpdate"},"EvJB-d3pkcKJpGzZ9WwVs":{"uri":"/melonJS/docs/melonjs/Detector.html"},"RMse9eE3AckBG3iTetvjq":{"uri":"/melonJS/docs/melonjs/Detector.html#response"},"iSIw7137B4H5Cjxp7BnCJ":{"uri":"/melonJS/docs/melonjs/Detector.html#collides"},"oeSzwK5Eh1Uvm8Ko2PdXU":{"uri":"/melonJS/docs/melonjs/Detector.html#constructor"},"fOUpkB2hqoJDm7yVvRKbg":{"uri":"/melonJS/docs/melonjs/Detector.html#shouldCollide"},"1Vu6iHlk-eal3Ejg3nlJI":{"uri":"/melonJS/docs/melonjs/Draggable.html"},"Pl_PeZrhhqMJJ0dZ7VTX5":{"uri":"/melonJS/docs/melonjs/Draggable.html#alpha"},"COUmV5k9jrq_hFQSnwJEc":{"uri":"/melonJS/docs/melonjs/Draggable.html#alwaysUpdate"},"VeuF3ZE_NFoK0n8W1aEwv":{"uri":"/melonJS/docs/melonjs/Draggable.html#ancestor"},"aJKIc2jCuLfVBAhEGssnt":{"uri":"/melonJS/docs/melonjs/Draggable.html#anchorPoint"},"nXpkVwv0XwchWH0pGjWT1":{"uri":"/melonJS/docs/melonjs/Draggable.html#autoTransform"},"erOH2ZypVWwywrM7TeUtU":{"uri":"/melonJS/docs/melonjs/Draggable.html#blendMode"},"c6KPnuK0mAiRaJsuhcd4J":{"uri":"/melonJS/docs/melonjs/Draggable.html#body"},"-2iIID1tK2fQxGOem-tbj":{"uri":"/melonJS/docs/melonjs/Draggable.html#bottom"},"3YC78kWNqgq-_pDUdaCbj":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerX"},"JKLnef1WJoqQpVq8D-ntY":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerY"},"hPx-6WMbQvN3KAcmHpOT2":{"uri":"/melonJS/docs/melonjs/Draggable.html#currentTransform"},"7LHfC9Hp9TE3GBYfzhAbq":{"uri":"/melonJS/docs/melonjs/Draggable.html#depth"},"ke3YqlQfZLae7XTV02Lqk":{"uri":"/melonJS/docs/melonjs/Draggable.html#floating"},"9ZBd1Umr3gaBVzsz7gd4C":{"uri":"/melonJS/docs/melonjs/Draggable.html#GUID"},"l9QM9dXz-1NkzQTuWVuTH":{"uri":"/melonJS/docs/melonjs/Draggable.html#height"},"zPjUgqFwFeUzQZd0dLsmz":{"uri":"/melonJS/docs/melonjs/Draggable.html#inViewport"},"7KGB1yyjkRcHdg5GnjZdg":{"uri":"/melonJS/docs/melonjs/Draggable.html#isDirty"},"suaqJFO1VdbxkICsCIZlT":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedX"},"LqmG2eTbkRil4_sRRitF4":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFlippedY"},"WDZudV7lvuYnvep1s3TYf":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFloating"},"r9888DUqmTfIqYfMhllWu":{"uri":"/melonJS/docs/melonjs/Draggable.html#isKinematic"},"jg2uubrfdg16eUy09xXll":{"uri":"/melonJS/docs/melonjs/Draggable.html#isPersistent"},"qFxQpfWf8Uu14IwMLLUG5":{"uri":"/melonJS/docs/melonjs/Draggable.html#left"},"VDnCQjHg_occS9WH1Hjlj":{"uri":"/melonJS/docs/melonjs/Draggable.html#mask"},"CZ-JgTlnp3dU6TJ34EdAm":{"uri":"/melonJS/docs/melonjs/Draggable.html#name"},"zPd_czhI2waEoySB5wE0E":{"uri":"/melonJS/docs/melonjs/Draggable.html#onVisibilityChange"},"Yjh7vXStpU69vGRvCduYb":{"uri":"/melonJS/docs/melonjs/Draggable.html#parentApp"},"LPyyuGJnt2MSLvoRmdNBI":{"uri":"/melonJS/docs/melonjs/Draggable.html#points"},"Zd_dszehs0AqPVcm3LMkO":{"uri":"/melonJS/docs/melonjs/Draggable.html#pos"},"6h-CRvnFJoyyWqk6dpZHj":{"uri":"/melonJS/docs/melonjs/Draggable.html#right"},"bUaWA8LLZDJjtM_PdP6tk":{"uri":"/melonJS/docs/melonjs/Draggable.html#shader"},"48T3ovCxk0_FhKwmwskJa":{"uri":"/melonJS/docs/melonjs/Draggable.html#tint"},"YR6WAhUBF52wfA_knkMNm":{"uri":"/melonJS/docs/melonjs/Draggable.html#top"},"McePG09EyTaCu6vs_FZaB":{"uri":"/melonJS/docs/melonjs/Draggable.html#type"},"k8cguH3-8hPUJNleJCXhf":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateWhenPaused"},"Puqy3JtXSdqKKRlZH5CDw":{"uri":"/melonJS/docs/melonjs/Draggable.html#width"},"eoftYRbjeIg_rXjxLW2Pg":{"uri":"/melonJS/docs/melonjs/Draggable.html#angleTo"},"yFdNc-Ywq3a2UQTs2T9km":{"uri":"/melonJS/docs/melonjs/Draggable.html#centerOn"},"2l82dEWsCe4KpyLok_b7_":{"uri":"/melonJS/docs/melonjs/Draggable.html#clone"},"ids_qh6xgKSl90QCj1RDr":{"uri":"/melonJS/docs/melonjs/Draggable.html#constructor"},"bmv26bGW8fsfG01sZcdaC":{"uri":"/melonJS/docs/melonjs/Draggable.html#contains"},"H68FdmvXp5g5n4pqUqceI":{"uri":"/melonJS/docs/melonjs/Draggable.html#copy"},"PG1mND5M4QZU_lg1kpDM9":{"uri":"/melonJS/docs/melonjs/Draggable.html#distanceTo"},"SvBt6U1_MLAc2PrHBcgBr":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragEnd"},"-0kk4fwdMG2fINr_sYpo6":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragMove"},"0CIDvxMWQ8x3tpeWh5vbl":{"uri":"/melonJS/docs/melonjs/Draggable.html#dragStart"},"jSs1Nit1xBc_u80bHRQSo":{"uri":"/melonJS/docs/melonjs/Draggable.html#draw"},"ZNrbDU8JCXn5c4aoGIrtv":{"uri":"/melonJS/docs/melonjs/Draggable.html#equals"},"exImMDtU1mvB0zQz1puTo":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipX"},"0i7T94RKZsVcBlBYyRHVa":{"uri":"/melonJS/docs/melonjs/Draggable.html#flipY"},"qjTiLimt15oN3VQz8G23Q":{"uri":"/melonJS/docs/melonjs/Draggable.html#getAbsolutePosition"},"I_l3jiJuW2RYpbE7FLLtf":{"uri":"/melonJS/docs/melonjs/Draggable.html#getBounds"},"XUpUPUW1iQMFNzWJ32FVH":{"uri":"/melonJS/docs/melonjs/Draggable.html#getIndices"},"E_5PH2Sipffv3_CKE2FVa":{"uri":"/melonJS/docs/melonjs/Draggable.html#getOpacity"},"Vqsy5t4JzgtYg3CgkzPwQ":{"uri":"/melonJS/docs/melonjs/Draggable.html#isConvex"},"V7Vip246RnXU_MxO-eWts":{"uri":"/melonJS/docs/melonjs/Draggable.html#isFinite"},"_W5WaxNXnw45ecRXMeVbM":{"uri":"/melonJS/docs/melonjs/Draggable.html#lookAt"},"bd9GEY5faZ9-lrdHU0pIF":{"uri":"/melonJS/docs/melonjs/Draggable.html#onCollision"},"1jKTT5T1DJL2Co05SpKhi":{"uri":"/melonJS/docs/melonjs/Draggable.html#onDestroyEvent"},"ibkD5toRhQCZihewBNVvw":{"uri":"/melonJS/docs/melonjs/Draggable.html#overlaps"},"q4Yoj40wY6LsVnlUhOMi2":{"uri":"/melonJS/docs/melonjs/Draggable.html#postDraw"},"Wo5f5bweMK4eO8bMZbA2A":{"uri":"/melonJS/docs/melonjs/Draggable.html#preDraw"},"QRycgMAH9IN2qdQibYou7":{"uri":"/melonJS/docs/melonjs/Draggable.html#recalc"},"lhP4BQIvloVtYEeyne5XE":{"uri":"/melonJS/docs/melonjs/Draggable.html#resize"},"i4B_nkfZ0hcOKxAfyeVFj":{"uri":"/melonJS/docs/melonjs/Draggable.html#rotate"},"cNLhfvDrHLe-SwE8LTThQ":{"uri":"/melonJS/docs/melonjs/Draggable.html#scale"},"q0UKftf60pShD3esCdBMp":{"uri":"/melonJS/docs/melonjs/Draggable.html#scaleV"},"jQUWRXSRCsdfo9DrPbTNF":{"uri":"/melonJS/docs/melonjs/Draggable.html#setOpacity"},"G9ywxZ3TcTlF-Cq82I8Jf":{"uri":"/melonJS/docs/melonjs/Draggable.html#setShape"},"cs35cDAxFvHZzozHA1z6L":{"uri":"/melonJS/docs/melonjs/Draggable.html#setVertices"},"dXc9axp0X-RfLBaVsRwj_":{"uri":"/melonJS/docs/melonjs/Draggable.html#shift"},"f0Dp7u3VDm0GN4Ll05Z1G":{"uri":"/melonJS/docs/melonjs/Draggable.html#to2d"},"6Jjv3itaYjHbqpLfdeXgu":{"uri":"/melonJS/docs/melonjs/Draggable.html#toIso"},"07ctwoKTdN-H3c2Cz2RIJ":{"uri":"/melonJS/docs/melonjs/Draggable.html#toPolygon"},"zEoUyS67ijmCG197iNrEe":{"uri":"/melonJS/docs/melonjs/Draggable.html#transform"},"UFdJ-HNmi7dkiHTDqEiFQ":{"uri":"/melonJS/docs/melonjs/Draggable.html#translate"},"Hjy-mswz49jVA3Wi3Lwja":{"uri":"/melonJS/docs/melonjs/Draggable.html#union"},"2RfOW08gCH6N1yJmAZEKD":{"uri":"/melonJS/docs/melonjs/Draggable.html#update"},"yn7Dpv9dGokpEOSZZvQtX":{"uri":"/melonJS/docs/melonjs/Draggable.html#updateBounds"},"PZ1QnMcNAds0YtwRQl3GL":{"uri":"/melonJS/docs/melonjs/Draggable.html#initEvents"},"qGYOps7u95TmXQz4zzwU7":{"uri":"/melonJS/docs/melonjs/Draggable.html#onAnchorUpdate"},"ooTG1dITGjfhuEBXQg4ZE":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html"},"1JwPDWbsR0MSLd-FhHUUa":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alive"},"WWrmxTHMkcgzA72hpFzKJ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alpha"},"Cmq9ll-05ALfGxsv5kvf5":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#alwaysUpdate"},"uDoZvo7bvSVPIB-D4zUPI":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#ancestor"},"Ao1ABcbvJBMl0tliUvieu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#anchorPoint"},"yP3DV9RO6sfeEktWbZxiS":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#autoTransform"},"71U55tsBHlvkXFXmUdKjH":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#blendMode"},"wrCuGiud2K_1iQy1ngHKh":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#body"},"xw6B3tnF5fHLiWbZrfJIL":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#bottom"},"t0TwISQeT_Xdm50yF2RgA":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerX"},"wORN0JP_i9m7x8AYaTlw2":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerY"},"3gvqIwrt7Cq0CFvzsgFyC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#currentTransform"},"niYMPNA6yLcJldpGYV30y":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#depth"},"28nNFT926Mc722kfdg1vM":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#floating"},"ND2Q4OU1V0yw4CFIaka1z":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#GUID"},"xbpZoPyfnDlhsOzYXWrip":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#height"},"v9lonT2v2WBsRNY9BOdm_":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#id"},"CrnXc2PzjTz-XLW3u2ykc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#inViewport"},"Q-NB6J3dWVYZn5mPD90Rm":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isDirty"},"uXvpBHbIwiV9v2rY9znhi":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedX"},"s5T9mKEeINhNof4FpV_2q":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFlippedY"},"sjjniO2B0YnOpXA1pxUuJ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFloating"},"wcuTWV-KHGUuNJyg8CbNr":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isKinematic"},"m1q4CIng3_fU1H8Cpb_5J":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isPersistent"},"GHMNv07pYi__axpublAzh":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#left"},"_fwYormWc2bl3CFiWRcsm":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#mask"},"aawbhv1yu_gd7OEdZH5tf":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#name"},"naL_eRMolTJ1fCUMMRUKJ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onVisibilityChange"},"cTuJGUO2zhpCRVGrhvoRA":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#parentApp"},"m1Sx_CjWet33NNxglVkVx":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#points"},"7QxjXIxfDOfcXmJzpl0wO":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#pos"},"LcEIQSDgSORH_kBHM8sbc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#renderable"},"ExAfDYBt0_4d7obU0OOBU":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#right"},"6eblAjDw-e-wKKJ_ofJod":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shader"},"NEfSQBD28CEbcfAqu010q":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#tint"},"zkZeHhJk2mJaFoXNPgRq4":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#top"},"eJR4Tk8k45b7Vd5WgtyMz":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#type"},"eeHkrHQHw1Gzob8yeoi3M":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateWhenPaused"},"xThAwBVoNNWQ3-K08jb6V":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#width"},"wPFTP7bakZnGctApUusdu":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#angleTo"},"I1UDY8Pkz6B-JFRggJmmc":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#centerOn"},"NMh0QrGV5MJfQ9rv7RAM8":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#clone"},"4WnuntrKLGySOaqi9_W1C":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#constructor"},"gg9IVI2Yrtv8tuesGD3Pv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#contains"},"_ZVH4FJrGhm7XwgEsDhpA":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#copy"},"VTHqwWdUGanY2eyxbcfID":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#distanceTo"},"kotggEnRtjV5t7BRXdBIs":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#draw"},"mHYEKK5d1qpdIGHm5G6qa":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#equals"},"XOkJeGQhAf5c5j2yCrxri":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipX"},"H1YXHTNUryuC2AN0xHh5C":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#flipY"},"qpTrK8jz0aw2vImT2eUJ2":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getAbsolutePosition"},"jct6Gyt5tlEnDELPxWb7B":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getBounds"},"w2PZshW73JAGDzaUTBoEL":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getIndices"},"NFALO8v95F8FhWsx4Z6A-":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#getOpacity"},"J3a4PFP-u6ZC1Rg6kAIm2":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isConvex"},"EwzTZLFcuFgJXZLtzrj9l":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#isFinite"},"Zn2Z6VkepL7G__cWcGL3c":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#lookAt"},"_WJJQgx5pVj9EQlWTAqi3":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onBodyUpdate"},"XGUHx8jMuOPdPMAjJxfuC":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onCollision"},"6Xx2fqKZdUMxfb83B9YXa":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDeactivateEvent"},"RyPnuUQfAAAVec0yEhbWQ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onDestroyEvent"},"PYUEiQXeW0qj8keKlX1DQ":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#overlaps"},"8vi13XpbYUUOcK0sJfHyv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#postDraw"},"JZf6ZPkmgCknMDg2kHZNv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#preDraw"},"mKQ46o3uhOYh4DItiGosv":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#recalc"},"X4yxkDOPrklaeLlTyKza0":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#resize"},"YHfsUo4aYPcO1wKZxDnN9":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#rotate"},"8MswVodqMZ3EFElaunNda":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scale"},"lTLnQVNZo9u2Q7GXUCR26":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#scaleV"},"vuuAYNdaPieUqAbCcXcGo":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setOpacity"},"YtBZqbAEcuuKqyVFUU-ls":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setShape"},"a6YPVraUd6VhRps-6yQsG":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#setVertices"},"vBClo0dXmSOyU5jneVe1q":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#shift"},"ukRx5BRom9qUmRyK8-8dP":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#to2d"},"usEDW4YIzHj5GDg42db4B":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toIso"},"7FV4ZYK8CQSfTlQylxrsq":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#toPolygon"},"uCqgDF49Jbv7XcPScJ9qB":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#transform"},"lZ2EPQtZ4n3-JnMP2JH4W":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#translate"},"dHr28LEHhn32WWNefcdPL":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#union"},"TLeS4PIXSB5kNbRJSm64X":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#update"},"-zyPS5PKPA4FuecE55y2U":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#updateBounds"},"6_M3I1z17C4QPF8RXmsR7":{"uri":"/melonJS/docs/melonjs/DraggableEntity.html#onAnchorUpdate"},"pDJaonJHRpz31AaDIIjHu":{"uri":"/melonJS/docs/melonjs/DropTarget.html"},"sOXvar0ny3hxjDu2Ho8YL":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alpha"},"lZjVt7qxZPuQ3MfxgnAc1":{"uri":"/melonJS/docs/melonjs/DropTarget.html#alwaysUpdate"},"BGz9eXOxTWYnZKLjevnbX":{"uri":"/melonJS/docs/melonjs/DropTarget.html#ancestor"},"3kdJg9Au_7oOfPgmfiDA_":{"uri":"/melonJS/docs/melonjs/DropTarget.html#anchorPoint"},"1CraIWgf3FU7RB9hSXByB":{"uri":"/melonJS/docs/melonjs/DropTarget.html#autoTransform"},"DX3FUNYHwfQkHg90HuXXi":{"uri":"/melonJS/docs/melonjs/DropTarget.html#blendMode"},"FU8yQHce_Bjmmu2jZqB_y":{"uri":"/melonJS/docs/melonjs/DropTarget.html#body"},"SXnbxrvXOiQWvRD6jrEXB":{"uri":"/melonJS/docs/melonjs/DropTarget.html#bottom"},"tBsCn1Va5N2GEIVF4VwlJ":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerX"},"usBbhkkLyhsd8RK9EhcmY":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerY"},"fK6X3ejSR2H-i2dF8ZMeN":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkMethod"},"86c2Nvxs7Wp2tNZPc5VvA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_CONTAINS"},"FrshD_i9oQGwsLniwKgjq":{"uri":"/melonJS/docs/melonjs/DropTarget.html#CHECKMETHOD_OVERLAP"},"DhpC-5uPKOCgjuvcZTiSU":{"uri":"/melonJS/docs/melonjs/DropTarget.html#currentTransform"},"yo0lIo3mjmbp0MCXxOAhn":{"uri":"/melonJS/docs/melonjs/DropTarget.html#depth"},"gJDBxCw2KTlCbyZU8Erig":{"uri":"/melonJS/docs/melonjs/DropTarget.html#floating"},"VzOaSv1_rwcoe6jdLOEJK":{"uri":"/melonJS/docs/melonjs/DropTarget.html#GUID"},"zr-wUUUOM5LdcSoqH1K8w":{"uri":"/melonJS/docs/melonjs/DropTarget.html#height"},"LTzLIvvBQVd4EwgVm8Sah":{"uri":"/melonJS/docs/melonjs/DropTarget.html#inViewport"},"LeZ-sFt_ht4f0G4Wyykn2":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isDirty"},"i_fC_53RPVJ-40sjZx2dC":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedX"},"Yg0h_RbkfJkWfMs1h5hAU":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFlippedY"},"n-805xiFYxACjckrvmCjq":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFloating"},"dLrHT5cLCGXYJ2dARD-4w":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isKinematic"},"64ndwdoVpKCkNLKXYT-ni":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isPersistent"},"g_OcxiB-2LsYEaymhaA11":{"uri":"/melonJS/docs/melonjs/DropTarget.html#left"},"JOL1xfjkqubkcSwZtvbnC":{"uri":"/melonJS/docs/melonjs/DropTarget.html#mask"},"UTFobLCm76XYht2j291ZV":{"uri":"/melonJS/docs/melonjs/DropTarget.html#name"},"x8-N5cCjxeOnLbFSeI0wR":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onVisibilityChange"},"MpCShjc_JjhM1qyQFyGnq":{"uri":"/melonJS/docs/melonjs/DropTarget.html#parentApp"},"VEJhLTscKIpIJdkRHdM72":{"uri":"/melonJS/docs/melonjs/DropTarget.html#points"},"x-VwFiFQJOcmSl4RCeLht":{"uri":"/melonJS/docs/melonjs/DropTarget.html#pos"},"m1mH6G90ucfJolO9hM2_E":{"uri":"/melonJS/docs/melonjs/DropTarget.html#right"},"a5m3cjziNtLvPLFHo0yLr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shader"},"xjaZAEZU_po3lr__A88-5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#tint"},"Rv0hrAOi3VX-oDYNnf60J":{"uri":"/melonJS/docs/melonjs/DropTarget.html#top"},"hfUjf8S6iT8xVxsMkeHKE":{"uri":"/melonJS/docs/melonjs/DropTarget.html#type"},"wycUP1_1gsb-YJyMf7AMN":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateWhenPaused"},"2UQMo21af0IFE8E31kA0Z":{"uri":"/melonJS/docs/melonjs/DropTarget.html#width"},"uaHQpiraOW6j1I0gTeQfA":{"uri":"/melonJS/docs/melonjs/DropTarget.html#angleTo"},"h1H6grz_AgHY4a40DxZyy":{"uri":"/melonJS/docs/melonjs/DropTarget.html#centerOn"},"AlOTrUZSyvgpN3SVcwqvP":{"uri":"/melonJS/docs/melonjs/DropTarget.html#checkOnMe"},"pctA3lF5oabFFyeeJv--X":{"uri":"/melonJS/docs/melonjs/DropTarget.html#clone"},"fH3vB93tUwHr4PboC0lBH":{"uri":"/melonJS/docs/melonjs/DropTarget.html#constructor"},"RjC-CvtNVcAGlKmDdD1RK":{"uri":"/melonJS/docs/melonjs/DropTarget.html#contains"},"9CRwyt5g-APpXCdPSoqD1":{"uri":"/melonJS/docs/melonjs/DropTarget.html#copy"},"5I2RYOUJqFZQ3LYWCwO0a":{"uri":"/melonJS/docs/melonjs/DropTarget.html#distanceTo"},"je0ARWPO1zVCdxcnH09HS":{"uri":"/melonJS/docs/melonjs/DropTarget.html#draw"},"dYGztroUij5Ud7CeqM7G5":{"uri":"/melonJS/docs/melonjs/DropTarget.html#drop"},"E6kYQLAHe_kKhLpiNELK-":{"uri":"/melonJS/docs/melonjs/DropTarget.html#equals"},"eDAL0ergDacM6Jze5FF9p":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipX"},"Pna_qHJRY8moZl3OA5lkm":{"uri":"/melonJS/docs/melonjs/DropTarget.html#flipY"},"GypV8jAFwkxwiX39wdx4M":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getAbsolutePosition"},"eTW3Mf0QuB_zLXsI8b4a8":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getBounds"},"R0ktu04HPYgONaJSYkRas":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getIndices"},"_w4hltP1oI3VBc3F99qaT":{"uri":"/melonJS/docs/melonjs/DropTarget.html#getOpacity"},"qf7D5WSwBt0OvT4ORgJZ8":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isConvex"},"lj5ifaO19RiO9giCLkIYa":{"uri":"/melonJS/docs/melonjs/DropTarget.html#isFinite"},"BF7OuqmoSqMZva1mF3HFF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#lookAt"},"fffpSKg3KIaTBETsdgFcH":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onCollision"},"30kKLAr4nVBGdw0au8M8H":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onDestroyEvent"},"cgfLAzkNDMenw2JhnDILM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#overlaps"},"t9Q2UBmuaVZmO9_FmxmO9":{"uri":"/melonJS/docs/melonjs/DropTarget.html#postDraw"},"UP-_7BCF7eKptgnMTwqcM":{"uri":"/melonJS/docs/melonjs/DropTarget.html#preDraw"},"Ot6mhI3XXD-sJesKz2T54":{"uri":"/melonJS/docs/melonjs/DropTarget.html#recalc"},"fP1ru5J42LT2yxc09afVL":{"uri":"/melonJS/docs/melonjs/DropTarget.html#resize"},"IctAIrEeqm0GMz8n2CV_z":{"uri":"/melonJS/docs/melonjs/DropTarget.html#rotate"},"Yer7HQRRsWmYGVGS05ctN":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scale"},"OoQkdAUSTuCbWyResuwpD":{"uri":"/melonJS/docs/melonjs/DropTarget.html#scaleV"},"r1kI2bO64B_NHiqbIiJQ6":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setCheckMethod"},"AQL-GHrEWdsMulRs_cvIF":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setOpacity"},"Z1zEU2p-9n0o6TVS_u2uk":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setShape"},"0pvPmzPVBEm-483CLqvyv":{"uri":"/melonJS/docs/melonjs/DropTarget.html#setVertices"},"h33GUbEGjsLieP80hO1Hr":{"uri":"/melonJS/docs/melonjs/DropTarget.html#shift"},"bikYYowxWkNSQUtQJHotf":{"uri":"/melonJS/docs/melonjs/DropTarget.html#to2d"},"3IIiNK0nyTffgQTjxdmoi":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toIso"},"ouVZ9oYkVdbrtsJpBxQM_":{"uri":"/melonJS/docs/melonjs/DropTarget.html#toPolygon"},"vpxL5WhYPb_kgUhI7XGy7":{"uri":"/melonJS/docs/melonjs/DropTarget.html#transform"},"RRPuruN4uaOJw2EpNV22e":{"uri":"/melonJS/docs/melonjs/DropTarget.html#translate"},"_RePh3qi1adSlw4HiYH1e":{"uri":"/melonJS/docs/melonjs/DropTarget.html#union"},"S-BU0HhB83vAyR6odBz8c":{"uri":"/melonJS/docs/melonjs/DropTarget.html#update"},"tzGLN4q_h7W9oeOyTWmXd":{"uri":"/melonJS/docs/melonjs/DropTarget.html#updateBounds"},"EWqqutYmXyiCi_iHp-Ayx":{"uri":"/melonJS/docs/melonjs/DropTarget.html#onAnchorUpdate"},"S-uOKUWBkgxwEYIyYdSGv":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html"},"bT_lel5vurUayaJ_Nb55I":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alive"},"CduF2r5TAN-YMurVWv0RS":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alpha"},"Cyegk4O5a9DFXWZqNf5pN":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#alwaysUpdate"},"zsFbInurLttqSlDBZ1WVq":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#ancestor"},"NlEjhA-y0gqa3IzfzeSVH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#anchorPoint"},"Z3nG2vVUD8E2dLB_RvslV":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#autoTransform"},"UtkUk8oank80Ziv47wU0U":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#blendMode"},"sOHTXT7WajxeRZWOS_ZqZ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#body"},"gn5yCPGVBElOz7JXFOdy-":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#bottom"},"mP3cF66mCGYkB5a7odZSJ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerX"},"ZsY_ixs9rO-jj7l82yxlZ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerY"},"LLkIjiXoj4XaVIjkoKiNE":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#currentTransform"},"jcktxKOFhEiqjeW56scd6":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#depth"},"UCFitl-ykG6uDXB0MtEj6":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#floating"},"N96g5WkbRnn0BiDvnq02T":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#GUID"},"efQddWS1gwVW_Aw3gULnM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#height"},"Ha4hibfT3KcQYkW1ov6tZ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#id"},"4NX5BGeoLduOnrnTdvoWh":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#inViewport"},"5ym17_wn_ZLYr2mqbJkOY":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isDirty"},"AEthbSU4a4PYXkyKWFNFe":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedX"},"VJft0XzVt-aY7eBuseCt-":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFlippedY"},"pG8e1eeMm_fK8_x8c0Dms":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFloating"},"7hSXMIAn1yzpZCPYJu55j":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isKinematic"},"77UykLwoHU5l6xycNU7g7":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isPersistent"},"XCR0WVpYnR2pxswuBZEgp":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#left"},"TWPeX_ItO2eInq_JzW1kJ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#mask"},"_IE4Dp21RrDCFdaLOi8rM":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#name"},"FAZwxD6CIDz79OvqRv3uI":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onVisibilityChange"},"fc82uc2rsdM8rUx5rJkJx":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#parentApp"},"TU2tT-vVf3XRwLbE2KCNi":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#points"},"p15NsjgDxLKBcabzeJSYV":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#pos"},"lr4ZMndkES_eBveK5Enua":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#renderable"},"Cdz-8ADFxdCsDKzlAiZQK":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#right"},"Ay4dlE4xHa4rsyi5rpXa7":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shader"},"VmGwPCJu1PGfIz02vAA1E":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#tint"},"u5D01n-MkNtBNt0z1Yuxy":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#top"},"x37dyPPYmRlcHftF_pf9s":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#type"},"Za-sSTMKjyCVy7EsPnmuu":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateWhenPaused"},"90d0t0tvomCnNx1atIBmJ":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#width"},"lWPLWe-h_VHEjLYCGkE5M":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#angleTo"},"a33AGe3WxeGd7TBetUOfw":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#centerOn"},"zaPLoSn0PGMrCaqn8j8jx":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#clone"},"jx_EtC5ZEmS4DsJQfJouB":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#constructor"},"Ru-RcJA3BHBmLEzY6A4Hz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#contains"},"NemPwjbxkg3yXULYhUFSH":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#copy"},"L76ejH5AaNP1G1PSvGwtw":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#distanceTo"},"_2tQghudd4uApaBN9eKuL":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#draw"},"dBiiT2RvCKRx7-9TAkXxq":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#equals"},"fyb5i0J4S2W3a1_ya8F1j":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipX"},"EG8tGwtegjb-icgGGO7MT":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#flipY"},"x-XfG-8E82z0CvyZEAeh7":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getAbsolutePosition"},"Qav-6bDX15kIV8HzhFUY9":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getBounds"},"9paWZL1d3v-VTo5vppKGU":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getIndices"},"4nTY98M0FJeRm7y-tAss7":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#getOpacity"},"sqcAeck97OZ-jSFP0sIAh":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isConvex"},"YnnpD22luXdJZFgz08jl9":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#isFinite"},"wvJpybcPH3M54o3WE6tH3":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#lookAt"},"kuQXkClW6albu9c7LIGwA":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onBodyUpdate"},"4WI0uoGkwp50LgwlnFYSR":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onCollision"},"nTmGy5rG9GqGaJT2fd2c8":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDeactivateEvent"},"rQd5dpBbvV4lgpS1D9NPs":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onDestroyEvent"},"4vNufHnsoG17EkQ5X9_rU":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#overlaps"},"4kGYjTlMHkxC5FoPa0Vt-":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#postDraw"},"biPFsCo05hjJClnJLtkRb":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#preDraw"},"zqypiCvsoj2Py6Xn63AYC":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#recalc"},"GTK-iRmsVDPVH-l9SzZvR":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#resize"},"bUgXLa7sWaYxEpPxMgEvn":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#rotate"},"QOhWlBFfxm6UTFRQZR5az":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scale"},"vE0Fa8989AMIpN61oXyuh":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#scaleV"},"ek5ADwHlWNLmYPWIX8cUg":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setOpacity"},"JNoGPuF0vaTXIxNXIEIxW":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setShape"},"G8WXsQoeDv7uNm-iJ7mXU":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#setVertices"},"wCp4EyJzG7ccda0PzvwfS":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#shift"},"GncW2qBgcFwQslN_BnPEi":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#to2d"},"Km-lJaDThu0FHxdxxRdDz":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toIso"},"CkbOYxfAKNEBjyZzY0Vd2":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#toPolygon"},"tNZ-UVcwvvs2tGWV5k27i":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#transform"},"zPOyNx3MurEGPs1SCW2oK":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#translate"},"GuKHucfRlHD0uZ6adGAFG":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#union"},"Ne6B8tyn1PPCx11H3SEoX":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#update"},"zMQeeeZ9W8GVSQSLfxNB8":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#updateBounds"},"krZaOBoW34AZ3oXLsJ2DR":{"uri":"/melonJS/docs/melonjs/DroptargetEntity.html#onAnchorUpdate"},"29Ivqnpofjv6mS0Mh8BW1":{"uri":"/melonJS/docs/melonjs/Ellipse.html"},"Yz5BSQFf4Z_kmTC3GQZIT":{"uri":"/melonJS/docs/melonjs/Ellipse.html#pos"},"XQ2xzaiqJr8YtwKCshWZi":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radius"},"vIUxEsq9YXoSgVYPyvGuo":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusSq"},"rea95VVwL-wxEW1qui1TH":{"uri":"/melonJS/docs/melonjs/Ellipse.html#radiusV"},"YNCZ8tDzziLfXk8uYB7ko":{"uri":"/melonJS/docs/melonjs/Ellipse.html#ratio"},"cajgFGR2TmO0tPbrZKH6H":{"uri":"/melonJS/docs/melonjs/Ellipse.html#type"},"ku_ysuVkhLfj2_j-qpyWX":{"uri":"/melonJS/docs/melonjs/Ellipse.html#_bounds"},"3FgJqZ37TUeXCqjpbuQ-L":{"uri":"/melonJS/docs/melonjs/Ellipse.html#clone"},"t50uzCxLzmRylD8fTnR9V":{"uri":"/melonJS/docs/melonjs/Ellipse.html#constructor"},"j5td_ezpaQPgLiPggwda_":{"uri":"/melonJS/docs/melonjs/Ellipse.html#contains"},"IUDQMVlf2yd0eCJF0Wfwj":{"uri":"/melonJS/docs/melonjs/Ellipse.html#getBounds"},"32XnH_LfDcfjN3f22mAEa":{"uri":"/melonJS/docs/melonjs/Ellipse.html#rotate"},"SWtpTqcdEPDmGox8sRINn":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scale"},"L7vy-pihzQEtLfgXmvKki":{"uri":"/melonJS/docs/melonjs/Ellipse.html#scaleV"},"mGBdhlGvsYDyfCfkdswV8":{"uri":"/melonJS/docs/melonjs/Ellipse.html#setShape"},"Nz1JOAZl0uC-XtvmXGeey":{"uri":"/melonJS/docs/melonjs/Ellipse.html#transform"},"X84gGFD4iFCkDtLLZNu5B":{"uri":"/melonJS/docs/melonjs/Ellipse.html#translate"},"BNwyEDYY7S1FQSqkyCxzE":{"uri":"/melonJS/docs/melonjs/Entity.html"},"sXeBrMuNSp73BNgMdsEPw":{"uri":"/melonJS/docs/melonjs/Entity.html#alive"},"Wg5Gu_v2W_9jo0C3VL1Wa":{"uri":"/melonJS/docs/melonjs/Entity.html#alpha"},"BrDjJd_gUc_cxD0dRQBHu":{"uri":"/melonJS/docs/melonjs/Entity.html#alwaysUpdate"},"zl-Y7zEotFon9H1HHh6w3":{"uri":"/melonJS/docs/melonjs/Entity.html#ancestor"},"gQQ-aizPMe0xwbkhPhu4u":{"uri":"/melonJS/docs/melonjs/Entity.html#anchorPoint"},"QY4okFPKX0SzTskm9Pz0G":{"uri":"/melonJS/docs/melonjs/Entity.html#autoTransform"},"hsrmtBCAMLyXBXojG4jOq":{"uri":"/melonJS/docs/melonjs/Entity.html#blendMode"},"kxrzhD1xL0aQPkT-q5XtN":{"uri":"/melonJS/docs/melonjs/Entity.html#body"},"qbT_lify5h87RgHl8rAfO":{"uri":"/melonJS/docs/melonjs/Entity.html#bottom"},"TuOXuOdz7WkdiDKo7Fqox":{"uri":"/melonJS/docs/melonjs/Entity.html#centerX"},"TA5z6AbpXyNB4nXNgPpZk":{"uri":"/melonJS/docs/melonjs/Entity.html#centerY"},"yIJt7tbWj1jtq1GZ5iP8R":{"uri":"/melonJS/docs/melonjs/Entity.html#currentTransform"},"AByfCizGX5VvIHG--2qOi":{"uri":"/melonJS/docs/melonjs/Entity.html#depth"},"ZeaeiV_mOG2SkO8gZppSa":{"uri":"/melonJS/docs/melonjs/Entity.html#floating"},"V-pwsv6tktRQ3xT8yqs2u":{"uri":"/melonJS/docs/melonjs/Entity.html#GUID"},"Bpc5ubtTFFf0uBqvlyHwp":{"uri":"/melonJS/docs/melonjs/Entity.html#height"},"Av9E6G2NCAB8yFGjOq3IQ":{"uri":"/melonJS/docs/melonjs/Entity.html#id"},"vAUp9XbtZCptl9QU9XODS":{"uri":"/melonJS/docs/melonjs/Entity.html#inViewport"},"NwjX4AnSb1hafp3DiIcsq":{"uri":"/melonJS/docs/melonjs/Entity.html#isDirty"},"wER2Jy34qwsQRMWdSEZxq":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedX"},"OybrwTXlSEXAER6YBw-I6":{"uri":"/melonJS/docs/melonjs/Entity.html#isFlippedY"},"mNcU6w5IT-lyLYjx6_fg6":{"uri":"/melonJS/docs/melonjs/Entity.html#isFloating"},"D_kepnNTpqrWsK3QJu8fi":{"uri":"/melonJS/docs/melonjs/Entity.html#isKinematic"},"xy-vnHWetOnbKYTHPXLNb":{"uri":"/melonJS/docs/melonjs/Entity.html#isPersistent"},"6u6TA5X2K8uBl9jxUIIy8":{"uri":"/melonJS/docs/melonjs/Entity.html#left"},"T8v3FmxgTm-fz4QliRuM3":{"uri":"/melonJS/docs/melonjs/Entity.html#mask"},"wZZ8NfEysxo1aXmAfbi7b":{"uri":"/melonJS/docs/melonjs/Entity.html#name"},"XvnSW6U9cGPLlcqWPLwzE":{"uri":"/melonJS/docs/melonjs/Entity.html#onVisibilityChange"},"i6fol-lVRXSnfPIbLC0_g":{"uri":"/melonJS/docs/melonjs/Entity.html#parentApp"},"pG9RMu4U3YzZkPun3rABX":{"uri":"/melonJS/docs/melonjs/Entity.html#points"},"wbWtZ3w8c-_7CjvgMYG1N":{"uri":"/melonJS/docs/melonjs/Entity.html#pos"},"m_-Qli4SPR2unBB_q7CM8":{"uri":"/melonJS/docs/melonjs/Entity.html#renderable"},"rscuObJVAz6GKjisYmq7J":{"uri":"/melonJS/docs/melonjs/Entity.html#right"},"DKXYBnYCm4v8zkkBgwbuq":{"uri":"/melonJS/docs/melonjs/Entity.html#shader"},"0og_QAHrsIg-qkf39ZFYd":{"uri":"/melonJS/docs/melonjs/Entity.html#tint"},"bX3aa_-8H1E5qsZEpSqnG":{"uri":"/melonJS/docs/melonjs/Entity.html#top"},"tJ397Ikx48BVZDLJVEcsg":{"uri":"/melonJS/docs/melonjs/Entity.html#type"},"dj2cbulgD1mRw6_I-Ey1e":{"uri":"/melonJS/docs/melonjs/Entity.html#updateWhenPaused"},"5Guuw6d8UE5d-e5mi3aLp":{"uri":"/melonJS/docs/melonjs/Entity.html#width"},"XV13mWv-kkwf8f2tlf2_I":{"uri":"/melonJS/docs/melonjs/Entity.html#angleTo"},"m59yMh13QjfGODRflPye_":{"uri":"/melonJS/docs/melonjs/Entity.html#centerOn"},"cHFamhLyKx1zgbGG62rt0":{"uri":"/melonJS/docs/melonjs/Entity.html#clone"},"Mn9ng6oQZfEJy6lQVGT6M":{"uri":"/melonJS/docs/melonjs/Entity.html#constructor"},"P91FMrvaek6dzcMCr0tfJ":{"uri":"/melonJS/docs/melonjs/Entity.html#contains"},"dJRToW4Hua52soD-xX4L_":{"uri":"/melonJS/docs/melonjs/Entity.html#copy"},"WWCztysOWeUfHXTboU3Qv":{"uri":"/melonJS/docs/melonjs/Entity.html#distanceTo"},"Uvua9eKGbIfMn0soycUxD":{"uri":"/melonJS/docs/melonjs/Entity.html#draw"},"d2Srh9d3hlPueIAWcGb5r":{"uri":"/melonJS/docs/melonjs/Entity.html#equals"},"LJayPvBIizKiwJs_tbWDW":{"uri":"/melonJS/docs/melonjs/Entity.html#flipX"},"-miAaP_8AlAXRcxwf0r6G":{"uri":"/melonJS/docs/melonjs/Entity.html#flipY"},"nIblpXWYkoUE4k4YmXc2l":{"uri":"/melonJS/docs/melonjs/Entity.html#getAbsolutePosition"},"xR4seHaFBRsYKjNTh9hfL":{"uri":"/melonJS/docs/melonjs/Entity.html#getBounds"},"mK5mzexd47wxZydU7cK18":{"uri":"/melonJS/docs/melonjs/Entity.html#getIndices"},"RmaUE5ixXHmj2IKvhTmrr":{"uri":"/melonJS/docs/melonjs/Entity.html#getOpacity"},"zb1yqlkaAzHUw6idZuP3y":{"uri":"/melonJS/docs/melonjs/Entity.html#isConvex"},"j2adhQhSdhTbok7aYUqrw":{"uri":"/melonJS/docs/melonjs/Entity.html#isFinite"},"ycz5G0ACpS3mJl6lBY8C1":{"uri":"/melonJS/docs/melonjs/Entity.html#lookAt"},"ju9FKyErEDAGCIloeYLGp":{"uri":"/melonJS/docs/melonjs/Entity.html#onBodyUpdate"},"a8zsaPa6gCFoGpr3X2NHa":{"uri":"/melonJS/docs/melonjs/Entity.html#onCollision"},"DIDxrzq5fgDXix-UmFvza":{"uri":"/melonJS/docs/melonjs/Entity.html#onDeactivateEvent"},"YjD5jHJsGzFDB20KPFC7k":{"uri":"/melonJS/docs/melonjs/Entity.html#onDestroyEvent"},"7zEPVqeyZNLdCyeuhQI9e":{"uri":"/melonJS/docs/melonjs/Entity.html#overlaps"},"1-mjqcdYKkf6xC150RT_1":{"uri":"/melonJS/docs/melonjs/Entity.html#postDraw"},"KJtzNv1zJjiDvZKyB8ndI":{"uri":"/melonJS/docs/melonjs/Entity.html#preDraw"},"xJwzh-fbkLIHggXrAWYJV":{"uri":"/melonJS/docs/melonjs/Entity.html#recalc"},"vEiZC_9BwfPDUOwinxA-1":{"uri":"/melonJS/docs/melonjs/Entity.html#resize"},"cud41e9Lw09_45cmysW5P":{"uri":"/melonJS/docs/melonjs/Entity.html#rotate"},"YTU33K328JiLqKrYiW54K":{"uri":"/melonJS/docs/melonjs/Entity.html#scale"},"XY8L5JParR-9WDReYZQIc":{"uri":"/melonJS/docs/melonjs/Entity.html#scaleV"},"Ge7LU2N3ihSJqOPgdtIHW":{"uri":"/melonJS/docs/melonjs/Entity.html#setOpacity"},"bAQDibe9cIyHIqIfo9xeb":{"uri":"/melonJS/docs/melonjs/Entity.html#setShape"},"GuXWtqYX_0bQF-d6cg4Sh":{"uri":"/melonJS/docs/melonjs/Entity.html#setVertices"},"Yr53lSAqpllldHKKivxQ-":{"uri":"/melonJS/docs/melonjs/Entity.html#shift"},"qW-YwKEril5ljyRewUya0":{"uri":"/melonJS/docs/melonjs/Entity.html#to2d"},"eL1FOYMH2KpXSJIQ5tGUm":{"uri":"/melonJS/docs/melonjs/Entity.html#toIso"},"R1T0m2qlnjn6IexAHK9fc":{"uri":"/melonJS/docs/melonjs/Entity.html#toPolygon"},"Yl6nmBOFTCz0PqxShmgN-":{"uri":"/melonJS/docs/melonjs/Entity.html#transform"},"ppBnTRRxWpO8x4AK5SIzs":{"uri":"/melonJS/docs/melonjs/Entity.html#translate"},"Z4pINomIrX6wwTrqmoXcY":{"uri":"/melonJS/docs/melonjs/Entity.html#union"},"_eTu07CLphN5CvgjZeX-B":{"uri":"/melonJS/docs/melonjs/Entity.html#update"},"5wEIOo9C_mahR3WuKiINu":{"uri":"/melonJS/docs/melonjs/Entity.html#updateBounds"},"qtxeYCsTkwcGNhBmJr2RN":{"uri":"/melonJS/docs/melonjs/Entity.html#onAnchorUpdate"},"rFgHh0UsO-3DgpcGxGxG6":{"uri":"/melonJS/docs/melonjs/GLShader.html"},"g3QN4x9C1pyj3sme9y7ue":{"uri":"/melonJS/docs/melonjs/GLShader.html#attributes"},"LzzR-lm8ja3-YWv-0K1hc":{"uri":"/melonJS/docs/melonjs/GLShader.html#fragment"},"4KRVq5w7puCpF88_jbn59":{"uri":"/melonJS/docs/melonjs/GLShader.html#gl"},"t3XwQVK-9dIh07e4vE4aV":{"uri":"/melonJS/docs/melonjs/GLShader.html#program"},"INcU-1c_7SAvZYWsHfkS1":{"uri":"/melonJS/docs/melonjs/GLShader.html#uniforms"},"ZR_jO0cngoUMxyePJUC6U":{"uri":"/melonJS/docs/melonjs/GLShader.html#vertex"},"bOV_7lxnSvwvn2rHgrKrj":{"uri":"/melonJS/docs/melonjs/GLShader.html#bind"},"bMNJoBmZnq0vJgGJl5QIx":{"uri":"/melonJS/docs/melonjs/GLShader.html#constructor"},"fnFdLtrfTWlZyYEe4fOHn":{"uri":"/melonJS/docs/melonjs/GLShader.html#destroy"},"tQKuPZcM1gbeUnNr2yZ7K":{"uri":"/melonJS/docs/melonjs/GLShader.html#getAttribLocation"},"syQW8HD4SvJvadiSJ5Zmk":{"uri":"/melonJS/docs/melonjs/GLShader.html#setUniform"},"p4po1tyFuG4ZKuf-R4F3W":{"uri":"/melonJS/docs/melonjs/GLShader.html#setVertexAttributes"},"w2FfEzAj4e1Jv2k31xtn9":{"uri":"/melonJS/docs/melonjs/GUI_Object.html"},"lS2_3BFmvtBx4AOc3SCUw":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alpha"},"x-YSoiLOtwhxqIozsVs8p":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#alwaysUpdate"},"WWN1cIhauDoh4qSgSVlod":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#ancestor"},"-0K4ZJls7LKacdjumug7R":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#anchorPoint"},"hVviQQAZ_YH__5VIZPHAx":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationpause"},"akMqkZZghOLQWxKifMogI":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#animationspeed"},"-_Aqo-KcejLWquZvHHzIB":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#autoTransform"},"aMyXLPXkmCh4GTNIbjfH7":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#blendMode"},"dyIA3xvlutKQOpFXzjXjm":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#body"},"Ke-EtLQegapw7dDfxkRFl":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#bottom"},"xovMO4ESW8M-XxLXQS111":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerX"},"Ppfup4MHmOjR_FgjyWbKB":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerY"},"56QFHAboi0sV8ecoJMkRG":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#currentTransform"},"Oq0q01XRCGuCeVz_t3x43":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#depth"},"OClhQQ4vQ80CCwEiEVivk":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#floating"},"v4D5vAyFfWjQ8LZyrzxBk":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#GUID"},"HJsXtQWmC1ViYn4OhcFkj":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#height"},"Ap2p_tN6I70usEQfEt1x3":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#inViewport"},"e5mtSOJs71WSjbSRerusq":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isDirty"},"jj3gu8DAwOHMkjH6ZtrJ5":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedX"},"dN5V4yAqlYaeuIXWCL41X":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlippedY"},"XZZZgKyswCrOoeKAa9BVg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFloating"},"22D4ItUr9Wxhu-hsHhe_K":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isKinematic"},"9kodxPLRm0uhg4IARw1H1":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isPersistent"},"mT19YebQ_s7dJSLykcyXe":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isVideo"},"5WsDbdk8-J3gcne2vK4_5":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#left"},"mE0n5ApGokTH6nyQn26Cq":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#mask"},"c1gBQPfDkLYNSrUzINLBG":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#name"},"h2QV_FEgsoxe-CjMW2bXM":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#offset"},"inb1oT2nAzXXPJNol9ftL":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onVisibilityChange"},"FqR3xQXNDEfTH4av3kU88":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#parentApp"},"yDSiHzY9KY2Tr6eNIwuxO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#points"},"p4fDL7vUqIDNaTaoMgGIu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pos"},"0z_kaK5HiBnvtvOFiIA3U":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#right"},"S-i54GJ0fHLAlbEe5k0WV":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shader"},"zItY6YzD1ypuCwMjEnT-u":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#source"},"Ia1HBZoyglFN-HejEiihg":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#tint"},"_E4a43p8_I68MtDTpxFpS":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#top"},"FmmcpqJm3kXj0dcg6xflP":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#type"},"eI5L8jLXXIIoW0rXqCw0h":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateWhenPaused"},"ZOeHAj50q1_IKfz0MXO4C":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#width"},"cWhQA-kIS4IufclxMuG0Z":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#addAnimation"},"g_ameDBUHpFN0MQJpeGNW":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#angleTo"},"v_6PK4_vO8D4nyyHn8hOP":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#centerOn"},"KFrEp1DyiyfYUNZ0sc-GV":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#clone"},"UTA_rgfVwXzD084s4OMOb":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#constructor"},"2pnRxlfbl_9Irb0AOS1m8":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#contains"},"jusc_aDQVzMa5O_TNE-gR":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#copy"},"OuYdyZPgPnGcVJMHoZVAc":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#distanceTo"},"VBj_P76q0i2Ig4fEAXqNk":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#draw"},"KAgyMVQsCufNbl2c2Z8Yt":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#equals"},"Cx8umeMv8HvSOT-nNtkQO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flicker"},"bU3ovoAG2qcHTsMZzFP6c":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipX"},"izDuieVApO9hmhS4krU6B":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#flipY"},"ps4q-X22sWNAhuUTAfgaV":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getAbsolutePosition"},"btY9UYCxlpOiBZa_R0PMz":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getBounds"},"wCcN4Yr7UD-xl7KfzqHl1":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getCurrentAnimationFrame"},"tX-90mHShsW2ucYy8NQdz":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getIndices"},"jjR1TQkvd42rHa2DymB3I":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#getOpacity"},"hrUT4QhxQFb8Rpqbemjx_":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isConvex"},"qHuqfUucBlxF2utioiOJ5":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isCurrentAnimation"},"oj9538HWLflfWZZn7JOSO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFinite"},"316JlZTe-B2yN6MmAab6B":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#isFlickering"},"wJbcHDOBqxl4JXQvTQAPx":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#lookAt"},"7dpzn5T4Do1Dsint5ZQcZ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onCollision"},"-IGpfYJANSUbIh3U2n6za":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onDestroyEvent"},"PNK0Yko2q7OztYaDJl3BC":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#overlaps"},"8QTLqdVPNKf4zwunI6rJu":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#pause"},"a7G7xapSsnEBYYjqweJhU":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#play"},"uJNPHidhM-5nBOGCqouCO":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#postDraw"},"CJb8c7JQ8O334UH05eOkV":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#preDraw"},"XSMGIdi83dSfikRN_ZFU8":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#recalc"},"3Lvj6mijbUSFwCSj3rMPU":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#resize"},"2jIzyuuc-j8qPEe6H7aB8":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#reverseAnimation"},"KPv2LmiXsseUP-WrlSPL9":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#rotate"},"uGHqNTb438WsN1-IUsc1o":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scale"},"xStG0Lyme96ReEefNwpTQ":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#scaleV"},"A6SIR377aUrr46OE-lg6P":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setAnimationFrame"},"fBkXNXzrg1s8k-PNpXJIr":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setCurrentAnimation"},"AC6nCqvPnAVEhJHSqpTv2":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setOpacity"},"46NtFtL8CDKGdj3_FSOdo":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setRegion"},"TAT91bld_wL05rZ7PwHGE":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setShape"},"E5Nab9_iwqpuYpVEyYPy-":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#setVertices"},"0JpY9UlHSzhw4WHz17dU4":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#shift"},"c_gKGSWg_0uj1Zqc2II0U":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#to2d"},"DK6k2bVG4VO3HaN1qCrUr":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toIso"},"ex4LZR2EeBakTYf3gID7Y":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#toPolygon"},"BbYaTQT0J-_Pa3OMDplA8":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#transform"},"jgpFpPWPMEFe1jfhEZTSo":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#translate"},"KpDf21SqGbqcdTZmDZozK":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#union"},"sNH3XRBN0gNW6dfCe5hgk":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#updateBounds"},"rguMFavY-dko-Dy-yFtzk":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#update"},"Qxbb98tFYRZFQpcNiWaJW":{"uri":"/melonJS/docs/melonjs/GUI_Object.html#onAnchorUpdate"},"j3DN39BU658-i2wHM3M0Y":{"uri":"/melonJS/docs/melonjs/ImageLayer.html"},"2Ntd_BhNc7xJ12MddgbiP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alpha"},"_5of9XXgrle3vz_tXVj02":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#alwaysUpdate"},"j_r6LOpCfvw_SEnr6srnA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ancestor"},"RGmPRm4ZH2Z4vj4c1fZVy":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#anchorPoint"},"grpdYIoAI7GcbKll1lx7V":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationpause"},"dEGW7yozZcCcSCrsud-oj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#animationspeed"},"0taZkeF7DFsDPhTyF4XLv":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#autoTransform"},"gt_1_xQn_H88nZoCdidwB":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#blendMode"},"rWKu4Wad20MbCRjQ87eTZ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#body"},"0Qt58dj1xmWtC2ag5urqP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#bottom"},"97qzEYOpFQMFjVaQh8SNv":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerX"},"C12g68DnqdV_6bgGXW1C9":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerY"},"aDqvDTI14rKfFlXjyYpPM":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#currentTransform"},"Q4gqCI73PZjIxQLjorzDF":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#depth"},"EfvHRW4sFSUBRKLx7ifv6":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#floating"},"sV0aFAELl25Ya12WKwhYb":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#GUID"},"LQD5V_sF4IkU6WkQklTXZ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#height"},"pQWjqdAv0-s-JRCQmvxjk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#inViewport"},"hXhlAxSCZyp7TbhHFpBwU":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isDirty"},"nNBjl1a3tRyOHIiFExvE8":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedX"},"HeOtwr1A3GzudId2Tado7":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlippedY"},"U6R_Tv_GGjHlK4dugLIsg":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFloating"},"0m2oD35SxHvQwDsTpJt9A":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isKinematic"},"2Hz9x49dPcWSPFRUd2vU1":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isPersistent"},"cx9kX877WAfhFQ7MQL4-a":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isVideo"},"K2GK8C0JZGqUrrmrqtKR4":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#left"},"kn5iCAH0IE0jfsFRERrB9":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#mask"},"2gvB9Q044TgWAOWuxVCQt":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#name"},"BIPSDSaus0Z95_JsDnodi":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#offset"},"m-6bpRf1mMAtwOLS5ACxb":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onVisibilityChange"},"pAoNaZZKVDU12ksV5mvOt":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#parentApp"},"CC-TRjfHf3m7Yz-N60x91":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#points"},"u_t-eX7VUDvV1x1TVcKAi":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pos"},"KOS595ippy0xTmfTm3Dh_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#ratio"},"ZSlFoniv-7Xr7SZZ5G8Uo":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#repeat"},"SPQ9PVCHcripNFnbk9CpA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#right"},"jhQPhswRVavM2TOVrvnso":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shader"},"Di4_YXYt4nZjaq7CgINXb":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#source"},"svB5m19kkrRyNuAxX37dC":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#tint"},"PDdE2oP-6a_do6ReQl-tL":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#top"},"QINpSWBUa7lO_KHFg5oIO":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#type"},"GHYE25giuS6gjuCcS-cbj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateWhenPaused"},"r4I6g2gXEi7rHL_2NLclY":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#width"},"BMydAJbTVldhSkqbAi88Z":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#addAnimation"},"0pit1SacknCUmPFcBuVA-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#angleTo"},"gAYL9AR78r_-Tx4FpF-Ws":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#centerOn"},"jNUWMUwNlF-zqgu-ixGHH":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#clone"},"dqztZkR-9rcQuMNU2Ld_k":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#constructor"},"yJc4JScg_4ml2uI5nOTjq":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#contains"},"lBs113U9bnAzNQO9iLIfv":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#copy"},"-FhxbTCtYU5YU29JNnGvX":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#distanceTo"},"LqOl94lQgiSPdEAHLFN1S":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#equals"},"R74Fw1fwcjJe7_pIq3Y80":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flicker"},"mYkMKo8yL2HBwro1n3ThH":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipX"},"Al1W8XDijYUTTO08Annnn":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#flipY"},"Dcp-wHpNVbfK9A-mbOF-_":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getAbsolutePosition"},"HXoAJec-rlVD7lSxvY9p-":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getBounds"},"ks-cHtu1Tv14-L2pL7EF4":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getCurrentAnimationFrame"},"vTp2zH53SbYiI3vvZUZMF":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getIndices"},"dE5f5dJivHoLoQa-Wftbe":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#getOpacity"},"ZNO4DsBL2KO0eWRqMWh18":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isConvex"},"bjCVVepFEPxFMJNnbXXSf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isCurrentAnimation"},"ZdRRQxKgd-ME4vFNfDu21":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFinite"},"oyf_udTxuLVKNL6J2vPfp":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#isFlickering"},"zyrRyGozx7ww7tAA0HgM4":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#lookAt"},"ab_KcUOHJzZEvnDT1kVoa":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onCollision"},"rvfcIWqz6ct-RCn_5dHqV":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onDestroyEvent"},"DbofNnhdJOfn87VLclusI":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#overlaps"},"x2bv3t0QFnuuUOiicew6F":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#pause"},"wMJNfTCg4NEc3hP3lLvcj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#play"},"TTxcuERvqVcv5R5A7tq85":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#postDraw"},"r8httnycisvRc_ISL1R-G":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#preDraw"},"VAmiDiuJwn7uebJWlafMD":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#recalc"},"D0xcKuEWG3jXFqI3p1OsG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#resize"},"k0sPXa7x5nuWf8lq7sPQA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#reverseAnimation"},"eMp-iBqbuqiuAih6SeKTR":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#rotate"},"mV-QsGtPnnYy3po5Exe_y":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scale"},"wwR96jJEg0X_KfHaleyj8":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#scaleV"},"jhDCPjnS3I-zO_4KJv0v2":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setAnimationFrame"},"5avE_DBkfjaOQxHuKVqQA":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setCurrentAnimation"},"TQwMCMqsr8fKE8ObmnyKj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setOpacity"},"8NAmCwwjSQOh64OlT4czG":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setRegion"},"7lCYl3GMx8ATXBSYvZ6qj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setShape"},"JyTY4VeZ9uX3DQkpNgTj3":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#setVertices"},"PAbChs_5icPsLlDtTl-FE":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#shift"},"Uu4lVd87_UFv2wTen45oj":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#to2d"},"i4nep3A1_NrVa680CtnUf":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toIso"},"3-XSG8pIyYfE21Fhj4Pfe":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#toPolygon"},"IooQs1pLvp7_ihKOuWk5t":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#transform"},"JqUAHrIO2hSDa0q_oa7RO":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#translate"},"6DUr7Ul3aU1sODRwxtWMl":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#union"},"oqzv7NQSPzm5ixOD-hNwk":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#updateBounds"},"u4hzNpDJABOOjKlSYsugZ":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#draw"},"_sONzC1oUTrOwF94y9ek8":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#update"},"lAl41Db8TpJailicxr1TP":{"uri":"/melonJS/docs/melonjs/ImageLayer.html#onAnchorUpdate"},"4PYKcNQtr8FULLFID3VCg":{"uri":"/melonJS/docs/melonjs/Light2d.html"},"sxnDeDeLlL6BXcnOAPQ2b":{"uri":"/melonJS/docs/melonjs/Light2d.html#alpha"},"Mh1eZEItiN0v9m3D5HczW":{"uri":"/melonJS/docs/melonjs/Light2d.html#alwaysUpdate"},"9PaDJDIUiWG_LOrJgbol-":{"uri":"/melonJS/docs/melonjs/Light2d.html#ancestor"},"YJGXvu1OPY7dcxlVgiYjt":{"uri":"/melonJS/docs/melonjs/Light2d.html#anchorPoint"},"Ef6WtudF5nyG_VpCeaAVS":{"uri":"/melonJS/docs/melonjs/Light2d.html#autoTransform"},"CWTWwcVdAWyBZ-LrhNcHS":{"uri":"/melonJS/docs/melonjs/Light2d.html#blendMode"},"Lab4vLoBBcHCHqNkwfCyM":{"uri":"/melonJS/docs/melonjs/Light2d.html#body"},"xD7GK9KChuy9sIqGLNT29":{"uri":"/melonJS/docs/melonjs/Light2d.html#bottom"},"zbSDCo3ES14gXUAlWX2do":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerX"},"F2JHDNe_TDV_VF1MH6owD":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerY"},"GJXzFfCfCnIz5KFArNxHv":{"uri":"/melonJS/docs/melonjs/Light2d.html#color"},"ly_YuFv-iL5sHHyI03wJe":{"uri":"/melonJS/docs/melonjs/Light2d.html#currentTransform"},"sdST05hUxWJi5XN9E211w":{"uri":"/melonJS/docs/melonjs/Light2d.html#depth"},"k5elY4JAKl9xQbJx2LfsQ":{"uri":"/melonJS/docs/melonjs/Light2d.html#floating"},"U5FSg-Qp1W2G9Zft9sLhq":{"uri":"/melonJS/docs/melonjs/Light2d.html#GUID"},"XumvUGOQS-OsdweGRpWaS":{"uri":"/melonJS/docs/melonjs/Light2d.html#height"},"gcUuOGC_XnxiIYw2jBT0D":{"uri":"/melonJS/docs/melonjs/Light2d.html#intensity"},"l2-2YjSdwzF7v4DjD-Hvy":{"uri":"/melonJS/docs/melonjs/Light2d.html#inViewport"},"6c2Y3dgSCOnpXsWUkl99D":{"uri":"/melonJS/docs/melonjs/Light2d.html#isDirty"},"QS54m-kE7qLQv4yJpieBN":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedX"},"9emZfWYMFQLeFjl_0-RLp":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFlippedY"},"nqC_FjA21aICyw7EEl-8y":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFloating"},"DPFXXboQedvtGNQ00fIEz":{"uri":"/melonJS/docs/melonjs/Light2d.html#isKinematic"},"o1x5V-icZP2XxvQMlu-fB":{"uri":"/melonJS/docs/melonjs/Light2d.html#isPersistent"},"cJEeYLVY0evG-6auEyGD_":{"uri":"/melonJS/docs/melonjs/Light2d.html#left"},"-Rm3K_3V-05VZDF60auKq":{"uri":"/melonJS/docs/melonjs/Light2d.html#mask"},"rqLLHvJFtcsAiVwk6X_E0":{"uri":"/melonJS/docs/melonjs/Light2d.html#name"},"TyWPtwNOyFvv7K8HlTONI":{"uri":"/melonJS/docs/melonjs/Light2d.html#onVisibilityChange"},"il__xrl8was-28SoV4282":{"uri":"/melonJS/docs/melonjs/Light2d.html#parentApp"},"JNAVP6oH7W82ZssUtEJ_8":{"uri":"/melonJS/docs/melonjs/Light2d.html#points"},"SwfvqlDEQ_dT6enO20PHL":{"uri":"/melonJS/docs/melonjs/Light2d.html#pos"},"j8ilt7uVUwBSVy2cCXbvF":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusX"},"WfOVZBhQwSxdHpRrmjw0l":{"uri":"/melonJS/docs/melonjs/Light2d.html#radiusY"},"D0zJgUuNqMJVUtFohztPj":{"uri":"/melonJS/docs/melonjs/Light2d.html#right"},"MJyeftLKm0LQKV2powUh1":{"uri":"/melonJS/docs/melonjs/Light2d.html#shader"},"7nbfLykUVCEZrTYXwuyfN":{"uri":"/melonJS/docs/melonjs/Light2d.html#tint"},"RCuhd8YYiVKJHdG0JZGBA":{"uri":"/melonJS/docs/melonjs/Light2d.html#top"},"VC1paj3md6BtSbX2JtKxe":{"uri":"/melonJS/docs/melonjs/Light2d.html#type"},"VLUkcCq7d-4vNlu5yALdl":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateWhenPaused"},"rtbkp88ccC8U9oe_jiCG_":{"uri":"/melonJS/docs/melonjs/Light2d.html#width"},"te7QrCg48HqW9-IEx0COy":{"uri":"/melonJS/docs/melonjs/Light2d.html#angleTo"},"PwJy7pGaUrXbuGRVx6TRp":{"uri":"/melonJS/docs/melonjs/Light2d.html#centerOn"},"HAR0zZh4gJ4uzbaDlRLiq":{"uri":"/melonJS/docs/melonjs/Light2d.html#clone"},"KTDDZXDYqTHLO7bJ6sMvS":{"uri":"/melonJS/docs/melonjs/Light2d.html#constructor"},"0Tu3mKgn7OxmidNT3x4Y0":{"uri":"/melonJS/docs/melonjs/Light2d.html#contains"},"S8qLgnMB3hTjxdDbfCMgT":{"uri":"/melonJS/docs/melonjs/Light2d.html#copy"},"RnmbJla0Sdf-32CSOGWbx":{"uri":"/melonJS/docs/melonjs/Light2d.html#distanceTo"},"uDQKdaGEvLStvd52_h9T5":{"uri":"/melonJS/docs/melonjs/Light2d.html#draw"},"XeB6MLaHGN5jqoK18e3V9":{"uri":"/melonJS/docs/melonjs/Light2d.html#equals"},"LapEQQDqCuzKQ6HOitMjS":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipX"},"2CwAfRcSYzzHGDvEXRjWz":{"uri":"/melonJS/docs/melonjs/Light2d.html#flipY"},"wzxld2yyiV1ZvyptBeV7a":{"uri":"/melonJS/docs/melonjs/Light2d.html#getAbsolutePosition"},"YzgVEaoojIUzTqVdrYRe8":{"uri":"/melonJS/docs/melonjs/Light2d.html#getBounds"},"NfU1gkGS14lFqP0IsuG8F":{"uri":"/melonJS/docs/melonjs/Light2d.html#getIndices"},"giGCDgA7XdqsGnu8ds52w":{"uri":"/melonJS/docs/melonjs/Light2d.html#getOpacity"},"YYLfIhm5PZtTCV1zm4oTO":{"uri":"/melonJS/docs/melonjs/Light2d.html#getVisibleArea"},"oIlKqw2iWkUgZGoxoAoVv":{"uri":"/melonJS/docs/melonjs/Light2d.html#isConvex"},"SKWz9JVYSvC2rV5JqYuIb":{"uri":"/melonJS/docs/melonjs/Light2d.html#isFinite"},"e6kxQJJQG-6tpUzmTTHe3":{"uri":"/melonJS/docs/melonjs/Light2d.html#lookAt"},"7Hi3X9sym77GnQuYFZHmI":{"uri":"/melonJS/docs/melonjs/Light2d.html#onCollision"},"VccbqsZzPO-UFhCypkSLO":{"uri":"/melonJS/docs/melonjs/Light2d.html#onDestroyEvent"},"58eCR2RW6tQvjCVXRrMQA":{"uri":"/melonJS/docs/melonjs/Light2d.html#overlaps"},"hinmlAtTn_xkM5XvmetzI":{"uri":"/melonJS/docs/melonjs/Light2d.html#postDraw"},"DwhK15T1m0KG2D9J-1g8t":{"uri":"/melonJS/docs/melonjs/Light2d.html#preDraw"},"S17K3p_W2olXjC532Bwdr":{"uri":"/melonJS/docs/melonjs/Light2d.html#recalc"},"44LwdW1ZZmwY3DpoolGKc":{"uri":"/melonJS/docs/melonjs/Light2d.html#resize"},"c8wlB-GYUBjGoTAJJ4ABB":{"uri":"/melonJS/docs/melonjs/Light2d.html#rotate"},"X7Y1EtO1WLWPzz6-esbLj":{"uri":"/melonJS/docs/melonjs/Light2d.html#scale"},"M5NeqKHeBrz2hDaeSSm98":{"uri":"/melonJS/docs/melonjs/Light2d.html#scaleV"},"PX2B4pJxizfiXVYHV98Ft":{"uri":"/melonJS/docs/melonjs/Light2d.html#setOpacity"},"hXWYGgDqdBzD45EWoi2pv":{"uri":"/melonJS/docs/melonjs/Light2d.html#setShape"},"-5lqrsrQqAhZ44es59N2C":{"uri":"/melonJS/docs/melonjs/Light2d.html#setVertices"},"zL01rMix_QvRas8RcfhhF":{"uri":"/melonJS/docs/melonjs/Light2d.html#shift"},"tgZndsSxSoX2s6_-D9NUU":{"uri":"/melonJS/docs/melonjs/Light2d.html#to2d"},"lOOdkMUjslEOXPrwl_tf5":{"uri":"/melonJS/docs/melonjs/Light2d.html#toIso"},"5OHTUVPa5tRql7-E-TmV1":{"uri":"/melonJS/docs/melonjs/Light2d.html#toPolygon"},"yPB2KuZPVqOQOJnNKOYB3":{"uri":"/melonJS/docs/melonjs/Light2d.html#transform"},"yHsBBmQAF8xhXaOXIgyn6":{"uri":"/melonJS/docs/melonjs/Light2d.html#translate"},"GTWENznGnW2hkiR4J2SUP":{"uri":"/melonJS/docs/melonjs/Light2d.html#union"},"BoMa8Os8skHmrNkS4cJUP":{"uri":"/melonJS/docs/melonjs/Light2d.html#update"},"PCBe-4CZhwAOaEoDoHfxe":{"uri":"/melonJS/docs/melonjs/Light2d.html#updateBounds"},"K7D0HQNJWaCoRSKcdi-ao":{"uri":"/melonJS/docs/melonjs/Light2d.html#onAnchorUpdate"},"spXNh1xTPP0aN68wbaFwP":{"uri":"/melonJS/docs/melonjs/Line.html"},"-P6BasqwPkKYwc1MwpJSv":{"uri":"/melonJS/docs/melonjs/Line.html#points"},"x7i7eqDjVw4gSpSKt_lJR":{"uri":"/melonJS/docs/melonjs/Line.html#pos"},"Pr49lNbiiY0blx3Y8YgsH":{"uri":"/melonJS/docs/melonjs/Line.html#type"},"Avexuv3OUUlhJeq8OOyZH":{"uri":"/melonJS/docs/melonjs/Line.html#clone"},"RBIi-fFqs0gP7k4gzBabz":{"uri":"/melonJS/docs/melonjs/Line.html#constructor"},"IK90CG_58-3hQUL_pLerL":{"uri":"/melonJS/docs/melonjs/Line.html#contains"},"l7ZsOUFcYAlPg7ZXPvhm5":{"uri":"/melonJS/docs/melonjs/Line.html#getBounds"},"GQx1SpEYiICk7P9LSoQVT":{"uri":"/melonJS/docs/melonjs/Line.html#getIndices"},"PUd4Oy5z72qX5StIMEQ2S":{"uri":"/melonJS/docs/melonjs/Line.html#isConvex"},"hC7s_9kbDahn14GU0yFNG":{"uri":"/melonJS/docs/melonjs/Line.html#recalc"},"KWxksmoqr6zQ2PxbFsAjT":{"uri":"/melonJS/docs/melonjs/Line.html#rotate"},"_BsrurhVXWht1v6A2Eh7Q":{"uri":"/melonJS/docs/melonjs/Line.html#scale"},"K-UeX2Rr4-JhFXVY6u5Gs":{"uri":"/melonJS/docs/melonjs/Line.html#scaleV"},"AaxbGBjQdg0qVRmq5qZWp":{"uri":"/melonJS/docs/melonjs/Line.html#setShape"},"BRTdWaKEqFPkqifIDpWpH":{"uri":"/melonJS/docs/melonjs/Line.html#setVertices"},"D8s-ADUtR8wrmtCak14bS":{"uri":"/melonJS/docs/melonjs/Line.html#shift"},"5TtxObDOJqRWRxHkkQ_vb":{"uri":"/melonJS/docs/melonjs/Line.html#to2d"},"JLJCrHLqSYk2Aq5iyc6Mh":{"uri":"/melonJS/docs/melonjs/Line.html#toIso"},"TzE_sfFyp0SXL3iDE-jL2":{"uri":"/melonJS/docs/melonjs/Line.html#transform"},"H69fknhVmMvx0o7hcC_P6":{"uri":"/melonJS/docs/melonjs/Line.html#translate"},"b1NrndRl3bwo-7RMAxEiO":{"uri":"/melonJS/docs/melonjs/Line.html#updateBounds"},"9-BxA9kQZ7nnQjwD4DCau":{"uri":"/melonJS/docs/melonjs/Matrix2d.html"},"6M4cSecimYv426mepkCIY":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#tx"},"FboVoVTF52HoE-Y-4U5WE":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#ty"},"0YEZ_8czFdWpIH4m5zhPZ":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#apply"},"lkrxbmmthPIoEln8ILpJ8":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#applyInverse"},"6gEtMaXp50Qm9l__NH5p9":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#clone"},"bHPipNq4rhwBDS3mPra94":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#constructor"},"7KLQY33QOBuQZT62VAwJY":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#copy"},"a9olp-KAJgstZ5cqyGIHT":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#equals"},"YkY13AP_TTtRAslS3YGF1":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#fromMat3d"},"z8zVo6hGtxftfDfaW3vLo":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#identity"},"sKGkQE-hUEs8GpcJmzF8M":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#invert"},"o2hKJx_53kxQwoJbHYEeP":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#isIdentity"},"VtknDAKQtPEW1dsxw7YqK":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#multiply"},"POvEunf-UUKnTlLdFZhcT":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#rotate"},"eI770Dmd5oTTnEv4IwZm_":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scale"},"ajRGS8R7EMLJwpL49ZBHB":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleV"},"K_lcRDQtpydiPjKUiJ_SR":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleX"},"FcgOF37Vh56JzfjLfNeRx":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#scaleY"},"zyLVco9-4h4uN3kjFAu5A":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#setTransform"},"A-72ZjS9QaoOVEmAyrfY6":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toArray"},"CwQq7DYXwhFVjvDVILkC7":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#toString"},"SzozzY35-bOVs0Cg0-GOL":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transform"},"z348-m8IG5mV1NSw9-PgD":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#translate"},"C-t24DMeHhN3ofVczYq3Y":{"uri":"/melonJS/docs/melonjs/Matrix2d.html#transpose"},"dpZ7mNiwJpzfVuwhNiTQ0":{"uri":"/melonJS/docs/melonjs/Matrix3d.html"},"tzc_79aIwywNuQxqwVJ2S":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tx"},"9LXiDf5wUHvpFNday1WNn":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ty"},"oRCtcbvWCqSFNyJYrC7o0":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#tz"},"LhTQHMFOC_f8bn4QQZRl6":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#apply"},"nb4KJBCEEGLjUYZyzOqMF":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#applyInverse"},"URlQ9pIA-rwK9OleTdrAC":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#clone"},"1v3AbG4c0nYj3mgKTENf_":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#constructor"},"YFjCrBF1PgjIY7jnLiiqK":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#copy"},"c2ZXkoY9F2FFZO7yQ9RP4":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#equals"},"V_mKjK-_GeDtvLlOoYYXW":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#fromMat2d"},"MPsr9188Kx9W-J72EdX8S":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#identity"},"aZdVrq43KXvzXs2-d-_A2":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#invert"},"pxc6xe4AWYSPbupxHHaca":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#isIdentity"},"1sDNneOz75PDoSEL45-pU":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#multiply"},"heeIXkdisnX-R03N4tcFH":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#ortho"},"T9T1g1dJQ9jZa3g0Il40g":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#rotate"},"nC0PZrl0P3TJDeg9XDlrG":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scale"},"K3qlgsWf5kglaAP7ItUlF":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleV"},"3rSyCXlbfEM6cgUhT51bf":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleX"},"hZY2dydXr7NIdSwMuVpX6":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#scaleY"},"xLzBI5RhP3uGD9isN1oCw":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#setTransform"},"czhbmApxi6IqE1pM6UnEP":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toArray"},"9schHptZJF9Ku5giOY61k":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#toString"},"xZ5o_B1WndPXdOgLOPqY3":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#translate"},"10RhN5BAo1DNpgPl15swZ":{"uri":"/melonJS/docs/melonjs/Matrix3d.html#transpose"},"BWpH3L2RjvKcRDqT_M2uf":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html"},"CZSNXNYldz5gJHyGifExv":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alpha"},"DVxf54UbV-FxxQsZToHoE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#alwaysUpdate"},"WpGK_lxxqlkfrcYSBTwbh":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#ancestor"},"4dg51WhHijd_fkwBEnQVI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#anchorPoint"},"No3qFB9qrkmDSh8QKfD8j":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationpause"},"UNLiJjhMKqMAzFomI0tF9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#animationspeed"},"G9xRtQabbJkwHxtBy5ig0":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#autoTransform"},"A7Zo5bYKFZzH94HXVaEPk":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#blendMode"},"tdjgYC5X1jzmJGuIa-47E":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#body"},"0zSCG6mFlFbPgtNqvO6gm":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#bottom"},"UPCwxuOs8b_ltq4hdKSdi":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerX"},"ma00mArkNJlnbYwbcTnuP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerY"},"wojeEuk97FbTW9mrRJBGb":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#currentTransform"},"qenmxQXT_BlVnHzITeKK7":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#depth"},"_NvyQm2HKpXKcRup4P30a":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#floating"},"GM0FpL_lWeVmaYGHfCtM3":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#GUID"},"2dgedlH7h55nYncnVVSf6":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#height"},"IIbx6bwbeOGf9eRH_FbXE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#inViewport"},"BNMTVatj7u0jbq28Zdlj2":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isDirty"},"OUn-OHXrlMTZ1S2Zj086C":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedX"},"QDf5vtvhhmpDMtmfNBchE":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlippedY"},"EYF1hcR2kRMkJGYNm6z9S":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFloating"},"lsGfCjEGefx8_jDgZ4F8n":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isKinematic"},"rYepoAJS0mCEl69wsyZRm":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isPersistent"},"VpfbYWQZOSZlApMA3HIV4":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isVideo"},"UuPVNhwk63Wgkf-AO3HWP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#left"},"vpc9U09IOe-MbYK7VWpXu":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#mask"},"_tjEppB_OQL1GrU82FrcM":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#name"},"Ts8cu__Ju20RZRc4NLxtk":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#offset"},"E4BwLtdcw7HgsdX4cmOMe":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onVisibilityChange"},"6bezdIjXTUId8uQWME_96":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#parentApp"},"FJGmjgW37EopcjcSnX2tC":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#points"},"mTOcPcZGaLx_uDFQXzpm-":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pos"},"rziUWTqvmzLl28hWNDYpu":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#right"},"rKBR4TmrVFCUeHzM5inQ-":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shader"},"eicOL33M9VzTnrF-JldIo":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#source"},"bbiUsXPLT1ixYSgxIGVjg":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#tint"},"vVJ9Mr2b2xzYqISoLXxmZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#top"},"SJSp-wxarzbRh96OUAsHf":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#type"},"mAMId5k3VPsfLOczAfhhv":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateWhenPaused"},"gKp-yeoZz9YXmm9MAe-yg":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#width"},"Z0dI7f9PSovo1-p36_f_V":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#addAnimation"},"wcMLfP5wtDSknWNasEn2X":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#angleTo"},"FP8b-cEh44pXQg_N8KHis":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#centerOn"},"iFkGzEwSj1bTsL3k771RN":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#clone"},"BQBZKLt_E7-jtxgahwJDx":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#constructor"},"QQDDEJJhQzq2qyIZBgnaT":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#contains"},"63qV0deJUJcBqKTTt-m_Y":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#copy"},"0sxn1Gew71yfdRYPfDoSd":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#distanceTo"},"arAS3l4q4irO9Re7Diufj":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#draw"},"ZLEg0X4w8ReQSY66w9yuf":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#equals"},"FXG0fvKnEPmj2Obfhrn0T":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flicker"},"FaR_HDsvQtCDKkiUc-1BO":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipX"},"5hS-SKmqWOUkkgZ0VxRxn":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#flipY"},"CQZzm4kL6eYTugQ6dUriI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getAbsolutePosition"},"tbFLnmupzg701lOykEKIa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getBounds"},"VDLBqShPuQV8csVY3hlLP":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getCurrentAnimationFrame"},"WrIhiWkINS1F661tSd9Hs":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getIndices"},"GExhOesSt4pXHwHk6r5Lh":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#getOpacity"},"gr9BwxHVzhLT_r8Jr79b-":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isConvex"},"rlUJNHy09z7z-F7fNZhMw":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isCurrentAnimation"},"MNjZvUQlhm9wjVg0RliDC":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFinite"},"evqGdQKi4GpCXLUdwZi6Z":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#isFlickering"},"yj52ZLpNoqyMIpF18u_s1":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#lookAt"},"SRsI4hUeKyO0I5AtSnIT9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onCollision"},"Jo3LV638zsiu3y9-i1pxJ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onDestroyEvent"},"a01cQbFsHCocGlJrIIIjK":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#overlaps"},"C0BEH__Xlr-iBNdFn2KiW":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#pause"},"9SXSWYE_X38YzZWolpvDG":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#play"},"4wDFj-O5glnTgcpfhAzPa":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#postDraw"},"lNAW2NYnrYuDlLnYOj5pw":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#preDraw"},"y0TMmA7Z-cAWMUUMxHD_Y":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#recalc"},"6JcW3JLHSgrPq_TtFVWMZ":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#resize"},"segCH7laEEQgO1JLdn6ol":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#reverseAnimation"},"UdHMnXuLi_zIKidlnt6-D":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#rotate"},"WNlb3lFZ41Z-LxFwkRYUI":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scale"},"jUE7B4QCTBdibJntwAweN":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#scaleV"},"s6rej5tbsqEh_dC-9wO3D":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setAnimationFrame"},"8IQmwnq7RvuJg_Scp_BU1":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setCurrentAnimation"},"YUZsjce5dYvNtliM_WF6p":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setOpacity"},"d5WpCwqqEt0ef-3EfE3Qx":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setRegion"},"bKnONDd9L6GVxK6FStlij":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setShape"},"Za7_HTARvnXyWMb7kOPGV":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#setVertices"},"AEHpdzOBT_7oIwqR1MfyK":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#shift"},"n9BXcpwvqLAAD5k-_nDzG":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#to2d"},"Z5T4UxguqnVomG_Tn70tk":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toIso"},"clCAlD2JKg4zH_43n_SaM":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#toPolygon"},"o7GRpVrfVEky3ivS4m6Rn":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#transform"},"9sAUzMTZRtVuwomJ8pboD":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#translate"},"IvQ3e8cE98wKjgS-NZPLD":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#union"},"pekhdgVy1GARQzrEnjfK9":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#updateBounds"},"KnwA_RzoW4QnWm2WcXu1r":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#update"},"tvG_xCb9yytcm-hYM54gO":{"uri":"/melonJS/docs/melonjs/NineSliceSprite.html#onAnchorUpdate"},"p9gm_1uudhy28r20mZuMZ":{"uri":"/melonJS/docs/melonjs/ObjectPool.html"},"61UPBF5YvtHbANBcc3t8q":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#exists"},"gbRY7qKsiO9jdWfRXAW2A":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#getInstanceCount"},"yd-T-FsXWThNZiehic9_l":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#poolable"},"zPfVX8g3GFWJuxKm4iDhj":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#pull"},"rncRNz1iV9z3QbdowM8Jx":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#purge"},"CIl5FnoMgv37m7DkqRnwt":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#push"},"WyRiPa38I6gr-pQCliXx8":{"uri":"/melonJS/docs/melonjs/ObjectPool.html#register"},"7_RNDBdCNz6sVIfeQ-9U1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html"},"XWKjSr3sKpoeqtU8ho_hO":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#x"},"z2S8bXB2B44auJ1LeQRok":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#y"},"Bxao1Sa-YxKaVQBbT3s7z":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#abs"},"B9U9qGo1ncNJE-_LWpiF3":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#add"},"PnWDUtaib3opHXh27e9wv":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#angle"},"dGaNbC57CgXlnSI5plg6v":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceil"},"95dtklnHPmx93kKOcn9s-":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#ceilSelf"},"ANhBfb0G4D0Utrdc5nS7O":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clamp"},"19nNjWNvkg8PHcDyDe-Xn":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clampSelf"},"pM7_liIz1b6UtKn3tfoDJ":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#clone"},"mHTjxLqnt82V9_eXDTs8B":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#constructor"},"flduS1lC7H1SftJYy3aOY":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#copy"},"NryWd08pUWiLDyQoKiGW4":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#cross"},"aL3GmS2yuujP6O6wJW3yG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#distance"},"smg76Y5n0MfxhYxOEczl5":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#div"},"9gQCqgHcWoBeB1xv1AeLj":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#dot"},"7hwID-jqmu-n9q0qTPBMF":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#equals"},"Mff52WD4Qbyewz6Sjx6Bz":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floor"},"URrHV8Vd1_WjnDCAz6NcI":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#floorSelf"},"RVXCHJJfpigTwZCEWm5Zs":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length"},"ye4fsM3ECSBX6_oiB07Y_":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#length2"},"VffIqKSyFxL9P5Se9LFSM":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#lerp"},"eYwzPbMdfmU70Z3YBq4tA":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#maxV"},"jn38lxms2mItj-c11SUD8":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#minV"},"YvDfGMv6Gqhfwm6942tzY":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#moveTowards"},"zPpd7OJjgxWndQxZ2PXfm":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negate"},"Bb0stT9RhLUQhmN15O0w1":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#negateSelf"},"kxlaiOP3N-YHvAvljmPRQ":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#normalize"},"Bs7lFQLPoY69saIVhOyUk":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#perp"},"zzn_CDp8-GADwrApelUkG":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#project"},"nyCbbJ4EGRcS19fslSAu_":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#projectN"},"4TxX0hHYiMNOh0iSAlsFh":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#rotate"},"T5MzjtjnsT4-3TvAIuwe9":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scale"},"PW9QMiOzn6PBa0_2ihUG0":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#scaleV"},"QplxVDW55rfygJCQauaHm":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#set"},"t7ZKiOJ2NEzXmcP5QbOkt":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setCallback"},"jU6IGywUwctmHJEzP72PR":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setMuted"},"1m_C2xNFJqy-3m3RfbzNr":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setV"},"lr1-LtLRXbjtmSgUT3zP2":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#setZero"},"0W_AL1VrzS6ajATygByPH":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#sub"},"vgB7rcxuhE2mCg4vkYJ9j":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#to2d"},"H82hkLmk9R0CUg1LWDiYf":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toIso"},"LDNyrLaN_iUbo8-xsohRq":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toString"},"ZtIEQz4d2TtK8l6WPimtO":{"uri":"/melonJS/docs/melonjs/ObservableVector2d.html#toVector2d"},"VViOHJ8c84omvSgIhIOnu":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html"},"d060O2mZn-y0kg4pv8P59":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#x"},"yfWYzF3ngzErfQ44Pc5jL":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#y"},"BajoiebdSe-aSQE1myM6_":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#z"},"d8cgGVlXC4nzsV9a-cwtS":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#abs"},"rUiOc-2ANhd8CiiAfAUoO":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#add"},"31Zicv187HShQsJUK9Kly":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#angle"},"KMoQwbG0nTatSiJxg3JGf":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceil"},"JstlIjUWYO8GJ662Ki_QS":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#ceilSelf"},"-tKvW0fx00Fj3mytdHUv3":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clamp"},"J4yKxR4VxxopMlcGK8_MB":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clampSelf"},"YG1UOPyb56RbtckV6tsBE":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#clone"},"ksEtXWPeBfOipeUyF9CCj":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#constructor"},"LDbNTGaKcDBzDiZUXif1c":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#copy"},"K1-6n7U8BUIvy2kIeL68Q":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#cross"},"KxTM13c9thbMclTSkW3Zv":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#distance"},"KfZG1JY1Jee62yU96XvNG":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#div"},"UzmZHNePhp_d4AocNCCC2":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#dot"},"y4J-KRqbN5JhUiH-gW-YA":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#equals"},"tGrJXJf1M70RYXu79_Tf6":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floor"},"GVUEaAUDj6GAs6giPXszk":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#floorSelf"},"6En4SaIwmA6O9q9hGLXOJ":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length"},"dyvYljjRfZ3syMnWE_kY_":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#length2"},"BsRWm3HB-rl5Jvfodjsgj":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#lerp"},"WBZdRhvAaIwAA5QXEBW7w":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#maxV"},"NdZLo2OYvknYSz68fu28z":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#minV"},"6oIQ4XEADFMrqJbE3EAla":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#moveTowards"},"49vdq95w112rIFpkr2ssv":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negate"},"HVM1nAm2TF6ZbyKB5A_TL":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#negateSelf"},"iOFsR2ysdTjNoDeAORSMI":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#normalize"},"QLYJHISAKYCjECfEWvAae":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#perp"},"0Ld8QuJ4JOFO3KITOU_7S":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#project"},"VjpJQuf9zKG7ccK36t_Xq":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#projectN"},"U1QGyyO80b0-jF1cnmeeQ":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#rotate"},"lBshPM-DJzuBQxqxwWZXb":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scale"},"xDub1qeZ_m0_SgqjKB0Lp":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#scaleV"},"zAVxL9jUvWxAm6Ic6JBMY":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#set"},"CVJVKuP_5lR7P-tQgZ_Nx":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setCallback"},"25FcC0gmKWmRU0Ly8Fq1H":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setMuted"},"Z-7KBjtEG6R-zKVJZPmkA":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setV"},"wKl3vD2Fk37vqOC1pL9O8":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#setZero"},"i3OaXCtpltuPhbZcmdrY3":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#sub"},"kbVfO2OtJR6MORoDfwBQu":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#to2d"},"DCluk91oD1rrwDkGWRZrf":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toIso"},"IL09f3GStludsY3E5cBRO":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toString"},"9Sy-s-x9uldAy_CU7eoGs":{"uri":"/melonJS/docs/melonjs/ObservableVector3d.html#toVector3d"},"vnCX40q8pBpcTCjrb7mLG":{"uri":"/melonJS/docs/melonjs/Particle.html"},"vzrm-KsmUJ_7ICjVTNRDR":{"uri":"/melonJS/docs/melonjs/Particle.html#alpha"},"YbnYwS-cwXkKI5nVtevyl":{"uri":"/melonJS/docs/melonjs/Particle.html#alwaysUpdate"},"jhMiQOThX4WnJMSgHvuzI":{"uri":"/melonJS/docs/melonjs/Particle.html#ancestor"},"N3qZqgAH68YAy7ffkcYhN":{"uri":"/melonJS/docs/melonjs/Particle.html#anchorPoint"},"w3u1y61dNVi19aU7NuUZ3":{"uri":"/melonJS/docs/melonjs/Particle.html#autoTransform"},"Jl_1UZDY4QjkVR4gPpyzl":{"uri":"/melonJS/docs/melonjs/Particle.html#blendMode"},"Zq9Em1VmsDN2LZG9_NRjO":{"uri":"/melonJS/docs/melonjs/Particle.html#body"},"AbL4WEhRfwX5ftI94x86p":{"uri":"/melonJS/docs/melonjs/Particle.html#bottom"},"l2FrGrNL6qFUVbThcaNvh":{"uri":"/melonJS/docs/melonjs/Particle.html#centerX"},"cnYErcdVaQAI3PfaKF1uj":{"uri":"/melonJS/docs/melonjs/Particle.html#centerY"},"E83EWKMhirVV14hgUQFt2":{"uri":"/melonJS/docs/melonjs/Particle.html#currentTransform"},"9ZuFVu08Gu7xixmjnH8QB":{"uri":"/melonJS/docs/melonjs/Particle.html#depth"},"1puNIth1DT9p4uLr3bU2f":{"uri":"/melonJS/docs/melonjs/Particle.html#floating"},"iG5ciN6fGgr0LOpFUHclH":{"uri":"/melonJS/docs/melonjs/Particle.html#GUID"},"iEqVjO6yOcKk37zhAoo3x":{"uri":"/melonJS/docs/melonjs/Particle.html#height"},"VrfwIXekopCXD_L6tv-Ba":{"uri":"/melonJS/docs/melonjs/Particle.html#inViewport"},"zRKCwIprqbK5kGNnveQ99":{"uri":"/melonJS/docs/melonjs/Particle.html#isDirty"},"EJaz1zdckkdJoGOZ23u8d":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedX"},"jalv3P0TXqKsjZbB1ucR5":{"uri":"/melonJS/docs/melonjs/Particle.html#isFlippedY"},"olqdedZ76njcm2y6ijL_h":{"uri":"/melonJS/docs/melonjs/Particle.html#isFloating"},"6L79gPuaMgLdvI8e1d6qK":{"uri":"/melonJS/docs/melonjs/Particle.html#isKinematic"},"1krnucG_fHU47-nbDviMO":{"uri":"/melonJS/docs/melonjs/Particle.html#isPersistent"},"SP9dLDtfY6nrif4PfHYTa":{"uri":"/melonJS/docs/melonjs/Particle.html#left"},"14JUz-CxKmFK39Htn4TVH":{"uri":"/melonJS/docs/melonjs/Particle.html#mask"},"Crho6Ldjxr6FVuKaPr3vV":{"uri":"/melonJS/docs/melonjs/Particle.html#name"},"194-OFriF_ULBQn--Wyl1":{"uri":"/melonJS/docs/melonjs/Particle.html#onVisibilityChange"},"pB7bfDlP6hGc90enKa5Ol":{"uri":"/melonJS/docs/melonjs/Particle.html#parentApp"},"57jfSEWU4n2KoGQ3scYMB":{"uri":"/melonJS/docs/melonjs/Particle.html#points"},"--ocHSa3GW0sRv_QQAetf":{"uri":"/melonJS/docs/melonjs/Particle.html#pos"},"u19p_A_aW4KwpMjvVXYSh":{"uri":"/melonJS/docs/melonjs/Particle.html#right"},"TfmGezAxDJ1E13WNnvUtK":{"uri":"/melonJS/docs/melonjs/Particle.html#shader"},"OP3jO9FpQijuH1NM5fEpN":{"uri":"/melonJS/docs/melonjs/Particle.html#tint"},"r8Vh4YyZULaZdCmHJg99G":{"uri":"/melonJS/docs/melonjs/Particle.html#top"},"YPGsXkXMJow6upX4Yfjha":{"uri":"/melonJS/docs/melonjs/Particle.html#type"},"0ysL_rgyyzkek_kwZp80k":{"uri":"/melonJS/docs/melonjs/Particle.html#updateWhenPaused"},"7wIwMgdvrGpEHQJGzChkv":{"uri":"/melonJS/docs/melonjs/Particle.html#width"},"x2NUBbAKrMtacvVq16dGe":{"uri":"/melonJS/docs/melonjs/Particle.html#angleTo"},"KusWQaVvNiV14evq1XSSi":{"uri":"/melonJS/docs/melonjs/Particle.html#centerOn"},"VDYecV743wK5AL2kvUJV7":{"uri":"/melonJS/docs/melonjs/Particle.html#clone"},"Jtgxtp6qeHcnR-GlXzLZ1":{"uri":"/melonJS/docs/melonjs/Particle.html#constructor"},"9tUQFrQSvps7AZyGA58vB":{"uri":"/melonJS/docs/melonjs/Particle.html#contains"},"9JTR4wLsqyC7EvmSMNtHp":{"uri":"/melonJS/docs/melonjs/Particle.html#copy"},"XzSRfjYOo40S268w4g-eJ":{"uri":"/melonJS/docs/melonjs/Particle.html#distanceTo"},"MfXa8n2M3lbZE8UgJK1jE":{"uri":"/melonJS/docs/melonjs/Particle.html#draw"},"FmFHaFcjUubdhAz1cS4yz":{"uri":"/melonJS/docs/melonjs/Particle.html#equals"},"rhs2-f6L0OJAy60Rc-dfd":{"uri":"/melonJS/docs/melonjs/Particle.html#flipX"},"VxnRKc9DfeUPWptS0oq9k":{"uri":"/melonJS/docs/melonjs/Particle.html#flipY"},"zI1NrZ3Fg68koOxUKTOOS":{"uri":"/melonJS/docs/melonjs/Particle.html#getAbsolutePosition"},"wLM8qUdkKop-vmGvCqv5M":{"uri":"/melonJS/docs/melonjs/Particle.html#getBounds"},"bfQPfZ7k2cE8GyYkf9IDN":{"uri":"/melonJS/docs/melonjs/Particle.html#getIndices"},"a2J8J1TksJ0vXft4OHYBO":{"uri":"/melonJS/docs/melonjs/Particle.html#getOpacity"},"LP-dwcA_8heOsRwNCsOr2":{"uri":"/melonJS/docs/melonjs/Particle.html#isConvex"},"P8kz8bQmKZruYIf9fjTIW":{"uri":"/melonJS/docs/melonjs/Particle.html#isFinite"},"iRjq9k_Q0mOTFSdnyNP5m":{"uri":"/melonJS/docs/melonjs/Particle.html#lookAt"},"n8DLOV-aRp73DYJO-jYYc":{"uri":"/melonJS/docs/melonjs/Particle.html#onCollision"},"wdd0LC2ZrLt_RnNpJfQM5":{"uri":"/melonJS/docs/melonjs/Particle.html#onDestroyEvent"},"wAtfvskJjFypp1EgF272J":{"uri":"/melonJS/docs/melonjs/Particle.html#overlaps"},"VnsLBuIasF1CP4uIU-VUO":{"uri":"/melonJS/docs/melonjs/Particle.html#postDraw"},"iF08RptJp3gOrTrQhA9KM":{"uri":"/melonJS/docs/melonjs/Particle.html#preDraw"},"nzSWLtfqORaIgoSolMg1k":{"uri":"/melonJS/docs/melonjs/Particle.html#recalc"},"DeluavO10nydlcEjUcPK2":{"uri":"/melonJS/docs/melonjs/Particle.html#resize"},"wNvBUE71aJDLBy1nv08pd":{"uri":"/melonJS/docs/melonjs/Particle.html#rotate"},"hGP55F-22LDJTLjEWg1GP":{"uri":"/melonJS/docs/melonjs/Particle.html#scale"},"UfbERvxO-UaxwCQFjK2Bs":{"uri":"/melonJS/docs/melonjs/Particle.html#scaleV"},"X89rE7ULcsv-7SgOsL4xM":{"uri":"/melonJS/docs/melonjs/Particle.html#setOpacity"},"mjSjG0ledl5pNFC2fMXHv":{"uri":"/melonJS/docs/melonjs/Particle.html#setShape"},"MBPt6Hv7dxcuNFNQMvm-1":{"uri":"/melonJS/docs/melonjs/Particle.html#setVertices"},"ysMSLImlLM6ZuwY04i91d":{"uri":"/melonJS/docs/melonjs/Particle.html#shift"},"jH2iM60j3K9pONOGlF9r3":{"uri":"/melonJS/docs/melonjs/Particle.html#to2d"},"cx3atpjlbyp37k96wzdQP":{"uri":"/melonJS/docs/melonjs/Particle.html#toIso"},"dfe6qszR0wwXlXZ8rHf9Y":{"uri":"/melonJS/docs/melonjs/Particle.html#toPolygon"},"FC4WsTA4ehMXJ5tIRLeDE":{"uri":"/melonJS/docs/melonjs/Particle.html#transform"},"974AuCHcKIOhmDeDkXJvv":{"uri":"/melonJS/docs/melonjs/Particle.html#translate"},"jsJlZxEQtdHVI5_V1QXO3":{"uri":"/melonJS/docs/melonjs/Particle.html#union"},"lmacJ6hBMLl_4MxklcOAG":{"uri":"/melonJS/docs/melonjs/Particle.html#update"},"ljq5Rbtex1gwudopPw0E_":{"uri":"/melonJS/docs/melonjs/Particle.html#updateBounds"},"jPI2jAYG4ZJtxxoFZP4Ii":{"uri":"/melonJS/docs/melonjs/Particle.html#onAnchorUpdate"},"qwDZsRGaxPhxZ5SDWpYXB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html"},"f5Djn7GnA5rK8lqZINJ1v":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alpha"},"Z0iHUlrFMRItO83bP3I6x":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#alwaysUpdate"},"ojIAylBLRaqPKgMIe4W1T":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#ancestor"},"O9KN5NAetzVAcQPrmqNhB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#anchorPoint"},"Qnm1MuBNj7IRwKhCGwT_h":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoDepth"},"VtpGAHTZYwyoHy689ef1h":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoSort"},"4KKh39eDz4JhNpJaWnIVq":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#autoTransform"},"N1X_M_K3UlQbtRYedk-ow":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#backgroundColor"},"h5nC5JGqa3y2LszWalRPB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#blendMode"},"w-iMQoCvc-AQcWcTTfHS5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#body"},"RJTbUtPmxrXZyDLiAHLxk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#bottom"},"nUtbFYbKxU60FKGO1vRyt":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerX"},"TOgNLxNAzVcF3wwb8Q8SP":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerY"},"RFe5p2DqDlhmp2TkYgoqn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clipping"},"TLva7eDaZy0YsAMRanIsV":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#currentTransform"},"9eNWhDcdCO04W5gCWsQ8p":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#depth"},"-grsDPW_TE6I78qoaMPTS":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#enableChildBoundsUpdate"},"FBeWjuA006soXnPVmShIi":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#floating"},"NF-9NLVvzkkid8ROq68u7":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#GUID"},"LRdNSsIJXkbICBq_mO8lJ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#height"},"58xGWXUfZdgqNIc92QZb-":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#inViewport"},"AAw4tXLR5TujS5Pth5TIK":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isDirty"},"3EiewVvXm0bd3o1Hf0P7t":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedX"},"2M1q8Kqr3z8oX04Z9tibH":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFlippedY"},"siY4eIGrTMIO4rx6O3WaB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFloating"},"Im7_p-X2du7Un5IXSHTvp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isKinematic"},"5_zqOn1Sy468S25yEPrWC":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isPersistent"},"mm-aQFK_Od-UJKCAwd9vu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#left"},"CnwYOHkjvBRMS3c1xRyHJ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#mask"},"rif8qFbfGiaaAH31O3p6V":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#name"},"FCLU2oRByOActUlC_NGPi":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onVisibilityChange"},"kESbWGBlertrWEIN_7CHf":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#parentApp"},"gR6EmusXBAU_3OIy2Ih9b":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#points"},"4lBE9HyN8gPP2wqSm69EE":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#pos"},"aHC-JNJ7XTWDeDNC_PCD6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#right"},"nq9ZbdMpoO0iw_t81TcsY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#root"},"bR-W8iMfjkU9cnUlqq0qG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#settings"},"XSRAq2DP45fme3MFNdYl6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shader"},"zn9uKz6_qnJ71bY59ua42":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sortOn"},"SapSdwcRgqwnvgxsGMkrI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#tint"},"7Wl2Qg4ZhdRx5__gfk2iQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#top"},"028_NBBIcz-L_nuxgaqGF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#type"},"Gkxl3HnZfHDyzQIqBzUDB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateWhenPaused"},"kGSXaJ9VbLBIy0LR8Nx4W":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#width"},"QhQEmIsiTdoImMV3H_rmp":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChild"},"5cek7RojPp0BvxkveS4o5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#addChildAt"},"zDD87QwhuZErJ8GJO4gH_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#angleTo"},"3MUXn-YpwQFq16eidgfgz":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#burstParticles"},"Ue0ybHXWn-HyiL1EOLPGB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#centerOn"},"qv26Dsgb6Bo3h66UNHkwn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#clone"},"02JrzFEp_47rpXOYa4Bs_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#constructor"},"q41tWmkkJxrTQ749pGzWQ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#contains"},"OpFdBmdTX9U18t7PRNfjm":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#copy"},"YK1dsDYG6cPott8tJJ2pI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#distanceTo"},"oWUWfw4QUgrZ5yLSpuveg":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#draw"},"c9svK31GWmXsxrpME_tUy":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#equals"},"OfaeU9nPkJLEx_5LdGBpn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipX"},"n7DiAd_wONn_YdVOXPFv9":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#flipY"},"UFtdjWyGLbLFKvH3B4ujG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#forEach"},"LQ_4Aknt-oJLWtdTEYtMI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getAbsolutePosition"},"jLNYMDMJdi3hucoexPzim":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getBounds"},"X1WOBkH12_5Xg5yZKXAya":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildAt"},"L8mpxhZkmngbZmPhmo9Tf":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByGUID"},"VWzAXcMn4-vDkgdJfrCRZ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByName"},"_6vW2pWvpOauFHmnDIbat":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByProp"},"g2rzcSbHv-Aup0v9Qy4Bk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildByType"},"xfvV6xOSFcsanUe3Iwarv":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildIndex"},"56cmZkTtYyOAIVDkJWm4s":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getChildren"},"xgte0Oed8IvC8yGmKzB5H":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getIndices"},"pqiLvxVhge0kJ_99AdylD":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getNextChild"},"F7wUWmS72K0bPsY7jS2Q0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getOpacity"},"WyzaWOGlyRqXlf1QGUPGl":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointX"},"l5jkOIB0fYXj4qmDjFBkb":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRandomPointY"},"NBJ3BpCgsEAo3n125zs1b":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#getRootAncestor"},"wqajLHurqeSGroAhOx5MY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#hasChild"},"WfnFT-mhk0_AfJyJOzNk9":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isAttachedToRoot"},"oXexXc4OZ2Wc0wDORbWM8":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isConvex"},"lSYt1T0BARxo5YXNkKjZI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isFinite"},"7CwkprHej6sL38kq-cgdf":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#isRunning"},"K2lWLff-EDOMouzO79fsB":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#lookAt"},"A8YmQ2_hDUrzrZLNuWH-H":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveDown"},"64tsCuiFz-LUySeylMoMc":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToBottom"},"vDiH4v8J5rgM-T9EVOaDr":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveToTop"},"M6xzZ-VHTAyCAab3tBlv6":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#moveUp"},"Q5l9sdSGF7r8R9_H6N3Rr":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onChildChange"},"f1OcCz_apbTQYMNP-MUYA":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onCollision"},"xu-qjWAmfkWNO3cgc4dc3":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onDestroyEvent"},"3b13I_nU9wJKhxR6Az-GJ":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#overlaps"},"sFLqo0eRsQb3UxaEjjl3E":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#postDraw"},"oLnswAm_-LeoIcCP0MxfY":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#preDraw"},"szZcy1IhWax38MHFVa0nh":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#recalc"},"C4ZieAXDyyDegLrDCTvS_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChild"},"1fJLSnbO3i3esiQwNswtE":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#removeChildNow"},"culOFAuX_7x7cFpXahJ_F":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#reset"},"jVmb1ujrKoh4nV8Tn5qPO":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#resize"},"rpKPfxh9Wi12croJdeqt5":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#rotate"},"mhnzznYTtx27htcg7GJqk":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scale"},"7xCXqTmnDikF9DQSrhzML":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#scaleV"},"DznlgEsM0xJpLOWxzq3qM":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setChildsProperty"},"cYDs9UnwmkwsZ9i1cd09C":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setOpacity"},"us8BwpRvphQHQvx-WJADn":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setShape"},"vy5ZboMB1y_D5nrr08BX_":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#setVertices"},"NOjuNVHVFyHzgLRqHDIhI":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#shift"},"d5_1eMt8gCPJzRqcOPMPz":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#sort"},"YGD2lwPLk0wPMXAhPDrgw":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#stopStream"},"0MpDIAcSKFpYMOaaUmH9c":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#streamParticles"},"mI6GZ0mJmArWQZEW4CWLF":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#swapChildren"},"cooD4d7A6SYUmgr8Gn-Gg":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#to2d"},"KVdaAtk8ATcVddMb6-X6i":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toIso"},"y_sdj7uK1cs40Cjlk8Kkx":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#toPolygon"},"kjHLRX87gUixbtcv_q1KG":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#transform"},"cvveIq9pTtjGU7OxKxvFP":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#translate"},"pOGk3-xldRmoUak6LUa1C":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#union"},"Te0nhFOyCwbzuMFWtTnTu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#updateBounds"},"sq1FWfuXiXCAvZIpsRdu0":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#update"},"-8U7qX9qWG6iH7d18FHbu":{"uri":"/melonJS/docs/melonjs/ParticleEmitter.html#onAnchorUpdate"},"XlnoEx8P-LQj_5jJbH56m":{"uri":"/melonJS/docs/melonjs/Path2D.html"},"wBK9ohhU9nQgndFuN70Br":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcResolution"},"PbKUxVJmU_H-9ZLI9btq5":{"uri":"/melonJS/docs/melonjs/Path2D.html#points"},"T8RJJA7nx_qKaJPYXqN7D":{"uri":"/melonJS/docs/melonjs/Path2D.html#arc"},"FRIDn2yWZuoMcAGaa4b8A":{"uri":"/melonJS/docs/melonjs/Path2D.html#arcTo"},"ykpT6GiH7BJL6wHBJhJ7R":{"uri":"/melonJS/docs/melonjs/Path2D.html#beginPath"},"ExnJRkx9O_qpduEh3TjF0":{"uri":"/melonJS/docs/melonjs/Path2D.html#bezierCurveTo"},"WnEdLmDC8Jzxmr1ZAReAY":{"uri":"/melonJS/docs/melonjs/Path2D.html#closePath"},"Qs7OYnVcq80saG3mdrEfa":{"uri":"/melonJS/docs/melonjs/Path2D.html#ellipse"},"tLZHqMLKC3qLBtRCrL26s":{"uri":"/melonJS/docs/melonjs/Path2D.html#lineTo"},"UMQeiR7NBaSFvptMxoPtb":{"uri":"/melonJS/docs/melonjs/Path2D.html#moveTo"},"6nCKMY9d1vjpM4eNSx5q3":{"uri":"/melonJS/docs/melonjs/Path2D.html#parseSVGPath"},"424VwdJMRcrIUP2KN8c7N":{"uri":"/melonJS/docs/melonjs/Path2D.html#quadraticCurveTo"},"1_aaXj6pyY3Okczw01SJJ":{"uri":"/melonJS/docs/melonjs/Path2D.html#rect"},"S0gLSYUyHVQRUlLFtVBz4":{"uri":"/melonJS/docs/melonjs/Path2D.html#roundRect"},"at76DnPRwW_DPS8yI-bp-":{"uri":"/melonJS/docs/melonjs/Path2D.html#triangulatePath"},"F9l13pSFJgeGlRtX_p5eO":{"uri":"/melonJS/docs/melonjs/Point.html"},"jo4Bi-NfawgSOoujuANdU":{"uri":"/melonJS/docs/melonjs/Point.html#type"},"g8_7CtGfuE06VirPaZi_1":{"uri":"/melonJS/docs/melonjs/Point.html#x"},"wch-yBHOB-Fb9oxNvqL9Y":{"uri":"/melonJS/docs/melonjs/Point.html#y"},"9-WZvto-1P5WaYwtUbYpU":{"uri":"/melonJS/docs/melonjs/Point.html#clone"},"EB6-uR32Q34Jb2KxqqCLn":{"uri":"/melonJS/docs/melonjs/Point.html#equals"},"zX_b3t5-T8u8Yj22a3vq7":{"uri":"/melonJS/docs/melonjs/Point.html#set"},"ayk9w1wTml5yhdrlk6zeE":{"uri":"/melonJS/docs/melonjs/Pointer.html"},"2p2jIH_OAStbcBwyzTdcx":{"uri":"/melonJS/docs/melonjs/Pointer.html#bottom"},"O_hQoDdHY-xjS5FN3ro0D":{"uri":"/melonJS/docs/melonjs/Pointer.html#button"},"PNl8TJHCQxuD-PezUmHGP":{"uri":"/melonJS/docs/melonjs/Pointer.html#center"},"-ilwBobDqSjOZpn9xnWVK":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerX"},"opNDorq3IW-8oo52PkwdJ":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerY"},"vmkL3SNQQUYnDhzSqMSkg":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientX"},"E9y5ZVoPd1CYb8k9aavch":{"uri":"/melonJS/docs/melonjs/Pointer.html#clientY"},"jFs28eOHdl8ncowqpWEC_":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaMode"},"Th-f_piDZM6mPbFtVEjQD":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaX"},"I9BEXEgbX3-97bnbahTvB":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaY"},"6JLUE0rr5fWjC8qOMvOJb":{"uri":"/melonJS/docs/melonjs/Pointer.html#deltaZ"},"kaRbgKhumO3IasOWWHF4A":{"uri":"/melonJS/docs/melonjs/Pointer.html#event"},"EBL8w0ZLllxQ2kFxEsOAg":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalX"},"Nc6Kc93nsw-o5wkjLJolZ":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameLocalY"},"zbA05Atl18WuT3q45Wf4I":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenX"},"kxigdA0OUveHIZxFEXeVa":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameScreenY"},"f4HQHWdyTg82zhwk25IaZ":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldX"},"JxggQKBng7mgeadZwKbvX":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameWorldY"},"vf9B1AG9U4T0FFWd9b7mW":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameX"},"bvYT4fl4SvbifEhwLfcN4":{"uri":"/melonJS/docs/melonjs/Pointer.html#gameY"},"9TN92sZMgtH4mFofgHx4A":{"uri":"/melonJS/docs/melonjs/Pointer.html#height"},"GjwBQGT5oGhHXWZV3bOLL":{"uri":"/melonJS/docs/melonjs/Pointer.html#isNormalized"},"OpWKVJsnTsXmr9Df6fsdP":{"uri":"/melonJS/docs/melonjs/Pointer.html#isPrimary"},"cL34X0DM8lZy8k_GV3RhX":{"uri":"/melonJS/docs/melonjs/Pointer.html#left"},"8XqqMVlxAixilJVV2DfR9":{"uri":"/melonJS/docs/melonjs/Pointer.html#LEFT_"},"62FPZRJ0_TcHIGA5HLjzE":{"uri":"/melonJS/docs/melonjs/Pointer.html#locked"},"zygtDcPGWl-WZ6kq_rn1E":{"uri":"/melonJS/docs/melonjs/Pointer.html#MIDDLE"},"0iSYaxBtw6jPc0K5M3Soh":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementX"},"7K-kjn39cbfxaN1wjcDzr":{"uri":"/melonJS/docs/melonjs/Pointer.html#movementY"},"DkR3azxMyNHEMWX07yxKf":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageX"},"9MWiqOCa8Zn-drFDyFdNi":{"uri":"/melonJS/docs/melonjs/Pointer.html#pageY"},"FOAN7JMZ89_esE6dZEPfr":{"uri":"/melonJS/docs/melonjs/Pointer.html#pointerId"},"xJe5-1H-sBeTLgDQwxGph":{"uri":"/melonJS/docs/melonjs/Pointer.html#right"},"61kZZVb07z0KFmFQ98TZa":{"uri":"/melonJS/docs/melonjs/Pointer.html#RIGHT_"},"y6gPIJloYq4aRDrKcGTnr":{"uri":"/melonJS/docs/melonjs/Pointer.html#top"},"i-fJwRgHINOrkVdEhpJZd":{"uri":"/melonJS/docs/melonjs/Pointer.html#type"},"JR-3m-55YqwvXbfmfFWU5":{"uri":"/melonJS/docs/melonjs/Pointer.html#width"},"rNrKWkizPFtcnHqyxotin":{"uri":"/melonJS/docs/melonjs/Pointer.html#x"},"DuVzh8K2OiIUSeTLh-NY2":{"uri":"/melonJS/docs/melonjs/Pointer.html#y"},"-YvO7NBOpW3l36QatLamX":{"uri":"/melonJS/docs/melonjs/Pointer.html#add"},"b5TWg84Zkpt1Cjogbj6K_":{"uri":"/melonJS/docs/melonjs/Pointer.html#addBounds"},"OQbiYb9wpuG9xR7quxzJh":{"uri":"/melonJS/docs/melonjs/Pointer.html#addFrame"},"FO1wv4tie5LSk8TFsX8-N":{"uri":"/melonJS/docs/melonjs/Pointer.html#addPoint"},"P2fBml4xJHAF1hODfdPsA":{"uri":"/melonJS/docs/melonjs/Pointer.html#centerOn"},"spZuZr-jMWY6KxHV2Nfme":{"uri":"/melonJS/docs/melonjs/Pointer.html#clear"},"syVbtsHztEFv10cN7pe92":{"uri":"/melonJS/docs/melonjs/Pointer.html#clone"},"ZEujvf86ENz6_FrRuGp9H":{"uri":"/melonJS/docs/melonjs/Pointer.html#contains"},"j1fevwqtg5OsxJYUgpkyR":{"uri":"/melonJS/docs/melonjs/Pointer.html#isFinite"},"9zKqOyx6byyF0JXwx2Z61":{"uri":"/melonJS/docs/melonjs/Pointer.html#overlaps"},"WPQEPryRG7CtYG4Whc1XQ":{"uri":"/melonJS/docs/melonjs/Pointer.html#setMinMax"},"ZTqEa3gVvDH8xZUCcBN_2":{"uri":"/melonJS/docs/melonjs/Pointer.html#shift"},"jbZB8zRY7FgoPQvwKzUhg":{"uri":"/melonJS/docs/melonjs/Pointer.html#toPolygon"},"mBEeKITuyXNCqe6_w-QS2":{"uri":"/melonJS/docs/melonjs/Pointer.html#translate"},"WzkMJ4Q6TAzZ_FvwWITCo":{"uri":"/melonJS/docs/melonjs/Pointer.html#update"},"Jqw03OT0oKsyNv7WT7Wc6":{"uri":"/melonJS/docs/melonjs/Pointer.html#set"},"oJs0RrSLrnsJA13wi7Bh3":{"uri":"/melonJS/docs/melonjs/Polygon.html"},"LLfNOrbtD1oYVvY4dsnIV":{"uri":"/melonJS/docs/melonjs/Polygon.html#points"},"avPjq-yt1pUmC8HbyGc8V":{"uri":"/melonJS/docs/melonjs/Polygon.html#pos"},"ySFHZ1RZIn0LAZqcy1Qbf":{"uri":"/melonJS/docs/melonjs/Polygon.html#type"},"zDjcPzIri8TUWbevKgB7_":{"uri":"/melonJS/docs/melonjs/Polygon.html#clone"},"Cdp_HT0gllvQ0v7vwrUXb":{"uri":"/melonJS/docs/melonjs/Polygon.html#constructor"},"z2H4Uhw99-L6cw9mWkg0k":{"uri":"/melonJS/docs/melonjs/Polygon.html#contains"},"wjTk-B5VZDqc8u3p0Xaf6":{"uri":"/melonJS/docs/melonjs/Polygon.html#getBounds"},"HcY3vP0ysIUGV9QXuYd0n":{"uri":"/melonJS/docs/melonjs/Polygon.html#getIndices"},"pq6TaU1r7UrfJDxomYnI5":{"uri":"/melonJS/docs/melonjs/Polygon.html#isConvex"},"IZ0Jwf1_EBYcR45XEiC1n":{"uri":"/melonJS/docs/melonjs/Polygon.html#recalc"},"EGB_PSZRr-DiI-z5ot4Qn":{"uri":"/melonJS/docs/melonjs/Polygon.html#rotate"},"rGfSoGvYBPitj1vWpes08":{"uri":"/melonJS/docs/melonjs/Polygon.html#scale"},"ZJVerBW6Svt8aSk-1POwH":{"uri":"/melonJS/docs/melonjs/Polygon.html#scaleV"},"6zRfoW9ycf1PrEp5qoay4":{"uri":"/melonJS/docs/melonjs/Polygon.html#setShape"},"huL_bk0zAv31irY5tMbjH":{"uri":"/melonJS/docs/melonjs/Polygon.html#setVertices"},"wxLXvJFYzCF_iW3JsVz7M":{"uri":"/melonJS/docs/melonjs/Polygon.html#shift"},"T32uvLkrRjzqQsCgncDyG":{"uri":"/melonJS/docs/melonjs/Polygon.html#to2d"},"0cwUX50JANFevL9ucgsbF":{"uri":"/melonJS/docs/melonjs/Polygon.html#toIso"},"erjYd1TNhBlDaEt3dmqId":{"uri":"/melonJS/docs/melonjs/Polygon.html#transform"},"lOOmzwSDfyjsyOle7vUhW":{"uri":"/melonJS/docs/melonjs/Polygon.html#translate"},"JfpebovIEG_OcIlS-b3h8":{"uri":"/melonJS/docs/melonjs/Polygon.html#updateBounds"},"VwSOXASzNxVHnfLnTMOhi":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html"},"WzfOZpnxo5dY-4ZBvYDCZ":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#attributes"},"pU_91t06fQxPHfwva50Cu":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#currentShader"},"noQybySLAIZVFHcIUyLc7":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#defaultShader"},"VWLUWXVg9J0EJRyxf3dgY":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#mode"},"WM3vdRGG2Dqc_WRekW9d8":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexByteSize"},"kaCtob96-0JTeQHKy3jUy":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexData"},"tnmlL0EfrnDwWTekVai9o":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#vertexSize"},"siuJhHy-7EegSwbhUkv-B":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#addAttribute"},"BQtMs-NZUUTewxAbUgdak":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#bind"},"x5bF62253zB04Y8UaiY2u":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#constructor"},"7dOv1F4wPglF-RWIh9Lzf":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#drawVertices"},"2M8aEng3BzIVatCR_clOF":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#flush"},"OIMqiqD4Z1rOsHvFe5z_e":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#setProjection"},"D88oImL4r64x_APovwpxi":{"uri":"/melonJS/docs/melonjs/PrimitiveCompositor.html#useShader"},"JdJjaBA4WU4R__hdoS2Ff":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html"},"6TVFx2jal80n3yhzSd-Af":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#attributes"},"Y09c9L7kqNf8GIRED6NlP":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#currentShader"},"EhshrD_z5Hm9aXNBZuz7J":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#defaultShader"},"QzFCrn40g7uz7AMDaVHuN":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#mode"},"rGUqyUO1Ub-AncnqYQs0a":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexByteSize"},"jRBjRPLPdM-42Btb9O88y":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexData"},"t7rkDZdmir6Mp7F_EbuyD":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#vertexSize"},"gYjyGLgc5iBxHxvDSujEI":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addAttribute"},"vt7-AIg1nrddhclcugXbQ":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#addQuad"},"elJGrRQ_PGD3zGmR1nagS":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bind"},"PhNUQ5zV3FxgD5iB7NTAa":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#bindTexture2D"},"TAnO0aTKsacVySh-CumWZ":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#constructor"},"khbf9Ec-aMZJMLp8oNTBA":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#createTexture2D"},"BcxSVQUZdQCq6ieqeysEF":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#deleteTexture2D"},"B1_P1T8DYIKIDOcvA8Ubf":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#flush"},"5kST4H1QE6Yhq7zeS7Sw4":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#getTexture2D"},"mEp_27lVPMpPKGWsoH68_":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#setProjection"},"TYR5FdAMDvcJwFcz1kgis":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#unbindTexture2D"},"b9HkuDON8ZrvrOQrrGwjC":{"uri":"/melonJS/docs/melonjs/QuadCompositor.html#useShader"},"aJWfn2qNW41UdNhyBnN2E":{"uri":"/melonJS/docs/melonjs/QuadTree.html"},"URmKDJJ8jRmB4oo4A7cLy":{"uri":"/melonJS/docs/melonjs/QuadTree.html#clear"},"w0UNDMy0RkFuYHAY1VHz4":{"uri":"/melonJS/docs/melonjs/QuadTree.html#constructor"},"ncMwsgo8Qu7a5LEKGO17z":{"uri":"/melonJS/docs/melonjs/QuadTree.html#hasChildren"},"FdbXGQfpQAAf4kJ29M1a9":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insert"},"mAmOEEhU0fJ0IP-m7VDei":{"uri":"/melonJS/docs/melonjs/QuadTree.html#insertContainer"},"ZKJ7y-xt6j55_vxCiHJBs":{"uri":"/melonJS/docs/melonjs/QuadTree.html#isPrunable"},"_Xhr-mRGngSTxAnURJIYe":{"uri":"/melonJS/docs/melonjs/QuadTree.html#remove"},"UgX4fwQuWNB7WlpZbtNeC":{"uri":"/melonJS/docs/melonjs/QuadTree.html#retrieve"},"J7Sz0k6uNii56Gaxu9Qgg":{"uri":"/melonJS/docs/melonjs/Rect.html"},"MMy4gOykvyDJF6oox_h0L":{"uri":"/melonJS/docs/melonjs/Rect.html#bottom"},"wJovhA4LhRlplA15rgXft":{"uri":"/melonJS/docs/melonjs/Rect.html#centerX"},"O9Rh5XINbBTst5jFXVsAu":{"uri":"/melonJS/docs/melonjs/Rect.html#centerY"},"rlkqs8NW4UF6OEV1yCmQv":{"uri":"/melonJS/docs/melonjs/Rect.html#height"},"MylVer2K2iKmfRMcdkkCl":{"uri":"/melonJS/docs/melonjs/Rect.html#left"},"C1uo3eUKHJDqb3Hwb_Ku7":{"uri":"/melonJS/docs/melonjs/Rect.html#points"},"C3TApl-EeNR-LNetyc26D":{"uri":"/melonJS/docs/melonjs/Rect.html#pos"},"fzXGzVMQnV82wzRp7KLyB":{"uri":"/melonJS/docs/melonjs/Rect.html#right"},"ragXNu3MzGMPeY1DmVph5":{"uri":"/melonJS/docs/melonjs/Rect.html#top"},"cS6Bpq5fdPOFjig81H0Xa":{"uri":"/melonJS/docs/melonjs/Rect.html#type"},"qGhJhCDRu1-GGTtGBrGlc":{"uri":"/melonJS/docs/melonjs/Rect.html#width"},"fbjO7j9pxst9pZWUbL-Dh":{"uri":"/melonJS/docs/melonjs/Rect.html#centerOn"},"c60L2MzhEDsRIjw2brzl9":{"uri":"/melonJS/docs/melonjs/Rect.html#clone"},"ULAExZqOO1zPDk0QzC0Gp":{"uri":"/melonJS/docs/melonjs/Rect.html#constructor"},"gzzwnqbJOqvY0QV7JdB9h":{"uri":"/melonJS/docs/melonjs/Rect.html#contains"},"6YkoBBN8vc96MLIDFDrdr":{"uri":"/melonJS/docs/melonjs/Rect.html#copy"},"fB6Yxw3KoY2DoajXRJLkI":{"uri":"/melonJS/docs/melonjs/Rect.html#equals"},"EsyPMrHDT5GeP9m6vp6tC":{"uri":"/melonJS/docs/melonjs/Rect.html#getBounds"},"0LELMuxVd--sWJbkn1sYh":{"uri":"/melonJS/docs/melonjs/Rect.html#getIndices"},"gZwHOKPupm1Tm2IRM9M1L":{"uri":"/melonJS/docs/melonjs/Rect.html#isConvex"},"fDn_UrXQpL4PHmGAo-UmW":{"uri":"/melonJS/docs/melonjs/Rect.html#isFinite"},"VJk3p7c_fEOkw4fXR4hyP":{"uri":"/melonJS/docs/melonjs/Rect.html#overlaps"},"Qvb-t-QVeHASL206pGeFK":{"uri":"/melonJS/docs/melonjs/Rect.html#recalc"},"0t2uFym1OXx6bhhuc_sry":{"uri":"/melonJS/docs/melonjs/Rect.html#resize"},"qcf2T6jc1_KJRCD9gyKDI":{"uri":"/melonJS/docs/melonjs/Rect.html#rotate"},"MZWAZd_Wd-gObY-imWGEx":{"uri":"/melonJS/docs/melonjs/Rect.html#scale"},"IaNYRM7PMyAOu1D5xmitr":{"uri":"/melonJS/docs/melonjs/Rect.html#scaleV"},"SlzQvLDPAaVHEYwNSUbnJ":{"uri":"/melonJS/docs/melonjs/Rect.html#setShape"},"_VVny93SUJVA8gbRagMlz":{"uri":"/melonJS/docs/melonjs/Rect.html#setVertices"},"LJqrHuFQgOeYUeNTLuaZb":{"uri":"/melonJS/docs/melonjs/Rect.html#shift"},"yRJKUz27KvM3pyYZ5knHk":{"uri":"/melonJS/docs/melonjs/Rect.html#to2d"},"bXX2SSLeP3-Ky37BL1sxy":{"uri":"/melonJS/docs/melonjs/Rect.html#toIso"},"nntpou6oPsQ8dqNJEStow":{"uri":"/melonJS/docs/melonjs/Rect.html#toPolygon"},"qrodCzenZmXEw4baGwHB9":{"uri":"/melonJS/docs/melonjs/Rect.html#transform"},"1LelZSebxRqM7_6ERBCB4":{"uri":"/melonJS/docs/melonjs/Rect.html#translate"},"A92Ub1O00v-oCqtay6deA":{"uri":"/melonJS/docs/melonjs/Rect.html#union"},"ZpZNY9xxY2cRQrKxfRDhH":{"uri":"/melonJS/docs/melonjs/Rect.html#updateBounds"},"huwDSJ-1vqC5j_xlRV8_D":{"uri":"/melonJS/docs/melonjs/Renderable.html"},"dUPvTlpypAAWvuaEz6vO0":{"uri":"/melonJS/docs/melonjs/Renderable.html#alpha"},"hsyY3e7lm8gmxf79hnpkt":{"uri":"/melonJS/docs/melonjs/Renderable.html#alwaysUpdate"},"7IuOAGYwGBOcIB9gHSqev":{"uri":"/melonJS/docs/melonjs/Renderable.html#ancestor"},"ih4IKrtba7xJ8KP95Boy_":{"uri":"/melonJS/docs/melonjs/Renderable.html#anchorPoint"},"58v3cwIZ4l4mKIMsZrAgA":{"uri":"/melonJS/docs/melonjs/Renderable.html#autoTransform"},"tn1IxVOY5QDOhFJBtHdnX":{"uri":"/melonJS/docs/melonjs/Renderable.html#blendMode"},"WEhSWsuXMsRb74CyXlda8":{"uri":"/melonJS/docs/melonjs/Renderable.html#body"},"hRqCnfruDNfrSg0zD2OH3":{"uri":"/melonJS/docs/melonjs/Renderable.html#bottom"},"qtg6QRjJC0x5wCIlcXHIr":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerX"},"1iwM5vBkpQ3Hfcu8NLpdJ":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerY"},"o96EwqqrZdDBAp-o9nDaa":{"uri":"/melonJS/docs/melonjs/Renderable.html#currentTransform"},"gmb9H-q3kSSSy7pcGcGr5":{"uri":"/melonJS/docs/melonjs/Renderable.html#depth"},"78UxcKOtvLfEbny1wwcKb":{"uri":"/melonJS/docs/melonjs/Renderable.html#floating"},"DgVSUhJUkOyFphtxo_HjN":{"uri":"/melonJS/docs/melonjs/Renderable.html#GUID"},"Gdfa0kKrZH07YiVz_o5RZ":{"uri":"/melonJS/docs/melonjs/Renderable.html#height"},"EfJm-dO1B50j5BQjp6iyD":{"uri":"/melonJS/docs/melonjs/Renderable.html#inViewport"},"-CibM7kPpcAZPArTmAOZ3":{"uri":"/melonJS/docs/melonjs/Renderable.html#isDirty"},"jKe9NU2NhFf_Kxvj1n9J5":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedX"},"kTrsITHlzvucTfJy1vP4A":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFlippedY"},"zTiZaRP7-wAeTmUsvbtlS":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFloating"},"vzh7CvDdOJNQIz5jyWXU1":{"uri":"/melonJS/docs/melonjs/Renderable.html#isKinematic"},"hiFrZ_nlMZsd_JNIioZki":{"uri":"/melonJS/docs/melonjs/Renderable.html#isPersistent"},"LDJyIIMrVB-Tjq6D7ey3W":{"uri":"/melonJS/docs/melonjs/Renderable.html#left"},"GzBLj54hfWK4qQK-2IHzx":{"uri":"/melonJS/docs/melonjs/Renderable.html#mask"},"d8LE3rOpPVfLcuU8XGsD1":{"uri":"/melonJS/docs/melonjs/Renderable.html#name"},"5hb_i08x0C-vJaV6MEXZp":{"uri":"/melonJS/docs/melonjs/Renderable.html#onVisibilityChange"},"vDZ-YOKqSZDTshtLjz5I8":{"uri":"/melonJS/docs/melonjs/Renderable.html#parentApp"},"G4xDCfZ8N6-xUP3mRkc4L":{"uri":"/melonJS/docs/melonjs/Renderable.html#points"},"lzwxO-ObFWL6BkqwS0tvw":{"uri":"/melonJS/docs/melonjs/Renderable.html#pos"},"wZ-tPxjGF4BFmlT8AU0pL":{"uri":"/melonJS/docs/melonjs/Renderable.html#right"},"aeFRDV1Se7ts1UGj048yI":{"uri":"/melonJS/docs/melonjs/Renderable.html#shader"},"DxmUor0SfT3xyD0X-ml18":{"uri":"/melonJS/docs/melonjs/Renderable.html#tint"},"WqXh2kYjpwkowVN-WQiq9":{"uri":"/melonJS/docs/melonjs/Renderable.html#top"},"WTP_Qi08XhcrG1abxDEux":{"uri":"/melonJS/docs/melonjs/Renderable.html#type"},"5J-tLSWZBJKjLtrMnINWG":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateWhenPaused"},"pcchoyYp9FXyxbHl29wk0":{"uri":"/melonJS/docs/melonjs/Renderable.html#width"},"aQSjGN3aPmXhCKbh_cXL-":{"uri":"/melonJS/docs/melonjs/Renderable.html#angleTo"},"DRwnBgD_prsfa_WT351s-":{"uri":"/melonJS/docs/melonjs/Renderable.html#centerOn"},"40pCuf6TYhAGC3qKbRR-K":{"uri":"/melonJS/docs/melonjs/Renderable.html#clone"},"4uVNdzlscVsyfeZOrr8fo":{"uri":"/melonJS/docs/melonjs/Renderable.html#constructor"},"UsVm8GjtECSjrdKjDUXNK":{"uri":"/melonJS/docs/melonjs/Renderable.html#contains"},"qtOMN_dw4g3RYYb3d8v7K":{"uri":"/melonJS/docs/melonjs/Renderable.html#copy"},"YhdWp7-aNL8fyIVSsrQai":{"uri":"/melonJS/docs/melonjs/Renderable.html#distanceTo"},"fbX5rfvF0sKosJ8A12gzg":{"uri":"/melonJS/docs/melonjs/Renderable.html#draw"},"_ZfX5tT43Li-PI7_rn9cX":{"uri":"/melonJS/docs/melonjs/Renderable.html#equals"},"9A-phNNMlhj3Zsz0o7sRS":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipX"},"iMvzWvvlYb5hiGhJ0RVWM":{"uri":"/melonJS/docs/melonjs/Renderable.html#flipY"},"5tDlBizu5QblZYPoZmjwb":{"uri":"/melonJS/docs/melonjs/Renderable.html#getAbsolutePosition"},"UPgv6QwAwp1XlM5RqGtVk":{"uri":"/melonJS/docs/melonjs/Renderable.html#getBounds"},"aQ87TvXN78Z_yySECBIUX":{"uri":"/melonJS/docs/melonjs/Renderable.html#getIndices"},"0cSJl7rZUtzFbQcgW84k7":{"uri":"/melonJS/docs/melonjs/Renderable.html#getOpacity"},"kntTKZ2HHkkjk_h9PI20B":{"uri":"/melonJS/docs/melonjs/Renderable.html#isConvex"},"Yatc2lGD3EK3_eNnnqu2D":{"uri":"/melonJS/docs/melonjs/Renderable.html#isFinite"},"ejP2Js5P37tn5494ljQey":{"uri":"/melonJS/docs/melonjs/Renderable.html#lookAt"},"9OCmfSMEhIt6z7MaPphQu":{"uri":"/melonJS/docs/melonjs/Renderable.html#onCollision"},"1zg6Bd05ii69pw_yz8bvX":{"uri":"/melonJS/docs/melonjs/Renderable.html#onDestroyEvent"},"3g1aTqBtrbbMDZlULOe-1":{"uri":"/melonJS/docs/melonjs/Renderable.html#overlaps"},"DqOzT5KJVFkOvCJFs3Lgp":{"uri":"/melonJS/docs/melonjs/Renderable.html#postDraw"},"DoZJTYgRQ5CTKWBO9Lqty":{"uri":"/melonJS/docs/melonjs/Renderable.html#preDraw"},"6z3a6Jdei7FxjCyjtoqc9":{"uri":"/melonJS/docs/melonjs/Renderable.html#recalc"},"NthfDqCxkq_iV6j8U-JTW":{"uri":"/melonJS/docs/melonjs/Renderable.html#resize"},"ABYdSToVIT8cNAtUSzMI1":{"uri":"/melonJS/docs/melonjs/Renderable.html#rotate"},"POLIVEiDwuoGfO4Hjy6pT":{"uri":"/melonJS/docs/melonjs/Renderable.html#scale"},"AMePRl6Yc5HZconhUnksb":{"uri":"/melonJS/docs/melonjs/Renderable.html#scaleV"},"NYDeqWJ2y4cDVBzeTm6vP":{"uri":"/melonJS/docs/melonjs/Renderable.html#setOpacity"},"rNgFohvzMFxUD4BoxkQ2M":{"uri":"/melonJS/docs/melonjs/Renderable.html#setShape"},"gYOpiF0Bg_KVhf2ZDKrW4":{"uri":"/melonJS/docs/melonjs/Renderable.html#setVertices"},"KOt1mAoJ06uK21Z3MbM4J":{"uri":"/melonJS/docs/melonjs/Renderable.html#shift"},"OAK3EQHQuB1UnasKYKd70":{"uri":"/melonJS/docs/melonjs/Renderable.html#to2d"},"V4OQuWY1WA8XowgKAhRUX":{"uri":"/melonJS/docs/melonjs/Renderable.html#toIso"},"AwqqkdU9uXxAWAXTIoOBi":{"uri":"/melonJS/docs/melonjs/Renderable.html#toPolygon"},"gvlONlXwxpS41vjrZoFBU":{"uri":"/melonJS/docs/melonjs/Renderable.html#transform"},"TdqHCzdgllOqC7qpmZUV7":{"uri":"/melonJS/docs/melonjs/Renderable.html#translate"},"_Ltpq8Ve4z9Bw2LnwnaJH":{"uri":"/melonJS/docs/melonjs/Renderable.html#union"},"goeVNUaPmoZtSnPueCe9E":{"uri":"/melonJS/docs/melonjs/Renderable.html#update"},"n_mDvn5hK7_ECovKccz4I":{"uri":"/melonJS/docs/melonjs/Renderable.html#updateBounds"},"h0cEiGgyez0XTNMHaB6np":{"uri":"/melonJS/docs/melonjs/Renderable.html#onAnchorUpdate"},"UkXRFWxihQu62T_I6itPL":{"uri":"/melonJS/docs/melonjs/Renderer.html"},"ip8LIC93DJTml1FTQG5nA":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html"},"YrE_ZCrAB_LFBYxu99JFY":{"uri":"/melonJS/docs/melonjs/Renderer/getWidth.html#constructor"},"-QBK3kDiNI6vsN4MOD0Tl":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html"},"oBgL8CiPc5rB-h5sOXjri":{"uri":"/melonJS/docs/melonjs/Renderer/Texture.html#constructor"},"ZMcYEYP6YsD5fuNpkZnN2":{"uri":"/melonJS/docs/melonjs/Renderer.html#depthTest"},"OcZRETwYiLlDA_FWp0Lvo":{"uri":"/melonJS/docs/melonjs/Renderer.html#designRatio"},"GJ21Dz16Z60C99a3umrPy":{"uri":"/melonJS/docs/melonjs/Renderer.html#height"},"7IQ4hOCPrJXzsdXgYOmaA":{"uri":"/melonJS/docs/melonjs/Renderer.html#isContextValid"},"8xLpP9-ko5agAOwBa0WOH":{"uri":"/melonJS/docs/melonjs/Renderer.html#path2D"},"drv07HXpY5wQ7TkWvhyNX":{"uri":"/melonJS/docs/melonjs/Renderer.html#renderTarget"},"QsFvzfLTmEq05ugmxZY5M":{"uri":"/melonJS/docs/melonjs/Renderer.html#scaleRatio"},"C59krgRnvN-NWLELr9F2L":{"uri":"/melonJS/docs/melonjs/Renderer.html#settings"},"98pHIeefanvvtYED3PVW_":{"uri":"/melonJS/docs/melonjs/Renderer.html#type"},"_7czRJ1LNdk2TPnRH40ql":{"uri":"/melonJS/docs/melonjs/Renderer.html#width"},"DBQRG08BxjcXQPfDHku-4":{"uri":"/melonJS/docs/melonjs/Renderer.html#clear"},"OZBuEo2QRWOmOVkd0bzOc":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearMask"},"N_lFZkQi-e3IXNM9mpclo":{"uri":"/melonJS/docs/melonjs/Renderer.html#clearTint"},"2NFR9nLivGzOsUOJNtLUs":{"uri":"/melonJS/docs/melonjs/Renderer.html#constructor"},"0GvcBUlzKqxi6d-iaWWLh":{"uri":"/melonJS/docs/melonjs/Renderer.html#fill"},"kbNhK_7j7K0CEUW7gJsD2":{"uri":"/melonJS/docs/melonjs/Renderer.html#flush"},"waEOMXrAjnoFuMc0nBok7":{"uri":"/melonJS/docs/melonjs/Renderer.html#getBlendMode"},"MAkcOWEWlf945yD_OxGVQ":{"uri":"/melonJS/docs/melonjs/Renderer.html#getCanvas"},"tWGPRUAYR36HrnQoeUXjK":{"uri":"/melonJS/docs/melonjs/Renderer.html#getColor"},"Xtd-0hJD-fMMX9zQ1FPch":{"uri":"/melonJS/docs/melonjs/Renderer.html#getContext"},"qXPa3UEXI9SN-HP4vEiQt":{"uri":"/melonJS/docs/melonjs/Renderer.html#getHeight"},"h7gZ6fvv0QSATxWuPwzwS":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenCanvas"},"wV9JdbytiNtdoVJ0hKR3x":{"uri":"/melonJS/docs/melonjs/Renderer.html#getScreenContext"},"WoQdJau7FvkPFxaSqZ2Gg":{"uri":"/melonJS/docs/melonjs/Renderer.html#globalAlpha"},"ZSFsicZeWJiUz7r5V4D-3":{"uri":"/melonJS/docs/melonjs/Renderer.html#overlaps"},"aUq29vTmJuPy73rgJJbEW":{"uri":"/melonJS/docs/melonjs/Renderer.html#reset"},"zOUxBG1RxOYAI37bjOFtz":{"uri":"/melonJS/docs/melonjs/Renderer.html#resize"},"bWAOAVnI-rG1bghfRvmxf":{"uri":"/melonJS/docs/melonjs/Renderer.html#setAntiAlias"},"mVLrSJGPf6wuMe7jFCsM_":{"uri":"/melonJS/docs/melonjs/Renderer.html#setMask"},"8Tse-kfpl5dqA0C--3AqA":{"uri":"/melonJS/docs/melonjs/Renderer.html#setProjection"},"dz5DgnqoGUVNI8iFHbpSY":{"uri":"/melonJS/docs/melonjs/Renderer.html#setTint"},"PV9miwP5C7Tp1OzLhMbtN":{"uri":"/melonJS/docs/melonjs/Renderer.html#stroke"},"igKQrZRvM4rpJH9jpw3Yv":{"uri":"/melonJS/docs/melonjs/Renderer.html#tint"},"8d5po-eNk0390D19xAGPa":{"uri":"/melonJS/docs/melonjs/Renderer.html#toBlob"},"220B6XF9SRXisTJiNsyJ4":{"uri":"/melonJS/docs/melonjs/Renderer.html#toDataURL"},"0hLCF9KW4bbF1Ld8VljqI":{"uri":"/melonJS/docs/melonjs/Renderer.html#toImageBitmap"},"uQZg9tnY1Zu0K2LuFsDg-":{"uri":"/melonJS/docs/melonjs/ResponseObject.html"},"xYNPyG_dmGWBKpLW3hQSE":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#a"},"p6TbqCKfktyowl_oqoDOz":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#aInB"},"cbL4xZnvPdvzEPUhlDBdf":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#b"},"-LOBExYAGiv5VejdpVg1M":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#bInA"},"WHJ1RNEjsEKdV49PVPHFj":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeA"},"blb8wzf8EVHH83ZPesf4k":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#indexShapeB"},"TTEnxU3-uH429M-IYNOiE":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlap"},"5CKzJj2kXFS5VrNoq9Fmd":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapN"},"8DpeGk9O8Ac19_yNuVP8w":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#overlapV"},"hT8m3odXQWaA9_prh911j":{"uri":"/melonJS/docs/melonjs/ResponseObject.html#clear"},"r-ElnxIH3tZns14iu-6S-":{"uri":"/melonJS/docs/melonjs/RoundRect.html"},"vWXdlYcUEClXTQA0mEN2D":{"uri":"/melonJS/docs/melonjs/RoundRect.html#bottom"},"nIS0z0Hrk72qFSvv-xk1I":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerX"},"gMDpTajPkyO0b_jya-sV7":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerY"},"qOykI-JFD25tvhFrhsLwc":{"uri":"/melonJS/docs/melonjs/RoundRect.html#height"},"RRLBTTqXQRlIgP2OURWIE":{"uri":"/melonJS/docs/melonjs/RoundRect.html#left"},"vsdMD3KQ8cA9rnNfeTVk3":{"uri":"/melonJS/docs/melonjs/RoundRect.html#points"},"oQ8OBijHUR7Bv8FSYxpLA":{"uri":"/melonJS/docs/melonjs/RoundRect.html#pos"},"qeFz0U0yqFN0Mv6sbv78w":{"uri":"/melonJS/docs/melonjs/RoundRect.html#radius"},"bNotUDJp0qMKq2LczBY-c":{"uri":"/melonJS/docs/melonjs/RoundRect.html#right"},"gHYCqrRPQ0dr4w2p_lXXX":{"uri":"/melonJS/docs/melonjs/RoundRect.html#top"},"EHR_fIVSWtkcK4sRoVpJu":{"uri":"/melonJS/docs/melonjs/RoundRect.html#type"},"XG2UXoC1JazgQPoJVw9lu":{"uri":"/melonJS/docs/melonjs/RoundRect.html#width"},"GwGMZ6Rj90eflQDaYzf5c":{"uri":"/melonJS/docs/melonjs/RoundRect.html#centerOn"},"F00ZbnCGwMRMAjf1K1ACv":{"uri":"/melonJS/docs/melonjs/RoundRect.html#clone"},"lT6FC-8xzKdJA5rAHWAV5":{"uri":"/melonJS/docs/melonjs/RoundRect.html#constructor"},"J2VtToRa9_EJHZhdM7rUp":{"uri":"/melonJS/docs/melonjs/RoundRect.html#contains"},"Y0jDOmo6WfKrorO06dXi4":{"uri":"/melonJS/docs/melonjs/RoundRect.html#copy"},"8ep3pNI_oKcQ41ZS8g5aq":{"uri":"/melonJS/docs/melonjs/RoundRect.html#equals"},"0EfQh28E9LIefOgAZQ8L3":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getBounds"},"ZJGpbrKA0EPX4SwD99vL2":{"uri":"/melonJS/docs/melonjs/RoundRect.html#getIndices"},"jZWr8C913-9R3sG4PUY-P":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isConvex"},"rlcVFuk8JIb-Wfb2D3xks":{"uri":"/melonJS/docs/melonjs/RoundRect.html#isFinite"},"RJwImItqoAtaaswvxm5D0":{"uri":"/melonJS/docs/melonjs/RoundRect.html#overlaps"},"bAgJp0XykbwtlycFj_PeM":{"uri":"/melonJS/docs/melonjs/RoundRect.html#recalc"},"eKPhb3WA8gpl3sRe93hpw":{"uri":"/melonJS/docs/melonjs/RoundRect.html#resize"},"EsuWtWPNGsnzUZ-G-v1qv":{"uri":"/melonJS/docs/melonjs/RoundRect.html#rotate"},"O_oOvacHugPUh8SOHHKsI":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scale"},"faoEUoRRzkqVeSxazE0jK":{"uri":"/melonJS/docs/melonjs/RoundRect.html#scaleV"},"oJicB6JjhlKj0EUZ-1rQ3":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setShape"},"BDdgs0YqpnTsRorjtjUp4":{"uri":"/melonJS/docs/melonjs/RoundRect.html#setVertices"},"sSEH8SC3yg5if_V85Xo1x":{"uri":"/melonJS/docs/melonjs/RoundRect.html#shift"},"S-n7YZlcmfqxrPxssi2Z0":{"uri":"/melonJS/docs/melonjs/RoundRect.html#to2d"},"7x5IMIlJpLo6n6BNJ_oCG":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toIso"},"Pp7zCxwFPkLe6o8gKOeVv":{"uri":"/melonJS/docs/melonjs/RoundRect.html#toPolygon"},"O0eE75hQfc3ABXFO8Ym5R":{"uri":"/melonJS/docs/melonjs/RoundRect.html#transform"},"8b2WCLXNtS_8MAjTZ0C7F":{"uri":"/melonJS/docs/melonjs/RoundRect.html#translate"},"1EHAQ7zUXAA-XHEvvPSWa":{"uri":"/melonJS/docs/melonjs/RoundRect.html#union"},"MMPRuqocReNBUa4Swwkht":{"uri":"/melonJS/docs/melonjs/RoundRect.html#updateBounds"},"39KquT95vISHlTlJSOWP_":{"uri":"/melonJS/docs/melonjs/Sprite.html"},"f3Di3MqR0Z-ph5rLYKENq":{"uri":"/melonJS/docs/melonjs/Sprite.html#alpha"},"s51fZ0cGUzuwcH08zgj3E":{"uri":"/melonJS/docs/melonjs/Sprite.html#alwaysUpdate"},"TuUPkLUP6_ul8WOmQpPHJ":{"uri":"/melonJS/docs/melonjs/Sprite.html#ancestor"},"qVtYlLKd3SOimJL0x5HbH":{"uri":"/melonJS/docs/melonjs/Sprite.html#anchorPoint"},"1wLf1vJaDbL1zl0LlIkMx":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationpause"},"Y85EHWlfNBMeDyLOUqNem":{"uri":"/melonJS/docs/melonjs/Sprite.html#animationspeed"},"N0lRUfqa2UgjbuYrKIMF-":{"uri":"/melonJS/docs/melonjs/Sprite.html#autoTransform"},"nluvrNy5fczsnB0JM2Dss":{"uri":"/melonJS/docs/melonjs/Sprite.html#blendMode"},"KuZqd2oZLmRWLYjPOFqfc":{"uri":"/melonJS/docs/melonjs/Sprite.html#body"},"L8eZYxjEYGH5mHGvDCwkO":{"uri":"/melonJS/docs/melonjs/Sprite.html#bottom"},"gdN3fzi5qHtRG4-JRGJ3Y":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerX"},"abpsMOzvWbPy6uI5ZdKXu":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerY"},"SNhxNCnQDzeke1jLqKUUM":{"uri":"/melonJS/docs/melonjs/Sprite.html#currentTransform"},"9VOVsSEZztL8aWV6-any4":{"uri":"/melonJS/docs/melonjs/Sprite.html#depth"},"AEX2s9cwsb1_XTvZsZR88":{"uri":"/melonJS/docs/melonjs/Sprite.html#floating"},"_TSIKWkmoR7pARtAVIwB5":{"uri":"/melonJS/docs/melonjs/Sprite.html#GUID"},"Wl2w176QxP9JOw1CtEMhr":{"uri":"/melonJS/docs/melonjs/Sprite.html#height"},"ys3DhwCiXgJCMooqe9XlU":{"uri":"/melonJS/docs/melonjs/Sprite.html#inViewport"},"ERb37HUNYDLC1A-TZnm0I":{"uri":"/melonJS/docs/melonjs/Sprite.html#isDirty"},"XeUhriP2SA8j0r4YKnuRM":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedX"},"xcZgsY8BppmomOukxl5oT":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlippedY"},"igX2iFrFJ6qkgNFWAtj7j":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFloating"},"oO3rEpfz-r8zElWwBYSSX":{"uri":"/melonJS/docs/melonjs/Sprite.html#isKinematic"},"RLZtotIIXS83JVOoFbLdZ":{"uri":"/melonJS/docs/melonjs/Sprite.html#isPersistent"},"g0v1tSCwVNgIkPYobqkwk":{"uri":"/melonJS/docs/melonjs/Sprite.html#isVideo"},"yYWyjWgVHnaB9kpP49hDi":{"uri":"/melonJS/docs/melonjs/Sprite.html#left"},"gFDb46TXOgbte-4bT3yJD":{"uri":"/melonJS/docs/melonjs/Sprite.html#mask"},"8NYPrqY-z9wf2vhI3Mmdu":{"uri":"/melonJS/docs/melonjs/Sprite.html#name"},"tbNCaDe_FyGCMDi_Lchjj":{"uri":"/melonJS/docs/melonjs/Sprite.html#offset"},"-vEpngoY4mevY36R3u4yB":{"uri":"/melonJS/docs/melonjs/Sprite.html#onVisibilityChange"},"ERWNReJjakk7Xk3CiDm1Y":{"uri":"/melonJS/docs/melonjs/Sprite.html#parentApp"},"huf4DS-wKmb2uJII_vnt9":{"uri":"/melonJS/docs/melonjs/Sprite.html#points"},"3YJd0UGhwBgw-nyhZOd1M":{"uri":"/melonJS/docs/melonjs/Sprite.html#pos"},"V3NV0GGNQ0GFwaof5kTQM":{"uri":"/melonJS/docs/melonjs/Sprite.html#right"},"gsqFHy4WAa-3WcoC_VTA2":{"uri":"/melonJS/docs/melonjs/Sprite.html#shader"},"yJG0i-n73UMB8J_MfdrIt":{"uri":"/melonJS/docs/melonjs/Sprite.html#source"},"FXgG66Dwv5NBgerhXk0Kv":{"uri":"/melonJS/docs/melonjs/Sprite.html#tint"},"7FLDueSyuWTZ-4CCj8_D-":{"uri":"/melonJS/docs/melonjs/Sprite.html#top"},"N1uFdFopGsP9MfYQJ0P-p":{"uri":"/melonJS/docs/melonjs/Sprite.html#type"},"3JhpgjOh7IIZkrfZ6LccK":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateWhenPaused"},"BNdH6J05sIyumcQa4GNML":{"uri":"/melonJS/docs/melonjs/Sprite.html#width"},"w_OWZ7NHnN5XNcoHhXAN7":{"uri":"/melonJS/docs/melonjs/Sprite.html#addAnimation"},"GkrLqjVb3LF63KIMKsa0K":{"uri":"/melonJS/docs/melonjs/Sprite.html#angleTo"},"mkDbV0ZvsPkn8BPCk43-0":{"uri":"/melonJS/docs/melonjs/Sprite.html#centerOn"},"Jype9LBoHlUQdeGrzQvv0":{"uri":"/melonJS/docs/melonjs/Sprite.html#clone"},"sLTY7Jmd9IC4nLVnV7GDh":{"uri":"/melonJS/docs/melonjs/Sprite.html#constructor"},"R-jOEb-TfZlZv0451clft":{"uri":"/melonJS/docs/melonjs/Sprite.html#contains"},"x_hJG-RU8eWI6hfo6WneV":{"uri":"/melonJS/docs/melonjs/Sprite.html#copy"},"vS4vimaYvae6ZlFPTXcdb":{"uri":"/melonJS/docs/melonjs/Sprite.html#distanceTo"},"qvXccYTro9nTJ4zZEc9_h":{"uri":"/melonJS/docs/melonjs/Sprite.html#draw"},"s6SEkDFUfAl8b5M3NJuH7":{"uri":"/melonJS/docs/melonjs/Sprite.html#equals"},"aBIoYIthyofNpcI3HsqwF":{"uri":"/melonJS/docs/melonjs/Sprite.html#flicker"},"OOLJyh31LumoJSeAt6O84":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipX"},"Ecz4I7i_DV10x8pFdCp3C":{"uri":"/melonJS/docs/melonjs/Sprite.html#flipY"},"L95-umMswmij1q_cK6MB3":{"uri":"/melonJS/docs/melonjs/Sprite.html#getAbsolutePosition"},"mbc6K-9jpPQHZ7kj76ceJ":{"uri":"/melonJS/docs/melonjs/Sprite.html#getBounds"},"PAvEa7uves5MYEDYCHcMI":{"uri":"/melonJS/docs/melonjs/Sprite.html#getCurrentAnimationFrame"},"mFRqRmCR23FFBTCRjSVGl":{"uri":"/melonJS/docs/melonjs/Sprite.html#getIndices"},"oWsu7Ka__h8JYYa19CgGz":{"uri":"/melonJS/docs/melonjs/Sprite.html#getOpacity"},"FN_0ADCwef_iYAyucXDpg":{"uri":"/melonJS/docs/melonjs/Sprite.html#isConvex"},"TM0LkuzglQTawGf7isGKW":{"uri":"/melonJS/docs/melonjs/Sprite.html#isCurrentAnimation"},"ynIkTiDuEyvArhEQrP5SK":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFinite"},"u08J3ifj76WLV9V7qSqTp":{"uri":"/melonJS/docs/melonjs/Sprite.html#isFlickering"},"uyuT1AOqnJZEOxmSBkW2q":{"uri":"/melonJS/docs/melonjs/Sprite.html#lookAt"},"vg1fX8iaftHYwF9c8gBv7":{"uri":"/melonJS/docs/melonjs/Sprite.html#onCollision"},"zz_eTlGOPIn9AKQRaQoXe":{"uri":"/melonJS/docs/melonjs/Sprite.html#onDestroyEvent"},"3uW925ciUlMclZrNggAYN":{"uri":"/melonJS/docs/melonjs/Sprite.html#overlaps"},"q4nKyzsUIzdbSvm7i1BLK":{"uri":"/melonJS/docs/melonjs/Sprite.html#pause"},"j7kW03VpuK1b-FROQBpz3":{"uri":"/melonJS/docs/melonjs/Sprite.html#play"},"JKx_tdbR7NIUHwFL2zXpY":{"uri":"/melonJS/docs/melonjs/Sprite.html#postDraw"},"zcai6GjEjwmtJlmJ2t708":{"uri":"/melonJS/docs/melonjs/Sprite.html#preDraw"},"u01C9iVI0coOzexM5HDhU":{"uri":"/melonJS/docs/melonjs/Sprite.html#recalc"},"CcMupu2RyyVTlRmQf7mO3":{"uri":"/melonJS/docs/melonjs/Sprite.html#resize"},"EJ-nDx39sVzLk5F5Gysvz":{"uri":"/melonJS/docs/melonjs/Sprite.html#reverseAnimation"},"EhmxSdOwpshlkQDBYeixS":{"uri":"/melonJS/docs/melonjs/Sprite.html#rotate"},"FkbYWD1hLNOe1Gk-hJ9wW":{"uri":"/melonJS/docs/melonjs/Sprite.html#scale"},"UTIAi4miKj41fQm3rUz94":{"uri":"/melonJS/docs/melonjs/Sprite.html#scaleV"},"cWTw2um3-zOFPf_qHZOtL":{"uri":"/melonJS/docs/melonjs/Sprite.html#setAnimationFrame"},"Z_2W-0zONE09LVX4Y6uQW":{"uri":"/melonJS/docs/melonjs/Sprite.html#setCurrentAnimation"},"cyTR91rWxYptqofeth7O-":{"uri":"/melonJS/docs/melonjs/Sprite.html#setOpacity"},"Uai0vsgxOks6LiPDxgB5Z":{"uri":"/melonJS/docs/melonjs/Sprite.html#setRegion"},"DHtXgQv6UC35YUP6SApOB":{"uri":"/melonJS/docs/melonjs/Sprite.html#setShape"},"mp4lbqRIxkeKKtiBAcpXP":{"uri":"/melonJS/docs/melonjs/Sprite.html#setVertices"},"6jtHHpRfteSLf_tBNNLoH":{"uri":"/melonJS/docs/melonjs/Sprite.html#shift"},"pdd8s63RB5z7anfluo0cY":{"uri":"/melonJS/docs/melonjs/Sprite.html#to2d"},"1eUo6FQT85ytsBzXNsVom":{"uri":"/melonJS/docs/melonjs/Sprite.html#toIso"},"2H5W_pkv6gycPSGgahowc":{"uri":"/melonJS/docs/melonjs/Sprite.html#toPolygon"},"TEHmsiJ1f8WnQ0tQRmFbu":{"uri":"/melonJS/docs/melonjs/Sprite.html#transform"},"4tRYd1-nkt21tGbgZc0yD":{"uri":"/melonJS/docs/melonjs/Sprite.html#translate"},"rJoPEEVMLSvCSZ4bfyO17":{"uri":"/melonJS/docs/melonjs/Sprite.html#union"},"8kF7QFGyFV-9dFiQGyoZ6":{"uri":"/melonJS/docs/melonjs/Sprite.html#updateBounds"},"4m5rjyWgp-ls5I2jGH5-r":{"uri":"/melonJS/docs/melonjs/Sprite.html#update"},"Qe7eRVqpGA5srgvRgLnAi":{"uri":"/melonJS/docs/melonjs/Sprite.html#onAnchorUpdate"},"OWb-7y3sTjWAONpujXa60":{"uri":"/melonJS/docs/melonjs/Stage.html"},"DIXyaCozpZ849QUCCNpnC":{"uri":"/melonJS/docs/melonjs/Stage.html#ambientLight"},"EmthaYH5TFbTnRVZriatp":{"uri":"/melonJS/docs/melonjs/Stage.html#cameras"},"Wz7tDiKxxU1sZiWhvXH3T":{"uri":"/melonJS/docs/melonjs/Stage.html#lights"},"VXeVrVEK26obUi4bMm5cf":{"uri":"/melonJS/docs/melonjs/Stage.html#settings"},"n82Thxoo_Iz0DSsnX4R21":{"uri":"/melonJS/docs/melonjs/Stage.html#constructor"},"J8BlM1O4mIwrBKI1zDeIx":{"uri":"/melonJS/docs/melonjs/Stage.html#onDestroyEvent"},"vwMPwfIyqslwMF34dP7D6":{"uri":"/melonJS/docs/melonjs/Stage.html#onResetEvent"},"-06EYxX6ToVmh2Jc4RObD":{"uri":"/melonJS/docs/melonjs/Text.html"},"lj8hw2GSjNyNyb-2Z-RW9":{"uri":"/melonJS/docs/melonjs/Text.html#alpha"},"vjb7m22NBmyzRpR00qQE_":{"uri":"/melonJS/docs/melonjs/Text.html#alwaysUpdate"},"nAMytrHrxOjU6sJOm5Vc0":{"uri":"/melonJS/docs/melonjs/Text.html#ancestor"},"feJQ2_ZZwvdCi82tXoF7h":{"uri":"/melonJS/docs/melonjs/Text.html#anchorPoint"},"SFj5DLYMat__LPCQFic_P":{"uri":"/melonJS/docs/melonjs/Text.html#autoTransform"},"2uXXWNzQdgR3LaXRxwEnS":{"uri":"/melonJS/docs/melonjs/Text.html#blendMode"},"sjVAVdvAhEMuzUARtuMni":{"uri":"/melonJS/docs/melonjs/Text.html#body"},"jyUQoElLb5TO4ovT6KWkq":{"uri":"/melonJS/docs/melonjs/Text.html#bottom"},"LDFdZhUE6HAr8swNjsXl-":{"uri":"/melonJS/docs/melonjs/Text.html#centerX"},"gRSR75vI-i_XTkSGl2Rty":{"uri":"/melonJS/docs/melonjs/Text.html#centerY"},"a1u3aalBMETCx2lY8YQSJ":{"uri":"/melonJS/docs/melonjs/Text.html#currentTransform"},"U22HAFX6u6Qd7cA_W7kQa":{"uri":"/melonJS/docs/melonjs/Text.html#depth"},"3RWW8_GnaLq7aTkxjJWCo":{"uri":"/melonJS/docs/melonjs/Text.html#fillStyle"},"iXJy0-D3rrPOQZy_vOOw8":{"uri":"/melonJS/docs/melonjs/Text.html#floating"},"bJBnfwcx9h_KdAUCakZsZ":{"uri":"/melonJS/docs/melonjs/Text.html#fontSize"},"mAmDciW2H9HxtV8oxs01H":{"uri":"/melonJS/docs/melonjs/Text.html#GUID"},"3IJEcgKNokq1xv9OuGL9L":{"uri":"/melonJS/docs/melonjs/Text.html#height"},"-_8qKGzIdx9SFCbeyvDJX":{"uri":"/melonJS/docs/melonjs/Text.html#inViewport"},"0U5PBY2SCMFYNb7gK1jTb":{"uri":"/melonJS/docs/melonjs/Text.html#isDirty"},"-rVO092HJ521jxXpZnNCw":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedX"},"lm6S_zOH0winP9NsmPKtH":{"uri":"/melonJS/docs/melonjs/Text.html#isFlippedY"},"IcjLQqhUCv3iGiljYzNnt":{"uri":"/melonJS/docs/melonjs/Text.html#isFloating"},"T0BHxbXFNe8y0r8iMQbxI":{"uri":"/melonJS/docs/melonjs/Text.html#isKinematic"},"g01CN23ujTNY7ZowLui3X":{"uri":"/melonJS/docs/melonjs/Text.html#isPersistent"},"leKFushTE29Zr57G-rVnT":{"uri":"/melonJS/docs/melonjs/Text.html#left"},"VZQaB0OLeJzsmKtyR8l8H":{"uri":"/melonJS/docs/melonjs/Text.html#lineHeight"},"t5MZSvZNy5WWjRyvOXwh-":{"uri":"/melonJS/docs/melonjs/Text.html#lineWidth"},"4NbxJhxIK--ot6XQD2FCT":{"uri":"/melonJS/docs/melonjs/Text.html#mask"},"TRsUEctkgCjCyeGQeEL48":{"uri":"/melonJS/docs/melonjs/Text.html#name"},"yv8eEzzE1Zn5RsMhJnklK":{"uri":"/melonJS/docs/melonjs/Text.html#onVisibilityChange"},"eHaRnDm3XPjPyTJovIsQW":{"uri":"/melonJS/docs/melonjs/Text.html#parentApp"},"yADl6kN7irF0HeeNDEzOC":{"uri":"/melonJS/docs/melonjs/Text.html#points"},"5ugI5vm1i1ReZSj2U1Z9T":{"uri":"/melonJS/docs/melonjs/Text.html#pos"},"I7wug2Mn_mRTsoDOxePTg":{"uri":"/melonJS/docs/melonjs/Text.html#right"},"fUq_CdKHTvbFiF5kRyMRw":{"uri":"/melonJS/docs/melonjs/Text.html#shader"},"31LHIHw7QQtP3_GPLcCIJ":{"uri":"/melonJS/docs/melonjs/Text.html#strokeStyle"},"Hpv6gQwCQEYuJscO9d-7W":{"uri":"/melonJS/docs/melonjs/Text.html#textAlign"},"kCaQynIKvSaOXUE5bUqvM":{"uri":"/melonJS/docs/melonjs/Text.html#textBaseline"},"u4baDocEL_DN5Fpp8ftRK":{"uri":"/melonJS/docs/melonjs/Text.html#tint"},"CrQxE8iV8U6tw4AZotuxB":{"uri":"/melonJS/docs/melonjs/Text.html#top"},"3DaVdnD-3nVtKt4m1oGPk":{"uri":"/melonJS/docs/melonjs/Text.html#type"},"vujDuVSa_znMw6YKUidz2":{"uri":"/melonJS/docs/melonjs/Text.html#updateWhenPaused"},"GHm6KRTnblq_UkOqGLeQQ":{"uri":"/melonJS/docs/melonjs/Text.html#width"},"SbVbFnnKbFzJe0MKnTwFB":{"uri":"/melonJS/docs/melonjs/Text.html#wordWrapWidth"},"a-8Fa86RUrPMjeasJvbvR":{"uri":"/melonJS/docs/melonjs/Text.html#_text"},"YbpAKcsR2Is8q_zgmA1Oo":{"uri":"/melonJS/docs/melonjs/Text.html#angleTo"},"8LdIxP9Vlpg_B4ItAdHpb":{"uri":"/melonJS/docs/melonjs/Text.html#bold"},"cLQim3w_GuuALwiaY-lXg":{"uri":"/melonJS/docs/melonjs/Text.html#centerOn"},"WpDcwuYrIAUE1VzTUBD5o":{"uri":"/melonJS/docs/melonjs/Text.html#clone"},"THWZ0HLUxrWCkAmHBvbbP":{"uri":"/melonJS/docs/melonjs/Text.html#constructor"},"nXZiR6DzbWBpe2Q9ziZns":{"uri":"/melonJS/docs/melonjs/Text.html#contains"},"Q8ntjYgeHPaInjpjvIbjE":{"uri":"/melonJS/docs/melonjs/Text.html#copy"},"MGyaoGRYHyTiB1v8nQjLS":{"uri":"/melonJS/docs/melonjs/Text.html#distanceTo"},"fDTae0v2_m6O8952y4zSU":{"uri":"/melonJS/docs/melonjs/Text.html#draw"},"2oatIcQQPINrFgeFE-z5M":{"uri":"/melonJS/docs/melonjs/Text.html#drawStroke"},"dec2DoEe0WZ4_rjERA31g":{"uri":"/melonJS/docs/melonjs/Text.html#equals"},"8S16QYcvb2EKyb6y4wipK":{"uri":"/melonJS/docs/melonjs/Text.html#flipX"},"mz9oe0DJ2QuR-pZfDjGUv":{"uri":"/melonJS/docs/melonjs/Text.html#flipY"},"P4vcaEjqqzAR21m5cQVmr":{"uri":"/melonJS/docs/melonjs/Text.html#getAbsolutePosition"},"BwliiO9wWqf1WdQrvGfnO":{"uri":"/melonJS/docs/melonjs/Text.html#getBounds"},"3GTy1YEgCKcY_h4E8Yu_d":{"uri":"/melonJS/docs/melonjs/Text.html#getIndices"},"H6Pqbfoq8O25r1O7Qxmf5":{"uri":"/melonJS/docs/melonjs/Text.html#getOpacity"},"Neok4GcH0ydhPo6mRZFIv":{"uri":"/melonJS/docs/melonjs/Text.html#isConvex"},"17FGN8CP4IcIub-BHgvZK":{"uri":"/melonJS/docs/melonjs/Text.html#isFinite"},"I0Z0zrFmOj_KuPhBJKBrT":{"uri":"/melonJS/docs/melonjs/Text.html#italic"},"Jy_32vV7ZibIV7uuPGoOP":{"uri":"/melonJS/docs/melonjs/Text.html#lookAt"},"p9RwfaGJ-5Cv9PY0rT3Dr":{"uri":"/melonJS/docs/melonjs/Text.html#measureText"},"d6ic2sKr-jqupiIYbwEjx":{"uri":"/melonJS/docs/melonjs/Text.html#onCollision"},"PnDpYt0iUteXgDEGMeBMC":{"uri":"/melonJS/docs/melonjs/Text.html#onDestroyEvent"},"TIAKGAYvlsbPjos0IZc4s":{"uri":"/melonJS/docs/melonjs/Text.html#overlaps"},"ht-xSE4WD0PpkD2U67Qwu":{"uri":"/melonJS/docs/melonjs/Text.html#postDraw"},"SkQCgPFt92WB7E5DPdi-k":{"uri":"/melonJS/docs/melonjs/Text.html#preDraw"},"5X-cl64fJbAbS9IgPhO_2":{"uri":"/melonJS/docs/melonjs/Text.html#recalc"},"xSSVjKDsS83LcMEAH6NZD":{"uri":"/melonJS/docs/melonjs/Text.html#resize"},"utrxua0e4x_foUPKP3Oe6":{"uri":"/melonJS/docs/melonjs/Text.html#rotate"},"15SH_OQuWzBQPNqxE5BYo":{"uri":"/melonJS/docs/melonjs/Text.html#scale"},"X0pZbcUKT31vV2j8TZrtC":{"uri":"/melonJS/docs/melonjs/Text.html#scaleV"},"hPrp9CTxuBPCufZShy0rj":{"uri":"/melonJS/docs/melonjs/Text.html#setFont"},"70vrv-c5V9TJj6i0-b9Yl":{"uri":"/melonJS/docs/melonjs/Text.html#setOpacity"},"PtTcninO5C4x3qdg9BsKL":{"uri":"/melonJS/docs/melonjs/Text.html#setShape"},"ywSsvh4rnRGYqV0QaWjd6":{"uri":"/melonJS/docs/melonjs/Text.html#setText"},"viDoKu0KUYNMBzL-UYijv":{"uri":"/melonJS/docs/melonjs/Text.html#setVertices"},"j2MI7W0dVGyEMKbfxRkEP":{"uri":"/melonJS/docs/melonjs/Text.html#shift"},"Lea-LiyJKIPbdF_cv3uDe":{"uri":"/melonJS/docs/melonjs/Text.html#to2d"},"fXrviz0bXzplLD8QnJr0u":{"uri":"/melonJS/docs/melonjs/Text.html#toIso"},"LRFAbRhF4PyVLudVYyc5k":{"uri":"/melonJS/docs/melonjs/Text.html#toPolygon"},"fokGhNlJtE6AjsqniqcGz":{"uri":"/melonJS/docs/melonjs/Text.html#transform"},"pgHdd6Ne2jYWRlFbIdosk":{"uri":"/melonJS/docs/melonjs/Text.html#translate"},"5komCq28YnxzaBbuFt-8b":{"uri":"/melonJS/docs/melonjs/Text.html#union"},"KNMnkvmUPrsIJWLjRYvA1":{"uri":"/melonJS/docs/melonjs/Text.html#update"},"-cYDwT7sxbGQPVxR2arhp":{"uri":"/melonJS/docs/melonjs/Text.html#updateBounds"},"ExYXfjzIMiGcHY5KYIE--":{"uri":"/melonJS/docs/melonjs/Text.html#onAnchorUpdate"},"lli7ScO3vKE7gaLSGBiPm":{"uri":"/melonJS/docs/melonjs/TextMetrics.html"},"8BgRe11sp6DFep_uU1Cj9":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#ancestor"},"dZr7-Sbxr87wrdmbK0ZmB":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#bottom"},"QpGsr0oXo5kgH1NsZQhe1":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#center"},"zUi9ml6H4lBjqku_KQKTU":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerX"},"GotkUWJ7vSYNHNKjvUl3Y":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerY"},"wrh-7QOCCKYgJxULoY_I1":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#height"},"KsaC52ieoLQNe-FzYFAL3":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#left"},"7iAqSRwY0tfpO7URuHkSI":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#right"},"69tzvUhbTTD41VO803lso":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#top"},"5nVHlXUzj4xxiGCXJTDSb":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#type"},"ciapYWouwLADqHeSs6Pts":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#width"},"lIyzXqYlFpkH5f9_cs-ZC":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#x"},"Wdb20vCgmK46uLBEOErx9":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#y"},"OJH8ui2brfmhffAA0vHyY":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#add"},"VhYY3uh7zvsDELpXB3JBb":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addBounds"},"Qa_Pp51QvkWYC96cguHii":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addFrame"},"SEBJp6fJgCNcCRNXnN6SD":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#addPoint"},"XjKDqMzu0V_Ny7lNOlPTE":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#centerOn"},"M-P_RpyFvvDTxGD689c2k":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clear"},"HWY9wSANeQuqpmSHJJe1V":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#clone"},"8nlu9QMKHkOxIj28Fpri3":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#constructor"},"YjxCWtM7gx8DmeEsYNVIF":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#contains"},"iKMTPLzcTaytJl1qT03xv":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#isFinite"},"DDc0OePXQo-AUOiGYxzMp":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineHeight"},"J8Dq9lNpbKZq2QdXJimUi":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#lineWidth"},"MgdbHkMayXTd9vdK2OUIV":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#measureText"},"nYTWAeAkyF8NKX80vQ2Uz":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#overlaps"},"a3qSeBVmtlLllr8oivlnk":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#setMinMax"},"msyqchraqTo756QJEtNCb":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#shift"},"Xul74bZvlsz-OXh14APes":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#toPolygon"},"XtPOuKWHBRIFxbH_Km_av":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#translate"},"PDZpsTo-72TR-BmasmIFC":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#update"},"dGs03r7tLCkP26uU8vUVd":{"uri":"/melonJS/docs/melonjs/TextMetrics.html#wordWrap"},"8t3B4IJDTq2VQGMKFO3hV":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html"},"RVpkWvyaSIP7a-_fJ_fVB":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addRegion"},"OZSo8ZANLfY_WS2zvwAfQ":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#addUVs"},"VI0-zwFN9qMp0GqCOhU7Y":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#constructor"},"vGr00xp0rZSkqR348V6vR":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createAnimationFromName"},"SQ0pBunNySfurbemB0xoY":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#createSpriteFromName"},"LTle--fQ1a8qkgHMrvsmS":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getAtlas"},"Obuxkld2JGC8-GNf7jwhG":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getFormat"},"om79Ffz_NKJwNQboIIyNi":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getRegion"},"f_LxN3ntWNL60tN3gc-QF":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getTexture"},"aa6fW2bcXhW8P3Qh_FoHJ":{"uri":"/melonJS/docs/melonjs/TextureAtlas.html#getUVs"},"2qqHL-q8UQHCmJcOhfuRo":{"uri":"/melonJS/docs/melonjs/Tile.html"},"gS8cd7M3TuVttqchFnuFB":{"uri":"/melonJS/docs/melonjs/Tile.html#bottom"},"2jUzCKWzLyVowcRYg1_Uw":{"uri":"/melonJS/docs/melonjs/Tile.html#center"},"7UgHtKfKGKKUYhL8tpsJX":{"uri":"/melonJS/docs/melonjs/Tile.html#centerX"},"_4OYiP1Whp4zvtmUxsTiX":{"uri":"/melonJS/docs/melonjs/Tile.html#centerY"},"7DTs3mNze7_SON3dcRb_g":{"uri":"/melonJS/docs/melonjs/Tile.html#flipped"},"kEn4Z7Z-DvYmvn-4pxDE6":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedAD"},"RNL5Zb8sXtSpJWbMU4p40":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedX"},"H9jg6cj0yM5TXJweNZPuZ":{"uri":"/melonJS/docs/melonjs/Tile.html#flippedY"},"PY5ZN1jmiLi44aSwv1vGV":{"uri":"/melonJS/docs/melonjs/Tile.html#height"},"GEOQ06rwVmxm5ajOpoNRv":{"uri":"/melonJS/docs/melonjs/Tile.html#left"},"N2cHPEIS90PqTfrU6EQj9":{"uri":"/melonJS/docs/melonjs/Tile.html#right"},"4ULtkxiDWUVsiL7F_88kn":{"uri":"/melonJS/docs/melonjs/Tile.html#tileId"},"26app0wA6U8Ik_0NmR4Cq":{"uri":"/melonJS/docs/melonjs/Tile.html#tileset"},"z1lbo3iZIsBln024zSRwY":{"uri":"/melonJS/docs/melonjs/Tile.html#top"},"WB7idudz3wf7MinV2tuZG":{"uri":"/melonJS/docs/melonjs/Tile.html#type"},"J21jDNnBXQPIFYbtzdjfM":{"uri":"/melonJS/docs/melonjs/Tile.html#width"},"aEzVe3RlsJMODYkFX8UnE":{"uri":"/melonJS/docs/melonjs/Tile.html#x"},"gGIgImfwhZ93BOsPBVYOf":{"uri":"/melonJS/docs/melonjs/Tile.html#y"},"771bTnBpnvJafVy0SxUVs":{"uri":"/melonJS/docs/melonjs/Tile.html#add"},"YDWtQoKZOiProEk1E2dtq":{"uri":"/melonJS/docs/melonjs/Tile.html#addBounds"},"3qYIu-F8U1_P7A6oqpy4r":{"uri":"/melonJS/docs/melonjs/Tile.html#addFrame"},"V96lNxmrR9NSXZtN_oQZe":{"uri":"/melonJS/docs/melonjs/Tile.html#addPoint"},"5W7MP5Kh8caa_4Vsv-Hwf":{"uri":"/melonJS/docs/melonjs/Tile.html#centerOn"},"0DFAMDYyCxaWB3so-U6yE":{"uri":"/melonJS/docs/melonjs/Tile.html#clear"},"pDmGu9nHhHI9XwSpCe4C2":{"uri":"/melonJS/docs/melonjs/Tile.html#clone"},"q5q4qvSs2ql29EWMdxe2e":{"uri":"/melonJS/docs/melonjs/Tile.html#constructor"},"b6owiXPgo7gf1jJJGcxft":{"uri":"/melonJS/docs/melonjs/Tile.html#contains"},"AT-FXBZw-aoHfGX3uzb8_":{"uri":"/melonJS/docs/melonjs/Tile.html#getRenderable"},"pkZN3ojr0IlbZZpT9e9Zt":{"uri":"/melonJS/docs/melonjs/Tile.html#isFinite"},"LwR1hUHO0lCuGAsmayOfw":{"uri":"/melonJS/docs/melonjs/Tile.html#overlaps"},"5mapC5KqtxV7rXfkIaI56":{"uri":"/melonJS/docs/melonjs/Tile.html#setMinMax"},"ICuuNgcDS9ncBUt2Xm4f7":{"uri":"/melonJS/docs/melonjs/Tile.html#shift"},"OVNtQX5bmP4_S3MZJrOyN":{"uri":"/melonJS/docs/melonjs/Tile.html#toPolygon"},"NAtT9oDsbICkSHS5bXvJi":{"uri":"/melonJS/docs/melonjs/Tile.html#translate"},"A3RA0zGfCYnXp4FiAfl8U":{"uri":"/melonJS/docs/melonjs/Tile.html#update"},"-m5iyDbZrEZVNWCpPMfTA":{"uri":"/melonJS/docs/melonjs/Timer_.html"},"_vlzOSmvuQ6HKg0TyuYZh":{"uri":"/melonJS/docs/melonjs/Timer_.html#fps"},"S8RdO2-lJQ8Wt-hR3kxFT":{"uri":"/melonJS/docs/melonjs/Timer_.html#interpolation"},"IPAmAgoioheymHwWMRxdU":{"uri":"/melonJS/docs/melonjs/Timer_.html#maxfps"},"QXutnBsPrfIChxHNWXiJO":{"uri":"/melonJS/docs/melonjs/Timer_.html#tick"},"wn3smajf9OKhSG1f_RUvJ":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearInterval"},"XO1V2xarBvIWDFWvS8mp7":{"uri":"/melonJS/docs/melonjs/Timer_.html#clearTimeout"},"MgbLO3mmmts5xOXmbDZ1K":{"uri":"/melonJS/docs/melonjs/Timer_.html#getDelta"},"fodd06mHKMT8QE6Mn77JU":{"uri":"/melonJS/docs/melonjs/Timer_.html#getTime"},"MP5Tps9kQjrCBLtcGeHAE":{"uri":"/melonJS/docs/melonjs/Timer_.html#setInterval"},"Nuib6c67Y1vg8oz8TeTwh":{"uri":"/melonJS/docs/melonjs/Timer_.html#setTimeout"},"Sxa9PfIYuBGsQK_w7JPbU":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html"},"Jy4s6qCwyoATFG4DtDhd2":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#canRender"},"P_dwrA_F0r4GlBT7oP8Wf":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#constructor"},"I1cLgyTPvQ0KQeWhG1xNy":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTile"},"uq2zX3-1dalMW7UsD8eQ0":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#drawTileLayer"},"iHbHWyF42vuHTl_EA_D0C":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#getBounds"},"lXZATw6uoMQagIvj0Fx7V":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#pixelToTileCoords"},"a0Oe_bLUfdkaHrZFEyOBC":{"uri":"/melonJS/docs/melonjs/TMXHexagonalRenderer.html#tileToPixelCoords"},"2lWaZKAaKAQ2WcVhlyEZ8":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html"},"RuSJPAm3LLXBa_f6j4Erq":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#canRender"},"XWZu4SmKDJJYI9XPW_XmZ":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#constructor"},"wG8Nlx8GSdrg2pwmk7_Mu":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTile"},"NCpNVWBj9gfi_BdFjMyEw":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#drawTileLayer"},"ELxWabIDMPl39dR6ELZVI":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#getBounds"},"YXch7OMXDDL1wah5gihVx":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#pixelToTileCoords"},"SRmXQwzIs7AZYO_a7J5_u":{"uri":"/melonJS/docs/melonjs/TMXIsometricRenderer.html#tileToPixelCoords"},"twdMcFEzpdCvBjjESz4xu":{"uri":"/melonJS/docs/melonjs/TMXLayer.html"},"lhaJ4OaKQ5If4QFID9mNg":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alpha"},"UMHy76lrNiAZeo-SLseUI":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#alwaysUpdate"},"2bdO9KsnpAczwCYfbOiKA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#ancestor"},"q38kegyQ1-SKRZ1vlN629":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#anchorPoint"},"6L1y9Why4vsJsr2u3uI-c":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#animatedTilesets"},"RY1AHEOnX7qC-rBC7VLmv":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#autoTransform"},"cWH5g51V6BY6cQBXLtF31":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#blendMode"},"0VgzXVHHsQqJZqjgLLer9":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#body"},"2AOJ5cX_wzfmrCUatpj9S":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#bottom"},"YeGsrdrorkFOZ7wFQ7L04":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerX"},"u9XrN2FrXUDsfcfgvtDOk":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerY"},"lwC7NcQSQd_IKoUhe7vTS":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#class"},"odL2SnS7C4yuOhltXTmUu":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#currentTransform"},"6WBRxrSOtsUfjSLPhzUMT":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#depth"},"SKWXsbM1Oj1ZBZDRzYc2g":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#floating"},"Vs_SIr0gGGu9DROwzySrQ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#GUID"},"2EYgB-0g_khl5iVnxxtQi":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#height"},"auLzqAazCK-FHfdWQsqBF":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#inViewport"},"QkWC4ek0QwaKz-hrTWPIf":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isAnimated"},"1u4CWgGAKPOiKXU7SF_Np":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isDirty"},"Gs2JSl9Raikv0XP7DOlHA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedX"},"GdO8wE2o4tY5C8L8oBXC8":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFlippedY"},"GVuVLuTSIh4Lfu_qr8F9g":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFloating"},"V54g-E76gTg0YK4h7Lokx":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isKinematic"},"tDg3nyrydjQNdGxoHPU2B":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isPersistent"},"jWkph6fimcOltx73mGraH":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#left"},"BvJystdMdXhLmvGHklv9n":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#mask"},"7kYi3mvz93ipdzj507hDm":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#name"},"mN521oz7M_VeucB_OcqlQ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onVisibilityChange"},"MWLG03lDMKmV2z_LzxJmO":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#parentApp"},"179OIpx07-EzUj8qkN_0y":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#points"},"4_BCRHL4qn7FUpEwu1KAY":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#pos"},"SNjsxMFS6iBEiYHt0BJ3z":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#renderorder"},"4ENTuMYoAh3EyK5P50Ww3":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#right"},"vIZ_LtUvbp7mO2MoR3-Jd":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shader"},"bMbFTJhR5EeJdO7lplWKh":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tilesets"},"PgzQCvRrGJmuXVWDczVOb":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#tint"},"7Z2wci955pQq36l-l0SDY":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#top"},"MYZKJjuPDJZn-qZzXcAdh":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#type"},"OLv9fOOMCgGzw5vxXdj1Z":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateWhenPaused"},"wHawrCQj1lSKHAm7WgNMA":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#width"},"Zr9Zuo6I7OiDdNhmAqUSm":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#x"},"x7K_FsVbfIQltF2VqxuxH":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#y"},"y8Gwv-aTOjgOPOyPhbflB":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#angleTo"},"doPjqHV_9Pm3FGxXdz94X":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#cellAt"},"v2ZAUWh_4eJ0nD5N4AnTT":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#centerOn"},"gMckG-rgatRk8PPev7egR":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clearTile"},"S7MFL0uuFadUlKEg3KG3P":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#clone"},"neKoVqQfyt1O1YHVsxZwU":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#constructor"},"htc4ovMgl-l_h_cwc91K8":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#contains"},"y5njUKhfTLqEiAArTvGmw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#copy"},"FvaXKIBdp5d_dARwBl1S4":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#distanceTo"},"dVHSBiTu6290XRpBhZaci":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#draw"},"_9RI2kEgz4UQa8a1xRst-":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#equals"},"TN5UeT09oUFPTSr3V6d6W":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipX"},"rLycP3vrGkVLWpr9cKiJT":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#flipY"},"BQ1rcjDEVIlQlqnRSy3uL":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getAbsolutePosition"},"ZZRZ5py_2CsY5p1NX5a2T":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getBounds"},"_XdOUs0itGWUubdaUtgPD":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getIndices"},"lYbRxkGhrICFrL8_rVfLg":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getOpacity"},"oDSwkSTFw6BeYRklsyHr3":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getRenderer"},"ZJitw_s29g8ZrAYOU7aEr":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTile"},"D5bcH9MZA9IK0RU6kvRiK":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileById"},"la2IxkykFQmDw-5fmaf2l":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#getTileId"},"b0JnvarWKskcV-XfOUdnk":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isConvex"},"YiVHhAWktCkZBLe4NdIde":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#isFinite"},"KcY44DWZHYcSUsUpRl7ho":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#lookAt"},"nSQ53IZky2a0vMb6hafJN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onCollision"},"ACDMCrZQ2ITIk4Ubko4d7":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onDestroyEvent"},"_UQdzfX4QE3zlSJX9iTyJ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#overlaps"},"paYpyADqE6ODjvw6mxBd_":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#postDraw"},"V_EY8loYMVMu884kHz-XU":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#preDraw"},"LlFYzDVFjeb3ix8AQDTif":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#recalc"},"Xu1AJIKHq31hOcTTW4ZGX":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#resize"},"d7BJs47e7dyUM0--deIwZ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#rotate"},"UrFNjgOq5n8MyaMpNNxAQ":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scale"},"KECW4FS0KQD3z1_poeMNT":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#scaleV"},"lx0X1qKIWBYYYBL8Neogm":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setOpacity"},"4OP6RekpcSBZhg1mmpmvN":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setRenderer"},"lU2neKBPQs8XDE2ldVhPt":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setShape"},"O7lUJQW2GIr9MqXbDbyEe":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setTile"},"pRNkiy0LHZhwoUL-Bct4q":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#setVertices"},"LZUPKHf7b20IcpAQN8UMf":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#shift"},"ZJ3lfKicjj1okCNqIIGGd":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#to2d"},"YaABxub0cTEz6BilJOwy6":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toIso"},"VYUvCsjpoEzaq9c-1uSId":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#toPolygon"},"UYxqBD6SL_A6yzvURO0Jl":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#transform"},"HNCVt1nLvDi6R27yYKiNS":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#translate"},"pdjZAudDIeUAYhb-mwPiw":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#union"},"EfwQuVAAUpJarMDEG5l2p":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#update"},"H4SwjCg2xYYg7lRU_UX0t":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#updateBounds"},"i6nfN01SnHb3vXwyp5xo5":{"uri":"/melonJS/docs/melonjs/TMXLayer.html#onAnchorUpdate"},"j6Os22grHc7QXk38y21ih":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html"},"XPBFIPSxwBN20pPM3hdRl":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#canRender"},"aK64Kic2T1YBT-MCioLq9":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#constructor"},"wVBbKND1GN4wQoyJoh4LF":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTile"},"HH0D7CcGzBOt7TNfO0MBI":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#drawTileLayer"},"1E2ZItRHy81GCtcTm3mRm":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#getBounds"},"T438nE-IVmlJKvuNoVrMR":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#pixelToTileCoords"},"UfZsHdUWiqihpwFU46Eyn":{"uri":"/melonJS/docs/melonjs/TMXOrthogonalRenderer.html#tileToPixelCoords"},"4W6ugjHBtM5mDure84Dmu":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html"},"f2mhnkOUMQwpozP6yjKB-":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#canRender"},"hzH7FHACglK5-wS6LV1DW":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#constructor"},"o1jsWiw4zw33LylXjuOTx":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTile"},"xb67QfeDkac9JXYdUOfMi":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#drawTileLayer"},"s0ULclMuswcI6OA6MWxpC":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#getBounds"},"11I64Umrg5hRMkQsx8o3C":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#pixelToTileCoords"},"sBQcLyhHWp0VXqnVIqXe6":{"uri":"/melonJS/docs/melonjs/TMXRenderer.html#tileToPixelCoords"},"rQzDu2YdkamcjU57hGFWa":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html"},"trcUoTJz6TzpUO2SK1kYu":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#canRender"},"SgjvmtWFQAr6pHVtAD8YO":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#constructor"},"57o3DUIkatKz6_sLwL4EF":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTile"},"4bYH6BFlVsFxIQu15FiYn":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#drawTileLayer"},"uk9bOWty9AbaJX31jaSAs":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#getBounds"},"tyckKqIEHqUdxXE0slZzS":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#pixelToTileCoords"},"OUuvtTBKoPN_St-oFNbN4":{"uri":"/melonJS/docs/melonjs/TMXStaggeredRenderer.html#tileToPixelCoords"},"NTeMAc6GGGu97vHU9GjR7":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html"},"YUNo18mbY0du4H55yeZYL":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#class"},"PYuFipgEzZo-CWuoQJkvZ":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#cols"},"WnWa_wTPHNUehGTtPbFo8":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#infinite"},"ruJvkwzy2gcn3fK-m2XXi":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#name"},"YOtdtD4HYvEy30BV6F4AQ":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#orientation"},"344aelZzQ_f294-fm7tCI":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#renderorder"},"jG1EfDtozcUVHOi8oXI7J":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#rows"},"SGh_y2FKLn9Kfax-rNB-0":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tiledversion"},"ZZ030y0ovpD3Uv8vsb2Yt":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tileheight"},"ByIXv2mY1DF04hMitKCcl":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#tilewidth"},"JzxDDPND1MbjGfvRMVoA5":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#version"},"HU91ueXLAiKsa9Pc11z2w":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#addTo"},"hbGzwqlKg2Groka3nUgrc":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#constructor"},"XcPPRZjZDKk44pLSP3nhS":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#destroy"},"kgnpZ3HyjvzKXRnRBhd-n":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getBounds"},"IXorD1QMVUWo6UFxRZLED":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getLayers"},"HQrxK5FE_YtVU13fKvrtk":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getObjects"},"8ZtrM96A-iZfoCSRJOY7D":{"uri":"/melonJS/docs/melonjs/TMXTileMap.html#getRenderer"},"XS3zu65u1DMO3wGyP8Req":{"uri":"/melonJS/docs/melonjs/TMXTileset.html"},"46xPt5fLe6bFFotkZd7zQ":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#class"},"D0KlR6sYmX7hjk1t8dldR":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isAnimated"},"PI8_BShthyJ-HIemMP0zs":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#isCollection"},"FHDJyFU-tKGo-PSyZdr83":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#_lastUpdate"},"nr8bsvYtl71LVTjc7Vbbo":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#animations"},"ZuUNWlE9UoXIWh5IURFka":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#constructor"},"0Cl5Y_oKSCX41d1qQVTFU":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#contains"},"7n07GzTT01P4K_WpTtiFP":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileImage"},"GXfw9qt74etkDwiTq_rFg":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getTileProperties"},"6eo8O0C-zKCHLTAT1n78j":{"uri":"/melonJS/docs/melonjs/TMXTileset.html#getViewTileId"},"Buwn6Q_TwLxmG4HruOGvQ":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html"},"S4GUZY-v3DyNZEsLnCOKS":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#add"},"BXQu6tuSYSLBU80FEytzk":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByGid"},"cZC5Rq_ORBlvSPjMh88Ov":{"uri":"/melonJS/docs/melonjs/TMXTilesetGroup.html#getTilesetByIndex"},"IHy3fiiDTDs9kgg-4K_WJ":{"uri":"/melonJS/docs/melonjs/Trigger.html"},"U7-hR-TRyGY2msQALjmVI":{"uri":"/melonJS/docs/melonjs/Trigger.html#alpha"},"g3fNYldDDMhUEm8OEYwit":{"uri":"/melonJS/docs/melonjs/Trigger.html#alwaysUpdate"},"5PM2k09xkkNRKHKS676ix":{"uri":"/melonJS/docs/melonjs/Trigger.html#ancestor"},"h6D6fO-oyH0xIy6Z5GOV1":{"uri":"/melonJS/docs/melonjs/Trigger.html#anchorPoint"},"meZqbNivVlPkLhyvqntEx":{"uri":"/melonJS/docs/melonjs/Trigger.html#autoTransform"},"qGPnr3HqOBYYCZnmvUmC_":{"uri":"/melonJS/docs/melonjs/Trigger.html#blendMode"},"bBtweuC980bED852-pjTf":{"uri":"/melonJS/docs/melonjs/Trigger.html#body"},"XNeGJ2lDkxQghpgNwBvGX":{"uri":"/melonJS/docs/melonjs/Trigger.html#bottom"},"4y3zq_vsttWOujigrR8ur":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerX"},"9O1E_0vkCo8u_d1K_pnjN":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerY"},"fRrqsS_5a7wBWcEbCRBHf":{"uri":"/melonJS/docs/melonjs/Trigger.html#currentTransform"},"0qxG3vcnf4qN4M550dpwr":{"uri":"/melonJS/docs/melonjs/Trigger.html#depth"},"oSTbErKw4r_54FmF51q13":{"uri":"/melonJS/docs/melonjs/Trigger.html#floating"},"4fTsJESkmBgLt_XGwfw1X":{"uri":"/melonJS/docs/melonjs/Trigger.html#GUID"},"zDatb-HXhIzihYwAWLwqW":{"uri":"/melonJS/docs/melonjs/Trigger.html#height"},"1JqXS_U9XsrrKwgRKjhf2":{"uri":"/melonJS/docs/melonjs/Trigger.html#inViewport"},"_QiAntwEj3uXQYFpIQ7u2":{"uri":"/melonJS/docs/melonjs/Trigger.html#isDirty"},"JF5aK6oGl4YcVtPNvbFrg":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedX"},"xaDP9xCG8q0T4UunIP0H3":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFlippedY"},"Bc60TUhOzAtIw8i3JrQQV":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFloating"},"OLgeqGStNxFVIcIO8aNIb":{"uri":"/melonJS/docs/melonjs/Trigger.html#isKinematic"},"-834x-DlkPdn-2s6KkNSX":{"uri":"/melonJS/docs/melonjs/Trigger.html#isPersistent"},"gix4Bi_vKQ2hnniIv0u7p":{"uri":"/melonJS/docs/melonjs/Trigger.html#left"},"A1zv2i1zK5CfU1VnJhY0v":{"uri":"/melonJS/docs/melonjs/Trigger.html#mask"},"1tUMMCRZtWLrGuxJSVNPz":{"uri":"/melonJS/docs/melonjs/Trigger.html#name"},"5h-EL25lGkBmI0To9DDRU":{"uri":"/melonJS/docs/melonjs/Trigger.html#onVisibilityChange"},"SyzwCR3gBjeTI3ZocH8dY":{"uri":"/melonJS/docs/melonjs/Trigger.html#parentApp"},"ONrw-LXwAvKDGBUQG7kwO":{"uri":"/melonJS/docs/melonjs/Trigger.html#points"},"RORFeoEN28sFtiJ0nEBsv":{"uri":"/melonJS/docs/melonjs/Trigger.html#pos"},"CoeV4Q3nFx3UkHGlPDc1H":{"uri":"/melonJS/docs/melonjs/Trigger.html#right"},"-bK5B7DdFjlHlTCw_-CVs":{"uri":"/melonJS/docs/melonjs/Trigger.html#shader"},"_rbQv16BWbpZd08rWElPW":{"uri":"/melonJS/docs/melonjs/Trigger.html#tint"},"x8VW3KKFy3eqSucgnaTJ9":{"uri":"/melonJS/docs/melonjs/Trigger.html#top"},"vsOBNoB8pygb5rATLnNSa":{"uri":"/melonJS/docs/melonjs/Trigger.html#type"},"dj4uefyOAeLBDGzXDnVwl":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateWhenPaused"},"JvF5SOVI7xkYWZMVDiBD3":{"uri":"/melonJS/docs/melonjs/Trigger.html#width"},"OcJlgrqieg92owFLda01F":{"uri":"/melonJS/docs/melonjs/Trigger.html#angleTo"},"841Gort3g1xyuvvqj8JRV":{"uri":"/melonJS/docs/melonjs/Trigger.html#centerOn"},"qC3hl4oHDTZMiNDVDpn2e":{"uri":"/melonJS/docs/melonjs/Trigger.html#clone"},"Kg2NWNUi_ZncqRM7JCcrC":{"uri":"/melonJS/docs/melonjs/Trigger.html#constructor"},"KYYAHsqeqQ0mdHcgl7p3B":{"uri":"/melonJS/docs/melonjs/Trigger.html#contains"},"FkfN8895e75Djq6MGep0c":{"uri":"/melonJS/docs/melonjs/Trigger.html#copy"},"_bwgLncGGHoyYgA3kjkm4":{"uri":"/melonJS/docs/melonjs/Trigger.html#distanceTo"},"R2OTTib99shIMYBmTFdPx":{"uri":"/melonJS/docs/melonjs/Trigger.html#draw"},"1TjaE7ggtw1z41DG4J4ll":{"uri":"/melonJS/docs/melonjs/Trigger.html#equals"},"cWIwKUQr6Ge5O7ZDnVEPi":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipX"},"TjiJdhekRr8MWn3QRGRo5":{"uri":"/melonJS/docs/melonjs/Trigger.html#flipY"},"rVWJ1a8tWdEPdjuCWRzvw":{"uri":"/melonJS/docs/melonjs/Trigger.html#getAbsolutePosition"},"miEn900BJQZmcpvvZHVvC":{"uri":"/melonJS/docs/melonjs/Trigger.html#getBounds"},"Z9oZaxski7CIpuj_PLKKG":{"uri":"/melonJS/docs/melonjs/Trigger.html#getIndices"},"2x-OQhjinqXnYwnY1QJbc":{"uri":"/melonJS/docs/melonjs/Trigger.html#getOpacity"},"mPWNUYC_xZr5Z4D4Qbyjl":{"uri":"/melonJS/docs/melonjs/Trigger.html#isConvex"},"vUUDFOO8Qao6vc-b_V5IL":{"uri":"/melonJS/docs/melonjs/Trigger.html#isFinite"},"RYsNI5Th2W15jqcE0qReT":{"uri":"/melonJS/docs/melonjs/Trigger.html#lookAt"},"NcivmorPsiYcBKludl1_r":{"uri":"/melonJS/docs/melonjs/Trigger.html#onCollision"},"tFggfIJs26ImisS0EGM5f":{"uri":"/melonJS/docs/melonjs/Trigger.html#onDestroyEvent"},"wNxUKkEk16C4Aga73kyBq":{"uri":"/melonJS/docs/melonjs/Trigger.html#overlaps"},"GIKmMirfWzLRk7qIhQNmk":{"uri":"/melonJS/docs/melonjs/Trigger.html#postDraw"},"YpYH33riU8p00_ZzdxD4H":{"uri":"/melonJS/docs/melonjs/Trigger.html#preDraw"},"utgWi56xzzqPGllQI2ZQt":{"uri":"/melonJS/docs/melonjs/Trigger.html#recalc"},"9y_31UZ6qmyr31CkItGyc":{"uri":"/melonJS/docs/melonjs/Trigger.html#resize"},"cmldCbw-BwvuTczHcM0-M":{"uri":"/melonJS/docs/melonjs/Trigger.html#rotate"},"FSJgvLYpzy_ew27tVv3V_":{"uri":"/melonJS/docs/melonjs/Trigger.html#scale"},"GXaq-_vVLreR3lxIygsqZ":{"uri":"/melonJS/docs/melonjs/Trigger.html#scaleV"},"hFfhQQ-PGHVSG4lnI66R4":{"uri":"/melonJS/docs/melonjs/Trigger.html#setOpacity"},"tYhCwEi7_hbpHJI9MExez":{"uri":"/melonJS/docs/melonjs/Trigger.html#setShape"},"4pZ3SJvgECRaXibLFkSVJ":{"uri":"/melonJS/docs/melonjs/Trigger.html#setVertices"},"rcywkcubA5Xnd1RSI-vM6":{"uri":"/melonJS/docs/melonjs/Trigger.html#shift"},"kxWksvPoH7XXnpRmnUt1T":{"uri":"/melonJS/docs/melonjs/Trigger.html#to2d"},"mX9fhxWdED_tvTelyJT-R":{"uri":"/melonJS/docs/melonjs/Trigger.html#toIso"},"46wklgVbiaOW8mTba3nBf":{"uri":"/melonJS/docs/melonjs/Trigger.html#toPolygon"},"x15CXVf4Am_CFpbcci7zw":{"uri":"/melonJS/docs/melonjs/Trigger.html#transform"},"hfC-4EpwBM3EY7mV7fIT4":{"uri":"/melonJS/docs/melonjs/Trigger.html#translate"},"eELUizNcRHQfLwSy4oXmv":{"uri":"/melonJS/docs/melonjs/Trigger.html#union"},"4eeMcoF-tzPUCiij3PaXB":{"uri":"/melonJS/docs/melonjs/Trigger.html#update"},"wLPFsLDmH-XQaI2aY5Uk0":{"uri":"/melonJS/docs/melonjs/Trigger.html#updateBounds"},"NBolRe1xnAo62HdSBYeYA":{"uri":"/melonJS/docs/melonjs/Trigger.html#triggerEvent"},"223M8rIw_Tfdxcj72URYi":{"uri":"/melonJS/docs/melonjs/Trigger.html#onAnchorUpdate"},"HrGiD7uo-WEg0yzSMP3xZ":{"uri":"/melonJS/docs/melonjs/Tween.html"},"MNlPqVhfTz3rbgzdzci3j":{"uri":"/melonJS/docs/melonjs/Tween/Easing.html"},"7yygCqmMxDqAD-npYc-hB":{"uri":"/melonJS/docs/melonjs/Tween/Interpolation.html"},"Lp42k7v6PA0nudLT623h9":{"uri":"/melonJS/docs/melonjs/Tween.html#chain"},"4ix6fhwf4YJZQXtheCD9x":{"uri":"/melonJS/docs/melonjs/Tween.html#constructor"},"G4T9ujIlgZm7epOhfzwQ6":{"uri":"/melonJS/docs/melonjs/Tween.html#delay"},"obt_9Pw9Ys9NzQHXXR4Vm":{"uri":"/melonJS/docs/melonjs/Tween.html#easing"},"_cu_1IWSmBsYEhBDFKm27":{"uri":"/melonJS/docs/melonjs/Tween.html#interpolation"},"LI5YXpQDFeM0X4f59amPa":{"uri":"/melonJS/docs/melonjs/Tween.html#onComplete"},"eJDVtoO9xNC5F7ZqjmHaS":{"uri":"/melonJS/docs/melonjs/Tween.html#onStart"},"3goGTKnAbkGPkGfdugRxo":{"uri":"/melonJS/docs/melonjs/Tween.html#onUpdate"},"kMnVbss9ZqZx_glP7bKdP":{"uri":"/melonJS/docs/melonjs/Tween.html#repeat"},"EUmeq3bQ4g2e2G6nD9cQF":{"uri":"/melonJS/docs/melonjs/Tween.html#start"},"QweyIWRcLDjY4cMwJElbY":{"uri":"/melonJS/docs/melonjs/Tween.html#stop"},"2L1T_uGfhi9BgviwC6m8G":{"uri":"/melonJS/docs/melonjs/Tween.html#to"},"-4_9pCSQrz5DmIIy7_nun":{"uri":"/melonJS/docs/melonjs/Tween.html#yoyo"},"HNDLXXCYsFA2mFfkRtMX5":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html"},"GzAH5VoB56D5b49AJOwrr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alpha"},"lTPMvKuUvXD_00KssfkA7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#alwaysUpdate"},"hkDtGPidSfOQ5dk3heO-k":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#ancestor"},"CI-f7iBGZo_JktmBuC3hM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#anchorPoint"},"sXDRFe-WHqz_fgVOuB5WT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoDepth"},"isKsQNqk2jnO3ai5vQR0t":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoSort"},"yaYsq_TjPQVIUtftjR9Em":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#autoTransform"},"iyVjTJst5NLGGpjZzMYOO":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#backgroundColor"},"nVLL7JdWE6pwliu4_K4j5":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#blendMode"},"QxcBEAy1JJd2VdSJ-sIlx":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#body"},"T103Wbc9S4JmRTKr8vDqN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#bottom"},"3GV-5xlrFdw1qoxu-rIvV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerX"},"B1GEA7s4TvqCA0Tkx_R4M":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerY"},"6jsiw2flQYckggEdB0TFn":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clipping"},"X7dyD-lJtayw4QtDnos6p":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#currentTransform"},"iAh79OvQzgviCb-m-yeV0":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#depth"},"2hnqqKpGniB1eOb1zm1MQ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#enableChildBoundsUpdate"},"FtZiZDd7Ta7n9Lfp2AtL1":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#floating"},"j_9AyCDRluK5U9mSdwBWX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#GUID"},"fP1jn2uvs-mHS05SOcXM0":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#height"},"oYQfTYqe0lQPiZCxWxLl5":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#holdThreshold"},"dKhxmOA8gnUJzuseaoIeq":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hover"},"VdRu3zT1c7Z79l1Ozui4o":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#inViewport"},"3HGl7s8y-wCXRei3LrhNg":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isClickable"},"fl0SZfQqq9GHFR_aSjgzX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDirty"},"kwcCUgszeEa_Jz4A5X0vo":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isDraggable"},"5YAsaZTokkGZC8XlIEsfw":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedX"},"ZH43i8lAbtoZQBP4OBNE8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFlippedY"},"JwVImFk4JagAlcqd7oaY2":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFloating"},"8yCG4TcH1QU-9FdeOBvCN":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isHoldable"},"sDSCbTG0a1Ka0C0KTzzX9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isKinematic"},"X7YLW3GDwdG16ZWFEE7Vs":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isPersistent"},"w0dLzC0egcT3vtq-wYGeM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#left"},"Xmtr1LpU5dokhlnhVwBpt":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#mask"},"gVzBgDs_B28rFZDBsv8Ed":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#name"},"48WiUabsuM3V4KaYp_wV7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onVisibilityChange"},"I4NU0-YeAdrM3x14DXBZv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#parentApp"},"S7a8dGYLf-p549mpAwux-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#points"},"wqGS6_Wb4hsTR6psbvZZM":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#pos"},"U-XQabtcjZqXEr0sCv-n8":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#released"},"UddyK98FtTbw9CFi2rK-s":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#right"},"qtKSMh19IMOBgv6Mfm9iO":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#root"},"A_u0PhhOlxJouosA4G6VS":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shader"},"pB_LZCC4dPT1g9IxxeVnP":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sortOn"},"72wv8aSBod_eNMQOuXBCy":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#tint"},"fSTyTnWeEZ5XLgNCpV7U9":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#top"},"VnR6rKpjVj-ysB5OvBihO":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#type"},"nHqh1SvGFK1dTTWNk2I3T":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateWhenPaused"},"lUnwbAQ_PtVa38CJeLfid":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#width"},"o_46-ex8omea7SxSR6TRT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChild"},"WbcNPUXQYs8MxYq3duEI7":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#addChildAt"},"AP8y5dPO4AzrEotNmyBPn":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#angleTo"},"3zqHZR0w8BIS8y72rI3Mv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#centerOn"},"w_B4Z8NI_-aevQScDx-6x":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#clone"},"m_MhgoS9zueALLVFeZClm":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#constructor"},"048JqLfxZQWdndTh1YFgm":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#contains"},"4kvMdpa-n1M_sAMO5-k9n":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#copy"},"zX191ga8v4nTVHTju135o":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#distanceTo"},"_PaNAYTHwZa3EVEZNk_Zo":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#draw"},"bgwyOAPHmoqcirWqLZwfH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#equals"},"jDwI0W5h-tarlX-xRo0rH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipX"},"-n0M7I_eMvQnqcjTGzlVX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#flipY"},"7dJogloEFe9p8c4yEut3k":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#forEach"},"d6mVH9TNvjlM25QD7qONW":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getAbsolutePosition"},"1KtgGw8n6cJqYD2FO4ly_":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getBounds"},"EJl4Dloqkiu3aJnpuc48G":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildAt"},"puFmiwurcchaiSjSUF58O":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByGUID"},"mEJCX7XzfA-R0ljfr7kYe":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByName"},"vXdHGwUvHebHHxBOwty2Z":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByProp"},"dTXOjZSPi14VpdQYTEw7t":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildByType"},"eOSIwKMpHtsy9CSu3kNny":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildIndex"},"nitFZ37rMab7mZp3TafE4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getChildren"},"bT1c6xOaPvQJF6hYztlAL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getIndices"},"_p6mXX3wIuf3_DluWCFyt":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getNextChild"},"-075FN2OyN-pdXbi2C_72":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getOpacity"},"HG3C0wjrnBeqJN6oWmB0W":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#getRootAncestor"},"SM34kJ0PMp73muCKHgWMg":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#hasChild"},"oUQ-d7YfhJ6x83vrKZJYk":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isAttachedToRoot"},"MVMwsBwnUIUd0ZxO-xtRl":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isConvex"},"-kOhOTfK-5DfQ9CmRjWWv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#isFinite"},"LQeHKZBd5Q3ci3kMmtr-C":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#lookAt"},"lFFoUaFeiPPUoJUTbnu83":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveDown"},"1qJAbVO3B5fGtxFzyee43":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToBottom"},"aeX7wIfGR-LPIa4ts_Eb4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveToTop"},"9ev7DEFfxrx9ZT8oOL-4i":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#moveUp"},"Qy6X4k7OgeXX11-EIAp_v":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onChildChange"},"4qKtThsDiB9khL5uvRY9U":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onClick"},"IXDaJhYW4LexHKv8jhTM-":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onCollision"},"TZ0sI9RFj31z3RX00CvUw":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onDestroyEvent"},"oT3wmaME5KvhGS_cyD_iJ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onHold"},"xkAtG3F0uNXaClXR_bobg":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onMove"},"foDs8CNumcTrFhBJN2vPe":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOut"},"zUhLwtonfEkayB-AnkWxZ":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onOver"},"BQgZ_7SgbilNKXOI-Dizv":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onRelease"},"aCPbZJTN4qG2iQAi26m6R":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#overlaps"},"dfh0HoBQ43USgYBkgD1-Y":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#postDraw"},"o2b8-ei4MWKXXjCHyAMZL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#preDraw"},"j8uqnZx6kJWqOt_7QdDLV":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#recalc"},"ZcemgLFJs6EI5RaFWm7q4":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChild"},"5MnmDxxdZ1NH7Jg_amJni":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#removeChildNow"},"cwVzg-ZRZBGWFFMamzQ8y":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#reset"},"TfppjHXZhArKWG4hNPrzY":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#resize"},"FrQACFoy1JcNz9uE5ddRC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#rotate"},"WBGsRTxA67fmfwh7HMg9X":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scale"},"Dl7VFR_K3hQRgNf6J1NmX":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#scaleV"},"khtDBQe4LtEJItgrEzdBj":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setChildsProperty"},"SzIvZEm49JAT3jveP7snH":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setOpacity"},"xu56EyFFTLufBxuWCtqBW":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setShape"},"7ysR5vp7Y4xOwZxgcYeUC":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#setVertices"},"1tw49A7kQNI85HaoScocT":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#shift"},"fNg8tAF4UYWM5dVsP-7GU":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#sort"},"p_inL86Xb0g08OrB0LVFE":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#swapChildren"},"pWWn_cnhASswC-GMXEito":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#to2d"},"HOx3_rkRnl-6R3ODvtVIy":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toIso"},"Pr-4myrpUBpEZzgKHZ1Za":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#toPolygon"},"Gh6RKmW5IBgJR_Rf7tbQr":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#transform"},"TtePaaVAhtVUyVONoniWf":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#translate"},"JHbiVi-9od32yF3Uy2tEL":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#union"},"So8mmOCkmPPckEsfuVb1i":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#updateBounds"},"gTW4T15K12zkv4pAbXupt":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#update"},"RF-liJkd4L32A7gKPXhv6":{"uri":"/melonJS/docs/melonjs/UIBaseElement.html#onAnchorUpdate"},"7IM-JixlrAaAn4FmXl9K0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html"},"kTlIcmmpvamDObeoGJ0U5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alpha"},"OibyVxykcIsKYUM33wn3r":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#alwaysUpdate"},"vpF-WIjuYVaAJJU3HvwV9":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#ancestor"},"t0oRiuIqsp-YCVuwvDH9o":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#anchorPoint"},"4-78KjbYDZlLttE1hUT62":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationpause"},"cl3uOMvfcj3_VohAx-eiw":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#animationspeed"},"RgnxogrlT20x_Bem6RCzW":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#autoTransform"},"WRdB0gHrY22NP9tjEicvU":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#blendMode"},"NnY59K-rU9WSgSvPJpWzq":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#body"},"0IzVtfxSDK-SrrQ6sylPb":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#bottom"},"AMscGUXIPRBRh7MjbAVPC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerX"},"_1E4l_1RH36uilxXABphX":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerY"},"c7g_EfOf70saW6yCZvbne":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#currentTransform"},"qn847ECmdGWeS2Ur9N2tq":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#depth"},"mCVMMc-mN-RLVV7HlZHYV":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#floating"},"yjkmvwm53nrEC5MpchkVx":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#GUID"},"Zj4GUWN998D6b092lCY0S":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#height"},"L2zKv5x8-NfvCuDLjNAIn":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#holdThreshold"},"F3BU72MGMsxa5VjlhMXr4":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#hover"},"m8GCFhQpyur8bVA6IqtMp":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#inViewport"},"gw6e0vQXyBjZAJVdZxfq0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isClickable"},"SRuOPvAFwtJPrV7fuaCIS":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isDirty"},"yESJCpq4oL1JwfcpApuMx":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedX"},"0LaUpvGuOVv9smMbTC_Wd":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlippedY"},"qm2SyoQ_wtWHw6W2p91QK":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFloating"},"X3IpHIlVAEmdqBynSOAez":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isHoldable"},"_zRXHO5tst5vGUImVVfvG":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isKinematic"},"EyoUG0lvY1XTUCmEUU6oZ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isPersistent"},"23mfq2Dc3mzV_qC9_0oer":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isVideo"},"LSZcsGW1NBEewTWBTrL00":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#left"},"jbxuPZeDhThO77es-xGQI":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#mask"},"DOwutYIVglFIDSFxnVKS-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#name"},"9sWz39Vjua0yxVKIgO1jc":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#offset"},"jdVSBK9ib0QF2-WSK72dl":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onVisibilityChange"},"zMMnAPN_AwX2j5qq7gor_":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#parentApp"},"iYUAq4tfloml__QuoTB0e":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#points"},"MTyx9mjBUjvNXoQnelYe5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pos"},"wiTwD_p2p14x4YTgZ7qdC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#right"},"eANXOe3UQgcr-46HNvHhD":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shader"},"PhCZnz16fCzsgeW7ADth7":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#source"},"RA4_7-vDjU6BxVSDweyc-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#tint"},"DyEFffaB-KaQzZh53F2wX":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#top"},"tkGgzjr_S_9JmnZrwMmoY":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#type"},"77TGooL8mSoPDp4QR-q4b":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateWhenPaused"},"-lGLNDKiTJUP3bFN4Vvft":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#width"},"S8T6cSHWyU7wfFHkjiJfL":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#addAnimation"},"cwGR53unNcq-VY3Z4obPZ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#angleTo"},"bJ6XB-nSHAHG5IrW9cNxk":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#centerOn"},"HBlYiPQWoZ6KnvuXUrfxQ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#clone"},"aIr7mq31zmxBp_3YZfGEy":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#constructor"},"IMcKhewrshZmcFeiWS2Lj":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#contains"},"yDiTWK-7zE9xSwx0ObuKA":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#copy"},"bHLpO-q6pK7a8iUFCU69V":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#distanceTo"},"FPwWyEV3A5ut45W9fRSE1":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#draw"},"s9OZvhSn2KBKUtREGEhNY":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#equals"},"--bWwgKuyI1pQHaUX5r8M":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flicker"},"iFI4TDDUQjAsf4dL4fw8v":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipX"},"ujTZb2PI74a6YzRkhtFCd":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#flipY"},"u6VUnveuipOoZkXaeVjAJ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getAbsolutePosition"},"YZNz4NVQwX_VrXw5Jhiyv":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getBounds"},"m_gppBYsM2zV63VcodJfK":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getCurrentAnimationFrame"},"_yVGXAGc2jGPtO_Qnp98v":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getIndices"},"ybMyufNbPnzo9Tok8bPe7":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#getOpacity"},"Ecx5PmNGXGCbcMii6M3FT":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isConvex"},"ovBxSZqnwtm2RwdNcYgW6":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isCurrentAnimation"},"6isqgXk0Sf8E5uxVJUTY-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFinite"},"F1GBAV_8KJPcXuONLBYe6":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#isFlickering"},"XFZGEwig5QjQpDHA9wAOX":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#lookAt"},"9klcl_HAnVUkbdgdBYoT4":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onClick"},"9iFSvX1MtyJ50_4fgT8mC":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onCollision"},"kQ_e3hoSp-8GaUBwnyRi6":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onDestroyEvent"},"hlh-0YmfYxJrh39SFBmBF":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onHold"},"HlIHoMeFL02t8zyMPdEEn":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOut"},"cubFGfn5puPJPBrgN4jGj":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onOver"},"Wyly06JmVUQAa-aeBS8DI":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onRelease"},"FHCvczIu0h2qeoNaVZmuo":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#overlaps"},"TvCL3rrcQn0EdSj4CbK59":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#pause"},"MA0_HTcY6MCEIFVQwSoP5":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#play"},"56w5GjlP71Sgc3A1T7aj6":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#postDraw"},"wQppyd0KdudRwbXO0LPel":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#preDraw"},"Vc-NugyUjc760NFvq2SyK":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#recalc"},"5K-s6gUfXSacUIdlqW7el":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#resize"},"bXrGlgJSCdEtiAEnI938g":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#reverseAnimation"},"wToIaI5EbdfEhKOTwApyb":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#rotate"},"mKydAE9auuQKsfNoOkJ0L":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scale"},"uj7Mnxxy6Tt0Se75kE9BB":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#scaleV"},"jrsvKRlIj1gCSaGK3AEUY":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setAnimationFrame"},"YFJ4CEH7BVIyVgNXKuf6L":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setCurrentAnimation"},"RsZ21Kaj3LbfDykQvTS89":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setOpacity"},"5Ov4MvOGRfhU1cpxvbX-0":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setRegion"},"5-pjtBXwH90nYOvUnaPAJ":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setShape"},"QEiUFKe2g_2y7u8ZWQ2n2":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#setVertices"},"qnwWtTRLmPI46DeKQw8SX":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#shift"},"SIVxIz6hh6f2efxz8pyUe":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#to2d"},"KHuuwwDhN_ZjC6KTDNHQI":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toIso"},"dFZikstCK7H_yp4A1TF8-":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#toPolygon"},"jBj-uvAn97Gnn2n2t8Fjn":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#transform"},"Mmh3kDA8mcdp-XgRhCu7e":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#translate"},"reNrRbq7lH2BezIKhyelj":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#union"},"gDq2jVFsOTSA2UDI4z1Ej":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#updateBounds"},"h17tqlIMkL30ZEqArMALv":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#update"},"Bu_80J7WsWw1UAH_t3ogs":{"uri":"/melonJS/docs/melonjs/UISpriteElement.html#onAnchorUpdate"},"BMcbIeE3b_TPIV0JGko4L":{"uri":"/melonJS/docs/melonjs/UITextButton.html"},"Pz144VYK0eJL-tKUarjf_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alpha"},"jHBriXTknyABrtlQvoJ54":{"uri":"/melonJS/docs/melonjs/UITextButton.html#alwaysUpdate"},"gnA49AU4c2vGF78ZAh85v":{"uri":"/melonJS/docs/melonjs/UITextButton.html#ancestor"},"QM5vZzMYM3qa4le517dGW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#anchorPoint"},"80yAaKCXfA7oMxw7e1fRb":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoDepth"},"J3GhyP-MRkYxaJMZjZ8-a":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoSort"},"JxMuyx4KZ-fLzuqGNhuHP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#autoTransform"},"qpscHDGfA1RidOJSBmuWb":{"uri":"/melonJS/docs/melonjs/UITextButton.html#backgroundColor"},"9I6bVGNHa9jVrozixZsvI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bindKey"},"1uWwdai4gQpOM1X90Rnf4":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bitmapText"},"I98G5YFkCOeWcGC3gOGsP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#blendMode"},"z4itK39Oscgr9cBcfpOto":{"uri":"/melonJS/docs/melonjs/UITextButton.html#body"},"iX-7-Ielv57TFtZOfwA9-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#borderStrokeColor"},"YovtmgAt3JTrT9qp22Vhv":{"uri":"/melonJS/docs/melonjs/UITextButton.html#bottom"},"KQBoxhazs5m3yUBfkJO1R":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerX"},"56SXCuohl4gZM__osr2VS":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerY"},"VyX0r6Cqmc8Py_Yzgywx9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clipping"},"GFzdVDVjQcWiaJWeyMoWg":{"uri":"/melonJS/docs/melonjs/UITextButton.html#currentTransform"},"TzW530AJZhkJ_-lJmynMM":{"uri":"/melonJS/docs/melonjs/UITextButton.html#depth"},"kDLrItC-_6OKktN8WSJOJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#enableChildBoundsUpdate"},"gEk1-5np4q-71cBlAfgw7":{"uri":"/melonJS/docs/melonjs/UITextButton.html#floating"},"hXb_wff2DWBibzI1IwMLd":{"uri":"/melonJS/docs/melonjs/UITextButton.html#GUID"},"mYrEa1WX52YzEhsg6BIAM":{"uri":"/melonJS/docs/melonjs/UITextButton.html#height"},"ue3KV8pfhCqMI3OJQu-t_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#holdThreshold"},"vysy9kk3JPBuAN8w_cdVK":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hover"},"QKtYX_y2ifJ0358FbQB-5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOffColor"},"6Rtp6CyZhc7thlIVHXZQk":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hoverOnColor"},"C8bE3CBSNBZn7lLYT1-ba":{"uri":"/melonJS/docs/melonjs/UITextButton.html#inViewport"},"2DhKDqzPK5cZRm6YjCu19":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isClickable"},"kSyaT6BiOvLuN3v9wp4Q_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDirty"},"bE6jEacw78aD8jquP2aHB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isDraggable"},"S7I4b7uc-SYWuzEkgyWs1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedX"},"qlEZJokqYerFkCPf1maOE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFlippedY"},"NUIoo_yEoM1hR6gMIn_Jh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFloating"},"zA_7ArHs_HSoxL5veRZGT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isHoldable"},"-GM-gvrdGsn2OFqaAHXSz":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isKinematic"},"fdCkx7SKHZNeARpKQAhG5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isPersistent"},"tFMwioinIKfN-s3SMV4Vu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#left"},"bgH6kT4b1YTFrHZNUssp5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#mask"},"1iGs7UYF_tch0toq6TFGJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#name"},"d56Wuf6f_7JifewN3hhUH":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onVisibilityChange"},"j8j2W6CfgEohryezekWCq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#parentApp"},"WywIqW_vAa3-JUCZi-Jez":{"uri":"/melonJS/docs/melonjs/UITextButton.html#points"},"oIt55X1j6cmEZcmHfnjOe":{"uri":"/melonJS/docs/melonjs/UITextButton.html#pos"},"mw0P5pkVFqZyrtlEuTRrL":{"uri":"/melonJS/docs/melonjs/UITextButton.html#released"},"wlLv5VCVQD2QZYNFQ1a4l":{"uri":"/melonJS/docs/melonjs/UITextButton.html#right"},"e1HwYJyCd1-Ul2T2GbDvq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#root"},"zZXaG-aevxZTz2wm7htme":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shader"},"Nf9kMafj6h0AaElj87kM-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sortOn"},"JwHM4n9y5h33wJmpUDSaV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textAlign"},"ruPnfKH4IMruOpSVxSTuh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#textBaseline"},"LMv-yxQ6zSw1HZcjfB0Pf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#tint"},"4DyRX69U1mXiFI4G3WTkd":{"uri":"/melonJS/docs/melonjs/UITextButton.html#top"},"s0o6LEoT0YRVqCrOJ1dXZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#type"},"LrRhnWtYpyI29hdKVCkXp":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateWhenPaused"},"LHWcqmac2vGsFxiOczPnP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#width"},"nnd6q_2Z3Dc-GkbG7JaUh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChild"},"YfxIO2Tyi_so_5RqoxPBw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#addChildAt"},"f-MOBLgWe9jh9srqmqFqi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#angleTo"},"T8EbT3s86x9nVQnE4Xb6q":{"uri":"/melonJS/docs/melonjs/UITextButton.html#centerOn"},"3ip-fKLETPzkaKspmYji9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#clone"},"OVYKUtiBBkIDlcVjZk0t4":{"uri":"/melonJS/docs/melonjs/UITextButton.html#constructor"},"DweZa6rkm2OXYrsnk5oSq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#contains"},"ZghzXuVS3WXiAZiZNPll-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#copy"},"cJSvoGFsXVDJS3zOdZcQL":{"uri":"/melonJS/docs/melonjs/UITextButton.html#distanceTo"},"zjiOW8Sz0KoWGZjmPOlVV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#draw"},"4GjWyolFZ0Ec51aIqFaF_":{"uri":"/melonJS/docs/melonjs/UITextButton.html#equals"},"CcPgBiUcR8EleRxqjsxjV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipX"},"MwzCdFbkzJBlsALpY4e9A":{"uri":"/melonJS/docs/melonjs/UITextButton.html#flipY"},"MRTWuIOi8Euxn4IW2xG3Z":{"uri":"/melonJS/docs/melonjs/UITextButton.html#forEach"},"qVF77J7I2gz_5mjenVLxh":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getAbsolutePosition"},"l5kmmQO_7Wmd82appwTJ1":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getBounds"},"MfJy2X7yso8KYCrOXOYe2":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildAt"},"q0EjCbivlZSjCSxDO16jj":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByGUID"},"8Jgsn8aza_tfi4JPWSwov":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByName"},"MzywBUTHA5u9CgK3v9Fzl":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByProp"},"5L9wCeyklrx8W7NWJZ4yc":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildByType"},"6ZLICCq_syn0q5JubE4rm":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildIndex"},"IDZ7Hi7zxLvSVUtRR9Cra":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getChildren"},"XbGHpVQNIetOC4msWij-g":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getIndices"},"WKYjR6o-8RrJOplxiTyKN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getNextChild"},"vuR-QldnAdho1sPC3PzTG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getOpacity"},"JC6O3sLNU_qc6wOG1yawW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#getRootAncestor"},"3A_A8omyGIUbaarv38iGU":{"uri":"/melonJS/docs/melonjs/UITextButton.html#hasChild"},"CCCr6ou0jDA6s_xJeSh0V":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isAttachedToRoot"},"GhuoCdBNhSNoxJQAeqsSf":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isConvex"},"ck0eBVwlk8Qi3Dn5qNPYI":{"uri":"/melonJS/docs/melonjs/UITextButton.html#isFinite"},"EuRj7L6jl8oKfJ154T8nZ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#lookAt"},"iNAvFZ-d_oftfKfMV_mwE":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveDown"},"ZxaTKt1MuaqOAOdEd29uu":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToBottom"},"z75493sgqgXGf7EQu6t3U":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveToTop"},"Aqphm22Iy9BlsRXVSvrvi":{"uri":"/melonJS/docs/melonjs/UITextButton.html#moveUp"},"_22fjIoTvdTwhYuXVojKl":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onChildChange"},"sX1j1pDArpe4sVJrc4hvH":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onClick"},"aaK4aamet_mganmbaLGBT":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onCollision"},"Ph3DpPJFdYEKbupNIJJun":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onDestroyEvent"},"hbiE5S8yhOQdq7QGs0tfB":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onHold"},"WalqSGbl3G6IKhfamB_7H":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onMove"},"kg-LcFqH5Eu24yvnrUdP-":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOut"},"Z7JGYvaBTv8N_WlgCsfIJ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onOver"},"Y18KyZLWngXXZFmIgstq0":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onRelease"},"iShq7dRRlx7-6FH4Y8h3O":{"uri":"/melonJS/docs/melonjs/UITextButton.html#overlaps"},"Bso1OmLQE7bRoqS6ULiVK":{"uri":"/melonJS/docs/melonjs/UITextButton.html#postDraw"},"5NOX6uSxMM3wlXOCfncjx":{"uri":"/melonJS/docs/melonjs/UITextButton.html#preDraw"},"Tnt782qx5FtgdXIVWCLbF":{"uri":"/melonJS/docs/melonjs/UITextButton.html#recalc"},"cpu0mZIuwEKuoeGAxpQvq":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChild"},"2KL20gCV3Scbf_Zokj-01":{"uri":"/melonJS/docs/melonjs/UITextButton.html#removeChildNow"},"-5ZbZ2mV25jVRkl15Nzfj":{"uri":"/melonJS/docs/melonjs/UITextButton.html#reset"},"Zjw0tVtTxyIKUjWedwDfe":{"uri":"/melonJS/docs/melonjs/UITextButton.html#resize"},"0DJVyyoQ6b9TCDdSP-S-5":{"uri":"/melonJS/docs/melonjs/UITextButton.html#rotate"},"f0DfVHSxJCEuA00JyK28P":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scale"},"Q59QEi7Eb3CdihOq5Vglx":{"uri":"/melonJS/docs/melonjs/UITextButton.html#scaleV"},"RTL4NY-PQgGeDWZh4Chfw":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setChildsProperty"},"4GhZhz0Y4v3LO4aWV4e7Z":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setOpacity"},"36OsjwWApUx-Kx1FI2yvV":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setShape"},"qCSgyg2ViKMeObuefw9QQ":{"uri":"/melonJS/docs/melonjs/UITextButton.html#setVertices"},"QYbMvHJy2NOfpiz69SON9":{"uri":"/melonJS/docs/melonjs/UITextButton.html#shift"},"2vZBtklQ47G6v-JAU3TBr":{"uri":"/melonJS/docs/melonjs/UITextButton.html#sort"},"NBVuy4F3j6Myr_s5HfrcG":{"uri":"/melonJS/docs/melonjs/UITextButton.html#swapChildren"},"FCc7NdRK8uyOudoKJT1r8":{"uri":"/melonJS/docs/melonjs/UITextButton.html#to2d"},"m8QQhU2NG8mEJYQTVffpk":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toIso"},"_bztBb5bBpEu1kD88sZwC":{"uri":"/melonJS/docs/melonjs/UITextButton.html#toPolygon"},"TGuPLm2lT9gBGn8gmO0MN":{"uri":"/melonJS/docs/melonjs/UITextButton.html#transform"},"r9pbvsNVOXvthf_hMv1rX":{"uri":"/melonJS/docs/melonjs/UITextButton.html#translate"},"up8jc0WMrAiJ9HnriJsri":{"uri":"/melonJS/docs/melonjs/UITextButton.html#union"},"MyW_5zYBneHjRLT9OVxMU":{"uri":"/melonJS/docs/melonjs/UITextButton.html#updateBounds"},"QBT2jQcYiWUtn2kZMeZlW":{"uri":"/melonJS/docs/melonjs/UITextButton.html#update"},"3KJ3d87Ez4Ux30Qn6_CdP":{"uri":"/melonJS/docs/melonjs/UITextButton.html#onAnchorUpdate"},"uDO-m1kZA0wJNPKyluWZd":{"uri":"/melonJS/docs/melonjs/Vector2d.html"},"E9mWMX9bKTAfUgGDQmWdr":{"uri":"/melonJS/docs/melonjs/Vector2d.html#x"},"SoW9YMrJRIHNJkw8UK98a":{"uri":"/melonJS/docs/melonjs/Vector2d.html#y"},"wq9Es7fS_qFi4hKgEGaTD":{"uri":"/melonJS/docs/melonjs/Vector2d.html#abs"},"Wyp0SUjybJrx-NzE5JOI0":{"uri":"/melonJS/docs/melonjs/Vector2d.html#add"},"CdcDlXavNYWvmmyr5TEUj":{"uri":"/melonJS/docs/melonjs/Vector2d.html#angle"},"qTIL3phAXrcrV7p5r5ybp":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceil"},"W13fo_i24V6TQR7YuHpfZ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#ceilSelf"},"BNQS5dm4mXamaCZF16tA9":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clamp"},"DljmA5XRqA4xHL9BYJZZJ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clampSelf"},"viwp7PGnylZyxdR3FkB8k":{"uri":"/melonJS/docs/melonjs/Vector2d.html#clone"},"WBUgPAgERQlFGhZwtWLKg":{"uri":"/melonJS/docs/melonjs/Vector2d.html#constructor"},"2u-hrtY5Zu-s6anf6jkxv":{"uri":"/melonJS/docs/melonjs/Vector2d.html#copy"},"BEqOWzBTOlFh0Ch_nkAW_":{"uri":"/melonJS/docs/melonjs/Vector2d.html#cross"},"6xt9lhQJvZoorD7V9flO3":{"uri":"/melonJS/docs/melonjs/Vector2d.html#distance"},"jdBjRVoDmthSQi3MMHfHQ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#div"},"gB2slllYxHeLzMgbRKw9m":{"uri":"/melonJS/docs/melonjs/Vector2d.html#dot"},"fPo01znYmjmgngjXxjQA4":{"uri":"/melonJS/docs/melonjs/Vector2d.html#equals"},"PnZoaXf8_xAJCJFV-GcXn":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floor"},"7KUkY1L8bo5FZkPW1MWKm":{"uri":"/melonJS/docs/melonjs/Vector2d.html#floorSelf"},"jMn2N6Pb3NVeySo6KqR9T":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length"},"ckAb8JgexlmpQryfN6a9X":{"uri":"/melonJS/docs/melonjs/Vector2d.html#length2"},"sv2TPN-RPxeykvWz3ueM-":{"uri":"/melonJS/docs/melonjs/Vector2d.html#lerp"},"GJjOCWHtxUfyUC5i8C8_7":{"uri":"/melonJS/docs/melonjs/Vector2d.html#maxV"},"xNwtAnVuJNviyEyEVdbSy":{"uri":"/melonJS/docs/melonjs/Vector2d.html#minV"},"KFMrWruYqsZPKG4oSHrS9":{"uri":"/melonJS/docs/melonjs/Vector2d.html#moveTowards"},"Dm1pa9VnQcVcq-knU75XJ":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negate"},"oY5wNytCussHk0qgwDszf":{"uri":"/melonJS/docs/melonjs/Vector2d.html#negateSelf"},"DpLb5JO7n0JcgFhQH20JH":{"uri":"/melonJS/docs/melonjs/Vector2d.html#normalize"},"8knxylQkJirEOHhzNd6fa":{"uri":"/melonJS/docs/melonjs/Vector2d.html#perp"},"9mwYQYIhoC4Qpv1PT4Fda":{"uri":"/melonJS/docs/melonjs/Vector2d.html#project"},"ujJ2LlOJjvSTjj9Rvco-J":{"uri":"/melonJS/docs/melonjs/Vector2d.html#projectN"},"YicnPar8TTeaMgHakpIPq":{"uri":"/melonJS/docs/melonjs/Vector2d.html#rotate"},"gSumXKryN9-ZVmY4Piimt":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scale"},"UFBX1Kh4TKoBE422mjSP5":{"uri":"/melonJS/docs/melonjs/Vector2d.html#scaleV"},"DWP2nnomZOA_D1OXreZSl":{"uri":"/melonJS/docs/melonjs/Vector2d.html#set"},"0eHdd_vo8mGIhHO4-Q9V7":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setV"},"-hm5-NWRyDs8eC8_uviSG":{"uri":"/melonJS/docs/melonjs/Vector2d.html#setZero"},"wZ-ts3PPI369WHncHNK0w":{"uri":"/melonJS/docs/melonjs/Vector2d.html#sub"},"nQClJZJAi2QDegCBTVOIT":{"uri":"/melonJS/docs/melonjs/Vector2d.html#to2d"},"3GgP-ssG_yn5bKbXBfGYg":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toIso"},"fs9yp4NxoDD-nnEsUpokK":{"uri":"/melonJS/docs/melonjs/Vector2d.html#toString"},"hhL7yv-zYi0sH9oLaUPCo":{"uri":"/melonJS/docs/melonjs/Vector3d.html"},"rlTls-EiwjrP3sd0zugyy":{"uri":"/melonJS/docs/melonjs/Vector3d.html#x"},"RbZYEMxs6VBtH7sURejaU":{"uri":"/melonJS/docs/melonjs/Vector3d.html#y"},"FyLyx-1B4w01huJacifxY":{"uri":"/melonJS/docs/melonjs/Vector3d.html#z"},"WwE9xA-tIteHmlbts9LK7":{"uri":"/melonJS/docs/melonjs/Vector3d.html#abs"},"xGwRbWgVH706GP58srJNq":{"uri":"/melonJS/docs/melonjs/Vector3d.html#add"},"MWZkQtbqrI12yUrl2JyhP":{"uri":"/melonJS/docs/melonjs/Vector3d.html#angle"},"6HdkNJ87AHHzuayu1E4GI":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceil"},"gLG15-gbwiAmUl2EgpsyA":{"uri":"/melonJS/docs/melonjs/Vector3d.html#ceilSelf"},"eEkenVfEj_HAXsED4SBJw":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clamp"},"vl4p77pljlmzaMkkpRVVf":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clampSelf"},"kV8ClN_70MFimXwLWsMIc":{"uri":"/melonJS/docs/melonjs/Vector3d.html#clone"},"2z0srGj1BfiB7Lkvhy_nL":{"uri":"/melonJS/docs/melonjs/Vector3d.html#constructor"},"kX31l3tbnqYiBtFvFgPIs":{"uri":"/melonJS/docs/melonjs/Vector3d.html#copy"},"kaMG5pMVCSyjF_tkeqBxP":{"uri":"/melonJS/docs/melonjs/Vector3d.html#cross"},"n_okTTd34QU4dhDFXfrK_":{"uri":"/melonJS/docs/melonjs/Vector3d.html#distance"},"_0x7axc_szWFCHJtUJCHm":{"uri":"/melonJS/docs/melonjs/Vector3d.html#div"},"xXoaX-8VvlVSyqCWb8YCr":{"uri":"/melonJS/docs/melonjs/Vector3d.html#dot"},"iMqtr1EB_PRvn19pd7w-8":{"uri":"/melonJS/docs/melonjs/Vector3d.html#equals"},"xk5JuydVylzaD2PUU-EzK":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floor"},"Pn8e3oDFGlKRySzXVczGE":{"uri":"/melonJS/docs/melonjs/Vector3d.html#floorSelf"},"gMm1pBZVAqkpmjk_CDX4X":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length"},"AQCIHehGOz9466NQuyXwS":{"uri":"/melonJS/docs/melonjs/Vector3d.html#length2"},"N0zKE6Kj7-xqG8XM9zvP6":{"uri":"/melonJS/docs/melonjs/Vector3d.html#lerp"},"c1MNOGn1wFscbqqbjfMws":{"uri":"/melonJS/docs/melonjs/Vector3d.html#maxV"},"_zAahzdpYc-Ud5lOnD_Su":{"uri":"/melonJS/docs/melonjs/Vector3d.html#minV"},"TMKPW53iMvPxBc9uniWTb":{"uri":"/melonJS/docs/melonjs/Vector3d.html#moveTowards"},"8TuOTtLkWnW0U88_bkCNr":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negate"},"BhXxoIJezGrW5EwPci_fW":{"uri":"/melonJS/docs/melonjs/Vector3d.html#negateSelf"},"wmS9Srx4ggRVrDTGeT76I":{"uri":"/melonJS/docs/melonjs/Vector3d.html#normalize"},"i7I3FIffqYlyN69LQEtkZ":{"uri":"/melonJS/docs/melonjs/Vector3d.html#perp"},"gFVw-qopwGblRz_5sJ50J":{"uri":"/melonJS/docs/melonjs/Vector3d.html#project"},"ZATFVDGwCbQ_9uJQqxsEG":{"uri":"/melonJS/docs/melonjs/Vector3d.html#projectN"},"4X0QLu_U0-E5r2D6rqxCu":{"uri":"/melonJS/docs/melonjs/Vector3d.html#rotate"},"7h1_T1Rt1sGAVKEhRbafT":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scale"},"_o5F_vaP2TMaodnQAjsll":{"uri":"/melonJS/docs/melonjs/Vector3d.html#scaleV"},"cLI9a9UGWFuhNkmNw7p3s":{"uri":"/melonJS/docs/melonjs/Vector3d.html#set"},"e7FfI-6zjCWsVNzekz3Fe":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setV"},"OgmEq-DEAVCP6VqwUMH9x":{"uri":"/melonJS/docs/melonjs/Vector3d.html#setZero"},"VdfXzMRJXE9SSBiEN68-J":{"uri":"/melonJS/docs/melonjs/Vector3d.html#sub"},"P_SasDMN03mWChcHCrUSu":{"uri":"/melonJS/docs/melonjs/Vector3d.html#to2d"},"2kHQfasHVU6hJE1EdF1Dn":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toIso"},"9R8MIrjQkKJnJ3C1tGAr0":{"uri":"/melonJS/docs/melonjs/Vector3d.html#toString"},"Gfk7bTL6-g-J4pLcN3N6Q":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html"},"heQt_jbdFN_lL47FJ227Z":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#compositors"},"CJbDuNYARPJSA4RKOWnRH":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentCompositor"},"JzI3xVCpZk1AmnjwexezY":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentProgram"},"yz9XoRA8pEbbi5di-R7Uc":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#currentTransform"},"KNiMb8Lw02-Y583Un8U4R":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#depthTest"},"Algp7BM24YVcx-jVcPDSb":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#designRatio"},"5RXD-rFXDgJis7J-WWgrK":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#gl"},"rTGl15FCeqkVzvt2pz82E":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPURenderer"},"2p9q85U4t_kPnsfuQ4jV4":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#GPUVendor"},"FiCQC0o5UbzRhZ9WnKeLY":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#height"},"7ZAU3eDvwikKr8_OknAa4":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#isContextValid"},"yPXCtgSJkh9hvm-DlesSy":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineJoin"},"qYpxbbeHvu3rHbYiXrzBT":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineWidth"},"ZcziRWTuSsxE2FPkmeSGr":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#maxTextures"},"4FmyiM6ZIRCmt5oO80v9B":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#path2D"},"aiU24rNSuwWC-0l7J_eLN":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#renderTarget"},"tA3SHWbziSkukkkkcIgGe":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scaleRatio"},"vgaVJXSTooHgsjruTD-Bv":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#settings"},"whstl5xaIcXILsb2VJDVH":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#type"},"MlLXatAQDiDPpm71rTFcn":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#vertexBuffer"},"iLk4s49Cx75ej1sIpoeeD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#WebGLVersion"},"_V_oAAUYYeT6N8yw9Pv4s":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#width"},"Dmzk4F8aLp_2rVN6xnetQ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#addCompositor"},"FeoWp2qCbklkDqz6_HjTD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#beginPath"},"xN1oPpLtkvxMe5LJz5Wtu":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clear"},"6OkhJgKeFxCwvIDbNhtCl":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearColor"},"QvABFUKYvMcrJX44I1MmK":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearMask"},"RaYvmKwCy3PV1kjwrmagw":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearRect"},"FKiAZSOx4gGSci12432iM":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clearTint"},"Aj_Rrr1qIyQSPHgBS2645":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#clipRect"},"VddFLoNsY8DFsJKzslsJG":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#closePath"},"MhAwuKiSqy_KC3vP2XiDB":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#constructor"},"G3JNNokRErm-n_5kqP6N9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#createPattern"},"_Kufbk2yc7GMtJ50_PLbN":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawImage"},"eBSHPAUq5X6p-rbAo0GHi":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#drawPattern"},"446ci2aKcvqlbc8RCllD_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fill"},"yg7ZyeJ7fw1vHUqq63SBw":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillArc"},"jQSsr1ngAVEMxA8T7hM9T":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillEllipse"},"dzYQ0XzxFQev_uf8QUcQd":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillLine"},"9io43it0He0VD0N4ufZBB":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPoint"},"r0k5EVmOpvGGRbxmd0hcR":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillPolygon"},"BywLyE-k6j4Rr1qjqPjI3":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRect"},"eT5H42jhUoeu7RurOMjOs":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#fillRoundRect"},"mqGf5AriCmT7visrpI55D":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#flush"},"W6gAHXS0YUdQekgJnh-ua":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getBlendMode"},"jgPibjItnyJkA7oE8Sy2G":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getCanvas"},"dhR7tjqoSVjozuD38fitW":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getColor"},"GBSnp1AsnFRgtjurV9xuw":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getContext"},"04-o6o3jWOebzNGO3ZBFg":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getGlobalAlpha"},"vUa2h9TiKQpmEg2tZmgFO":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getHeight"},"ZdIxU6LvbG0DQFfe9veBC":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenCanvas"},"98vpPYfgd1rW9ovv9G9rr":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getScreenContext"},"QmiDbN6lw10TSz5KnU6DL":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#getSupportedCompressedTextureFormats"},"uyLyBWqcFcql21OKXxrLy":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#globalAlpha"},"97dVF5uGyKnC9DTkifqsD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#hasSupportedCompressedFormats"},"3FOJV39JnasGvgmbOwfO2":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#lineTo"},"kH6lzS9pkVNdLHwuhp7nR":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#moveTo"},"l_zLVckMV94ZD5LGkqAVS":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#overlaps"},"xDQ0C2Y0FH5xyAkwkjOjM":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rect"},"aLqJ6b4t_DWcW0zUaMpT_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#reset"},"wKM_9-FEYfSRA2Teiagsz":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resetTransform"},"CAbmgSWxYO6CVh6ZYkGC_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#resize"},"eKLIyWWR9ESnq8Lrxi7My":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#restore"},"noErfv09nA9TvV3QDal0I":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#rotate"},"MtYYphC7mwQisyxzyWS5S":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#roundRect"},"S8svCNhmGK8qImurccd6_":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#save"},"M3_Pk8V5GUrEQGX82aV-b":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#scale"},"AMwsNyaNot6Cxfn77KVmC":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setAntiAlias"},"WorhRXT2JuYfwjAMwXvep":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setBlendMode"},"13DWAD7OyZsLKtyKyedgl":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setColor"},"CgVV-wSUkn9rdoKYICG1d":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setCompositor"},"4c4uw825QkWjJahVZuIhR":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setGlobalAlpha"},"6dhgO5imDa5BCyA3opswB":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setMask"},"98kwjYJeEVLANQYUBtOwN":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setProjection"},"_XJFsUyN-iwWdX3e6NYAI":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTint"},"LvNEsYzn-cv9ty1wtpOW9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setTransform"},"_TOlk93nIwEjqni6fh-Rm":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#setViewport"},"4KodUWt_x2_hKnEHBe-tt":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#stroke"},"x_zAOFpckGIR_H36KN6K-":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeArc"},"UsJTdJLityS4hizcH99d9":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeEllipse"},"cPPU_m1KOb9k18ERnqdGM":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeLine"},"Ufn6VDg48JPlF8LUjcag8":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePoint"},"4I0Ua4na2DCah5WPX0y-Z":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokePolygon"},"2bviXEWaFiZHPGjb9nmrH":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRect"},"x7ck0pHFDqj1O9FTcqvkD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#strokeRoundRect"},"yG6qbeTmBFWJKEY0UVwnD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#tint"},"65DyfF1Yr_hsy83vzckd5":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toBlob"},"j2f0EKzod-ompbnAYykpD":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toDataURL"},"hxz9lnEW_1qOjzdXK3W2o":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#toImageBitmap"},"VsHb-eZr3FFWlc990r3EQ":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#transform"},"9VTR46ApGIQtN4LaFfxXn":{"uri":"/melonJS/docs/melonjs/WebGLRenderer.html#translate"},"iuGnHuTTBo114ZJhcn0ch":{"uri":"/melonJS/docs/melonjs/World.html"},"HrDwnM8f-07PvJc5njOP1":{"uri":"/melonJS/docs/melonjs/World.html#alpha"},"w3tw-lggZayfQBUzNYc8G":{"uri":"/melonJS/docs/melonjs/World.html#alwaysUpdate"},"28xVxcaiAWu7dOXuBAVN3":{"uri":"/melonJS/docs/melonjs/World.html#ancestor"},"i5I6nhxe9aywMmdzYJiFH":{"uri":"/melonJS/docs/melonjs/World.html#anchorPoint"},"QFcsxgu8Oad58zR8zS1DJ":{"uri":"/melonJS/docs/melonjs/World.html#app"},"ATSQGym0GMmU30CwgKovy":{"uri":"/melonJS/docs/melonjs/World.html#autoDepth"},"4GUfHgfHh42sO1D0d5A3z":{"uri":"/melonJS/docs/melonjs/World.html#autoSort"},"Qg7YOA-oW74DWqmW4ZF1L":{"uri":"/melonJS/docs/melonjs/World.html#autoTransform"},"Tl6GD-s-0CPw2V563p9AO":{"uri":"/melonJS/docs/melonjs/World.html#backgroundColor"},"eCjTzpGY4XXIcXxJBdPHF":{"uri":"/melonJS/docs/melonjs/World.html#blendMode"},"Fb0YF4vg-3b5zxPMg3OeN":{"uri":"/melonJS/docs/melonjs/World.html#bodies"},"_C-kr_16rJUsJK0OpWyhz":{"uri":"/melonJS/docs/melonjs/World.html#body"},"QU15iMLvRQXGKU2AIATYe":{"uri":"/melonJS/docs/melonjs/World.html#bottom"},"fnmeoyuhXGJo9vLFBXJI6":{"uri":"/melonJS/docs/melonjs/World.html#broadphase"},"Ko4tfaIbMPGlUz-aBnSBk":{"uri":"/melonJS/docs/melonjs/World.html#centerX"},"H3nBoJiQZWHRmMgDjMA3r":{"uri":"/melonJS/docs/melonjs/World.html#centerY"},"GMVWDV2JZKX1Fe8yUmA7W":{"uri":"/melonJS/docs/melonjs/World.html#clipping"},"B5wuN20lO4IfeI90TXSxK":{"uri":"/melonJS/docs/melonjs/World.html#currentTransform"},"uQ5LLw5pa4C84iQM1qmsY":{"uri":"/melonJS/docs/melonjs/World.html#depth"},"5CTMCS_NB-eAoo25RLtap":{"uri":"/melonJS/docs/melonjs/World.html#detector"},"3lfcp_nU5IEDOjQzK_4pN":{"uri":"/melonJS/docs/melonjs/World.html#enableChildBoundsUpdate"},"zFY2A_hOkum3KcbD9MmLW":{"uri":"/melonJS/docs/melonjs/World.html#floating"},"054vr7UG5cAKsi52fj6UP":{"uri":"/melonJS/docs/melonjs/World.html#fps"},"JnusSiGTVMRr57KJxsCK3":{"uri":"/melonJS/docs/melonjs/World.html#gravity"},"BkKk8nQrJxDGRNxEOBz_j":{"uri":"/melonJS/docs/melonjs/World.html#GUID"},"Mv9XE6_0Y1clqtPO11BvY":{"uri":"/melonJS/docs/melonjs/World.html#height"},"UNyHky7qHSq5ZAGhAeIWw":{"uri":"/melonJS/docs/melonjs/World.html#inViewport"},"QpbyTOwVANMZsFNNvC-94":{"uri":"/melonJS/docs/melonjs/World.html#isDirty"},"ltHsNeiJBTg-QfIZTihfF":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedX"},"sewXbc41jJatEXIeCUbat":{"uri":"/melonJS/docs/melonjs/World.html#isFlippedY"},"Q3nQdE7q7GIdmKyKGFHEz":{"uri":"/melonJS/docs/melonjs/World.html#isFloating"},"mtEBajHpbjf_y2K1pSa1p":{"uri":"/melonJS/docs/melonjs/World.html#isKinematic"},"KjRPlz5fiDPbC8AVybyvl":{"uri":"/melonJS/docs/melonjs/World.html#isPersistent"},"2Y0rna2XfQDaapH_cWizi":{"uri":"/melonJS/docs/melonjs/World.html#left"},"CyxSmOuaekjp1HBLFQt3u":{"uri":"/melonJS/docs/melonjs/World.html#mask"},"HOAGC0Shm6i642IQ10L0m":{"uri":"/melonJS/docs/melonjs/World.html#name"},"LLmR40OmVFzM7b-kvShSq":{"uri":"/melonJS/docs/melonjs/World.html#onVisibilityChange"},"Of-zTFyt_Gb7u9SiqEWbq":{"uri":"/melonJS/docs/melonjs/World.html#parentApp"},"4N6V9_v5lkwLK6NZYl-a0":{"uri":"/melonJS/docs/melonjs/World.html#physic"},"TveTObCr88QLUgt1tCgY1":{"uri":"/melonJS/docs/melonjs/World.html#points"},"RxcKqFr8iGQIKw8j-4dy0":{"uri":"/melonJS/docs/melonjs/World.html#pos"},"-4ZaSKqjpPZCe3UVSQT-l":{"uri":"/melonJS/docs/melonjs/World.html#preRender"},"oJs0ChILqf2xU08aX3Xv1":{"uri":"/melonJS/docs/melonjs/World.html#right"},"LxB3O4l3YOXbZK49Gt6zF":{"uri":"/melonJS/docs/melonjs/World.html#root"},"F-Jm3A-bp8kfc54_J63G9":{"uri":"/melonJS/docs/melonjs/World.html#shader"},"WjPszLiDFyx42cpamc8j5":{"uri":"/melonJS/docs/melonjs/World.html#sortOn"},"d6w9bJjfRMxesZ11Al9Fk":{"uri":"/melonJS/docs/melonjs/World.html#tint"},"oMViU8wLWRzte6eIZLq1G":{"uri":"/melonJS/docs/melonjs/World.html#top"},"26h_3D9tNkwigndHIA1uu":{"uri":"/melonJS/docs/melonjs/World.html#type"},"mxtgz-sWSdPKJNVs7JL1A":{"uri":"/melonJS/docs/melonjs/World.html#updateWhenPaused"},"y_FE0JTNrwnXt_Sak_wYJ":{"uri":"/melonJS/docs/melonjs/World.html#width"},"Bgnkt6nvcwLKyQpalaWAy":{"uri":"/melonJS/docs/melonjs/World.html#addBody"},"N1iGt3UQ1BdyiggdJ3hSJ":{"uri":"/melonJS/docs/melonjs/World.html#addChild"},"Th4b3erlPyeO-WdBlOHqb":{"uri":"/melonJS/docs/melonjs/World.html#addChildAt"},"J5MjEEuuqX-AxDDDdVPv1":{"uri":"/melonJS/docs/melonjs/World.html#angleTo"},"V3OZzJptwAGb0BieYlpWH":{"uri":"/melonJS/docs/melonjs/World.html#centerOn"},"uRwShwkgIBkj5Xa85ugjm":{"uri":"/melonJS/docs/melonjs/World.html#clone"},"XMLx_OxW8w2Qjhst9coDx":{"uri":"/melonJS/docs/melonjs/World.html#constructor"},"-ET4HPWbMqTtKkOSfJoMT":{"uri":"/melonJS/docs/melonjs/World.html#contains"},"dTcOIYgyxAgwlaoLX6YKV":{"uri":"/melonJS/docs/melonjs/World.html#copy"},"6qFEtl4vjIyOJUxSfJr2M":{"uri":"/melonJS/docs/melonjs/World.html#distanceTo"},"q5RA7w3uJJWWCCemrwCfr":{"uri":"/melonJS/docs/melonjs/World.html#draw"},"Ho4h7IujrZf4eDvkeOs-b":{"uri":"/melonJS/docs/melonjs/World.html#equals"},"ZBq4c56Dn6Nzwwvc9qCYl":{"uri":"/melonJS/docs/melonjs/World.html#flipX"},"6gklCqFWkv50YdaFQDI8P":{"uri":"/melonJS/docs/melonjs/World.html#flipY"},"UpIaxOf-AC4IAnMlANeNX":{"uri":"/melonJS/docs/melonjs/World.html#forEach"},"Evhcb6l9rGlY4uaJiXtKU":{"uri":"/melonJS/docs/melonjs/World.html#getAbsolutePosition"},"8-Wtq-b39hcthntzqbJNr":{"uri":"/melonJS/docs/melonjs/World.html#getBounds"},"lZ9ReUMWAylz2-_gj9Cn7":{"uri":"/melonJS/docs/melonjs/World.html#getChildAt"},"E04_sEaDXHGpLj63zu2Dw":{"uri":"/melonJS/docs/melonjs/World.html#getChildByGUID"},"4PpUt3zLa9lmC91mFEbZG":{"uri":"/melonJS/docs/melonjs/World.html#getChildByName"},"JgYOFkeFm9RAyfu7cr7hs":{"uri":"/melonJS/docs/melonjs/World.html#getChildByProp"},"sgt14q3cyzf9Y_o72b66o":{"uri":"/melonJS/docs/melonjs/World.html#getChildByType"},"Exny3IsWYF5Q8M1rvk8hR":{"uri":"/melonJS/docs/melonjs/World.html#getChildIndex"},"52gvpgw1k7JaFeKh1dGIO":{"uri":"/melonJS/docs/melonjs/World.html#getChildren"},"JrkhB7Ooag1dQcoR9xpL1":{"uri":"/melonJS/docs/melonjs/World.html#getIndices"},"_oZ9FsLByBbhPf0muL7sL":{"uri":"/melonJS/docs/melonjs/World.html#getNextChild"},"k9w3kCYhoU1jydxoocba7":{"uri":"/melonJS/docs/melonjs/World.html#getOpacity"},"LaWdFseNcbpgRiDkUS0cU":{"uri":"/melonJS/docs/melonjs/World.html#getRootAncestor"},"gqJ3giCPGdJEdXwNAl4Uv":{"uri":"/melonJS/docs/melonjs/World.html#hasChild"},"zuP349m-UTUBnqVlU2XTp":{"uri":"/melonJS/docs/melonjs/World.html#isAttachedToRoot"},"KO1ykgc0wLAxc5EerF7a5":{"uri":"/melonJS/docs/melonjs/World.html#isConvex"},"8umZHhsdzRa5JThxe2kzg":{"uri":"/melonJS/docs/melonjs/World.html#isFinite"},"VRq-tWwWzu9zFuxgZJTPl":{"uri":"/melonJS/docs/melonjs/World.html#lookAt"},"C9T0IELmJI_-jtp7TbDj0":{"uri":"/melonJS/docs/melonjs/World.html#moveDown"},"ATCvY2dlI2AZ1HX8pnuIb":{"uri":"/melonJS/docs/melonjs/World.html#moveToBottom"},"x1uiMN4vcQEavApYFD0-Y":{"uri":"/melonJS/docs/melonjs/World.html#moveToTop"},"9MSK8N_zS4tkpDEei0YUr":{"uri":"/melonJS/docs/melonjs/World.html#moveUp"},"0JD9wt77vZIn5Xeq8Xz7Y":{"uri":"/melonJS/docs/melonjs/World.html#onChildChange"},"oMla9JG6uEOVJzbeKPbBG":{"uri":"/melonJS/docs/melonjs/World.html#onCollision"},"nsMjHI2SkF-erHwEQQ7GU":{"uri":"/melonJS/docs/melonjs/World.html#onDestroyEvent"},"Vb1GwGFpnW3gpFhlbwRDE":{"uri":"/melonJS/docs/melonjs/World.html#overlaps"},"sky0-PCGtRDEHD9P5zB9k":{"uri":"/melonJS/docs/melonjs/World.html#postDraw"},"-B9qdnwBshtrx4WpG5-Wb":{"uri":"/melonJS/docs/melonjs/World.html#preDraw"},"Cu1YrKgz_nV-Xr90hVn-c":{"uri":"/melonJS/docs/melonjs/World.html#recalc"},"onG1aKb9kxfgnnUkqA7SX":{"uri":"/melonJS/docs/melonjs/World.html#removeBody"},"j_bz9pwJRxI_ORv-cw5bo":{"uri":"/melonJS/docs/melonjs/World.html#removeChild"},"NlzLG0kWLeCA9JZ342fyC":{"uri":"/melonJS/docs/melonjs/World.html#removeChildNow"},"3OYYHOMz6oK7cdAizagiQ":{"uri":"/melonJS/docs/melonjs/World.html#reset"},"6JEVZ3i5ec4WSPU62CD2d":{"uri":"/melonJS/docs/melonjs/World.html#resize"},"9wCZoNPcZlYuGfNbXWqIH":{"uri":"/melonJS/docs/melonjs/World.html#rotate"},"Xw6YaKesOyQrgu7uipdiR":{"uri":"/melonJS/docs/melonjs/World.html#scale"},"oaaovnelnCjRsZDtdwvm3":{"uri":"/melonJS/docs/melonjs/World.html#scaleV"},"05SPCZOEPrndS09hROqPI":{"uri":"/melonJS/docs/melonjs/World.html#setChildsProperty"},"P_KRV6ksRAeC6tTTQh5-O":{"uri":"/melonJS/docs/melonjs/World.html#setOpacity"},"Huw8K4gTQeOoheBFrB9-M":{"uri":"/melonJS/docs/melonjs/World.html#setShape"},"H3NNuaP4omcl2eZkzeG9T":{"uri":"/melonJS/docs/melonjs/World.html#setVertices"},"NDzuW-IBFzdpomQYduWlN":{"uri":"/melonJS/docs/melonjs/World.html#shift"},"VqzyRKDTHdcIA9MuvACjM":{"uri":"/melonJS/docs/melonjs/World.html#sort"},"K-zVwLTHyF9Xmkqf6ARcz":{"uri":"/melonJS/docs/melonjs/World.html#step"},"WdQUnT6FuDaDPV6w_JxOv":{"uri":"/melonJS/docs/melonjs/World.html#swapChildren"},"pZiEJ9viK05zSBVi9JnqX":{"uri":"/melonJS/docs/melonjs/World.html#to2d"},"A0YRTJszo1dbHEPuYc8_F":{"uri":"/melonJS/docs/melonjs/World.html#toIso"},"8CNCtpUKebH7kFdOnZhbc":{"uri":"/melonJS/docs/melonjs/World.html#toPolygon"},"SNtD_gOL7Ej_7vWJXn6UA":{"uri":"/melonJS/docs/melonjs/World.html#transform"},"JC7WxuGEvl_Dg53vzcxSq":{"uri":"/melonJS/docs/melonjs/World.html#translate"},"t70Up3VccTpGDeDq2MLtG":{"uri":"/melonJS/docs/melonjs/World.html#union"},"pNIZUTQSJIPPlPfKCArbB":{"uri":"/melonJS/docs/melonjs/World.html#update"},"cQzz3RS64s3oYzn8JitKZ":{"uri":"/melonJS/docs/melonjs/World.html#updateBounds"},"lA0zFL6QqJn-UNG989LsQ":{"uri":"/melonJS/docs/melonjs/World.html#bodyApplyGravity"},"jMDsrdc4Ik8GkIUBa9TEG":{"uri":"/melonJS/docs/melonjs/World.html#onAnchorUpdate"},"neBGcPrEd4q_S5Nr4QO9z":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html"},"lt285UOQ4JNl0v9RHZxL0":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#antiAlias"},"cf2VDCvolvsZwSTepQj26":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#canvas"},"XeCavsrmHNbMhxiWNcHSI":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#compositor"},"tI6NMZAlCyli85QTGt-LV":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#consoleHeader"},"lsAA8a2R8R4HrTVgMPV5_":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#depthTest"},"r3QLIo72SIR0buvqGAFm3":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#parent"},"VpY_DJiLGe6-HI_OIP401":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#physic"},"-Ska9y3p2RApHqHOS5MBR":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#powerPreference"},"Ml2GQc_R6e6AlXj3hFznH":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#preferWebGL1"},"mZKsxLMnlsT4SbHMpIUyq":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#renderer"},"79UBmEr2DehvoQGSLRpRe":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#scale"},"Gmu6BP9AQLnVJKXskwY7D":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#scaleMethod"},"u03zESdeaERCUiCkvOnbI":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#scaleTarget"},"-aoNMYFxC-joYSm7sbIa6":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#transparent"},"ptNgk7EiqAQ-mdAvdw2GI":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#zoomX"},"yEsYL-vBDZ21cYm_3c_Nw":{"uri":"/melonJS/docs/melonjs/ApplicationSettings.html#zoomY"},"obD2DjJuPays5_LqfNJ4y":{"uri":"global.html#AUTO"},"gL46jIdt23WWfMKcdLTyo":{"uri":"global.html#CANVAS"},"qIPXiEFOUI7ACg2kvLms1":{"uri":"global.html#version"},"ac6DgULo8WZz3pgdv44ft":{"uri":"global.html#WEBGL"},"t3xudMaJ4_OLtsX0qqzwx":{"uri":"global.html#defaultAttributes"},"pp2DacN1W0Kf1Er01EX-T":{"uri":"global.html#dummyObj"},"FxAdekLKUKz0r3Y-tG-BC":{"uri":"global.html#failureLoadedAssets"},"kvxfMZaAGKFRFOuFb4TIC":{"uri":"global.html#imgList"},"Hm5hhHZCF8MlXICHKJBhL":{"uri":"global.html#initialized"},"j4lRMuVd69Lo-5gpBQI0d":{"uri":"global.html#MIN"},"THZ-BzQZYm2XTvZSjVZQE":{"uri":"global.html#parserInitialized"},"_GxllU3g-DE7hGEvmRbaS":{"uri":"global.html#parsers"},"jxHezKApjLBqPobCMtFnB":{"uri":"global.html#skipAutoInit"},"J54UtD8yo-Wfx8R_CsnEI":{"uri":"global.html#supportedCompressedTextureFormats"},"SFjyao6qZrmok_to0vccb":{"uri":"global.html#V_ARRAY"},"aRdVc-dnwzi8SMCcbQzPa":{"uri":"/melonJS/docs/melonjs/boot.html"},"Ga-_JIApVj21cvBBcPLiw":{"uri":"/melonJS/docs/melonjs/consoleHeader.html"},"vu7y33mkxNtEInFOkk6Km":{"uri":"/melonJS/docs/melonjs/warning.html"},"kEBkiGhmL4xz3eFgQK65Y":{"uri":"/melonJS/docs/melonjs/onresize.html"},"qoMzQnMJC3B-7w1CCwlR2":{"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 d78e95011..78cf8e608 100644 --- a/docs/docs/melonjs.api.json.md5 +++ b/docs/docs/melonjs.api.json.md5 @@ -1 +1 @@ -845db1e88d1452a4cacfe9d8f57ce191 \ No newline at end of file +ed2d6157b40b8a2d86df95e10fb50bdc \ No newline at end of file diff --git a/docs/docs/melonjs.html b/docs/docs/melonjs.html index 71a931323..05ae23b12 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 13ba25024..7222ecb36 100644 --- a/docs/docs/melonjs/Application.html +++ b/docs/docs/melonjs/Application.html @@ -1,5 +1,5 @@ - + @@ -612,7 +612,7 @@

                              Public Properties

                              - application.js:75 + application.js:76 @@ -661,7 +661,7 @@

                              Public Properties

                              - application.js:66 + application.js:67 @@ -713,7 +713,7 @@

                              Public Properties

                              - application.js:58 + application.js:59 @@ -763,7 +763,7 @@

                              Public Properties

                              - application.js:33 + application.js:34 @@ -812,7 +812,7 @@

                              Public Properties

                              - application.js:88 + application.js:89 @@ -866,7 +866,7 @@

                              Public Properties

                              - application.js:39 + application.js:40 @@ -915,7 +915,7 @@

                              Public Properties

                              - application.js:98 + application.js:99 @@ -964,7 +964,7 @@

                              Public Properties

                              - application.js:82 + application.js:83 @@ -1013,7 +1013,7 @@

                              Public Properties

                              - application.js:306 + application.js:307 @@ -1071,7 +1071,7 @@

                              Public Properties

                              - application.js:105 + application.js:106 @@ -1120,7 +1120,7 @@

                              Public Properties

                              - application.js:45 + application.js:46 @@ -1169,7 +1169,7 @@

                              Public Properties

                              - application.js:51 + application.js:52 @@ -1228,7 +1228,7 @@

                              Public Methods

                              - application.js:409 + application.js:410 @@ -1275,7 +1275,7 @@

                              Public Methods

                              - application.js:348 + application.js:349 @@ -1348,7 +1348,7 @@

                              Public Methods

                              - application.js:141 + application.js:142 @@ -1463,7 +1463,7 @@

                              Public Methods

                              - application.js:319 + application.js:320 @@ -1516,7 +1516,7 @@

                              Public Methods

                              - application.js:356 + application.js:357 @@ -1563,7 +1563,7 @@

                              Public Methods

                              - application.js:288 + application.js:289 @@ -1611,7 +1611,7 @@

                              Public Methods

                              - application.js:363 + application.js:364 @@ -1690,7 +1690,7 @@

                              Public Methods

                              - application.js:328 + application.js:329 diff --git a/docs/docs/melonjs/ApplicationSettings.html b/docs/docs/melonjs/ApplicationSettings.html index 637ddfb74..99f8dd51e 100644 --- a/docs/docs/melonjs/ApplicationSettings.html +++ b/docs/docs/melonjs/ApplicationSettings.html @@ -1,5 +1,5 @@ - + @@ -434,7 +434,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -483,7 +483,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -532,7 +532,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -581,7 +581,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -630,7 +630,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -679,7 +679,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -728,7 +728,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -777,7 +777,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -826,7 +826,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -875,7 +875,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -924,7 +924,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -973,7 +973,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -1038,7 +1038,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -1087,7 +1087,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -1136,7 +1136,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 @@ -1185,7 +1185,7 @@

                              Public Properties

                              - settings.js:5 + settings.js:6 diff --git a/docs/docs/melonjs/BitmapText.html b/docs/docs/melonjs/BitmapText.html index 2510091ef..3388dea53 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 972f1c323..3e8481fdc 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 fe5cf66ef..90a5ff12e 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 263c1b097..504c30c35 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 5c980dfb2..9e959774b 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 d5de5e218..f90072cc7 100644 --- a/docs/docs/melonjs/CanvasRenderTarget.html +++ b/docs/docs/melonjs/CanvasRenderTarget.html @@ -1,5 +1,5 @@ - + @@ -562,7 +562,7 @@

                              Public Properties

                              - canvasrendertarget.js:294 + canvasrendertarget.js:295 @@ -611,7 +611,7 @@

                              Public Properties

                              - canvasrendertarget.js:281 + canvasrendertarget.js:282 @@ -669,7 +669,7 @@

                              Public Methods

                              - canvasrendertarget.js:136 + canvasrendertarget.js:137 @@ -716,7 +716,7 @@

                              Public Methods

                              - canvasrendertarget.js:182 + canvasrendertarget.js:183 @@ -858,7 +858,7 @@

                              Public Methods

                              - canvasrendertarget.js:258 + canvasrendertarget.js:259 @@ -938,7 +938,7 @@

                              Public Methods

                              - canvasrendertarget.js:172 + canvasrendertarget.js:173 @@ -1029,7 +1029,7 @@

                              Public Methods

                              - canvasrendertarget.js:144 + canvasrendertarget.js:145 @@ -1114,7 +1114,7 @@

                              Public Methods

                              - canvasrendertarget.js:201 + canvasrendertarget.js:202 @@ -1247,7 +1247,7 @@

                              Public Methods

                              - canvasrendertarget.js:243 + canvasrendertarget.js:244 @@ -1381,7 +1381,7 @@

                              Public Methods

                              - canvasrendertarget.js:221 + canvasrendertarget.js:222 diff --git a/docs/docs/melonjs/CanvasRenderer.html b/docs/docs/melonjs/CanvasRenderer.html index ad949f68f..420a3aca3 100644 --- a/docs/docs/melonjs/CanvasRenderer.html +++ b/docs/docs/melonjs/CanvasRenderer.html @@ -1,5 +1,5 @@ - + @@ -1427,7 +1427,7 @@

                              Public Properties

                              - canvas_renderer.js:698 + canvas_renderer.js:699 @@ -1477,7 +1477,7 @@

                              Public Properties

                              - canvas_renderer.js:681 + canvas_renderer.js:682 @@ -1535,7 +1535,7 @@

                              Public Methods

                              - canvas_renderer.js:254 + canvas_renderer.js:255 @@ -1597,7 +1597,7 @@

                              Public Methods

                              - canvas_renderer.js:116 + canvas_renderer.js:117 @@ -1644,7 +1644,7 @@

                              Public Methods

                              - canvas_renderer.js:127 + canvas_renderer.js:128 @@ -1747,7 +1747,7 @@

                              Public Methods

                              - canvas_renderer.js:894 + canvas_renderer.js:895 @@ -1802,7 +1802,7 @@

                              Public Methods

                              - canvas_renderer.js:145 + canvas_renderer.js:146 @@ -1917,7 +1917,7 @@

                              Public Methods

                              - canvas_renderer.js:775 + canvas_renderer.js:776 @@ -2028,7 +2028,7 @@

                              Public Methods

                              - canvas_renderer.js:338 + canvas_renderer.js:339 @@ -2075,7 +2075,7 @@

                              Public Methods

                              - canvas_renderer.js:156 + canvas_renderer.js:157 @@ -2204,7 +2204,7 @@

                              Public Methods

                              - canvas_renderer.js:172 + canvas_renderer.js:173 @@ -2388,7 +2388,7 @@

                              Public Methods

                              - canvas_renderer.js:233 + canvas_renderer.js:234 @@ -2515,7 +2515,7 @@

                              Public Methods

                              - canvas_renderer.js:330 + canvas_renderer.js:331 @@ -2598,7 +2598,7 @@

                              Public Methods

                              - canvas_renderer.js:370 + canvas_renderer.js:371 @@ -2771,7 +2771,7 @@

                              Public Methods

                              - canvas_renderer.js:422 + canvas_renderer.js:423 @@ -2886,7 +2886,7 @@

                              Public Methods

                              - canvas_renderer.js:454 + canvas_renderer.js:455 @@ -3001,7 +3001,7 @@

                              Public Methods

                              - canvas_renderer.js:574 + canvas_renderer.js:575 @@ -3108,7 +3108,7 @@

                              Public Methods

                              - canvas_renderer.js:495 + canvas_renderer.js:496 @@ -3187,7 +3187,7 @@

                              Public Methods

                              - canvas_renderer.js:521 + canvas_renderer.js:522 @@ -3294,7 +3294,7 @@

                              Public Methods

                              - canvas_renderer.js:553 + canvas_renderer.js:554 @@ -3411,7 +3411,7 @@

                              Public Methods

                              - canvas_renderer.js:673 + canvas_renderer.js:674 @@ -3484,7 +3484,7 @@

                              Public Methods

                              - canvas_renderer.js:283 + canvas_renderer.js:284 @@ -3571,7 +3571,7 @@

                              Public Methods

                              - canvas_renderer.js:274 + canvas_renderer.js:275 @@ -3662,7 +3662,7 @@

                              Public Methods

                              - canvas_renderer.js:290 + canvas_renderer.js:291 @@ -3777,7 +3777,7 @@

                              Public Methods

                              - canvas_renderer.js:62 + canvas_renderer.js:63 @@ -3824,7 +3824,7 @@

                              Public Methods

                              - canvas_renderer.js:70 + canvas_renderer.js:71 @@ -3871,7 +3871,7 @@

                              Public Methods

                              - canvas_renderer.js:585 + canvas_renderer.js:586 @@ -3930,7 +3930,7 @@

                              Public Methods

                              - canvas_renderer.js:625 + canvas_renderer.js:626 @@ -4019,7 +4019,7 @@

                              Public Methods

                              - canvas_renderer.js:301 + canvas_renderer.js:302 @@ -4146,7 +4146,7 @@

                              Public Methods

                              - canvas_renderer.js:608 + canvas_renderer.js:609 @@ -4205,7 +4205,7 @@

                              Public Methods

                              - canvas_renderer.js:641 + canvas_renderer.js:642 @@ -4296,7 +4296,7 @@

                              Public Methods

                              - canvas_renderer.js:77 + canvas_renderer.js:78 @@ -4416,7 +4416,7 @@

                              Public Methods

                              - canvas_renderer.js:650 + canvas_renderer.js:651 @@ -4496,7 +4496,7 @@

                              Public Methods

                              - canvas_renderer.js:665 + canvas_renderer.js:666 @@ -4664,7 +4664,7 @@

                              Public Methods

                              - canvas_renderer.js:807 + canvas_renderer.js:808 @@ -4777,7 +4777,7 @@

                              Public Methods

                              - canvas_renderer.js:717 + canvas_renderer.js:718 @@ -4917,7 +4917,7 @@

                              Public Methods

                              - canvas_renderer.js:313 + canvas_renderer.js:314 @@ -5020,7 +5020,7 @@

                              Public Methods

                              - canvas_renderer.js:346 + canvas_renderer.js:347 @@ -5211,7 +5211,7 @@

                              Public Methods

                              - canvas_renderer.js:383 + canvas_renderer.js:384 @@ -5368,7 +5368,7 @@

                              Public Methods

                              - canvas_renderer.js:433 + canvas_renderer.js:434 @@ -5483,7 +5483,7 @@

                              Public Methods

                              - canvas_renderer.js:565 + canvas_renderer.js:566 @@ -5570,7 +5570,7 @@

                              Public Methods

                              - canvas_renderer.js:465 + canvas_renderer.js:466 @@ -5673,7 +5673,7 @@

                              Public Methods

                              - canvas_renderer.js:503 + canvas_renderer.js:504 @@ -5822,7 +5822,7 @@

                              Public Methods

                              - canvas_renderer.js:532 + canvas_renderer.js:533 @@ -5987,7 +5987,7 @@

                              Public Methods

                              - canvas_renderer.js:732 + canvas_renderer.js:733 @@ -6134,7 +6134,7 @@

                              Public Methods

                              - canvas_renderer.js:762 + canvas_renderer.js:763 diff --git a/docs/docs/melonjs/CanvasTexture.html b/docs/docs/melonjs/CanvasTexture.html index ef8ff8332..a97385246 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 44c20f460..878b25f56 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 5a7ba93de..071e3c772 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 bc93eac64..953c2ba55 100644 --- a/docs/docs/melonjs/ColorLayer.html +++ b/docs/docs/melonjs/ColorLayer.html @@ -1,5 +1,5 @@ - + @@ -1615,7 +1615,7 @@

                              Public Properties

                              - colorlayer.js:26 + colorlayer.js:27 @@ -1673,7 +1673,7 @@

                              Public Methods

                              - colorlayer.js:48 + colorlayer.js:49 diff --git a/docs/docs/melonjs/Compositor.html b/docs/docs/melonjs/Compositor.html index 4644ac502..dc8d7b676 100644 --- a/docs/docs/melonjs/Compositor.html +++ b/docs/docs/melonjs/Compositor.html @@ -1,5 +1,5 @@ - + @@ -562,7 +562,7 @@

                              Public Properties

                              - compositor.js:62 + compositor.js:68 @@ -619,7 +619,7 @@

                              Public Properties

                              - compositor.js:49 + compositor.js:55 @@ -668,7 +668,7 @@

                              Public Properties

                              - compositor.js:43 + compositor.js:49 @@ -717,7 +717,7 @@

                              Public Properties

                              - compositor.js:55 + compositor.js:61 @@ -766,7 +766,7 @@

                              Public Properties

                              - compositor.js:69 + compositor.js:75 @@ -824,7 +824,7 @@

                              Public Properties

                              - compositor.js:85 + compositor.js:91 @@ -873,7 +873,7 @@

                              Public Properties

                              - compositor.js:77 + compositor.js:83 @@ -940,7 +940,7 @@

                              Public Methods

                              - compositor.js:147 + compositor.js:153 @@ -1067,7 +1067,7 @@

                              Public Methods

                              - compositor.js:121 + compositor.js:127 @@ -1114,7 +1114,7 @@

                              Public Methods

                              - compositor.js:200 + compositor.js:206 @@ -1199,7 +1199,7 @@

                              Public Methods

                              - compositor.js:192 + compositor.js:198 @@ -1278,7 +1278,7 @@

                              Public Methods

                              - compositor.js:130 + compositor.js:136 diff --git a/docs/docs/melonjs/Container.html b/docs/docs/melonjs/Container.html index 20e100794..55f1825a8 100644 --- a/docs/docs/melonjs/Container.html +++ b/docs/docs/melonjs/Container.html @@ -1,5 +1,5 @@ - + @@ -2107,7 +2107,7 @@

                              Public Properties

                              - container.js:98 + container.js:99 @@ -2156,7 +2156,7 @@

                              Public Properties

                              - container.js:91 + container.js:92 @@ -2205,7 +2205,7 @@

                              Public Properties

                              - container.js:129 + container.js:130 @@ -2259,7 +2259,7 @@

                              Public Properties

                              - container.js:105 + container.js:106 @@ -2308,7 +2308,7 @@

                              Public Properties

                              - container.js:120 + container.js:121 @@ -2359,7 +2359,7 @@

                              Public Properties

                              - container.js:70 + container.js:71 @@ -2408,7 +2408,7 @@

                              Public Properties

                              - container.js:83 + container.js:84 @@ -2467,7 +2467,7 @@

                              Public Methods

                              - container.js:193 + container.js:194 @@ -2600,7 +2600,7 @@

                              Public Methods

                              - container.js:282 + container.js:283 @@ -2718,7 +2718,7 @@

                              Public Methods

                              - container.js:945 + container.js:946 @@ -2817,7 +2817,7 @@

                              Public Methods

                              - container.js:356 + container.js:357 @@ -2931,7 +2931,7 @@

                              Public Methods

                              - container.js:419 + container.js:420 @@ -3036,7 +3036,7 @@

                              Public Methods

                              - container.js:546 + container.js:547 @@ -3143,7 +3143,7 @@

                              Public Methods

                              - container.js:534 + container.js:535 @@ -3251,7 +3251,7 @@

                              Public Methods

                              - container.js:464 + container.js:465 @@ -3386,7 +3386,7 @@

                              Public Methods

                              - container.js:514 + container.js:515 @@ -3491,7 +3491,7 @@

                              Public Methods

                              - container.js:433 + container.js:434 @@ -3596,7 +3596,7 @@

                              Public Methods

                              - container.js:558 + container.js:559 @@ -3669,7 +3669,7 @@

                              Public Methods

                              - container.js:442 + container.js:443 @@ -3774,7 +3774,7 @@

                              Public Methods

                              - container.js:613 + container.js:614 @@ -3847,7 +3847,7 @@

                              Public Methods

                              - container.js:455 + container.js:456 @@ -3949,7 +3949,7 @@

                              Public Methods

                              - container.js:594 + container.js:595 @@ -4022,7 +4022,7 @@

                              Public Methods

                              - container.js:756 + container.js:757 @@ -4101,7 +4101,7 @@

                              Public Methods

                              - container.js:787 + container.js:788 @@ -4180,7 +4180,7 @@

                              Public Methods

                              - container.js:770 + container.js:771 @@ -4259,7 +4259,7 @@

                              Public Methods

                              - container.js:742 + container.js:743 @@ -4338,7 +4338,7 @@

                              Public Methods

                              - container.js:112 + container.js:113 @@ -4417,7 +4417,7 @@

                              Public Methods

                              - container.js:662 + container.js:663 @@ -4521,7 +4521,7 @@

                              Public Methods

                              - container.js:677 + container.js:678 @@ -4626,7 +4626,7 @@

                              Public Methods

                              - container.js:166 + container.js:167 @@ -4673,7 +4673,7 @@

                              Public Methods

                              - container.js:727 + container.js:728 @@ -4794,7 +4794,7 @@

                              Public Methods

                              - container.js:804 + container.js:805 @@ -4879,7 +4879,7 @@

                              Public Methods

                              - container.js:394 + container.js:395 @@ -4970,7 +4970,7 @@

                              Public Methods

                              - container.js:569 + container.js:570 @@ -5089,7 +5089,7 @@

                              Protected Methods

                              - container.js:894 + container.js:895 diff --git a/docs/docs/melonjs/Detector.html b/docs/docs/melonjs/Detector.html index 3acb2e00b..ea9ba134e 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 fb0c230b1..c5a604ab0 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 4d1bc2aa7..81465ed4e 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 dcd6cf2af..377ed7d94 100644 --- a/docs/docs/melonjs/DropTarget.html +++ b/docs/docs/melonjs/DropTarget.html @@ -1,5 +1,5 @@ - + @@ -1691,7 +1691,7 @@

                              Public Properties

                              - dragndrop.js:46 + dragndrop.js:47 @@ -1740,7 +1740,7 @@

                              Public Properties

                              - dragndrop.js:36 + dragndrop.js:37 @@ -1789,7 +1789,7 @@

                              Public Properties

                              - dragndrop.js:26 + dragndrop.js:27 @@ -1847,7 +1847,7 @@

                              Public Methods

                              - dragndrop.js:75 + dragndrop.js:76 @@ -1938,7 +1938,7 @@

                              Public Methods

                              - dragndrop.js:89 + dragndrop.js:90 @@ -2017,7 +2017,7 @@

                              Public Methods

                              - dragndrop.js:61 + dragndrop.js:62 diff --git a/docs/docs/melonjs/DroptargetEntity.html b/docs/docs/melonjs/DroptargetEntity.html index 2a7e76710..38e9eefb4 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 9c2a80160..b2c8177b4 100644 --- a/docs/docs/melonjs/Ellipse.html +++ b/docs/docs/melonjs/Ellipse.html @@ -1,5 +1,5 @@ - + @@ -534,7 +534,7 @@

                              Public Properties

                              - ellipse.js:22 + ellipse.js:23 @@ -583,7 +583,7 @@

                              Public Properties

                              - ellipse.js:35 + ellipse.js:36 @@ -632,7 +632,7 @@

                              Public Properties

                              - ellipse.js:49 + ellipse.js:50 @@ -681,7 +681,7 @@

                              Public Properties

                              - ellipse.js:42 + ellipse.js:43 @@ -730,7 +730,7 @@

                              Public Properties

                              - ellipse.js:56 + ellipse.js:57 @@ -779,7 +779,7 @@

                              Public Properties

                              - ellipse.js:63 + ellipse.js:64 @@ -837,7 +837,7 @@

                              Public Methods

                              - ellipse.js:231 + ellipse.js:232 @@ -910,7 +910,7 @@

                              Public Methods

                              - ellipse.js:185 + ellipse.js:186 @@ -1045,7 +1045,7 @@

                              Public Methods

                              - ellipse.js:220 + ellipse.js:221 @@ -1118,7 +1118,7 @@

                              Public Methods

                              - ellipse.js:106 + ellipse.js:107 @@ -1243,7 +1243,7 @@

                              Public Methods

                              - ellipse.js:121 + ellipse.js:122 @@ -1372,7 +1372,7 @@

                              Public Methods

                              - ellipse.js:136 + ellipse.js:137 @@ -1475,7 +1475,7 @@

                              Public Methods

                              - ellipse.js:77 + ellipse.js:78 @@ -1616,7 +1616,7 @@

                              Public Methods

                              - ellipse.js:145 + ellipse.js:146 @@ -1721,7 +1721,7 @@

                              Public Methods

                              - ellipse.js:155 + ellipse.js:156 diff --git a/docs/docs/melonjs/Entity.html b/docs/docs/melonjs/Entity.html index eecbec101..d7c94bce7 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 01bd0cee4..4f05e24de 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 d12ea77ea..a623ac21e 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 4286e91f6..d3c1708ee 100644 --- a/docs/docs/melonjs/ImageLayer.html +++ b/docs/docs/melonjs/ImageLayer.html @@ -1,5 +1,5 @@ - + @@ -2038,7 +2038,7 @@

                              Public Properties

                              - imagelayer.js:45 + imagelayer.js:46 @@ -2094,7 +2094,7 @@

                              Public Properties

                              - imagelayer.js:84 + imagelayer.js:85 @@ -2160,7 +2160,7 @@

                              Public Methods

                              - imagelayer.js:139 + imagelayer.js:140 @@ -2259,7 +2259,7 @@

                              Protected Methods

                              - imagelayer.js:231 + imagelayer.js:232 diff --git a/docs/docs/melonjs/Light2d.html b/docs/docs/melonjs/Light2d.html index f666e58f0..5d2eae2a7 100644 --- a/docs/docs/melonjs/Light2d.html +++ b/docs/docs/melonjs/Light2d.html @@ -1,5 +1,5 @@ - + @@ -1744,7 +1744,7 @@

                              Public Properties

                              - light2d.js:99 + light2d.js:100 @@ -1807,7 +1807,7 @@

                              Public Properties

                              - light2d.js:73 + light2d.js:74 @@ -1856,7 +1856,7 @@

                              Public Properties

                              - light2d.js:92 + light2d.js:93 @@ -1905,7 +1905,7 @@

                              Public Properties

                              - light2d.js:80 + light2d.js:81 @@ -1954,7 +1954,7 @@

                              Public Properties

                              - light2d.js:86 + light2d.js:87 @@ -2012,7 +2012,7 @@

                              Public Methods

                              - light2d.js:138 + light2d.js:139 @@ -2111,7 +2111,7 @@

                              Public Methods

                              - light2d.js:119 + light2d.js:120 @@ -2184,7 +2184,7 @@

                              Public Methods

                              - light2d.js:129 + light2d.js:130 diff --git a/docs/docs/melonjs/Line.html b/docs/docs/melonjs/Line.html index a2a1275d1..9a0110965 100644 --- a/docs/docs/melonjs/Line.html +++ b/docs/docs/melonjs/Line.html @@ -1,5 +1,5 @@ - + @@ -622,7 +622,7 @@

                              Public Methods

                              - line.js:91 + line.js:92 @@ -695,7 +695,7 @@

                              Public Methods

                              - line.js:19 + line.js:20 @@ -830,7 +830,7 @@

                              Public Methods

                              - line.js:57 + line.js:58 diff --git a/docs/docs/melonjs/Math.html b/docs/docs/melonjs/Math.html index f716525f2..52b6bed47 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 22a70083b..0825e83b4 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 b78a12f49..a867c6cdd 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 b1f56e09f..66cd4e7f5 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 5653f8f72..9ebd74c3f 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 29c97d0bf..a40da8784 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 c09a1608d..ead43dcc5 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 8d04fe3c3..cf06d1a8d 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 07bac56ed..57bf20e53 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 fe2904097..a176976c9 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 20613522d..4388c5bc5 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 9775b15e8..4d33866c8 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 aa83aaddd..8ace6f744 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 d52a119d4..9a665fdb2 100644 --- a/docs/docs/melonjs/Matrix2d.html +++ b/docs/docs/melonjs/Matrix2d.html @@ -1,5 +1,5 @@ - + @@ -628,7 +628,7 @@

                              Public Properties

                              - matrix2.js:53 + matrix2.js:54 @@ -685,7 +685,7 @@

                              Public Properties

                              - matrix2.js:62 + matrix2.js:63 @@ -751,7 +751,7 @@

                              Public Methods

                              - matrix2.js:274 + matrix2.js:275 @@ -856,7 +856,7 @@

                              Public Methods

                              - matrix2.js:295 + matrix2.js:296 @@ -961,7 +961,7 @@

                              Public Methods

                              - matrix2.js:456 + matrix2.js:457 @@ -1031,7 +1031,7 @@

                              Public Methods

                              - matrix2.js:161 + matrix2.js:162 @@ -1136,7 +1136,7 @@

                              Public Methods

                              - matrix2.js:434 + matrix2.js:435 @@ -1241,7 +1241,7 @@

                              Public Methods

                              - matrix2.js:171 + matrix2.js:172 @@ -1346,7 +1346,7 @@

                              Public Methods

                              - matrix2.js:71 + matrix2.js:72 @@ -1421,7 +1421,7 @@

                              Public Methods

                              - matrix2.js:242 + matrix2.js:243 @@ -1494,7 +1494,7 @@

                              Public Methods

                              - matrix2.js:414 + matrix2.js:415 @@ -1564,7 +1564,7 @@

                              Public Methods

                              - matrix2.js:193 + matrix2.js:194 @@ -1669,7 +1669,7 @@

                              Public Methods

                              - matrix2.js:360 + matrix2.js:361 @@ -1774,7 +1774,7 @@

                              Public Methods

                              - matrix2.js:313 + matrix2.js:314 @@ -1903,7 +1903,7 @@

                              Public Methods

                              - matrix2.js:333 + matrix2.js:334 @@ -2008,7 +2008,7 @@

                              Public Methods

                              - matrix2.js:342 + matrix2.js:343 @@ -2113,7 +2113,7 @@

                              Public Methods

                              - matrix2.js:351 + matrix2.js:352 @@ -2218,7 +2218,7 @@

                              Public Methods

                              - matrix2.js:86 + matrix2.js:87 @@ -2455,7 +2455,7 @@

                              Public Methods

                              - matrix2.js:464 + matrix2.js:465 @@ -2525,7 +2525,7 @@

                              Public Methods

                              - matrix2.js:472 + matrix2.js:473 @@ -2595,7 +2595,7 @@

                              Public Methods

                              - matrix2.js:127 + matrix2.js:128 @@ -2748,7 +2748,7 @@

                              Public Methods

                              - matrix2.js:388 + matrix2.js:389 @@ -2873,7 +2873,7 @@

                              Public Methods

                              - matrix2.js:222 + matrix2.js:223 diff --git a/docs/docs/melonjs/Matrix3d.html b/docs/docs/melonjs/Matrix3d.html index 791b4419e..8abe635f5 100644 --- a/docs/docs/melonjs/Matrix3d.html +++ b/docs/docs/melonjs/Matrix3d.html @@ -1,5 +1,5 @@ - + @@ -642,7 +642,7 @@

                              Public Properties

                              - matrix3.js:45 + matrix3.js:46 @@ -691,7 +691,7 @@

                              Public Properties

                              - matrix3.js:53 + matrix3.js:54 @@ -740,7 +740,7 @@

                              Public Properties

                              - matrix3.js:61 + matrix3.js:62 @@ -798,7 +798,7 @@

                              Public Methods

                              - matrix3.js:292 + matrix3.js:293 @@ -903,7 +903,7 @@

                              Public Methods

                              - matrix3.js:315 + matrix3.js:316 @@ -1008,7 +1008,7 @@

                              Public Methods

                              - matrix3.js:588 + matrix3.js:589 @@ -1078,7 +1078,7 @@

                              Public Methods

                              - matrix3.js:127 + matrix3.js:128 @@ -1183,7 +1183,7 @@

                              Public Methods

                              - matrix3.js:559 + matrix3.js:560 @@ -1288,7 +1288,7 @@

                              Public Methods

                              - matrix3.js:137 + matrix3.js:138 @@ -1393,7 +1393,7 @@

                              Public Methods

                              - matrix3.js:69 + matrix3.js:70 @@ -1468,7 +1468,7 @@

                              Public Methods

                              - matrix3.js:235 + matrix3.js:236 @@ -1541,7 +1541,7 @@

                              Public Methods

                              - matrix3.js:532 + matrix3.js:533 @@ -1611,7 +1611,7 @@

                              Public Methods

                              - matrix3.js:153 + matrix3.js:154 @@ -1716,7 +1716,7 @@

                              Public Methods

                              - matrix3.js:332 + matrix3.js:333 @@ -1882,7 +1882,7 @@

                              Public Methods

                              - matrix3.js:424 + matrix3.js:425 @@ -1999,7 +1999,7 @@

                              Public Methods

                              - matrix3.js:369 + matrix3.js:370 @@ -2146,7 +2146,7 @@

                              Public Methods

                              - matrix3.js:397 + matrix3.js:398 @@ -2251,7 +2251,7 @@

                              Public Methods

                              - matrix3.js:406 + matrix3.js:407 @@ -2356,7 +2356,7 @@

                              Public Methods

                              - matrix3.js:415 + matrix3.js:416 @@ -2461,7 +2461,7 @@

                              Public Methods

                              - matrix3.js:84 + matrix3.js:85 @@ -2714,7 +2714,7 @@

                              Public Methods

                              - matrix3.js:596 + matrix3.js:597 @@ -2784,7 +2784,7 @@

                              Public Methods

                              - matrix3.js:604 + matrix3.js:605 @@ -2854,7 +2854,7 @@

                              Public Methods

                              - matrix3.js:501 + matrix3.js:502 @@ -3001,7 +3001,7 @@

                              Public Methods

                              - matrix3.js:206 + matrix3.js:207 diff --git a/docs/docs/melonjs/NineSliceSprite.html b/docs/docs/melonjs/NineSliceSprite.html index 8c4e8e515..f4cc46c25 100644 --- a/docs/docs/melonjs/NineSliceSprite.html +++ b/docs/docs/melonjs/NineSliceSprite.html @@ -1,5 +1,5 @@ - + @@ -2128,7 +2128,7 @@

                              Public Properties

                              - nineslicesprite.js:74 + nineslicesprite.js:75 @@ -2177,7 +2177,7 @@

                              Public Properties

                              - nineslicesprite.js:63 + nineslicesprite.js:64 diff --git a/docs/docs/melonjs/ObjectPool.html b/docs/docs/melonjs/ObjectPool.html index a818e376b..dcb5c687a 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 796ed2d6e..bfd192ba8 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 78a51eb65..eb811c718 100644 --- a/docs/docs/melonjs/ObservableVector3d.html +++ b/docs/docs/melonjs/ObservableVector3d.html @@ -1,5 +1,5 @@ - + @@ -1078,7 +1078,7 @@

                              Public Properties

                              - observable_vector3.js:46 + observable_vector3.js:47 @@ -1127,7 +1127,7 @@

                              Public Properties

                              - observable_vector3.js:67 + observable_vector3.js:68 @@ -1176,7 +1176,7 @@

                              Public Properties

                              - observable_vector3.js:89 + observable_vector3.js:90 @@ -1234,7 +1234,7 @@

                              Public Methods

                              - observable_vector3.js:220 + observable_vector3.js:221 @@ -1307,7 +1307,7 @@

                              Public Methods

                              - observable_vector3.js:163 + observable_vector3.js:164 @@ -1410,7 +1410,7 @@

                              Public Methods

                              - observable_vector3.js:324 + observable_vector3.js:325 @@ -1483,7 +1483,7 @@

                              Public Methods

                              - observable_vector3.js:339 + observable_vector3.js:340 @@ -1556,7 +1556,7 @@

                              Public Methods

                              - observable_vector3.js:234 + observable_vector3.js:235 @@ -1669,7 +1669,7 @@

                              Public Methods

                              - observable_vector3.js:251 + observable_vector3.js:252 @@ -1782,7 +1782,7 @@

                              Public Methods

                              - observable_vector3.js:520 + observable_vector3.js:521 @@ -1855,7 +1855,7 @@

                              Public Methods

                              - observable_vector3.js:374 + observable_vector3.js:375 @@ -1958,7 +1958,7 @@

                              Public Methods

                              - observable_vector3.js:445 + observable_vector3.js:446 @@ -2061,7 +2061,7 @@

                              Public Methods

                              - observable_vector3.js:506 + observable_vector3.js:507 @@ -2161,7 +2161,7 @@

                              Public Methods

                              - observable_vector3.js:209 + observable_vector3.js:210 @@ -2266,7 +2266,7 @@

                              Public Methods

                              - observable_vector3.js:434 + observable_vector3.js:435 @@ -2369,7 +2369,7 @@

                              Public Methods

                              - observable_vector3.js:385 + observable_vector3.js:386 @@ -2469,7 +2469,7 @@

                              Public Methods

                              - observable_vector3.js:299 + observable_vector3.js:300 @@ -2542,7 +2542,7 @@

                              Public Methods

                              - observable_vector3.js:314 + observable_vector3.js:315 @@ -2615,7 +2615,7 @@

                              Public Methods

                              - observable_vector3.js:463 + observable_vector3.js:464 @@ -2730,7 +2730,7 @@

                              Public Methods

                              - observable_vector3.js:283 + observable_vector3.js:284 @@ -2833,7 +2833,7 @@

                              Public Methods

                              - observable_vector3.js:267 + observable_vector3.js:268 @@ -2936,7 +2936,7 @@

                              Public Methods

                              - observable_vector3.js:479 + observable_vector3.js:480 @@ -3051,7 +3051,7 @@

                              Public Methods

                              - observable_vector3.js:349 + observable_vector3.js:350 @@ -3124,7 +3124,7 @@

                              Public Methods

                              - observable_vector3.js:364 + observable_vector3.js:365 @@ -3197,7 +3197,7 @@

                              Public Methods

                              - observable_vector3.js:396 + observable_vector3.js:397 @@ -3271,7 +3271,7 @@

                              Public Methods

                              - observable_vector3.js:407 + observable_vector3.js:408 @@ -3396,7 +3396,7 @@

                              Public Methods

                              - observable_vector3.js:185 + observable_vector3.js:186 @@ -3537,7 +3537,7 @@

                              Public Methods

                              - observable_vector3.js:198 + observable_vector3.js:199 @@ -3640,7 +3640,7 @@

                              Public Methods

                              - observable_vector3.js:144 + observable_vector3.js:145 @@ -3769,7 +3769,7 @@

                              Public Methods

                              - observable_vector3.js:128 + observable_vector3.js:129 @@ -3916,7 +3916,7 @@

                              Public Methods

                              - observable_vector3.js:174 + observable_vector3.js:175 @@ -4019,7 +4019,7 @@

                              Public Methods

                              - observable_vector3.js:545 + observable_vector3.js:546 @@ -4089,7 +4089,7 @@

                              Public Methods

                              - observable_vector3.js:535 + observable_vector3.js:536 diff --git a/docs/docs/melonjs/Particle.html b/docs/docs/melonjs/Particle.html index 414fd5ea2..9d4a36e62 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 bfd9f27a5..4a9bb2a86 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 23462b7d1..f02d4449a 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 d8bf79955..f22d81af8 100644 --- a/docs/docs/melonjs/Path2D.html +++ b/docs/docs/melonjs/Path2D.html @@ -1,5 +1,5 @@ - + @@ -413,7 +413,7 @@

                              Public Properties

                              - path2d.js:22 + path2d.js:23 @@ -462,7 +462,7 @@

                              Public Properties

                              - path2d.js:16 + path2d.js:17 @@ -520,7 +520,7 @@

                              Public Methods

                              - path2d.js:202 + path2d.js:203 @@ -696,7 +696,7 @@

                              Public Methods

                              - path2d.js:255 + path2d.js:256 @@ -823,7 +823,7 @@

                              Public Methods

                              - path2d.js:106 + path2d.js:107 @@ -870,7 +870,7 @@

                              Public Methods

                              - path2d.js:389 + path2d.js:390 @@ -1009,7 +1009,7 @@

                              Public Methods

                              - path2d.js:119 + path2d.js:120 @@ -1058,7 +1058,7 @@

                              Public Methods

                              - path2d.js:302 + path2d.js:303 @@ -1270,7 +1270,7 @@

                              Public Methods

                              - path2d.js:179 + path2d.js:180 @@ -1361,7 +1361,7 @@

                              Public Methods

                              - path2d.js:169 + path2d.js:170 @@ -1452,7 +1452,7 @@

                              Public Methods

                              - path2d.js:43 + path2d.js:44 @@ -1531,7 +1531,7 @@

                              Public Methods

                              - path2d.js:363 + path2d.js:364 @@ -1646,7 +1646,7 @@

                              Public Methods

                              - path2d.js:419 + path2d.js:420 @@ -1761,7 +1761,7 @@

                              Public Methods

                              - path2d.js:442 + path2d.js:443 @@ -1888,7 +1888,7 @@

                              Public Methods

                              - path2d.js:135 + path2d.js:136 diff --git a/docs/docs/melonjs/Point.html b/docs/docs/melonjs/Point.html index 3e818ac98..3af3e1cc8 100644 --- a/docs/docs/melonjs/Point.html +++ b/docs/docs/melonjs/Point.html @@ -1,5 +1,5 @@ - + @@ -291,7 +291,7 @@

                              Public Properties

                              - point.js:25 + point.js:26 @@ -340,7 +340,7 @@

                              Public Properties

                              - point.js:11 + point.js:12 @@ -389,7 +389,7 @@

                              Public Properties

                              - point.js:18 + point.js:19 @@ -447,7 +447,7 @@

                              Public Methods

                              - point.js:68 + point.js:69 @@ -520,7 +520,7 @@

                              Public Methods

                              - point.js:50 + point.js:51 @@ -638,7 +638,7 @@

                              Public Methods

                              - point.js:38 + point.js:39 diff --git a/docs/docs/melonjs/Pointer.html b/docs/docs/melonjs/Pointer.html index 26f3659c3..689573348 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 605fa5bd3..46d0b4870 100644 --- a/docs/docs/melonjs/Polygon.html +++ b/docs/docs/melonjs/Polygon.html @@ -1,5 +1,5 @@ - + @@ -623,7 +623,7 @@

                              Public Properties

                              - poly.js:30 + poly.js:34 @@ -673,7 +673,7 @@

                              Public Properties

                              - poly.js:24 + poly.js:28 @@ -722,7 +722,7 @@

                              Public Properties

                              - poly.js:62 + poly.js:66 @@ -780,7 +780,7 @@

                              Public Methods

                              - poly.js:417 + poly.js:421 @@ -853,7 +853,7 @@

                              Public Methods

                              - poly.js:358 + poly.js:362 @@ -990,7 +990,7 @@

                              Public Methods

                              - poly.js:393 + poly.js:397 @@ -1063,7 +1063,7 @@

                              Public Methods

                              - poly.js:252 + poly.js:256 @@ -1136,7 +1136,7 @@

                              Public Methods

                              - poly.js:263 + poly.js:267 @@ -1209,7 +1209,7 @@

                              Public Methods

                              - poly.js:201 + poly.js:205 @@ -1283,7 +1283,7 @@

                              Public Methods

                              - poly.js:156 + poly.js:160 @@ -1408,7 +1408,7 @@

                              Public Methods

                              - poly.js:175 + poly.js:179 @@ -1533,7 +1533,7 @@

                              Public Methods

                              - poly.js:192 + poly.js:196 @@ -1636,7 +1636,7 @@

                              Public Methods

                              - poly.js:76 + poly.js:80 @@ -1765,7 +1765,7 @@

                              Public Methods

                              - poly.js:89 + poly.js:93 @@ -1870,7 +1870,7 @@

                              Public Methods

                              - poly.js:333 + poly.js:337 @@ -1973,7 +1973,7 @@

                              Public Methods

                              - poly.js:148 + poly.js:152 @@ -2046,7 +2046,7 @@

                              Public Methods

                              - poly.js:140 + poly.js:144 @@ -2119,7 +2119,7 @@

                              Public Methods

                              - poly.js:124 + poly.js:128 @@ -2224,7 +2224,7 @@

                              Public Methods

                              - poly.js:303 + poly.js:307 @@ -2355,7 +2355,7 @@

                              Public Methods

                              - poly.js:404 + poly.js:408 diff --git a/docs/docs/melonjs/PrimitiveCompositor.html b/docs/docs/melonjs/PrimitiveCompositor.html index 335a3f2e9..6be47103f 100644 --- a/docs/docs/melonjs/PrimitiveCompositor.html +++ b/docs/docs/melonjs/PrimitiveCompositor.html @@ -1,5 +1,5 @@ - + @@ -447,7 +447,7 @@

                              Public Methods

                              - primitive_compositor.js:29 + primitive_compositor.js:34 diff --git a/docs/docs/melonjs/QuadCompositor.html b/docs/docs/melonjs/QuadCompositor.html index efb46f095..58cdc0490 100644 --- a/docs/docs/melonjs/QuadCompositor.html +++ b/docs/docs/melonjs/QuadCompositor.html @@ -1,5 +1,5 @@ - + @@ -523,7 +523,7 @@

                              Public Methods

                              - quad_compositor.js:196 + quad_compositor.js:201 @@ -744,7 +744,7 @@

                              Public Methods

                              - quad_compositor.js:128 + quad_compositor.js:133 @@ -835,7 +835,7 @@

                              Public Methods

                              - quad_compositor.js:61 + quad_compositor.js:66 @@ -1072,7 +1072,7 @@

                              Public Methods

                              - quad_compositor.js:110 + quad_compositor.js:115 @@ -1155,7 +1155,7 @@

                              Public Methods

                              - quad_compositor.js:119 + quad_compositor.js:124 @@ -1260,7 +1260,7 @@

                              Public Methods

                              - quad_compositor.js:153 + quad_compositor.js:158 diff --git a/docs/docs/melonjs/QuadTree.html b/docs/docs/melonjs/QuadTree.html index a47427cd0..5d838a1dc 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 0f5ee1cde..3177a25b3 100644 --- a/docs/docs/melonjs/Rect.html +++ b/docs/docs/melonjs/Rect.html @@ -1,5 +1,5 @@ - + @@ -905,7 +905,7 @@

                              Public Properties

                              - rectangle.js:93 + rectangle.js:94 @@ -954,7 +954,7 @@

                              Public Properties

                              - rectangle.js:128 + rectangle.js:129 @@ -1003,7 +1003,7 @@

                              Public Properties

                              - rectangle.js:145 + rectangle.js:146 @@ -1052,7 +1052,7 @@

                              Public Properties

                              - rectangle.js:115 + rectangle.js:116 @@ -1101,7 +1101,7 @@

                              Public Properties

                              - rectangle.js:68 + rectangle.js:69 @@ -1150,7 +1150,7 @@

                              Public Properties

                              - rectangle.js:76 + rectangle.js:77 @@ -1199,7 +1199,7 @@

                              Public Properties

                              - rectangle.js:85 + rectangle.js:86 @@ -1248,7 +1248,7 @@

                              Public Properties

                              - rectangle.js:29 + rectangle.js:30 @@ -1297,7 +1297,7 @@

                              Public Properties

                              - rectangle.js:102 + rectangle.js:103 @@ -1355,7 +1355,7 @@

                              Public Methods

                              - rectangle.js:162 + rectangle.js:163 @@ -1472,7 +1472,7 @@

                              Public Methods

                              - rectangle.js:198 + rectangle.js:199 @@ -1545,7 +1545,7 @@

                              Public Methods

                              - rectangle.js:248 + rectangle.js:249 @@ -1683,7 +1683,7 @@

                              Public Methods

                              - rectangle.js:206 + rectangle.js:207 @@ -1788,7 +1788,7 @@

                              Public Methods

                              - rectangle.js:294 + rectangle.js:295 @@ -1891,7 +1891,7 @@

                              Public Methods

                              - rectangle.js:308 + rectangle.js:309 @@ -1964,7 +1964,7 @@

                              Public Methods

                              - rectangle.js:234 + rectangle.js:235 @@ -2067,7 +2067,7 @@

                              Public Methods

                              - rectangle.js:174 + rectangle.js:175 @@ -2184,7 +2184,7 @@

                              Public Methods

                              - rectangle.js:186 + rectangle.js:187 @@ -2313,7 +2313,7 @@

                              Public Methods

                              - rectangle.js:42 + rectangle.js:43 @@ -2470,7 +2470,7 @@

                              Public Methods

                              - rectangle.js:316 + rectangle.js:317 @@ -2543,7 +2543,7 @@

                              Public Methods

                              - rectangle.js:215 + rectangle.js:216 diff --git a/docs/docs/melonjs/Renderable.html b/docs/docs/melonjs/Renderable.html index d4e03f846..aa8ab9b92 100644 --- a/docs/docs/melonjs/Renderable.html +++ b/docs/docs/melonjs/Renderable.html @@ -1,5 +1,5 @@ - + @@ -1556,7 +1556,7 @@

                              Public Properties

                              - renderable.js:190 + renderable.js:191 @@ -1620,7 +1620,7 @@

                              Public Properties

                              - renderable.js:142 + renderable.js:143 @@ -1669,7 +1669,7 @@

                              Public Properties

                              - renderable.js:200 + renderable.js:201 @@ -1718,7 +1718,7 @@

                              Public Properties

                              - renderable.js:60 + renderable.js:61 @@ -1773,7 +1773,7 @@

                              Public Properties

                              - renderable.js:171 + renderable.js:172 @@ -1836,7 +1836,7 @@

                              Public Properties

                              - renderable.js:237 + renderable.js:238 @@ -1899,7 +1899,7 @@

                              Public Properties

                              - renderable.js:83 + renderable.js:84 @@ -1982,7 +1982,7 @@

                              Public Properties

                              - renderable.js:75 + renderable.js:76 @@ -2031,7 +2031,7 @@

                              Public Properties

                              - renderable.js:333 + renderable.js:334 @@ -2080,7 +2080,7 @@

                              Public Properties

                              - renderable.js:163 + renderable.js:164 @@ -2130,7 +2130,7 @@

                              Public Properties

                              - renderable.js:121 + renderable.js:122 @@ -2181,7 +2181,7 @@

                              Public Properties

                              - renderable.js:345 + renderable.js:346 @@ -2230,7 +2230,7 @@

                              Public Properties

                              - renderable.js:266 + renderable.js:267 @@ -2279,7 +2279,7 @@

                              Public Properties

                              - renderable.js:362 + renderable.js:363 @@ -2336,7 +2336,7 @@

                              Public Properties

                              - renderable.js:372 + renderable.js:373 @@ -2393,7 +2393,7 @@

                              Public Properties

                              - renderable.js:306 + renderable.js:307 @@ -2450,7 +2450,7 @@

                              Public Properties

                              - renderable.js:259 + renderable.js:260 @@ -2499,7 +2499,7 @@

                              Public Properties

                              - renderable.js:156 + renderable.js:157 @@ -2548,7 +2548,7 @@

                              Public Properties

                              - renderable.js:207 + renderable.js:208 @@ -2615,7 +2615,7 @@

                              Public Properties

                              - renderable.js:246 + renderable.js:247 @@ -2664,7 +2664,7 @@

                              Public Properties

                              - renderable.js:129 + renderable.js:130 @@ -2721,7 +2721,7 @@

                              Public Properties

                              - renderable.js:292 + renderable.js:293 @@ -2794,7 +2794,7 @@

                              Public Properties

                              - renderable.js:49 + renderable.js:50 @@ -2843,7 +2843,7 @@

                              Public Properties

                              - renderable.js:230 + renderable.js:231 @@ -2892,7 +2892,7 @@

                              Public Properties

                              - renderable.js:315 + renderable.js:316 @@ -2948,7 +2948,7 @@

                              Public Properties

                              - renderable.js:149 + renderable.js:150 @@ -3006,7 +3006,7 @@

                              Public Methods

                              - renderable.js:460 + renderable.js:461 @@ -3109,7 +3109,7 @@

                              Public Methods

                              - renderable.js:481 + renderable.js:482 @@ -3212,7 +3212,7 @@

                              Public Methods

                              - renderable.js:726 + renderable.js:727 @@ -3331,7 +3331,7 @@

                              Public Methods

                              - renderable.js:423 + renderable.js:424 @@ -3450,7 +3450,7 @@

                              Public Methods

                              - renderable.js:435 + renderable.js:436 @@ -3569,7 +3569,7 @@

                              Public Methods

                              - renderable.js:637 + renderable.js:638 @@ -3639,7 +3639,7 @@

                              Public Methods

                              - renderable.js:382 + renderable.js:383 @@ -3712,7 +3712,7 @@

                              Public Methods

                              - renderable.js:400 + renderable.js:401 @@ -3785,7 +3785,7 @@

                              Public Methods

                              - renderable.js:502 + renderable.js:503 @@ -3890,7 +3890,7 @@

                              Public Methods

                              - renderable.js:771 + renderable.js:772 @@ -4023,7 +4023,7 @@

                              Public Methods

                              - renderable.js:860 + renderable.js:861 @@ -4071,7 +4071,7 @@

                              Public Methods

                              - renderable.js:743 + renderable.js:744 @@ -4164,7 +4164,7 @@

                              Public Methods

                              - renderable.js:668 + renderable.js:669 @@ -4258,7 +4258,7 @@

                              Public Methods

                              - renderable.js:523 + renderable.js:524 @@ -4383,7 +4383,7 @@

                              Public Methods

                              - renderable.js:538 + renderable.js:539 @@ -4516,7 +4516,7 @@

                              Public Methods

                              - renderable.js:555 + renderable.js:556 @@ -4621,7 +4621,7 @@

                              Public Methods

                              - renderable.js:408 + renderable.js:409 @@ -4700,7 +4700,7 @@

                              Public Methods

                              - renderable.js:447 + renderable.js:448 @@ -4813,7 +4813,7 @@

                              Public Methods

                              - renderable.js:565 + renderable.js:566 @@ -4918,7 +4918,7 @@

                              Public Methods

                              - renderable.js:574 + renderable.js:575 diff --git a/docs/docs/melonjs/Renderer.html b/docs/docs/melonjs/Renderer.html index 877f07156..6288fbe53 100644 --- a/docs/docs/melonjs/Renderer.html +++ b/docs/docs/melonjs/Renderer.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/Renderer/Texture.html b/docs/docs/melonjs/Renderer/Texture.html index bcc621500..1810e276a 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/getWidth.html b/docs/docs/melonjs/Renderer/getWidth.html index 79742b121..84283edb8 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 16516f05f..3019373cf 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 2a6cd32f8..c95d1b863 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 2e673ecd0..b5c6ac970 100644 --- a/docs/docs/melonjs/Sprite.html +++ b/docs/docs/melonjs/Sprite.html @@ -1,5 +1,5 @@ - + @@ -2047,7 +2047,7 @@

                              Public Properties

                              - sprite.js:68 + sprite.js:69 @@ -2094,7 +2094,7 @@

                              Public Properties

                              - sprite.js:74 + sprite.js:75 @@ -2143,7 +2143,7 @@

                              Public Properties

                              - sprite.js:88 + sprite.js:89 @@ -2192,7 +2192,7 @@

                              Public Properties

                              - sprite.js:81 + sprite.js:82 @@ -2241,7 +2241,7 @@

                              Public Properties

                              - sprite.js:102 + sprite.js:103 @@ -2299,7 +2299,7 @@

                              Public Methods

                              - sprite.js:308 + sprite.js:309 @@ -2472,7 +2472,7 @@

                              Public Methods

                              - sprite.js:625 + sprite.js:626 @@ -2571,7 +2571,7 @@

                              Public Methods

                              - sprite.js:283 + sprite.js:284 @@ -2696,7 +2696,7 @@

                              Public Methods

                              - sprite.js:541 + sprite.js:542 @@ -2769,7 +2769,7 @@

                              Public Methods

                              - sprite.js:483 + sprite.js:484 @@ -2877,7 +2877,7 @@

                              Public Methods

                              - sprite.js:261 + sprite.js:262 @@ -2947,7 +2947,7 @@

                              Public Methods

                              - sprite.js:276 + sprite.js:277 @@ -2994,7 +2994,7 @@

                              Public Methods

                              - sprite.js:269 + sprite.js:270 @@ -3041,7 +3041,7 @@

                              Public Methods

                              - sprite.js:467 + sprite.js:468 @@ -3158,7 +3158,7 @@

                              Public Methods

                              - sprite.js:528 + sprite.js:529 @@ -3274,7 +3274,7 @@

                              Public Methods

                              - sprite.js:406 + sprite.js:407 @@ -3453,7 +3453,7 @@

                              Public Methods

                              - sprite.js:496 + sprite.js:497 @@ -3579,7 +3579,7 @@

                              Protected Methods

                              - sprite.js:559 + sprite.js:560 diff --git a/docs/docs/melonjs/Stage.html b/docs/docs/melonjs/Stage.html index 2fca22b88..bc7c4c472 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 96d46f44b..f73aef7b1 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 71d3bac5a..f84329be8 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 1261ac59e..2a09daa89 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 e5b24189e..0b295c5de 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 6c199154e..4b2181738 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 7e3ea4422..545ccfa9b 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 9c710814d..3ed449da0 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 74c8682df..dba1dea12 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 83a287443..2cb294bda 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 927973d9a..28871e9e3 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 7d33c4c13..cb81e6da3 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 55b819fa9..a90f34a3d 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 eeab6b073..5b38df110 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 7ce0b3522..4e6934ba6 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 56cc818da..9e2eb4775 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 6260baa78..60b00a974 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 b6b45e11b..501cd7dcf 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 2ae0955aa..7c0885186 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 c7dc75b3d..31f19fefc 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 71b24a0d0..c7fd165a0 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:240 + atlas.js:241 @@ -614,7 +614,7 @@

                              Public Methods

                              - atlas.js:317 + atlas.js:318 @@ -755,7 +755,7 @@

                              Public Methods

                              - atlas.js:387 + atlas.js:388 @@ -903,7 +903,7 @@

                              Public Methods

                              - atlas.js:347 + atlas.js:348 @@ -1070,7 +1070,7 @@

                              Public Methods

                              - atlas.js:205 + atlas.js:206 @@ -1176,7 +1176,7 @@

                              Public Methods

                              - atlas.js:218 + atlas.js:219 @@ -1249,7 +1249,7 @@

                              Public Methods

                              - atlas.js:273 + atlas.js:274 @@ -1371,7 +1371,7 @@

                              Public Methods

                              - atlas.js:226 + atlas.js:227 @@ -1477,7 +1477,7 @@

                              Public Methods

                              - atlas.js:296 + atlas.js:297 diff --git a/docs/docs/melonjs/Tile.html b/docs/docs/melonjs/Tile.html index e6564f0f2..08ec7e62d 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 cc4974bc2..e98159629 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 fec9f7c22..0f0611514 100644 --- a/docs/docs/melonjs/Trigger.html +++ b/docs/docs/melonjs/Trigger.html @@ -1,5 +1,5 @@ - + @@ -1789,7 +1789,7 @@

                              Public Methods

                              - trigger.js:138 + trigger.js:139 @@ -1914,7 +1914,7 @@

                              Protected Methods

                              - trigger.js:110 + trigger.js:111 diff --git a/docs/docs/melonjs/Tween.html b/docs/docs/melonjs/Tween.html index 46fc30d53..708f5605c 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 974177e85..2d554804f 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 9346d5457..b0ff10f17 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 4c7dfa578..7374fe820 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 7715f644d..cac913853 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 ad6419c67..17448c85e 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 be52a0961..d8c5072ff 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 1bcd54930..40f68657b 100644 --- a/docs/docs/melonjs/Vector3d.html +++ b/docs/docs/melonjs/Vector3d.html @@ -1,5 +1,5 @@ - + @@ -956,7 +956,7 @@

                              Public Properties

                              - vector3.js:29 + vector3.js:30 @@ -1005,7 +1005,7 @@

                              Public Properties

                              - vector3.js:35 + vector3.js:36 @@ -1054,7 +1054,7 @@

                              Public Properties

                              - vector3.js:41 + vector3.js:42 @@ -1112,7 +1112,7 @@

                              Public Methods

                              - vector3.js:157 + vector3.js:158 @@ -1185,7 +1185,7 @@

                              Public Methods

                              - vector3.js:94 + vector3.js:95 @@ -1288,7 +1288,7 @@

                              Public Methods

                              - vector3.js:418 + vector3.js:419 @@ -1391,7 +1391,7 @@

                              Public Methods

                              - vector3.js:221 + vector3.js:222 @@ -1464,7 +1464,7 @@

                              Public Methods

                              - vector3.js:229 + vector3.js:230 @@ -1537,7 +1537,7 @@

                              Public Methods

                              - vector3.js:165 + vector3.js:166 @@ -1650,7 +1650,7 @@

                              Public Methods

                              - vector3.js:175 + vector3.js:176 @@ -1763,7 +1763,7 @@

                              Public Methods

                              - vector3.js:448 + vector3.js:449 @@ -1836,7 +1836,7 @@

                              Public Methods

                              - vector3.js:253 + vector3.js:254 @@ -1939,7 +1939,7 @@

                              Public Methods

                              - vector3.js:337 + vector3.js:338 @@ -2042,7 +2042,7 @@

                              Public Methods

                              - vector3.js:406 + vector3.js:407 @@ -2142,7 +2142,7 @@

                              Public Methods

                              - vector3.js:148 + vector3.js:149 @@ -2247,7 +2247,7 @@

                              Public Methods

                              - vector3.js:328 + vector3.js:329 @@ -2350,7 +2350,7 @@

                              Public Methods

                              - vector3.js:262 + vector3.js:263 @@ -2485,7 +2485,7 @@

                              Public Methods

                              - vector3.js:205 + vector3.js:206 @@ -2558,7 +2558,7 @@

                              Public Methods

                              - vector3.js:213 + vector3.js:214 @@ -2631,7 +2631,7 @@

                              Public Methods

                              - vector3.js:361 + vector3.js:362 @@ -2704,7 +2704,7 @@

                              Public Methods

                              - vector3.js:353 + vector3.js:354 @@ -2777,7 +2777,7 @@

                              Public Methods

                              - vector3.js:369 + vector3.js:370 @@ -2892,7 +2892,7 @@

                              Public Methods

                              - vector3.js:195 + vector3.js:196 @@ -2995,7 +2995,7 @@

                              Public Methods

                              - vector3.js:185 + vector3.js:186 @@ -3098,7 +3098,7 @@

                              Public Methods

                              - vector3.js:382 + vector3.js:383 @@ -3213,7 +3213,7 @@

                              Public Methods

                              - vector3.js:237 + vector3.js:238 @@ -3286,7 +3286,7 @@

                              Public Methods

                              - vector3.js:245 + vector3.js:246 @@ -3359,7 +3359,7 @@

                              Public Methods

                              - vector3.js:286 + vector3.js:287 @@ -3432,7 +3432,7 @@

                              Public Methods

                              - vector3.js:294 + vector3.js:295 @@ -3506,7 +3506,7 @@

                              Public Methods

                              - vector3.js:427 + vector3.js:428 @@ -3611,7 +3611,7 @@

                              Public Methods

                              - vector3.js:437 + vector3.js:438 @@ -3717,7 +3717,7 @@

                              Public Methods

                              - vector3.js:303 + vector3.js:304 @@ -3842,7 +3842,7 @@

                              Public Methods

                              - vector3.js:112 + vector3.js:113 @@ -3983,7 +3983,7 @@

                              Public Methods

                              - vector3.js:123 + vector3.js:124 @@ -4086,7 +4086,7 @@

                              Public Methods

                              - vector3.js:61 + vector3.js:62 @@ -4227,7 +4227,7 @@

                              Public Methods

                              - vector3.js:85 + vector3.js:86 @@ -4330,7 +4330,7 @@

                              Public Methods

                              - vector3.js:77 + vector3.js:78 @@ -4403,7 +4403,7 @@

                              Public Methods

                              - vector3.js:103 + vector3.js:104 @@ -4506,7 +4506,7 @@

                              Public Methods

                              - vector3.js:140 + vector3.js:141 @@ -4579,7 +4579,7 @@

                              Public Methods

                              - vector3.js:132 + vector3.js:133 @@ -4652,7 +4652,7 @@

                              Public Methods

                              - vector3.js:456 + vector3.js:457 diff --git a/docs/docs/melonjs/WebGLRenderer.html b/docs/docs/melonjs/WebGLRenderer.html index c7f75ef71..08e831abc 100644 --- a/docs/docs/melonjs/WebGLRenderer.html +++ b/docs/docs/melonjs/WebGLRenderer.html @@ -1,5 +1,5 @@ - + @@ -1647,7 +1647,7 @@

                              Public Properties

                              - webgl_renderer.js:131 + webgl_renderer.js:132 @@ -1696,7 +1696,7 @@

                              Public Properties

                              - webgl_renderer.js:119 + webgl_renderer.js:120 @@ -1745,7 +1745,7 @@

                              Public Properties

                              - webgl_renderer.js:125 + webgl_renderer.js:126 @@ -1794,7 +1794,7 @@

                              Public Properties

                              - webgl_renderer.js:113 + webgl_renderer.js:114 @@ -1843,7 +1843,7 @@

                              Public Properties

                              - webgl_renderer.js:55 + webgl_renderer.js:56 @@ -1892,7 +1892,7 @@

                              Public Properties

                              - webgl_renderer.js:47 + webgl_renderer.js:48 @@ -1941,7 +1941,7 @@

                              Public Properties

                              - webgl_renderer.js:39 + webgl_renderer.js:40 @@ -1990,7 +1990,7 @@

                              Public Properties

                              - webgl_renderer.js:72 + webgl_renderer.js:73 @@ -2040,7 +2040,7 @@

                              Public Properties

                              - webgl_renderer.js:62 + webgl_renderer.js:63 @@ -2105,7 +2105,7 @@

                              Public Properties

                              - webgl_renderer.js:86 + webgl_renderer.js:87 @@ -2154,7 +2154,7 @@

                              Public Properties

                              - webgl_renderer.js:80 + webgl_renderer.js:81 @@ -2203,7 +2203,7 @@

                              Public Properties

                              - webgl_renderer.js:208 + webgl_renderer.js:209 @@ -2261,7 +2261,7 @@

                              Public Methods

                              - webgl_renderer.js:300 + webgl_renderer.js:301 @@ -2382,7 +2382,7 @@

                              Public Methods

                              - webgl_renderer.js:539 + webgl_renderer.js:540 @@ -2444,7 +2444,7 @@

                              Public Methods

                              - webgl_renderer.js:419 + webgl_renderer.js:420 @@ -2491,7 +2491,7 @@

                              Public Methods

                              - webgl_renderer.js:433 + webgl_renderer.js:434 @@ -2594,7 +2594,7 @@

                              Public Methods

                              - webgl_renderer.js:1224 + webgl_renderer.js:1225 @@ -2649,7 +2649,7 @@

                              Public Methods

                              - webgl_renderer.js:456 + webgl_renderer.js:457 @@ -2764,7 +2764,7 @@

                              Public Methods

                              - webgl_renderer.js:1133 + webgl_renderer.js:1134 @@ -2883,7 +2883,7 @@

                              Public Methods

                              - webgl_renderer.js:625 + webgl_renderer.js:626 @@ -2930,7 +2930,7 @@

                              Public Methods

                              - webgl_renderer.js:360 + webgl_renderer.js:361 @@ -3062,7 +3062,7 @@

                              Public Methods

                              - webgl_renderer.js:470 + webgl_renderer.js:471 @@ -3246,7 +3246,7 @@

                              Public Methods

                              - webgl_renderer.js:523 + webgl_renderer.js:524 @@ -3381,7 +3381,7 @@

                              Public Methods

                              - webgl_renderer.js:617 + webgl_renderer.js:618 @@ -3464,7 +3464,7 @@

                              Public Methods

                              - webgl_renderer.js:837 + webgl_renderer.js:838 @@ -3639,7 +3639,7 @@

                              Public Methods

                              - webgl_renderer.js:869 + webgl_renderer.js:870 @@ -3754,7 +3754,7 @@

                              Public Methods

                              - webgl_renderer.js:920 + webgl_renderer.js:921 @@ -3869,7 +3869,7 @@

                              Public Methods

                              - webgl_renderer.js:1068 + webgl_renderer.js:1069 @@ -3960,7 +3960,7 @@

                              Public Methods

                              - webgl_renderer.js:977 + webgl_renderer.js:978 @@ -4039,7 +4039,7 @@

                              Public Methods

                              - webgl_renderer.js:1016 + webgl_renderer.js:1017 @@ -4154,7 +4154,7 @@

                              Public Methods

                              - webgl_renderer.js:1047 + webgl_renderer.js:1048 @@ -4281,7 +4281,7 @@

                              Public Methods

                              - webgl_renderer.js:392 + webgl_renderer.js:393 @@ -4328,7 +4328,7 @@

                              Public Methods

                              - webgl_renderer.js:632 + webgl_renderer.js:633 @@ -4402,7 +4402,7 @@

                              Public Methods

                              - webgl_renderer.js:797 + webgl_renderer.js:798 @@ -4475,7 +4475,7 @@

                              Public Methods

                              - webgl_renderer.js:217 + webgl_renderer.js:218 @@ -4545,7 +4545,7 @@

                              Public Methods

                              - webgl_renderer.js:237 + webgl_renderer.js:238 @@ -4645,7 +4645,7 @@

                              Public Methods

                              - webgl_renderer.js:568 + webgl_renderer.js:569 @@ -4732,7 +4732,7 @@

                              Public Methods

                              - webgl_renderer.js:559 + webgl_renderer.js:560 @@ -4823,7 +4823,7 @@

                              Public Methods

                              - webgl_renderer.js:575 + webgl_renderer.js:576 @@ -4938,7 +4938,7 @@

                              Public Methods

                              - webgl_renderer.js:254 + webgl_renderer.js:255 @@ -4985,7 +4985,7 @@

                              Public Methods

                              - webgl_renderer.js:353 + webgl_renderer.js:354 @@ -5032,7 +5032,7 @@

                              Public Methods

                              - webgl_renderer.js:685 + webgl_renderer.js:686 @@ -5091,7 +5091,7 @@

                              Public Methods

                              - webgl_renderer.js:754 + webgl_renderer.js:755 @@ -5180,7 +5180,7 @@

                              Public Methods

                              - webgl_renderer.js:586 + webgl_renderer.js:587 @@ -5307,7 +5307,7 @@

                              Public Methods

                              - webgl_renderer.js:729 + webgl_renderer.js:730 @@ -5366,7 +5366,7 @@

                              Public Methods

                              - webgl_renderer.js:770 + webgl_renderer.js:771 @@ -5457,7 +5457,7 @@

                              Public Methods

                              - webgl_renderer.js:641 + webgl_renderer.js:642 @@ -5579,7 +5579,7 @@

                              Public Methods

                              - webgl_renderer.js:805 + webgl_renderer.js:806 @@ -5659,7 +5659,7 @@

                              Public Methods

                              - webgl_renderer.js:321 + webgl_renderer.js:322 @@ -5788,7 +5788,7 @@

                              Public Methods

                              - webgl_renderer.js:789 + webgl_renderer.js:790 @@ -5867,7 +5867,7 @@

                              Public Methods

                              - webgl_renderer.js:1180 + webgl_renderer.js:1181 @@ -5980,7 +5980,7 @@

                              Public Methods

                              - webgl_renderer.js:399 + webgl_renderer.js:400 @@ -6059,7 +6059,7 @@

                              Public Methods

                              - webgl_renderer.js:1077 + webgl_renderer.js:1078 @@ -6199,7 +6199,7 @@

                              Public Methods

                              - webgl_renderer.js:408 + webgl_renderer.js:409 @@ -6338,7 +6338,7 @@

                              Public Methods

                              - webgl_renderer.js:598 + webgl_renderer.js:599 @@ -6441,7 +6441,7 @@

                              Public Methods

                              - webgl_renderer.js:816 + webgl_renderer.js:817 @@ -6634,7 +6634,7 @@

                              Public Methods

                              - webgl_renderer.js:850 + webgl_renderer.js:851 @@ -6791,7 +6791,7 @@

                              Public Methods

                              - webgl_renderer.js:880 + webgl_renderer.js:881 @@ -6906,7 +6906,7 @@

                              Public Methods

                              - webgl_renderer.js:1059 + webgl_renderer.js:1060 @@ -6997,7 +6997,7 @@

                              Public Methods

                              - webgl_renderer.js:931 + webgl_renderer.js:932 @@ -7100,7 +7100,7 @@

                              Public Methods

                              - webgl_renderer.js:985 + webgl_renderer.js:986 @@ -7257,7 +7257,7 @@

                              Public Methods

                              - webgl_renderer.js:1027 + webgl_renderer.js:1028 @@ -7432,7 +7432,7 @@

                              Public Methods

                              - webgl_renderer.js:1092 + webgl_renderer.js:1093 @@ -7579,7 +7579,7 @@

                              Public Methods

                              - webgl_renderer.js:1117 + webgl_renderer.js:1118 diff --git a/docs/docs/melonjs/World.html b/docs/docs/melonjs/World.html index 36c416541..ae3e7a3df 100644 --- a/docs/docs/melonjs/World.html +++ b/docs/docs/melonjs/World.html @@ -1,5 +1,5 @@ - + diff --git a/docs/docs/melonjs/audio.html b/docs/docs/melonjs/audio.html index af4f820dd..f9cc7fdfc 100644 --- a/docs/docs/melonjs/audio.html +++ b/docs/docs/melonjs/audio.html @@ -1,5 +1,5 @@ - + @@ -190,7 +190,7 @@

                              Public Properties

                              - audio.js:68 + audio.js:69 @@ -251,7 +251,7 @@

                              Public Methods

                              - audio.js:132 + audio.js:133 @@ -298,7 +298,7 @@

                              Public Methods

                              - audio.js:122 + audio.js:123 @@ -354,7 +354,7 @@

                              Public Methods

                              - audio.js:224 + audio.js:225 @@ -501,7 +501,7 @@

                              Public Methods

                              - audio.js:509 + audio.js:510 @@ -574,7 +574,7 @@

                              Public Methods

                              - audio.js:527 + audio.js:528 @@ -647,7 +647,7 @@

                              Public Methods

                              - audio.js:113 + audio.js:114 @@ -720,7 +720,7 @@

                              Public Methods

                              - audio.js:103 + audio.js:104 @@ -825,7 +825,7 @@

                              Public Methods

                              - audio.js:79 + audio.js:80 @@ -949,7 +949,7 @@

                              Public Methods

                              - audio.js:140 + audio.js:141 @@ -1104,7 +1104,7 @@

                              Public Methods

                              - audio.js:536 + audio.js:537 @@ -1230,7 +1230,7 @@

                              Public Methods

                              - audio.js:565 + audio.js:566 @@ -1277,7 +1277,7 @@

                              Public Methods

                              - audio.js:581 + audio.js:582 @@ -1350,7 +1350,7 @@

                              Public Methods

                              - audio.js:324 + audio.js:325 @@ -1524,7 +1524,7 @@

                              Public Methods

                              - audio.js:344 + audio.js:345 @@ -1825,7 +1825,7 @@

                              Public Methods

                              - audio.js:400 + audio.js:401 @@ -1929,7 +1929,7 @@

                              Public Methods

                              - audio.js:480 + audio.js:481 @@ -1980,7 +1980,7 @@

                              Public Methods

                              - audio.js:183 + audio.js:184 @@ -2156,7 +2156,7 @@

                              Public Methods

                              - audio.js:442 + audio.js:443 @@ -2291,7 +2291,7 @@

                              Public Methods

                              - audio.js:305 + audio.js:306 @@ -2464,7 +2464,7 @@

                              Public Methods

                              - audio.js:264 + audio.js:265 @@ -2612,7 +2612,7 @@

                              Public Methods

                              - audio.js:418 + audio.js:419 @@ -2722,7 +2722,7 @@

                              Public Methods

                              - audio.js:492 + audio.js:493 @@ -2778,7 +2778,7 @@

                              Public Methods

                              - audio.js:242 + audio.js:243 @@ -2926,7 +2926,7 @@

                              Public Methods

                              - audio.js:518 + audio.js:519 @@ -3005,7 +3005,7 @@

                              Public Methods

                              - audio.js:286 + audio.js:287 @@ -3150,7 +3150,7 @@

                              Public Methods

                              - audio.js:377 + audio.js:378 @@ -3253,7 +3253,7 @@

                              Public Methods

                              - audio.js:463 + audio.js:464 @@ -3315,7 +3315,7 @@

                              Public Methods

                              - audio.js:590 + audio.js:591 @@ -3424,7 +3424,7 @@

                              Public Methods

                              - audio.js:609 + audio.js:610 @@ -3475,7 +3475,7 @@

                              Public Methods

                              - audio.js:555 + audio.js:556 @@ -3574,7 +3574,7 @@

                              Public Methods

                              - audio.js:573 + audio.js:574 diff --git a/docs/docs/melonjs/audio/disable.html b/docs/docs/melonjs/audio/disable.html index 6bb9bcfd8..2c25d044d 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 97e859c1b..8b33af75a 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 35a6b4d71..324b4bd6f 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 3336245c6..036e03c3c 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 c29a2fbaf..e8b281b87 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 825481fa9..203b99048 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 6d39a9f2b..957da7092 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 c2f4f5f2d..7a27ac301 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 cb31837c9..8e4b15bc5 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 42a187b23..5443d246a 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 eb2292b19..2d46c5cb8 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 f9143fb45..6ea1b98e9 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 c2cfa5cc7..ea6408a1e 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 6f5108aef..87f48e49e 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 fdf90c8f4..74bf04147 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 fb678a113..7057be1eb 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 5635b6803..25c20aca3 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 c5dc064ee..693f69c7e 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 875b54a65..0df8eb39e 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 a54742ecc..afc70c960 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 6c230af48..f1feb8829 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 4acf38ef0..b4af19749 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 5f4e778ef..68f987619 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 2711810e3..95ccc29aa 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 2566aba7c..7ca2489cf 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 fada19ad0..c1550dd16 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 56836cfbc..2888d23c9 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 858481004..023cd5feb 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 dc840b414..89d87f5be 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 b9b807451..1f0ce49c8 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 4ab9b6097..f46d094c6 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 87b832543..b51c2281b 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 bcefa45d8..01ae98b28 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 2dc2ab63f..4227d7601 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 6de0b1fe1..418d50705 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 da11d58df..183643c8e 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 c3ea64a8d..73f781dd5 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 4cc512187..79a5fc682 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 0ce40cb3b..173b5af8d 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 9dbf5ed56..95724e5bc 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 9869c39de..421bf4421 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 13852248f..e95326e6c 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 4022b12cc..9b5a855ea 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 eff504c2d..268e03711 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 eb52cc110..dc95ed9a5 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 2faf41a25..2a665de33 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 f6b338150..cf295d033 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 8b2cc2db0..87411cfd9 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 713536c87..a9be13b3a 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 fee45770d..d1c4c7065 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 86a83d4e0..330cd091d 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 b3683f090..8c5f4536c 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 cb46eed2f..72d2e7a40 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 737685b24..929259088 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 f48a25e36..751727be2 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 452a6c3c8..179a7363c 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 9e70a1de5..f7080c06b 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 cd6031eea..6a42f6208 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 b770efabb..f5ebfc4de 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 6a5afb950..6f78e532d 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 59938a4a1..1184eabd7 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 61dca443d..6e071a066 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 fefa6a86d..adcf770d9 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 22218739d..292ebf5dd 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 2300196ee..ceda71004 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 11e808c1a..d1c7ef81a 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 2df36a94a..ccdc67725 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 433d07041..648b1b8b3 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 d826728e0..3a4bee511 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 974cde5b4..dda87dba2 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 a257b3809..bd0a1bf0c 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 e8640a3bc..8251ff052 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 fad1b25f5..d451b1969 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 7f46a4f6b..66dec5c11 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 a952df3f0..1503c7b1a 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 8b83581a1..d7f81d954 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 e3ca2435e..0d9fc10b6 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 c0e67d248..3f3268044 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 71a618ae7..4ac02fa70 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 460d88bab..b5f68706a 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 ec025e631..4bf15c6e6 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 93ca8c99c..eca2bc471 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 37d1d9bab..b785a7996 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 e2ce1e8c4..ca49dafeb 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 d2ff68a59..3a20f0100 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 f0220d58a..0c2070fde 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 9bfde2618..c718fcf24 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 19fd423ac..1389cf984 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 dd7cad8d1..f32b5bc97 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 b70149959..c34a1c3a2 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 8420ec711..a0cd1bdc8 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 01ccd431c..cbb9b9c2b 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 eeada77ce..2902d6982 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 503a2b07f..3103ea949 100644 --- a/docs/docs/melonjs/loader.html +++ b/docs/docs/melonjs/loader.html @@ -1,5 +1,5 @@ - + @@ -578,7 +578,7 @@

                              Public Methods

                              - loader.js:653 + loader.js:652 @@ -683,7 +683,7 @@

                              Public Methods

                              - loader.js:714 + loader.js:713 @@ -785,7 +785,7 @@

                              Public Methods

                              - loader.js:668 + loader.js:667 @@ -890,7 +890,7 @@

                              Public Methods

                              - loader.js:684 + loader.js:683 @@ -992,7 +992,7 @@

                              Public Methods

                              - loader.js:638 + loader.js:637 @@ -1097,7 +1097,7 @@

                              Public Methods

                              - loader.js:699 + loader.js:698 @@ -1199,7 +1199,7 @@

                              Public Methods

                              - loader.js:444 + loader.js:443 @@ -1359,7 +1359,7 @@

                              Public Methods

                              - loader.js:349 + loader.js:348 @@ -1518,7 +1518,7 @@

                              Public Methods

                              - loader.js:415 + loader.js:414 @@ -1863,7 +1863,7 @@

                              Public Methods

                              - loader.js:316 + loader.js:315 @@ -1978,7 +1978,7 @@

                              Public Methods

                              - loader.js:497 + loader.js:496 @@ -2085,7 +2085,7 @@

                              Public Methods

                              - loader.js:566 + loader.js:565 diff --git a/docs/docs/melonjs/loader/Asset.html b/docs/docs/melonjs/loader/Asset.html index 6702eaca0..daa8d9432 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 9fcd752a9..da5ea03b2 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 758eaa796..55af9133b 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 3affc6a34..250db64ed 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 fadffd10e..9742270ad 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 19b006168..24f57f0e2 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 8441c89e1..dff0c6ee7 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 cf783bf25..60bcbd2ed 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 7820b98e9..017993874 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 61556a206..37e204826 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 90bd2f977..10e0f1ae6 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 d8ddcfca7..ac19898e5 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 b2ae5a988..a3a6df854 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 b3bbd469b..36fad254a 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 ec1cb467c..dac2afe0d 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 a2f5e799d..1f6bb3fbf 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 d5940230d..ae2cdd6e9 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 8b11c1f17..3d48d6423 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 e73bceea0..1d78bff3a 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 110be77e7..6c37ac6c2 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 454cb12b3..385dc7d0e 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 f6c98e7a6..e79039aac 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 34f91b313..8a09613f5 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 7c3f0447f..faeb2eb06 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 79c3487b6..fcc8b1593 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 b941e756c..c088d64c4 100644 --- a/docs/docs/melonjs/src/application/application.js.html +++ b/docs/docs/melonjs/src/application/application.js.html @@ -1,5 +1,5 @@ - + @@ -1812,6 +1812,10 @@ 435
                            • +
                            • + 436 +
                            • +
                            import { autoDetectRenderer } from "../video/utils/autodetect.js";
                             import CanvasRenderer from "./../video/canvas/canvas_renderer.js";
                            @@ -1827,6 +1831,7 @@
                             import { CANVAS, WEBGL, AUTO } from "../const.js";
                             
                             /**
                            + * additional import for TypeScript
                              * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js";
                              * @import Camera2d from "./../camera/camera2d.js";
                              */
                            diff --git a/docs/docs/melonjs/src/application/header.js.html b/docs/docs/melonjs/src/application/header.js.html
                            index 255d75dd5..1240dabc1 100644
                            --- a/docs/docs/melonjs/src/application/header.js.html
                            +++ b/docs/docs/melonjs/src/application/header.js.html
                            @@ -1,5 +1,5 @@
                             
                            -
                            +
                             
                             
                               
                            @@ -196,10 +196,15 @@
                                         31
                                       
                          • +
                          • + 32 +
                          • +
                          import * as device from "../system/device";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Application from "./application.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/application/resize.js.html b/docs/docs/melonjs/src/application/resize.js.html
                          index 167fd0ce7..e12ae5b1d 100644
                          --- a/docs/docs/melonjs/src/application/resize.js.html
                          +++ b/docs/docs/melonjs/src/application/resize.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -548,10 +548,15 @@
                                       119
                                     
                                   
                          +          
                        • + 120 +
                        • +
                          import * as device from "./../system/device";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Application from "./application.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/application/settings.js.html b/docs/docs/melonjs/src/application/settings.js.html
                          index 7158cb566..52a2da3ce 100644
                          --- a/docs/docs/melonjs/src/application/settings.js.html
                          +++ b/docs/docs/melonjs/src/application/settings.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -316,8 +316,13 @@
                                       61
                                     
                                   
                          +          
                        • + 62 +
                        • +
                          /**
                          + * additional import for TypeScript
                            * @import Renderer from "./../video/renderer.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/audio/audio.js.html b/docs/docs/melonjs/src/audio/audio.js.html
                          index 1741f432c..d61a4c4d0 100644
                          --- a/docs/docs/melonjs/src/audio/audio.js.html
                          +++ b/docs/docs/melonjs/src/audio/audio.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -2560,6 +2560,10 @@
                                       622
                                     
                                   
                          +          
                        • + 623 +
                        • +
                          // external import
                           import {Howl, Howler} from "howler";
                          @@ -2567,7 +2571,8 @@
                           import { isDataUrl } from "./../utils/string.js";
                           
                           /**
                          - * @import Asset from "./../loader/loader.js";
                          + * additional import for TypeScript
                          + * @import { Asset } from "./../loader/loader.js";
                            */
                           
                           /**
                          diff --git a/docs/docs/melonjs/src/camera/camera2d.js.html b/docs/docs/melonjs/src/camera/camera2d.js.html
                          index 77ec81ea1..c0d1dc23e 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 c06e50742..047091758 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 620688f43..7fdadfa48 100644
                          --- a/docs/docs/melonjs/src/geometries/ellipse.js.html
                          +++ b/docs/docs/melonjs/src/geometries/ellipse.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1048,10 +1048,15 @@
                                       244
                                     
                                   
                          +          
                        • + 245 +
                        • +
                          import pool from "./../system/pooling.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Vector2d from "./../math/vector2.js";
                            * @import ObservableVector2d from "./../math/observable_vector2.js";
                            * @import Matrix2d from "./../math/matrix2.js";
                          diff --git a/docs/docs/melonjs/src/geometries/line.js.html b/docs/docs/melonjs/src/geometries/line.js.html
                          index 003401077..ad5cd9dad 100644
                          --- a/docs/docs/melonjs/src/geometries/line.js.html
                          +++ b/docs/docs/melonjs/src/geometries/line.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -488,11 +488,16 @@
                                       104
                                     
                                   
                          +          
                        • + 105 +
                        • +
                          import pool from "./../system/pooling.js";
                           import Polygon from "./poly.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Vector2d from "./../math/vector2d.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/geometries/path2d.js.html b/docs/docs/melonjs/src/geometries/path2d.js.html
                          index 1987e72d6..fd30ef99a 100644
                          --- a/docs/docs/melonjs/src/geometries/path2d.js.html
                          +++ b/docs/docs/melonjs/src/geometries/path2d.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1952,6 +1952,10 @@
                                       470
                                     
                                   
                          +          
                        • + 471 +
                        • +
                          import pool from "./../system/pooling.js";
                           import { TAU } from "./../math/math.js";
                          @@ -1959,6 +1963,7 @@
                           import { endpointToCenterParameterization } from "./toarccanvas.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Point from "./point.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/geometries/point.js.html b/docs/docs/melonjs/src/geometries/point.js.html
                          index 7f12f9834..6c8edd9d1 100644
                          --- a/docs/docs/melonjs/src/geometries/point.js.html
                          +++ b/docs/docs/melonjs/src/geometries/point.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -376,8 +376,13 @@
                                       76
                                     
                                   
                          +          
                        • + 77 +
                        • +
                          /**
                          + * additional import for TypeScript
                            * @import Vector2d from "./../math/vector2.js";
                            **/
                           
                          diff --git a/docs/docs/melonjs/src/geometries/poly.js.html b/docs/docs/melonjs/src/geometries/poly.js.html
                          index 10ad6d7cd..6c1fbd5c6 100644
                          --- a/docs/docs/melonjs/src/geometries/poly.js.html
                          +++ b/docs/docs/melonjs/src/geometries/poly.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1788,12 +1788,32 @@
                                       429
                                     
                                   
                          +          
                        • + 430 +
                        • + +
                        • + 431 +
                        • + +
                        • + 432 +
                        • + +
                        • + 433 +
                        • +
                          import earcut from "earcut";
                           import pool from "./../system/pooling.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Vector2d from "./../math/vector2.js";
                          + * @import ObservableVector2d from "./../math/observable_vector2.js";
                          + * @import Matrix2d from "./../math/matrix2.js";
                          + * @import Bounds from "./../physics/bounds.js";
                            */
                           
                           /**
                          diff --git a/docs/docs/melonjs/src/geometries/rectangle.js.html b/docs/docs/melonjs/src/geometries/rectangle.js.html
                          index 695f9af24..87eb4a314 100644
                          --- a/docs/docs/melonjs/src/geometries/rectangle.js.html
                          +++ b/docs/docs/melonjs/src/geometries/rectangle.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1376,11 +1376,16 @@
                                       326
                                     
                                   
                          +          
                        • + 327 +
                        • +
                          import pool from "./../system/pooling.js";
                           import Polygon from "./poly.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Vector2d from "./../math/vector2.js";
                            **/
                           
                          diff --git a/docs/docs/melonjs/src/geometries/roundrect.js.html b/docs/docs/melonjs/src/geometries/roundrect.js.html
                          index 409ae1525..cca3f0588 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 444f2d772..285629d11 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 21e98ce84..ea3d6a56f 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 e5031e4fd..2703937a2 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 799dc7848..66517c393 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 73b8a0a25..2b4e385b0 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 12141958a..317d3d4dd 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 21f8e2adf..f71620a87 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 bb4b39df0..c2abfaa20 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 c68f25332..9853dcf36 100644
                          --- a/docs/docs/melonjs/src/lang/deprecated.js.html
                          +++ b/docs/docs/melonjs/src/lang/deprecated.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          diff --git a/docs/docs/melonjs/src/level/level.js.html b/docs/docs/melonjs/src/level/level.js.html
                          index 5a54c26d5..e0a508bc5 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 30a25c105..4c384bcc2 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 bd83e9a6f..37df7500f 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 62d3af111..d8cfbc8f2 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 ab4f92365..7cd093a8d 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 4e206bebe..a3c86695d 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 920e4e105..717ad0a34 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 a0fb6c184..05c189d52 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 7db989e73..05b2d63fb 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 11857f144..1d93d5f93 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 36ad82b35..b1403da0c 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 8ad196a01..c6f49df51 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 037730f72..7176f5f17 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 f2f3c68f1..61bdce089 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 c7e283ed9..9e4ebb65d 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 f405a3dce..5fba7b633 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 45c9cbea7..1cfedb7ad 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 edd701f7d..f35f7b57d 100644
                          --- a/docs/docs/melonjs/src/loader/loader.js.html
                          +++ b/docs/docs/melonjs/src/loader/loader.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -2988,10 +2988,6 @@
                                       729
                                     
                                   
                          -          
                        • - 730 -
                        • -
                          import * as fileUtil from "./../utils/file.js";
                           import * as event from "./../system/event.js";
                          @@ -3266,7 +3262,6 @@
                           /**
                            * an asset definition to be used with the loader
                            * @typedef {object} Asset
                          - * @export
                            * @memberof loader
                            * @property {string} name - name of the asset
                            * @property {string} type  - the type of the asset ("audio"|"binary"|"image"|"json"|"js"|"tmx"|"tmj"|"tsx"|"tsj"|"fontface"|"video")
                          diff --git a/docs/docs/melonjs/src/loader/loadingscreen.js.html b/docs/docs/melonjs/src/loader/loadingscreen.js.html
                          index e49533248..b9f1a025e 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 120801942..4d9dca840 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 af5f256d4..dc1083eed 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 bc365eecc..a0f5a9040 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 a3b617c9f..406eb4d8d 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 04402e441..0b4768c2d 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 c62058e03..7da8ec768 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 888ee986d..fc26bf054 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 465ec06cf..265428c53 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 4195fefaf..8804464f5 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 1888de26c..97fe62b94 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 82899e267..432373233 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 80939d942..baf8ebd9c 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 00b86c117..bda837853 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 @@
                           
                          -
                          +
                           
                           
                             
                          diff --git a/docs/docs/melonjs/src/loader/parsers/video.js.html b/docs/docs/melonjs/src/loader/parsers/video.js.html
                          index 32f0556f7..6047a890c 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 0bb3ec787..d98d203dc 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 7b7c8d9ca..e84dae504 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 258dd67f4..1e1e4fbf5 100644
                          --- a/docs/docs/melonjs/src/math/matrix2.js.html
                          +++ b/docs/docs/melonjs/src/math/matrix2.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -2020,10 +2020,15 @@
                                       487
                                     
                                   
                          +          
                        • + 488 +
                        • +
                          import pool from "./../system/pooling.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Matrix3d from "./matrix3.js";
                            * @import Vector2d from "./vector2.js";
                            * @import Vector3d from "./vector3.js";
                          diff --git a/docs/docs/melonjs/src/math/matrix3.js.html b/docs/docs/melonjs/src/math/matrix3.js.html
                          index 25a25db6a..693be4e83 100644
                          --- a/docs/docs/melonjs/src/math/matrix3.js.html
                          +++ b/docs/docs/melonjs/src/math/matrix3.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -2552,11 +2552,16 @@
                                       620
                                     
                                   
                          +          
                        • + 621 +
                        • +
                          import pool from "./../system/pooling.js";
                           import { EPSILON } from "./math.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Matrix2d from "./matrix2.js";
                            * @import Vector2d from "./vector2.js";
                            * @import Vector3d from "./vector3.js";
                          diff --git a/docs/docs/melonjs/src/math/observable_vector2.js.html b/docs/docs/melonjs/src/math/observable_vector2.js.html
                          index d6081d622..5ba214df5 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 f6fba3767..a5cc87c18 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 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -2296,12 +2296,17 @@
                                       556
                                     
                                   
                          +          
                        • + 557 +
                        • +
                          import Vector3d from "./vector3.js";
                           import {clamp} from "./math.js";
                           import pool from "./../system/pooling.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import ObservableVector2d from "./observable_vector2.js";
                            * @import Vector2d from "./vector2.js";
                            */
                          diff --git a/docs/docs/melonjs/src/math/vector2.js.html b/docs/docs/melonjs/src/math/vector2.js.html
                          index 62f29792b..af20f62a0 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 3ed6411fc..a47f73e2f 100644
                          --- a/docs/docs/melonjs/src/math/vector3.js.html
                          +++ b/docs/docs/melonjs/src/math/vector3.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1932,11 +1932,16 @@
                                       465
                                     
                                   
                          +          
                        • + 466 +
                        • +
                          import {clamp} from "./math.js";
                           import pool from "./../system/pooling.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Vector2d from "./vector2.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/particles/emitter.js.html b/docs/docs/melonjs/src/particles/emitter.js.html
                          index 9b356129c..ce6327705 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 9df419a18..7bc7e4285 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 7c684289a..9858205d7 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 e6fe0b5a3..c4a79cfee 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 dc6081576..d70065b0c 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 0a51a0831..822e79ca3 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 a6a2565e4..79f9dcfc3 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 1daba0d13..73c44245c 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 4621a6697..220df960a 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 9b1e4861a..292b4dc6f 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 e22c8d213..136fe4fef 100644
                          --- a/docs/docs/melonjs/src/physics/world.js.html
                          +++ b/docs/docs/melonjs/src/physics/world.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          diff --git a/docs/docs/melonjs/src/plugin/plugin.js.html b/docs/docs/melonjs/src/plugin/plugin.js.html
                          index 4d14202c1..b2efb0c18 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 fca58bbc5..3a45fbb6c 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 d3a45c52a..8e9ef754a 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 f4ecdd6b2..647462f94 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 cfdba4a9f..f4ab5fd1b 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 2108416fc..3e4163736 100644
                          --- a/docs/docs/melonjs/src/renderable/colorlayer.js.html
                          +++ b/docs/docs/melonjs/src/renderable/colorlayer.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -368,11 +368,16 @@
                                       74
                                     
                                   
                          +          
                        • + 75 +
                        • +
                          import pool from "./../system/pooling.js";
                           import Renderable from "./renderable.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Color from "./../math/color.js";
                            * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js";
                            * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js";
                          diff --git a/docs/docs/melonjs/src/renderable/container.js.html b/docs/docs/melonjs/src/renderable/container.js.html
                          index b989cabb8..39756806e 100644
                          --- a/docs/docs/melonjs/src/renderable/container.js.html
                          +++ b/docs/docs/melonjs/src/renderable/container.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -4104,6 +4104,10 @@
                                       1008
                                     
                                   
                          +          
                        • + 1009 +
                        • +
                          import Renderable from "./renderable.js";
                           import { createGUID } from "../utils/utils";
                          @@ -4126,6 +4130,7 @@
                           let globalFloatingCounter = 0;
                           
                           /**
                          + * additional import for TypeScript
                            * @import Color from "./../math/color.js";
                            * @import Entity from "./entity/entity.js";
                            * @import Sprite from "./sprite.js";
                          diff --git a/docs/docs/melonjs/src/renderable/draggable.js.html b/docs/docs/melonjs/src/renderable/draggable.js.html
                          index 6315caa1d..289693f70 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 3ec1e207e..a6c41fb5a 100644
                          --- a/docs/docs/melonjs/src/renderable/dragndrop.js.html
                          +++ b/docs/docs/melonjs/src/renderable/dragndrop.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -512,11 +512,16 @@
                                       110
                                     
                                   
                          +          
                        • + 111 +
                        • +
                          import * as event from "./../system/event.js";
                           import Renderable from "./../renderable/renderable.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import { Draggable } from "./draggable.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/renderable/entity/entity.js.html b/docs/docs/melonjs/src/renderable/entity/entity.js.html
                          index 2efc967ed..71edafc10 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 4892e545a..91740a2c3 100644
                          --- a/docs/docs/melonjs/src/renderable/imagelayer.js.html
                          +++ b/docs/docs/melonjs/src/renderable/imagelayer.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1208,6 +1208,10 @@
                                       284
                                     
                                   
                          +          
                        • + 285 +
                        • +
                          import { renderer } from "./../video/video.js";
                           import * as event from "./../system/event.js";
                          @@ -1217,6 +1221,7 @@
                           import * as stringUtil from "./../utils/string.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Vector2d from "./../math/vector2.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/renderable/light2d.js.html b/docs/docs/melonjs/src/renderable/light2d.js.html
                          index 4dc2ca92c..eacbcb273 100644
                          --- a/docs/docs/melonjs/src/renderable/light2d.js.html
                          +++ b/docs/docs/melonjs/src/renderable/light2d.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -724,11 +724,16 @@
                                       163
                                     
                                   
                          +          
                        • + 164 +
                        • +
                          import pool from "./../system/pooling.js";
                           import Renderable from "./renderable.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Color from "./../math/color.js";
                            * @import Ellipse from "./../geometries/ellipse.js";
                            * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js";
                          diff --git a/docs/docs/melonjs/src/renderable/nineslicesprite.js.html b/docs/docs/melonjs/src/renderable/nineslicesprite.js.html
                          index d9bf99528..5678c21dd 100644
                          --- a/docs/docs/melonjs/src/renderable/nineslicesprite.js.html
                          +++ b/docs/docs/melonjs/src/renderable/nineslicesprite.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1028,10 +1028,15 @@
                                       239
                                     
                                   
                          +          
                        • + 240 +
                        • +
                          import Sprite from "./sprite.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Color from "./../math/color.js";
                            * @import { TextureAtlas } from "./../video/texture/atlas.js";
                            */
                          diff --git a/docs/docs/melonjs/src/renderable/renderable.js.html b/docs/docs/melonjs/src/renderable/renderable.js.html
                          index a8301bf97..12907a56b 100644
                          --- a/docs/docs/melonjs/src/renderable/renderable.js.html
                          +++ b/docs/docs/melonjs/src/renderable/renderable.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -3548,6 +3548,10 @@
                                       869
                                     
                                   
                          +          
                        • + 870 +
                        • +
                          import ObservableVector2d from "./../math/observable_vector2.js";
                           import ObservableVector3d from "./../math/observable_vector3.js";
                          @@ -3561,6 +3565,7 @@
                           import Color from "./../math/color.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Vector2d from "./../math/vector2.js";
                            * @import Vector3d from "./../math/vector3.js";
                            * @import Matrix2d from "./../math/matrix2.js";
                          diff --git a/docs/docs/melonjs/src/renderable/sprite.js.html b/docs/docs/melonjs/src/renderable/sprite.js.html
                          index ca16b6e7c..005d90dd1 100644
                          --- a/docs/docs/melonjs/src/renderable/sprite.js.html
                          +++ b/docs/docs/melonjs/src/renderable/sprite.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -2836,6 +2836,10 @@
                                       691
                                     
                                   
                          +          
                        • + 692 +
                        • +
                          import { renderer } from "./../video/video.js";
                           import pool from "./../system/pooling.js";
                          @@ -2846,6 +2850,7 @@
                           import * as event from "../system/event.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Vector2d from "./../math/vector2.js";
                            * @import CanvasRenderer from "./../video/canvas/canvas_renderer.js";
                            * @import WebGLRenderer from "./../video/webgl/webgl_renderer.js";
                          diff --git a/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html b/docs/docs/melonjs/src/renderable/text/bitmaptext.js.html
                          index 0141ebc9f..a280d7fd5 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 88684506e..ef9588521 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 0bc462a6d..60f65c21c 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 f8f01714f..d61160655 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 07e3e2525..25d670468 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 e1438c26f..150932650 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 4a0813826..824d3e411 100644
                          --- a/docs/docs/melonjs/src/renderable/trigger.js.html
                          +++ b/docs/docs/melonjs/src/renderable/trigger.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -688,6 +688,10 @@
                                       154
                                     
                                   
                          +          
                        • + 155 +
                        • +
                          import Renderable from "./renderable.js";
                           import collision from "./../physics/collision.js";
                          @@ -696,6 +700,7 @@
                           import pool from "./../system/pooling.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import ResponseObject from "./../physics/response.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html b/docs/docs/melonjs/src/renderable/ui/uibaseelement.js.html
                          index 4b46e4303..303f91526 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 16cf10b34..5eb79ced5 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 82208fd8f..8a4e04cae 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 3b3b8de93..66730d20e 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 de7d9e14d..611dc524a 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 ef10b9d88..7218e2cb8 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 0d7342df1..45558992f 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 b7ce20c64..b1e8e02bb 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 33bce7d1c..ae16480b2 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 5b7709436..68bc51044 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 1057d85ca..8874a727d 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 9e2c5d2f5..43e083143 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 5a4d6ff45..e928f924c 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 ae1a181d3..67c8edb65 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 e42c7883a..95bf5656d 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 a1ba1b8ce..38d82caa5 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 9f4883e78..448490960 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 4a8b589ba..229705944 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 e8a0751c4..121c1f213 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 6ab074c87..8b753f243 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 85d82773d..6be4e6fb9 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 c76ec99f5..303d63f2b 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 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -3692,6 +3692,10 @@
                                       905
                                     
                                   
                          +          
                        • + 906 +
                        • +
                          import Color from "./../../math/color.js";
                           import Renderer from "./../renderer.js";
                          @@ -3699,6 +3703,7 @@
                           import * as event from "./../../system/event.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Rect from "./../../geometries/rectangle.js";
                            * @import RoundRect from "./../../geometries/roundrect.js";
                            * @import Polygon from "./../../geometries/poly.js";
                          diff --git a/docs/docs/melonjs/src/video/renderer.js.html b/docs/docs/melonjs/src/video/renderer.js.html
                          index 4d1479961..b2cc68286 100644
                          --- a/docs/docs/melonjs/src/video/renderer.js.html
                          +++ b/docs/docs/melonjs/src/video/renderer.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          diff --git a/docs/docs/melonjs/src/video/rendertarget/canvasrendertarget.js.html b/docs/docs/melonjs/src/video/rendertarget/canvasrendertarget.js.html
                          index aab5350ee..2cbc7c7c4 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 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1308,12 +1308,17 @@
                                       309
                                     
                                   
                          +          
                        • + 310 +
                        • +
                          import { createCanvas } from "../video.js";
                           import { setPrefixed } from "../../utils/agent.js";
                           import { clamp } from "../../math/math.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import CanvasRenderer from "./../canvas/canvas_renderer.js";
                            * @import WebGLRenderer from "./../webgl/webgl_renderer.js";
                            */
                          diff --git a/docs/docs/melonjs/src/video/texture/atlas.js.html b/docs/docs/melonjs/src/video/texture/atlas.js.html
                          index 7700e7b97..f0bd48d89 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 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1896,6 +1896,10 @@
                                       456
                                     
                                   
                          +          
                        • + 457 +
                        • +
                          import Vector2d from "./../../math/vector2.js";
                           import Sprite from "./../../renderable/sprite.js";
                          @@ -1907,6 +1911,7 @@
                           import { parseAseprite } from "./parser/aseprite.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import NineSliceSprite from "./../../renderable/nineslicesprite.js";
                            */
                           
                          diff --git a/docs/docs/melonjs/src/video/texture/cache.js.html b/docs/docs/melonjs/src/video/texture/cache.js.html
                          index d00c0d5c2..d91e7dece 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 @@
                           
                          -
                          +
                           
                           
                             
                          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 2a958dbe5..477412ca0 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 d2f7775f7..8e6e1b882 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 8ae64e1ae..bae4fa18b 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 d26309206..3e51a0e59 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 4dc72ace3..f48bc4ab6 100644
                          --- a/docs/docs/melonjs/src/video/video.js.html
                          +++ b/docs/docs/melonjs/src/video/video.js.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          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 98e7dbe47..a28045d0e 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 53d013ba5..74703c7a5 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 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -976,10 +976,40 @@
                                       226
                                     
                                   
                          +          
                        • + 227 +
                        • + +
                        • + 228 +
                        • + +
                        • + 229 +
                        • + +
                        • + 230 +
                        • + +
                        • + 231 +
                        • + +
                        • + 232 +
                        • +
                          import VertexArrayBuffer from "../buffer/vertex.js";
                           import GLShader from "../glshader.js";
                           
                          +/**
                          + * additional import for TypeScript
                          + * @import WebGLRenderer from "./../webgl_renderer.js";
                          + * @import Matrix3d from "./../../../math/matrix3.js";
                          + */
                          +
                           /**
                            * @classdesc
                            * A base Compositor object.
                          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 50a849cee..ce59c456e 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 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -348,11 +348,36 @@
                                       69
                                     
                                   
                          +          
                        • + 70 +
                        • + +
                        • + 71 +
                        • + +
                        • + 72 +
                        • + +
                        • + 73 +
                        • + +
                        • + 74 +
                        • +
                          import primitiveVertex from "./../shaders/primitive.vert";
                           import primitiveFragment from "./../shaders/primitive.frag";
                           import Compositor from "./compositor.js";
                           
                          +/**
                          + * additional import for TypeScript
                          + * @import Point from "./../../../geometries/point.js";
                          + */
                          +
                           /**
                            * @classdesc
                            * A WebGL Compositor object. This class handles all of the WebGL state<br>
                          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 2a2dc3250..87439d8bd 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 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -1056,6 +1056,26 @@
                                       246
                                     
                                   
                          +          
                        • + 247 +
                        • + +
                        • + 248 +
                        • + +
                        • + 249 +
                        • + +
                        • + 250 +
                        • + +
                        • + 251 +
                        • +
                          import Vector2d from "../../../math/vector2.js";
                           import { isPowerOfTwo } from "../../../math/math.js";
                          @@ -1063,6 +1083,11 @@
                           import quadFragment from "./../shaders/quad.frag";
                           import Compositor from "./compositor.js";
                           
                          +/**
                          + * additional import for TypeScript
                          + * @import {TextureAtlas} from "./../../texture/atlas.js";
                          + */
                          +
                           // a pool of resuable vectors
                           let V_ARRAY = [
                               new Vector2d(),
                          diff --git a/docs/docs/melonjs/src/video/webgl/glshader.js.html b/docs/docs/melonjs/src/video/webgl/glshader.js.html
                          index 9562a780e..6604d81af 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 c45315578..a0a785c31 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 16bb38430..07e825b39 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 ce97aefb6..50091fce1 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 415a5a732..d0a5fb32e 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 93c45ca35..2ebefd7b0 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 57918eec9..9dc11d564 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 @@
                           
                          -
                          +
                           
                           
                             
                          @@ -5020,6 +5020,10 @@
                                       1237
                                     
                                   
                          +          
                        • + 1238 +
                        • +
                          import Color from "./../../math/color.js";
                           import Matrix2d from "./../../math/matrix2.js";
                          @@ -5034,6 +5038,7 @@
                           import { isPowerOfTwo } from "./../../math/math.js";
                           
                           /**
                          + * additional import for TypeScript
                            * @import Rect from "./../../geometries/rectangle.js";
                            * @import RoundRect from "./../../geometries/roundrect.js";
                            * @import Polygon from "./../../geometries/poly.js";
                          diff --git a/docs/docs/melonjs/state.html b/docs/docs/melonjs/state.html
                          index b6495bd8e..e7a1b36c1 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 8ba28874a..f7a4fe70f 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 511e49a8a..f34b50950 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 8e89160f5..72e8bcf58 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 0d0a19e75..b1459000a 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 6a244b986..ba408295e 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 793fd3d17..9294304be 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 4849a0179..3118b152d 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 559cd55ea..e1a336f51 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 a23fa62b0..92c8a6587 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 2fe912703..79e05066b 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 8047fa05c..3c9858677 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 3ccfee8d1..dcd3a1fc1 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 3d868d79b..0c3c6346e 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 b69054f2b..c1f1449a1 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 aca4dbbad..f7d767ae3 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 f2f00f072..dc8afdd8b 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 dd6c7f43d..b4e967c72 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 6653b4e6b..db33de4df 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 3e93073bc..85eb90806 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 6ef4c4e93..e7fb0e038 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 5f8c64237..76e304bfa 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 ee8038dae..ca39619b9 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 7058fb182..67221105b 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 a07cdaf85..19d261d6b 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 2152e74d0..cdb266ddb 100644
                          --- a/docs/docs/melonjs/video.html
                          +++ b/docs/docs/melonjs/video.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          diff --git a/docs/docs/melonjs/video/createCanvas.html b/docs/docs/melonjs/video/createCanvas.html
                          index 9a431ad94..176860429 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 76ea03199..80740adf7 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 f8cc46bb3..5d12532ad 100644
                          --- a/docs/docs/melonjs/video/init.html
                          +++ b/docs/docs/melonjs/video/init.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +
                           
                           
                             
                          diff --git a/docs/docs/melonjs/warning.html b/docs/docs/melonjs/warning.html
                          index e0c0c43de..b0abdceaf 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 8746018ea..a899077de 100644
                          --- a/docs/docs/settings.html
                          +++ b/docs/docs/settings.html
                          @@ -1,5 +1,5 @@
                           
                          -
                          +