Extensions

Class: BaseDrawable

BaseDrawable()

Base drawable class

Constructor

new BaseDrawable()

Creates an instance of BaseDrawable.
Source:

Extends

Classes

BaseDrawable

Members

callbackAfterRender :function

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

callbackBeforeRender :function

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

(readonly) stage :StageContainer

Get StageContainer
Type:
Overrides:
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 *
Overrides:
Source:

destruct()

Destruct class
Overrides:
Source:

getBounds() → {Rectangle}

 Returns with bounds
   - Uses the matrix cache of the last rendered frame; changes made since then are not included
Source:
Returns:
Type
Rectangle

remove()

Remove Item from parent
Overrides:
Source:

update()

 Update color and transform values
   - A channel is recalculated only when the own attribute or the parent's version of that
     channel changed since the last update, and then gets a new version for the children
Overrides:
Source: