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

Function Options

static/katex/katex.js:4821–4846  ·  view source on GitHub ↗

* The base size index.

(data)

Source from the content-addressed store, hash-verified

4819 * The base size index.
4820 */
4821 function Options(data) {
4822 this.style = void 0;
4823 this.color = void 0;
4824 this.size = void 0;
4825 this.textSize = void 0;
4826 this.phantom = void 0;
4827 this.font = void 0;
4828 this.fontFamily = void 0;
4829 this.fontWeight = void 0;
4830 this.fontShape = void 0;
4831 this.sizeMultiplier = void 0;
4832 this.maxSize = void 0;
4833 this._fontMetrics = void 0;
4834 this.style = data.style;
4835 this.color = data.color;
4836 this.size = data.size || Options.BASESIZE;
4837 this.textSize = data.textSize || this.size;
4838 this.phantom = !!data.phantom;
4839 this.font = data.font || "";
4840 this.fontFamily = data.fontFamily || "";
4841 this.fontWeight = data.fontWeight || '';
4842 this.fontShape = data.fontShape || '';
4843 this.sizeMultiplier = sizeMultipliers[this.size - 1];
4844 this.maxSize = data.maxSize;
4845 this._fontMetrics = undefined;
4846 }
4847 /**
4848 * Returns a new options object with the same properties as "this". Properties
4849 * 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