Protected_zoomProtected_zoomProtectedsettingsProtectedthrottleProtectedwrapperProtectedzoomProtectedzoomProtectedzoomReturns the zoom level
Returns the zoom levels
ProtectedinitSet-up the zoom controls
a ZoomManagerSettings object.
Call this method for the browsers not supporting ResizeObserver, everytime the table height changes, if you know it. If the browsert is recent enough (>= Safari 13.1) it will just be ignored.
Set the zoom level. Ideally, use a zoom level in the zoomLevels range.
zool level
Changes the color of the zoom controls.
Sets the available zoomLevels and new zoom to the provided values.
the new array of zoomLevels that can be used.
OptionalnewZoom: numberif provided the zoom will be set to this value, if not the last element of the zoomLevels array will be set as the new zoom
ProtectedwrapWraps an element around an existing DOM element
the wrapper element
the existing element
Simulates a click on the Zoom-in button.
ProtectedzoomEverytime the element dimensions changes, we update the style. And call the optional callback.
Unsafe method as this is not protected by throttle. Surround with advThrottle(() => this.zoomOrDimensionChanged(), this.throttleTime, { leading: true, trailing: true, }) to avoid spamming recomputation.
Simulates a click on the Zoom-out button.
Place the settings.element in a zoom wrapper and init zoomControls.