Class: PixiLayer

phina.pixi.PixiLayer(params)

new PixiLayer(params)

A layer class which has a pixi's renderer to draw children by itself.
pixi側rendererをもち、自分自身で子要素を描画できるレイヤークラス
Parameters:
Name Type Description
params Object todo
Source:

Extends

Methods

(private) _calcWorldMatrix() → {void}

Defined to get along with phina's drawing process
Source:
Returns:
Type
void

(private) _setUpInteraction() → {void}

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

activateInteraction() → {this}

Inherited From:
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
Inherited From:
Source:
Returns:
Type
this

clearFilter() → {this}

Inherited From:
Source:
Returns:
Type
this

draw() → {void}

Draw the renderer view
Source:
Returns:
Type
void

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}

Inherited From:
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
Inherited From:
Source:
Returns:
Type
this

setInteractive() → {this}

Inherited From:
Source:
Returns:
Type
this

setOrigin() → {this}

Inherited From:
Source:
Returns:
Type
this

setPosition() → {this}

Inherited From:
Source:
Returns:
Type
this

setRotation() → {this}

Inherited From:
Source:
Returns:
Type
this

setScale() → {this}

Inherited From:
Source:
Returns:
Type
this

setSize() → {this}

Inherited From:
Source:
Returns:
Type
this

setVisible() → {this}

Inherited From:
Source:
Returns:
Type
this