The MmlNode factory (defaults to MmlFactory if not given)
Protected
nodeHolds the mapping from node kinds to visitor funcitons
Static
defaultAttributes to include on every element of a given kind
Static
renameMmlNode kinds to replace with other names
Static
variantsTranslations for the internal mathvariants
Protected
getThe 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
Protected
getCreate 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;
Protected
getThe 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;
Protected
setThe 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
Static
methodVisitor 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)