Interface ICanvasCallbacksMap<TM>

Event callbacks for canvas operations.

interface ICanvasCallbacksMap<TM = ICanvasMutableProps> {
    destroy: undefined;
    props: Partial<TM>;
    resize: undefined;
}

Type Parameters

Hierarchy (View Summary)

Properties

Properties

destroy: undefined

Triggered when the module is destroyed.

props: Partial<TM>

Triggered when the module's properties are updated. Receives the diff (changed keys and new values) as the first argument.

resize: undefined

Fires when the canvas is resized.