Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > gather

Surface.gather() method

Gather the elements in the display. If focus is provided the elements will be gathered around it. Otherwise, the elements will be gathered around the computed center of all the elements.

Signature:

gather(focus?: string | Vertex): void;

Parameters

ParameterTypeDescription
focusstring | VertexOptional ID of a Vertex, or the Vertex itself, around which to gather elements.

Returns:

void