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

Method run

resources/vega-lite.min.js:4733–4787  ·  view source on GitHub ↗
(e, t, n)

Source from the content-addressed store, hash-verified

4731 return !1;
4732 }
4733 run(e, t, n) {
4734 const { config: i } = t,
4735 { params: r, projection: o, mark: a, name: s, encoding: l, ...c } = e,
4736 d = Xa(l, i),
4737 m = no(a) ? a : { type: a },
4738 p = pl(m, i[m.type], d),
4739 g = "area" === m.type && gl(m, i[m.type]),
4740 h = [
4741 {
4742 name: s,
4743 ...(r ? { params: r } : {}),
4744 mark: dl({
4745 ...("area" === m.type &&
4746 void 0 === m.opacity &&
4747 void 0 === m.fillOpacity
4748 ? { opacity: 0.7 }
4749 : {}),
4750 ...m,
4751 }),
4752 encoding: f(d, ["shape"]),
4753 },
4754 ],
4755 y = ul(fl(m, d, i), d);
4756 let v = d;
4757 if (y) {
4758 const { fieldChannel: e, offset: t } = y;
4759 v = { ...d, [e]: { ...d[e], ...(t ? { stack: t } : {}) } };
4760 }
4761 return (
4762 (v = f(v, ["y2", "x2"])),
4763 g &&
4764 h.push({
4765 ...(o ? { projection: o } : {}),
4766 mark: {
4767 type: "line",
4768 ...u(m, ["clip", "interpolate", "tension", "tooltip"]),
4769 ...g,
4770 },
4771 encoding: v,
4772 }),
4773 p &&
4774 h.push({
4775 ...(o ? { projection: o } : {}),
4776 mark: {
4777 type: "point",
4778 opacity: 1,
4779 filled: !0,
4780 ...u(m, ["clip", "tooltip"]),
4781 ...p,
4782 },
4783 encoding: v,
4784 }),
4785 n({ ...c, layer: h }, { ...t, config: ml(i) })
4786 );
4787 }
4788 }
4789 function yl(e, t) {
4790 return t ? (Uo(e) ? kl(e, t) : xl(e, t)) : e;

Callers 7

debounceFunction · 0.45
aFunction · 0.45
vega.min.jsFile · 0.45
transformFunction · 0.45
mapUnitMethod · 0.45
optimizeMethod · 0.45
optimizeMethod · 0.45

Calls 11

ulFunction · 0.85
flFunction · 0.85
mlFunction · 0.85
XaFunction · 0.70
noFunction · 0.70
plFunction · 0.70
glFunction · 0.70
dlFunction · 0.70
fFunction · 0.70
uFunction · 0.70
nFunction · 0.70

Tested by

no test coverage detected