Home > @jsplumbtoolkit/core > Path > getVertex
Path.getVertex() method
Retrieve the specified vertex from the path
Signature:
getVertex(obj: string | Vertex): Vertex;
Parameters
Parameter | Type | Description |
---|---|---|
obj | string | Vertex | Either a vertex ID or a node/group/port. |
Returns:
A Vertex, if the given vertex is in the path, otherwise null.