Object associated with each single-side and two-side view, used to control and synchronize the zoom level.
Methods
addScaleChangeListener(listener)
Registers a listener called when the zoom level changes.
Parameters:
Name | Type | Description |
---|---|---|
listener |
Zoomer~scaleChangeListener | listener to register |
getZoom() → {number}
Gets the current zoom level.
Returns:
the current zoom level
- Type
- number
resetZoom()
Resets the zoom level.
setZoom(scale)
Sets the current zoom level.
Parameters:
Name | Type | Description |
---|---|---|
scale |
number | the new zoom level |
zoomIn()
Increases the zoom level.
zoomOut()
Decreases the zoom level.
Type Definitions
scaleChangeListener()
Listener for scale change events. Has no parameters.