@mathjax/src
    Preparing search index...

    Class GeneratorPool<N, T, D>

    Type Parameters

    • N

      The HTMLElement node class

    • T

      The Text node class

    • D

      The Document class

    Index

    Properties

    adaptor: DOMAdaptor<N, T, D> = null

    The adaptor to work with typeset nodes.

    promise: Promise<void> = ...

    The initial start of the promise chain.

    Accessors

    Methods

    • Computes the braille label from the node.

      Parameters

      • node: N

        The typeset node.

      Returns string

      The assembled label.

    • Computes the speech label from the node combining prefixes and postfixes.

      Parameters

      • node: N

        The typeset node.

      • _center: string = ''

        Core speech. Defaults to data-semantic-speech.

      • sep: string = ' '

        The speech separator. Defaults to space.

      Returns string

      The assembled label.

    • Computes the clearspeak preferences for the current locale.

      Parameters

      • prefs: Map<string, { [prop: string]: string[] }>

        Map to store the compute preferences.

      Returns Promise<void>

      The promise that resolves when the command is complete

    • Computes the clearspeak preferences that are semantically relevant for the currently focused node.

      Parameters

      • item: SpeechMathItem<N, T, D>

        The SpeechMathItem where is menu is opened.

      • semantic: string

        The semantic id of the last focused node.

      • prefs: Map<number, string>

        Map for recording the computed preference.

      • counter: number

        Counter for storing the result in the map.

      Returns Promise<void>

      The promise that resolves when the command is complete

    • Cycles style or preference settings for the speech generator.

      Parameters

      • node: N

        The typeset node.

      • item: SpeechMathItem<N, T, D>

        The SpeechMathItem whose preferences are changing

      Returns Promise<void>

      A promise that resolves when the command completes

    • Updates the given speech regions, possibly reinstanting previously saved speech.

      Parameters

      • node: N

        The typeset node

      • speechRegion: LiveRegion

        The speech region.

      • brailleRegion: LiveRegion

        The braille region.

      Returns void