@mathjax/src
    Preparing search index...

    Interface MmlNodeClass

    The MmlNode class interface (extends the NodeClass)

    interface MmlNodeClass {
        new MmlNodeClass(
            factory: MmlFactory,
            attributes?: PropertyList,
            children?: MmlNode[],
        ): MmlNode;
        new MmlNodeClass(
            factory: NodeFactory<MmlNode, MmlNodeClass>,
            properties?: PropertyList,
            children?: MmlNode[],
        ): MmlNode;
        defaults?: PropertyList;
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • An MmlNode takes a NodeFactory (so it can create additional nodes as needed), a list of attributes, and an array of children and returns the desired MmlNode with those attributes and children

      Parameters

      • factory: MmlFactory

        The MathML node factory to use to create additional nodes

      • Optionalattributes: PropertyList

        The list of initial attributes for the node

      • Optionalchildren: MmlNode[]

        The initial child nodes (more can be added later)

      Returns MmlNode

    • Parameters

      • factory: NodeFactory<MmlNode, MmlNodeClass>

        The NodeFactory to use to create new nodes when needed

      • Optionalproperties: PropertyList

        Any properties to be added to the node, if any

      • Optionalchildren: MmlNode[]

        The initial child nodes, if any

      Returns MmlNode

      The newly created node

    Properties

    defaults?: PropertyList

    The list of default attribute values for nodes of this class