Home > @jsplumbtoolkit/test-support > jsPlumbToolkitTestHarness > dragANodeAround
jsPlumbToolkitTestHarness.dragANodeAround() method
Randomly drag a node around. Can be useful to ensure the model is being updated, or you're getting callbacks you expect, etc. We use this internally when we just want a node to move and we don't care where it moves to.
Signature:
dragANodeAround(obj: Element | Connection | string | Node | Group | Edge | ObjectData): void;
Parameters
Parameter | Type | Description |
---|---|---|
obj | Element | Connection | string | Node | Group | Edge | ObjectData |
Returns:
void