Skip to main content

Home > @jsplumbtoolkit/core > Path > getVertex

Path.getVertex() method

Retrieve the specified vertex from the path

Signature:

getVertex(obj: string | Vertex): Vertex;

Parameters

ParameterTypeDescription
objstring | VertexEither a vertex ID or a node/group/port.

Returns:

Vertex

A Vertex, if the given vertex is in the path, otherwise null.