Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Drawing

A Drawing is essentially a scene-graph consisting of all the Views added to it using add method, it also registers event listeners on canvasElement

Hierarchy

  • Drawing

Index

Constructors

  • Parameters

    • canvas: Canvas

      The Canvas object

    • Optional globalUpdate: Function

      A function that will be called per frame

    Returns Drawing

Properties

canvas: Canvas
colorToNode: {}

Type declaration

globalUpdate?: Function

Methods

  • dispose(): void
  • remove(nodeOrID: string | Node): void