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

Function Bp

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

Source from the content-addressed store, hash-verified

11480 return t.bins ? $p(t, t.bins, e) : t.ticks ? t.ticks(e) : t.domain();
11481 }
11482 function Bp(t, e, n, r, i, o) {
11483 const a = e.type;
11484 let s = Dp;
11485 if (a === Od || i === Od) s = t.timeFormat(r);
11486 else if (a === Rd || i === Rd) s = t.utcFormat(r);
11487 else if (hp(a)) {
11488 const i = t.formatFloat(r);
11489 if (o || e.bins) s = i;
11490 else {
11491 const t = zp(e, n, !1);
11492 s = (e) => (t(e) ? i(e) : "");
11493 }
11494 } else if (e.tickFormat) {
11495 const i = e.domain();
11496 s = t.formatSpan(i[0], i[i.length - 1], n, r);
11497 } else r && (s = t.format(r));
11498 return s;
11499 }
11500 function zp(t, e, n) {
11501 const r = Tp(t, e),
11502 i = t.base(),

Callers 2

UpFunction · 0.85
transformFunction · 0.85

Calls 5

hpFunction · 0.70
zpFunction · 0.70
tFunction · 0.70
iFunction · 0.70
formatMethod · 0.45

Tested by

no test coverage detected