Skip to content

Preview State

app.ui.view_state.preview_state

View source code

Module for preview state; stores transient interaction state.

See Also

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.

ADD = auto() class-attribute instance-attribute

DELETE = auto() class-attribute instance-attribute

EDIT = auto() class-attribute instance-attribute