DOM.getAspectRatio()

<static> getAspectRatio(object) → {number} Get the Visual viewport aspect ratio (or the aspect ratio of an object or element) Parameters Name Type Argument Default Description object DOMElement | Object <optional> (visualViewport) The object to determine the aspect ratio for. Must have public width and height properties or methods. Returns number - The aspect ratio. Source code: utils/DOM.js (Line 100)

DOM.documentBounds

<static, readonly> documentBounds : Phaser.Rectangle The size of the document / Layout viewport. This incorrectly reports the dimensions in IE. The properties change dynamically. Properties: Name Type Description width number Document width in pixels. height number Document height in pixels. Source code: utils/DOM.js (Line 274)

DOM#DOM

new DOM() DOM utility class. Provides a useful Window and Element functions as well as cross-browser compatibility buffer. Some code originally derived from verge.Some parts were inspired by the research of Ryan Van Etten, released under MIT License 2013. Source code: utils/DOM.js (Line 18)

DisplayObjectContainer#width

width : number The width of the displayObjectContainer, setting this will actually modify the scale to achieve the value set Source code: pixi/display/DisplayObjectContainer.js (Line 571)

DisplayObjectContainer#swapChildren()

swapChildren(child, child2) Swaps the position of 2 Display Objects within this container. Parameters Name Type Description child DisplayObject - child2 DisplayObject - Source code: pixi/display/DisplayObjectContainer.js (Line 85)

DisplayObjectContainer#setChildIndex()

setChildIndex(child, index) Changes the position of an existing child in the display object container Parameters Name Type Description child DisplayObject The child DisplayObject instance for which you want to change the index number index Number The resulting index number for the child display object Source code: pixi/display/DisplayObjectContainer.js (Line 132)

DisplayObjectContainer#removeChildren()

removeChildren(beginIndex, endIndex) Removes all children from this container that are within the begin and end indexes. Parameters Name Type Description beginIndex Number The beginning position. Default value is 0. endIndex Number The ending position. Default value is size of the container. Source code: pixi/display/DisplayObjectContainer.js (Line 213)

DisplayObjectContainer#removeChildAt()

removeChildAt(index) → {DisplayObject} Removes a child from the specified index position. Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child that was removed. Source code: pixi/display/DisplayObjectContainer.js (Line 191)

DisplayObjectContainer#removeChild()

removeChild(child) → {DisplayObject} Removes a child from the container. Parameters Name Type Description child DisplayObject The DisplayObject to remove Returns DisplayObject - The child that was removed. Source code: pixi/display/DisplayObjectContainer.js (Line 171)

DisplayObjectContainer#ignoreChildInput

ignoreChildInput : boolean If ignoreChildInput is false it will allow this objects children to be considered as valid for Input events. If this property is true then the children will not be considered as valid for Input events. Note that this property isn't recursive: only immediate children are influenced, it doesn't scan further down. Source code: pixi/display/DisplayObjectContainer.js (Line 26)