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

    Type Alias TraceState

    TraceState:
        | TraceEmptyState
        | {
            empty: false;
            type: "trace";
            traceType: TraceType;
            plotType: string;
            title: string;
            xAxis: string;
            yAxis: string;
            fill: string;
            hasMultiPoints: boolean;
            audio: AudioState;
            braille: BrailleState;
            text: TextState;
            autoplay: AutoplayState;
            highlight: HighlightState;
            intersections?: AudioState[]
            | null;
            groupCount?: number;
        }

    State for a single trace/layer containing all rendering and navigation information.

    Type Declaration

    • TraceEmptyState
    • {
          empty: false;
          type: "trace";
          traceType: TraceType;
          plotType: string;
          title: string;
          xAxis: string;
          yAxis: string;
          fill: string;
          hasMultiPoints: boolean;
          audio: AudioState;
          braille: BrailleState;
          text: TextState;
          autoplay: AutoplayState;
          highlight: HighlightState;
          intersections?: AudioState[] | null;
          groupCount?: number;
      }
      • empty: false
      • type: "trace"
      • traceType: TraceType
      • plotType: string
      • title: string
      • xAxis: string
      • yAxis: string
      • fill: string
      • hasMultiPoints: boolean
      • audio: AudioState
      • braille: BrailleState
      • text: TextState
      • autoplay: AutoplayState
      • highlight: HighlightState
      • Optionalintersections?: 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).

      • OptionalgroupCount?: number

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