Skip to main content

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#

ParameterTypeDescription
fn(i: number, e: Edge) => anyFunction to call for each step.

Returns:

void