Events

annotations.change

Detailed viewer event reference for annotations.change.

Summary

  • Category: Annotations
  • Event: annotations.change
  • Trigger: Fires after annotation collections change.

Payload

[];

Payload fields

Payload is not an object literal. Use the declaration above and runtime guards when handling this event.

Subscription example

function onEvent(payload) {
  console.log('annotations.change', payload);
}

instance.addEventListener('annotations.change', onEvent);
instance.removeEventListener('annotations.change', onEvent);