Create a new AnnotationManager
The Three.js scene to add markers to
Optional configuration for appearance and behavior
Render annotations in the scene
Array of annotations to render
Select one or more annotations
Array of annotation IDs to select
If true, add to selection; if false, replace selection
Toggle selection state of an annotation
Annotation ID to toggle
Clear all selections
Get array of selected annotation IDs
Check if an annotation is selected
Update marker scales for consistent screen-space size Should be called in the render loop
Current camera (perspective or orthographic)
Height of the canvas in pixels
Get the marker mesh for an annotation (for raycasting)
Find annotation ID from a marker mesh
Register a callback for selection changes
Function to call when selection changes
Unsubscribe function
Enable picking mode for creating new annotations
Function to call when a point is picked
Disable picking mode
Check if picking mode is active
Notify picking callback with a point
3D point coordinates
Update configuration
Partial configuration to merge with current config
Get current configuration
Dispose of all resources
PrivatecreateCreate a new marker mesh
PrivateupdateUpdate a marker's appearance based on selection state
PrivateupdateUpdate all markers' appearances based on current selection
PrivateremoveRemove a marker from the scene
PrivatenotifyNotify all selection change callbacks
AnnotationManager - Manages annotation markers in a Three.js scene