Documentation
    Preparing search index...

    Interface MockMotionState

    In-memory state of the motion mock.

    interface MockMotionState {
        available: boolean;
        focusedWindow: string | null;
        reason?: "unavailable" | "blocked";
        sampleIndex: number;
        timer?: () => void;
        windows: Map<string, MockMotionWindow>;
    }
    Index

    Properties

    available: boolean

    Runtime can read sensors.

    focusedWindow: string | null

    Window holding input focus.

    reason?: "unavailable" | "blocked"

    Unavailability reason.

    sampleIndex: number

    Samples emitted so far (drives the deterministic tilt).

    timer?: () => void

    Cancel function of the autoplay loop.

    windows: Map<string, MockMotionWindow>

    Per-window state.