onHover for annotations


WebViewer(...).then(instance => {
  const { documentViewer, annotationManager } = instance.Core;

  documentViewer.addEventListener('mouseMove', function(evt) {
    const annot = annotationManager.getAnnotationByMouseEvent(evt);
    if (annot) {
      console.log("hovering over " + annot.Id);
    }
  });
});