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

Function delimTypeToFont

static/katex/katex.mjs:8474–8484  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

8472 */
8473
8474const delimTypeToFont = function delimTypeToFont(type) {
8475 if (type.type === "small") {
8476 return "Main-Regular";
8477 } else if (type.type === "large") {
8478 return "Size" + type.size + "-Regular";
8479 } else if (type.type === "stack") {
8480 return "Size4-Regular";
8481 } else {
8482 throw new Error(`Add support for delim type '${type.type}' here.`);
8483 }
8484};
8485/**
8486 * Traverse a sequence of types of delimiters to decide what kind of delimiter
8487 * should be used to create a delimiter of the given height+depth.

Callers 1

traverseSequenceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected