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

Method constructor

src/tree.ts:30–37  ·  view source on GitHub ↗
(children: ReadonlyArray<ChildType>)

Source from the content-addressed store, hash-verified

28 style: CssStyle; // Never used; needed for satisfying interface.
29
30 constructor(children: ReadonlyArray<ChildType>) {
31 this.children = children;
32 this.classes = [];
33 this.height = 0;
34 this.depth = 0;
35 this.maxFontSize = 0;
36 this.style = {};
37 }
38
39 hasClass(className: string): boolean {
40 return this.classes.includes(className);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected