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

Function Xr

resources/vega.min.js:2289–2306  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

2287 [Gr, 1, qr],
2288 ];
2289 function Xr(t) {
2290 const e = t.extent,
2291 n = t.maxbins || 40,
2292 r = Math.abs(Et(e)) / n;
2293 let i,
2294 o,
2295 a = te((t) => t[2]).right(Vr, r);
2296 return (
2297 a === Vr.length
2298 ? ((i = Gr), (o = xe(e[0] / qr, e[1] / qr, n)))
2299 : a
2300 ? ((a = Vr[r / Vr[a - 1][2] < Vr[a][2] / r ? a - 1 : a]),
2301 (i = a[0]),
2302 (o = a[1]))
2303 : ((i = Pr), (o = Math.max(xe(e[0], e[1], n), 1))),
2304 { units: i, step: o }
2305 );
2306 }
2307 function Jr(t) {
2308 if (0 <= t.y && t.y < 100) {
2309 var e = new Date(-1, t.m, t.d, t.H, t.M, t.S, t.L);

Callers 1

_floorFunction · 0.85

Calls 3

EtFunction · 0.85
teFunction · 0.85
xeFunction · 0.70

Tested by

no test coverage detected