pivotick - v1.5.0
    Preparing search index...

    Interface ModeState

    Observable state of the mode rail.

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

    Properties

    armedTool: Record<PointerMode, string | null>

    The armed tool per pointer-mode ('pointer'/null = the mode default). 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: RailMode

    The active rail mode. Defaults to 'select'.

    panelOpen: Record<PointerMode, boolean>

    Whether each pointer-mode's contextual tool panel is expanded. Remembered per mode (persists across mode switches); the armed tool does not.