Skip to main content

Home > @jsplumbtoolkit/core > Path > eachGroup

Path.eachGroup() method#

Iterates through the Groups in the path one step at a time.

Signature:

eachGroup(fn: (i: number, g: Group) => void): void;

Parameters#

ParameterTypeDescription
fn(i: number, g: Group) => voidFunction to call for each step.

Returns:

void