Provide a normalized way to get size, position, scale values as well as provide reference for different geometry classes.
contains
container
child
If a container contains a child
container
PIXI.DisplayObjectContainer
The container
child
PIXI.DisplayObject
The object to test
If the child contained within the container
getBitmapSize
bitmap
Get the original size of a bitmap
bitmap
PIXI.Bitmap
The bitmap to measure
The width (w) and height (h) of the actual bitmap size
getLocalBounds
object
Gets the object's boundaries in its local coordinate space, without any scaling or rotation applied.
object
PIXI.DisplayObject
The createjs display object
A rectangle with additional right and bottom properties.
getPosition
object
[direction]
Normalize the object position getting
object
PIXI.DisplayObject
The PIXI display object
[direction]
String
optional
Either "x" or "y", default is an object of both
getScale
object
[direction]
Normalize the object scale
object
PIXI.DisplayObject
The PIXI display object
[direction]
String
optional
Either "x" or "y" to return a specific value
removeChildren
container
Remove all children from a display object
container
PIXI.DisplayObjectContainer
The display object container
setHitArea
object
shape
Set the hit area of the shape
object
PIXI.DisplayObject
The PIXI Display object
shape
Object
The geometry object
Return the object for chaining
setPivot
object
pivot
[direction]
Set the pivot or registration point of an object
Return the object for chaining
setPosition
object
position
[direction]
Normalize the object position setting
Return the object for chaining