onHover for annotations


WebViewer(...).then(instance => {
  const { docViewer, annotManager } = instance;

  docViewer.on('mouseMove', function(evt) {
    var annot = annotManager.getAnnotationByMouseEvent(evt);
    if (annot) {
      console.log("hovering over " + annot.Id);
    }
  });
});