Home > @jsplumbtoolkit/browser-ui > 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
Parameter | Type | Description |
---|---|---|
fn | (idx: number, v: Vertex) => any | Function to call with each item. |
Returns:
void