Drags a connection, using the mouse, from one element or endpoint to another element or endpoint.
dragConnection(d1: Element | Endpoint, d2: Element | Endpoint, mouseUpOnTarget?: boolean, events?: EventHandlers<Connection>): Connection;
|d1||Element | Endpoint|
|d2||Element | Endpoint|
|mouseUpOnTarget||boolean||If true, the mouseup event is posted on the target element. By default the mouseup event is fired on the document.|
|events||EventHandlers<Connection>||Map of event handlers for injecting tests into the lifecycle.|