Skip to main content

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

Surface.zoomToSelection() method

Zooms the display so that the current selected nodes are all visible, optionally animating the transition.

Signature:

zoomToSelection(params: {
fill?: number;
selection?: Selection;
filter?: (o: Base) => boolean | ObjectData;
doNotZoomIfVisible?: boolean;
doNotAnimate?: boolean;
}): void;

Parameters

ParameterTypeDescription
params{ fill?: number; selection?: Selection; filter?: (o: Base) => boolean | ObjectData; doNotZoomIfVisible?: boolean; doNotAnimate?: boolean; }Optional method params

Returns:

void