Creates a new empty AnnotationLayer.
Adds a primitive to the annotation layer and triggers an update notification.
The VisualPrimitive to add.
Removes all annotations from the layer.
Returns the current ordered list of annotation primitives.
All active VisualPrimitives in draw order.
Registers a callback invoked whenever the annotation list changes.
Called (with no arguments) after any mutation.
Removes a primitive by its id field.
The unique ID of the primitive to remove.
true if a primitive with that ID was found and removed.
Replaces all current annotations with a new set.
The replacement list of VisualPrimitives.
Stores and exposes tutor annotation primitives for overlay rendering.