Interaction handler for zooming the canvas, which is achieved by scrolling the mouse wheel on the canvas.
For examples, head to the Zoom Interaction documentation page.
Creates a new instance of the zoom interaction handler.
The NVL instance to attach the interaction handler to
Internal
Optional
Rest
Removes the relevant event listeners from the canvas.
Remove a callback for a given event of type.
The name of the event
Add or update a callback for a given event of type.
The callback to be called when the event is triggered
Interaction handler for zooming the canvas, which is achieved by scrolling the mouse wheel on the canvas.
For examples, head to the Zoom Interaction documentation page.