MCPcopy Create free account
hub / github.com/KaTeX/KaTeX / constructor

Method constructor

src/mathMLTree.ts:53–62  ·  view source on GitHub ↗
(
        type: MathNodeType,
        children?: MathDomNode[],
        classes?: string[]
    )

Source from the content-addressed store, hash-verified

51 classes: string[];
52
53 constructor(
54 type: MathNodeType,
55 children?: MathDomNode[],
56 classes?: string[]
57 ) {
58 this.type = type;
59 this.attributes = {};
60 this.children = children || [];
61 this.classes = classes || [];
62 }
63
64 /**
65 * Sets an attribute on a MathML node. MathML depends on attributes to convey a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected