Skip to main content

Home > @jsplumbtoolkit/test-support > jsPlumbToolkitTestHarness > dragNodeTo

jsPlumbToolkitTestHarness.dragNodeTo() method

Drag the given Node to the given [x,y], which are canvas coordinates.

Signature:

dragNodeTo(obj: string | Node | Element, x: number, y: number): void;

Parameters

ParameterTypeDescription
objstring | Node | ElementNode id, node, or DOM element.
xnumberLocation on canvas in X axis to position top left corner of the node.
ynumberLocation on canvas in Y axis to position top left corner of the node.

Returns:

void