Home > @jsplumbtoolkit/core > Path > eachEdge
Path.eachEdge() method
Iterates through the Edges in the path one step at a time. There is always one fewer Edges than Nodes/Ports.
Signature:
eachEdge(fn: (i: number, e: Edge) => any): void;
Parameters
Parameter | Type | Description |
---|---|---|
fn | (i: number, e: Edge) => any | Function to call for each step. |
Returns:
void