A dispatcher that emits an event whenever the state of the annotations has changed. The annotation state includes the annotation sets that are active and the annotations that belong to each set.
Activates an annotation set for the current session. This method will emit
an event on onStateChange when the annotation set has been added, and
return a promise the resolves with the new annotation state.
The ID of the annotation set.
A promise that resolves with the new annotation state.
Starts the automatic retrieval of annotation state. When a new annotation
state is retrieved, an event will be emitted on onStateChange.
The interval to poll for a new annotation state.
Stops the automatic retrieval of annotation state.
Performs a manual fetch of the annotation state. This method will emit an
event on onStateChange when the annotation set has been added, and return
a promise the resolves with the new annotation state.
Options to configure the fetch behavior. If an abort signal is given, then this will not emit a change event if the signal is aborted.
A promise that resolves with the new annotation state.
Deactivates an annotation set for the current session. This method will
emit an event on onStateChange when the annotation set has been added,
and return a promise the resolves with the new annotation state.
The ID of the annotation set.
A promise that resolves with the new annotation state.
The controller for managing the annotations of a scene and scene view.