@fluentui/react-charting 4.23.25 → 4.23.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-charting.js +854 -13
- package/dist/react-charting.js.map +1 -1
- package/dist/react-charting.min.js +2 -2
- package/package.json +5 -5
package/dist/react-charting.js
CHANGED
|
@@ -21313,6 +21313,37 @@ var CartesianChartBase = /** @class */ (function (_super) {
|
|
|
21313
21313
|
_this.props.getGraphData &&
|
|
21314
21314
|
_this.props.getGraphData(xScale, yScale, _this.state.containerHeight - _this.state._removalValueForTextTuncate, _this.state.containerWidth, _this.xAxisElement);
|
|
21315
21315
|
};
|
|
21316
|
+
_this._calculateChartMinWidth = function () {
|
|
21317
|
+
var labelWidth = 10; // Total padding on the left and right sides of the label
|
|
21318
|
+
// Case: truncated labels
|
|
21319
|
+
if (_this.props.showXAxisLablesTooltip) {
|
|
21320
|
+
var tickValues = _this._tickValues.map(function (val) {
|
|
21321
|
+
var numChars = _this.props.noOfCharsToTruncate || 4;
|
|
21322
|
+
return val.toString().length > numChars ? val.toString().slice(0, numChars) + "..." : val;
|
|
21323
|
+
});
|
|
21324
|
+
var longestLabelWidth = Object(_utilities_index__WEBPACK_IMPORTED_MODULE_5__["calculateLongestLabelWidth"])(tickValues, "." + _this._classNames.xAxis + " text");
|
|
21325
|
+
labelWidth += Math.ceil(longestLabelWidth);
|
|
21326
|
+
}
|
|
21327
|
+
// Case: wrapped labels
|
|
21328
|
+
else if (_this.props.wrapXAxisLables) {
|
|
21329
|
+
var words_1 = [];
|
|
21330
|
+
_this._tickValues.forEach(function (val) {
|
|
21331
|
+
words_1.push.apply(words_1, val.toString().split(/\s+/));
|
|
21332
|
+
});
|
|
21333
|
+
var longestLabelWidth = Object(_utilities_index__WEBPACK_IMPORTED_MODULE_5__["calculateLongestLabelWidth"])(words_1, "." + _this._classNames.xAxis + " text");
|
|
21334
|
+
labelWidth += Math.max(Math.ceil(longestLabelWidth), 10);
|
|
21335
|
+
}
|
|
21336
|
+
// Default case
|
|
21337
|
+
else {
|
|
21338
|
+
var longestLabelWidth = Object(_utilities_index__WEBPACK_IMPORTED_MODULE_5__["calculateLongestLabelWidth"])(_this._tickValues, "." + _this._classNames.xAxis + " text");
|
|
21339
|
+
labelWidth += Math.ceil(longestLabelWidth);
|
|
21340
|
+
}
|
|
21341
|
+
var minChartWidth = _this.margins.left + _this.margins.right + labelWidth * (_this._tickValues.length - 1);
|
|
21342
|
+
if (_this.props.chartType === _utilities_index__WEBPACK_IMPORTED_MODULE_5__["ChartTypes"].VerticalBarChart && _this.props.xAxisType === _utilities_index__WEBPACK_IMPORTED_MODULE_5__["XAxisTypes"].NumericAxis) {
|
|
21343
|
+
minChartWidth += _this.props.barwidth || 32;
|
|
21344
|
+
}
|
|
21345
|
+
return minChartWidth;
|
|
21346
|
+
};
|
|
21316
21347
|
_this.state = {
|
|
21317
21348
|
containerHeight: 0,
|
|
21318
21349
|
containerWidth: 0,
|
|
@@ -21348,8 +21379,9 @@ var CartesianChartBase = /** @class */ (function (_super) {
|
|
|
21348
21379
|
}
|
|
21349
21380
|
};
|
|
21350
21381
|
CartesianChartBase.prototype.render = function () {
|
|
21382
|
+
var _a, _b, _c, _d;
|
|
21351
21383
|
var _this = this;
|
|
21352
|
-
var
|
|
21384
|
+
var _e = this.props, calloutProps = _e.calloutProps, points = _e.points, chartType = _e.chartType, chartHoverProps = _e.chartHoverProps, svgFocusZoneProps = _e.svgFocusZoneProps, svgProps = _e.svgProps, culture = _e.culture;
|
|
21353
21385
|
if (this.props.parentRef) {
|
|
21354
21386
|
this._fitParentContainer();
|
|
21355
21387
|
}
|
|
@@ -21386,19 +21418,21 @@ var CartesianChartBase = /** @class */ (function (_super) {
|
|
|
21386
21418
|
*/
|
|
21387
21419
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21388
21420
|
var xScale;
|
|
21421
|
+
var tickValues;
|
|
21389
21422
|
switch (this.props.xAxisType) {
|
|
21390
21423
|
case _utilities_index__WEBPACK_IMPORTED_MODULE_5__["XAxisTypes"].NumericAxis:
|
|
21391
|
-
|
|
21424
|
+
(_a = Object(_utilities_index__WEBPACK_IMPORTED_MODULE_5__["createNumericXAxis"])(XAxisParams, culture), xScale = _a.xScale, tickValues = _a.tickValues);
|
|
21392
21425
|
break;
|
|
21393
21426
|
case _utilities_index__WEBPACK_IMPORTED_MODULE_5__["XAxisTypes"].DateAxis:
|
|
21394
|
-
|
|
21427
|
+
(_b = Object(_utilities_index__WEBPACK_IMPORTED_MODULE_5__["createDateXAxis"])(XAxisParams, this.props.tickParams), xScale = _b.xScale, tickValues = _b.tickValues);
|
|
21395
21428
|
break;
|
|
21396
21429
|
case _utilities_index__WEBPACK_IMPORTED_MODULE_5__["XAxisTypes"].StringAxis:
|
|
21397
|
-
|
|
21430
|
+
(_c = Object(_utilities_index__WEBPACK_IMPORTED_MODULE_5__["createStringXAxis"])(XAxisParams, this.props.tickParams, this.props.datasetForXAxisDomain, culture), xScale = _c.xScale, tickValues = _c.tickValues);
|
|
21398
21431
|
break;
|
|
21399
21432
|
default:
|
|
21400
|
-
|
|
21433
|
+
(_d = Object(_utilities_index__WEBPACK_IMPORTED_MODULE_5__["createNumericXAxis"])(XAxisParams, culture), xScale = _d.xScale, tickValues = _d.tickValues);
|
|
21401
21434
|
}
|
|
21435
|
+
this._tickValues = tickValues;
|
|
21402
21436
|
/*
|
|
21403
21437
|
* To enable wrapping of x axis tick values or to disaply complete x axis tick values,
|
|
21404
21438
|
* we need to calculate how much space it needed to render the text.
|
|
@@ -21460,7 +21494,7 @@ var CartesianChartBase = /** @class */ (function (_super) {
|
|
|
21460
21494
|
focusDirection = _fluentui_react_focus__WEBPACK_IMPORTED_MODULE_4__["FocusZoneDirection"].horizontal;
|
|
21461
21495
|
}
|
|
21462
21496
|
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { id: this.idForGraph, className: this._classNames.root, role: 'presentation', ref: function (rootElem) { return (_this.chartContainer = rootElem); }, onMouseLeave: this.props.onChartMouseLeave },
|
|
21463
|
-
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fluentui_react_focus__WEBPACK_IMPORTED_MODULE_4__["FocusZone"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ direction: focusDirection }, svgFocusZoneProps),
|
|
21497
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_fluentui_react_focus__WEBPACK_IMPORTED_MODULE_4__["FocusZone"], Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ direction: focusDirection, className: this._classNames.chartWrapper }, svgFocusZoneProps),
|
|
21464
21498
|
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("svg", Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({ width: svgDimensions.width, height: svgDimensions.height, "aria-label": this.props.chartTitle, style: { display: 'block' } }, svgProps),
|
|
21465
21499
|
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("g", { ref: function (e) {
|
|
21466
21500
|
_this.xAxisElement = e;
|
|
@@ -21556,7 +21590,9 @@ var CartesianChartBase = /** @class */ (function (_super) {
|
|
|
21556
21590
|
parseFloat(legendContainerComputedStyles.marginBottom || '0');
|
|
21557
21591
|
}
|
|
21558
21592
|
var container = _this.props.parentRef ? _this.props.parentRef : _this.chartContainer;
|
|
21559
|
-
var currentContainerWidth =
|
|
21593
|
+
var currentContainerWidth = _this.props.enableReflow
|
|
21594
|
+
? Math.max(container.getBoundingClientRect().width, _this._calculateChartMinWidth())
|
|
21595
|
+
: container.getBoundingClientRect().width;
|
|
21560
21596
|
var currentContainerHeight = container.getBoundingClientRect().height > legendContainerHeight
|
|
21561
21597
|
? container.getBoundingClientRect().height
|
|
21562
21598
|
: 350;
|
|
@@ -21622,6 +21658,9 @@ var getStyles = function (props) {
|
|
|
21622
21658
|
},
|
|
21623
21659
|
className,
|
|
21624
21660
|
],
|
|
21661
|
+
chartWrapper: {
|
|
21662
|
+
overflow: 'auto',
|
|
21663
|
+
},
|
|
21625
21664
|
xAxis: {
|
|
21626
21665
|
selectors: {
|
|
21627
21666
|
text: [
|
|
@@ -24782,6 +24821,9 @@ var LineChartBase = /** @class */ (function (_super) {
|
|
|
24782
24821
|
LineChartBase.prototype._refCallback = function (element, legendTitle) {
|
|
24783
24822
|
this._refArray.push({ index: legendTitle, refElement: element });
|
|
24784
24823
|
};
|
|
24824
|
+
LineChartBase.defaultProps = {
|
|
24825
|
+
enableReflow: true,
|
|
24826
|
+
};
|
|
24785
24827
|
return LineChartBase;
|
|
24786
24828
|
}(react__WEBPACK_IMPORTED_MODULE_1__["Component"]));
|
|
24787
24829
|
|
|
@@ -28195,6 +28237,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28195
28237
|
|
|
28196
28238
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createWrapOfXLabels", function() { return _utilities__WEBPACK_IMPORTED_MODULE_1__["createWrapOfXLabels"]; });
|
|
28197
28239
|
|
|
28240
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "calculateLongestLabelWidth", function() { return _utilities__WEBPACK_IMPORTED_MODULE_1__["calculateLongestLabelWidth"]; });
|
|
28241
|
+
|
|
28198
28242
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "tooltipOfXAxislabels", function() { return _utilities__WEBPACK_IMPORTED_MODULE_1__["tooltipOfXAxislabels"]; });
|
|
28199
28243
|
|
|
28200
28244
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getXAxisType", function() { return _utilities__WEBPACK_IMPORTED_MODULE_1__["getXAxisType"]; });
|
|
@@ -28255,6 +28299,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28255
28299
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getUnique", function() { return getUnique; });
|
|
28256
28300
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "silceOrAppendToArray", function() { return silceOrAppendToArray; });
|
|
28257
28301
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createWrapOfXLabels", function() { return createWrapOfXLabels; });
|
|
28302
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateLongestLabelWidth", function() { return calculateLongestLabelWidth; });
|
|
28258
28303
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tooltipOfXAxislabels", function() { return tooltipOfXAxislabels; });
|
|
28259
28304
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getXAxisType", function() { return getXAxisType; });
|
|
28260
28305
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "domainRangeOfDateForAreaChart", function() { return domainRangeOfDateForAreaChart; });
|
|
@@ -28280,6 +28325,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28280
28325
|
/* harmony import */ var d3_selection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../node_modules/d3-selection/index.js");
|
|
28281
28326
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../node_modules/d3-format/src/index.js");
|
|
28282
28327
|
/* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../node_modules/d3-time-format/src/index.js");
|
|
28328
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/index.js");
|
|
28283
28329
|
var _a;
|
|
28284
28330
|
|
|
28285
28331
|
|
|
@@ -28288,6 +28334,7 @@ var _a;
|
|
|
28288
28334
|
|
|
28289
28335
|
|
|
28290
28336
|
|
|
28337
|
+
|
|
28291
28338
|
var ChartTypes;
|
|
28292
28339
|
(function (ChartTypes) {
|
|
28293
28340
|
ChartTypes[ChartTypes["AreaChart"] = 0] = "AreaChart";
|
|
@@ -28335,7 +28382,34 @@ function createNumericXAxis(xAxisParams, culture) {
|
|
|
28335
28382
|
.selectAll('text')
|
|
28336
28383
|
.attr('aria-hidden', 'true');
|
|
28337
28384
|
}
|
|
28338
|
-
|
|
28385
|
+
var tickValues = xAxisScale.ticks(xAxisCount).map(xAxis.tickFormat());
|
|
28386
|
+
return { xScale: xAxisScale, tickValues: tickValues };
|
|
28387
|
+
}
|
|
28388
|
+
function multiFormat(date, locale) {
|
|
28389
|
+
var timeFormat = locale ? locale.format : d3_time_format__WEBPACK_IMPORTED_MODULE_6__["timeFormat"];
|
|
28390
|
+
var formatMillisecond = timeFormat('.%L');
|
|
28391
|
+
var formatSecond = timeFormat(':%S');
|
|
28392
|
+
var formatMinute = timeFormat('%I:%M');
|
|
28393
|
+
var formatHour = timeFormat('%I %p');
|
|
28394
|
+
var formatDay = timeFormat('%a %d');
|
|
28395
|
+
var formatWeek = timeFormat('%b %d');
|
|
28396
|
+
var formatMonth = timeFormat('%B');
|
|
28397
|
+
var formatYear = timeFormat('%Y');
|
|
28398
|
+
return (Object(d3_time__WEBPACK_IMPORTED_MODULE_7__["timeSecond"])(date) < date
|
|
28399
|
+
? formatMillisecond
|
|
28400
|
+
: Object(d3_time__WEBPACK_IMPORTED_MODULE_7__["timeMinute"])(date) < date
|
|
28401
|
+
? formatSecond
|
|
28402
|
+
: Object(d3_time__WEBPACK_IMPORTED_MODULE_7__["timeHour"])(date) < date
|
|
28403
|
+
? formatMinute
|
|
28404
|
+
: Object(d3_time__WEBPACK_IMPORTED_MODULE_7__["timeDay"])(date) < date
|
|
28405
|
+
? formatHour
|
|
28406
|
+
: Object(d3_time__WEBPACK_IMPORTED_MODULE_7__["timeMonth"])(date) < date
|
|
28407
|
+
? Object(d3_time__WEBPACK_IMPORTED_MODULE_7__["timeWeek"])(date) < date
|
|
28408
|
+
? formatDay
|
|
28409
|
+
: formatWeek
|
|
28410
|
+
: Object(d3_time__WEBPACK_IMPORTED_MODULE_7__["timeYear"])(date) < date
|
|
28411
|
+
? formatMonth
|
|
28412
|
+
: formatYear)(date);
|
|
28339
28413
|
}
|
|
28340
28414
|
/**
|
|
28341
28415
|
* Creating Date x axis of the Chart
|
|
@@ -28344,7 +28418,8 @@ function createNumericXAxis(xAxisParams, culture) {
|
|
|
28344
28418
|
* @param {ITickParams} tickParams
|
|
28345
28419
|
*/
|
|
28346
28420
|
function createDateXAxis(xAxisParams, tickParams) {
|
|
28347
|
-
var
|
|
28421
|
+
var _a;
|
|
28422
|
+
var domainNRangeValues = xAxisParams.domainNRangeValues, xAxisElement = xAxisParams.xAxisElement, _b = xAxisParams.tickPadding, tickPadding = _b === void 0 ? 6 : _b, _c = xAxisParams.xAxistickSize, xAxistickSize = _c === void 0 ? 6 : _c, _d = xAxisParams.xAxisCount, xAxisCount = _d === void 0 ? 6 : _d;
|
|
28348
28423
|
var xAxisScale = Object(d3_scale__WEBPACK_IMPORTED_MODULE_3__["scaleTime"])()
|
|
28349
28424
|
.domain([domainNRangeValues.dStartValue, domainNRangeValues.dEndValue])
|
|
28350
28425
|
.range([domainNRangeValues.rStartValue, domainNRangeValues.rEndValue]);
|
|
@@ -28360,7 +28435,12 @@ function createDateXAxis(xAxisParams, tickParams) {
|
|
|
28360
28435
|
.selectAll('text')
|
|
28361
28436
|
.attr('aria-hidden', 'true');
|
|
28362
28437
|
}
|
|
28363
|
-
|
|
28438
|
+
var tickValues = (_a = tickParams.tickValues, (_a !== null && _a !== void 0 ? _a : xAxisScale.ticks(xAxisCount))).map(function (val, idx) {
|
|
28439
|
+
var tickFormat = xAxis.tickFormat();
|
|
28440
|
+
// val is a Date object. So when the tick format is not set, format val as a string to calculate its width
|
|
28441
|
+
return tickFormat ? tickFormat(val, idx) : multiFormat(val);
|
|
28442
|
+
});
|
|
28443
|
+
return { xScale: xAxisScale, tickValues: tickValues };
|
|
28364
28444
|
}
|
|
28365
28445
|
/**
|
|
28366
28446
|
* Create String X axis
|
|
@@ -28390,7 +28470,8 @@ function createStringXAxis(xAxisParams, tickParams, dataset, culture) {
|
|
|
28390
28470
|
.selectAll('text')
|
|
28391
28471
|
.attr('aria-hidden', 'true');
|
|
28392
28472
|
}
|
|
28393
|
-
|
|
28473
|
+
var tickValues = dataset.map(xAxis.tickFormat());
|
|
28474
|
+
return { xScale: xAxisScale, tickValues: tickValues };
|
|
28394
28475
|
}
|
|
28395
28476
|
/**
|
|
28396
28477
|
* This method used for creating data points for the y axis.
|
|
@@ -28643,6 +28724,32 @@ function createWrapOfXLabels(wrapLabelProps) {
|
|
|
28643
28724
|
});
|
|
28644
28725
|
return removeVal > 0 ? removeVal : 0;
|
|
28645
28726
|
}
|
|
28727
|
+
/**
|
|
28728
|
+
* Calculates the width of the longest axis label in pixels
|
|
28729
|
+
*/
|
|
28730
|
+
var calculateLongestLabelWidth = function (labels, query) {
|
|
28731
|
+
if (query === void 0) { query = 'none'; }
|
|
28732
|
+
var maxLabelWidth = 0;
|
|
28733
|
+
var canvas = document.createElement('canvas');
|
|
28734
|
+
var ctx = canvas.getContext('2d');
|
|
28735
|
+
if (ctx) {
|
|
28736
|
+
var axisText = document.querySelector(query);
|
|
28737
|
+
if (axisText) {
|
|
28738
|
+
var styles = window.getComputedStyle(axisText, null);
|
|
28739
|
+
var fontWeight = styles.getPropertyValue('font-weight');
|
|
28740
|
+
var fontSize = styles.getPropertyValue('font-size');
|
|
28741
|
+
var fontFamily = styles.getPropertyValue('font-family');
|
|
28742
|
+
ctx.font = fontWeight + " " + fontSize + " " + fontFamily;
|
|
28743
|
+
}
|
|
28744
|
+
else {
|
|
28745
|
+
ctx.font = '600 10px "Segoe UI"';
|
|
28746
|
+
}
|
|
28747
|
+
labels.forEach(function (label) {
|
|
28748
|
+
maxLabelWidth = Math.max(ctx.measureText(label.toString()).width, maxLabelWidth);
|
|
28749
|
+
});
|
|
28750
|
+
}
|
|
28751
|
+
return maxLabelWidth;
|
|
28752
|
+
};
|
|
28646
28753
|
/**
|
|
28647
28754
|
* This method displays a tooltip to the x axis lables(tick values)
|
|
28648
28755
|
* when prop 'showXAxisLablesTooltip' enables to the respected chart.
|
|
@@ -29067,7 +29174,741 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29067
29174
|
// Do not modify this file; it is generated as part of publish.
|
|
29068
29175
|
// The checked in version is a placeholder only and will not be updated.
|
|
29069
29176
|
|
|
29070
|
-
Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@uifabric/charting', '4.23.
|
|
29177
|
+
Object(_uifabric_set_version__WEBPACK_IMPORTED_MODULE_0__["setVersion"])('@uifabric/charting', '4.23.26');
|
|
29178
|
+
|
|
29179
|
+
|
|
29180
|
+
/***/ }),
|
|
29181
|
+
|
|
29182
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/day.js":
|
|
29183
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29184
|
+
|
|
29185
|
+
"use strict";
|
|
29186
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29187
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "days", function() { return days; });
|
|
29188
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29189
|
+
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/duration.js");
|
|
29190
|
+
|
|
29191
|
+
|
|
29192
|
+
|
|
29193
|
+
var day = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29194
|
+
date.setHours(0, 0, 0, 0);
|
|
29195
|
+
}, function(date, step) {
|
|
29196
|
+
date.setDate(date.getDate() + step);
|
|
29197
|
+
}, function(start, end) {
|
|
29198
|
+
return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationDay"];
|
|
29199
|
+
}, function(date) {
|
|
29200
|
+
return date.getDate() - 1;
|
|
29201
|
+
});
|
|
29202
|
+
|
|
29203
|
+
/* harmony default export */ __webpack_exports__["default"] = (day);
|
|
29204
|
+
var days = day.range;
|
|
29205
|
+
|
|
29206
|
+
|
|
29207
|
+
/***/ }),
|
|
29208
|
+
|
|
29209
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/duration.js":
|
|
29210
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29211
|
+
|
|
29212
|
+
"use strict";
|
|
29213
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29214
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationSecond", function() { return durationSecond; });
|
|
29215
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationMinute", function() { return durationMinute; });
|
|
29216
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationHour", function() { return durationHour; });
|
|
29217
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationDay", function() { return durationDay; });
|
|
29218
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "durationWeek", function() { return durationWeek; });
|
|
29219
|
+
var durationSecond = 1e3;
|
|
29220
|
+
var durationMinute = 6e4;
|
|
29221
|
+
var durationHour = 36e5;
|
|
29222
|
+
var durationDay = 864e5;
|
|
29223
|
+
var durationWeek = 6048e5;
|
|
29224
|
+
|
|
29225
|
+
|
|
29226
|
+
/***/ }),
|
|
29227
|
+
|
|
29228
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/hour.js":
|
|
29229
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29230
|
+
|
|
29231
|
+
"use strict";
|
|
29232
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29233
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hours", function() { return hours; });
|
|
29234
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29235
|
+
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/duration.js");
|
|
29236
|
+
|
|
29237
|
+
|
|
29238
|
+
|
|
29239
|
+
var hour = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29240
|
+
date.setTime(date - date.getMilliseconds() - date.getSeconds() * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"] - date.getMinutes() * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]);
|
|
29241
|
+
}, function(date, step) {
|
|
29242
|
+
date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"]);
|
|
29243
|
+
}, function(start, end) {
|
|
29244
|
+
return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"];
|
|
29245
|
+
}, function(date) {
|
|
29246
|
+
return date.getHours();
|
|
29247
|
+
});
|
|
29248
|
+
|
|
29249
|
+
/* harmony default export */ __webpack_exports__["default"] = (hour);
|
|
29250
|
+
var hours = hour.range;
|
|
29251
|
+
|
|
29252
|
+
|
|
29253
|
+
/***/ }),
|
|
29254
|
+
|
|
29255
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/index.js":
|
|
29256
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29257
|
+
|
|
29258
|
+
"use strict";
|
|
29259
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29260
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29261
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeInterval", function() { return _interval_js__WEBPACK_IMPORTED_MODULE_0__["default"]; });
|
|
29262
|
+
|
|
29263
|
+
/* harmony import */ var _millisecond_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/millisecond.js");
|
|
29264
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMillisecond", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
|
29265
|
+
|
|
29266
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMilliseconds", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; });
|
|
29267
|
+
|
|
29268
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMillisecond", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["default"]; });
|
|
29269
|
+
|
|
29270
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMilliseconds", function() { return _millisecond_js__WEBPACK_IMPORTED_MODULE_1__["milliseconds"]; });
|
|
29271
|
+
|
|
29272
|
+
/* harmony import */ var _second_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/second.js");
|
|
29273
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSecond", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
29274
|
+
|
|
29275
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSeconds", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["seconds"]; });
|
|
29276
|
+
|
|
29277
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSecond", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["default"]; });
|
|
29278
|
+
|
|
29279
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSeconds", function() { return _second_js__WEBPACK_IMPORTED_MODULE_2__["seconds"]; });
|
|
29280
|
+
|
|
29281
|
+
/* harmony import */ var _minute_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/minute.js");
|
|
29282
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinute", function() { return _minute_js__WEBPACK_IMPORTED_MODULE_3__["default"]; });
|
|
29283
|
+
|
|
29284
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMinutes", function() { return _minute_js__WEBPACK_IMPORTED_MODULE_3__["minutes"]; });
|
|
29285
|
+
|
|
29286
|
+
/* harmony import */ var _hour_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/hour.js");
|
|
29287
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHour", function() { return _hour_js__WEBPACK_IMPORTED_MODULE_4__["default"]; });
|
|
29288
|
+
|
|
29289
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeHours", function() { return _hour_js__WEBPACK_IMPORTED_MODULE_4__["hours"]; });
|
|
29290
|
+
|
|
29291
|
+
/* harmony import */ var _day_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/day.js");
|
|
29292
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDay", function() { return _day_js__WEBPACK_IMPORTED_MODULE_5__["default"]; });
|
|
29293
|
+
|
|
29294
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeDays", function() { return _day_js__WEBPACK_IMPORTED_MODULE_5__["days"]; });
|
|
29295
|
+
|
|
29296
|
+
/* harmony import */ var _week_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/week.js");
|
|
29297
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeek", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sunday"]; });
|
|
29298
|
+
|
|
29299
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWeeks", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sundays"]; });
|
|
29300
|
+
|
|
29301
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSunday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sunday"]; });
|
|
29302
|
+
|
|
29303
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSundays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["sundays"]; });
|
|
29304
|
+
|
|
29305
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["monday"]; });
|
|
29306
|
+
|
|
29307
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMondays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["mondays"]; });
|
|
29308
|
+
|
|
29309
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["tuesday"]; });
|
|
29310
|
+
|
|
29311
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeTuesdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["tuesdays"]; });
|
|
29312
|
+
|
|
29313
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["wednesday"]; });
|
|
29314
|
+
|
|
29315
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeWednesdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["wednesdays"]; });
|
|
29316
|
+
|
|
29317
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["thursday"]; });
|
|
29318
|
+
|
|
29319
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeThursdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["thursdays"]; });
|
|
29320
|
+
|
|
29321
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFriday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["friday"]; });
|
|
29322
|
+
|
|
29323
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeFridays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["fridays"]; });
|
|
29324
|
+
|
|
29325
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturday", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["saturday"]; });
|
|
29326
|
+
|
|
29327
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeSaturdays", function() { return _week_js__WEBPACK_IMPORTED_MODULE_6__["saturdays"]; });
|
|
29328
|
+
|
|
29329
|
+
/* harmony import */ var _month_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/month.js");
|
|
29330
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonth", function() { return _month_js__WEBPACK_IMPORTED_MODULE_7__["default"]; });
|
|
29331
|
+
|
|
29332
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeMonths", function() { return _month_js__WEBPACK_IMPORTED_MODULE_7__["months"]; });
|
|
29333
|
+
|
|
29334
|
+
/* harmony import */ var _year_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/year.js");
|
|
29335
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYear", function() { return _year_js__WEBPACK_IMPORTED_MODULE_8__["default"]; });
|
|
29336
|
+
|
|
29337
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "timeYears", function() { return _year_js__WEBPACK_IMPORTED_MODULE_8__["years"]; });
|
|
29338
|
+
|
|
29339
|
+
/* harmony import */ var _utcMinute_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/utcMinute.js");
|
|
29340
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinute", function() { return _utcMinute_js__WEBPACK_IMPORTED_MODULE_9__["default"]; });
|
|
29341
|
+
|
|
29342
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return _utcMinute_js__WEBPACK_IMPORTED_MODULE_9__["utcMinutes"]; });
|
|
29343
|
+
|
|
29344
|
+
/* harmony import */ var _utcHour_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/utcHour.js");
|
|
29345
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHour", function() { return _utcHour_js__WEBPACK_IMPORTED_MODULE_10__["default"]; });
|
|
29346
|
+
|
|
29347
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return _utcHour_js__WEBPACK_IMPORTED_MODULE_10__["utcHours"]; });
|
|
29348
|
+
|
|
29349
|
+
/* harmony import */ var _utcDay_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/utcDay.js");
|
|
29350
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDay", function() { return _utcDay_js__WEBPACK_IMPORTED_MODULE_11__["default"]; });
|
|
29351
|
+
|
|
29352
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return _utcDay_js__WEBPACK_IMPORTED_MODULE_11__["utcDays"]; });
|
|
29353
|
+
|
|
29354
|
+
/* harmony import */ var _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/utcWeek.js");
|
|
29355
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeek", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; });
|
|
29356
|
+
|
|
29357
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWeeks", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; });
|
|
29358
|
+
|
|
29359
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSunday"]; });
|
|
29360
|
+
|
|
29361
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSundays"]; });
|
|
29362
|
+
|
|
29363
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcMonday"]; });
|
|
29364
|
+
|
|
29365
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcMondays"]; });
|
|
29366
|
+
|
|
29367
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcTuesday"]; });
|
|
29368
|
+
|
|
29369
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcTuesdays"]; });
|
|
29370
|
+
|
|
29371
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcWednesday"]; });
|
|
29372
|
+
|
|
29373
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcWednesdays"]; });
|
|
29374
|
+
|
|
29375
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcThursday"]; });
|
|
29376
|
+
|
|
29377
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcThursdays"]; });
|
|
29378
|
+
|
|
29379
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcFriday"]; });
|
|
29380
|
+
|
|
29381
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcFridays"]; });
|
|
29382
|
+
|
|
29383
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSaturday"]; });
|
|
29384
|
+
|
|
29385
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return _utcWeek_js__WEBPACK_IMPORTED_MODULE_12__["utcSaturdays"]; });
|
|
29386
|
+
|
|
29387
|
+
/* harmony import */ var _utcMonth_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/utcMonth.js");
|
|
29388
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonth", function() { return _utcMonth_js__WEBPACK_IMPORTED_MODULE_13__["default"]; });
|
|
29389
|
+
|
|
29390
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return _utcMonth_js__WEBPACK_IMPORTED_MODULE_13__["utcMonths"]; });
|
|
29391
|
+
|
|
29392
|
+
/* harmony import */ var _utcYear_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/utcYear.js");
|
|
29393
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYear", function() { return _utcYear_js__WEBPACK_IMPORTED_MODULE_14__["default"]; });
|
|
29394
|
+
|
|
29395
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return _utcYear_js__WEBPACK_IMPORTED_MODULE_14__["utcYears"]; });
|
|
29396
|
+
|
|
29397
|
+
|
|
29398
|
+
|
|
29399
|
+
|
|
29400
|
+
|
|
29401
|
+
|
|
29402
|
+
|
|
29403
|
+
|
|
29404
|
+
|
|
29405
|
+
|
|
29406
|
+
|
|
29407
|
+
|
|
29408
|
+
|
|
29409
|
+
|
|
29410
|
+
|
|
29411
|
+
|
|
29412
|
+
|
|
29413
|
+
|
|
29414
|
+
|
|
29415
|
+
|
|
29416
|
+
|
|
29417
|
+
|
|
29418
|
+
|
|
29419
|
+
|
|
29420
|
+
|
|
29421
|
+
|
|
29422
|
+
|
|
29423
|
+
|
|
29424
|
+
|
|
29425
|
+
|
|
29426
|
+
|
|
29427
|
+
|
|
29428
|
+
/***/ }),
|
|
29429
|
+
|
|
29430
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/interval.js":
|
|
29431
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29432
|
+
|
|
29433
|
+
"use strict";
|
|
29434
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29435
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return newInterval; });
|
|
29436
|
+
var t0 = new Date,
|
|
29437
|
+
t1 = new Date;
|
|
29438
|
+
|
|
29439
|
+
function newInterval(floori, offseti, count, field) {
|
|
29440
|
+
|
|
29441
|
+
function interval(date) {
|
|
29442
|
+
return floori(date = arguments.length === 0 ? new Date : new Date(+date)), date;
|
|
29443
|
+
}
|
|
29444
|
+
|
|
29445
|
+
interval.floor = function(date) {
|
|
29446
|
+
return floori(date = new Date(+date)), date;
|
|
29447
|
+
};
|
|
29448
|
+
|
|
29449
|
+
interval.ceil = function(date) {
|
|
29450
|
+
return floori(date = new Date(date - 1)), offseti(date, 1), floori(date), date;
|
|
29451
|
+
};
|
|
29452
|
+
|
|
29453
|
+
interval.round = function(date) {
|
|
29454
|
+
var d0 = interval(date),
|
|
29455
|
+
d1 = interval.ceil(date);
|
|
29456
|
+
return date - d0 < d1 - date ? d0 : d1;
|
|
29457
|
+
};
|
|
29458
|
+
|
|
29459
|
+
interval.offset = function(date, step) {
|
|
29460
|
+
return offseti(date = new Date(+date), step == null ? 1 : Math.floor(step)), date;
|
|
29461
|
+
};
|
|
29462
|
+
|
|
29463
|
+
interval.range = function(start, stop, step) {
|
|
29464
|
+
var range = [], previous;
|
|
29465
|
+
start = interval.ceil(start);
|
|
29466
|
+
step = step == null ? 1 : Math.floor(step);
|
|
29467
|
+
if (!(start < stop) || !(step > 0)) return range; // also handles Invalid Date
|
|
29468
|
+
do range.push(previous = new Date(+start)), offseti(start, step), floori(start);
|
|
29469
|
+
while (previous < start && start < stop);
|
|
29470
|
+
return range;
|
|
29471
|
+
};
|
|
29472
|
+
|
|
29473
|
+
interval.filter = function(test) {
|
|
29474
|
+
return newInterval(function(date) {
|
|
29475
|
+
if (date >= date) while (floori(date), !test(date)) date.setTime(date - 1);
|
|
29476
|
+
}, function(date, step) {
|
|
29477
|
+
if (date >= date) {
|
|
29478
|
+
if (step < 0) while (++step <= 0) {
|
|
29479
|
+
while (offseti(date, -1), !test(date)) {} // eslint-disable-line no-empty
|
|
29480
|
+
} else while (--step >= 0) {
|
|
29481
|
+
while (offseti(date, +1), !test(date)) {} // eslint-disable-line no-empty
|
|
29482
|
+
}
|
|
29483
|
+
}
|
|
29484
|
+
});
|
|
29485
|
+
};
|
|
29486
|
+
|
|
29487
|
+
if (count) {
|
|
29488
|
+
interval.count = function(start, end) {
|
|
29489
|
+
t0.setTime(+start), t1.setTime(+end);
|
|
29490
|
+
floori(t0), floori(t1);
|
|
29491
|
+
return Math.floor(count(t0, t1));
|
|
29492
|
+
};
|
|
29493
|
+
|
|
29494
|
+
interval.every = function(step) {
|
|
29495
|
+
step = Math.floor(step);
|
|
29496
|
+
return !isFinite(step) || !(step > 0) ? null
|
|
29497
|
+
: !(step > 1) ? interval
|
|
29498
|
+
: interval.filter(field
|
|
29499
|
+
? function(d) { return field(d) % step === 0; }
|
|
29500
|
+
: function(d) { return interval.count(0, d) % step === 0; });
|
|
29501
|
+
};
|
|
29502
|
+
}
|
|
29503
|
+
|
|
29504
|
+
return interval;
|
|
29505
|
+
}
|
|
29506
|
+
|
|
29507
|
+
|
|
29508
|
+
/***/ }),
|
|
29509
|
+
|
|
29510
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/millisecond.js":
|
|
29511
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29512
|
+
|
|
29513
|
+
"use strict";
|
|
29514
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29515
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "milliseconds", function() { return milliseconds; });
|
|
29516
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29517
|
+
|
|
29518
|
+
|
|
29519
|
+
var millisecond = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function() {
|
|
29520
|
+
// noop
|
|
29521
|
+
}, function(date, step) {
|
|
29522
|
+
date.setTime(+date + step);
|
|
29523
|
+
}, function(start, end) {
|
|
29524
|
+
return end - start;
|
|
29525
|
+
});
|
|
29526
|
+
|
|
29527
|
+
// An optimized implementation for this simple case.
|
|
29528
|
+
millisecond.every = function(k) {
|
|
29529
|
+
k = Math.floor(k);
|
|
29530
|
+
if (!isFinite(k) || !(k > 0)) return null;
|
|
29531
|
+
if (!(k > 1)) return millisecond;
|
|
29532
|
+
return Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29533
|
+
date.setTime(Math.floor(date / k) * k);
|
|
29534
|
+
}, function(date, step) {
|
|
29535
|
+
date.setTime(+date + step * k);
|
|
29536
|
+
}, function(start, end) {
|
|
29537
|
+
return (end - start) / k;
|
|
29538
|
+
});
|
|
29539
|
+
};
|
|
29540
|
+
|
|
29541
|
+
/* harmony default export */ __webpack_exports__["default"] = (millisecond);
|
|
29542
|
+
var milliseconds = millisecond.range;
|
|
29543
|
+
|
|
29544
|
+
|
|
29545
|
+
/***/ }),
|
|
29546
|
+
|
|
29547
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/minute.js":
|
|
29548
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29549
|
+
|
|
29550
|
+
"use strict";
|
|
29551
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29552
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "minutes", function() { return minutes; });
|
|
29553
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29554
|
+
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/duration.js");
|
|
29555
|
+
|
|
29556
|
+
|
|
29557
|
+
|
|
29558
|
+
var minute = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29559
|
+
date.setTime(date - date.getMilliseconds() - date.getSeconds() * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]);
|
|
29560
|
+
}, function(date, step) {
|
|
29561
|
+
date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]);
|
|
29562
|
+
}, function(start, end) {
|
|
29563
|
+
return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"];
|
|
29564
|
+
}, function(date) {
|
|
29565
|
+
return date.getMinutes();
|
|
29566
|
+
});
|
|
29567
|
+
|
|
29568
|
+
/* harmony default export */ __webpack_exports__["default"] = (minute);
|
|
29569
|
+
var minutes = minute.range;
|
|
29570
|
+
|
|
29571
|
+
|
|
29572
|
+
/***/ }),
|
|
29573
|
+
|
|
29574
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/month.js":
|
|
29575
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29576
|
+
|
|
29577
|
+
"use strict";
|
|
29578
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29579
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "months", function() { return months; });
|
|
29580
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29581
|
+
|
|
29582
|
+
|
|
29583
|
+
var month = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29584
|
+
date.setDate(1);
|
|
29585
|
+
date.setHours(0, 0, 0, 0);
|
|
29586
|
+
}, function(date, step) {
|
|
29587
|
+
date.setMonth(date.getMonth() + step);
|
|
29588
|
+
}, function(start, end) {
|
|
29589
|
+
return end.getMonth() - start.getMonth() + (end.getFullYear() - start.getFullYear()) * 12;
|
|
29590
|
+
}, function(date) {
|
|
29591
|
+
return date.getMonth();
|
|
29592
|
+
});
|
|
29593
|
+
|
|
29594
|
+
/* harmony default export */ __webpack_exports__["default"] = (month);
|
|
29595
|
+
var months = month.range;
|
|
29596
|
+
|
|
29597
|
+
|
|
29598
|
+
/***/ }),
|
|
29599
|
+
|
|
29600
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/second.js":
|
|
29601
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29602
|
+
|
|
29603
|
+
"use strict";
|
|
29604
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29605
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "seconds", function() { return seconds; });
|
|
29606
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29607
|
+
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/duration.js");
|
|
29608
|
+
|
|
29609
|
+
|
|
29610
|
+
|
|
29611
|
+
var second = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29612
|
+
date.setTime(date - date.getMilliseconds());
|
|
29613
|
+
}, function(date, step) {
|
|
29614
|
+
date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"]);
|
|
29615
|
+
}, function(start, end) {
|
|
29616
|
+
return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationSecond"];
|
|
29617
|
+
}, function(date) {
|
|
29618
|
+
return date.getUTCSeconds();
|
|
29619
|
+
});
|
|
29620
|
+
|
|
29621
|
+
/* harmony default export */ __webpack_exports__["default"] = (second);
|
|
29622
|
+
var seconds = second.range;
|
|
29623
|
+
|
|
29624
|
+
|
|
29625
|
+
/***/ }),
|
|
29626
|
+
|
|
29627
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/utcDay.js":
|
|
29628
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29629
|
+
|
|
29630
|
+
"use strict";
|
|
29631
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29632
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcDays", function() { return utcDays; });
|
|
29633
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29634
|
+
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/duration.js");
|
|
29635
|
+
|
|
29636
|
+
|
|
29637
|
+
|
|
29638
|
+
var utcDay = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29639
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
29640
|
+
}, function(date, step) {
|
|
29641
|
+
date.setUTCDate(date.getUTCDate() + step);
|
|
29642
|
+
}, function(start, end) {
|
|
29643
|
+
return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationDay"];
|
|
29644
|
+
}, function(date) {
|
|
29645
|
+
return date.getUTCDate() - 1;
|
|
29646
|
+
});
|
|
29647
|
+
|
|
29648
|
+
/* harmony default export */ __webpack_exports__["default"] = (utcDay);
|
|
29649
|
+
var utcDays = utcDay.range;
|
|
29650
|
+
|
|
29651
|
+
|
|
29652
|
+
/***/ }),
|
|
29653
|
+
|
|
29654
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/utcHour.js":
|
|
29655
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29656
|
+
|
|
29657
|
+
"use strict";
|
|
29658
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29659
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcHours", function() { return utcHours; });
|
|
29660
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29661
|
+
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/duration.js");
|
|
29662
|
+
|
|
29663
|
+
|
|
29664
|
+
|
|
29665
|
+
var utcHour = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29666
|
+
date.setUTCMinutes(0, 0, 0);
|
|
29667
|
+
}, function(date, step) {
|
|
29668
|
+
date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"]);
|
|
29669
|
+
}, function(start, end) {
|
|
29670
|
+
return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationHour"];
|
|
29671
|
+
}, function(date) {
|
|
29672
|
+
return date.getUTCHours();
|
|
29673
|
+
});
|
|
29674
|
+
|
|
29675
|
+
/* harmony default export */ __webpack_exports__["default"] = (utcHour);
|
|
29676
|
+
var utcHours = utcHour.range;
|
|
29677
|
+
|
|
29678
|
+
|
|
29679
|
+
/***/ }),
|
|
29680
|
+
|
|
29681
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/utcMinute.js":
|
|
29682
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29683
|
+
|
|
29684
|
+
"use strict";
|
|
29685
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29686
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMinutes", function() { return utcMinutes; });
|
|
29687
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29688
|
+
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/duration.js");
|
|
29689
|
+
|
|
29690
|
+
|
|
29691
|
+
|
|
29692
|
+
var utcMinute = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29693
|
+
date.setUTCSeconds(0, 0);
|
|
29694
|
+
}, function(date, step) {
|
|
29695
|
+
date.setTime(+date + step * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]);
|
|
29696
|
+
}, function(start, end) {
|
|
29697
|
+
return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"];
|
|
29698
|
+
}, function(date) {
|
|
29699
|
+
return date.getUTCMinutes();
|
|
29700
|
+
});
|
|
29701
|
+
|
|
29702
|
+
/* harmony default export */ __webpack_exports__["default"] = (utcMinute);
|
|
29703
|
+
var utcMinutes = utcMinute.range;
|
|
29704
|
+
|
|
29705
|
+
|
|
29706
|
+
/***/ }),
|
|
29707
|
+
|
|
29708
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/utcMonth.js":
|
|
29709
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29710
|
+
|
|
29711
|
+
"use strict";
|
|
29712
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29713
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonths", function() { return utcMonths; });
|
|
29714
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29715
|
+
|
|
29716
|
+
|
|
29717
|
+
var utcMonth = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29718
|
+
date.setUTCDate(1);
|
|
29719
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
29720
|
+
}, function(date, step) {
|
|
29721
|
+
date.setUTCMonth(date.getUTCMonth() + step);
|
|
29722
|
+
}, function(start, end) {
|
|
29723
|
+
return end.getUTCMonth() - start.getUTCMonth() + (end.getUTCFullYear() - start.getUTCFullYear()) * 12;
|
|
29724
|
+
}, function(date) {
|
|
29725
|
+
return date.getUTCMonth();
|
|
29726
|
+
});
|
|
29727
|
+
|
|
29728
|
+
/* harmony default export */ __webpack_exports__["default"] = (utcMonth);
|
|
29729
|
+
var utcMonths = utcMonth.range;
|
|
29730
|
+
|
|
29731
|
+
|
|
29732
|
+
/***/ }),
|
|
29733
|
+
|
|
29734
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/utcWeek.js":
|
|
29735
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29736
|
+
|
|
29737
|
+
"use strict";
|
|
29738
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29739
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSunday", function() { return utcSunday; });
|
|
29740
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMonday", function() { return utcMonday; });
|
|
29741
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesday", function() { return utcTuesday; });
|
|
29742
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesday", function() { return utcWednesday; });
|
|
29743
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursday", function() { return utcThursday; });
|
|
29744
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFriday", function() { return utcFriday; });
|
|
29745
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturday", function() { return utcSaturday; });
|
|
29746
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSundays", function() { return utcSundays; });
|
|
29747
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcMondays", function() { return utcMondays; });
|
|
29748
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcTuesdays", function() { return utcTuesdays; });
|
|
29749
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcWednesdays", function() { return utcWednesdays; });
|
|
29750
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcThursdays", function() { return utcThursdays; });
|
|
29751
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcFridays", function() { return utcFridays; });
|
|
29752
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcSaturdays", function() { return utcSaturdays; });
|
|
29753
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29754
|
+
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/duration.js");
|
|
29755
|
+
|
|
29756
|
+
|
|
29757
|
+
|
|
29758
|
+
function utcWeekday(i) {
|
|
29759
|
+
return Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29760
|
+
date.setUTCDate(date.getUTCDate() - (date.getUTCDay() + 7 - i) % 7);
|
|
29761
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
29762
|
+
}, function(date, step) {
|
|
29763
|
+
date.setUTCDate(date.getUTCDate() + step * 7);
|
|
29764
|
+
}, function(start, end) {
|
|
29765
|
+
return (end - start) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationWeek"];
|
|
29766
|
+
});
|
|
29767
|
+
}
|
|
29768
|
+
|
|
29769
|
+
var utcSunday = utcWeekday(0);
|
|
29770
|
+
var utcMonday = utcWeekday(1);
|
|
29771
|
+
var utcTuesday = utcWeekday(2);
|
|
29772
|
+
var utcWednesday = utcWeekday(3);
|
|
29773
|
+
var utcThursday = utcWeekday(4);
|
|
29774
|
+
var utcFriday = utcWeekday(5);
|
|
29775
|
+
var utcSaturday = utcWeekday(6);
|
|
29776
|
+
|
|
29777
|
+
var utcSundays = utcSunday.range;
|
|
29778
|
+
var utcMondays = utcMonday.range;
|
|
29779
|
+
var utcTuesdays = utcTuesday.range;
|
|
29780
|
+
var utcWednesdays = utcWednesday.range;
|
|
29781
|
+
var utcThursdays = utcThursday.range;
|
|
29782
|
+
var utcFridays = utcFriday.range;
|
|
29783
|
+
var utcSaturdays = utcSaturday.range;
|
|
29784
|
+
|
|
29785
|
+
|
|
29786
|
+
/***/ }),
|
|
29787
|
+
|
|
29788
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/utcYear.js":
|
|
29789
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29790
|
+
|
|
29791
|
+
"use strict";
|
|
29792
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29793
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "utcYears", function() { return utcYears; });
|
|
29794
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29795
|
+
|
|
29796
|
+
|
|
29797
|
+
var utcYear = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29798
|
+
date.setUTCMonth(0, 1);
|
|
29799
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
29800
|
+
}, function(date, step) {
|
|
29801
|
+
date.setUTCFullYear(date.getUTCFullYear() + step);
|
|
29802
|
+
}, function(start, end) {
|
|
29803
|
+
return end.getUTCFullYear() - start.getUTCFullYear();
|
|
29804
|
+
}, function(date) {
|
|
29805
|
+
return date.getUTCFullYear();
|
|
29806
|
+
});
|
|
29807
|
+
|
|
29808
|
+
// An optimized implementation for this simple case.
|
|
29809
|
+
utcYear.every = function(k) {
|
|
29810
|
+
return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29811
|
+
date.setUTCFullYear(Math.floor(date.getUTCFullYear() / k) * k);
|
|
29812
|
+
date.setUTCMonth(0, 1);
|
|
29813
|
+
date.setUTCHours(0, 0, 0, 0);
|
|
29814
|
+
}, function(date, step) {
|
|
29815
|
+
date.setUTCFullYear(date.getUTCFullYear() + step * k);
|
|
29816
|
+
});
|
|
29817
|
+
};
|
|
29818
|
+
|
|
29819
|
+
/* harmony default export */ __webpack_exports__["default"] = (utcYear);
|
|
29820
|
+
var utcYears = utcYear.range;
|
|
29821
|
+
|
|
29822
|
+
|
|
29823
|
+
/***/ }),
|
|
29824
|
+
|
|
29825
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/week.js":
|
|
29826
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29827
|
+
|
|
29828
|
+
"use strict";
|
|
29829
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29830
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sunday", function() { return sunday; });
|
|
29831
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "monday", function() { return monday; });
|
|
29832
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesday", function() { return tuesday; });
|
|
29833
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesday", function() { return wednesday; });
|
|
29834
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursday", function() { return thursday; });
|
|
29835
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "friday", function() { return friday; });
|
|
29836
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturday", function() { return saturday; });
|
|
29837
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sundays", function() { return sundays; });
|
|
29838
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mondays", function() { return mondays; });
|
|
29839
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tuesdays", function() { return tuesdays; });
|
|
29840
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wednesdays", function() { return wednesdays; });
|
|
29841
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "thursdays", function() { return thursdays; });
|
|
29842
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "fridays", function() { return fridays; });
|
|
29843
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "saturdays", function() { return saturdays; });
|
|
29844
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29845
|
+
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/duration.js");
|
|
29846
|
+
|
|
29847
|
+
|
|
29848
|
+
|
|
29849
|
+
function weekday(i) {
|
|
29850
|
+
return Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29851
|
+
date.setDate(date.getDate() - (date.getDay() + 7 - i) % 7);
|
|
29852
|
+
date.setHours(0, 0, 0, 0);
|
|
29853
|
+
}, function(date, step) {
|
|
29854
|
+
date.setDate(date.getDate() + step * 7);
|
|
29855
|
+
}, function(start, end) {
|
|
29856
|
+
return (end - start - (end.getTimezoneOffset() - start.getTimezoneOffset()) * _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationMinute"]) / _duration_js__WEBPACK_IMPORTED_MODULE_1__["durationWeek"];
|
|
29857
|
+
});
|
|
29858
|
+
}
|
|
29859
|
+
|
|
29860
|
+
var sunday = weekday(0);
|
|
29861
|
+
var monday = weekday(1);
|
|
29862
|
+
var tuesday = weekday(2);
|
|
29863
|
+
var wednesday = weekday(3);
|
|
29864
|
+
var thursday = weekday(4);
|
|
29865
|
+
var friday = weekday(5);
|
|
29866
|
+
var saturday = weekday(6);
|
|
29867
|
+
|
|
29868
|
+
var sundays = sunday.range;
|
|
29869
|
+
var mondays = monday.range;
|
|
29870
|
+
var tuesdays = tuesday.range;
|
|
29871
|
+
var wednesdays = wednesday.range;
|
|
29872
|
+
var thursdays = thursday.range;
|
|
29873
|
+
var fridays = friday.range;
|
|
29874
|
+
var saturdays = saturday.range;
|
|
29875
|
+
|
|
29876
|
+
|
|
29877
|
+
/***/ }),
|
|
29878
|
+
|
|
29879
|
+
/***/ "../../packages/charting/node_modules/d3-time/src/year.js":
|
|
29880
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29881
|
+
|
|
29882
|
+
"use strict";
|
|
29883
|
+
__webpack_require__.r(__webpack_exports__);
|
|
29884
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "years", function() { return years; });
|
|
29885
|
+
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../packages/charting/node_modules/d3-time/src/interval.js");
|
|
29886
|
+
|
|
29887
|
+
|
|
29888
|
+
var year = Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29889
|
+
date.setMonth(0, 1);
|
|
29890
|
+
date.setHours(0, 0, 0, 0);
|
|
29891
|
+
}, function(date, step) {
|
|
29892
|
+
date.setFullYear(date.getFullYear() + step);
|
|
29893
|
+
}, function(start, end) {
|
|
29894
|
+
return end.getFullYear() - start.getFullYear();
|
|
29895
|
+
}, function(date) {
|
|
29896
|
+
return date.getFullYear();
|
|
29897
|
+
});
|
|
29898
|
+
|
|
29899
|
+
// An optimized implementation for this simple case.
|
|
29900
|
+
year.every = function(k) {
|
|
29901
|
+
return !isFinite(k = Math.floor(k)) || !(k > 0) ? null : Object(_interval_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function(date) {
|
|
29902
|
+
date.setFullYear(Math.floor(date.getFullYear() / k) * k);
|
|
29903
|
+
date.setMonth(0, 1);
|
|
29904
|
+
date.setHours(0, 0, 0, 0);
|
|
29905
|
+
}, function(date, step) {
|
|
29906
|
+
date.setFullYear(date.getFullYear() + step * k);
|
|
29907
|
+
});
|
|
29908
|
+
};
|
|
29909
|
+
|
|
29910
|
+
/* harmony default export */ __webpack_exports__["default"] = (year);
|
|
29911
|
+
var years = year.range;
|
|
29071
29912
|
|
|
29072
29913
|
|
|
29073
29914
|
/***/ }),
|
|
@@ -32867,7 +33708,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32867
33708
|
|
|
32868
33709
|
|
|
32869
33710
|
|
|
32870
|
-
var DEFAULT_BASE_URL = 'https://
|
|
33711
|
+
var DEFAULT_BASE_URL = 'https://res.cdn.office.net/files/fabric-cdn-prod_20241209.001/assets/icons/';
|
|
32871
33712
|
var win = Object(_uifabric_utilities__WEBPACK_IMPORTED_MODULE_20__["getWindow"])();
|
|
32872
33713
|
function initializeIcons(baseUrl, options) {
|
|
32873
33714
|
if (baseUrl === void 0) { baseUrl = ((_b = (_a = win) === null || _a === void 0 ? void 0 : _a.FabricConfig) === null || _b === void 0 ? void 0 : _b.iconBaseUrl) || ((_d = (_c = win) === null || _c === void 0 ? void 0 : _c.FabricConfig) === null || _d === void 0 ? void 0 : _d.fontBaseUrl) || DEFAULT_BASE_URL; }
|