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

Function Up

resources/vega.min.js:11529–11542  ·  view source on GitHub ↗
(t, e, n, r, i, o, a)

Source from the content-addressed store, hash-verified

11527 }
11528 const Lp = (t) => Np[t.type] || t.bins;
11529 function Up(t, e, n, r, i, o, a) {
11530 const s =
11531 Op[e.type] && o !== Od && o !== Rd
11532 ? (function (t, e, n) {
11533 const r = e[Op[e.type]](),
11534 i = r.length;
11535 let o,
11536 a = i > 1 ? r[1] - r[0] : r[0];
11537 for (o = 1; o < i; ++o) a = Math.min(a, r[o] - r[o - 1]);
11538 return t.formatSpan(0, a, 30, n);
11539 })(t, e, i)
11540 : Bp(t, e, n, i, o, a);
11541 return r === Mp && Lp(e) ? qp(s) : r === Ep ? jp(s) : Ip(s);
11542 }
11543 const qp = (t) => (e, n, r) => {
11544 const i = Pp(r[n + 1], Pp(r.max, 1 / 0)),
11545 o = Wp(e, t),

Callers 2

HpFunction · 0.70
transformFunction · 0.70

Calls 5

BpFunction · 0.85
IpFunction · 0.85
LpFunction · 0.70
qpFunction · 0.70
jpFunction · 0.70

Tested by

no test coverage detected