Skip to main content

Home > @jsplumbtoolkit/core > Selection > eachEdge

Selection.eachEdge() method

Iterates the Edges in the selection, calling the supplied callback for each item. The callback's signature should be function(index, item).

Signature:

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

Parameters

ParameterTypeDescription
fn(idx: number, e: Edge) => anyFunction to call with each item.

Returns:

void