MCPcopy Create free account
hub / github.com/alignoth/alignoth / nU

Function nU

resources/vega.min.js:31932–31960  ·  view source on GitHub ↗
(t, e, n, r)

Source from the content-addressed store, hash-verified

31930 : t;
31931 };
31932 function nU(t, e, n, r) {
31933 let i;
31934 if (e && ut(e, t)) return e[t];
31935 if (ut(n, t)) return n[t];
31936 if (t.startsWith("title")) {
31937 switch (t) {
31938 case "titleColor":
31939 i = "fill";
31940 break;
31941 case "titleFont":
31942 case "titleFontSize":
31943 case "titleFontWeight":
31944 i = t[5].toLowerCase() + t.slice(6);
31945 }
31946 return r[wR][i];
31947 }
31948 if (t.startsWith("label")) {
31949 switch (t) {
31950 case "labelColor":
31951 i = "fill";
31952 break;
31953 case "labelFont":
31954 case "labelFontSize":
31955 i = t[5].toLowerCase() + t.slice(6);
31956 }
31957 return r[bR][i];
31958 }
31959 return null;
31960 }
31961 function rU(t) {
31962 const e = {};
31963 for (const n of t) if (n) for (const t in n) e[t] = 1;

Callers 1

uUFunction · 0.85

Calls 1

utFunction · 0.70

Tested by

no test coverage detected