Protected
_zoomProtected
_zoomProtected
settingsProtected
throttleProtected
wrapperProtected
zoomProtected
zoomProtected
zoomReturns the zoom level
Returns the zoom levels
Protected
initSet-up the zoom controls
a ZoomManagerSettings
object.
Private
setSets the available zoomLevels and new zoom to the provided values.
the new array of zoomLevels that can be used.
Optional
newZoom: 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
Protected
wrapProtected
zoomEverytime 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.
Generated using TypeDoc
Place the settings.element in a zoom wrapper and init zoomControls.