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

Method getColor

static/katex/katex.mjs:5073–5081  ·  view source on GitHub ↗

* Gets the CSS color of the current options object, accounting for the * `colorMap`.

()

Source from the content-addressed store, hash-verified

5071 * `colorMap`.
5072 */
5073 getColor() {
5074 if (this.phantom) {
5075 return "transparent";
5076 } else if (this.color != null && Options.colorMap.hasOwnProperty(this.color)) {
5077 return Options.colorMap[this.color];
5078 } else {
5079 return this.color;
5080 }
5081 }
5082
5083}
5084

Callers 11

initNodeFunction · 0.80
buildCommon_makeSymbolFunction · 0.80
stretchy_encloseSpanFunction · 0.80
initNodeFunction · 0.80
makeSymbolFunction · 0.80
encloseSpanFunction · 0.80
BFunction · 0.80
BtFunction · 0.80
BeFunction · 0.80
colorSettingsFunction · 0.80
colorSettingsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected