Class: Item

Item()

Item

Constructor

new Item()

Creates an instance of Item.
Source:

Extends

Classes

Item

Members

callback :function

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

parent :Container

Set/Get parent
Type:
Source:

parent

Set/Get parent
Source:

(readonly) stage :StageContainer

Get StageContainer
Type:
Source:

(static) TYPE

Type "item"
Source:

Methods

callEventHandler(event)

 Handle event
   - It can handle mouse events if the item is interactive and has [onmouseover, onmouseout, onmousemove, onmousedown, onmouseup, onclick, ontouchstart, ontouchmove, touchend] function
Parameters:
Name Type Description
event *
Overrides:
Source:

destruct()

Destruct class
Overrides:
Source:

getBounds() → {Rectangle}

Returns with the Item bounds
Source:
Returns:
Type
Rectangle

update()

Update ItemProps
Source: