@mathjax/src
    Preparing search index...

    Implements the MmlMo node class (subclass of AbstractMmlTokenNode)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _texClass: number = null

    The internal TeX class of the node (for use with getter/setter below)

    attributes: Attributes

    This node's attributes

    childNodes: MmlNode[]

    Child nodes are MmlNodes (special case of Nodes).

    factory: MmlFactory

    The node factory is an MmlFactory

    lspace: number = ...

    The default MathML spacing on the left

    parent: MmlNode

    The parent is an MmlNode

    prevClass: number = null

    The TeX class for the preceding node

    prevLevel: number = null

    The scriptlevel of the preceding node

    properties: PropertyList = {}

    The properties for this node

    rspace: number = ...

    The default MathML spacing on the right

    texclass: number = null

    The TeX class of this node (obtained via texClass below)

    alwaysInherit: { [name: string]: boolean } = ...

    This lists the attributes that should always be inherited, even when there is no default value for the attribute.

    defaults: PropertyList = ...
    mathaccents: RegExp = ...

    Regular expression matching characters that are marked as math accents (property mathaccent = true)

    mathaccentsWithWidth: RegExp = ...

    Regular expression matching characters that are marked as math accents whose widths are to be respected (property mathaccent = false)

    MMLSPACING: number[][] = MMLSPACING

    The MathML spacing values for the TeX classes

    noInherit: {
        [node1: string]: { [node2: string]: { [attribute: string]: boolean } };
    } = ...

    This lists properties that do NOT get inherited between specific kinds of nodes. The outer keys are the node kinds that are being inherited FROM, while the second level of keys are the nodes that INHERIT the values. Any property appearing in the innermost list is NOT inherited by the pair.

    For example, an mpadded element will not inherit a width attribute from an mstyle node.

    opPattern: RegExp = ...

    Pattern to use to identify a multiletter operator

    OPTABLE: { [form: string]: OperatorList } = OPTABLE

    The Operator Dictionary

    primes: RegExp = ...

    Pattern for when contents is a collection of primes

    pseudoScripts: RegExp = ...

    Pattern for matching when the contents is one ore more pseudoscripts

    remapPrimes: { [n: number]: number } = ...

    Default map for remapping prime characters

    stopInherit: { [node: string]: { [attribute: string]: boolean } } = ...

    This lists the attributes that should not be propagated to child nodes of the given kind of node (so that table attributes don't bleed through to nested tables -- see issue mathjax/MathJax#2890).

    verifyDefaults: PropertyList = ...

    This is the list of options for the verifyTree() method

    Accessors

    • get arity(): number

      Returns number

      The number of children allowed, or Infinity for any number, or -1 for when an inferred row is needed for the children. Special case is 1, meaning at least one (other numbers mean exactly that many).

    • get isInferred(): boolean

      Returns boolean

      true if this is an inferred mrow

    • get isSpacelike(): boolean

      Returns boolean

      true if this is a space-like node

    • get linebreakAlign(): string

      Returns string

      the attribute used to seed the indentalign value in linebreak containers (overridden in subclasses when needed)

    • get linebreakContainer(): boolean

      Returns boolean

      true if this is a node that supports linebreaks in its children

    • get notParent(): boolean

      Returns boolean

      true if this is a node that doesn't count as a parent node in Parent()

    • get texClass(): number

      Use a getter to look up the TeX class from the operator table if it hasn't been set yet (but don't save it in case the form changes when it is in its location).

      Returns number

      The TeX class.

    • set texClass(value: number): void

      Use a setter to store the actual value in _texClass;

      Parameters

      • value: number

      Returns void

    Methods

    • Determine whether the mo is a mathaccent character

      Parameters

      • mo: string

        The test of the mo element

      Returns void

    • Set the attributes from the operator table

      Parameters

      • mo: string

        The text of the mo element

      Returns void

    • Determine whether the mo consists of primes, and remap them if so.

      Parameters

      • mo: string

        The test of the mo element

      Returns void

    • Mark the mo as a pseudoscript if it is one. True means it is, false means it is a pseudo-script character, but in an msup (so needs a variant form)

      Parameters

      • mo: string

        The test of the mo element

      Returns void

    • Returns [string, string, string]

      The list of form attribute values in the order they should be tested, based on the position of the element in its parent.

    • Parameters

      • forms: string[]

        The three forms in the default order they are to be tested

      Returns string[]

      The forms in the new order, if there is an explicit form attribute

    • Check a string for being a mathaccent

      Parameters

      • mo: string = ...

        The string to check

      Returns boolean

      True if the string should be a mathaccent

    • Check a string for being a mathaccent with non-zero width

      Parameters

      • mo: string = ...

        The string to check

      Returns boolean

      True if the string should be a mathaccent

    • Replace the current node with an error message (or the name of the node)

      Parameters

      • message: string

        The error message to use

      • options: PropertyList

        The options telling how much to verify

      • short: boolean = false

        True means use just the kind if not using full errors

      Returns MmlNode

      The constructed merror

    • Do the normal inheritance, then look up the attributes from the operator dictionary. If there is no dictionary entry, get the TeX class from the Unicode range list.

      Parameters

      • attributes: AttributeList = {}
      • display: boolean = false
      • level: number = 0
      • prime: boolean = false

      Returns void

    • Verify the attributes, and that there are the right number of children. Then verify the children.

      Parameters

      • options: PropertyList = null

        The options telling how much to verify

      Returns void