@mathjax/src
    Preparing search index...

    Class AbstractNode<N, C>Abstract

    The abstract Node class

    Type Parameters

    • N extends Node<N, C>

      The actual type of node being created

    • C extends NodeClass<N, C>

      The node class for N (the constructor rather than instance of the class)

    Hierarchy (View Summary)

    Implements

    Index
    • Type Parameters

      • N extends Node<N, C>

        The actual type of node being created

      • C extends NodeClass<N, C>

        The node class for N (the constructor rather than instance of the class)

      Parameters

      • factory: NodeFactory<N, C>

        The NodeFactory to use to create new nodes when needed

      • properties: PropertyList = {}

        Any properties to be added to the node, if any

      • children: N[] = []

        The initial child nodes, if any

      Returns AbstractNode<N, C>

    childNodes: N[] = []

    The children for this node

    factory: NodeFactory<N, C>

    The NodeFactory to use to create new nodes when needed

    parent: N = null

    The parent node for this one

    properties: PropertyList = {}

    The properties for this node

    • Simple string version for debugging, just to get the structure.

      Returns string

    • Note that the state parameter is an internal state object, and is not intended for user input, so it is not listed in the interface above, and is not included in the jsDoc for that reason.

      Parameters

      • func: (node: N, data?: any) => boolean | void
      • Optionaldata: any
      • $state: TreeWalkerState = ...

      Returns any