MCPcopy Create free account
hub / github.com/TruthHun/BookStack / initNode

Function initNode

static/katex/katex.js:927–946  ·  view source on GitHub ↗
(classes, options, style)

Source from the content-addressed store, hash-verified

925};
926
927var initNode = function initNode(classes, options, style) {
928 this.classes = classes || [];
929 this.attributes = {};
930 this.height = 0;
931 this.depth = 0;
932 this.maxFontSize = 0;
933 this.style = style || {};
934
935 if (options) {
936 if (options.style.isTight()) {
937 this.classes.push("mtight");
938 }
939
940 var color = options.getColor();
941
942 if (color) {
943 this.style.color = color;
944 }
945 }
946};
947/**
948 * Convert into an HTML node
949 */

Callers

nothing calls this directly

Calls 2

isTightMethod · 0.80
getColorMethod · 0.80

Tested by

no test coverage detected