Interface IDrawingContainerView<T>

interface IDrawingContainerView<T> {
    drawingSelection: readonly IDrawingModel<DrawingJSON>[];
    addEventListener(type, listener, options?): RemoveListener;
    selectDrawing(drawing, addToSelection?): void;
    unselectDrawing(drawing): void;
}

Type Parameters

  • T = any

Hierarchy (view full)

Properties

drawingSelection: readonly IDrawingModel<DrawingJSON>[]

The drawing selection

Methods

  • Add a listener. This is very similar to default javascript listeners except the offer a few additional options and there is no remove listener.

    These add listeners return a function that can be called to remove the listener. Additionally they honor transactional boundaries.

    Listeners are fired in the order that they are added.

    Parameters

    Returns RemoveListener

  • Select a drawing object.

    Parameters

    Returns void

  • Returns the drawing from the selection.

    Parameters

    Returns void