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

Function countsRef

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

Source from the content-addressed store, hash-verified

31656 }),
31657 (kL.prototype = {
31658 countsRef(t, e, n) {
31659 const r = this,
31660 i = r.counts || (r.counts = {}),
31661 o = AL(e);
31662 let a, s, u;
31663 return (
31664 null != o && ((t = r.scope), (a = i[o])),
31665 a
31666 ? n && n.field && ML(t, a.agg.params, n)
31667 : ((u = { groupby: t.fieldRef(e, "key"), pulse: XN(r.output) }),
31668 n && n.field && ML(t, u, n),
31669 (s = t.add(yO(u))),
31670 (a = t.add(xO({ pulse: XN(s) }))),
31671 (a = { agg: s, ref: XN(a) }),
31672 null != o && (i[o] = a)),
31673 a.ref
31674 );
31675 },
31676 tuplesRef() {
31677 return XN(this.values);
31678 },

Callers

nothing calls this directly

Calls 4

ALFunction · 0.85
MLFunction · 0.85
XNFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected