Percept
    Preparing search index...

    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

    Index
    • Parameters

      • canvas: Canvas

        The Canvas object

      • OptionalglobalUpdate: Function

        A function that will be called per frame

      Returns Drawing

    canvas: Canvas

    The Canvas object

    colorToNode: { [key: string]: Node }
    globalUpdate?: Function

    A function that will be called per frame

    • Removes a View from this drawing

      Parameters

      • nodeOrID: string | Node

        A View or its id

      Returns void