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

    Class Controller

    Main controller class that orchestrates all services, view models, and interactions for the MAIDR application.

    Implements

    Index

    Constructors

    • Initializes the controller with all necessary services, view models, and bindings.

      Parameters

      • maidr: Maidr

        The MAIDR configuration object containing plot data and settings

      • plot: HTMLElement

        The HTML element containing the plot to be made accessible

      • store: EnhancedStore

        The Redux store instance for this plot's state management

      Returns Controller

    Methods

    • Announces the initial instruction to screen readers using a live region.

      Returns void

    • Retrieves the initial instruction text for the plot.

      Returns string

      The initial instruction text

    • Displays the initial instruction in the text view without announcing it to screen readers.

      Returns void

    • Initialize high contrast mode if enabled in settings. Call this after the Controller is fully set up and will persist (not the throwaway init).

      Returns void

    • Suspend high contrast mode visually (restore original colors). Call this on blur to return the chart to its original appearance.

      Returns void

    • Replaces the chart data in place (live/realtime update).

      Rebuilds the model layer (Figure/Subplot/Trace) from the new data while preserving the user's navigation position, then rewires all observers. Services, view models, and keybindings are untouched, so the update is cheap enough for streaming scenarios.

      The swap itself is silent; when monitor mode is enabled and the update appended a point, that point is sonified and announced without moving the user's position.

      Parameters

      • maidr: Maidr

        The complete replacement MAIDR config (caller-owned copy)

      • Optionalappended: AppendedPointInfo

        Location of the newly appended point, for appendData updates

      Returns void