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

Function ff

resources/vega-lite.min.js:7726–7746  ·  view source on GitHub ↗
(e, n, i)

Source from the content-addressed store, hash-verified

7724 }
7725 }
7726 function ff(e, n, i) {
7727 let r =
7728 arguments.length > 3 && void 0 !== arguments[3] ? arguments[3] : "datum";
7729 const o = t.isString(n) ? n : n.param,
7730 a = C(o),
7731 s = t.stringValue(a + Ju);
7732 let l;
7733 try {
7734 l = e.getSelectionComponent(a, o);
7735 } catch (e) {
7736 return `!!${a}`;
7737 }
7738 if (l.project.timeUnit) {
7739 const t = i ?? e.component.data.raw,
7740 n = l.project.timeUnit.clone();
7741 t.parent ? n.insertAsParentOf(t) : (t.parent = n);
7742 }
7743 const c = `${l.project.hasSelectionId ? "vlSelectionIdTest(" : "vlSelectionTest("}${s}, ${r}${"global" === l.resolve ? ")" : `, ${t.stringValue(l.resolve)})`}`,
7744 u = `length(data(${s}))`;
7745 return !1 === n.empty ? `${u} && ${c}` : `!${u} || ${c}`;
7746 }
7747 function df(e, n, i) {
7748 const r = C(n),
7749 o = i.encoding;

Callers 2

ruFunction · 0.70
mfFunction · 0.70

Calls 4

getSelectionComponentMethod · 0.80
insertAsParentOfMethod · 0.80
CFunction · 0.70
cloneMethod · 0.45

Tested by

no test coverage detected