Preview State
app.ui.view_state.preview_stateModule for preview state; stores transient interaction state.
See Also
PreviewContainer— presents the preview stateAnnotationOverlayWidget— consumes preview tool mode
Layer: Presentation. Context: Stores transient interaction state at this architectural boundary.
ToolMode
Bases: Enum
Defines the current interactive mode of the preview canvas.
ADD: Clicking starts a new bounding detection. Ignores existing boxes. EDIT: Clicking selects, moves, or resizes an existing detection. DELETE: Clicking an existing detection deletes it instantly.
Layer: Presentation. Context: Supports user interaction and delegates application work through presentation contracts.