Skip to main content

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

Surface.centerOnAndZoom() method#

Center on the current object and zoom in on it.

Signature:

centerOnAndZoom(element: any, fillRatio?: number): void;

Parameters#

ParameterTypeDescription
elementany
fillRationumber

Returns:

void