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

Method havingStyle

static/katex/katex.mjs:4873–4882  ·  view source on GitHub ↗

* Return an options object with the given style. If `this.style === style`, * returns `this`.

(style)

Source from the content-addressed store, hash-verified

4871
4872
4873 havingStyle(style) {
4874 if (this.style === style) {
4875 return this;
4876 } else {
4877 return this.extend({
4878 style: style,
4879 size: sizeAtStyle(this.textSize, style)
4880 });
4881 }
4882 }
4883 /**
4884 * Return an options object with a cramped version of the current style. If
4885 * the current style is cramped, returns `this`.

Callers 15

havingCrampedStyleMethod · 0.95
katex.jsFile · 0.80
units_calculateSizeFunction · 0.80
genfrac_htmlBuilderFunction · 0.80
horizBrace_htmlBuilderFunction · 0.80
op_htmlBuilderFunction · 0.80
calculateSizeFunction · 0.80
buildExpressionFunction · 0.80
htmlBuilderFunction · 0.80
htmlBuilder$6Function · 0.80
htmlBuilder$7Function · 0.80

Calls 2

extendMethod · 0.95
sizeAtStyleFunction · 0.70

Tested by

no test coverage detected