Interface: Zoomer

Zoomer

Object associated with each single-side and two-side view, used to control and synchronize the zoom level.
Source:

Methods

addScaleChangeListener(listener)

Registers a listener called when the zoom level changes.
Parameters:
Name Type Description
listener Zoomer~scaleChangeListener listener to register
Source:

getZoom() → {number}

Gets the current zoom level.
Source:
Returns:
the current zoom level
Type
number

resetZoom()

Resets the zoom level.
Source:

setZoom(scale)

Sets the current zoom level.
Parameters:
Name Type Description
scale number the new zoom level
Source:

zoomIn()

Increases the zoom level.
Source:

zoomOut()

Decreases the zoom level.
Source:

Type Definitions

scaleChangeListener()

Listener for scale change events. Has no parameters.
Source: