Skip to main content

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

ParameterTypeDescription
objstring | Node | ElementNode id, node, or DOM element.
xnumberAmount to move in X axis
ynumberAmount to move in Y axis
eventHandlersRecord<string, Function>

Returns:

void