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

Function sd

resources/vega-lite.min.js:8844–8875  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

8842 return { signal: `clamp(${e.getSizeSignalRef(t).signal}, ${n}, ${i})` };
8843 }
8844 function sd(e) {
8845 const t = qm(e)
8846 ? (function (e) {
8847 const { encoding: t } = e,
8848 n = {};
8849 for (const i of [he, ...Os]) {
8850 const r = ka(t[i]);
8851 r &&
8852 e.getScaleComponent(i) &&
8853 ((i === be && Zo(r) && r.type === fr) || (n[i] = cd(e, i)));
8854 }
8855 return n;
8856 })(e)
8857 : (function (e) {
8858 const { legends: t, resolve: n } = e.component;
8859 for (const i of e.children) {
8860 sd(i);
8861 for (const r of D(i.component.legends))
8862 ((n.legend[r] = Xf(e.component.resolve, r)),
8863 "shared" === n.legend[r] &&
8864 ((t[r] = ud(t[r], i.component.legends[r])),
8865 t[r] || ((n.legend[r] = "independent"), delete t[r])));
8866 }
8867 for (const i of D(t))
8868 for (const t of e.children)
8869 t.component.legends[i] &&
8870 "shared" === n.legend[i] &&
8871 delete t.component.legends[i];
8872 return t;
8873 })(e);
8874 return ((e.component.legends = t), t);
8875 }
8876 function ld(e, t, n, i) {
8877 switch (t) {
8878 case "disable":

Callers 1

parseLegendsMethod · 0.70

Calls 8

ZoFunction · 0.85
DFunction · 0.85
getScaleComponentMethod · 0.80
qmFunction · 0.70
kaFunction · 0.70
cdFunction · 0.70
XfFunction · 0.70
udFunction · 0.70

Tested by

no test coverage detected