Class: PixiDisplayElement

phina.pixi.PixiDisplayElement(pixiObject, options)

new PixiDisplayElement(pixiObject, options)

Parameters:
Name Type Description
pixiObject PIXI.DisplayObject
options object
Properties:
Name Type Description
x number x position of this opject.
Source:

Extends

Methods

(private) _setUpInteraction() → {void}

Add interaction event to the element (temp)
Source:
Returns:
Type
void

activateInteraction() → {this}

Source:
Returns:
Type
this

addChild(child) → {this}

Add child to internal Pixi container
Parameters:
Name Type Description
child PIXI.DisplayObject | phina.pixi.PixiElement
Inherited From:
Source:
Returns:
Type
this

addFilter(filter, clear) → {this}

Set PIXI.Filter to the PIXI element
Parameters:
Name Type Description
filter PIXI.Filter
clear boolean clears the filters
Source:
Returns:
Type
this

clearFilter() → {this}

Source:
Returns:
Type
this

getPixiChildren() → {Array}

Get all children in Pixi container
Parameters:
Type Description
void
Inherited From:
Source:
Returns:
Type
Array

removeChild(child) → {this}

Remove child from internal Pixi container
Parameters:
Name Type Description
child PIXI.DisplayObject | phina.pixi.PixiElement
Inherited From:
Source:
Returns:
Type
this

setAlpha() → {this}

Source:
Returns:
Type
this

setFilters(filters) → {this}

Set PIXI.filters with array or rest paramenter
Parameters:
Name Type Description
filters Array.<PIXI.Filter> | PIXI.Filter
Source:
Returns:
Type
this

setInteractive() → {this}

Source:
Returns:
Type
this

setOrigin() → {this}

Source:
Returns:
Type
this

setPosition() → {this}

Source:
Returns:
Type
this

setRotation() → {this}

Source:
Returns:
Type
this

setScale() → {this}

Source:
Returns:
Type
this

setSize() → {this}

Source:
Returns:
Type
this

setVisible() → {this}

Source:
Returns:
Type
this