UNPKG

547 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.d3Time = void 0;
4const utils_1 = require("../utils");
5const d3Time = (min, max, count, interval, utc) => {
6 const r = min > max;
7 const lo = r ? max : min;
8 const hi = r ? min : max;
9 const [tickInterval, step] = (0, utils_1.findTickInterval)(lo, hi, count, interval, utc);
10 const ticks = tickInterval.range(lo, new Date(+hi + 1), step, true);
11 return r ? ticks.reverse() : ticks;
12};
13exports.d3Time = d3Time;
14//# sourceMappingURL=d3-time.js.map
\No newline at end of file