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

    HighContrastService manages the high contrast accessibility mode.

    Key behaviors:

    • Captures original colors in constructor (before any transformations)
    • Applies high contrast on focus-in via initializeHighContrast()
    • Restores original colors on blur via suspendHighContrast()
    • Responds to settings changes (toggle via keyboard/UI)

    Implements

    Index

    Constructors

    Methods

    • Points this service at a rebuilt figure after a live data update and re-captures original element colors. When high contrast is active, it is re-applied to the new model's elements.

      Parameters

      • figure: Figure

        The replacement figure

      Returns void

    • Initialize high contrast mode after the Controller is fully set up. Call this from the Controller after construction to apply high contrast if enabled.

      Returns void

    • Suspend high contrast mode visually (restore original colors). Called on blur to return the chart to its original appearance. The setting remains ON - this just hides the visual effect while unfocused.

      Returns void

    • Toggle high contrast mode on/off. Called from keyboard shortcut (C key).

      Returns void

    • Parameters

      • startColor: string
      • endColor: string
      • count: number

      Returns string[]