1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.d3Time = void 0;
|
4 | const utils_1 = require("../utils");
|
5 | const 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 | };
|
13 | exports.d3Time = d3Time;
|
14 |
|
\ | No newline at end of file |