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

Function gf

resources/vega-lite.min.js:7800–7905  ·  view source on GitHub ↗
(e, n, i)

Source from the content-addressed store, hash-verified

7798 (e.encode[t].update[n] = i));
7799 }
7800 function gf(e, n, i) {
7801 let r =
7802 arguments.length > 3 && void 0 !== arguments[3]
7803 ? arguments[3]
7804 : { header: !1 };
7805 const {
7806 disable: o,
7807 orient: a,
7808 scale: s,
7809 labelExpr: l,
7810 title: c,
7811 zindex: u,
7812 ...f
7813 } = e.combine();
7814 if (!o) {
7815 for (const e in f) {
7816 const i = e,
7817 r = Ea[i],
7818 o = f[i];
7819 if (r && r !== n && "both" !== r) delete f[i];
7820 else if (Ta(o)) {
7821 const { condition: e, ...n } = o,
7822 r = t.array(e),
7823 a = Aa[i];
7824 if (a) {
7825 const { vgProp: e, part: t } = a;
7826 (pf(f, t, e, [
7827 ...r.map((e) => {
7828 const { test: t, ...n } = e;
7829 return { test: mf(null, t), ...n };
7830 }),
7831 n,
7832 ]),
7833 delete f[i]);
7834 } else if (null === a) {
7835 const e = {
7836 signal:
7837 r
7838 .map((e) => {
7839 const { test: t, ...n } = e;
7840 return `${mf(null, t)} ? ${Nn(n)} : `;
7841 })
7842 .join("") + Nn(n),
7843 };
7844 f[i] = e;
7845 }
7846 } else if (wn(o)) {
7847 const e = Aa[i];
7848 if (e) {
7849 const { vgProp: t, part: n } = e;
7850 (pf(f, n, t, o), delete f[i]);
7851 }
7852 }
7853 p(["labelAlign", "labelBaseline"], i) && null === f[i] && delete f[i];
7854 }
7855 if ("grid" === n) {
7856 if (!f.grid) return;
7857 if (f.encode) {

Callers 2

assembleAxesMethod · 0.70
cpFunction · 0.70

Calls 14

$nFunction · 0.85
combineMethod · 0.80
hasAxisPartMethod · 0.80
TaFunction · 0.70
pfFunction · 0.70
mfFunction · 0.70
NnFunction · 0.70
wnFunction · 0.70
pFunction · 0.70
SFunction · 0.70
UFunction · 0.70
RFunction · 0.70

Tested by

no test coverage detected