@mathjax/src
    Preparing search index...

    The type that is consumed by the Region of this explorer.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    attached: boolean = false

    True when explorer is attached to a node

    brailleRegion: LiveRegion

    The braille region.

    clicked: HTMLElement = null

    The clicked node from a mousedown event

    current: HTMLElement = null

    The currently focused element.

    The accessible math document.

    events: [string, (x: Event) => void][] = ...
    focusSpeech: boolean = false

    True when we are refocusing on the speech node

    img: HTMLElement = null

    The speech node when the top-level node has no role

    The math item.

    magnifyRegion: HoverRegion

    The magnification region.

    node: HTMLElement

    The node the explorer is assigned to.

    The explorer pool.

    refocus: HTMLElement = null

    Node to focus on when restarted

    region: SpeechRegion

    The speech region for the explorer.

    restarted: string = null

    Selector string for re-focusing after re-rendering

    sound: boolean = false

    Switches on or off the use of sound on this explorer.

    speech: HTMLElement = null

    The transient speech node

    speechType: string = ''

    Set to 'd' when depth is showing, 'x' when summary, '' when speech.

    stoppable: boolean = true

    Accessors

    • get highlighter(): Highlighter

      Returns Highlighter

      The Sre highlighter associated with the walker.

    Methods

    • Remove the top-level speech node and create a temporary one for the given node.

      Parameters

      • node: HTMLElement

        The node to be spoken

      • describe: boolean

        True if the description should be added

      Returns void

    • Handle a double-click event (focus full expression)

      Parameters

      • event: MouseEvent

        The mouse click event

      Returns void

    • Process Enter key events

      Parameters

      • event: KeyboardEvent

        The event for the enter key

      Returns boolean | void

      False means play the honk sound

    • Find the speech node that was clicked, if any

      Parameters

      • node: HTMLElement

        The target node that was clicked

      • x: number

        The x-coordinate of the click

      • y: number

        The y-coordinate of the click

      Returns HTMLElement

      The clicked node or null

    • Determine the node that should be made active when we start (the refocus, current, or restarted node, if any otherwise null)

      Returns HTMLElement

      The node to be made the current node

    • Move to a specified node, unless it is null

      Parameters

      • node: HTMLElement

        The node to move it

      Returns boolean | void

      False if no node, void otherwise

    • Navigate one step to the right on the same level.

      Parameters

      • el: HTMLElement

        The current element.

      Returns HTMLElement

      The next element.

    • Cycles to next speech style or preference if possible and recomputes the speech for the expression.

      Returns void

    • Navigate one step to the left on the same level.

      Parameters

      • el: HTMLElement

        The current element.

      Returns HTMLElement

      The next element.

    • Restarts the explorer after a promise resolves (e.g., for an maction rerender)

      Parameters

      • promise: Promise<void>

        The promise to restart after

      Returns Promise<void>

    • Set the currently selected node and speak its label, if requested.

      Parameters

      • node: HTMLElement

        The node that should become current

      • addDescription: boolean = false

        True if the speech node should get a description

      Returns void

    • The space key opens the menu, so it propagates, but we retain the current focus to refocus it when the menu closes.

      Returns boolean

      Don't cancel the event

    • Create a new speech node and sets its needed attributes, then add it to the container and focus it. If there is and old speech node, remove it after a delay (the delay is needed for Orca on Linux).

      Parameters

      • speech: string

        The string to speak

      • braille: string = ''

        The braille string

      • ssml: string[] = null

        The SSML attributes to add

      • description: string = ...

        The description to add to the speech

      Returns void

    • Get the SSML attribute array

      Parameters

      • node: HTMLElement

        The node whose SSML attributes are to be obtained

      • center: SemAttr

        The name of the SSML attribute between pre and postfix

      Returns string[]

      The prefix/speech or summary/postfix array

    • Executiving the trigger the link action.

      Parameters

      • node: HTMLElement

        The node with the link.

      Returns boolean

      True if link was successfully triggered.

    • Programmatically triggers a link if the focused node contains one.

      Parameters

      • event: KeyboardEvent

        The keyboard event for the last keydown event.

      Returns boolean

      True if link was successfully triggered.

    • Programmatically triggers a link if the clicked mouse event contains one.

      Returns boolean

      True if link was successfully triggered.

    • Determine if an event that is not otherwise mapped should be allowed to propagate.

      Parameters

      • event: KeyboardEvent

        The event to check

      Returns boolean

      True if not active or the event has a modifier

    • Creator pattern for explorers.

      Type Parameters

      • T

      Parameters

      • document: A11yDocument

        The current document.

      • pool: ExplorerPool

        The explorer pool.

      • region: Region<T>

        A region to display results.

      • node: HTMLElement

        The node on which the explorer works.

      • ...rest: any[]

        Remaining information.

      Returns Explorer

      An object of the particular explorer class.