Home > @jsplumbtoolkit/core > JsPlumbToolkit > findGraphObject
JsPlumbToolkit.findGraphObject() method
Finds the object that matches the given spec.
Signature:
findGraphObject(spec: string | Vertex | Edge): Vertex | Edge | Graph;
Parameters
Parameter | Type | Description |
---|---|---|
spec | string | Vertex | Edge | If a string, a Node/Port matching that id is retrieved. Otherwise if spec is already a Graph object (Node or Port), it is returned. |
Returns: