Working with Annotation Pages
The preferred way of dealing with large numbers of annotations is to separate them into multiple AnnotationPage resources. For example, one AnnotationPage for the English transcription, another AnnotationPage for the French translation, and another page for the German translation.
AnnotationPages can be used to partition annotations for any purpose, and should have labels to describe what they are for.
Canvas Panel can then load, display and style whole annotation pages - that is, display all the annotations in one AnnotationPage, and style all the annotations in one AnnotationPage.
Canvas Panel's AnnotationPageManager
has the following helpers:
const allPages = cp.annotationPageManager.availablePageIds;
const activePages = cp.annotationPageManager.enabledPageIds;
cp.annotationPageManager.setPageEnabled(myPageId); // make visible
cp.annotationPageManager.setPageDisabled(myPageId); // make invisible