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

Method constructor

static/katex/katex.mjs:4813–4838  ·  view source on GitHub ↗

* The base size index.

(data)

Source from the content-addressed store, hash-verified

4811 * The base size index.
4812 */
4813 constructor(data) {
4814 this.style = void 0;
4815 this.color = void 0;
4816 this.size = void 0;
4817 this.textSize = void 0;
4818 this.phantom = void 0;
4819 this.font = void 0;
4820 this.fontFamily = void 0;
4821 this.fontWeight = void 0;
4822 this.fontShape = void 0;
4823 this.sizeMultiplier = void 0;
4824 this.maxSize = void 0;
4825 this._fontMetrics = void 0;
4826 this.style = data.style;
4827 this.color = data.color;
4828 this.size = data.size || Options.BASESIZE;
4829 this.textSize = data.textSize || this.size;
4830 this.phantom = !!data.phantom;
4831 this.font = data.font || "";
4832 this.fontFamily = data.fontFamily || "";
4833 this.fontWeight = data.fontWeight || '';
4834 this.fontShape = data.fontShape || '';
4835 this.sizeMultiplier = sizeMultipliers[this.size - 1];
4836 this.maxSize = data.maxSize;
4837 this._fontMetrics = undefined;
4838 }
4839 /**
4840 * Returns a new options object with the same properties as "this". Properties
4841 * from "extension" will be copied to the new options object.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected