Home > @jsplumbtoolkit/core > Graph > getVertexByPortId
Graph.getVertexByPortId() method
Looks up a vertex identified by the port id, which is in full port id (vertexId.portId) format, returning null if nothing found. (Note that we show full port id format as vertexId.portId, but the '.' is just the default portSeparator; it is possible to change that to some other character)
Signature:
getVertexByPortId(portId: string): Vertex;
Parameters
Parameter | Type | Description |
---|---|---|
portId | string | ID of the port to find a vertex for. |
Returns: