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

Function hd

resources/vega.min.js:10418–10476  ·  view source on GitHub ↗
(t, e, n, r, i, o, a, s, u, l)

Source from the content-addressed store, hash-verified

10416 return t instanceof Date ? +t : +new Date(+t);
10417 }
10418 function hd(t, e, n, r, i, o, a, s, u, l) {
10419 var c = Hh(),
10420 f = c.invert,
10421 h = c.domain,
10422 d = l(".%L"),
10423 p = l(":%S"),
10424 g = l("%I:%M"),
10425 m = l("%I %p"),
10426 y = l("%a %d"),
10427 v = l("%b %d"),
10428 _ = l("%B"),
10429 x = l("%Y");
10430 function b(t) {
10431 return (
10432 u(t) < t
10433 ? d
10434 : s(t) < t
10435 ? p
10436 : a(t) < t
10437 ? g
10438 : o(t) < t
10439 ? m
10440 : r(t) < t
10441 ? i(t) < t
10442 ? y
10443 : v
10444 : n(t) < t
10445 ? _
10446 : x
10447 )(t);
10448 }
10449 return (
10450 (c.invert = function (t) {
10451 return new Date(f(t));
10452 }),
10453 (c.domain = function (t) {
10454 return arguments.length ? h(Array.from(t, fd)) : h().map(cd);
10455 }),
10456 (c.ticks = function (e) {
10457 var n = h();
10458 return t(n[0], n[n.length - 1], null == e ? 10 : e);
10459 }),
10460 (c.tickFormat = function (t, e) {
10461 return null == e ? b : l(e);
10462 }),
10463 (c.nice = function (t) {
10464 var n = h();
10465 return (
10466 (t && "function" == typeof t.range) ||
10467 (t = e(n[0], n[n.length - 1], null == t ? 10 : t)),
10468 t ? h(Vh(n, t)) : c
10469 );
10470 }),
10471 (c.copy = function () {
10472 return Ih(c, hd(t, e, n, r, i, o, a, s, u, l));
10473 }),
10474 c
10475 );

Callers 1

vega.min.jsFile · 0.70

Calls 10

HhFunction · 0.85
eFunction · 0.85
VhFunction · 0.85
IhFunction · 0.85
lFunction · 0.70
fFunction · 0.70
hFunction · 0.70
tFunction · 0.70
fromMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected