Home > @jsplumbtoolkit/test-support > jsPlumbToolkitTestHarness > dragNodeBy
jsPlumbToolkitTestHarness.dragNodeBy() method
Drag the given Node by the given x/y amounts.
Signature:
dragNodeBy(obj: string | Node | Element, x: number, y: number, eventHandlers?: Record<string, Function>): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| obj | string | Node | Element | Node id, node, or DOM element. |
| x | number | Amount to move in X axis |
| y | number | Amount to move in Y axis |
| eventHandlers | Record<string, Function> |
Returns:
void