The MmlNode factory (defaults to MmlFactory if not given)
ProtectednodeHolds the mapping from node kinds to visitor funcitons
StaticdefaultAttributes to include on every element of a given kind
StaticrenameMmlNode kinds to replace with other names
StaticvariantsTranslations for the internal mathvariants
ProtectedgetThe node whose attributes are to be produced
The attribute list
The node whose attributes are to be copied
The object containing the attributes;
The node whose children are to be copied
The array of child JSON objects
ProtectedgetCreate the list of data-mjx-* attributes
The node whose data list is to be generated
The final class attribute list
The node whose inherited attributes are to be copied
The object containing the inherited attributes;
ProtectedgetThe node whose kind is needed
The MamlML node name for that kind
The node whose properties are to be copied
The object containing the properties;
ProtectedsetThe class attribute list
The name for the data-mjx-name attribute
The value of the attribute
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.
The node to visit
The JSON object representing it
The XMLNode to visit
Any arguments needed by the visitor
Any return value needed for the visitor
Convert the tree rooted at a particular node into a JSON structure
The node to use as the root of the tree to traverse
The JSON object representing the internal tree
Protected StaticmethodVisitor functions are named "visitKindNode" where "Kind" is replaced by the node kind; e.g., visitTextNode for kind = text.
The node kind whose method name is needed
The name of the visitor method for the given node kind
Implements the JsonMmlVisitor (subclass of MmlVisitor)