@mathjax/src
    Preparing search index...

    The MmlNode interface (extends Node interface)

    interface MmlNode {
        arity: number;
        attributes: Attributes;
        childNodes: MmlNode[];
        factory: NodeFactory<MmlNode, MmlNodeClass>;
        isToken: boolean;
        parent: MmlNode;
        Parent: MmlNode;
        texClass: number;
        appendChild(child: MmlNode): MmlNode;
        childIndex(child: MmlNode): number;
        childPosition(): number;
        copy(keepIds?: boolean): MmlNode;
        core(): MmlNode;
        coreIndex(): number;
        coreMO(): MmlNode;
        findNodes(kind: string): MmlNode[];
        getAllProperties(): PropertyList;
        getProperty(name: string): Property;
        getPropertyNames(): string[];
        hasSpacingAttributes(): boolean;
        inheritAttributesFrom(node: MmlNode): void;
        isKind(kind: string): boolean;
        mError(message: string, options: PropertyList, short?: boolean): MmlNode;
        removeChild(child: MmlNode): MmlNode;
        removeProperty(...names: string[]): void;
        replaceChild(newChild: MmlNode, oldChild: MmlNode): MmlNode;
        setChildren(children: MmlNode[]): void;
        setInheritedAttributes(
            attributes: AttributeList,
            display: boolean,
            level: number,
            prime: boolean,
        ): void;
        setProperty(name: string, value: Property): void;
        setTeXclass(prev: MmlNode): MmlNode;
        texSpacing(): string;
        verifyTree(options?: PropertyList): void;
        walkTree(func: (node: MmlNode, data?: any) => void, data?: any): void;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    arity: number

    The expected number of children (-1 means use inferred mrow)

    attributes: Attributes

    The attributes (explicit and inherited) for this node

    childNodes: MmlNode[]

    @ override

    The NodeFactory to use to create additional nodes, as needed

    isToken: boolean

    Test various properties of MathML nodes

    parent: MmlNode

    The actual parent in the tree

    Parent: MmlNode

    Get the parent node (skipping inferred mrows and other nodes marked as notParent)

    texClass: number

    The TeX class for this node

    Methods

    • Returns number

      For embellished operators, the index of the child node containing the core . For non-embellished nodes, 0.

    • Returns boolean

      The core mo element has an explicit 'form', 'lspace', or 'rspace' attribute

    • Set the nodes inherited attributes based on the attributes of the given node (used for creating extra nodes in the tree after setInheritedAttributes has already run)

      Parameters

      • node: MmlNode

        The node whose attributes are to be used as a template

      Returns void

    • Parameters

      • kind: string

        The type of node to test for

      Returns boolean

      True when the node is of the given type

    • 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

      • Optionalshort: boolean

        True means use just the kind if not using full errors

      Returns MmlNode

      The construted merror

    • Sets the nodes inherited attributes, and pushes them to the nodes children.

      Parameters

      • attributes: AttributeList

        The list of inheritable attributes (with the node kinds from which they came)

      • display: boolean

        The displaystyle to inherit

      • level: number

        The scriptlevel to inherit

      • prime: boolean

        The TeX prime style to inherit (T vs. T', etc).

      Returns void

    • Parameters

      • prev: MmlNode

        The node that is before this one for TeX spacing purposes (not all nodes count in TeX measurements)

      Returns MmlNode

      The node that should be the previous node for the next one in the tree (usually, either the last child, or the node itself)

    • Returns string

      The spacing to use before this element (one of TEXSPACELENGTH array above)

    • Check integrity of MathML structure

      Parameters

      • Optionaloptions: PropertyList

        The options controlling the check

      Returns void

    • Parameters

      • func: (node: MmlNode, data?: any) => void

        A function to apply to each node in the tree rooted at this node

      • Optionaldata: any

        Data to pass to the function (as state information)

      Returns void