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

Function Mm

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

Source from the content-addressed store, hash-verified

11735 var a, s;
11736 }
11737 function Mm(e) {
11738 qm(e)
11739 ? (e.component.scales = (function (e) {
11740 const { encoding: t, mark: n, markDef: i } = e,
11741 r = {};
11742 for (const o of Xt) {
11743 const a = ka(t[o]);
11744 if (a && n === Kr && o === be && a.type === fr) continue;
11745 let s = a && a.scale;
11746 if (a && null !== s && !1 !== s) {
11747 s ??= {};
11748 const n = Em(s, o, a, i, Va(t, o));
11749 r[o] = new $m(e.scaleName(`${o}`, !0), {
11750 value: n,
11751 explicit: s.type === n,
11752 });
11753 }
11754 }
11755 return r;
11756 })(e))
11757 : (e.component.scales = (function (e) {
11758 const t = (e.component.scales = {}),
11759 n = {},
11760 i = e.component.resolve;
11761 for (const t of e.children) {
11762 Mm(t);
11763 for (const r of D(t.component.scales))
11764 if (((i.scale[r] ??= Yf(r, e)), "shared" === i.scale[r])) {
11765 const e = n[r],
11766 o = t.component.scales[r].getWithExplicit("type");
11767 e
11768 ? pr(e.value, o.value)
11769 ? (n[r] = uc(e, o, "type", "scale", Rm))
11770 : ((i.scale[r] = "independent"), delete n[r])
11771 : (n[r] = o);
11772 }
11773 }
11774 for (const i of D(n)) {
11775 const r = e.scaleName(i, !0),
11776 o = n[i];
11777 t[i] = new $m(r, o);
11778 for (const t of e.children) {
11779 const e = t.component.scales[i];
11780 e && (t.renameScale(e.get("name"), r), (e.merged = !0));
11781 }
11782 }
11783 return t;
11784 })(e));
11785 }
11786 const Rm = lc((e, t) => hr(e) - hr(t));
11787 class Lm {
11788 constructor() {

Callers 1

parseScaleMethod · 0.70

Calls 12

DFunction · 0.85
scaleNameMethod · 0.80
getWithExplicitMethod · 0.80
renameScaleMethod · 0.80
qmFunction · 0.70
kaFunction · 0.70
EmFunction · 0.70
VaFunction · 0.70
YfFunction · 0.70
prFunction · 0.70
ucFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected