Skip to main content

Home > @jsplumbtoolkit/drop > CanvasDropFunction

CanvasDropFunction type

Defines the function invoked when an item is dropped onto whitespace in the canvas.

Signature:

export declare type CanvasDropFunction<T> = (data: T, canvasPosition: PointXY, draggedElement?: Element, e?: Event, position?: PointXY, elementSize?: Size) => void;