Home > @jsplumbtoolkit/core > Path > eachVertex
Path.eachVertex() method
Iterates through the Nodes/Groups/Ports in the path one step at a time.
Signature:
eachVertex(fn: (idx: number, v: Vertex) => any): void;
Parameters
Parameter | Type | Description |
---|---|---|
fn | (idx: number, v: Vertex) => any | Function to call for each step. |
Returns:
void