Lines Matching refs:classes

387  * This file contains information and classes for the various kinds of styles
1011 this.classes = void 0;
1017 this.classes = []; property
1025 return utils.contains(this.classes, className);
1082 * Create an HTML className based on a list of classes. In addition to joining
1083 * with spaces, we also remove empty classes.
1085 const createClass = function createClass(classes) { argument
1086 return classes.filter(cls => cls).join(" ");
1089 const initNode = function initNode(classes, options, style) { argument
1090 this.classes = classes || [];
1099 this.classes.push("mtight");
1117 node.className = createClass(this.classes); // Apply inline styles
1148 if (this.classes.length) {
1149 markup += ` class="${utils.escape(createClass(this.classes))}"`;
1198 constructor(classes, children, options, style) { argument
1201 this.classes = void 0;
1207 initNode.call(this, classes, options, style);
1222 return utils.contains(this.classes, className);
1240 constructor(href, classes, children, options) { argument
1243 this.classes = void 0;
1248 initNode.call(this, classes, options);
1258 return utils.contains(this.classes, className);
1278 this.classes = void 0;
1285 this.classes = ["mord"]; property
1290 return utils.contains(this.classes, className);
1339 * whether it has CSS classes, styles, or needs italic correction.
1343 constructor(text, height, depth, italic, skew, width, classes, style) { argument
1351 this.classes = void 0;
1359 this.classes = classes || [];
1361 this.maxFontSize = 0; // Mark text from non-Latin scripts with specific classes so that we
1372 this.classes.push(script + "_fallback");
1382 return utils.contains(this.classes, className);
1399 if (this.classes.length > 0) {
1401 span.className = createClass(this.classes);
1430 if (this.classes.length) {
1433 markup += utils.escape(createClass(this.classes));
5219 * Return the CSS sizing classes required to switch from enclosing options
5220 * `oldOptions` to `this`. Returns an array of classes.
5232 * Return the CSS sizing classes required to switch to the base size. Like
5405 * classes to be attached to the node.
5409 * should if present come first in `classes`.
5414 const makeSymbol = function makeSymbol(value, fontName, mode, options, classes) { argument
5427 …new SymbolNode(value, metrics.height, metrics.depth, italic, metrics.skew, metrics.width, classes);
5431 symbolNode = new SymbolNode(value, 0, 0, 0, 0, 0, classes);
5438 symbolNode.classes.push("mtight");
5456 const mathsym = function mathsym(value, mode, options, classes) { argument
5457 if (classes === void 0) {
5458 classes = [];
5469 return makeSymbol(value, "Main-Bold", mode, options, classes.concat(["mathbf"]));
5471 return makeSymbol(value, "Main-Regular", mode, options, classes);
5473 return makeSymbol(value, "AMS-Regular", mode, options, classes.concat(["amsrm"]));
5483 const mathdefault = function mathdefault(value, mode, options, classes) { argument
5506 const mathnormal = function mathnormal(value, mode, options, classes) { argument
5532 const boldsymbol = function boldsymbol(value, mode, options, classes) { argument
5555 const classes = ["mord"]; // Math mode or Old font (i.e. \rm)
5566 return makeSymbol(text, wideFontName, mode, options, classes.concat(wideFontClass));
5572 …=== "boldsymbol" ? boldsymbol(text, mode, options, classes) : mathnormal(text, mode, options, clas…
5587 return makeSymbol(text, fontName, mode, options, classes.concat(fontClasses));
5593 parts.push(makeSymbol(text[i], fontName, mode, options, classes.concat(fontClasses)));
5602 const fontLookup = mathdefault(text, mode, options, classes);
5603 …return makeSymbol(text, fontLookup.fontName, mode, options, classes.concat([fontLookup.fontClass])…
5609 …return makeSymbol(text, fontName, mode, options, classes.concat("amsrm", options.fontWeight, optio…
5612 …return makeSymbol(text, fontName, mode, options, classes.concat(options.fontWeight, options.fontSh…
5617 …return makeSymbol(text, fontName, mode, options, classes.concat(fontName, options.fontWeight, opti…
5624 * Returns true if subsequent symbolNodes have the same classes, skew, maxFont,
5630 …if (createClass(prev.classes) !== createClass(next.classes) || prev.skew !== next.skew || prev.max…
5706 * Makes a span with the given list of classes, list of children, and options.
5711 * should if present come first in `classes`.
5715 const makeSpan = function makeSpan(classes, children, options, style) { argument
5716 const span = new Span(classes, children, options, style);
5723 const makeSvgSpan = (classes, children, options, style) => new Span(classes, children, options, sty… argument
5733 * Makes an anchor with the given href, list of classes, list of children,
5738 const makeAnchor = function makeAnchor(href, classes, children, options) { argument
5739 const anchor = new Anchor(href, classes, children, options);
5754 * Wraps group in a span if it's a document fragment, allowing to apply classes
5881 const classes = child.wrapperClasses || [];
5883 const childWrap = makeSpan(classes, [pstrut, elem], undefined, style);
5930 vtable.classes.push("vlist-t2");
6179 * Describes spaces between different classes of atoms.
6434 // of its `classes` array. A later cleanup should ensure this, for
6440 const prevType = prev.classes[0];
6441 const type = node.classes[0];
6444 prev.classes[0] = "mord";
6446 node.classes[0] = "mord";
6489 // spacing should go between atoms of different classes
6492 if (node.classes[0] === "mspace") {
6562 return DomEnum[node.classes[0]] || null;
6564 const makeNullDelimiter = function makeNullDelimiter(options, classes) { argument
6566 return makeSpan$1(classes.concat(moreClasses));
6690 tagChild.classes = ["tag"];
7164 const classes = ["katex-display"];
7167 classes.push("leqno");
7171 classes.push("fleqn");
7174 node = buildCommon.makeSpan(classes, [node]);
7632 accentBody.classes.push('accent-full');
7695 supSubGroup.classes[0] = "mord";
7847 upperGroup.classes.push("x-arrow-pad");
7854 lowerGroup.classes.push("x-arrow-pad");
7905 vlist.children[0].children[0].children[1].classes.push("svg-align");
8097 span.classes.push("newline");
8165 const styleWrap = function styleWrap(delim, toStyle, options, classes) { argument
8167 …const span = buildCommon.makeSpan(classes.concat(newOptions.sizingClasses(options)), [delim], opti…
8178 span.classes.push("delimcenter");
8190 const makeSmallDelim = function makeSmallDelim(delim, style, center, options, mode, classes) { argument
8192 const span = styleWrap(text, style, options, classes);
8214 const makeLargeDelim = function makeLargeDelim(delim, size, center, options, mode, classes) { argument
8216 …Common.makeSpan(["delimsizing", "size" + size], [inner], options), Style$1.TEXT, options, classes);
8260 … makeStackedDelim = function makeStackedDelim(delim, heightTotal, center, options, mode, classes) { argument
8457 …uildCommon.makeSpan(["delimsizing", "mult"], [inner], newOptions), Style$1.TEXT, options, classes);
8568 const makeSizedDelim = function makeSizedDelim(delim, size, options, mode, classes) { argument
8578 return makeLargeDelim(delim, size, false, options, mode, classes);
8580 return makeStackedDelim(delim, sizeToMaxHeight[size], false, options, mode, classes);
8719 …keCustomSizedDelim = function makeCustomSizedDelim(delim, height, center, options, mode, classes) { argument
8743 return makeSmallDelim(delim, delimType.style, center, options, mode, classes);
8745 return makeLargeDelim(delim, delimType.size, center, options, mode, classes);
8749 return makeStackedDelim(delim, height, center, options, mode, classes);
8758 const makeLeftRightDelim = function makeLeftRightDelim(delim, height, depth, options, mode, classes argument
8777 return makeCustomSizedDelim(delim, totalHeight, true, options, mode, classes);
9144 inner.classes.push("cancel-pad");
9147 inner.classes.push("boxpad");
11150 vlist.children[0].children[0].children[1].classes.push("svg-align");
11167 vlist.children[0].children[0].children[0].classes.push("svg-align");
11928 base.classes.unshift("mop"); // $FlowFixMe
11938 base.classes[0] = "mop"; // replace old mclass
12608 …tions.sizeMultiplier / baseOptions.sizeMultiplier; // Add size-resetting classes to the inner list…
12612 const pos = inner[i].classes.indexOf("sizing");
12615 Array.prototype.push.apply(inner[i].classes, options.sizingClasses(baseOptions)); argument
12616 } else if (inner[i].classes[pos + 1] === "reset-size" + options.size) {
12620 inner[i].classes[pos + 1] = "reset-size" + baseOptions.size;
13320 ord.classes.push(className);