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

Function cU

resources/vega.min.js:32393–32435  ·  view source on GitHub ↗
(t, e, n)

Source from the content-addressed store, hash-verified

32391 );
32392 }
32393 function cU(t, e, n) {
32394 const r = V(t.signals),
32395 i = V(t.scales);
32396 return (
32397 n || r.forEach((t) => HN(t, e)),
32398 V(t.projections).forEach((t) =>
32399 (function (t, e) {
32400 const n = e.config.projection || {},
32401 r = {};
32402 for (const n in t) "name" !== n && (r[n] = aR(t[n], n, e));
32403 for (const t in n) null == r[t] && (r[t] = aR(n[t], t, e));
32404 e.addProjection(t.name, r);
32405 })(t, e),
32406 ),
32407 i.forEach((t) =>
32408 (function (t, e) {
32409 const n = t.type || "linear";
32410 (sp(n) || s("Unrecognized scale type: " + Dt(n)),
32411 e.addScale(t.name, { type: n, domain: void 0 }));
32412 })(t, e),
32413 ),
32414 V(t.data).forEach((t) => NL(t, e)),
32415 i.forEach((t) => GO(t, e)),
32416 (n || r).forEach((t) =>
32417 (function (t, e) {
32418 const n = e.getSignal(t.name);
32419 let r = t.update;
32420 (t.init &&
32421 (r
32422 ? s("Signals can not include both init and update expressions.")
32423 : ((r = t.init), (n.initonly = !0))),
32424 r && ((r = BB(r, e)), (n.update = r.$expr), (n.params = r.$params)),
32425 t.on && t.on.forEach((t) => pO(t, e, n.id)));
32426 })(t, e),
32427 ),
32428 V(t.axes).forEach((t) => uU(t, e)),
32429 V(t.marks).forEach((t) => CL(t, e)),
32430 V(t.legends).forEach((t) => FL(t, e)),
32431 t.title && BL(t.title, e),
32432 e.parseLambdas(),
32433 e
32434 );
32435 }
32436 const fU = (t) =>
32437 fN(
32438 {

Callers 2

hUFunction · 0.85
parseFunction · 0.85

Calls 14

HNFunction · 0.85
aRFunction · 0.85
DtFunction · 0.85
NLFunction · 0.85
GOFunction · 0.85
BBFunction · 0.85
pOFunction · 0.85
uUFunction · 0.85
CLFunction · 0.85
FLFunction · 0.85
BLFunction · 0.85
VFunction · 0.70

Tested by

no test coverage detected