pivotick - v2.0.1
    Preparing search index...

    Interface ModeState

    Observable state of the mode rail.

    interface ModeState {
        armedTool: Record<string, string | null>;
        mode: string;
        panelOpen: Record<string, boolean>;
    }
    Index

    Properties

    armedTool: Record<string, string | null>

    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: string

    The active rail mode. Defaults to 'select'.

    panelOpen: Record<string, boolean>

    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.