Events

annotationNote.hover

Detailed viewer event reference for annotationNote.hover.

Summary

  • Category: Annotations
  • Event: annotationNote.hover
  • Trigger: Fires when a note annotation is hovered.

Payload

[ { annotationId?: string; pageIndex?: number; nativeEvent?: PointerEvent }, ]

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('annotationNote.hover', payload);
}

instance.addEventListener('annotationNote.hover', onEvent);
instance.removeEventListener('annotationNote.hover', onEvent);