Disposes any resources associated with the object.
Called by the viewer when the interaction handler is registered with the viewer. Used to setup any necessary event listeners to handle user interactions.
The internal viewer element to add event listeners to.
The API to modify internal interaction state.
An
InteractionHandler
provides a mechanism for customizing the mouse and touch handling in the viewer.When an interaction handler is registered with the viewer, it'll call the
initialize()
method and pass it the internal canvas element and an instance of anInteractionApi
that can be used to modify the internal interaction state.