Skip to main content

Home > @jsplumbtoolkit/core > JsPlumbToolkit > eachEdge

JsPlumbToolkit.eachEdge() method

Iterates through all Edges in the Toolkit one at a time. You should not perform destructive editing of the dataset inside one of these loops.

Signature:

eachEdge(fn: (idx: number, edge: Edge) => void): void;

Parameters

ParameterTypeDescription
fn(idx: number, edge: Edge) => voidA function that takes (index, edge) as arguments and is applied for every Node in the Toolkit instance.

Returns:

void