Skip to main content

Home > @jsplumbtoolkit/core > Path > eachNode

Path.eachNode() method

Iterates through the Nodes in the path one step at a time.

Signature:

eachNode(fn: (i: number, n: Node) => void): void;

Parameters

ParameterTypeDescription
fn(i: number, n: Node) => voidFunction to call for each step.

Returns:

void