@visx/vendor
Version:
vendored packages for visx
20 lines (19 loc) • 586 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.seconds = exports.second = void 0;
var _interval = require("./interval.js");
var _duration = require("./duration.js");
const second = (0, _interval.timeInterval)(date => {
date.setTime(date - date.getMilliseconds());
}, (date, step) => {
date.setTime(+date + step * _duration.durationSecond);
}, (start, end) => {
return (end - start) / _duration.durationSecond;
}, date => {
return date.getUTCSeconds();
});
exports.second = second;
const seconds = second.range;
exports.seconds = seconds;
;