Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > getEdgeType

JsPlumbToolkit.getEdgeType() method

Gets the type of the Edge represented by the given JS object.

Signature:

getEdgeType(edgeData: ObjectData): string;

Parameters

ParameterTypeDescription
edgeDataObjectDataEdge's data. Note: this is NOT an Edge object, it is the backing data. You can use getType to get the type for some Toolkit object.

Returns:

string

Either the Edge's type, if set, or "default".