Home > @jsplumbtoolkit/browser-ui > Surface > zoomToSelection
#
Surface.zoomToSelection() methodZooms 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;
#
ParametersParameter | Type | Description |
---|---|---|
params | { fill?: number; selection?: Selection; filter?: (o: Base) => boolean | ObjectData; doNotZoomIfVisible?: boolean; doNotAnimate?: boolean; } | Optional method params |
Returns:
void