pivotick / ModeState
Interface: ModeState
Defined in: ui/ModeStore.ts:36
Observable state of the mode rail.
Properties
armedTool
armedTool:
Record<string,string|null>
Defined in: ui/ModeStore.ts:44
The armed tool per pointer-mode ('pointer'/null = the mode default), keyed by mode id. The rail slot reflects this: a non-default modal tool morphs the slot's icon + label. Reset to the mode default when its mode is left.
mode
mode:
string
Defined in: ui/ModeStore.ts:38
The active rail mode. Defaults to 'select'.
panelOpen
panelOpen:
Record<string,boolean>
Defined in: ui/ModeStore.ts:49
Whether each pointer-mode's contextual tool panel is expanded, keyed by mode id. Remembered per mode (persists across mode switches); the armed tool does not.