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
| Parameter | Type | Description |
|---|---|---|
| obj | string | Node | Element | Node id, node, or DOM element. |
| x | number | Location on canvas in X axis to position top left corner of the node. |
| y | number | Location on canvas in Y axis to position top left corner of the node. |
Returns:
void