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
Parameter | Type | Description |
---|---|---|
fn | (idx: number, edge: Edge) => void | A function that takes (index, edge) as arguments and is applied for every Node in the Toolkit instance. |
Returns:
void