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 | Vertex

Returns:

void