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

Function xm

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

Source from the content-addressed store, hash-verified

10944 : xm(e);
10945 }
10946 function xm(e) {
10947 return D(e.component.scales).reduce((n, i) => {
10948 const r = e.component.scales[i];
10949 if (r.merged) return n;
10950 const o = r.combine(),
10951 {
10952 name: a,
10953 type: s,
10954 selectionExtent: l,
10955 domains: c,
10956 range: u,
10957 reverse: f,
10958 ...d
10959 } = o,
10960 m = (function (e, n, i, r) {
10961 if (_t(i)) {
10962 if (kn(e)) return { step: { signal: `${n}_step` } };
10963 } else if (t.isObject(e) && Sn(e))
10964 return { ...e, data: r.lookupDataSource(e.data) };
10965 return e;
10966 })(o.range, a, i, e),
10967 p = vm(e, i),
10968 g = l
10969 ? (function (e, n, i, r) {
10970 const o = df(e, n.param, n);
10971 return {
10972 signal:
10973 Sr(i.get("type")) && t.isArray(r) && r[0] > r[1]
10974 ? `isValid(${o}) && reverse(${o})`
10975 : o,
10976 };
10977 })(e, l, r, p)
10978 : null;
10979 return (
10980 n.push({
10981 name: a,
10982 type: s,
10983 ...(p ? { domain: p } : {}),
10984 ...(g ? { domainRaw: g } : {}),
10985 range: m,
10986 ...(void 0 !== f ? { reverse: f } : {}),
10987 ...d,
10988 }),
10989 n
10990 );
10991 }, []);
10992 }
10993 class $m extends oc {
10994 merged = !1;
10995 constructor(e, t) {

Callers 1

bmFunction · 0.70

Calls 10

DFunction · 0.85
knFunction · 0.85
SnFunction · 0.85
combineMethod · 0.80
lookupDataSourceMethod · 0.80
_tFunction · 0.70
vmFunction · 0.70
dfFunction · 0.70
SrFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected