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

Function qN

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

Source from the content-addressed store, hash-verified

30354 return o;
30355 }
30356 function qN(t, e, n, r) {
30357 const i = {},
30358 o = {};
30359 for (const e in t)
30360 null != t[e] &&
30361 (i[e] = PN(
30362 ((a = t[e]),
30363 k(a)
30364 ? (function (t) {
30365 let e = "";
30366 return (
30367 t.forEach((t) => {
30368 const n = zN(t);
30369 e += t.test ? `(${t.test})?${n}:` : n;
30370 }),
30371 ":" === F(e) && (e += "null"),
30372 e
30373 );
30374 })(a)
30375 : zN(a)),
30376 r,
30377 n,
30378 o,
30379 ));
30380 var a;
30381 return {
30382 $expr: { marktype: e, channels: i },
30383 $fields: Object.keys(o),
30384 $output: Object.keys(t),
30385 };
30386 }
30387 function PN(t, e, n, r) {
30388 const i = BB(t, e);
30389 return (i.$fields.forEach((t) => (r[t] = 1)), ot(n, i.$params), i.$expr);

Callers 1

UNFunction · 0.85

Calls 4

PNFunction · 0.85
zNFunction · 0.85
FFunction · 0.85
kFunction · 0.70

Tested by

no test coverage detected