A reply was added (with its direct parent and the root annotation of the thread).
info.source: 'pagesUpdated' for annotations deleted together with a deleted page (not recorded in undo history).
const { annotationManager } = instance.Core;
annotationManager.addEventListener('annotationChanged', (annotations, action, { imported }) => {
if (imported)
return; // loaded from the document or imported from XFDF
annotations.forEach(annot => console.log(action, annot.Id, annot.PageNumber));
});
Annotations were deselected.
An annotation was double-clicked.
The focused annotation changed (null when focus was cleared).
Annotations were hidden or shown.
Annotations of a page were drawn.
Annotations were selected or deselected.
A reply was deleted.
sign completed: the signed file, field name and signature field.
The value of a form field changed.
The file data of a file attachment annotation is available.
The contents of a note were changed with setNoteContents.
The current user, admin or read-only state changed (fired every time by setCurrentUser / promote / demote / enable / disableReadOnlyMode, without arguments).
Form widget highlighting was turned on or off.
Events of AnnotationManager and their listener arguments.