_assertManagedConnectionCount(el, count) | | |
_assertManagedEndpointCount(el, count) | | |
_registerDiv(div) | | |
addDiv(id, parent, className, x, y, w, h) | | Create a div element and append it either to the jsPlumb container or an element of your choosing. |
addDivs(ids, parent) | | |
assertEndpointCount(el, count) | | |
assertManagedConnectionCount(el, count) | | Asserts that the number of connections registered for a given element matches an expectation. |
assertManagedEndpointCount(el, count) | | Asserts that the number of endpoints registered for a given element matches an expectation. |
aSyncDragConnection(d1, d2, events) | | Drags a connection, using the mouse, from one element or endpoint to another element or endpoint, firing each stage after a timeout. |
aSyncDragNodeBy(el, x, y, events) | | Drag an element, asynchronously, by a given delta in x and y. "Asynchronously" here means that the initial mousedown event is fired on the current tick, followed by any beforeMouseMove handler, and then a timeout is set, the callback for which performs the mouse move, followed by a call to any beforeMouseUp handler. Then another timeout is set, the callback for which performs the mouseup and calls any after handler. |
cleanup() | | Cleanup the support class, removing all created divs and destroying the associated jsplumb instance. |
clickOnConnection(connection) | | Fire a click event on the DOM element that represents the given connection. |
clickOnElement(element, clickCount) | | Fire a click event on the given element |
clickOnOverlay(connection, overlayId) | | Fire a click event on a connection's overlay |
dblClickOnConnection(connection) | | Fire a double click event on the DOM element that represents the given connection. |
dblClickOnElement(element) | | Fire a double click event on the given element |
dblClickOnOverlay(connection, overlayId) | | Fire a double click event on a connection's overlay |
dblTapOnConnection(connection) | | Fire a double tap event on the DOM element that represents the given connection. |
dblTapOnElement(element) | | Fire a double tap event (mousedown + mouseup, twice) on the given element |
dblTapOnOverlay(connection, overlayId) | | Fire a double tap event on a connection's overlay |
detachAndReattachConnection(e, events) | | Detach and reattach a connection from the given Endpoint by synthesizing a mousedown event, dragging to a distant point, dragging it back to the endpoint, and releasing the mouse. |
detachConnection(e, events) | | Detach a connection from the given Endpoint by synthesizing a mousedown event, dragging to a distant point, and releasing the mouse. |
detachConnectionByTarget(c, events) | | Detach a connection by simulating the mouse dragging the target endpoint off and dropping it in whitespace. |
dragAndAbortConnection(d1) | | Drags a connection from the given endpoint or element, but aborts the operation by triggering a mouseup in whitespace. |
dragANodeAround(el, functionToAssertWhileDragging, assertMessage) | | Drags a node around, a random number of steps up to 50, by a random delta in x and y each time. After the node has been randomly moved around, a mouseup event is fired. |
dragConnection(d1, d2, mouseUpOnTarget, events) | | Drags a connection, using the mouse, from one element or endpoint to another element or endpoint. |
dragNodeBy(el, x, y, events) | | Drag an element by a given delta in x and y |
dragNodeTo(el, x, y, events) | | Drag an element to a given x and y location |
dragToGroup(el, targetGroupId, events) | | Drag an element to a given group |
fireEventOnConnection(connection, events) | | Fire one or more events on the DOM element that represents the given connection. |
fireEventOnElement(e, events) | | Fire one or more events on some DOM element |
fireEventOnEndpoint(ep, events) | | Fire one or more events on the DOM element that represents the given endpoint. |
fireEventOnOverlay(connection, overlayId, event) | | Fire an event on an connection's overlay |
getAttribute(el, att) | | |
getCanvas(epOrEl) | | Gets the DOM element used to represent the given Endpoint. |
getConnectionCanvas(c) | | Gets the DOM element used to represent the given connection. |
getEndpointCanvas(ep) | | Gets the DOM element used to represent the given Endpoint. |
getOverlayCanvas(overlay) | | Gets the DOM element that represents the given overlay. |
head(obj) | | Get the value corresponding to the first key found in an object. |
length(obj) | | Get the number of keys in an object |
makeContent(s) | | Make a text node |
makeEvent(el) | | Create an object that models an event that occurs in the middle of the given element. This does not return a real event, just an object with sufficient properties to use as a mouse event. |
relocate(conn, idx, newEl, events) | | Relocate either the source or the target of the given connection to a different element. |
relocateSource(conn, newEl, events) | | Relocate the source of the given connection onto a different element |
relocateTarget(conn, newEl, events) | | Relocate the target of the given connection onto a different element |
tapOnConnection(connection) | | Fire a tap event on the DOM element that represents the given connection. |
tapOnElement(element) | | Fire a tap event (mousedown + mouseup) on the given element |
tapOnOverlay(connection, overlayId) | | Fire a tap event on a connection's overlay |
uuid() | | Get a UUID. |
within(val, target, msg) | | Helper to test that a value is the same as some target, within our tolerance. Sometimes the trigonometry stuff needs a little bit of leeway. |