@mathjax/src
    Preparing search index...

    Implements the MmlVisitor (subclass of Visitor, and base class for visitors that accept MmlNode trees)

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    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

    • Create the list of data-mjx-* attributes

      Parameters

      • node: MmlNode

        The node whose data list is to be generated

      Returns PropertyList

      The final class attribute list

    • 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

    • Parameters

      • _node: HtmlNode<any>

        The XMLNode to visit

      • ..._args: any[]

        Any arguments needed by the visitor

      Returns any

      Any return value needed for the visitor

    • Parameters

      • _node: TextNode

        The TextNode to visit

      • ..._args: any[]

        Any arguments needed by the visitor

      Returns any

      Any return value needed for the visitor

    • Parameters

      • _node: XMLNode

        The XMLNode to visit

      • ..._args: any[]

        Any arguments needed by the visitor

      Returns any

      Any return value needed for the visitor

    • 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