Save
Persist measurement data to the database.
The save command triggers a request to the canvas 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 canvas.
2. Canvas Emits Completion Event
The canvas 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 canvas 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
