Interface IDrawingContainer<T>

Implemented by ISheetModel

interface IDrawingContainer<T> {
    addDrawing(options?): IDrawingModel<DrawingJSON>;
    addEventListener(type, listener, options?): RemoveListener;
    getDrawingsCount(): number;
    searchDrawings(options?): IDrawingModel<DrawingJSON>[];
}

Type Parameters

  • T = any

Hierarchy (view full)

Implemented by

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

  • Return the total drawings available. This is useful for quick escape of searching drawings.

    Returns number