Save
Persist measurement data to the database.
The save command triggers a request to the viewer to extract and send all active measurements and annotations to the host application for persistence.
After the save request runs, listen for `saveAnnotationsComplete` to confirm whether the save completed successfully.
Saving measurements follows a request-completion pattern where the host sends `saveAnnotations` and listens for `saveAnnotationsComplete`.
1. Host Sends
The host application sends the saveAnnotations message to the viewer.
2. Viewer Emits Completion Event
The viewer emits `saveAnnotationsComplete` after the save flow finishes.
3. Host Handles Completion
The host uses the completion event to show success or failure state and continue its workflow.
Manual Save
Listen for saveAnnotationsComplete
You can enable auto-save to have the viewer automatically trigger persistence events when measurements are modified. By default, this is set to `false`.
Toggle Auto-Save
Continue with related measurement workflows and API references.
- Selection: Select Measurement
- Delete: Delete Measurement
- Clear: Clear Canvas
- Technical: API Reference
