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

    Class AnnounceTitleCommand

    Command to describe the title of the figure or subplot.

    Hierarchy

    • AnnounceCommand
      • AnnounceTitleCommand
    Index

    Constructors

    Properties

    context: Context
    textViewModel: TextViewModel
    audioService: AudioService
    textService: TextService
    displayService: DisplayService

    Methods

    • Restores the scope to the previous scope before entering label mode. Uses DisplayService to properly manage the focus stack and restore the correct scope (TRACE, BRAILLE, etc.) regardless of which scope was active before entering label mode.

      Only exits when a label scope is actually active. These announce commands are also bound outside label mode (e.g. 't' at subplot/figure level); exiting unconditionally would flip navigation into TRACE scope via the stale focus stack and break subplot activation.

      Returns void

    • Executes the command to display the title sourced from the MAIDR JSON.

      Only announces titles authored in the JSON; the model's placeholder defaults are treated as "no title". Announces "No title available" when nothing was authored at either level.

      • Figure-level scope (multi-panel): "Figure title is ...".
      • Trace-level scope, single-panel: prefers the layer title, then the figure title, announced as "Title is ...".
      • Trace-level scope, multi-panel: prefers the layer title as "Subplot title is ...", then falls back to the figure title as "Figure title is ..." so the announcement disambiguates the source.

      Returns void