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

Function Sp

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

Source from the content-addressed store, hash-verified

11436 Cp = (t, e) => t[1] - e[1],
11437 Fp = (t, e) => e[1] - t[1];
11438 function Sp(t, e, n) {
11439 let r;
11440 return (
11441 yt(e) &&
11442 (t.bins && (e = Math.max(e, t.bins.length)),
11443 null != n &&
11444 (e = Math.min(e, Math.floor(Et(t.domain()) / n || 1) + 1))),
11445 A(e) && ((r = e.step), (e = e.interval)),
11446 _t(e) &&
11447 ((e =
11448 t.type === Od
11449 ? Dr(e)
11450 : t.type == Rd
11451 ? Cr(e)
11452 : s("Only time and utc scales accept interval strings.")),
11453 r && (e = e.every(r))),
11454 e
11455 );
11456 }
11457 function $p(t, e, n) {
11458 let r = t.range(),
11459 i = r[0],

Callers 1

transformFunction · 0.70

Calls 7

ytFunction · 0.85
EtFunction · 0.85
CrFunction · 0.85
AFunction · 0.70
_tFunction · 0.70
DrFunction · 0.70
sFunction · 0.70

Tested by

no test coverage detected