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
Parameter | Type | Description |
---|---|---|
focus | string | Vertex | Optional ID of a Vertex, or the Vertex itself, around which to gather elements. |
Returns:
void