@mathjax/src
    Preparing search index...

    Implements the MmlMath node class (subclass of AbstractMmlLayoutNode)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    attributes: Attributes

    This node's attributes

    childNodes: MmlNode[]

    Child nodes are MmlNodes (special case of Nodes).

    factory: MmlFactory

    The node factory is an MmlFactory

    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

    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 = ...

    These are used as the defaults for any attributes marked INHERIT in other 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.

    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 isInferred(): boolean

      Returns boolean

      true if this is an inferred mrow

    • get isToken(): boolean

      Returns boolean

      true if this is a token node

    • get linebreakContainer(): boolean

      Linebreaking can occur in math nodes

      Returns boolean

    • get notParent(): boolean

      Returns boolean

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

    Methods

    • 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

    • The attributes of math nodes are inherited, so add them into the list. The displaystyle attribute comes from the display attribute if not given explicitly The scriptlevel comes from the scriptlevel attribute or default

      Parameters

      • attributes: AttributeList
      • display: boolean
      • level: number
      • prime: boolean

      Returns void

    • Sets the inherited propertis for this node, and pushes inherited properties to the children

      For each inheritable attribute: If the node has a default for this attribute, try to inherit it but check if the noInherit object prevents that. If the node doesn't have an explicit displaystyle, inherit it If the node doesn't have an explicit scriptstyle, inherit it If the prime style is true, set it as a property (it is not a MathML attribute) Check that the number of children is correct Reset the indent attributes for linebreak containers Finally, push any inherited attributes to the children.

      Parameters

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

      Returns void