Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > getEdge

JsPlumbToolkit.getEdge() method

Gets an Edge by id, or if the given object is already an Edge, hands that back.

Signature:

getEdge(edgeId: string): Edge;

Parameters

ParameterTypeDescription
edgeIdstringID of the Edge to retrieve.

Returns:

Edge

The requested Edge, if found, otherwise null.