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
Parameter | Type | Description |
---|---|---|
params | { fill?: number; selection?: Selection; filter?: (o: Base) => boolean | ObjectData; doNotZoomIfVisible?: boolean; doNotAnimate?: boolean; } | Optional method params |
Returns:
void