Class: Item

Item()

Item

Constructor

new Item()

Creates an instance of Item.
Properties:
Name Type Description
TYPE Item.Type
matrixCache Array.<number>
colorCache Array.<number>
interactive boolean
renderable boolean
transform ItemTransformProps
color ColorProps
alpha number
transformUpdated boolean
colorUpdated boolean
callbackBeforeRender function
callbackAfterRender function
Source:

Classes

Item

Members

callbackAfterRender :function

 Set/Get after render callback
   - It will be called after the Item rendered
Type:
  • function
Source:

callbackBeforeRender :function

 Set/Get before render callback
   - It will be called before the Item rendered
Type:
  • function
Source:

parent :Container

Set/Get parent
Type:
Source:

(readonly) stage :StageContainer

Get StageContainer
Type:
Source:

(static) RENDERING_TYPE

Type "item"
Source:

Methods

callEventHandler(event)

 Handle event
   - It can handle mouse events if the item is interactive and has [
     onPointerOver,
     onPointerOut,
     onPointerMove,
     onPointerDown,
     onPointerUp,
     onPointerClick
   ] function
Parameters:
Name Type Description
event *
Source:

destruct()

Destruct class
Source:

getBounds() → {Rectangle}

Returns with the Item bounds
Source:
Returns:
Type
Rectangle

remove()

Remove Item from parent
Source:

update()

Update color and transform values
Source: