vivaldi.zoom Modders API Reference
Use the vivaldi.zoom
to zoom the Vivaldi html UI.
Listeners
How to use listeners
Each listener type has the same functions, used for each listener API in the same way:
.addListener(function
callback)
Adds a function to a listener for an event
.removeListener(function
callback)
Removes a function to a listener for an event
.hasListener(function
callback)
Returns a boolean if a function is attached to a listener for an event
.hasListeners()
Returns a boolean if a listener has any attached functions
.dispatch()
Returns array of promises dispatched to the listener
#onDefaultZoomChanged
Fired when the default zoom changes.
Parameters:
- zoomlevel
number
The new zoom level
#onUIZoomChanged
Fired when the UI zoom changes.
Parameters:
- zoomlevel
number
The new UI zoom level
Methods
#setVivaldiUIZoom
⚠ NO DESCRIPTION PROVIDED
Parameters:
- zoomFactor
number
The new value for Vivaldi UI zoom factor.
#getVivaldiUIZoom
⚠ NO DESCRIPTION PROVIDED
#setDefaultZoom
⚠ NO DESCRIPTION PROVIDED
Parameters:
- zoomFactor
number
The new Vivaldi default global zoom factor.
#getDefaultZoom
⚠ NO DESCRIPTION PROVIDED