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:

parent :Container

Set/Get parent
Type:
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
Overrides:
Source:
Returns:
Type
Rectangle

getCorners() → {Array.<Point>}

Returns with the calculated corder positions
Source:
Returns:
Type
Array.<Point>

remove()

Remove Item from parent
Overrides:
Source:

update()

Update color and transform values
Overrides:
Source: