MAIDR Documentation - v3.75.0
    Preparing search index...

    Interface LayerSwitchTraceState

    Extended trace state for layer switching mode with navigation indices.

    interface LayerSwitchTraceState {
        empty: false;
        type: "trace";
        layerId: string;
        traceType: TraceType;
        plotType: string;
        title: string;
        xAxis: string;
        yAxis: string;
        z: string;
        hasMultiPoints: boolean;
        audio: AudioState;
        braille: BrailleState;
        text: TextState;
        autoplay: AutoplayState;
        highlight: HighlightState;
        intersections?: AudioState[] | null;
        groupCount?: number;
        group?: { label: string; value: string };
        orientation?: Orientation;
        isLayerSwitch: true;
        index: number;
        size: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    empty: false
    type: "trace"
    layerId: string

    Unique identifier for the layer/trace

    traceType: TraceType
    plotType: string
    title: string
    xAxis: string
    yAxis: string
    z: string
    hasMultiPoints: boolean
    audio: AudioState
    braille: BrailleState
    text: TextState
    autoplay: AutoplayState
    highlight: HighlightState
    intersections?: AudioState[] | null

    Array of audio states for all lines that intersect at the current point. Used for intersection-aware audio playback in multiline plots. null/undefined for normal points (single line or no intersection).

    groupCount?: number

    Number of groups/series in the plot. Only present for multiline plots where plotType === 'multiline'.

    group?: { label: string; value: string }

    Label and name of the group/series the cursor is currently on, e.g. { label: 'Group', value: 'Series 1' }. Only present for multiline plots (plotType === 'multiline') whose data names its groups; absent when the spec authors no names, so consumers can omit group wording rather than announce a positional placeholder.

    orientation?: Orientation

    Plot orientation, if applicable (e.g. bar, box, violin).

    isLayerSwitch: true
    index: number
    size: number