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

Function update

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

Source from the content-addressed store, hash-verified

26624 });
26625 },
26626 update(t, e, n) {
26627 const r = this._dims,
26628 i = t.query,
26629 o = e.stamp,
26630 a = r.length;
26631 let s,
26632 u,
26633 l = 0;
26634 for (n.filters = 0, u = 0; u < a; ++u)
26635 t.modified("query", u) && ((s = u), ++l);
26636 if (1 === l)
26637 ((l = r[s].one), this.incrementOne(r[s], i[s], n.add, n.rem));
26638 else
26639 for (u = 0, l = 0; u < a; ++u)
26640 t.modified("query", u) &&
26641 ((l |= r[u].one),
26642 this.incrementAll(r[u], i[u], o, n.add),
26643 (n.rem = n.add));
26644 return l;
26645 },
26646 incrementAll(t, e, n, r) {
26647 const i = this.value,
26648 o = i.seen(),

Callers

nothing calls this directly

Calls 1

onMethod · 0.45

Tested by

no test coverage detected