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
Parameter | Type | Description |
---|---|---|
edgeData | ObjectData | Edge'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".