Skip to main content

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

jsPlumbToolkitTestHarness.dragElementToCanvas() method

Drag the given element onto the canvas, optionally at a specific x,y. Use this when you want to test drag/drop from some palette.

Signature:

dragElementToCanvas(el: HTMLElement, x: number, y: number): void;

Parameters

ParameterTypeDescription
elHTMLElementElement to drop onto the canvas.
xnumberOptional, defaults to 250.
ynumberOptional, defaults to 250.

Returns:

void