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

Function hO

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

Source from the content-addressed store, hash-verified

30488 return 1 === Object.keys(r).length ? n : e.addStream(r).id;
30489 }
30490 function hO(t, e, n) {
30491 let r = e.between;
30492 return (
30493 r &&
30494 (2 !== r.length &&
30495 s('Stream "between" parameter must have 2 entries: ' + Dt(e)),
30496 (t.between = [uO(r[0], n), uO(r[1], n)])),
30497 (r = e.filter ? [].concat(e.filter) : []),
30498 (e.marktype || e.markname || e.markrole) &&
30499 r.push(
30500 (function (t, e, n) {
30501 const r = "event.item";
30502 return (
30503 r +
30504 (t && "*" !== t
30505 ? "&&" + r + ".mark.marktype==='" + t + "'"
30506 : "") +
30507 (n ? "&&" + r + ".mark.role==='" + n + "'" : "") +
30508 (e ? "&&" + r + ".mark.name==='" + e + "'" : "")
30509 );
30510 })(e.marktype, e.markname, e.markrole),
30511 ),
30512 e.source === eO && r.push("inScope(event.item)"),
30513 r.length && (t.filter = BB("(" + r.join(")&&(") + ")", n).$expr),
30514 null != (r = e.throttle) && (t.throttle = +r),
30515 null != (r = e.debounce) && (t.debounce = +r),
30516 e.consume && (t.consume = !0),
30517 t
30518 );
30519 }
30520 const dO = { code: "_.$value", ast: { type: "Identifier", value: "value" } };
30521 function pO(t, e, n) {
30522 const r = t.encode,

Callers 3

lOFunction · 0.85
cOFunction · 0.85
fOFunction · 0.85

Calls 4

DtFunction · 0.85
uOFunction · 0.85
BBFunction · 0.85
sFunction · 0.70

Tested by

no test coverage detected