Skip to main content

Home > @jsplumbtoolkit/core > Selection > eachVertex

Selection.eachVertex() method

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

Signature:

eachVertex(fn: (idx: number, v: Vertex) => any): void;

Parameters

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

Returns:

void