Skip to main content

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#

ParameterTypeDescription
fn(idx: number, v: Vertex) => anyFunction to call for each step.

Returns:

void