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

Method havingSize

static/katex/katex.mjs:4898–4909  ·  view source on GitHub ↗

* Return an options object with the given size and in at least `\textstyle`. * Returns `this` if appropriate.

(size)

Source from the content-addressed store, hash-verified

4896
4897
4898 havingSize(size) {
4899 if (this.size === size && this.textSize === size) {
4900 return this;
4901 } else {
4902 return this.extend({
4903 style: this.style.text(),
4904 size: size,
4905 textSize: size,
4906 sizeMultiplier: sizeMultipliers[size - 1]
4907 });
4908 }
4909 }
4910 /**
4911 * Like `this.havingSize(BASESIZE).havingStyle(style)`. If `style` is omitted,
4912 * changes to at least `\textstyle`.

Callers 9

sizing_htmlBuilderFunction · 0.80
katex.jsFile · 0.80
buildExpressionFunction · 0.80
htmlBuilder$9Function · 0.80
katex.mjsFile · 0.80
aeFunction · 0.80
DrFunction · 0.80
katex.min.jsFile · 0.80

Calls 2

extendMethod · 0.95
textMethod · 0.80

Tested by

no test coverage detected