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

Method havingBaseSizing

static/katex/katex.mjs:4935–4960  ·  view source on GitHub ↗

* Remove the effect of sizing changes such as \Huge. * Keep the effect of the current style, such as \scriptstyle.

()

Source from the content-addressed store, hash-verified

4933
4934
4935 havingBaseSizing() {
4936 let size;
4937
4938 switch (this.style.id) {
4939 case 4:
4940 case 5:
4941 size = 3; // normalsize in scriptstyle
4942
4943 break;
4944
4945 case 6:
4946 case 7:
4947 size = 1; // normalsize in scriptscriptstyle
4948
4949 break;
4950
4951 default:
4952 size = 6;
4953 // normalsize in textstyle or displaystyle
4954 }
4955
4956 return this.extend({
4957 style: this.style.text(),
4958 size: size
4959 });
4960 }
4961 /**
4962 * Create a new options object with the given color.
4963 */

Callers 3

makeSqrtImageFunction · 0.80
makeSqrtImageFunction · 0.80
QeFunction · 0.80

Calls 2

extendMethod · 0.95
textMethod · 0.80

Tested by

no test coverage detected