Skip to main content

Home > @jsplumbtoolkit/browser-ui > DropFunction

DropFunction type

Defines the function invoked when an item is dropped onto an existing vertex.

Signature:

export declare type DropFunction<T> = (data: T, target: Node | Group, draggedElement?: Element, e?: Event, position?: PointXY, canvasLocation?: PointXY, targetLocation?: PointXY, locationOnTarget?: PointXY) => void;

References: Node, Group, PointXY