@mathjax/src
    Preparing search index...

    Implements the MathMLVisitor (subclass of MmlVisitor)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    document: Document = null

    The document in which the nodes are being made

    nodeHandlers: Map<string, VisitorFunction<MmlNode>> = ...

    Holds the mapping from node kinds to visitor funcitons

    defaultAttributes: { [kind: string]: PropertyList } = ...

    Attributes to include on every element of a given kind

    rename: PropertyList = ...

    MmlNode kinds to replace with other names

    variants: PropertyList = ...

    Translations for the internal mathvariants

    Methods

    • Parameters

      • data: PropertyList

        The class attribute list

      • name: string

        The name for the data-mjx-name attribute

      • value: string

        The value of the attribute

      Returns void

    • The generic visiting function: Create a DOM node of the correct type. Add its explicit attributes. Append its children nodes. Append the new node to the DOM parent.

      Parameters

      • node: MmlNode

        The node to visit

      • parent: Element

        The DOM parent to which this node should be added

      Returns void

    • Visit an inferred mrow, but don't add the inferred row itself (since it is supposed to be inferred).

      Parameters

      • node: MmlNode

        The inferred mrow to visit

      • parent: Element

        The DOM parent to which this node's children should be added

      Returns void

    • Convert the tree rooted at a particular node into DOM nodes.

      Parameters

      • node: MmlNode

        The node to use as the root of the tree to traverse

      • document: Document

        The document in which the nodes are created

      Returns Node

      The MathML DOM nodes representing the internal tree

    • Visitor functions are named "visitKindNode" where "Kind" is replaced by the node kind; e.g., visitTextNode for kind = text.

      Parameters

      • kind: string

        The node kind whose method name is needed

      Returns string

      The name of the visitor method for the given node kind