Methods
Viewer
addEventListener
adds an event listener to the viewer instance example usage const eventcallback = (event) => { console log(event); }; const listener = viewer2d addeventlistener("eventname", eventcallback); parameters eventname name of the viewer event to listen for valid event names can be found in each event page true left unhandled content type left unhandled content type left unhandled content type left unhandled content type eventcallback function invoked when the event is triggered the function receives an event object as an argument which includes data specific to the event type true left unhandled content type left unhandled content type left unhandled content type left unhandled content type return value the event listener object true left unhandled content type left unhandled content type properties true left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type left unhandled content type