victory-core 36.0.0 → 36.1.0
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/victory-core.js +3761 -620
- package/dist/victory-core.min.js +1 -1
- package/es/index.js +5 -1
- package/es/victory-accessible-group/victory-accessible-group.js +1 -3
- package/es/victory-animation/victory-animation.js +1 -3
- package/es/victory-clip-container/victory-clip-container.js +1 -3
- package/es/victory-container/victory-container.js +1 -3
- package/es/victory-portal/portal.js +1 -3
- package/es/victory-portal/victory-portal.js +1 -3
- package/es/victory-primitives/point.js +1 -1
- package/es/victory-transition/victory-transition.js +1 -3
- package/es/victory-util/add-events.js +305 -308
- package/es/victory-util/line-helpers.js +45 -0
- package/es/{victory-primitives/path-helpers.js → victory-util/point-path-helpers.js} +0 -0
- package/es/victory-util/timer.js +1 -3
- package/lib/index.js +16 -2
- package/lib/victory-accessible-group/victory-accessible-group.js +1 -3
- package/lib/victory-animation/victory-animation.js +1 -3
- package/lib/victory-clip-container/victory-clip-container.js +1 -3
- package/lib/victory-container/victory-container.js +1 -3
- package/lib/victory-portal/portal.js +1 -3
- package/lib/victory-portal/victory-portal.js +1 -3
- package/lib/victory-primitives/point.js +10 -10
- package/lib/victory-transition/victory-transition.js +1 -3
- package/lib/victory-util/add-events.js +301 -304
- package/lib/victory-util/line-helpers.js +56 -0
- package/lib/{victory-primitives/path-helpers.js → victory-util/point-path-helpers.js} +0 -0
- package/lib/victory-util/timer.js +1 -3
- package/package.json +2 -2
- package/src/index.js +3 -0
- package/src/victory-primitives/point.js +1 -1
- package/src/victory-util/line-helpers.js +54 -0
- /package/src/{victory-primitives/path-helpers.js → victory-util/point-path-helpers.js} +0 -0
package/dist/victory-core.js
CHANGED
|
@@ -41,9 +41,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var VictoryAccessibleGroup =
|
|
45
|
-
/*#__PURE__*/
|
|
46
|
-
function (_React$Component) {
|
|
44
|
+
var VictoryAccessibleGroup = /*#__PURE__*/function (_React$Component) {
|
|
47
45
|
_inherits(VictoryAccessibleGroup, _React$Component);
|
|
48
46
|
|
|
49
47
|
function VictoryAccessibleGroup() {
|
|
@@ -394,9 +392,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
394
392
|
|
|
395
393
|
|
|
396
394
|
|
|
397
|
-
var VictoryAnimation =
|
|
398
|
-
/*#__PURE__*/
|
|
399
|
-
function (_React$Component) {
|
|
395
|
+
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
400
396
|
_inherits(VictoryAnimation, _React$Component);
|
|
401
397
|
|
|
402
398
|
function VictoryAnimation(props, context) {
|
|
@@ -683,9 +679,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
683
679
|
|
|
684
680
|
|
|
685
681
|
|
|
686
|
-
var VictoryClipContainer =
|
|
687
|
-
/*#__PURE__*/
|
|
688
|
-
function (_React$Component) {
|
|
682
|
+
var VictoryClipContainer = /*#__PURE__*/function (_React$Component) {
|
|
689
683
|
_inherits(VictoryClipContainer, _React$Component);
|
|
690
684
|
|
|
691
685
|
function VictoryClipContainer(props) {
|
|
@@ -996,9 +990,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
996
990
|
|
|
997
991
|
|
|
998
992
|
|
|
999
|
-
var VictoryContainer =
|
|
1000
|
-
/*#__PURE__*/
|
|
1001
|
-
function (_React$Component) {
|
|
993
|
+
var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
1002
994
|
_inherits(VictoryContainer, _React$Component);
|
|
1003
995
|
|
|
1004
996
|
function VictoryContainer(props) {
|
|
@@ -1944,9 +1936,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
1944
1936
|
|
|
1945
1937
|
|
|
1946
1938
|
|
|
1947
|
-
var Portal =
|
|
1948
|
-
/*#__PURE__*/
|
|
1949
|
-
function (_React$Component) {
|
|
1939
|
+
var Portal = /*#__PURE__*/function (_React$Component) {
|
|
1950
1940
|
_inherits(Portal, _React$Component);
|
|
1951
1941
|
|
|
1952
1942
|
function Portal(props) {
|
|
@@ -2065,9 +2055,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
2065
2055
|
|
|
2066
2056
|
|
|
2067
2057
|
|
|
2068
|
-
var VictoryPortal =
|
|
2069
|
-
/*#__PURE__*/
|
|
2070
|
-
function (_React$Component) {
|
|
2058
|
+
var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
2071
2059
|
_inherits(VictoryPortal, _React$Component);
|
|
2072
2060
|
|
|
2073
2061
|
function VictoryPortal() {
|
|
@@ -2671,95 +2659,6 @@ var Line = function (props) {
|
|
|
2671
2659
|
|
|
2672
2660
|
/***/ }),
|
|
2673
2661
|
|
|
2674
|
-
/***/ "./victory-primitives/path-helpers.js":
|
|
2675
|
-
/*!********************************************!*\
|
|
2676
|
-
!*** ./victory-primitives/path-helpers.js ***!
|
|
2677
|
-
\********************************************/
|
|
2678
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2679
|
-
|
|
2680
|
-
"use strict";
|
|
2681
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2682
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2683
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2684
|
-
/* harmony export */ });
|
|
2685
|
-
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js");
|
|
2686
|
-
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__);
|
|
2687
|
-
|
|
2688
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
2689
|
-
circle: function (x, y, size) {
|
|
2690
|
-
return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
|
|
2691
|
-
},
|
|
2692
|
-
square: function (x, y, size) {
|
|
2693
|
-
var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
|
|
2694
|
-
|
|
2695
|
-
var x0 = x - baseSize;
|
|
2696
|
-
var y1 = y + baseSize;
|
|
2697
|
-
var distance = x + baseSize - x0;
|
|
2698
|
-
return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(distance, "\n h-").concat(distance, "\n z");
|
|
2699
|
-
},
|
|
2700
|
-
diamond: function (x, y, size) {
|
|
2701
|
-
var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
|
|
2702
|
-
|
|
2703
|
-
var length = Math.sqrt(2 * (baseSize * baseSize));
|
|
2704
|
-
return "M ".concat(x, ", ").concat(y + length, "\n l ").concat(length, ", -").concat(length, "\n l -").concat(length, ", -").concat(length, "\n l -").concat(length, ", ").concat(length, "\n l ").concat(length, ", ").concat(length, "\n z");
|
|
2705
|
-
},
|
|
2706
|
-
triangleDown: function (x, y, size) {
|
|
2707
|
-
var height = size / 2 * Math.sqrt(3);
|
|
2708
|
-
var x0 = x - size;
|
|
2709
|
-
var x1 = x + size;
|
|
2710
|
-
var y0 = y - size;
|
|
2711
|
-
var y1 = y + height;
|
|
2712
|
-
return "M ".concat(x0, ", ").concat(y0, "\n L ").concat(x1, ", ").concat(y0, "\n L ").concat(x, ", ").concat(y1, "\n z");
|
|
2713
|
-
},
|
|
2714
|
-
triangleUp: function (x, y, size) {
|
|
2715
|
-
var height = size / 2 * Math.sqrt(3);
|
|
2716
|
-
var x0 = x - size;
|
|
2717
|
-
var x1 = x + size;
|
|
2718
|
-
var y0 = y - height;
|
|
2719
|
-
var y1 = y + size;
|
|
2720
|
-
return "M ".concat(x0, ", ").concat(y1, "\n L ").concat(x1, ", ").concat(y1, "\n L ").concat(x, ", ").concat(y0, "\n z");
|
|
2721
|
-
},
|
|
2722
|
-
plus: function (x, y, size) {
|
|
2723
|
-
var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
|
|
2724
|
-
|
|
2725
|
-
var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
|
|
2726
|
-
|
|
2727
|
-
return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n v-").concat(distance, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance, "\n z");
|
|
2728
|
-
},
|
|
2729
|
-
cross: function (x, y, size) {
|
|
2730
|
-
var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers
|
|
2731
|
-
|
|
2732
|
-
var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
|
|
2733
|
-
|
|
2734
|
-
return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n v-").concat(distance * 2, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance * 2, "\n z");
|
|
2735
|
-
},
|
|
2736
|
-
minus: function (x, y, size) {
|
|
2737
|
-
var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
|
|
2738
|
-
|
|
2739
|
-
var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers
|
|
2740
|
-
|
|
2741
|
-
var x0 = x - baseSize;
|
|
2742
|
-
var y1 = y + lineHeight / 2;
|
|
2743
|
-
var distance = x + baseSize - x0;
|
|
2744
|
-
return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(lineHeight, "\n h-").concat(distance, "\n z");
|
|
2745
|
-
},
|
|
2746
|
-
star: function (x, y, size) {
|
|
2747
|
-
var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers
|
|
2748
|
-
|
|
2749
|
-
var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
|
|
2750
|
-
// eslint-disable-next-line no-magic-numbers
|
|
2751
|
-
|
|
2752
|
-
var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) {
|
|
2753
|
-
var length = index % 2 === 0 ? baseSize : baseSize / 2;
|
|
2754
|
-
return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y);
|
|
2755
|
-
});
|
|
2756
|
-
|
|
2757
|
-
return "M ".concat(starCoords.join("L"), " z");
|
|
2758
|
-
}
|
|
2759
|
-
});
|
|
2760
|
-
|
|
2761
|
-
/***/ }),
|
|
2762
|
-
|
|
2763
2662
|
/***/ "./victory-primitives/path.js":
|
|
2764
2663
|
/*!************************************!*\
|
|
2765
2664
|
!*** ./victory-primitives/path.js ***!
|
|
@@ -2807,7 +2706,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2807
2706
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
2808
2707
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
|
|
2809
2708
|
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "./victory-util/helpers.js");
|
|
2810
|
-
/* harmony import */ var
|
|
2709
|
+
/* harmony import */ var _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/point-path-helpers */ "./victory-util/point-path-helpers.js");
|
|
2811
2710
|
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/common-props */ "./victory-util/common-props.js");
|
|
2812
2711
|
/* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./path */ "./victory-primitives/path.js");
|
|
2813
2712
|
|
|
@@ -2834,15 +2733,15 @@ var getPath = function (props) {
|
|
|
2834
2733
|
}
|
|
2835
2734
|
|
|
2836
2735
|
var pathFunctions = {
|
|
2837
|
-
circle:
|
|
2838
|
-
square:
|
|
2839
|
-
diamond:
|
|
2840
|
-
triangleDown:
|
|
2841
|
-
triangleUp:
|
|
2842
|
-
plus:
|
|
2843
|
-
minus:
|
|
2844
|
-
star:
|
|
2845
|
-
cross:
|
|
2736
|
+
circle: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.circle,
|
|
2737
|
+
square: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.square,
|
|
2738
|
+
diamond: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.diamond,
|
|
2739
|
+
triangleDown: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.triangleDown,
|
|
2740
|
+
triangleUp: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.triangleUp,
|
|
2741
|
+
plus: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.plus,
|
|
2742
|
+
minus: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.minus,
|
|
2743
|
+
star: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.star,
|
|
2744
|
+
cross: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.cross
|
|
2846
2745
|
};
|
|
2847
2746
|
var symbolFunction = typeof pathFunctions[symbol] === "function" ? pathFunctions[symbol] : pathFunctions.circle;
|
|
2848
2747
|
return symbolFunction(x, y, size);
|
|
@@ -3783,9 +3682,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
3783
3682
|
|
|
3784
3683
|
|
|
3785
3684
|
|
|
3786
|
-
var VictoryTransition =
|
|
3787
|
-
/*#__PURE__*/
|
|
3788
|
-
function (_React$Component) {
|
|
3685
|
+
var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
3789
3686
|
_inherits(VictoryTransition, _React$Component);
|
|
3790
3687
|
|
|
3791
3688
|
function VictoryTransition(props, context) {
|
|
@@ -4086,365 +3983,362 @@ var defaultComponents = [{
|
|
|
4086
3983
|
name: "labels"
|
|
4087
3984
|
}];
|
|
4088
3985
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
|
|
4089
|
-
return (
|
|
4090
|
-
|
|
4091
|
-
function (_WrappedComponent) {
|
|
4092
|
-
_inherits(addEvents, _WrappedComponent);
|
|
4093
|
-
|
|
4094
|
-
function addEvents(props) {
|
|
4095
|
-
var _this;
|
|
3986
|
+
return /*#__PURE__*/function (_WrappedComponent) {
|
|
3987
|
+
_inherits(addEvents, _WrappedComponent);
|
|
4096
3988
|
|
|
4097
|
-
|
|
3989
|
+
function addEvents(props) {
|
|
3990
|
+
var _this;
|
|
4098
3991
|
|
|
4099
|
-
|
|
4100
|
-
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
4101
|
-
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
4102
|
-
_this.state = {};
|
|
3992
|
+
_classCallCheck(this, addEvents);
|
|
4103
3993
|
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
3994
|
+
_this = _possibleConstructorReturn(this, (addEvents.__proto__ || Object.getPrototypeOf(addEvents)).call(this, props));
|
|
3995
|
+
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
3996
|
+
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
3997
|
+
_this.state = {};
|
|
4109
3998
|
|
|
4110
|
-
|
|
3999
|
+
_this.getEvents = function (p, target, eventKey) {
|
|
4000
|
+
return boundGetEvents(p, target, eventKey, getScopedEvents);
|
|
4001
|
+
};
|
|
4111
4002
|
|
|
4112
|
-
|
|
4003
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
4113
4004
|
|
|
4114
|
-
|
|
4115
|
-
_this.calculatedState = _this.getStateChanges(props);
|
|
4116
|
-
_this.globalEvents = {};
|
|
4117
|
-
_this.prevGlobalEventKeys = [];
|
|
4118
|
-
_this.boundGlobalEvents = {};
|
|
4119
|
-
return _this;
|
|
4120
|
-
}
|
|
4005
|
+
var calculatedValues = _this.getCalculatedValues(props);
|
|
4121
4006
|
|
|
4122
|
-
|
|
4123
|
-
key: "shouldComponentUpdate",
|
|
4124
|
-
value: function shouldComponentUpdate(nextProps) {
|
|
4125
|
-
var externalMutations = this.getExternalMutations(nextProps);
|
|
4126
|
-
var animating = this.props.animating || this.props.animate;
|
|
4127
|
-
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
4128
|
-
|
|
4129
|
-
if (animating || newMutation) {
|
|
4130
|
-
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
4131
|
-
this.externalMutations = externalMutations;
|
|
4132
|
-
this.applyExternalMutations(nextProps, externalMutations);
|
|
4133
|
-
return true;
|
|
4134
|
-
}
|
|
4007
|
+
_this.cacheValues(calculatedValues);
|
|
4135
4008
|
|
|
4136
|
-
|
|
4009
|
+
_this.externalMutations = _this.getExternalMutations(props);
|
|
4010
|
+
_this.calculatedState = _this.getStateChanges(props);
|
|
4011
|
+
_this.globalEvents = {};
|
|
4012
|
+
_this.prevGlobalEventKeys = [];
|
|
4013
|
+
_this.boundGlobalEvents = {};
|
|
4014
|
+
return _this;
|
|
4015
|
+
}
|
|
4137
4016
|
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4017
|
+
_createClass(addEvents, [{
|
|
4018
|
+
key: "shouldComponentUpdate",
|
|
4019
|
+
value: function shouldComponentUpdate(nextProps) {
|
|
4020
|
+
var externalMutations = this.getExternalMutations(nextProps);
|
|
4021
|
+
var animating = this.props.animating || this.props.animate;
|
|
4022
|
+
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
4023
|
+
|
|
4024
|
+
if (animating || newMutation) {
|
|
4025
|
+
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
4026
|
+
this.externalMutations = externalMutations;
|
|
4027
|
+
this.applyExternalMutations(nextProps, externalMutations);
|
|
4028
|
+
return true;
|
|
4029
|
+
}
|
|
4142
4030
|
|
|
4143
|
-
|
|
4144
|
-
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
4145
|
-
return true;
|
|
4146
|
-
}
|
|
4031
|
+
var calculatedState = this.getStateChanges(nextProps);
|
|
4147
4032
|
|
|
4148
|
-
|
|
4033
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.calculatedState, calculatedState)) {
|
|
4034
|
+
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
4035
|
+
return true;
|
|
4149
4036
|
}
|
|
4150
|
-
}, {
|
|
4151
|
-
key: "componentDidMount",
|
|
4152
|
-
value: function componentDidMount() {
|
|
4153
|
-
var _this2 = this;
|
|
4154
4037
|
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
|
|
4158
|
-
return _this2.addGlobalListener(key);
|
|
4159
|
-
});
|
|
4160
|
-
this.prevGlobalEventKeys = globalEventKeys;
|
|
4038
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps)) {
|
|
4039
|
+
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
4040
|
+
return true;
|
|
4161
4041
|
}
|
|
4162
|
-
}, {
|
|
4163
|
-
key: "componentDidUpdate",
|
|
4164
|
-
value: function componentDidUpdate(prevProps) {
|
|
4165
|
-
var _this3 = this;
|
|
4166
4042
|
|
|
4167
|
-
|
|
4168
|
-
|
|
4043
|
+
return false;
|
|
4044
|
+
}
|
|
4045
|
+
}, {
|
|
4046
|
+
key: "componentDidMount",
|
|
4047
|
+
value: function componentDidMount() {
|
|
4048
|
+
var _this2 = this;
|
|
4169
4049
|
|
|
4170
|
-
|
|
4050
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
|
|
4171
4051
|
|
|
4172
|
-
|
|
4052
|
+
globalEventKeys.forEach(function (key) {
|
|
4053
|
+
return _this2.addGlobalListener(key);
|
|
4054
|
+
});
|
|
4055
|
+
this.prevGlobalEventKeys = globalEventKeys;
|
|
4056
|
+
}
|
|
4057
|
+
}, {
|
|
4058
|
+
key: "componentDidUpdate",
|
|
4059
|
+
value: function componentDidUpdate(prevProps) {
|
|
4060
|
+
var _this3 = this;
|
|
4173
4061
|
|
|
4174
|
-
|
|
4175
|
-
|
|
4176
|
-
});
|
|
4062
|
+
var calculatedState = this.getStateChanges(prevProps);
|
|
4063
|
+
this.calculatedState = calculatedState;
|
|
4177
4064
|
|
|
4178
|
-
|
|
4065
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
|
|
4179
4066
|
|
|
4180
|
-
|
|
4181
|
-
return _this3.addGlobalListener(key);
|
|
4182
|
-
});
|
|
4183
|
-
this.prevGlobalEventKeys = globalEventKeys;
|
|
4184
|
-
}
|
|
4185
|
-
}, {
|
|
4186
|
-
key: "componentWillUnmount",
|
|
4187
|
-
value: function componentWillUnmount() {
|
|
4188
|
-
var _this4 = this;
|
|
4067
|
+
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
4189
4068
|
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
}
|
|
4194
|
-
}, {
|
|
4195
|
-
key: "addGlobalListener",
|
|
4196
|
-
value: function addGlobalListener(key) {
|
|
4197
|
-
var _this5 = this;
|
|
4198
|
-
|
|
4199
|
-
var boundListener = function (event) {
|
|
4200
|
-
var listener = _this5.globalEvents[key];
|
|
4201
|
-
return listener && listener(_events__WEBPACK_IMPORTED_MODULE_11__.emulateReactEvent(event));
|
|
4202
|
-
};
|
|
4069
|
+
removedGlobalEventKeys.forEach(function (key) {
|
|
4070
|
+
return _this3.removeGlobalListener(key);
|
|
4071
|
+
});
|
|
4203
4072
|
|
|
4204
|
-
|
|
4205
|
-
window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), boundListener);
|
|
4206
|
-
}
|
|
4207
|
-
}, {
|
|
4208
|
-
key: "removeGlobalListener",
|
|
4209
|
-
value: function removeGlobalListener(key) {
|
|
4210
|
-
window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
4211
|
-
} // compile all state changes from own and parent state. Order doesn't matter, as any state
|
|
4212
|
-
// state change should trigger a re-render
|
|
4213
|
-
|
|
4214
|
-
}, {
|
|
4215
|
-
key: "getStateChanges",
|
|
4216
|
-
value: function getStateChanges(props) {
|
|
4217
|
-
var _this6 = this;
|
|
4218
|
-
|
|
4219
|
-
if (!this.hasEvents) {
|
|
4220
|
-
return {};
|
|
4221
|
-
}
|
|
4073
|
+
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
4222
4074
|
|
|
4223
|
-
|
|
4224
|
-
|
|
4075
|
+
addedGlobalEventKeys.forEach(function (key) {
|
|
4076
|
+
return _this3.addGlobalListener(key);
|
|
4077
|
+
});
|
|
4078
|
+
this.prevGlobalEventKeys = globalEventKeys;
|
|
4079
|
+
}
|
|
4080
|
+
}, {
|
|
4081
|
+
key: "componentWillUnmount",
|
|
4082
|
+
value: function componentWillUnmount() {
|
|
4083
|
+
var _this4 = this;
|
|
4225
4084
|
|
|
4226
|
-
|
|
4227
|
-
|
|
4085
|
+
this.prevGlobalEventKeys.forEach(function (key) {
|
|
4086
|
+
return _this4.removeGlobalListener(key);
|
|
4087
|
+
});
|
|
4088
|
+
}
|
|
4089
|
+
}, {
|
|
4090
|
+
key: "addGlobalListener",
|
|
4091
|
+
value: function addGlobalListener(key) {
|
|
4092
|
+
var _this5 = this;
|
|
4093
|
+
|
|
4094
|
+
var boundListener = function (event) {
|
|
4095
|
+
var listener = _this5.globalEvents[key];
|
|
4096
|
+
return listener && listener(_events__WEBPACK_IMPORTED_MODULE_11__.emulateReactEvent(event));
|
|
4097
|
+
};
|
|
4228
4098
|
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
|
|
4247
|
-
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
4248
|
-
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
4249
|
-
return memo;
|
|
4250
|
-
}, []);
|
|
4251
|
-
var compiledCallbacks = callbacks.length ? function () {
|
|
4252
|
-
callbacks.forEach(function (c) {
|
|
4253
|
-
return c();
|
|
4254
|
-
});
|
|
4255
|
-
} : undefined;
|
|
4256
|
-
this.setState(externalMutations, compiledCallbacks);
|
|
4257
|
-
}
|
|
4099
|
+
this.boundGlobalEvents[key] = boundListener;
|
|
4100
|
+
window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), boundListener);
|
|
4101
|
+
}
|
|
4102
|
+
}, {
|
|
4103
|
+
key: "removeGlobalListener",
|
|
4104
|
+
value: function removeGlobalListener(key) {
|
|
4105
|
+
window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
4106
|
+
} // compile all state changes from own and parent state. Order doesn't matter, as any state
|
|
4107
|
+
// state change should trigger a re-render
|
|
4108
|
+
|
|
4109
|
+
}, {
|
|
4110
|
+
key: "getStateChanges",
|
|
4111
|
+
value: function getStateChanges(props) {
|
|
4112
|
+
var _this6 = this;
|
|
4113
|
+
|
|
4114
|
+
if (!this.hasEvents) {
|
|
4115
|
+
return {};
|
|
4258
4116
|
}
|
|
4259
|
-
}, {
|
|
4260
|
-
key: "getCalculatedValues",
|
|
4261
|
-
value: function getCalculatedValues(props) {
|
|
4262
|
-
var sharedEvents = props.sharedEvents;
|
|
4263
|
-
var components = WrappedComponent.expectedComponents;
|
|
4264
|
-
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
4265
|
-
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
4266
|
-
return undefined;
|
|
4267
|
-
};
|
|
4268
|
-
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
4269
4117
|
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
});
|
|
4118
|
+
var getState = function (key, type) {
|
|
4119
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
4273
4120
|
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
return {
|
|
4277
|
-
componentEvents: componentEvents,
|
|
4278
|
-
getSharedEventState: getSharedEventState,
|
|
4279
|
-
baseProps: baseProps,
|
|
4280
|
-
dataKeys: dataKeys,
|
|
4281
|
-
hasEvents: hasEvents,
|
|
4282
|
-
events: events
|
|
4283
|
-
};
|
|
4284
|
-
}
|
|
4285
|
-
}, {
|
|
4286
|
-
key: "getExternalMutations",
|
|
4287
|
-
value: function getExternalMutations(props) {
|
|
4288
|
-
var sharedEvents = props.sharedEvents,
|
|
4289
|
-
externalEventMutations = props.externalEventMutations;
|
|
4290
|
-
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
4291
|
-
}
|
|
4292
|
-
}, {
|
|
4293
|
-
key: "cacheValues",
|
|
4294
|
-
value: function cacheValues(obj) {
|
|
4295
|
-
var _this7 = this;
|
|
4121
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
|
|
4122
|
+
};
|
|
4296
4123
|
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4124
|
+
options = options || {};
|
|
4125
|
+
var components = options.components || defaultComponents;
|
|
4126
|
+
var stateChanges = components.map(function (component) {
|
|
4127
|
+
if (!props.standalone && component.name === "parent") {
|
|
4128
|
+
// don't check for changes on parent props for non-standalone components
|
|
4129
|
+
return undefined;
|
|
4130
|
+
} else {
|
|
4131
|
+
return component.index !== undefined ? getState(component.index, component.name) : _this6.dataKeys.map(function (key) {
|
|
4132
|
+
return getState(key, component.name);
|
|
4133
|
+
}).filter(Boolean);
|
|
4134
|
+
}
|
|
4135
|
+
}).filter(Boolean);
|
|
4136
|
+
return stateChanges;
|
|
4137
|
+
}
|
|
4138
|
+
}, {
|
|
4139
|
+
key: "applyExternalMutations",
|
|
4140
|
+
value: function applyExternalMutations(props, externalMutations) {
|
|
4141
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
|
|
4142
|
+
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
4143
|
+
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
4144
|
+
return memo;
|
|
4145
|
+
}, []);
|
|
4146
|
+
var compiledCallbacks = callbacks.length ? function () {
|
|
4147
|
+
callbacks.forEach(function (c) {
|
|
4148
|
+
return c();
|
|
4149
|
+
});
|
|
4150
|
+
} : undefined;
|
|
4151
|
+
this.setState(externalMutations, compiledCallbacks);
|
|
4300
4152
|
}
|
|
4301
|
-
}
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4153
|
+
}
|
|
4154
|
+
}, {
|
|
4155
|
+
key: "getCalculatedValues",
|
|
4156
|
+
value: function getCalculatedValues(props) {
|
|
4157
|
+
var sharedEvents = props.sharedEvents;
|
|
4158
|
+
var components = WrappedComponent.expectedComponents;
|
|
4159
|
+
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
4160
|
+
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
4161
|
+
return undefined;
|
|
4162
|
+
};
|
|
4163
|
+
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
4307
4164
|
|
|
4308
|
-
|
|
4165
|
+
var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
|
|
4166
|
+
return key !== "parent";
|
|
4167
|
+
});
|
|
4309
4168
|
|
|
4310
|
-
|
|
4311
|
-
|
|
4169
|
+
var hasEvents = props.events || props.sharedEvents || componentEvents;
|
|
4170
|
+
var events = this.getAllEvents(props);
|
|
4171
|
+
return {
|
|
4172
|
+
componentEvents: componentEvents,
|
|
4173
|
+
getSharedEventState: getSharedEventState,
|
|
4174
|
+
baseProps: baseProps,
|
|
4175
|
+
dataKeys: dataKeys,
|
|
4176
|
+
hasEvents: hasEvents,
|
|
4177
|
+
events: events
|
|
4178
|
+
};
|
|
4179
|
+
}
|
|
4180
|
+
}, {
|
|
4181
|
+
key: "getExternalMutations",
|
|
4182
|
+
value: function getExternalMutations(props) {
|
|
4183
|
+
var sharedEvents = props.sharedEvents,
|
|
4184
|
+
externalEventMutations = props.externalEventMutations;
|
|
4185
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
4186
|
+
}
|
|
4187
|
+
}, {
|
|
4188
|
+
key: "cacheValues",
|
|
4189
|
+
value: function cacheValues(obj) {
|
|
4190
|
+
var _this7 = this;
|
|
4312
4191
|
|
|
4313
|
-
|
|
4192
|
+
lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
|
|
4193
|
+
_this7[key] = obj[key];
|
|
4194
|
+
});
|
|
4195
|
+
}
|
|
4196
|
+
}, {
|
|
4197
|
+
key: "getBaseProps",
|
|
4198
|
+
value: function getBaseProps(props, getSharedEventState) {
|
|
4199
|
+
getSharedEventState = getSharedEventState || this.getSharedEventState;
|
|
4200
|
+
var sharedParentState = getSharedEventState("parent", "parent");
|
|
4201
|
+
var parentState = this.getEventState("parent", "parent");
|
|
4314
4202
|
|
|
4315
|
-
|
|
4316
|
-
}
|
|
4317
|
-
}, {
|
|
4318
|
-
key: "getAllEvents",
|
|
4319
|
-
value: function getAllEvents(props) {
|
|
4320
|
-
if (Array.isArray(this.componentEvents)) {
|
|
4321
|
-
var _componentEvents;
|
|
4203
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
|
|
4322
4204
|
|
|
4323
|
-
|
|
4324
|
-
|
|
4205
|
+
var parentPropsList = baseParentProps.parentControlledProps;
|
|
4206
|
+
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
|
|
4325
4207
|
|
|
4326
|
-
|
|
4327
|
-
}
|
|
4328
|
-
}, {
|
|
4329
|
-
key: "getComponentProps",
|
|
4330
|
-
value: function getComponentProps(component, type, index) {
|
|
4331
|
-
var name = this.props.name || WrappedComponent.role;
|
|
4332
|
-
var key = this.dataKeys && this.dataKeys[index] || index;
|
|
4333
|
-
var id = "".concat(name, "-").concat(type, "-").concat(key);
|
|
4334
|
-
var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key];
|
|
4335
|
-
|
|
4336
|
-
if (!baseProps && !this.hasEvents) {
|
|
4337
|
-
return undefined;
|
|
4338
|
-
}
|
|
4208
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
|
|
4339
4209
|
|
|
4340
|
-
|
|
4341
|
-
|
|
4210
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
4211
|
+
}
|
|
4212
|
+
}, {
|
|
4213
|
+
key: "getAllEvents",
|
|
4214
|
+
value: function getAllEvents(props) {
|
|
4215
|
+
if (Array.isArray(this.componentEvents)) {
|
|
4216
|
+
var _componentEvents;
|
|
4342
4217
|
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
key: id
|
|
4346
|
-
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
4347
|
-
id: id
|
|
4348
|
-
});
|
|
4218
|
+
return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
|
|
4219
|
+
}
|
|
4349
4220
|
|
|
4350
|
-
|
|
4221
|
+
return props.events;
|
|
4222
|
+
}
|
|
4223
|
+
}, {
|
|
4224
|
+
key: "getComponentProps",
|
|
4225
|
+
value: function getComponentProps(component, type, index) {
|
|
4226
|
+
var name = this.props.name || WrappedComponent.role;
|
|
4227
|
+
var key = this.dataKeys && this.dataKeys[index] || index;
|
|
4228
|
+
var id = "".concat(name, "-").concat(type, "-").concat(key);
|
|
4229
|
+
var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key];
|
|
4230
|
+
|
|
4231
|
+
if (!baseProps && !this.hasEvents) {
|
|
4232
|
+
return undefined;
|
|
4233
|
+
}
|
|
4351
4234
|
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
});
|
|
4355
|
-
}
|
|
4235
|
+
if (this.hasEvents) {
|
|
4236
|
+
var baseEvents = this.getEvents(this.props, type, key);
|
|
4356
4237
|
|
|
4357
|
-
|
|
4238
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
|
|
4358
4239
|
index: index,
|
|
4359
4240
|
key: id
|
|
4360
|
-
}, component.props, baseProps, {
|
|
4241
|
+
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
4361
4242
|
id: id
|
|
4362
4243
|
});
|
|
4363
|
-
}
|
|
4364
|
-
}, {
|
|
4365
|
-
key: "renderContainer",
|
|
4366
|
-
value: function renderContainer(component, children) {
|
|
4367
|
-
var isContainer = component.type && component.type.role === "container";
|
|
4368
|
-
var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
|
|
4369
|
-
|
|
4370
|
-
if (parentProps.events) {
|
|
4371
|
-
this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(parentProps.events);
|
|
4372
|
-
parentProps.events = _events__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(parentProps.events);
|
|
4373
|
-
}
|
|
4374
4244
|
|
|
4375
|
-
|
|
4245
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
4246
|
+
|
|
4247
|
+
return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
|
|
4248
|
+
events: events
|
|
4249
|
+
});
|
|
4376
4250
|
}
|
|
4377
|
-
}, {
|
|
4378
|
-
key: "animateComponent",
|
|
4379
|
-
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
4380
|
-
var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
|
|
4381
|
-
return react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.default, {
|
|
4382
|
-
animate: props.animate,
|
|
4383
|
-
animationWhitelist: animationWhitelist
|
|
4384
|
-
}, react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
|
|
4385
|
-
} // Used by `VictoryLine` and `VictoryArea`
|
|
4386
|
-
|
|
4387
|
-
}, {
|
|
4388
|
-
key: "renderContinuousData",
|
|
4389
|
-
value: function renderContinuousData(props) {
|
|
4390
|
-
var _this8 = this;
|
|
4391
|
-
|
|
4392
|
-
var dataComponent = props.dataComponent,
|
|
4393
|
-
labelComponent = props.labelComponent,
|
|
4394
|
-
groupComponent = props.groupComponent;
|
|
4395
|
-
|
|
4396
|
-
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
|
|
4397
|
-
|
|
4398
|
-
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
4399
|
-
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
4400
|
-
|
|
4401
|
-
if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
|
|
4402
|
-
memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps));
|
|
4403
|
-
}
|
|
4404
4251
|
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4252
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
|
|
4253
|
+
index: index,
|
|
4254
|
+
key: id
|
|
4255
|
+
}, component.props, baseProps, {
|
|
4256
|
+
id: id
|
|
4257
|
+
});
|
|
4258
|
+
}
|
|
4259
|
+
}, {
|
|
4260
|
+
key: "renderContainer",
|
|
4261
|
+
value: function renderContainer(component, children) {
|
|
4262
|
+
var isContainer = component.type && component.type.role === "container";
|
|
4263
|
+
var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
|
|
4264
|
+
|
|
4265
|
+
if (parentProps.events) {
|
|
4266
|
+
this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(parentProps.events);
|
|
4267
|
+
parentProps.events = _events__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(parentProps.events);
|
|
4410
4268
|
}
|
|
4411
|
-
}, {
|
|
4412
|
-
key: "renderData",
|
|
4413
|
-
value: function renderData(props) {
|
|
4414
|
-
var _this9 = this;
|
|
4415
|
-
|
|
4416
|
-
var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
|
|
4417
|
-
var dataComponent = props.dataComponent,
|
|
4418
|
-
labelComponent = props.labelComponent,
|
|
4419
|
-
groupComponent = props.groupComponent;
|
|
4420
|
-
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
4421
|
-
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
4422
|
-
|
|
4423
|
-
if (shouldRenderDatum(dataProps.datum)) {
|
|
4424
|
-
validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps));
|
|
4425
|
-
}
|
|
4426
4269
|
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4270
|
+
return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(component, parentProps, children);
|
|
4271
|
+
}
|
|
4272
|
+
}, {
|
|
4273
|
+
key: "animateComponent",
|
|
4274
|
+
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
4275
|
+
var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
|
|
4276
|
+
return react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.default, {
|
|
4277
|
+
animate: props.animate,
|
|
4278
|
+
animationWhitelist: animationWhitelist
|
|
4279
|
+
}, react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
|
|
4280
|
+
} // Used by `VictoryLine` and `VictoryArea`
|
|
4281
|
+
|
|
4282
|
+
}, {
|
|
4283
|
+
key: "renderContinuousData",
|
|
4284
|
+
value: function renderContinuousData(props) {
|
|
4285
|
+
var _this8 = this;
|
|
4286
|
+
|
|
4287
|
+
var dataComponent = props.dataComponent,
|
|
4288
|
+
labelComponent = props.labelComponent,
|
|
4289
|
+
groupComponent = props.groupComponent;
|
|
4290
|
+
|
|
4291
|
+
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
|
|
4292
|
+
|
|
4293
|
+
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
4294
|
+
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
4295
|
+
|
|
4296
|
+
if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
|
|
4297
|
+
memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps));
|
|
4298
|
+
}
|
|
4431
4299
|
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4300
|
+
return memo;
|
|
4301
|
+
}, []);
|
|
4302
|
+
var dataProps = this.getComponentProps(dataComponent, "data", "all");
|
|
4303
|
+
var children = [react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
|
|
4304
|
+
return this.renderContainer(groupComponent, children);
|
|
4305
|
+
}
|
|
4306
|
+
}, {
|
|
4307
|
+
key: "renderData",
|
|
4308
|
+
value: function renderData(props) {
|
|
4309
|
+
var _this9 = this;
|
|
4310
|
+
|
|
4311
|
+
var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
|
|
4312
|
+
var dataComponent = props.dataComponent,
|
|
4313
|
+
labelComponent = props.labelComponent,
|
|
4314
|
+
groupComponent = props.groupComponent;
|
|
4315
|
+
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
4316
|
+
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
4317
|
+
|
|
4318
|
+
if (shouldRenderDatum(dataProps.datum)) {
|
|
4319
|
+
validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps));
|
|
4320
|
+
}
|
|
4435
4321
|
|
|
4436
|
-
|
|
4437
|
-
|
|
4322
|
+
return validDataComponents;
|
|
4323
|
+
}, []);
|
|
4324
|
+
var labelComponents = this.dataKeys.map(function (_dataKey, index) {
|
|
4325
|
+
var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
|
|
4438
4326
|
|
|
4439
|
-
|
|
4327
|
+
if (labelProps.text !== undefined && labelProps.text !== null) {
|
|
4328
|
+
return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps);
|
|
4329
|
+
}
|
|
4440
4330
|
|
|
4441
|
-
return
|
|
4442
|
-
}
|
|
4443
|
-
}]);
|
|
4331
|
+
return undefined;
|
|
4332
|
+
}).filter(Boolean);
|
|
4444
4333
|
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4334
|
+
var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents));
|
|
4335
|
+
|
|
4336
|
+
return this.renderContainer(groupComponent, children);
|
|
4337
|
+
}
|
|
4338
|
+
}]);
|
|
4339
|
+
|
|
4340
|
+
return addEvents;
|
|
4341
|
+
}(WrappedComponent);
|
|
4448
4342
|
});
|
|
4449
4343
|
|
|
4450
4344
|
/***/ }),
|
|
@@ -7588,6 +7482,68 @@ function getProps(props, index) {
|
|
|
7588
7482
|
|
|
7589
7483
|
/***/ }),
|
|
7590
7484
|
|
|
7485
|
+
/***/ "./victory-util/line-helpers.js":
|
|
7486
|
+
/*!**************************************!*\
|
|
7487
|
+
!*** ./victory-util/line-helpers.js ***!
|
|
7488
|
+
\**************************************/
|
|
7489
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7490
|
+
|
|
7491
|
+
"use strict";
|
|
7492
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7493
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7494
|
+
/* harmony export */ "getLineFunction": () => (/* binding */ getLineFunction)
|
|
7495
|
+
/* harmony export */ });
|
|
7496
|
+
/* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/lineRadial.js");
|
|
7497
|
+
/* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/index.js");
|
|
7498
|
+
/* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/line.js");
|
|
7499
|
+
|
|
7500
|
+
|
|
7501
|
+
var defined = function (d) {
|
|
7502
|
+
var y = d._y1 !== undefined ? d._y1 : d._y;
|
|
7503
|
+
return y !== null && y !== undefined && d._y0 !== null;
|
|
7504
|
+
};
|
|
7505
|
+
|
|
7506
|
+
var getXAccessor = function (scale) {
|
|
7507
|
+
return function (d) {
|
|
7508
|
+
return scale.x(d._x1 !== undefined ? d._x1 : d._x);
|
|
7509
|
+
};
|
|
7510
|
+
};
|
|
7511
|
+
|
|
7512
|
+
var getYAccessor = function (scale) {
|
|
7513
|
+
return function (d) {
|
|
7514
|
+
return scale.y(d._y1 !== undefined ? d._y1 : d._y);
|
|
7515
|
+
};
|
|
7516
|
+
};
|
|
7517
|
+
|
|
7518
|
+
var getAngleAccessor = function (scale) {
|
|
7519
|
+
return function (d) {
|
|
7520
|
+
var x = scale.x(d._x1 !== undefined ? d._x1 : d._x);
|
|
7521
|
+
return -1 * x + Math.PI / 2;
|
|
7522
|
+
};
|
|
7523
|
+
};
|
|
7524
|
+
|
|
7525
|
+
var toNewName = function (interpolation) {
|
|
7526
|
+
// d3 shape changed the naming scheme for interpolators from "basis" -> "curveBasis" etc.
|
|
7527
|
+
var capitalize = function (s) {
|
|
7528
|
+
return s && s[0].toUpperCase() + s.slice(1);
|
|
7529
|
+
};
|
|
7530
|
+
|
|
7531
|
+
return "curve".concat(capitalize(interpolation));
|
|
7532
|
+
};
|
|
7533
|
+
|
|
7534
|
+
var getLineFunction = function (props) {
|
|
7535
|
+
var polar = props.polar,
|
|
7536
|
+
scale = props.scale,
|
|
7537
|
+
horizontal = props.horizontal;
|
|
7538
|
+
var defaultOpenCurve = polar ? false : true;
|
|
7539
|
+
var openCurve = props.openCurve === undefined ? defaultOpenCurve : props.openCurve;
|
|
7540
|
+
var interpolationFunction = typeof props.interpolation === "function" && props.interpolation;
|
|
7541
|
+
var interpolationName = typeof props.interpolation === "string" && (!openCurve ? "".concat(toNewName(props.interpolation), "Closed") : toNewName(props.interpolation));
|
|
7542
|
+
return polar ? d3_shape__WEBPACK_IMPORTED_MODULE_0__.default().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_1__[interpolationName]).angle(getAngleAccessor(scale)).radius(getYAccessor(scale)) : d3_shape__WEBPACK_IMPORTED_MODULE_2__.default().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_1__[interpolationName]).x(horizontal ? getYAccessor(scale) : getXAccessor(scale)).y(horizontal ? getXAccessor(scale) : getYAccessor(scale));
|
|
7543
|
+
};
|
|
7544
|
+
|
|
7545
|
+
/***/ }),
|
|
7546
|
+
|
|
7591
7547
|
/***/ "./victory-util/log.js":
|
|
7592
7548
|
/*!*****************************!*\
|
|
7593
7549
|
!*** ./victory-util/log.js ***!
|
|
@@ -7614,40 +7570,129 @@ function warn(message) {
|
|
|
7614
7570
|
|
|
7615
7571
|
/***/ }),
|
|
7616
7572
|
|
|
7617
|
-
/***/ "./victory-util/
|
|
7618
|
-
|
|
7619
|
-
!*** ./victory-util/
|
|
7620
|
-
|
|
7573
|
+
/***/ "./victory-util/point-path-helpers.js":
|
|
7574
|
+
/*!********************************************!*\
|
|
7575
|
+
!*** ./victory-util/point-path-helpers.js ***!
|
|
7576
|
+
\********************************************/
|
|
7621
7577
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7622
7578
|
|
|
7623
7579
|
"use strict";
|
|
7624
7580
|
__webpack_require__.r(__webpack_exports__);
|
|
7625
7581
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7626
|
-
/* harmony export */ "
|
|
7627
|
-
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
7628
|
-
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
7629
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
7630
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
7631
|
-
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
7632
|
-
/* harmony export */ "scale": () => (/* binding */ scale),
|
|
7633
|
-
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
7634
|
-
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
7635
|
-
/* harmony export */ "regExp": () => (/* binding */ regExp)
|
|
7582
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
7636
7583
|
/* harmony export */ });
|
|
7637
|
-
/* harmony import */ var
|
|
7638
|
-
/* harmony import */ var
|
|
7639
|
-
|
|
7640
|
-
/* harmony
|
|
7641
|
-
|
|
7642
|
-
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7584
|
+
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js");
|
|
7585
|
+
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__);
|
|
7586
|
+
|
|
7587
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
7588
|
+
circle: function (x, y, size) {
|
|
7589
|
+
return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
|
|
7590
|
+
},
|
|
7591
|
+
square: function (x, y, size) {
|
|
7592
|
+
var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
|
|
7593
|
+
|
|
7594
|
+
var x0 = x - baseSize;
|
|
7595
|
+
var y1 = y + baseSize;
|
|
7596
|
+
var distance = x + baseSize - x0;
|
|
7597
|
+
return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(distance, "\n h-").concat(distance, "\n z");
|
|
7598
|
+
},
|
|
7599
|
+
diamond: function (x, y, size) {
|
|
7600
|
+
var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
|
|
7601
|
+
|
|
7602
|
+
var length = Math.sqrt(2 * (baseSize * baseSize));
|
|
7603
|
+
return "M ".concat(x, ", ").concat(y + length, "\n l ").concat(length, ", -").concat(length, "\n l -").concat(length, ", -").concat(length, "\n l -").concat(length, ", ").concat(length, "\n l ").concat(length, ", ").concat(length, "\n z");
|
|
7604
|
+
},
|
|
7605
|
+
triangleDown: function (x, y, size) {
|
|
7606
|
+
var height = size / 2 * Math.sqrt(3);
|
|
7607
|
+
var x0 = x - size;
|
|
7608
|
+
var x1 = x + size;
|
|
7609
|
+
var y0 = y - size;
|
|
7610
|
+
var y1 = y + height;
|
|
7611
|
+
return "M ".concat(x0, ", ").concat(y0, "\n L ").concat(x1, ", ").concat(y0, "\n L ").concat(x, ", ").concat(y1, "\n z");
|
|
7612
|
+
},
|
|
7613
|
+
triangleUp: function (x, y, size) {
|
|
7614
|
+
var height = size / 2 * Math.sqrt(3);
|
|
7615
|
+
var x0 = x - size;
|
|
7616
|
+
var x1 = x + size;
|
|
7617
|
+
var y0 = y - height;
|
|
7618
|
+
var y1 = y + size;
|
|
7619
|
+
return "M ".concat(x0, ", ").concat(y1, "\n L ").concat(x1, ", ").concat(y1, "\n L ").concat(x, ", ").concat(y0, "\n z");
|
|
7620
|
+
},
|
|
7621
|
+
plus: function (x, y, size) {
|
|
7622
|
+
var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
|
|
7623
|
+
|
|
7624
|
+
var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
|
|
7625
|
+
|
|
7626
|
+
return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n v-").concat(distance, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance, "\n z");
|
|
7627
|
+
},
|
|
7628
|
+
cross: function (x, y, size) {
|
|
7629
|
+
var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers
|
|
7630
|
+
|
|
7631
|
+
var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
|
|
7632
|
+
|
|
7633
|
+
return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n v-").concat(distance * 2, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance * 2, "\n z");
|
|
7634
|
+
},
|
|
7635
|
+
minus: function (x, y, size) {
|
|
7636
|
+
var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
|
|
7637
|
+
|
|
7638
|
+
var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers
|
|
7639
|
+
|
|
7640
|
+
var x0 = x - baseSize;
|
|
7641
|
+
var y1 = y + lineHeight / 2;
|
|
7642
|
+
var distance = x + baseSize - x0;
|
|
7643
|
+
return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(lineHeight, "\n h-").concat(distance, "\n z");
|
|
7644
|
+
},
|
|
7645
|
+
star: function (x, y, size) {
|
|
7646
|
+
var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers
|
|
7647
|
+
|
|
7648
|
+
var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
|
|
7649
|
+
// eslint-disable-next-line no-magic-numbers
|
|
7650
|
+
|
|
7651
|
+
var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) {
|
|
7652
|
+
var length = index % 2 === 0 ? baseSize : baseSize / 2;
|
|
7653
|
+
return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y);
|
|
7654
|
+
});
|
|
7655
|
+
|
|
7656
|
+
return "M ".concat(starCoords.join("L"), " z");
|
|
7657
|
+
}
|
|
7658
|
+
});
|
|
7659
|
+
|
|
7660
|
+
/***/ }),
|
|
7661
|
+
|
|
7662
|
+
/***/ "./victory-util/prop-types.js":
|
|
7663
|
+
/*!************************************!*\
|
|
7664
|
+
!*** ./victory-util/prop-types.js ***!
|
|
7665
|
+
\************************************/
|
|
7666
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
7667
|
+
|
|
7668
|
+
"use strict";
|
|
7669
|
+
__webpack_require__.r(__webpack_exports__);
|
|
7670
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7671
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
7672
|
+
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
7673
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
7674
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
7675
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
7676
|
+
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
7677
|
+
/* harmony export */ "scale": () => (/* binding */ scale),
|
|
7678
|
+
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
7679
|
+
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
7680
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp)
|
|
7681
|
+
/* harmony export */ });
|
|
7682
|
+
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
7683
|
+
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
7684
|
+
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
7685
|
+
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
7686
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7687
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
7688
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "./victory-util/log.js");
|
|
7689
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7690
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
7691
|
+
|
|
7692
|
+
|
|
7693
|
+
|
|
7694
|
+
|
|
7695
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7651
7696
|
|
|
7652
7697
|
|
|
7653
7698
|
|
|
@@ -8609,9 +8654,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8609
8654
|
|
|
8610
8655
|
|
|
8611
8656
|
|
|
8612
|
-
var Timer =
|
|
8613
|
-
/*#__PURE__*/
|
|
8614
|
-
function () {
|
|
8657
|
+
var Timer = /*#__PURE__*/function () {
|
|
8615
8658
|
function Timer() {
|
|
8616
8659
|
_classCallCheck(this, Timer);
|
|
8617
8660
|
|
|
@@ -13203,6 +13246,151 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13203
13246
|
}
|
|
13204
13247
|
|
|
13205
13248
|
|
|
13249
|
+
/***/ }),
|
|
13250
|
+
|
|
13251
|
+
/***/ "../../../node_modules/d3-path/src/path.js":
|
|
13252
|
+
/*!*************************************************!*\
|
|
13253
|
+
!*** ../../../node_modules/d3-path/src/path.js ***!
|
|
13254
|
+
\*************************************************/
|
|
13255
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13256
|
+
|
|
13257
|
+
"use strict";
|
|
13258
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13259
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13260
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13261
|
+
/* harmony export */ });
|
|
13262
|
+
var pi = Math.PI,
|
|
13263
|
+
tau = 2 * pi,
|
|
13264
|
+
epsilon = 1e-6,
|
|
13265
|
+
tauEpsilon = tau - epsilon;
|
|
13266
|
+
|
|
13267
|
+
function Path() {
|
|
13268
|
+
this._x0 = this._y0 = // start of current subpath
|
|
13269
|
+
this._x1 = this._y1 = null; // end of current subpath
|
|
13270
|
+
this._ = "";
|
|
13271
|
+
}
|
|
13272
|
+
|
|
13273
|
+
function path() {
|
|
13274
|
+
return new Path;
|
|
13275
|
+
}
|
|
13276
|
+
|
|
13277
|
+
Path.prototype = path.prototype = {
|
|
13278
|
+
constructor: Path,
|
|
13279
|
+
moveTo: function(x, y) {
|
|
13280
|
+
this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y);
|
|
13281
|
+
},
|
|
13282
|
+
closePath: function() {
|
|
13283
|
+
if (this._x1 !== null) {
|
|
13284
|
+
this._x1 = this._x0, this._y1 = this._y0;
|
|
13285
|
+
this._ += "Z";
|
|
13286
|
+
}
|
|
13287
|
+
},
|
|
13288
|
+
lineTo: function(x, y) {
|
|
13289
|
+
this._ += "L" + (this._x1 = +x) + "," + (this._y1 = +y);
|
|
13290
|
+
},
|
|
13291
|
+
quadraticCurveTo: function(x1, y1, x, y) {
|
|
13292
|
+
this._ += "Q" + (+x1) + "," + (+y1) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
|
|
13293
|
+
},
|
|
13294
|
+
bezierCurveTo: function(x1, y1, x2, y2, x, y) {
|
|
13295
|
+
this._ += "C" + (+x1) + "," + (+y1) + "," + (+x2) + "," + (+y2) + "," + (this._x1 = +x) + "," + (this._y1 = +y);
|
|
13296
|
+
},
|
|
13297
|
+
arcTo: function(x1, y1, x2, y2, r) {
|
|
13298
|
+
x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r = +r;
|
|
13299
|
+
var x0 = this._x1,
|
|
13300
|
+
y0 = this._y1,
|
|
13301
|
+
x21 = x2 - x1,
|
|
13302
|
+
y21 = y2 - y1,
|
|
13303
|
+
x01 = x0 - x1,
|
|
13304
|
+
y01 = y0 - y1,
|
|
13305
|
+
l01_2 = x01 * x01 + y01 * y01;
|
|
13306
|
+
|
|
13307
|
+
// Is the radius negative? Error.
|
|
13308
|
+
if (r < 0) throw new Error("negative radius: " + r);
|
|
13309
|
+
|
|
13310
|
+
// Is this path empty? Move to (x1,y1).
|
|
13311
|
+
if (this._x1 === null) {
|
|
13312
|
+
this._ += "M" + (this._x1 = x1) + "," + (this._y1 = y1);
|
|
13313
|
+
}
|
|
13314
|
+
|
|
13315
|
+
// Or, is (x1,y1) coincident with (x0,y0)? Do nothing.
|
|
13316
|
+
else if (!(l01_2 > epsilon));
|
|
13317
|
+
|
|
13318
|
+
// Or, are (x0,y0), (x1,y1) and (x2,y2) collinear?
|
|
13319
|
+
// Equivalently, is (x1,y1) coincident with (x2,y2)?
|
|
13320
|
+
// Or, is the radius zero? Line to (x1,y1).
|
|
13321
|
+
else if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r) {
|
|
13322
|
+
this._ += "L" + (this._x1 = x1) + "," + (this._y1 = y1);
|
|
13323
|
+
}
|
|
13324
|
+
|
|
13325
|
+
// Otherwise, draw an arc!
|
|
13326
|
+
else {
|
|
13327
|
+
var x20 = x2 - x0,
|
|
13328
|
+
y20 = y2 - y0,
|
|
13329
|
+
l21_2 = x21 * x21 + y21 * y21,
|
|
13330
|
+
l20_2 = x20 * x20 + y20 * y20,
|
|
13331
|
+
l21 = Math.sqrt(l21_2),
|
|
13332
|
+
l01 = Math.sqrt(l01_2),
|
|
13333
|
+
l = r * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2),
|
|
13334
|
+
t01 = l / l01,
|
|
13335
|
+
t21 = l / l21;
|
|
13336
|
+
|
|
13337
|
+
// If the start tangent is not coincident with (x0,y0), line to.
|
|
13338
|
+
if (Math.abs(t01 - 1) > epsilon) {
|
|
13339
|
+
this._ += "L" + (x1 + t01 * x01) + "," + (y1 + t01 * y01);
|
|
13340
|
+
}
|
|
13341
|
+
|
|
13342
|
+
this._ += "A" + r + "," + r + ",0,0," + (+(y01 * x20 > x01 * y20)) + "," + (this._x1 = x1 + t21 * x21) + "," + (this._y1 = y1 + t21 * y21);
|
|
13343
|
+
}
|
|
13344
|
+
},
|
|
13345
|
+
arc: function(x, y, r, a0, a1, ccw) {
|
|
13346
|
+
x = +x, y = +y, r = +r, ccw = !!ccw;
|
|
13347
|
+
var dx = r * Math.cos(a0),
|
|
13348
|
+
dy = r * Math.sin(a0),
|
|
13349
|
+
x0 = x + dx,
|
|
13350
|
+
y0 = y + dy,
|
|
13351
|
+
cw = 1 ^ ccw,
|
|
13352
|
+
da = ccw ? a0 - a1 : a1 - a0;
|
|
13353
|
+
|
|
13354
|
+
// Is the radius negative? Error.
|
|
13355
|
+
if (r < 0) throw new Error("negative radius: " + r);
|
|
13356
|
+
|
|
13357
|
+
// Is this path empty? Move to (x0,y0).
|
|
13358
|
+
if (this._x1 === null) {
|
|
13359
|
+
this._ += "M" + x0 + "," + y0;
|
|
13360
|
+
}
|
|
13361
|
+
|
|
13362
|
+
// Or, is (x0,y0) not coincident with the previous point? Line to (x0,y0).
|
|
13363
|
+
else if (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) {
|
|
13364
|
+
this._ += "L" + x0 + "," + y0;
|
|
13365
|
+
}
|
|
13366
|
+
|
|
13367
|
+
// Is this arc empty? We’re done.
|
|
13368
|
+
if (!r) return;
|
|
13369
|
+
|
|
13370
|
+
// Does the angle go the wrong way? Flip the direction.
|
|
13371
|
+
if (da < 0) da = da % tau + tau;
|
|
13372
|
+
|
|
13373
|
+
// Is this a complete circle? Draw two arcs to complete the circle.
|
|
13374
|
+
if (da > tauEpsilon) {
|
|
13375
|
+
this._ += "A" + r + "," + r + ",0,1," + cw + "," + (x - dx) + "," + (y - dy) + "A" + r + "," + r + ",0,1," + cw + "," + (this._x1 = x0) + "," + (this._y1 = y0);
|
|
13376
|
+
}
|
|
13377
|
+
|
|
13378
|
+
// Is this arc non-empty? Draw an arc!
|
|
13379
|
+
else if (da > epsilon) {
|
|
13380
|
+
this._ += "A" + r + "," + r + ",0," + (+(da >= pi)) + "," + cw + "," + (this._x1 = x + r * Math.cos(a1)) + "," + (this._y1 = y + r * Math.sin(a1));
|
|
13381
|
+
}
|
|
13382
|
+
},
|
|
13383
|
+
rect: function(x, y, w, h) {
|
|
13384
|
+
this._ += "M" + (this._x0 = this._x1 = +x) + "," + (this._y0 = this._y1 = +y) + "h" + (+w) + "v" + (+h) + "h" + (-w) + "Z";
|
|
13385
|
+
},
|
|
13386
|
+
toString: function() {
|
|
13387
|
+
return this._;
|
|
13388
|
+
}
|
|
13389
|
+
};
|
|
13390
|
+
|
|
13391
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (path);
|
|
13392
|
+
|
|
13393
|
+
|
|
13206
13394
|
/***/ }),
|
|
13207
13395
|
|
|
13208
13396
|
/***/ "../../../node_modules/d3-scale/index.js":
|
|
@@ -14480,32 +14668,2917 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14480
14668
|
|
|
14481
14669
|
/***/ }),
|
|
14482
14670
|
|
|
14483
|
-
/***/ "../../../node_modules/d3-scale/src/time.js":
|
|
14484
|
-
/*!**************************************************!*\
|
|
14485
|
-
!*** ../../../node_modules/d3-scale/src/time.js ***!
|
|
14486
|
-
\**************************************************/
|
|
14671
|
+
/***/ "../../../node_modules/d3-scale/src/time.js":
|
|
14672
|
+
/*!**************************************************!*\
|
|
14673
|
+
!*** ../../../node_modules/d3-scale/src/time.js ***!
|
|
14674
|
+
\**************************************************/
|
|
14675
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14676
|
+
|
|
14677
|
+
"use strict";
|
|
14678
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14679
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14680
|
+
/* harmony export */ "calendar": () => (/* binding */ calendar),
|
|
14681
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
14682
|
+
/* harmony export */ });
|
|
14683
|
+
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../../node_modules/d3-array/src/index.js");
|
|
14684
|
+
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-interpolate */ "../../../node_modules/d3-interpolate/src/number.js");
|
|
14685
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/year.js");
|
|
14686
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/month.js");
|
|
14687
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/week.js");
|
|
14688
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/day.js");
|
|
14689
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/hour.js");
|
|
14690
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/minute.js");
|
|
14691
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/second.js");
|
|
14692
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/millisecond.js");
|
|
14693
|
+
/* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! d3-time-format */ "../../../node_modules/d3-time-format/src/defaultLocale.js");
|
|
14694
|
+
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-scale/src/array.js");
|
|
14695
|
+
/* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "../../../node_modules/d3-scale/src/continuous.js");
|
|
14696
|
+
/* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nice */ "../../../node_modules/d3-scale/src/nice.js");
|
|
14697
|
+
|
|
14698
|
+
|
|
14699
|
+
|
|
14700
|
+
|
|
14701
|
+
|
|
14702
|
+
|
|
14703
|
+
|
|
14704
|
+
|
|
14705
|
+
var durationSecond = 1000,
|
|
14706
|
+
durationMinute = durationSecond * 60,
|
|
14707
|
+
durationHour = durationMinute * 60,
|
|
14708
|
+
durationDay = durationHour * 24,
|
|
14709
|
+
durationWeek = durationDay * 7,
|
|
14710
|
+
durationMonth = durationDay * 30,
|
|
14711
|
+
durationYear = durationDay * 365;
|
|
14712
|
+
|
|
14713
|
+
function date(t) {
|
|
14714
|
+
return new Date(t);
|
|
14715
|
+
}
|
|
14716
|
+
|
|
14717
|
+
function number(t) {
|
|
14718
|
+
return t instanceof Date ? +t : +new Date(+t);
|
|
14719
|
+
}
|
|
14720
|
+
|
|
14721
|
+
function calendar(year, month, week, day, hour, minute, second, millisecond, format) {
|
|
14722
|
+
var scale = (0,_continuous__WEBPACK_IMPORTED_MODULE_2__.default)(_continuous__WEBPACK_IMPORTED_MODULE_2__.deinterpolateLinear, d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.default),
|
|
14723
|
+
invert = scale.invert,
|
|
14724
|
+
domain = scale.domain;
|
|
14725
|
+
|
|
14726
|
+
var formatMillisecond = format(".%L"),
|
|
14727
|
+
formatSecond = format(":%S"),
|
|
14728
|
+
formatMinute = format("%I:%M"),
|
|
14729
|
+
formatHour = format("%I %p"),
|
|
14730
|
+
formatDay = format("%a %d"),
|
|
14731
|
+
formatWeek = format("%b %d"),
|
|
14732
|
+
formatMonth = format("%B"),
|
|
14733
|
+
formatYear = format("%Y");
|
|
14734
|
+
|
|
14735
|
+
var tickIntervals = [
|
|
14736
|
+
[second, 1, durationSecond],
|
|
14737
|
+
[second, 5, 5 * durationSecond],
|
|
14738
|
+
[second, 15, 15 * durationSecond],
|
|
14739
|
+
[second, 30, 30 * durationSecond],
|
|
14740
|
+
[minute, 1, durationMinute],
|
|
14741
|
+
[minute, 5, 5 * durationMinute],
|
|
14742
|
+
[minute, 15, 15 * durationMinute],
|
|
14743
|
+
[minute, 30, 30 * durationMinute],
|
|
14744
|
+
[ hour, 1, durationHour ],
|
|
14745
|
+
[ hour, 3, 3 * durationHour ],
|
|
14746
|
+
[ hour, 6, 6 * durationHour ],
|
|
14747
|
+
[ hour, 12, 12 * durationHour ],
|
|
14748
|
+
[ day, 1, durationDay ],
|
|
14749
|
+
[ day, 2, 2 * durationDay ],
|
|
14750
|
+
[ week, 1, durationWeek ],
|
|
14751
|
+
[ month, 1, durationMonth ],
|
|
14752
|
+
[ month, 3, 3 * durationMonth ],
|
|
14753
|
+
[ year, 1, durationYear ]
|
|
14754
|
+
];
|
|
14755
|
+
|
|
14756
|
+
function tickFormat(date) {
|
|
14757
|
+
return (second(date) < date ? formatMillisecond
|
|
14758
|
+
: minute(date) < date ? formatSecond
|
|
14759
|
+
: hour(date) < date ? formatMinute
|
|
14760
|
+
: day(date) < date ? formatHour
|
|
14761
|
+
: month(date) < date ? (week(date) < date ? formatDay : formatWeek)
|
|
14762
|
+
: year(date) < date ? formatMonth
|
|
14763
|
+
: formatYear)(date);
|
|
14764
|
+
}
|
|
14765
|
+
|
|
14766
|
+
function tickInterval(interval, start, stop, step) {
|
|
14767
|
+
if (interval == null) interval = 10;
|
|
14768
|
+
|
|
14769
|
+
// If a desired tick count is specified, pick a reasonable tick interval
|
|
14770
|
+
// based on the extent of the domain and a rough estimate of tick size.
|
|
14771
|
+
// Otherwise, assume interval is already a time interval and use it.
|
|
14772
|
+
if (typeof interval === "number") {
|
|
14773
|
+
var target = Math.abs(stop - start) / interval,
|
|
14774
|
+
i = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.bisector)(function(i) { return i[2]; }).right(tickIntervals, target);
|
|
14775
|
+
if (i === tickIntervals.length) {
|
|
14776
|
+
step = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickStep)(start / durationYear, stop / durationYear, interval);
|
|
14777
|
+
interval = year;
|
|
14778
|
+
} else if (i) {
|
|
14779
|
+
i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
|
|
14780
|
+
step = i[1];
|
|
14781
|
+
interval = i[0];
|
|
14782
|
+
} else {
|
|
14783
|
+
step = Math.max((0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickStep)(start, stop, interval), 1);
|
|
14784
|
+
interval = millisecond;
|
|
14785
|
+
}
|
|
14786
|
+
}
|
|
14787
|
+
|
|
14788
|
+
return step == null ? interval : interval.every(step);
|
|
14789
|
+
}
|
|
14790
|
+
|
|
14791
|
+
scale.invert = function(y) {
|
|
14792
|
+
return new Date(invert(y));
|
|
14793
|
+
};
|
|
14794
|
+
|
|
14795
|
+
scale.domain = function(_) {
|
|
14796
|
+
return arguments.length ? domain(_array__WEBPACK_IMPORTED_MODULE_1__.map.call(_, number)) : domain().map(date);
|
|
14797
|
+
};
|
|
14798
|
+
|
|
14799
|
+
scale.ticks = function(interval, step) {
|
|
14800
|
+
var d = domain(),
|
|
14801
|
+
t0 = d[0],
|
|
14802
|
+
t1 = d[d.length - 1],
|
|
14803
|
+
r = t1 < t0,
|
|
14804
|
+
t;
|
|
14805
|
+
if (r) t = t0, t0 = t1, t1 = t;
|
|
14806
|
+
t = tickInterval(interval, t0, t1, step);
|
|
14807
|
+
t = t ? t.range(t0, t1 + 1) : []; // inclusive stop
|
|
14808
|
+
return r ? t.reverse() : t;
|
|
14809
|
+
};
|
|
14810
|
+
|
|
14811
|
+
scale.tickFormat = function(count, specifier) {
|
|
14812
|
+
return specifier == null ? tickFormat : format(specifier);
|
|
14813
|
+
};
|
|
14814
|
+
|
|
14815
|
+
scale.nice = function(interval, step) {
|
|
14816
|
+
var d = domain();
|
|
14817
|
+
return (interval = tickInterval(interval, d[0], d[d.length - 1], step))
|
|
14818
|
+
? domain((0,_nice__WEBPACK_IMPORTED_MODULE_3__.default)(d, interval))
|
|
14819
|
+
: scale;
|
|
14820
|
+
};
|
|
14821
|
+
|
|
14822
|
+
scale.copy = function() {
|
|
14823
|
+
return (0,_continuous__WEBPACK_IMPORTED_MODULE_2__.copy)(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));
|
|
14824
|
+
};
|
|
14825
|
+
|
|
14826
|
+
return scale;
|
|
14827
|
+
}
|
|
14828
|
+
|
|
14829
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
14830
|
+
return calendar(d3_time__WEBPACK_IMPORTED_MODULE_5__.default, d3_time__WEBPACK_IMPORTED_MODULE_6__.default, d3_time__WEBPACK_IMPORTED_MODULE_7__.sunday, d3_time__WEBPACK_IMPORTED_MODULE_8__.default, d3_time__WEBPACK_IMPORTED_MODULE_9__.default, d3_time__WEBPACK_IMPORTED_MODULE_10__.default, d3_time__WEBPACK_IMPORTED_MODULE_11__.default, d3_time__WEBPACK_IMPORTED_MODULE_12__.default, d3_time_format__WEBPACK_IMPORTED_MODULE_13__.timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]);
|
|
14831
|
+
}
|
|
14832
|
+
|
|
14833
|
+
|
|
14834
|
+
/***/ }),
|
|
14835
|
+
|
|
14836
|
+
/***/ "../../../node_modules/d3-scale/src/utcTime.js":
|
|
14837
|
+
/*!*****************************************************!*\
|
|
14838
|
+
!*** ../../../node_modules/d3-scale/src/utcTime.js ***!
|
|
14839
|
+
\*****************************************************/
|
|
14840
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14841
|
+
|
|
14842
|
+
"use strict";
|
|
14843
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14844
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14845
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
14846
|
+
/* harmony export */ });
|
|
14847
|
+
/* harmony import */ var _time__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./time */ "../../../node_modules/d3-scale/src/time.js");
|
|
14848
|
+
/* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! d3-time-format */ "../../../node_modules/d3-time-format/src/defaultLocale.js");
|
|
14849
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcYear.js");
|
|
14850
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcMonth.js");
|
|
14851
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcWeek.js");
|
|
14852
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcDay.js");
|
|
14853
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcHour.js");
|
|
14854
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcMinute.js");
|
|
14855
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/second.js");
|
|
14856
|
+
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/millisecond.js");
|
|
14857
|
+
|
|
14858
|
+
|
|
14859
|
+
|
|
14860
|
+
|
|
14861
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
14862
|
+
return (0,_time__WEBPACK_IMPORTED_MODULE_0__.calendar)(d3_time__WEBPACK_IMPORTED_MODULE_1__.default, d3_time__WEBPACK_IMPORTED_MODULE_2__.default, d3_time__WEBPACK_IMPORTED_MODULE_3__.utcSunday, d3_time__WEBPACK_IMPORTED_MODULE_4__.default, d3_time__WEBPACK_IMPORTED_MODULE_5__.default, d3_time__WEBPACK_IMPORTED_MODULE_6__.default, d3_time__WEBPACK_IMPORTED_MODULE_7__.default, d3_time__WEBPACK_IMPORTED_MODULE_8__.default, d3_time_format__WEBPACK_IMPORTED_MODULE_9__.utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]);
|
|
14863
|
+
}
|
|
14864
|
+
|
|
14865
|
+
|
|
14866
|
+
/***/ }),
|
|
14867
|
+
|
|
14868
|
+
/***/ "../../../node_modules/d3-scale/src/viridis.js":
|
|
14869
|
+
/*!*****************************************************!*\
|
|
14870
|
+
!*** ../../../node_modules/d3-scale/src/viridis.js ***!
|
|
14871
|
+
\*****************************************************/
|
|
14872
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14873
|
+
|
|
14874
|
+
"use strict";
|
|
14875
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14876
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14877
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
14878
|
+
/* harmony export */ "magma": () => (/* binding */ magma),
|
|
14879
|
+
/* harmony export */ "inferno": () => (/* binding */ inferno),
|
|
14880
|
+
/* harmony export */ "plasma": () => (/* binding */ plasma)
|
|
14881
|
+
/* harmony export */ });
|
|
14882
|
+
/* harmony import */ var _colors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./colors */ "../../../node_modules/d3-scale/src/colors.js");
|
|
14883
|
+
|
|
14884
|
+
|
|
14885
|
+
function ramp(range) {
|
|
14886
|
+
var n = range.length;
|
|
14887
|
+
return function(t) {
|
|
14888
|
+
return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
|
|
14889
|
+
};
|
|
14890
|
+
}
|
|
14891
|
+
|
|
14892
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ramp((0,_colors__WEBPACK_IMPORTED_MODULE_0__.default)("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")));
|
|
14893
|
+
|
|
14894
|
+
var magma = ramp((0,_colors__WEBPACK_IMPORTED_MODULE_0__.default)("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
|
|
14895
|
+
|
|
14896
|
+
var inferno = ramp((0,_colors__WEBPACK_IMPORTED_MODULE_0__.default)("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
|
|
14897
|
+
|
|
14898
|
+
var plasma = ramp((0,_colors__WEBPACK_IMPORTED_MODULE_0__.default)("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
|
|
14899
|
+
|
|
14900
|
+
|
|
14901
|
+
/***/ }),
|
|
14902
|
+
|
|
14903
|
+
/***/ "../../../node_modules/d3-shape/src/arc.js":
|
|
14904
|
+
/*!*************************************************!*\
|
|
14905
|
+
!*** ../../../node_modules/d3-shape/src/arc.js ***!
|
|
14906
|
+
\*************************************************/
|
|
14907
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14908
|
+
|
|
14909
|
+
"use strict";
|
|
14910
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14911
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14912
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
14913
|
+
/* harmony export */ });
|
|
14914
|
+
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/path.js");
|
|
14915
|
+
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js");
|
|
14916
|
+
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../../node_modules/d3-shape/src/math.js");
|
|
14917
|
+
|
|
14918
|
+
|
|
14919
|
+
|
|
14920
|
+
|
|
14921
|
+
function arcInnerRadius(d) {
|
|
14922
|
+
return d.innerRadius;
|
|
14923
|
+
}
|
|
14924
|
+
|
|
14925
|
+
function arcOuterRadius(d) {
|
|
14926
|
+
return d.outerRadius;
|
|
14927
|
+
}
|
|
14928
|
+
|
|
14929
|
+
function arcStartAngle(d) {
|
|
14930
|
+
return d.startAngle;
|
|
14931
|
+
}
|
|
14932
|
+
|
|
14933
|
+
function arcEndAngle(d) {
|
|
14934
|
+
return d.endAngle;
|
|
14935
|
+
}
|
|
14936
|
+
|
|
14937
|
+
function arcPadAngle(d) {
|
|
14938
|
+
return d && d.padAngle; // Note: optional!
|
|
14939
|
+
}
|
|
14940
|
+
|
|
14941
|
+
function intersect(x0, y0, x1, y1, x2, y2, x3, y3) {
|
|
14942
|
+
var x10 = x1 - x0, y10 = y1 - y0,
|
|
14943
|
+
x32 = x3 - x2, y32 = y3 - y2,
|
|
14944
|
+
t = y32 * x10 - x32 * y10;
|
|
14945
|
+
if (t * t < _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) return;
|
|
14946
|
+
t = (x32 * (y0 - y2) - y32 * (x0 - x2)) / t;
|
|
14947
|
+
return [x0 + t * x10, y0 + t * y10];
|
|
14948
|
+
}
|
|
14949
|
+
|
|
14950
|
+
// Compute perpendicular offset line of length rc.
|
|
14951
|
+
// http://mathworld.wolfram.com/Circle-LineIntersection.html
|
|
14952
|
+
function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
14953
|
+
var x01 = x0 - x1,
|
|
14954
|
+
y01 = y0 - y1,
|
|
14955
|
+
lo = (cw ? rc : -rc) / (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(x01 * x01 + y01 * y01),
|
|
14956
|
+
ox = lo * y01,
|
|
14957
|
+
oy = -lo * x01,
|
|
14958
|
+
x11 = x0 + ox,
|
|
14959
|
+
y11 = y0 + oy,
|
|
14960
|
+
x10 = x1 + ox,
|
|
14961
|
+
y10 = y1 + oy,
|
|
14962
|
+
x00 = (x11 + x10) / 2,
|
|
14963
|
+
y00 = (y11 + y10) / 2,
|
|
14964
|
+
dx = x10 - x11,
|
|
14965
|
+
dy = y10 - y11,
|
|
14966
|
+
d2 = dx * dx + dy * dy,
|
|
14967
|
+
r = r1 - rc,
|
|
14968
|
+
D = x11 * y10 - x10 * y11,
|
|
14969
|
+
d = (dy < 0 ? -1 : 1) * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)((0,_math_js__WEBPACK_IMPORTED_MODULE_0__.max)(0, r * r * d2 - D * D)),
|
|
14970
|
+
cx0 = (D * dy - dx * d) / d2,
|
|
14971
|
+
cy0 = (-D * dx - dy * d) / d2,
|
|
14972
|
+
cx1 = (D * dy + dx * d) / d2,
|
|
14973
|
+
cy1 = (-D * dx + dy * d) / d2,
|
|
14974
|
+
dx0 = cx0 - x00,
|
|
14975
|
+
dy0 = cy0 - y00,
|
|
14976
|
+
dx1 = cx1 - x00,
|
|
14977
|
+
dy1 = cy1 - y00;
|
|
14978
|
+
|
|
14979
|
+
// Pick the closer of the two intersection points.
|
|
14980
|
+
// TODO Is there a faster way to determine which intersection to use?
|
|
14981
|
+
if (dx0 * dx0 + dy0 * dy0 > dx1 * dx1 + dy1 * dy1) cx0 = cx1, cy0 = cy1;
|
|
14982
|
+
|
|
14983
|
+
return {
|
|
14984
|
+
cx: cx0,
|
|
14985
|
+
cy: cy0,
|
|
14986
|
+
x01: -ox,
|
|
14987
|
+
y01: -oy,
|
|
14988
|
+
x11: cx0 * (r1 / r - 1),
|
|
14989
|
+
y11: cy0 * (r1 / r - 1)
|
|
14990
|
+
};
|
|
14991
|
+
}
|
|
14992
|
+
|
|
14993
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
14994
|
+
var innerRadius = arcInnerRadius,
|
|
14995
|
+
outerRadius = arcOuterRadius,
|
|
14996
|
+
cornerRadius = (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(0),
|
|
14997
|
+
padRadius = null,
|
|
14998
|
+
startAngle = arcStartAngle,
|
|
14999
|
+
endAngle = arcEndAngle,
|
|
15000
|
+
padAngle = arcPadAngle,
|
|
15001
|
+
context = null;
|
|
15002
|
+
|
|
15003
|
+
function arc() {
|
|
15004
|
+
var buffer,
|
|
15005
|
+
r,
|
|
15006
|
+
r0 = +innerRadius.apply(this, arguments),
|
|
15007
|
+
r1 = +outerRadius.apply(this, arguments),
|
|
15008
|
+
a0 = startAngle.apply(this, arguments) - _math_js__WEBPACK_IMPORTED_MODULE_0__.halfPi,
|
|
15009
|
+
a1 = endAngle.apply(this, arguments) - _math_js__WEBPACK_IMPORTED_MODULE_0__.halfPi,
|
|
15010
|
+
da = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.abs)(a1 - a0),
|
|
15011
|
+
cw = a1 > a0;
|
|
15012
|
+
|
|
15013
|
+
if (!context) context = buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_2__.default)();
|
|
15014
|
+
|
|
15015
|
+
// Ensure that the outer radius is always larger than the inner radius.
|
|
15016
|
+
if (r1 < r0) r = r1, r1 = r0, r0 = r;
|
|
15017
|
+
|
|
15018
|
+
// Is it a point?
|
|
15019
|
+
if (!(r1 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon)) context.moveTo(0, 0);
|
|
15020
|
+
|
|
15021
|
+
// Or is it a circle or annulus?
|
|
15022
|
+
else if (da > _math_js__WEBPACK_IMPORTED_MODULE_0__.tau - _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
|
|
15023
|
+
context.moveTo(r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a0), r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a0));
|
|
15024
|
+
context.arc(0, 0, r1, a0, a1, !cw);
|
|
15025
|
+
if (r0 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
|
|
15026
|
+
context.moveTo(r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a1), r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a1));
|
|
15027
|
+
context.arc(0, 0, r0, a1, a0, cw);
|
|
15028
|
+
}
|
|
15029
|
+
}
|
|
15030
|
+
|
|
15031
|
+
// Or is it a circular or annular sector?
|
|
15032
|
+
else {
|
|
15033
|
+
var a01 = a0,
|
|
15034
|
+
a11 = a1,
|
|
15035
|
+
a00 = a0,
|
|
15036
|
+
a10 = a1,
|
|
15037
|
+
da0 = da,
|
|
15038
|
+
da1 = da,
|
|
15039
|
+
ap = padAngle.apply(this, arguments) / 2,
|
|
15040
|
+
rp = (ap > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) && (padRadius ? +padRadius.apply(this, arguments) : (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(r0 * r0 + r1 * r1)),
|
|
15041
|
+
rc = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.min)((0,_math_js__WEBPACK_IMPORTED_MODULE_0__.abs)(r1 - r0) / 2, +cornerRadius.apply(this, arguments)),
|
|
15042
|
+
rc0 = rc,
|
|
15043
|
+
rc1 = rc,
|
|
15044
|
+
t0,
|
|
15045
|
+
t1;
|
|
15046
|
+
|
|
15047
|
+
// Apply padding? Note that since r1 ≥ r0, da1 ≥ da0.
|
|
15048
|
+
if (rp > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
|
|
15049
|
+
var p0 = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.asin)(rp / r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(ap)),
|
|
15050
|
+
p1 = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.asin)(rp / r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(ap));
|
|
15051
|
+
if ((da0 -= p0 * 2) > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) p0 *= (cw ? 1 : -1), a00 += p0, a10 -= p0;
|
|
15052
|
+
else da0 = 0, a00 = a10 = (a0 + a1) / 2;
|
|
15053
|
+
if ((da1 -= p1 * 2) > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) p1 *= (cw ? 1 : -1), a01 += p1, a11 -= p1;
|
|
15054
|
+
else da1 = 0, a01 = a11 = (a0 + a1) / 2;
|
|
15055
|
+
}
|
|
15056
|
+
|
|
15057
|
+
var x01 = r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a01),
|
|
15058
|
+
y01 = r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a01),
|
|
15059
|
+
x10 = r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a10),
|
|
15060
|
+
y10 = r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a10);
|
|
15061
|
+
|
|
15062
|
+
// Apply rounded corners?
|
|
15063
|
+
if (rc > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
|
|
15064
|
+
var x11 = r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a11),
|
|
15065
|
+
y11 = r1 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a11),
|
|
15066
|
+
x00 = r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a00),
|
|
15067
|
+
y00 = r0 * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a00),
|
|
15068
|
+
oc;
|
|
15069
|
+
|
|
15070
|
+
// Restrict the corner radius according to the sector angle.
|
|
15071
|
+
if (da < _math_js__WEBPACK_IMPORTED_MODULE_0__.pi && (oc = intersect(x01, y01, x00, y00, x11, y11, x10, y10))) {
|
|
15072
|
+
var ax = x01 - oc[0],
|
|
15073
|
+
ay = y01 - oc[1],
|
|
15074
|
+
bx = x11 - oc[0],
|
|
15075
|
+
by = y11 - oc[1],
|
|
15076
|
+
kc = 1 / (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)((0,_math_js__WEBPACK_IMPORTED_MODULE_0__.acos)((ax * bx + ay * by) / ((0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(ax * ax + ay * ay) * (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(bx * bx + by * by))) / 2),
|
|
15077
|
+
lc = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sqrt)(oc[0] * oc[0] + oc[1] * oc[1]);
|
|
15078
|
+
rc0 = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.min)(rc, (r0 - lc) / (kc - 1));
|
|
15079
|
+
rc1 = (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.min)(rc, (r1 - lc) / (kc + 1));
|
|
15080
|
+
}
|
|
15081
|
+
}
|
|
15082
|
+
|
|
15083
|
+
// Is the sector collapsed to a line?
|
|
15084
|
+
if (!(da1 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon)) context.moveTo(x01, y01);
|
|
15085
|
+
|
|
15086
|
+
// Does the sector’s outer ring have rounded corners?
|
|
15087
|
+
else if (rc1 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
|
|
15088
|
+
t0 = cornerTangents(x00, y00, x01, y01, r1, rc1, cw);
|
|
15089
|
+
t1 = cornerTangents(x11, y11, x10, y10, r1, rc1, cw);
|
|
15090
|
+
|
|
15091
|
+
context.moveTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
15092
|
+
|
|
15093
|
+
// Have the corners merged?
|
|
15094
|
+
if (rc1 < rc) context.arc(t0.cx, t0.cy, rc1, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y01, t0.x01), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y01, t1.x01), !cw);
|
|
15095
|
+
|
|
15096
|
+
// Otherwise, draw the two corners and the ring.
|
|
15097
|
+
else {
|
|
15098
|
+
context.arc(t0.cx, t0.cy, rc1, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y01, t0.x01), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y11, t0.x11), !cw);
|
|
15099
|
+
context.arc(0, 0, r1, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.cy + t0.y11, t0.cx + t0.x11), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.cy + t1.y11, t1.cx + t1.x11), !cw);
|
|
15100
|
+
context.arc(t1.cx, t1.cy, rc1, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y11, t1.x11), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y01, t1.x01), !cw);
|
|
15101
|
+
}
|
|
15102
|
+
}
|
|
15103
|
+
|
|
15104
|
+
// Or is the outer ring just a circular arc?
|
|
15105
|
+
else context.moveTo(x01, y01), context.arc(0, 0, r1, a01, a11, !cw);
|
|
15106
|
+
|
|
15107
|
+
// Is there no inner ring, and it’s a circular sector?
|
|
15108
|
+
// Or perhaps it’s an annular sector collapsed due to padding?
|
|
15109
|
+
if (!(r0 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) || !(da0 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon)) context.lineTo(x10, y10);
|
|
15110
|
+
|
|
15111
|
+
// Does the sector’s inner ring (or point) have rounded corners?
|
|
15112
|
+
else if (rc0 > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
|
|
15113
|
+
t0 = cornerTangents(x10, y10, x11, y11, r0, -rc0, cw);
|
|
15114
|
+
t1 = cornerTangents(x01, y01, x00, y00, r0, -rc0, cw);
|
|
15115
|
+
|
|
15116
|
+
context.lineTo(t0.cx + t0.x01, t0.cy + t0.y01);
|
|
15117
|
+
|
|
15118
|
+
// Have the corners merged?
|
|
15119
|
+
if (rc0 < rc) context.arc(t0.cx, t0.cy, rc0, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y01, t0.x01), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y01, t1.x01), !cw);
|
|
15120
|
+
|
|
15121
|
+
// Otherwise, draw the two corners and the ring.
|
|
15122
|
+
else {
|
|
15123
|
+
context.arc(t0.cx, t0.cy, rc0, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y01, t0.x01), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.y11, t0.x11), !cw);
|
|
15124
|
+
context.arc(0, 0, r0, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t0.cy + t0.y11, t0.cx + t0.x11), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.cy + t1.y11, t1.cx + t1.x11), cw);
|
|
15125
|
+
context.arc(t1.cx, t1.cy, rc0, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y11, t1.x11), (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.atan2)(t1.y01, t1.x01), !cw);
|
|
15126
|
+
}
|
|
15127
|
+
}
|
|
15128
|
+
|
|
15129
|
+
// Or is the inner ring just a circular arc?
|
|
15130
|
+
else context.arc(0, 0, r0, a10, a00, cw);
|
|
15131
|
+
}
|
|
15132
|
+
|
|
15133
|
+
context.closePath();
|
|
15134
|
+
|
|
15135
|
+
if (buffer) return context = null, buffer + "" || null;
|
|
15136
|
+
}
|
|
15137
|
+
|
|
15138
|
+
arc.centroid = function() {
|
|
15139
|
+
var r = (+innerRadius.apply(this, arguments) + +outerRadius.apply(this, arguments)) / 2,
|
|
15140
|
+
a = (+startAngle.apply(this, arguments) + +endAngle.apply(this, arguments)) / 2 - _math_js__WEBPACK_IMPORTED_MODULE_0__.pi / 2;
|
|
15141
|
+
return [(0,_math_js__WEBPACK_IMPORTED_MODULE_0__.cos)(a) * r, (0,_math_js__WEBPACK_IMPORTED_MODULE_0__.sin)(a) * r];
|
|
15142
|
+
};
|
|
15143
|
+
|
|
15144
|
+
arc.innerRadius = function(_) {
|
|
15145
|
+
return arguments.length ? (innerRadius = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), arc) : innerRadius;
|
|
15146
|
+
};
|
|
15147
|
+
|
|
15148
|
+
arc.outerRadius = function(_) {
|
|
15149
|
+
return arguments.length ? (outerRadius = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), arc) : outerRadius;
|
|
15150
|
+
};
|
|
15151
|
+
|
|
15152
|
+
arc.cornerRadius = function(_) {
|
|
15153
|
+
return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), arc) : cornerRadius;
|
|
15154
|
+
};
|
|
15155
|
+
|
|
15156
|
+
arc.padRadius = function(_) {
|
|
15157
|
+
return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), arc) : padRadius;
|
|
15158
|
+
};
|
|
15159
|
+
|
|
15160
|
+
arc.startAngle = function(_) {
|
|
15161
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), arc) : startAngle;
|
|
15162
|
+
};
|
|
15163
|
+
|
|
15164
|
+
arc.endAngle = function(_) {
|
|
15165
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), arc) : endAngle;
|
|
15166
|
+
};
|
|
15167
|
+
|
|
15168
|
+
arc.padAngle = function(_) {
|
|
15169
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), arc) : padAngle;
|
|
15170
|
+
};
|
|
15171
|
+
|
|
15172
|
+
arc.context = function(_) {
|
|
15173
|
+
return arguments.length ? ((context = _ == null ? null : _), arc) : context;
|
|
15174
|
+
};
|
|
15175
|
+
|
|
15176
|
+
return arc;
|
|
15177
|
+
}
|
|
15178
|
+
|
|
15179
|
+
|
|
15180
|
+
/***/ }),
|
|
15181
|
+
|
|
15182
|
+
/***/ "../../../node_modules/d3-shape/src/area.js":
|
|
15183
|
+
/*!**************************************************!*\
|
|
15184
|
+
!*** ../../../node_modules/d3-shape/src/area.js ***!
|
|
15185
|
+
\**************************************************/
|
|
15186
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15187
|
+
|
|
15188
|
+
"use strict";
|
|
15189
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15190
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15191
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
15192
|
+
/* harmony export */ });
|
|
15193
|
+
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/path.js");
|
|
15194
|
+
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js");
|
|
15195
|
+
/* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear.js */ "../../../node_modules/d3-shape/src/curve/linear.js");
|
|
15196
|
+
/* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./line.js */ "../../../node_modules/d3-shape/src/line.js");
|
|
15197
|
+
/* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./point.js */ "../../../node_modules/d3-shape/src/point.js");
|
|
15198
|
+
|
|
15199
|
+
|
|
15200
|
+
|
|
15201
|
+
|
|
15202
|
+
|
|
15203
|
+
|
|
15204
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
15205
|
+
var x0 = _point_js__WEBPACK_IMPORTED_MODULE_0__.x,
|
|
15206
|
+
x1 = null,
|
|
15207
|
+
y0 = (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(0),
|
|
15208
|
+
y1 = _point_js__WEBPACK_IMPORTED_MODULE_0__.y,
|
|
15209
|
+
defined = (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(true),
|
|
15210
|
+
context = null,
|
|
15211
|
+
curve = _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__.default,
|
|
15212
|
+
output = null;
|
|
15213
|
+
|
|
15214
|
+
function area(data) {
|
|
15215
|
+
var i,
|
|
15216
|
+
j,
|
|
15217
|
+
k,
|
|
15218
|
+
n = data.length,
|
|
15219
|
+
d,
|
|
15220
|
+
defined0 = false,
|
|
15221
|
+
buffer,
|
|
15222
|
+
x0z = new Array(n),
|
|
15223
|
+
y0z = new Array(n);
|
|
15224
|
+
|
|
15225
|
+
if (context == null) output = curve(buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_3__.default)());
|
|
15226
|
+
|
|
15227
|
+
for (i = 0; i <= n; ++i) {
|
|
15228
|
+
if (!(i < n && defined(d = data[i], i, data)) === defined0) {
|
|
15229
|
+
if (defined0 = !defined0) {
|
|
15230
|
+
j = i;
|
|
15231
|
+
output.areaStart();
|
|
15232
|
+
output.lineStart();
|
|
15233
|
+
} else {
|
|
15234
|
+
output.lineEnd();
|
|
15235
|
+
output.lineStart();
|
|
15236
|
+
for (k = i - 1; k >= j; --k) {
|
|
15237
|
+
output.point(x0z[k], y0z[k]);
|
|
15238
|
+
}
|
|
15239
|
+
output.lineEnd();
|
|
15240
|
+
output.areaEnd();
|
|
15241
|
+
}
|
|
15242
|
+
}
|
|
15243
|
+
if (defined0) {
|
|
15244
|
+
x0z[i] = +x0(d, i, data), y0z[i] = +y0(d, i, data);
|
|
15245
|
+
output.point(x1 ? +x1(d, i, data) : x0z[i], y1 ? +y1(d, i, data) : y0z[i]);
|
|
15246
|
+
}
|
|
15247
|
+
}
|
|
15248
|
+
|
|
15249
|
+
if (buffer) return output = null, buffer + "" || null;
|
|
15250
|
+
}
|
|
15251
|
+
|
|
15252
|
+
function arealine() {
|
|
15253
|
+
return (0,_line_js__WEBPACK_IMPORTED_MODULE_4__.default)().defined(defined).curve(curve).context(context);
|
|
15254
|
+
}
|
|
15255
|
+
|
|
15256
|
+
area.x = function(_) {
|
|
15257
|
+
return arguments.length ? (x0 = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), x1 = null, area) : x0;
|
|
15258
|
+
};
|
|
15259
|
+
|
|
15260
|
+
area.x0 = function(_) {
|
|
15261
|
+
return arguments.length ? (x0 = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), area) : x0;
|
|
15262
|
+
};
|
|
15263
|
+
|
|
15264
|
+
area.x1 = function(_) {
|
|
15265
|
+
return arguments.length ? (x1 = _ == null ? null : typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), area) : x1;
|
|
15266
|
+
};
|
|
15267
|
+
|
|
15268
|
+
area.y = function(_) {
|
|
15269
|
+
return arguments.length ? (y0 = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), y1 = null, area) : y0;
|
|
15270
|
+
};
|
|
15271
|
+
|
|
15272
|
+
area.y0 = function(_) {
|
|
15273
|
+
return arguments.length ? (y0 = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), area) : y0;
|
|
15274
|
+
};
|
|
15275
|
+
|
|
15276
|
+
area.y1 = function(_) {
|
|
15277
|
+
return arguments.length ? (y1 = _ == null ? null : typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), area) : y1;
|
|
15278
|
+
};
|
|
15279
|
+
|
|
15280
|
+
area.lineX0 =
|
|
15281
|
+
area.lineY0 = function() {
|
|
15282
|
+
return arealine().x(x0).y(y0);
|
|
15283
|
+
};
|
|
15284
|
+
|
|
15285
|
+
area.lineY1 = function() {
|
|
15286
|
+
return arealine().x(x0).y(y1);
|
|
15287
|
+
};
|
|
15288
|
+
|
|
15289
|
+
area.lineX1 = function() {
|
|
15290
|
+
return arealine().x(x1).y(y0);
|
|
15291
|
+
};
|
|
15292
|
+
|
|
15293
|
+
area.defined = function(_) {
|
|
15294
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(!!_), area) : defined;
|
|
15295
|
+
};
|
|
15296
|
+
|
|
15297
|
+
area.curve = function(_) {
|
|
15298
|
+
return arguments.length ? (curve = _, context != null && (output = curve(context)), area) : curve;
|
|
15299
|
+
};
|
|
15300
|
+
|
|
15301
|
+
area.context = function(_) {
|
|
15302
|
+
return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), area) : context;
|
|
15303
|
+
};
|
|
15304
|
+
|
|
15305
|
+
return area;
|
|
15306
|
+
}
|
|
15307
|
+
|
|
15308
|
+
|
|
15309
|
+
/***/ }),
|
|
15310
|
+
|
|
15311
|
+
/***/ "../../../node_modules/d3-shape/src/areaRadial.js":
|
|
15312
|
+
/*!********************************************************!*\
|
|
15313
|
+
!*** ../../../node_modules/d3-shape/src/areaRadial.js ***!
|
|
15314
|
+
\********************************************************/
|
|
15315
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15316
|
+
|
|
15317
|
+
"use strict";
|
|
15318
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15319
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15320
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
15321
|
+
/* harmony export */ });
|
|
15322
|
+
/* harmony import */ var _curve_radial_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./curve/radial.js */ "../../../node_modules/d3-shape/src/curve/radial.js");
|
|
15323
|
+
/* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./area.js */ "../../../node_modules/d3-shape/src/area.js");
|
|
15324
|
+
/* harmony import */ var _lineRadial_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lineRadial.js */ "../../../node_modules/d3-shape/src/lineRadial.js");
|
|
15325
|
+
|
|
15326
|
+
|
|
15327
|
+
|
|
15328
|
+
|
|
15329
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
15330
|
+
var a = (0,_area_js__WEBPACK_IMPORTED_MODULE_0__.default)().curve(_curve_radial_js__WEBPACK_IMPORTED_MODULE_1__.curveRadialLinear),
|
|
15331
|
+
c = a.curve,
|
|
15332
|
+
x0 = a.lineX0,
|
|
15333
|
+
x1 = a.lineX1,
|
|
15334
|
+
y0 = a.lineY0,
|
|
15335
|
+
y1 = a.lineY1;
|
|
15336
|
+
|
|
15337
|
+
a.angle = a.x, delete a.x;
|
|
15338
|
+
a.startAngle = a.x0, delete a.x0;
|
|
15339
|
+
a.endAngle = a.x1, delete a.x1;
|
|
15340
|
+
a.radius = a.y, delete a.y;
|
|
15341
|
+
a.innerRadius = a.y0, delete a.y0;
|
|
15342
|
+
a.outerRadius = a.y1, delete a.y1;
|
|
15343
|
+
a.lineStartAngle = function() { return (0,_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__.lineRadial)(x0()); }, delete a.lineX0;
|
|
15344
|
+
a.lineEndAngle = function() { return (0,_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__.lineRadial)(x1()); }, delete a.lineX1;
|
|
15345
|
+
a.lineInnerRadius = function() { return (0,_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__.lineRadial)(y0()); }, delete a.lineY0;
|
|
15346
|
+
a.lineOuterRadius = function() { return (0,_lineRadial_js__WEBPACK_IMPORTED_MODULE_2__.lineRadial)(y1()); }, delete a.lineY1;
|
|
15347
|
+
|
|
15348
|
+
a.curve = function(_) {
|
|
15349
|
+
return arguments.length ? c((0,_curve_radial_js__WEBPACK_IMPORTED_MODULE_1__.default)(_)) : c()._curve;
|
|
15350
|
+
};
|
|
15351
|
+
|
|
15352
|
+
return a;
|
|
15353
|
+
}
|
|
15354
|
+
|
|
15355
|
+
|
|
15356
|
+
/***/ }),
|
|
15357
|
+
|
|
15358
|
+
/***/ "../../../node_modules/d3-shape/src/array.js":
|
|
15359
|
+
/*!***************************************************!*\
|
|
15360
|
+
!*** ../../../node_modules/d3-shape/src/array.js ***!
|
|
15361
|
+
\***************************************************/
|
|
15362
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15363
|
+
|
|
15364
|
+
"use strict";
|
|
15365
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15366
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15367
|
+
/* harmony export */ "slice": () => (/* binding */ slice)
|
|
15368
|
+
/* harmony export */ });
|
|
15369
|
+
var slice = Array.prototype.slice;
|
|
15370
|
+
|
|
15371
|
+
|
|
15372
|
+
/***/ }),
|
|
15373
|
+
|
|
15374
|
+
/***/ "../../../node_modules/d3-shape/src/constant.js":
|
|
15375
|
+
/*!******************************************************!*\
|
|
15376
|
+
!*** ../../../node_modules/d3-shape/src/constant.js ***!
|
|
15377
|
+
\******************************************************/
|
|
15378
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15379
|
+
|
|
15380
|
+
"use strict";
|
|
15381
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15382
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15383
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
15384
|
+
/* harmony export */ });
|
|
15385
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x) {
|
|
15386
|
+
return function constant() {
|
|
15387
|
+
return x;
|
|
15388
|
+
};
|
|
15389
|
+
}
|
|
15390
|
+
|
|
15391
|
+
|
|
15392
|
+
/***/ }),
|
|
15393
|
+
|
|
15394
|
+
/***/ "../../../node_modules/d3-shape/src/curve/basis.js":
|
|
15395
|
+
/*!*********************************************************!*\
|
|
15396
|
+
!*** ../../../node_modules/d3-shape/src/curve/basis.js ***!
|
|
15397
|
+
\*********************************************************/
|
|
15398
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15399
|
+
|
|
15400
|
+
"use strict";
|
|
15401
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15402
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15403
|
+
/* harmony export */ "point": () => (/* binding */ point),
|
|
15404
|
+
/* harmony export */ "Basis": () => (/* binding */ Basis),
|
|
15405
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
15406
|
+
/* harmony export */ });
|
|
15407
|
+
function point(that, x, y) {
|
|
15408
|
+
that._context.bezierCurveTo(
|
|
15409
|
+
(2 * that._x0 + that._x1) / 3,
|
|
15410
|
+
(2 * that._y0 + that._y1) / 3,
|
|
15411
|
+
(that._x0 + 2 * that._x1) / 3,
|
|
15412
|
+
(that._y0 + 2 * that._y1) / 3,
|
|
15413
|
+
(that._x0 + 4 * that._x1 + x) / 6,
|
|
15414
|
+
(that._y0 + 4 * that._y1 + y) / 6
|
|
15415
|
+
);
|
|
15416
|
+
}
|
|
15417
|
+
|
|
15418
|
+
function Basis(context) {
|
|
15419
|
+
this._context = context;
|
|
15420
|
+
}
|
|
15421
|
+
|
|
15422
|
+
Basis.prototype = {
|
|
15423
|
+
areaStart: function() {
|
|
15424
|
+
this._line = 0;
|
|
15425
|
+
},
|
|
15426
|
+
areaEnd: function() {
|
|
15427
|
+
this._line = NaN;
|
|
15428
|
+
},
|
|
15429
|
+
lineStart: function() {
|
|
15430
|
+
this._x0 = this._x1 =
|
|
15431
|
+
this._y0 = this._y1 = NaN;
|
|
15432
|
+
this._point = 0;
|
|
15433
|
+
},
|
|
15434
|
+
lineEnd: function() {
|
|
15435
|
+
switch (this._point) {
|
|
15436
|
+
case 3: point(this, this._x1, this._y1); // proceed
|
|
15437
|
+
case 2: this._context.lineTo(this._x1, this._y1); break;
|
|
15438
|
+
}
|
|
15439
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
15440
|
+
this._line = 1 - this._line;
|
|
15441
|
+
},
|
|
15442
|
+
point: function(x, y) {
|
|
15443
|
+
x = +x, y = +y;
|
|
15444
|
+
switch (this._point) {
|
|
15445
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
15446
|
+
case 1: this._point = 2; break;
|
|
15447
|
+
case 2: this._point = 3; this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6); // proceed
|
|
15448
|
+
default: point(this, x, y); break;
|
|
15449
|
+
}
|
|
15450
|
+
this._x0 = this._x1, this._x1 = x;
|
|
15451
|
+
this._y0 = this._y1, this._y1 = y;
|
|
15452
|
+
}
|
|
15453
|
+
};
|
|
15454
|
+
|
|
15455
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
|
|
15456
|
+
return new Basis(context);
|
|
15457
|
+
}
|
|
15458
|
+
|
|
15459
|
+
|
|
15460
|
+
/***/ }),
|
|
15461
|
+
|
|
15462
|
+
/***/ "../../../node_modules/d3-shape/src/curve/basisClosed.js":
|
|
15463
|
+
/*!***************************************************************!*\
|
|
15464
|
+
!*** ../../../node_modules/d3-shape/src/curve/basisClosed.js ***!
|
|
15465
|
+
\***************************************************************/
|
|
15466
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15467
|
+
|
|
15468
|
+
"use strict";
|
|
15469
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15470
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15471
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
15472
|
+
/* harmony export */ });
|
|
15473
|
+
/* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "../../../node_modules/d3-shape/src/noop.js");
|
|
15474
|
+
/* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./basis.js */ "../../../node_modules/d3-shape/src/curve/basis.js");
|
|
15475
|
+
|
|
15476
|
+
|
|
15477
|
+
|
|
15478
|
+
function BasisClosed(context) {
|
|
15479
|
+
this._context = context;
|
|
15480
|
+
}
|
|
15481
|
+
|
|
15482
|
+
BasisClosed.prototype = {
|
|
15483
|
+
areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
15484
|
+
areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
15485
|
+
lineStart: function() {
|
|
15486
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 =
|
|
15487
|
+
this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN;
|
|
15488
|
+
this._point = 0;
|
|
15489
|
+
},
|
|
15490
|
+
lineEnd: function() {
|
|
15491
|
+
switch (this._point) {
|
|
15492
|
+
case 1: {
|
|
15493
|
+
this._context.moveTo(this._x2, this._y2);
|
|
15494
|
+
this._context.closePath();
|
|
15495
|
+
break;
|
|
15496
|
+
}
|
|
15497
|
+
case 2: {
|
|
15498
|
+
this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3);
|
|
15499
|
+
this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3);
|
|
15500
|
+
this._context.closePath();
|
|
15501
|
+
break;
|
|
15502
|
+
}
|
|
15503
|
+
case 3: {
|
|
15504
|
+
this.point(this._x2, this._y2);
|
|
15505
|
+
this.point(this._x3, this._y3);
|
|
15506
|
+
this.point(this._x4, this._y4);
|
|
15507
|
+
break;
|
|
15508
|
+
}
|
|
15509
|
+
}
|
|
15510
|
+
},
|
|
15511
|
+
point: function(x, y) {
|
|
15512
|
+
x = +x, y = +y;
|
|
15513
|
+
switch (this._point) {
|
|
15514
|
+
case 0: this._point = 1; this._x2 = x, this._y2 = y; break;
|
|
15515
|
+
case 1: this._point = 2; this._x3 = x, this._y3 = y; break;
|
|
15516
|
+
case 2: this._point = 3; this._x4 = x, this._y4 = y; this._context.moveTo((this._x0 + 4 * this._x1 + x) / 6, (this._y0 + 4 * this._y1 + y) / 6); break;
|
|
15517
|
+
default: (0,_basis_js__WEBPACK_IMPORTED_MODULE_1__.point)(this, x, y); break;
|
|
15518
|
+
}
|
|
15519
|
+
this._x0 = this._x1, this._x1 = x;
|
|
15520
|
+
this._y0 = this._y1, this._y1 = y;
|
|
15521
|
+
}
|
|
15522
|
+
};
|
|
15523
|
+
|
|
15524
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
|
|
15525
|
+
return new BasisClosed(context);
|
|
15526
|
+
}
|
|
15527
|
+
|
|
15528
|
+
|
|
15529
|
+
/***/ }),
|
|
15530
|
+
|
|
15531
|
+
/***/ "../../../node_modules/d3-shape/src/curve/basisOpen.js":
|
|
15532
|
+
/*!*************************************************************!*\
|
|
15533
|
+
!*** ../../../node_modules/d3-shape/src/curve/basisOpen.js ***!
|
|
15534
|
+
\*************************************************************/
|
|
15535
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15536
|
+
|
|
15537
|
+
"use strict";
|
|
15538
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15539
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15540
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
15541
|
+
/* harmony export */ });
|
|
15542
|
+
/* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "../../../node_modules/d3-shape/src/curve/basis.js");
|
|
15543
|
+
|
|
15544
|
+
|
|
15545
|
+
function BasisOpen(context) {
|
|
15546
|
+
this._context = context;
|
|
15547
|
+
}
|
|
15548
|
+
|
|
15549
|
+
BasisOpen.prototype = {
|
|
15550
|
+
areaStart: function() {
|
|
15551
|
+
this._line = 0;
|
|
15552
|
+
},
|
|
15553
|
+
areaEnd: function() {
|
|
15554
|
+
this._line = NaN;
|
|
15555
|
+
},
|
|
15556
|
+
lineStart: function() {
|
|
15557
|
+
this._x0 = this._x1 =
|
|
15558
|
+
this._y0 = this._y1 = NaN;
|
|
15559
|
+
this._point = 0;
|
|
15560
|
+
},
|
|
15561
|
+
lineEnd: function() {
|
|
15562
|
+
if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
|
|
15563
|
+
this._line = 1 - this._line;
|
|
15564
|
+
},
|
|
15565
|
+
point: function(x, y) {
|
|
15566
|
+
x = +x, y = +y;
|
|
15567
|
+
switch (this._point) {
|
|
15568
|
+
case 0: this._point = 1; break;
|
|
15569
|
+
case 1: this._point = 2; break;
|
|
15570
|
+
case 2: this._point = 3; var x0 = (this._x0 + 4 * this._x1 + x) / 6, y0 = (this._y0 + 4 * this._y1 + y) / 6; this._line ? this._context.lineTo(x0, y0) : this._context.moveTo(x0, y0); break;
|
|
15571
|
+
case 3: this._point = 4; // proceed
|
|
15572
|
+
default: (0,_basis_js__WEBPACK_IMPORTED_MODULE_0__.point)(this, x, y); break;
|
|
15573
|
+
}
|
|
15574
|
+
this._x0 = this._x1, this._x1 = x;
|
|
15575
|
+
this._y0 = this._y1, this._y1 = y;
|
|
15576
|
+
}
|
|
15577
|
+
};
|
|
15578
|
+
|
|
15579
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
|
|
15580
|
+
return new BasisOpen(context);
|
|
15581
|
+
}
|
|
15582
|
+
|
|
15583
|
+
|
|
15584
|
+
/***/ }),
|
|
15585
|
+
|
|
15586
|
+
/***/ "../../../node_modules/d3-shape/src/curve/bundle.js":
|
|
15587
|
+
/*!**********************************************************!*\
|
|
15588
|
+
!*** ../../../node_modules/d3-shape/src/curve/bundle.js ***!
|
|
15589
|
+
\**********************************************************/
|
|
15590
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15591
|
+
|
|
15592
|
+
"use strict";
|
|
15593
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15594
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15595
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15596
|
+
/* harmony export */ });
|
|
15597
|
+
/* harmony import */ var _basis_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./basis.js */ "../../../node_modules/d3-shape/src/curve/basis.js");
|
|
15598
|
+
|
|
15599
|
+
|
|
15600
|
+
function Bundle(context, beta) {
|
|
15601
|
+
this._basis = new _basis_js__WEBPACK_IMPORTED_MODULE_0__.Basis(context);
|
|
15602
|
+
this._beta = beta;
|
|
15603
|
+
}
|
|
15604
|
+
|
|
15605
|
+
Bundle.prototype = {
|
|
15606
|
+
lineStart: function() {
|
|
15607
|
+
this._x = [];
|
|
15608
|
+
this._y = [];
|
|
15609
|
+
this._basis.lineStart();
|
|
15610
|
+
},
|
|
15611
|
+
lineEnd: function() {
|
|
15612
|
+
var x = this._x,
|
|
15613
|
+
y = this._y,
|
|
15614
|
+
j = x.length - 1;
|
|
15615
|
+
|
|
15616
|
+
if (j > 0) {
|
|
15617
|
+
var x0 = x[0],
|
|
15618
|
+
y0 = y[0],
|
|
15619
|
+
dx = x[j] - x0,
|
|
15620
|
+
dy = y[j] - y0,
|
|
15621
|
+
i = -1,
|
|
15622
|
+
t;
|
|
15623
|
+
|
|
15624
|
+
while (++i <= j) {
|
|
15625
|
+
t = i / j;
|
|
15626
|
+
this._basis.point(
|
|
15627
|
+
this._beta * x[i] + (1 - this._beta) * (x0 + t * dx),
|
|
15628
|
+
this._beta * y[i] + (1 - this._beta) * (y0 + t * dy)
|
|
15629
|
+
);
|
|
15630
|
+
}
|
|
15631
|
+
}
|
|
15632
|
+
|
|
15633
|
+
this._x = this._y = null;
|
|
15634
|
+
this._basis.lineEnd();
|
|
15635
|
+
},
|
|
15636
|
+
point: function(x, y) {
|
|
15637
|
+
this._x.push(+x);
|
|
15638
|
+
this._y.push(+y);
|
|
15639
|
+
}
|
|
15640
|
+
};
|
|
15641
|
+
|
|
15642
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(beta) {
|
|
15643
|
+
|
|
15644
|
+
function bundle(context) {
|
|
15645
|
+
return beta === 1 ? new _basis_js__WEBPACK_IMPORTED_MODULE_0__.Basis(context) : new Bundle(context, beta);
|
|
15646
|
+
}
|
|
15647
|
+
|
|
15648
|
+
bundle.beta = function(beta) {
|
|
15649
|
+
return custom(+beta);
|
|
15650
|
+
};
|
|
15651
|
+
|
|
15652
|
+
return bundle;
|
|
15653
|
+
})(0.85));
|
|
15654
|
+
|
|
15655
|
+
|
|
15656
|
+
/***/ }),
|
|
15657
|
+
|
|
15658
|
+
/***/ "../../../node_modules/d3-shape/src/curve/cardinal.js":
|
|
15659
|
+
/*!************************************************************!*\
|
|
15660
|
+
!*** ../../../node_modules/d3-shape/src/curve/cardinal.js ***!
|
|
15661
|
+
\************************************************************/
|
|
15662
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15663
|
+
|
|
15664
|
+
"use strict";
|
|
15665
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15666
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15667
|
+
/* harmony export */ "point": () => (/* binding */ point),
|
|
15668
|
+
/* harmony export */ "Cardinal": () => (/* binding */ Cardinal),
|
|
15669
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15670
|
+
/* harmony export */ });
|
|
15671
|
+
function point(that, x, y) {
|
|
15672
|
+
that._context.bezierCurveTo(
|
|
15673
|
+
that._x1 + that._k * (that._x2 - that._x0),
|
|
15674
|
+
that._y1 + that._k * (that._y2 - that._y0),
|
|
15675
|
+
that._x2 + that._k * (that._x1 - x),
|
|
15676
|
+
that._y2 + that._k * (that._y1 - y),
|
|
15677
|
+
that._x2,
|
|
15678
|
+
that._y2
|
|
15679
|
+
);
|
|
15680
|
+
}
|
|
15681
|
+
|
|
15682
|
+
function Cardinal(context, tension) {
|
|
15683
|
+
this._context = context;
|
|
15684
|
+
this._k = (1 - tension) / 6;
|
|
15685
|
+
}
|
|
15686
|
+
|
|
15687
|
+
Cardinal.prototype = {
|
|
15688
|
+
areaStart: function() {
|
|
15689
|
+
this._line = 0;
|
|
15690
|
+
},
|
|
15691
|
+
areaEnd: function() {
|
|
15692
|
+
this._line = NaN;
|
|
15693
|
+
},
|
|
15694
|
+
lineStart: function() {
|
|
15695
|
+
this._x0 = this._x1 = this._x2 =
|
|
15696
|
+
this._y0 = this._y1 = this._y2 = NaN;
|
|
15697
|
+
this._point = 0;
|
|
15698
|
+
},
|
|
15699
|
+
lineEnd: function() {
|
|
15700
|
+
switch (this._point) {
|
|
15701
|
+
case 2: this._context.lineTo(this._x2, this._y2); break;
|
|
15702
|
+
case 3: point(this, this._x1, this._y1); break;
|
|
15703
|
+
}
|
|
15704
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
15705
|
+
this._line = 1 - this._line;
|
|
15706
|
+
},
|
|
15707
|
+
point: function(x, y) {
|
|
15708
|
+
x = +x, y = +y;
|
|
15709
|
+
switch (this._point) {
|
|
15710
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
15711
|
+
case 1: this._point = 2; this._x1 = x, this._y1 = y; break;
|
|
15712
|
+
case 2: this._point = 3; // proceed
|
|
15713
|
+
default: point(this, x, y); break;
|
|
15714
|
+
}
|
|
15715
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
15716
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
15717
|
+
}
|
|
15718
|
+
};
|
|
15719
|
+
|
|
15720
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(tension) {
|
|
15721
|
+
|
|
15722
|
+
function cardinal(context) {
|
|
15723
|
+
return new Cardinal(context, tension);
|
|
15724
|
+
}
|
|
15725
|
+
|
|
15726
|
+
cardinal.tension = function(tension) {
|
|
15727
|
+
return custom(+tension);
|
|
15728
|
+
};
|
|
15729
|
+
|
|
15730
|
+
return cardinal;
|
|
15731
|
+
})(0));
|
|
15732
|
+
|
|
15733
|
+
|
|
15734
|
+
/***/ }),
|
|
15735
|
+
|
|
15736
|
+
/***/ "../../../node_modules/d3-shape/src/curve/cardinalClosed.js":
|
|
15737
|
+
/*!******************************************************************!*\
|
|
15738
|
+
!*** ../../../node_modules/d3-shape/src/curve/cardinalClosed.js ***!
|
|
15739
|
+
\******************************************************************/
|
|
15740
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15741
|
+
|
|
15742
|
+
"use strict";
|
|
15743
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15744
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15745
|
+
/* harmony export */ "CardinalClosed": () => (/* binding */ CardinalClosed),
|
|
15746
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15747
|
+
/* harmony export */ });
|
|
15748
|
+
/* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "../../../node_modules/d3-shape/src/noop.js");
|
|
15749
|
+
/* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal.js */ "../../../node_modules/d3-shape/src/curve/cardinal.js");
|
|
15750
|
+
|
|
15751
|
+
|
|
15752
|
+
|
|
15753
|
+
function CardinalClosed(context, tension) {
|
|
15754
|
+
this._context = context;
|
|
15755
|
+
this._k = (1 - tension) / 6;
|
|
15756
|
+
}
|
|
15757
|
+
|
|
15758
|
+
CardinalClosed.prototype = {
|
|
15759
|
+
areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
15760
|
+
areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
15761
|
+
lineStart: function() {
|
|
15762
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
|
|
15763
|
+
this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
|
|
15764
|
+
this._point = 0;
|
|
15765
|
+
},
|
|
15766
|
+
lineEnd: function() {
|
|
15767
|
+
switch (this._point) {
|
|
15768
|
+
case 1: {
|
|
15769
|
+
this._context.moveTo(this._x3, this._y3);
|
|
15770
|
+
this._context.closePath();
|
|
15771
|
+
break;
|
|
15772
|
+
}
|
|
15773
|
+
case 2: {
|
|
15774
|
+
this._context.lineTo(this._x3, this._y3);
|
|
15775
|
+
this._context.closePath();
|
|
15776
|
+
break;
|
|
15777
|
+
}
|
|
15778
|
+
case 3: {
|
|
15779
|
+
this.point(this._x3, this._y3);
|
|
15780
|
+
this.point(this._x4, this._y4);
|
|
15781
|
+
this.point(this._x5, this._y5);
|
|
15782
|
+
break;
|
|
15783
|
+
}
|
|
15784
|
+
}
|
|
15785
|
+
},
|
|
15786
|
+
point: function(x, y) {
|
|
15787
|
+
x = +x, y = +y;
|
|
15788
|
+
switch (this._point) {
|
|
15789
|
+
case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
|
|
15790
|
+
case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
|
|
15791
|
+
case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
|
|
15792
|
+
default: (0,_cardinal_js__WEBPACK_IMPORTED_MODULE_1__.point)(this, x, y); break;
|
|
15793
|
+
}
|
|
15794
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
15795
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
15796
|
+
}
|
|
15797
|
+
};
|
|
15798
|
+
|
|
15799
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(tension) {
|
|
15800
|
+
|
|
15801
|
+
function cardinal(context) {
|
|
15802
|
+
return new CardinalClosed(context, tension);
|
|
15803
|
+
}
|
|
15804
|
+
|
|
15805
|
+
cardinal.tension = function(tension) {
|
|
15806
|
+
return custom(+tension);
|
|
15807
|
+
};
|
|
15808
|
+
|
|
15809
|
+
return cardinal;
|
|
15810
|
+
})(0));
|
|
15811
|
+
|
|
15812
|
+
|
|
15813
|
+
/***/ }),
|
|
15814
|
+
|
|
15815
|
+
/***/ "../../../node_modules/d3-shape/src/curve/cardinalOpen.js":
|
|
15816
|
+
/*!****************************************************************!*\
|
|
15817
|
+
!*** ../../../node_modules/d3-shape/src/curve/cardinalOpen.js ***!
|
|
15818
|
+
\****************************************************************/
|
|
15819
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15820
|
+
|
|
15821
|
+
"use strict";
|
|
15822
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15823
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15824
|
+
/* harmony export */ "CardinalOpen": () => (/* binding */ CardinalOpen),
|
|
15825
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15826
|
+
/* harmony export */ });
|
|
15827
|
+
/* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cardinal.js */ "../../../node_modules/d3-shape/src/curve/cardinal.js");
|
|
15828
|
+
|
|
15829
|
+
|
|
15830
|
+
function CardinalOpen(context, tension) {
|
|
15831
|
+
this._context = context;
|
|
15832
|
+
this._k = (1 - tension) / 6;
|
|
15833
|
+
}
|
|
15834
|
+
|
|
15835
|
+
CardinalOpen.prototype = {
|
|
15836
|
+
areaStart: function() {
|
|
15837
|
+
this._line = 0;
|
|
15838
|
+
},
|
|
15839
|
+
areaEnd: function() {
|
|
15840
|
+
this._line = NaN;
|
|
15841
|
+
},
|
|
15842
|
+
lineStart: function() {
|
|
15843
|
+
this._x0 = this._x1 = this._x2 =
|
|
15844
|
+
this._y0 = this._y1 = this._y2 = NaN;
|
|
15845
|
+
this._point = 0;
|
|
15846
|
+
},
|
|
15847
|
+
lineEnd: function() {
|
|
15848
|
+
if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
|
|
15849
|
+
this._line = 1 - this._line;
|
|
15850
|
+
},
|
|
15851
|
+
point: function(x, y) {
|
|
15852
|
+
x = +x, y = +y;
|
|
15853
|
+
switch (this._point) {
|
|
15854
|
+
case 0: this._point = 1; break;
|
|
15855
|
+
case 1: this._point = 2; break;
|
|
15856
|
+
case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
|
|
15857
|
+
case 3: this._point = 4; // proceed
|
|
15858
|
+
default: (0,_cardinal_js__WEBPACK_IMPORTED_MODULE_0__.point)(this, x, y); break;
|
|
15859
|
+
}
|
|
15860
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
15861
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
15862
|
+
}
|
|
15863
|
+
};
|
|
15864
|
+
|
|
15865
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(tension) {
|
|
15866
|
+
|
|
15867
|
+
function cardinal(context) {
|
|
15868
|
+
return new CardinalOpen(context, tension);
|
|
15869
|
+
}
|
|
15870
|
+
|
|
15871
|
+
cardinal.tension = function(tension) {
|
|
15872
|
+
return custom(+tension);
|
|
15873
|
+
};
|
|
15874
|
+
|
|
15875
|
+
return cardinal;
|
|
15876
|
+
})(0));
|
|
15877
|
+
|
|
15878
|
+
|
|
15879
|
+
/***/ }),
|
|
15880
|
+
|
|
15881
|
+
/***/ "../../../node_modules/d3-shape/src/curve/catmullRom.js":
|
|
15882
|
+
/*!**************************************************************!*\
|
|
15883
|
+
!*** ../../../node_modules/d3-shape/src/curve/catmullRom.js ***!
|
|
15884
|
+
\**************************************************************/
|
|
15885
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15886
|
+
|
|
15887
|
+
"use strict";
|
|
15888
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15889
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15890
|
+
/* harmony export */ "point": () => (/* binding */ point),
|
|
15891
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15892
|
+
/* harmony export */ });
|
|
15893
|
+
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "../../../node_modules/d3-shape/src/math.js");
|
|
15894
|
+
/* harmony import */ var _cardinal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinal.js */ "../../../node_modules/d3-shape/src/curve/cardinal.js");
|
|
15895
|
+
|
|
15896
|
+
|
|
15897
|
+
|
|
15898
|
+
function point(that, x, y) {
|
|
15899
|
+
var x1 = that._x1,
|
|
15900
|
+
y1 = that._y1,
|
|
15901
|
+
x2 = that._x2,
|
|
15902
|
+
y2 = that._y2;
|
|
15903
|
+
|
|
15904
|
+
if (that._l01_a > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
|
|
15905
|
+
var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a,
|
|
15906
|
+
n = 3 * that._l01_a * (that._l01_a + that._l12_a);
|
|
15907
|
+
x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n;
|
|
15908
|
+
y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n;
|
|
15909
|
+
}
|
|
15910
|
+
|
|
15911
|
+
if (that._l23_a > _math_js__WEBPACK_IMPORTED_MODULE_0__.epsilon) {
|
|
15912
|
+
var b = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a,
|
|
15913
|
+
m = 3 * that._l23_a * (that._l23_a + that._l12_a);
|
|
15914
|
+
x2 = (x2 * b + that._x1 * that._l23_2a - x * that._l12_2a) / m;
|
|
15915
|
+
y2 = (y2 * b + that._y1 * that._l23_2a - y * that._l12_2a) / m;
|
|
15916
|
+
}
|
|
15917
|
+
|
|
15918
|
+
that._context.bezierCurveTo(x1, y1, x2, y2, that._x2, that._y2);
|
|
15919
|
+
}
|
|
15920
|
+
|
|
15921
|
+
function CatmullRom(context, alpha) {
|
|
15922
|
+
this._context = context;
|
|
15923
|
+
this._alpha = alpha;
|
|
15924
|
+
}
|
|
15925
|
+
|
|
15926
|
+
CatmullRom.prototype = {
|
|
15927
|
+
areaStart: function() {
|
|
15928
|
+
this._line = 0;
|
|
15929
|
+
},
|
|
15930
|
+
areaEnd: function() {
|
|
15931
|
+
this._line = NaN;
|
|
15932
|
+
},
|
|
15933
|
+
lineStart: function() {
|
|
15934
|
+
this._x0 = this._x1 = this._x2 =
|
|
15935
|
+
this._y0 = this._y1 = this._y2 = NaN;
|
|
15936
|
+
this._l01_a = this._l12_a = this._l23_a =
|
|
15937
|
+
this._l01_2a = this._l12_2a = this._l23_2a =
|
|
15938
|
+
this._point = 0;
|
|
15939
|
+
},
|
|
15940
|
+
lineEnd: function() {
|
|
15941
|
+
switch (this._point) {
|
|
15942
|
+
case 2: this._context.lineTo(this._x2, this._y2); break;
|
|
15943
|
+
case 3: this.point(this._x2, this._y2); break;
|
|
15944
|
+
}
|
|
15945
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
15946
|
+
this._line = 1 - this._line;
|
|
15947
|
+
},
|
|
15948
|
+
point: function(x, y) {
|
|
15949
|
+
x = +x, y = +y;
|
|
15950
|
+
|
|
15951
|
+
if (this._point) {
|
|
15952
|
+
var x23 = this._x2 - x,
|
|
15953
|
+
y23 = this._y2 - y;
|
|
15954
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
|
|
15955
|
+
}
|
|
15956
|
+
|
|
15957
|
+
switch (this._point) {
|
|
15958
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
15959
|
+
case 1: this._point = 2; break;
|
|
15960
|
+
case 2: this._point = 3; // proceed
|
|
15961
|
+
default: point(this, x, y); break;
|
|
15962
|
+
}
|
|
15963
|
+
|
|
15964
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
15965
|
+
this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
|
|
15966
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
15967
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
15968
|
+
}
|
|
15969
|
+
};
|
|
15970
|
+
|
|
15971
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(alpha) {
|
|
15972
|
+
|
|
15973
|
+
function catmullRom(context) {
|
|
15974
|
+
return alpha ? new CatmullRom(context, alpha) : new _cardinal_js__WEBPACK_IMPORTED_MODULE_1__.Cardinal(context, 0);
|
|
15975
|
+
}
|
|
15976
|
+
|
|
15977
|
+
catmullRom.alpha = function(alpha) {
|
|
15978
|
+
return custom(+alpha);
|
|
15979
|
+
};
|
|
15980
|
+
|
|
15981
|
+
return catmullRom;
|
|
15982
|
+
})(0.5));
|
|
15983
|
+
|
|
15984
|
+
|
|
15985
|
+
/***/ }),
|
|
15986
|
+
|
|
15987
|
+
/***/ "../../../node_modules/d3-shape/src/curve/catmullRomClosed.js":
|
|
15988
|
+
/*!********************************************************************!*\
|
|
15989
|
+
!*** ../../../node_modules/d3-shape/src/curve/catmullRomClosed.js ***!
|
|
15990
|
+
\********************************************************************/
|
|
15991
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
15992
|
+
|
|
15993
|
+
"use strict";
|
|
15994
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15995
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15996
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15997
|
+
/* harmony export */ });
|
|
15998
|
+
/* harmony import */ var _cardinalClosed_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./cardinalClosed.js */ "../../../node_modules/d3-shape/src/curve/cardinalClosed.js");
|
|
15999
|
+
/* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "../../../node_modules/d3-shape/src/noop.js");
|
|
16000
|
+
/* harmony import */ var _catmullRom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./catmullRom.js */ "../../../node_modules/d3-shape/src/curve/catmullRom.js");
|
|
16001
|
+
|
|
16002
|
+
|
|
16003
|
+
|
|
16004
|
+
|
|
16005
|
+
function CatmullRomClosed(context, alpha) {
|
|
16006
|
+
this._context = context;
|
|
16007
|
+
this._alpha = alpha;
|
|
16008
|
+
}
|
|
16009
|
+
|
|
16010
|
+
CatmullRomClosed.prototype = {
|
|
16011
|
+
areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
16012
|
+
areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
16013
|
+
lineStart: function() {
|
|
16014
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 =
|
|
16015
|
+
this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN;
|
|
16016
|
+
this._l01_a = this._l12_a = this._l23_a =
|
|
16017
|
+
this._l01_2a = this._l12_2a = this._l23_2a =
|
|
16018
|
+
this._point = 0;
|
|
16019
|
+
},
|
|
16020
|
+
lineEnd: function() {
|
|
16021
|
+
switch (this._point) {
|
|
16022
|
+
case 1: {
|
|
16023
|
+
this._context.moveTo(this._x3, this._y3);
|
|
16024
|
+
this._context.closePath();
|
|
16025
|
+
break;
|
|
16026
|
+
}
|
|
16027
|
+
case 2: {
|
|
16028
|
+
this._context.lineTo(this._x3, this._y3);
|
|
16029
|
+
this._context.closePath();
|
|
16030
|
+
break;
|
|
16031
|
+
}
|
|
16032
|
+
case 3: {
|
|
16033
|
+
this.point(this._x3, this._y3);
|
|
16034
|
+
this.point(this._x4, this._y4);
|
|
16035
|
+
this.point(this._x5, this._y5);
|
|
16036
|
+
break;
|
|
16037
|
+
}
|
|
16038
|
+
}
|
|
16039
|
+
},
|
|
16040
|
+
point: function(x, y) {
|
|
16041
|
+
x = +x, y = +y;
|
|
16042
|
+
|
|
16043
|
+
if (this._point) {
|
|
16044
|
+
var x23 = this._x2 - x,
|
|
16045
|
+
y23 = this._y2 - y;
|
|
16046
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
|
|
16047
|
+
}
|
|
16048
|
+
|
|
16049
|
+
switch (this._point) {
|
|
16050
|
+
case 0: this._point = 1; this._x3 = x, this._y3 = y; break;
|
|
16051
|
+
case 1: this._point = 2; this._context.moveTo(this._x4 = x, this._y4 = y); break;
|
|
16052
|
+
case 2: this._point = 3; this._x5 = x, this._y5 = y; break;
|
|
16053
|
+
default: (0,_catmullRom_js__WEBPACK_IMPORTED_MODULE_1__.point)(this, x, y); break;
|
|
16054
|
+
}
|
|
16055
|
+
|
|
16056
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
16057
|
+
this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
|
|
16058
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
16059
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
16060
|
+
}
|
|
16061
|
+
};
|
|
16062
|
+
|
|
16063
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(alpha) {
|
|
16064
|
+
|
|
16065
|
+
function catmullRom(context) {
|
|
16066
|
+
return alpha ? new CatmullRomClosed(context, alpha) : new _cardinalClosed_js__WEBPACK_IMPORTED_MODULE_2__.CardinalClosed(context, 0);
|
|
16067
|
+
}
|
|
16068
|
+
|
|
16069
|
+
catmullRom.alpha = function(alpha) {
|
|
16070
|
+
return custom(+alpha);
|
|
16071
|
+
};
|
|
16072
|
+
|
|
16073
|
+
return catmullRom;
|
|
16074
|
+
})(0.5));
|
|
16075
|
+
|
|
16076
|
+
|
|
16077
|
+
/***/ }),
|
|
16078
|
+
|
|
16079
|
+
/***/ "../../../node_modules/d3-shape/src/curve/catmullRomOpen.js":
|
|
16080
|
+
/*!******************************************************************!*\
|
|
16081
|
+
!*** ../../../node_modules/d3-shape/src/curve/catmullRomOpen.js ***!
|
|
16082
|
+
\******************************************************************/
|
|
16083
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16084
|
+
|
|
16085
|
+
"use strict";
|
|
16086
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16087
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16088
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
16089
|
+
/* harmony export */ });
|
|
16090
|
+
/* harmony import */ var _cardinalOpen_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./cardinalOpen.js */ "../../../node_modules/d3-shape/src/curve/cardinalOpen.js");
|
|
16091
|
+
/* harmony import */ var _catmullRom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./catmullRom.js */ "../../../node_modules/d3-shape/src/curve/catmullRom.js");
|
|
16092
|
+
|
|
16093
|
+
|
|
16094
|
+
|
|
16095
|
+
function CatmullRomOpen(context, alpha) {
|
|
16096
|
+
this._context = context;
|
|
16097
|
+
this._alpha = alpha;
|
|
16098
|
+
}
|
|
16099
|
+
|
|
16100
|
+
CatmullRomOpen.prototype = {
|
|
16101
|
+
areaStart: function() {
|
|
16102
|
+
this._line = 0;
|
|
16103
|
+
},
|
|
16104
|
+
areaEnd: function() {
|
|
16105
|
+
this._line = NaN;
|
|
16106
|
+
},
|
|
16107
|
+
lineStart: function() {
|
|
16108
|
+
this._x0 = this._x1 = this._x2 =
|
|
16109
|
+
this._y0 = this._y1 = this._y2 = NaN;
|
|
16110
|
+
this._l01_a = this._l12_a = this._l23_a =
|
|
16111
|
+
this._l01_2a = this._l12_2a = this._l23_2a =
|
|
16112
|
+
this._point = 0;
|
|
16113
|
+
},
|
|
16114
|
+
lineEnd: function() {
|
|
16115
|
+
if (this._line || (this._line !== 0 && this._point === 3)) this._context.closePath();
|
|
16116
|
+
this._line = 1 - this._line;
|
|
16117
|
+
},
|
|
16118
|
+
point: function(x, y) {
|
|
16119
|
+
x = +x, y = +y;
|
|
16120
|
+
|
|
16121
|
+
if (this._point) {
|
|
16122
|
+
var x23 = this._x2 - x,
|
|
16123
|
+
y23 = this._y2 - y;
|
|
16124
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
|
|
16125
|
+
}
|
|
16126
|
+
|
|
16127
|
+
switch (this._point) {
|
|
16128
|
+
case 0: this._point = 1; break;
|
|
16129
|
+
case 1: this._point = 2; break;
|
|
16130
|
+
case 2: this._point = 3; this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2); break;
|
|
16131
|
+
case 3: this._point = 4; // proceed
|
|
16132
|
+
default: (0,_catmullRom_js__WEBPACK_IMPORTED_MODULE_0__.point)(this, x, y); break;
|
|
16133
|
+
}
|
|
16134
|
+
|
|
16135
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a;
|
|
16136
|
+
this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a;
|
|
16137
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = x;
|
|
16138
|
+
this._y0 = this._y1, this._y1 = this._y2, this._y2 = y;
|
|
16139
|
+
}
|
|
16140
|
+
};
|
|
16141
|
+
|
|
16142
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((function custom(alpha) {
|
|
16143
|
+
|
|
16144
|
+
function catmullRom(context) {
|
|
16145
|
+
return alpha ? new CatmullRomOpen(context, alpha) : new _cardinalOpen_js__WEBPACK_IMPORTED_MODULE_1__.CardinalOpen(context, 0);
|
|
16146
|
+
}
|
|
16147
|
+
|
|
16148
|
+
catmullRom.alpha = function(alpha) {
|
|
16149
|
+
return custom(+alpha);
|
|
16150
|
+
};
|
|
16151
|
+
|
|
16152
|
+
return catmullRom;
|
|
16153
|
+
})(0.5));
|
|
16154
|
+
|
|
16155
|
+
|
|
16156
|
+
/***/ }),
|
|
16157
|
+
|
|
16158
|
+
/***/ "../../../node_modules/d3-shape/src/curve/linear.js":
|
|
16159
|
+
/*!**********************************************************!*\
|
|
16160
|
+
!*** ../../../node_modules/d3-shape/src/curve/linear.js ***!
|
|
16161
|
+
\**********************************************************/
|
|
16162
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16163
|
+
|
|
16164
|
+
"use strict";
|
|
16165
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16166
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16167
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
16168
|
+
/* harmony export */ });
|
|
16169
|
+
function Linear(context) {
|
|
16170
|
+
this._context = context;
|
|
16171
|
+
}
|
|
16172
|
+
|
|
16173
|
+
Linear.prototype = {
|
|
16174
|
+
areaStart: function() {
|
|
16175
|
+
this._line = 0;
|
|
16176
|
+
},
|
|
16177
|
+
areaEnd: function() {
|
|
16178
|
+
this._line = NaN;
|
|
16179
|
+
},
|
|
16180
|
+
lineStart: function() {
|
|
16181
|
+
this._point = 0;
|
|
16182
|
+
},
|
|
16183
|
+
lineEnd: function() {
|
|
16184
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
16185
|
+
this._line = 1 - this._line;
|
|
16186
|
+
},
|
|
16187
|
+
point: function(x, y) {
|
|
16188
|
+
x = +x, y = +y;
|
|
16189
|
+
switch (this._point) {
|
|
16190
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
16191
|
+
case 1: this._point = 2; // proceed
|
|
16192
|
+
default: this._context.lineTo(x, y); break;
|
|
16193
|
+
}
|
|
16194
|
+
}
|
|
16195
|
+
};
|
|
16196
|
+
|
|
16197
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
|
|
16198
|
+
return new Linear(context);
|
|
16199
|
+
}
|
|
16200
|
+
|
|
16201
|
+
|
|
16202
|
+
/***/ }),
|
|
16203
|
+
|
|
16204
|
+
/***/ "../../../node_modules/d3-shape/src/curve/linearClosed.js":
|
|
16205
|
+
/*!****************************************************************!*\
|
|
16206
|
+
!*** ../../../node_modules/d3-shape/src/curve/linearClosed.js ***!
|
|
16207
|
+
\****************************************************************/
|
|
16208
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16209
|
+
|
|
16210
|
+
"use strict";
|
|
16211
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16212
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16213
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
16214
|
+
/* harmony export */ });
|
|
16215
|
+
/* harmony import */ var _noop_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../noop.js */ "../../../node_modules/d3-shape/src/noop.js");
|
|
16216
|
+
|
|
16217
|
+
|
|
16218
|
+
function LinearClosed(context) {
|
|
16219
|
+
this._context = context;
|
|
16220
|
+
}
|
|
16221
|
+
|
|
16222
|
+
LinearClosed.prototype = {
|
|
16223
|
+
areaStart: _noop_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
16224
|
+
areaEnd: _noop_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
16225
|
+
lineStart: function() {
|
|
16226
|
+
this._point = 0;
|
|
16227
|
+
},
|
|
16228
|
+
lineEnd: function() {
|
|
16229
|
+
if (this._point) this._context.closePath();
|
|
16230
|
+
},
|
|
16231
|
+
point: function(x, y) {
|
|
16232
|
+
x = +x, y = +y;
|
|
16233
|
+
if (this._point) this._context.lineTo(x, y);
|
|
16234
|
+
else this._point = 1, this._context.moveTo(x, y);
|
|
16235
|
+
}
|
|
16236
|
+
};
|
|
16237
|
+
|
|
16238
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
|
|
16239
|
+
return new LinearClosed(context);
|
|
16240
|
+
}
|
|
16241
|
+
|
|
16242
|
+
|
|
16243
|
+
/***/ }),
|
|
16244
|
+
|
|
16245
|
+
/***/ "../../../node_modules/d3-shape/src/curve/monotone.js":
|
|
16246
|
+
/*!************************************************************!*\
|
|
16247
|
+
!*** ../../../node_modules/d3-shape/src/curve/monotone.js ***!
|
|
16248
|
+
\************************************************************/
|
|
16249
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16250
|
+
|
|
16251
|
+
"use strict";
|
|
16252
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16253
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16254
|
+
/* harmony export */ "monotoneX": () => (/* binding */ monotoneX),
|
|
16255
|
+
/* harmony export */ "monotoneY": () => (/* binding */ monotoneY)
|
|
16256
|
+
/* harmony export */ });
|
|
16257
|
+
function sign(x) {
|
|
16258
|
+
return x < 0 ? -1 : 1;
|
|
16259
|
+
}
|
|
16260
|
+
|
|
16261
|
+
// Calculate the slopes of the tangents (Hermite-type interpolation) based on
|
|
16262
|
+
// the following paper: Steffen, M. 1990. A Simple Method for Monotonic
|
|
16263
|
+
// Interpolation in One Dimension. Astronomy and Astrophysics, Vol. 239, NO.
|
|
16264
|
+
// NOV(II), P. 443, 1990.
|
|
16265
|
+
function slope3(that, x2, y2) {
|
|
16266
|
+
var h0 = that._x1 - that._x0,
|
|
16267
|
+
h1 = x2 - that._x1,
|
|
16268
|
+
s0 = (that._y1 - that._y0) / (h0 || h1 < 0 && -0),
|
|
16269
|
+
s1 = (y2 - that._y1) / (h1 || h0 < 0 && -0),
|
|
16270
|
+
p = (s0 * h1 + s1 * h0) / (h0 + h1);
|
|
16271
|
+
return (sign(s0) + sign(s1)) * Math.min(Math.abs(s0), Math.abs(s1), 0.5 * Math.abs(p)) || 0;
|
|
16272
|
+
}
|
|
16273
|
+
|
|
16274
|
+
// Calculate a one-sided slope.
|
|
16275
|
+
function slope2(that, t) {
|
|
16276
|
+
var h = that._x1 - that._x0;
|
|
16277
|
+
return h ? (3 * (that._y1 - that._y0) / h - t) / 2 : t;
|
|
16278
|
+
}
|
|
16279
|
+
|
|
16280
|
+
// According to https://en.wikipedia.org/wiki/Cubic_Hermite_spline#Representations
|
|
16281
|
+
// "you can express cubic Hermite interpolation in terms of cubic Bézier curves
|
|
16282
|
+
// with respect to the four values p0, p0 + m0 / 3, p1 - m1 / 3, p1".
|
|
16283
|
+
function point(that, t0, t1) {
|
|
16284
|
+
var x0 = that._x0,
|
|
16285
|
+
y0 = that._y0,
|
|
16286
|
+
x1 = that._x1,
|
|
16287
|
+
y1 = that._y1,
|
|
16288
|
+
dx = (x1 - x0) / 3;
|
|
16289
|
+
that._context.bezierCurveTo(x0 + dx, y0 + dx * t0, x1 - dx, y1 - dx * t1, x1, y1);
|
|
16290
|
+
}
|
|
16291
|
+
|
|
16292
|
+
function MonotoneX(context) {
|
|
16293
|
+
this._context = context;
|
|
16294
|
+
}
|
|
16295
|
+
|
|
16296
|
+
MonotoneX.prototype = {
|
|
16297
|
+
areaStart: function() {
|
|
16298
|
+
this._line = 0;
|
|
16299
|
+
},
|
|
16300
|
+
areaEnd: function() {
|
|
16301
|
+
this._line = NaN;
|
|
16302
|
+
},
|
|
16303
|
+
lineStart: function() {
|
|
16304
|
+
this._x0 = this._x1 =
|
|
16305
|
+
this._y0 = this._y1 =
|
|
16306
|
+
this._t0 = NaN;
|
|
16307
|
+
this._point = 0;
|
|
16308
|
+
},
|
|
16309
|
+
lineEnd: function() {
|
|
16310
|
+
switch (this._point) {
|
|
16311
|
+
case 2: this._context.lineTo(this._x1, this._y1); break;
|
|
16312
|
+
case 3: point(this, this._t0, slope2(this, this._t0)); break;
|
|
16313
|
+
}
|
|
16314
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
16315
|
+
this._line = 1 - this._line;
|
|
16316
|
+
},
|
|
16317
|
+
point: function(x, y) {
|
|
16318
|
+
var t1 = NaN;
|
|
16319
|
+
|
|
16320
|
+
x = +x, y = +y;
|
|
16321
|
+
if (x === this._x1 && y === this._y1) return; // Ignore coincident points.
|
|
16322
|
+
switch (this._point) {
|
|
16323
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
16324
|
+
case 1: this._point = 2; break;
|
|
16325
|
+
case 2: this._point = 3; point(this, slope2(this, t1 = slope3(this, x, y)), t1); break;
|
|
16326
|
+
default: point(this, this._t0, t1 = slope3(this, x, y)); break;
|
|
16327
|
+
}
|
|
16328
|
+
|
|
16329
|
+
this._x0 = this._x1, this._x1 = x;
|
|
16330
|
+
this._y0 = this._y1, this._y1 = y;
|
|
16331
|
+
this._t0 = t1;
|
|
16332
|
+
}
|
|
16333
|
+
}
|
|
16334
|
+
|
|
16335
|
+
function MonotoneY(context) {
|
|
16336
|
+
this._context = new ReflectContext(context);
|
|
16337
|
+
}
|
|
16338
|
+
|
|
16339
|
+
(MonotoneY.prototype = Object.create(MonotoneX.prototype)).point = function(x, y) {
|
|
16340
|
+
MonotoneX.prototype.point.call(this, y, x);
|
|
16341
|
+
};
|
|
16342
|
+
|
|
16343
|
+
function ReflectContext(context) {
|
|
16344
|
+
this._context = context;
|
|
16345
|
+
}
|
|
16346
|
+
|
|
16347
|
+
ReflectContext.prototype = {
|
|
16348
|
+
moveTo: function(x, y) { this._context.moveTo(y, x); },
|
|
16349
|
+
closePath: function() { this._context.closePath(); },
|
|
16350
|
+
lineTo: function(x, y) { this._context.lineTo(y, x); },
|
|
16351
|
+
bezierCurveTo: function(x1, y1, x2, y2, x, y) { this._context.bezierCurveTo(y1, x1, y2, x2, y, x); }
|
|
16352
|
+
};
|
|
16353
|
+
|
|
16354
|
+
function monotoneX(context) {
|
|
16355
|
+
return new MonotoneX(context);
|
|
16356
|
+
}
|
|
16357
|
+
|
|
16358
|
+
function monotoneY(context) {
|
|
16359
|
+
return new MonotoneY(context);
|
|
16360
|
+
}
|
|
16361
|
+
|
|
16362
|
+
|
|
16363
|
+
/***/ }),
|
|
16364
|
+
|
|
16365
|
+
/***/ "../../../node_modules/d3-shape/src/curve/natural.js":
|
|
16366
|
+
/*!***********************************************************!*\
|
|
16367
|
+
!*** ../../../node_modules/d3-shape/src/curve/natural.js ***!
|
|
16368
|
+
\***********************************************************/
|
|
16369
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16370
|
+
|
|
16371
|
+
"use strict";
|
|
16372
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16373
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16374
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
16375
|
+
/* harmony export */ });
|
|
16376
|
+
function Natural(context) {
|
|
16377
|
+
this._context = context;
|
|
16378
|
+
}
|
|
16379
|
+
|
|
16380
|
+
Natural.prototype = {
|
|
16381
|
+
areaStart: function() {
|
|
16382
|
+
this._line = 0;
|
|
16383
|
+
},
|
|
16384
|
+
areaEnd: function() {
|
|
16385
|
+
this._line = NaN;
|
|
16386
|
+
},
|
|
16387
|
+
lineStart: function() {
|
|
16388
|
+
this._x = [];
|
|
16389
|
+
this._y = [];
|
|
16390
|
+
},
|
|
16391
|
+
lineEnd: function() {
|
|
16392
|
+
var x = this._x,
|
|
16393
|
+
y = this._y,
|
|
16394
|
+
n = x.length;
|
|
16395
|
+
|
|
16396
|
+
if (n) {
|
|
16397
|
+
this._line ? this._context.lineTo(x[0], y[0]) : this._context.moveTo(x[0], y[0]);
|
|
16398
|
+
if (n === 2) {
|
|
16399
|
+
this._context.lineTo(x[1], y[1]);
|
|
16400
|
+
} else {
|
|
16401
|
+
var px = controlPoints(x),
|
|
16402
|
+
py = controlPoints(y);
|
|
16403
|
+
for (var i0 = 0, i1 = 1; i1 < n; ++i0, ++i1) {
|
|
16404
|
+
this._context.bezierCurveTo(px[0][i0], py[0][i0], px[1][i0], py[1][i0], x[i1], y[i1]);
|
|
16405
|
+
}
|
|
16406
|
+
}
|
|
16407
|
+
}
|
|
16408
|
+
|
|
16409
|
+
if (this._line || (this._line !== 0 && n === 1)) this._context.closePath();
|
|
16410
|
+
this._line = 1 - this._line;
|
|
16411
|
+
this._x = this._y = null;
|
|
16412
|
+
},
|
|
16413
|
+
point: function(x, y) {
|
|
16414
|
+
this._x.push(+x);
|
|
16415
|
+
this._y.push(+y);
|
|
16416
|
+
}
|
|
16417
|
+
};
|
|
16418
|
+
|
|
16419
|
+
// See https://www.particleincell.com/2012/bezier-splines/ for derivation.
|
|
16420
|
+
function controlPoints(x) {
|
|
16421
|
+
var i,
|
|
16422
|
+
n = x.length - 1,
|
|
16423
|
+
m,
|
|
16424
|
+
a = new Array(n),
|
|
16425
|
+
b = new Array(n),
|
|
16426
|
+
r = new Array(n);
|
|
16427
|
+
a[0] = 0, b[0] = 2, r[0] = x[0] + 2 * x[1];
|
|
16428
|
+
for (i = 1; i < n - 1; ++i) a[i] = 1, b[i] = 4, r[i] = 4 * x[i] + 2 * x[i + 1];
|
|
16429
|
+
a[n - 1] = 2, b[n - 1] = 7, r[n - 1] = 8 * x[n - 1] + x[n];
|
|
16430
|
+
for (i = 1; i < n; ++i) m = a[i] / b[i - 1], b[i] -= m, r[i] -= m * r[i - 1];
|
|
16431
|
+
a[n - 1] = r[n - 1] / b[n - 1];
|
|
16432
|
+
for (i = n - 2; i >= 0; --i) a[i] = (r[i] - a[i + 1]) / b[i];
|
|
16433
|
+
b[n - 1] = (x[n] + a[n - 1]) / 2;
|
|
16434
|
+
for (i = 0; i < n - 1; ++i) b[i] = 2 * x[i + 1] - a[i + 1];
|
|
16435
|
+
return [a, b];
|
|
16436
|
+
}
|
|
16437
|
+
|
|
16438
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
|
|
16439
|
+
return new Natural(context);
|
|
16440
|
+
}
|
|
16441
|
+
|
|
16442
|
+
|
|
16443
|
+
/***/ }),
|
|
16444
|
+
|
|
16445
|
+
/***/ "../../../node_modules/d3-shape/src/curve/radial.js":
|
|
16446
|
+
/*!**********************************************************!*\
|
|
16447
|
+
!*** ../../../node_modules/d3-shape/src/curve/radial.js ***!
|
|
16448
|
+
\**********************************************************/
|
|
16449
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16450
|
+
|
|
16451
|
+
"use strict";
|
|
16452
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16453
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16454
|
+
/* harmony export */ "curveRadialLinear": () => (/* binding */ curveRadialLinear),
|
|
16455
|
+
/* harmony export */ "default": () => (/* binding */ curveRadial)
|
|
16456
|
+
/* harmony export */ });
|
|
16457
|
+
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../../node_modules/d3-shape/src/curve/linear.js");
|
|
16458
|
+
|
|
16459
|
+
|
|
16460
|
+
var curveRadialLinear = curveRadial(_linear_js__WEBPACK_IMPORTED_MODULE_0__.default);
|
|
16461
|
+
|
|
16462
|
+
function Radial(curve) {
|
|
16463
|
+
this._curve = curve;
|
|
16464
|
+
}
|
|
16465
|
+
|
|
16466
|
+
Radial.prototype = {
|
|
16467
|
+
areaStart: function() {
|
|
16468
|
+
this._curve.areaStart();
|
|
16469
|
+
},
|
|
16470
|
+
areaEnd: function() {
|
|
16471
|
+
this._curve.areaEnd();
|
|
16472
|
+
},
|
|
16473
|
+
lineStart: function() {
|
|
16474
|
+
this._curve.lineStart();
|
|
16475
|
+
},
|
|
16476
|
+
lineEnd: function() {
|
|
16477
|
+
this._curve.lineEnd();
|
|
16478
|
+
},
|
|
16479
|
+
point: function(a, r) {
|
|
16480
|
+
this._curve.point(r * Math.sin(a), r * -Math.cos(a));
|
|
16481
|
+
}
|
|
16482
|
+
};
|
|
16483
|
+
|
|
16484
|
+
function curveRadial(curve) {
|
|
16485
|
+
|
|
16486
|
+
function radial(context) {
|
|
16487
|
+
return new Radial(curve(context));
|
|
16488
|
+
}
|
|
16489
|
+
|
|
16490
|
+
radial._curve = curve;
|
|
16491
|
+
|
|
16492
|
+
return radial;
|
|
16493
|
+
}
|
|
16494
|
+
|
|
16495
|
+
|
|
16496
|
+
/***/ }),
|
|
16497
|
+
|
|
16498
|
+
/***/ "../../../node_modules/d3-shape/src/curve/step.js":
|
|
16499
|
+
/*!********************************************************!*\
|
|
16500
|
+
!*** ../../../node_modules/d3-shape/src/curve/step.js ***!
|
|
16501
|
+
\********************************************************/
|
|
16502
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16503
|
+
|
|
16504
|
+
"use strict";
|
|
16505
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16506
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16507
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
16508
|
+
/* harmony export */ "stepBefore": () => (/* binding */ stepBefore),
|
|
16509
|
+
/* harmony export */ "stepAfter": () => (/* binding */ stepAfter)
|
|
16510
|
+
/* harmony export */ });
|
|
16511
|
+
function Step(context, t) {
|
|
16512
|
+
this._context = context;
|
|
16513
|
+
this._t = t;
|
|
16514
|
+
}
|
|
16515
|
+
|
|
16516
|
+
Step.prototype = {
|
|
16517
|
+
areaStart: function() {
|
|
16518
|
+
this._line = 0;
|
|
16519
|
+
},
|
|
16520
|
+
areaEnd: function() {
|
|
16521
|
+
this._line = NaN;
|
|
16522
|
+
},
|
|
16523
|
+
lineStart: function() {
|
|
16524
|
+
this._x = this._y = NaN;
|
|
16525
|
+
this._point = 0;
|
|
16526
|
+
},
|
|
16527
|
+
lineEnd: function() {
|
|
16528
|
+
if (0 < this._t && this._t < 1 && this._point === 2) this._context.lineTo(this._x, this._y);
|
|
16529
|
+
if (this._line || (this._line !== 0 && this._point === 1)) this._context.closePath();
|
|
16530
|
+
if (this._line >= 0) this._t = 1 - this._t, this._line = 1 - this._line;
|
|
16531
|
+
},
|
|
16532
|
+
point: function(x, y) {
|
|
16533
|
+
x = +x, y = +y;
|
|
16534
|
+
switch (this._point) {
|
|
16535
|
+
case 0: this._point = 1; this._line ? this._context.lineTo(x, y) : this._context.moveTo(x, y); break;
|
|
16536
|
+
case 1: this._point = 2; // proceed
|
|
16537
|
+
default: {
|
|
16538
|
+
if (this._t <= 0) {
|
|
16539
|
+
this._context.lineTo(this._x, y);
|
|
16540
|
+
this._context.lineTo(x, y);
|
|
16541
|
+
} else {
|
|
16542
|
+
var x1 = this._x * (1 - this._t) + x * this._t;
|
|
16543
|
+
this._context.lineTo(x1, this._y);
|
|
16544
|
+
this._context.lineTo(x1, y);
|
|
16545
|
+
}
|
|
16546
|
+
break;
|
|
16547
|
+
}
|
|
16548
|
+
}
|
|
16549
|
+
this._x = x, this._y = y;
|
|
16550
|
+
}
|
|
16551
|
+
};
|
|
16552
|
+
|
|
16553
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(context) {
|
|
16554
|
+
return new Step(context, 0.5);
|
|
16555
|
+
}
|
|
16556
|
+
|
|
16557
|
+
function stepBefore(context) {
|
|
16558
|
+
return new Step(context, 0);
|
|
16559
|
+
}
|
|
16560
|
+
|
|
16561
|
+
function stepAfter(context) {
|
|
16562
|
+
return new Step(context, 1);
|
|
16563
|
+
}
|
|
16564
|
+
|
|
16565
|
+
|
|
16566
|
+
/***/ }),
|
|
16567
|
+
|
|
16568
|
+
/***/ "../../../node_modules/d3-shape/src/descending.js":
|
|
16569
|
+
/*!********************************************************!*\
|
|
16570
|
+
!*** ../../../node_modules/d3-shape/src/descending.js ***!
|
|
16571
|
+
\********************************************************/
|
|
16572
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16573
|
+
|
|
16574
|
+
"use strict";
|
|
16575
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16576
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16577
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
16578
|
+
/* harmony export */ });
|
|
16579
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(a, b) {
|
|
16580
|
+
return b < a ? -1 : b > a ? 1 : b >= a ? 0 : NaN;
|
|
16581
|
+
}
|
|
16582
|
+
|
|
16583
|
+
|
|
16584
|
+
/***/ }),
|
|
16585
|
+
|
|
16586
|
+
/***/ "../../../node_modules/d3-shape/src/identity.js":
|
|
16587
|
+
/*!******************************************************!*\
|
|
16588
|
+
!*** ../../../node_modules/d3-shape/src/identity.js ***!
|
|
16589
|
+
\******************************************************/
|
|
16590
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16591
|
+
|
|
16592
|
+
"use strict";
|
|
16593
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16594
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16595
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
16596
|
+
/* harmony export */ });
|
|
16597
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(d) {
|
|
16598
|
+
return d;
|
|
16599
|
+
}
|
|
16600
|
+
|
|
16601
|
+
|
|
16602
|
+
/***/ }),
|
|
16603
|
+
|
|
16604
|
+
/***/ "../../../node_modules/d3-shape/src/index.js":
|
|
16605
|
+
/*!***************************************************!*\
|
|
16606
|
+
!*** ../../../node_modules/d3-shape/src/index.js ***!
|
|
16607
|
+
\***************************************************/
|
|
16608
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16609
|
+
|
|
16610
|
+
"use strict";
|
|
16611
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16612
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16613
|
+
/* harmony export */ "arc": () => (/* reexport safe */ _arc_js__WEBPACK_IMPORTED_MODULE_0__.default),
|
|
16614
|
+
/* harmony export */ "area": () => (/* reexport safe */ _area_js__WEBPACK_IMPORTED_MODULE_1__.default),
|
|
16615
|
+
/* harmony export */ "line": () => (/* reexport safe */ _line_js__WEBPACK_IMPORTED_MODULE_2__.default),
|
|
16616
|
+
/* harmony export */ "pie": () => (/* reexport safe */ _pie_js__WEBPACK_IMPORTED_MODULE_3__.default),
|
|
16617
|
+
/* harmony export */ "areaRadial": () => (/* reexport safe */ _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__.default),
|
|
16618
|
+
/* harmony export */ "radialArea": () => (/* reexport safe */ _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__.default),
|
|
16619
|
+
/* harmony export */ "lineRadial": () => (/* reexport safe */ _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__.default),
|
|
16620
|
+
/* harmony export */ "radialLine": () => (/* reexport safe */ _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__.default),
|
|
16621
|
+
/* harmony export */ "pointRadial": () => (/* reexport safe */ _pointRadial_js__WEBPACK_IMPORTED_MODULE_6__.default),
|
|
16622
|
+
/* harmony export */ "linkHorizontal": () => (/* reexport safe */ _link_index_js__WEBPACK_IMPORTED_MODULE_7__.linkHorizontal),
|
|
16623
|
+
/* harmony export */ "linkVertical": () => (/* reexport safe */ _link_index_js__WEBPACK_IMPORTED_MODULE_7__.linkVertical),
|
|
16624
|
+
/* harmony export */ "linkRadial": () => (/* reexport safe */ _link_index_js__WEBPACK_IMPORTED_MODULE_7__.linkRadial),
|
|
16625
|
+
/* harmony export */ "symbol": () => (/* reexport safe */ _symbol_js__WEBPACK_IMPORTED_MODULE_8__.default),
|
|
16626
|
+
/* harmony export */ "symbols": () => (/* reexport safe */ _symbol_js__WEBPACK_IMPORTED_MODULE_8__.symbols),
|
|
16627
|
+
/* harmony export */ "symbolCircle": () => (/* reexport safe */ _symbol_circle_js__WEBPACK_IMPORTED_MODULE_9__.default),
|
|
16628
|
+
/* harmony export */ "symbolCross": () => (/* reexport safe */ _symbol_cross_js__WEBPACK_IMPORTED_MODULE_10__.default),
|
|
16629
|
+
/* harmony export */ "symbolDiamond": () => (/* reexport safe */ _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_11__.default),
|
|
16630
|
+
/* harmony export */ "symbolSquare": () => (/* reexport safe */ _symbol_square_js__WEBPACK_IMPORTED_MODULE_12__.default),
|
|
16631
|
+
/* harmony export */ "symbolStar": () => (/* reexport safe */ _symbol_star_js__WEBPACK_IMPORTED_MODULE_13__.default),
|
|
16632
|
+
/* harmony export */ "symbolTriangle": () => (/* reexport safe */ _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_14__.default),
|
|
16633
|
+
/* harmony export */ "symbolWye": () => (/* reexport safe */ _symbol_wye_js__WEBPACK_IMPORTED_MODULE_15__.default),
|
|
16634
|
+
/* harmony export */ "curveBasisClosed": () => (/* reexport safe */ _curve_basisClosed_js__WEBPACK_IMPORTED_MODULE_16__.default),
|
|
16635
|
+
/* harmony export */ "curveBasisOpen": () => (/* reexport safe */ _curve_basisOpen_js__WEBPACK_IMPORTED_MODULE_17__.default),
|
|
16636
|
+
/* harmony export */ "curveBasis": () => (/* reexport safe */ _curve_basis_js__WEBPACK_IMPORTED_MODULE_18__.default),
|
|
16637
|
+
/* harmony export */ "curveBundle": () => (/* reexport safe */ _curve_bundle_js__WEBPACK_IMPORTED_MODULE_19__.default),
|
|
16638
|
+
/* harmony export */ "curveCardinalClosed": () => (/* reexport safe */ _curve_cardinalClosed_js__WEBPACK_IMPORTED_MODULE_20__.default),
|
|
16639
|
+
/* harmony export */ "curveCardinalOpen": () => (/* reexport safe */ _curve_cardinalOpen_js__WEBPACK_IMPORTED_MODULE_21__.default),
|
|
16640
|
+
/* harmony export */ "curveCardinal": () => (/* reexport safe */ _curve_cardinal_js__WEBPACK_IMPORTED_MODULE_22__.default),
|
|
16641
|
+
/* harmony export */ "curveCatmullRomClosed": () => (/* reexport safe */ _curve_catmullRomClosed_js__WEBPACK_IMPORTED_MODULE_23__.default),
|
|
16642
|
+
/* harmony export */ "curveCatmullRomOpen": () => (/* reexport safe */ _curve_catmullRomOpen_js__WEBPACK_IMPORTED_MODULE_24__.default),
|
|
16643
|
+
/* harmony export */ "curveCatmullRom": () => (/* reexport safe */ _curve_catmullRom_js__WEBPACK_IMPORTED_MODULE_25__.default),
|
|
16644
|
+
/* harmony export */ "curveLinearClosed": () => (/* reexport safe */ _curve_linearClosed_js__WEBPACK_IMPORTED_MODULE_26__.default),
|
|
16645
|
+
/* harmony export */ "curveLinear": () => (/* reexport safe */ _curve_linear_js__WEBPACK_IMPORTED_MODULE_27__.default),
|
|
16646
|
+
/* harmony export */ "curveMonotoneX": () => (/* reexport safe */ _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__.monotoneX),
|
|
16647
|
+
/* harmony export */ "curveMonotoneY": () => (/* reexport safe */ _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__.monotoneY),
|
|
16648
|
+
/* harmony export */ "curveNatural": () => (/* reexport safe */ _curve_natural_js__WEBPACK_IMPORTED_MODULE_29__.default),
|
|
16649
|
+
/* harmony export */ "curveStep": () => (/* reexport safe */ _curve_step_js__WEBPACK_IMPORTED_MODULE_30__.default),
|
|
16650
|
+
/* harmony export */ "curveStepAfter": () => (/* reexport safe */ _curve_step_js__WEBPACK_IMPORTED_MODULE_30__.stepAfter),
|
|
16651
|
+
/* harmony export */ "curveStepBefore": () => (/* reexport safe */ _curve_step_js__WEBPACK_IMPORTED_MODULE_30__.stepBefore),
|
|
16652
|
+
/* harmony export */ "stack": () => (/* reexport safe */ _stack_js__WEBPACK_IMPORTED_MODULE_31__.default),
|
|
16653
|
+
/* harmony export */ "stackOffsetExpand": () => (/* reexport safe */ _offset_expand_js__WEBPACK_IMPORTED_MODULE_32__.default),
|
|
16654
|
+
/* harmony export */ "stackOffsetDiverging": () => (/* reexport safe */ _offset_diverging_js__WEBPACK_IMPORTED_MODULE_33__.default),
|
|
16655
|
+
/* harmony export */ "stackOffsetNone": () => (/* reexport safe */ _offset_none_js__WEBPACK_IMPORTED_MODULE_34__.default),
|
|
16656
|
+
/* harmony export */ "stackOffsetSilhouette": () => (/* reexport safe */ _offset_silhouette_js__WEBPACK_IMPORTED_MODULE_35__.default),
|
|
16657
|
+
/* harmony export */ "stackOffsetWiggle": () => (/* reexport safe */ _offset_wiggle_js__WEBPACK_IMPORTED_MODULE_36__.default),
|
|
16658
|
+
/* harmony export */ "stackOrderAppearance": () => (/* reexport safe */ _order_appearance_js__WEBPACK_IMPORTED_MODULE_37__.default),
|
|
16659
|
+
/* harmony export */ "stackOrderAscending": () => (/* reexport safe */ _order_ascending_js__WEBPACK_IMPORTED_MODULE_38__.default),
|
|
16660
|
+
/* harmony export */ "stackOrderDescending": () => (/* reexport safe */ _order_descending_js__WEBPACK_IMPORTED_MODULE_39__.default),
|
|
16661
|
+
/* harmony export */ "stackOrderInsideOut": () => (/* reexport safe */ _order_insideOut_js__WEBPACK_IMPORTED_MODULE_40__.default),
|
|
16662
|
+
/* harmony export */ "stackOrderNone": () => (/* reexport safe */ _order_none_js__WEBPACK_IMPORTED_MODULE_41__.default),
|
|
16663
|
+
/* harmony export */ "stackOrderReverse": () => (/* reexport safe */ _order_reverse_js__WEBPACK_IMPORTED_MODULE_42__.default)
|
|
16664
|
+
/* harmony export */ });
|
|
16665
|
+
/* harmony import */ var _arc_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./arc.js */ "../../../node_modules/d3-shape/src/arc.js");
|
|
16666
|
+
/* harmony import */ var _area_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area.js */ "../../../node_modules/d3-shape/src/area.js");
|
|
16667
|
+
/* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./line.js */ "../../../node_modules/d3-shape/src/line.js");
|
|
16668
|
+
/* harmony import */ var _pie_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pie.js */ "../../../node_modules/d3-shape/src/pie.js");
|
|
16669
|
+
/* harmony import */ var _areaRadial_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./areaRadial.js */ "../../../node_modules/d3-shape/src/areaRadial.js");
|
|
16670
|
+
/* harmony import */ var _lineRadial_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lineRadial.js */ "../../../node_modules/d3-shape/src/lineRadial.js");
|
|
16671
|
+
/* harmony import */ var _pointRadial_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./pointRadial.js */ "../../../node_modules/d3-shape/src/pointRadial.js");
|
|
16672
|
+
/* harmony import */ var _link_index_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./link/index.js */ "../../../node_modules/d3-shape/src/link/index.js");
|
|
16673
|
+
/* harmony import */ var _symbol_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./symbol.js */ "../../../node_modules/d3-shape/src/symbol.js");
|
|
16674
|
+
/* harmony import */ var _symbol_circle_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./symbol/circle.js */ "../../../node_modules/d3-shape/src/symbol/circle.js");
|
|
16675
|
+
/* harmony import */ var _symbol_cross_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./symbol/cross.js */ "../../../node_modules/d3-shape/src/symbol/cross.js");
|
|
16676
|
+
/* harmony import */ var _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./symbol/diamond.js */ "../../../node_modules/d3-shape/src/symbol/diamond.js");
|
|
16677
|
+
/* harmony import */ var _symbol_square_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./symbol/square.js */ "../../../node_modules/d3-shape/src/symbol/square.js");
|
|
16678
|
+
/* harmony import */ var _symbol_star_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./symbol/star.js */ "../../../node_modules/d3-shape/src/symbol/star.js");
|
|
16679
|
+
/* harmony import */ var _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./symbol/triangle.js */ "../../../node_modules/d3-shape/src/symbol/triangle.js");
|
|
16680
|
+
/* harmony import */ var _symbol_wye_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./symbol/wye.js */ "../../../node_modules/d3-shape/src/symbol/wye.js");
|
|
16681
|
+
/* harmony import */ var _curve_basisClosed_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./curve/basisClosed.js */ "../../../node_modules/d3-shape/src/curve/basisClosed.js");
|
|
16682
|
+
/* harmony import */ var _curve_basisOpen_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./curve/basisOpen.js */ "../../../node_modules/d3-shape/src/curve/basisOpen.js");
|
|
16683
|
+
/* harmony import */ var _curve_basis_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./curve/basis.js */ "../../../node_modules/d3-shape/src/curve/basis.js");
|
|
16684
|
+
/* harmony import */ var _curve_bundle_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./curve/bundle.js */ "../../../node_modules/d3-shape/src/curve/bundle.js");
|
|
16685
|
+
/* harmony import */ var _curve_cardinalClosed_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./curve/cardinalClosed.js */ "../../../node_modules/d3-shape/src/curve/cardinalClosed.js");
|
|
16686
|
+
/* harmony import */ var _curve_cardinalOpen_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./curve/cardinalOpen.js */ "../../../node_modules/d3-shape/src/curve/cardinalOpen.js");
|
|
16687
|
+
/* harmony import */ var _curve_cardinal_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./curve/cardinal.js */ "../../../node_modules/d3-shape/src/curve/cardinal.js");
|
|
16688
|
+
/* harmony import */ var _curve_catmullRomClosed_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./curve/catmullRomClosed.js */ "../../../node_modules/d3-shape/src/curve/catmullRomClosed.js");
|
|
16689
|
+
/* harmony import */ var _curve_catmullRomOpen_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./curve/catmullRomOpen.js */ "../../../node_modules/d3-shape/src/curve/catmullRomOpen.js");
|
|
16690
|
+
/* harmony import */ var _curve_catmullRom_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./curve/catmullRom.js */ "../../../node_modules/d3-shape/src/curve/catmullRom.js");
|
|
16691
|
+
/* harmony import */ var _curve_linearClosed_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./curve/linearClosed.js */ "../../../node_modules/d3-shape/src/curve/linearClosed.js");
|
|
16692
|
+
/* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./curve/linear.js */ "../../../node_modules/d3-shape/src/curve/linear.js");
|
|
16693
|
+
/* harmony import */ var _curve_monotone_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./curve/monotone.js */ "../../../node_modules/d3-shape/src/curve/monotone.js");
|
|
16694
|
+
/* harmony import */ var _curve_natural_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./curve/natural.js */ "../../../node_modules/d3-shape/src/curve/natural.js");
|
|
16695
|
+
/* harmony import */ var _curve_step_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./curve/step.js */ "../../../node_modules/d3-shape/src/curve/step.js");
|
|
16696
|
+
/* harmony import */ var _stack_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./stack.js */ "../../../node_modules/d3-shape/src/stack.js");
|
|
16697
|
+
/* harmony import */ var _offset_expand_js__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./offset/expand.js */ "../../../node_modules/d3-shape/src/offset/expand.js");
|
|
16698
|
+
/* harmony import */ var _offset_diverging_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./offset/diverging.js */ "../../../node_modules/d3-shape/src/offset/diverging.js");
|
|
16699
|
+
/* harmony import */ var _offset_none_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./offset/none.js */ "../../../node_modules/d3-shape/src/offset/none.js");
|
|
16700
|
+
/* harmony import */ var _offset_silhouette_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./offset/silhouette.js */ "../../../node_modules/d3-shape/src/offset/silhouette.js");
|
|
16701
|
+
/* harmony import */ var _offset_wiggle_js__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./offset/wiggle.js */ "../../../node_modules/d3-shape/src/offset/wiggle.js");
|
|
16702
|
+
/* harmony import */ var _order_appearance_js__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./order/appearance.js */ "../../../node_modules/d3-shape/src/order/appearance.js");
|
|
16703
|
+
/* harmony import */ var _order_ascending_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./order/ascending.js */ "../../../node_modules/d3-shape/src/order/ascending.js");
|
|
16704
|
+
/* harmony import */ var _order_descending_js__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./order/descending.js */ "../../../node_modules/d3-shape/src/order/descending.js");
|
|
16705
|
+
/* harmony import */ var _order_insideOut_js__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./order/insideOut.js */ "../../../node_modules/d3-shape/src/order/insideOut.js");
|
|
16706
|
+
/* harmony import */ var _order_none_js__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./order/none.js */ "../../../node_modules/d3-shape/src/order/none.js");
|
|
16707
|
+
/* harmony import */ var _order_reverse_js__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./order/reverse.js */ "../../../node_modules/d3-shape/src/order/reverse.js");
|
|
16708
|
+
|
|
16709
|
+
|
|
16710
|
+
|
|
16711
|
+
|
|
16712
|
+
// Note: radialArea is deprecated!
|
|
16713
|
+
// Note: radialLine is deprecated!
|
|
16714
|
+
|
|
16715
|
+
|
|
16716
|
+
|
|
16717
|
+
|
|
16718
|
+
|
|
16719
|
+
|
|
16720
|
+
|
|
16721
|
+
|
|
16722
|
+
|
|
16723
|
+
|
|
16724
|
+
|
|
16725
|
+
|
|
16726
|
+
|
|
16727
|
+
|
|
16728
|
+
|
|
16729
|
+
|
|
16730
|
+
|
|
16731
|
+
|
|
16732
|
+
|
|
16733
|
+
|
|
16734
|
+
|
|
16735
|
+
|
|
16736
|
+
|
|
16737
|
+
|
|
16738
|
+
|
|
16739
|
+
|
|
16740
|
+
|
|
16741
|
+
|
|
16742
|
+
|
|
16743
|
+
|
|
16744
|
+
|
|
16745
|
+
|
|
16746
|
+
|
|
16747
|
+
|
|
16748
|
+
|
|
16749
|
+
|
|
16750
|
+
|
|
16751
|
+
|
|
16752
|
+
|
|
16753
|
+
|
|
16754
|
+
|
|
16755
|
+
|
|
16756
|
+
/***/ }),
|
|
16757
|
+
|
|
16758
|
+
/***/ "../../../node_modules/d3-shape/src/line.js":
|
|
16759
|
+
/*!**************************************************!*\
|
|
16760
|
+
!*** ../../../node_modules/d3-shape/src/line.js ***!
|
|
16761
|
+
\**************************************************/
|
|
16762
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16763
|
+
|
|
16764
|
+
"use strict";
|
|
16765
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16766
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16767
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
16768
|
+
/* harmony export */ });
|
|
16769
|
+
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/path.js");
|
|
16770
|
+
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js");
|
|
16771
|
+
/* harmony import */ var _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./curve/linear.js */ "../../../node_modules/d3-shape/src/curve/linear.js");
|
|
16772
|
+
/* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./point.js */ "../../../node_modules/d3-shape/src/point.js");
|
|
16773
|
+
|
|
16774
|
+
|
|
16775
|
+
|
|
16776
|
+
|
|
16777
|
+
|
|
16778
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
16779
|
+
var x = _point_js__WEBPACK_IMPORTED_MODULE_0__.x,
|
|
16780
|
+
y = _point_js__WEBPACK_IMPORTED_MODULE_0__.y,
|
|
16781
|
+
defined = (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(true),
|
|
16782
|
+
context = null,
|
|
16783
|
+
curve = _curve_linear_js__WEBPACK_IMPORTED_MODULE_2__.default,
|
|
16784
|
+
output = null;
|
|
16785
|
+
|
|
16786
|
+
function line(data) {
|
|
16787
|
+
var i,
|
|
16788
|
+
n = data.length,
|
|
16789
|
+
d,
|
|
16790
|
+
defined0 = false,
|
|
16791
|
+
buffer;
|
|
16792
|
+
|
|
16793
|
+
if (context == null) output = curve(buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_3__.default)());
|
|
16794
|
+
|
|
16795
|
+
for (i = 0; i <= n; ++i) {
|
|
16796
|
+
if (!(i < n && defined(d = data[i], i, data)) === defined0) {
|
|
16797
|
+
if (defined0 = !defined0) output.lineStart();
|
|
16798
|
+
else output.lineEnd();
|
|
16799
|
+
}
|
|
16800
|
+
if (defined0) output.point(+x(d, i, data), +y(d, i, data));
|
|
16801
|
+
}
|
|
16802
|
+
|
|
16803
|
+
if (buffer) return output = null, buffer + "" || null;
|
|
16804
|
+
}
|
|
16805
|
+
|
|
16806
|
+
line.x = function(_) {
|
|
16807
|
+
return arguments.length ? (x = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), line) : x;
|
|
16808
|
+
};
|
|
16809
|
+
|
|
16810
|
+
line.y = function(_) {
|
|
16811
|
+
return arguments.length ? (y = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(+_), line) : y;
|
|
16812
|
+
};
|
|
16813
|
+
|
|
16814
|
+
line.defined = function(_) {
|
|
16815
|
+
return arguments.length ? (defined = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_1__.default)(!!_), line) : defined;
|
|
16816
|
+
};
|
|
16817
|
+
|
|
16818
|
+
line.curve = function(_) {
|
|
16819
|
+
return arguments.length ? (curve = _, context != null && (output = curve(context)), line) : curve;
|
|
16820
|
+
};
|
|
16821
|
+
|
|
16822
|
+
line.context = function(_) {
|
|
16823
|
+
return arguments.length ? (_ == null ? context = output = null : output = curve(context = _), line) : context;
|
|
16824
|
+
};
|
|
16825
|
+
|
|
16826
|
+
return line;
|
|
16827
|
+
}
|
|
16828
|
+
|
|
16829
|
+
|
|
16830
|
+
/***/ }),
|
|
16831
|
+
|
|
16832
|
+
/***/ "../../../node_modules/d3-shape/src/lineRadial.js":
|
|
16833
|
+
/*!********************************************************!*\
|
|
16834
|
+
!*** ../../../node_modules/d3-shape/src/lineRadial.js ***!
|
|
16835
|
+
\********************************************************/
|
|
16836
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16837
|
+
|
|
16838
|
+
"use strict";
|
|
16839
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16840
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16841
|
+
/* harmony export */ "lineRadial": () => (/* binding */ lineRadial),
|
|
16842
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
16843
|
+
/* harmony export */ });
|
|
16844
|
+
/* harmony import */ var _curve_radial_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./curve/radial.js */ "../../../node_modules/d3-shape/src/curve/radial.js");
|
|
16845
|
+
/* harmony import */ var _line_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./line.js */ "../../../node_modules/d3-shape/src/line.js");
|
|
16846
|
+
|
|
16847
|
+
|
|
16848
|
+
|
|
16849
|
+
function lineRadial(l) {
|
|
16850
|
+
var c = l.curve;
|
|
16851
|
+
|
|
16852
|
+
l.angle = l.x, delete l.x;
|
|
16853
|
+
l.radius = l.y, delete l.y;
|
|
16854
|
+
|
|
16855
|
+
l.curve = function(_) {
|
|
16856
|
+
return arguments.length ? c((0,_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__.default)(_)) : c()._curve;
|
|
16857
|
+
};
|
|
16858
|
+
|
|
16859
|
+
return l;
|
|
16860
|
+
}
|
|
16861
|
+
|
|
16862
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
16863
|
+
return lineRadial((0,_line_js__WEBPACK_IMPORTED_MODULE_1__.default)().curve(_curve_radial_js__WEBPACK_IMPORTED_MODULE_0__.curveRadialLinear));
|
|
16864
|
+
}
|
|
16865
|
+
|
|
16866
|
+
|
|
16867
|
+
/***/ }),
|
|
16868
|
+
|
|
16869
|
+
/***/ "../../../node_modules/d3-shape/src/link/index.js":
|
|
16870
|
+
/*!********************************************************!*\
|
|
16871
|
+
!*** ../../../node_modules/d3-shape/src/link/index.js ***!
|
|
16872
|
+
\********************************************************/
|
|
16873
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16874
|
+
|
|
16875
|
+
"use strict";
|
|
16876
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16877
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16878
|
+
/* harmony export */ "linkHorizontal": () => (/* binding */ linkHorizontal),
|
|
16879
|
+
/* harmony export */ "linkVertical": () => (/* binding */ linkVertical),
|
|
16880
|
+
/* harmony export */ "linkRadial": () => (/* binding */ linkRadial)
|
|
16881
|
+
/* harmony export */ });
|
|
16882
|
+
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/path.js");
|
|
16883
|
+
/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../array.js */ "../../../node_modules/d3-shape/src/array.js");
|
|
16884
|
+
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../constant.js */ "../../../node_modules/d3-shape/src/constant.js");
|
|
16885
|
+
/* harmony import */ var _point_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../point.js */ "../../../node_modules/d3-shape/src/point.js");
|
|
16886
|
+
/* harmony import */ var _pointRadial_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../pointRadial.js */ "../../../node_modules/d3-shape/src/pointRadial.js");
|
|
16887
|
+
|
|
16888
|
+
|
|
16889
|
+
|
|
16890
|
+
|
|
16891
|
+
|
|
16892
|
+
|
|
16893
|
+
function linkSource(d) {
|
|
16894
|
+
return d.source;
|
|
16895
|
+
}
|
|
16896
|
+
|
|
16897
|
+
function linkTarget(d) {
|
|
16898
|
+
return d.target;
|
|
16899
|
+
}
|
|
16900
|
+
|
|
16901
|
+
function link(curve) {
|
|
16902
|
+
var source = linkSource,
|
|
16903
|
+
target = linkTarget,
|
|
16904
|
+
x = _point_js__WEBPACK_IMPORTED_MODULE_0__.x,
|
|
16905
|
+
y = _point_js__WEBPACK_IMPORTED_MODULE_0__.y,
|
|
16906
|
+
context = null;
|
|
16907
|
+
|
|
16908
|
+
function link() {
|
|
16909
|
+
var buffer, argv = _array_js__WEBPACK_IMPORTED_MODULE_1__.slice.call(arguments), s = source.apply(this, argv), t = target.apply(this, argv);
|
|
16910
|
+
if (!context) context = buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_2__.default)();
|
|
16911
|
+
curve(context, +x.apply(this, (argv[0] = s, argv)), +y.apply(this, argv), +x.apply(this, (argv[0] = t, argv)), +y.apply(this, argv));
|
|
16912
|
+
if (buffer) return context = null, buffer + "" || null;
|
|
16913
|
+
}
|
|
16914
|
+
|
|
16915
|
+
link.source = function(_) {
|
|
16916
|
+
return arguments.length ? (source = _, link) : source;
|
|
16917
|
+
};
|
|
16918
|
+
|
|
16919
|
+
link.target = function(_) {
|
|
16920
|
+
return arguments.length ? (target = _, link) : target;
|
|
16921
|
+
};
|
|
16922
|
+
|
|
16923
|
+
link.x = function(_) {
|
|
16924
|
+
return arguments.length ? (x = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_3__.default)(+_), link) : x;
|
|
16925
|
+
};
|
|
16926
|
+
|
|
16927
|
+
link.y = function(_) {
|
|
16928
|
+
return arguments.length ? (y = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_3__.default)(+_), link) : y;
|
|
16929
|
+
};
|
|
16930
|
+
|
|
16931
|
+
link.context = function(_) {
|
|
16932
|
+
return arguments.length ? ((context = _ == null ? null : _), link) : context;
|
|
16933
|
+
};
|
|
16934
|
+
|
|
16935
|
+
return link;
|
|
16936
|
+
}
|
|
16937
|
+
|
|
16938
|
+
function curveHorizontal(context, x0, y0, x1, y1) {
|
|
16939
|
+
context.moveTo(x0, y0);
|
|
16940
|
+
context.bezierCurveTo(x0 = (x0 + x1) / 2, y0, x0, y1, x1, y1);
|
|
16941
|
+
}
|
|
16942
|
+
|
|
16943
|
+
function curveVertical(context, x0, y0, x1, y1) {
|
|
16944
|
+
context.moveTo(x0, y0);
|
|
16945
|
+
context.bezierCurveTo(x0, y0 = (y0 + y1) / 2, x1, y0, x1, y1);
|
|
16946
|
+
}
|
|
16947
|
+
|
|
16948
|
+
function curveRadial(context, x0, y0, x1, y1) {
|
|
16949
|
+
var p0 = (0,_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__.default)(x0, y0),
|
|
16950
|
+
p1 = (0,_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__.default)(x0, y0 = (y0 + y1) / 2),
|
|
16951
|
+
p2 = (0,_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__.default)(x1, y0),
|
|
16952
|
+
p3 = (0,_pointRadial_js__WEBPACK_IMPORTED_MODULE_4__.default)(x1, y1);
|
|
16953
|
+
context.moveTo(p0[0], p0[1]);
|
|
16954
|
+
context.bezierCurveTo(p1[0], p1[1], p2[0], p2[1], p3[0], p3[1]);
|
|
16955
|
+
}
|
|
16956
|
+
|
|
16957
|
+
function linkHorizontal() {
|
|
16958
|
+
return link(curveHorizontal);
|
|
16959
|
+
}
|
|
16960
|
+
|
|
16961
|
+
function linkVertical() {
|
|
16962
|
+
return link(curveVertical);
|
|
16963
|
+
}
|
|
16964
|
+
|
|
16965
|
+
function linkRadial() {
|
|
16966
|
+
var l = link(curveRadial);
|
|
16967
|
+
l.angle = l.x, delete l.x;
|
|
16968
|
+
l.radius = l.y, delete l.y;
|
|
16969
|
+
return l;
|
|
16970
|
+
}
|
|
16971
|
+
|
|
16972
|
+
|
|
16973
|
+
/***/ }),
|
|
16974
|
+
|
|
16975
|
+
/***/ "../../../node_modules/d3-shape/src/math.js":
|
|
16976
|
+
/*!**************************************************!*\
|
|
16977
|
+
!*** ../../../node_modules/d3-shape/src/math.js ***!
|
|
16978
|
+
\**************************************************/
|
|
16979
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
16980
|
+
|
|
16981
|
+
"use strict";
|
|
16982
|
+
__webpack_require__.r(__webpack_exports__);
|
|
16983
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16984
|
+
/* harmony export */ "abs": () => (/* binding */ abs),
|
|
16985
|
+
/* harmony export */ "atan2": () => (/* binding */ atan2),
|
|
16986
|
+
/* harmony export */ "cos": () => (/* binding */ cos),
|
|
16987
|
+
/* harmony export */ "max": () => (/* binding */ max),
|
|
16988
|
+
/* harmony export */ "min": () => (/* binding */ min),
|
|
16989
|
+
/* harmony export */ "sin": () => (/* binding */ sin),
|
|
16990
|
+
/* harmony export */ "sqrt": () => (/* binding */ sqrt),
|
|
16991
|
+
/* harmony export */ "epsilon": () => (/* binding */ epsilon),
|
|
16992
|
+
/* harmony export */ "pi": () => (/* binding */ pi),
|
|
16993
|
+
/* harmony export */ "halfPi": () => (/* binding */ halfPi),
|
|
16994
|
+
/* harmony export */ "tau": () => (/* binding */ tau),
|
|
16995
|
+
/* harmony export */ "acos": () => (/* binding */ acos),
|
|
16996
|
+
/* harmony export */ "asin": () => (/* binding */ asin)
|
|
16997
|
+
/* harmony export */ });
|
|
16998
|
+
var abs = Math.abs;
|
|
16999
|
+
var atan2 = Math.atan2;
|
|
17000
|
+
var cos = Math.cos;
|
|
17001
|
+
var max = Math.max;
|
|
17002
|
+
var min = Math.min;
|
|
17003
|
+
var sin = Math.sin;
|
|
17004
|
+
var sqrt = Math.sqrt;
|
|
17005
|
+
|
|
17006
|
+
var epsilon = 1e-12;
|
|
17007
|
+
var pi = Math.PI;
|
|
17008
|
+
var halfPi = pi / 2;
|
|
17009
|
+
var tau = 2 * pi;
|
|
17010
|
+
|
|
17011
|
+
function acos(x) {
|
|
17012
|
+
return x > 1 ? 0 : x < -1 ? pi : Math.acos(x);
|
|
17013
|
+
}
|
|
17014
|
+
|
|
17015
|
+
function asin(x) {
|
|
17016
|
+
return x >= 1 ? halfPi : x <= -1 ? -halfPi : Math.asin(x);
|
|
17017
|
+
}
|
|
17018
|
+
|
|
17019
|
+
|
|
17020
|
+
/***/ }),
|
|
17021
|
+
|
|
17022
|
+
/***/ "../../../node_modules/d3-shape/src/noop.js":
|
|
17023
|
+
/*!**************************************************!*\
|
|
17024
|
+
!*** ../../../node_modules/d3-shape/src/noop.js ***!
|
|
17025
|
+
\**************************************************/
|
|
17026
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17027
|
+
|
|
17028
|
+
"use strict";
|
|
17029
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17030
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17031
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17032
|
+
/* harmony export */ });
|
|
17033
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {}
|
|
17034
|
+
|
|
17035
|
+
|
|
17036
|
+
/***/ }),
|
|
17037
|
+
|
|
17038
|
+
/***/ "../../../node_modules/d3-shape/src/offset/diverging.js":
|
|
17039
|
+
/*!**************************************************************!*\
|
|
17040
|
+
!*** ../../../node_modules/d3-shape/src/offset/diverging.js ***!
|
|
17041
|
+
\**************************************************************/
|
|
17042
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17043
|
+
|
|
17044
|
+
"use strict";
|
|
17045
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17046
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17047
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17048
|
+
/* harmony export */ });
|
|
17049
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
|
|
17050
|
+
if (!((n = series.length) > 0)) return;
|
|
17051
|
+
for (var i, j = 0, d, dy, yp, yn, n, m = series[order[0]].length; j < m; ++j) {
|
|
17052
|
+
for (yp = yn = 0, i = 0; i < n; ++i) {
|
|
17053
|
+
if ((dy = (d = series[order[i]][j])[1] - d[0]) > 0) {
|
|
17054
|
+
d[0] = yp, d[1] = yp += dy;
|
|
17055
|
+
} else if (dy < 0) {
|
|
17056
|
+
d[1] = yn, d[0] = yn += dy;
|
|
17057
|
+
} else {
|
|
17058
|
+
d[0] = 0, d[1] = dy;
|
|
17059
|
+
}
|
|
17060
|
+
}
|
|
17061
|
+
}
|
|
17062
|
+
}
|
|
17063
|
+
|
|
17064
|
+
|
|
17065
|
+
/***/ }),
|
|
17066
|
+
|
|
17067
|
+
/***/ "../../../node_modules/d3-shape/src/offset/expand.js":
|
|
17068
|
+
/*!***********************************************************!*\
|
|
17069
|
+
!*** ../../../node_modules/d3-shape/src/offset/expand.js ***!
|
|
17070
|
+
\***********************************************************/
|
|
17071
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17072
|
+
|
|
17073
|
+
"use strict";
|
|
17074
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17075
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17076
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17077
|
+
/* harmony export */ });
|
|
17078
|
+
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/offset/none.js");
|
|
17079
|
+
|
|
17080
|
+
|
|
17081
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
|
|
17082
|
+
if (!((n = series.length) > 0)) return;
|
|
17083
|
+
for (var i, n, j = 0, m = series[0].length, y; j < m; ++j) {
|
|
17084
|
+
for (y = i = 0; i < n; ++i) y += series[i][j][1] || 0;
|
|
17085
|
+
if (y) for (i = 0; i < n; ++i) series[i][j][1] /= y;
|
|
17086
|
+
}
|
|
17087
|
+
(0,_none_js__WEBPACK_IMPORTED_MODULE_0__.default)(series, order);
|
|
17088
|
+
}
|
|
17089
|
+
|
|
17090
|
+
|
|
17091
|
+
/***/ }),
|
|
17092
|
+
|
|
17093
|
+
/***/ "../../../node_modules/d3-shape/src/offset/none.js":
|
|
17094
|
+
/*!*********************************************************!*\
|
|
17095
|
+
!*** ../../../node_modules/d3-shape/src/offset/none.js ***!
|
|
17096
|
+
\*********************************************************/
|
|
17097
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17098
|
+
|
|
17099
|
+
"use strict";
|
|
17100
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17101
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17102
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17103
|
+
/* harmony export */ });
|
|
17104
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
|
|
17105
|
+
if (!((n = series.length) > 1)) return;
|
|
17106
|
+
for (var i = 1, j, s0, s1 = series[order[0]], n, m = s1.length; i < n; ++i) {
|
|
17107
|
+
s0 = s1, s1 = series[order[i]];
|
|
17108
|
+
for (j = 0; j < m; ++j) {
|
|
17109
|
+
s1[j][1] += s1[j][0] = isNaN(s0[j][1]) ? s0[j][0] : s0[j][1];
|
|
17110
|
+
}
|
|
17111
|
+
}
|
|
17112
|
+
}
|
|
17113
|
+
|
|
17114
|
+
|
|
17115
|
+
/***/ }),
|
|
17116
|
+
|
|
17117
|
+
/***/ "../../../node_modules/d3-shape/src/offset/silhouette.js":
|
|
17118
|
+
/*!***************************************************************!*\
|
|
17119
|
+
!*** ../../../node_modules/d3-shape/src/offset/silhouette.js ***!
|
|
17120
|
+
\***************************************************************/
|
|
17121
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17122
|
+
|
|
17123
|
+
"use strict";
|
|
17124
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17125
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17126
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17127
|
+
/* harmony export */ });
|
|
17128
|
+
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/offset/none.js");
|
|
17129
|
+
|
|
17130
|
+
|
|
17131
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
|
|
17132
|
+
if (!((n = series.length) > 0)) return;
|
|
17133
|
+
for (var j = 0, s0 = series[order[0]], n, m = s0.length; j < m; ++j) {
|
|
17134
|
+
for (var i = 0, y = 0; i < n; ++i) y += series[i][j][1] || 0;
|
|
17135
|
+
s0[j][1] += s0[j][0] = -y / 2;
|
|
17136
|
+
}
|
|
17137
|
+
(0,_none_js__WEBPACK_IMPORTED_MODULE_0__.default)(series, order);
|
|
17138
|
+
}
|
|
17139
|
+
|
|
17140
|
+
|
|
17141
|
+
/***/ }),
|
|
17142
|
+
|
|
17143
|
+
/***/ "../../../node_modules/d3-shape/src/offset/wiggle.js":
|
|
17144
|
+
/*!***********************************************************!*\
|
|
17145
|
+
!*** ../../../node_modules/d3-shape/src/offset/wiggle.js ***!
|
|
17146
|
+
\***********************************************************/
|
|
17147
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17148
|
+
|
|
17149
|
+
"use strict";
|
|
17150
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17151
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17152
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17153
|
+
/* harmony export */ });
|
|
17154
|
+
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/offset/none.js");
|
|
17155
|
+
|
|
17156
|
+
|
|
17157
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series, order) {
|
|
17158
|
+
if (!((n = series.length) > 0) || !((m = (s0 = series[order[0]]).length) > 0)) return;
|
|
17159
|
+
for (var y = 0, j = 1, s0, m, n; j < m; ++j) {
|
|
17160
|
+
for (var i = 0, s1 = 0, s2 = 0; i < n; ++i) {
|
|
17161
|
+
var si = series[order[i]],
|
|
17162
|
+
sij0 = si[j][1] || 0,
|
|
17163
|
+
sij1 = si[j - 1][1] || 0,
|
|
17164
|
+
s3 = (sij0 - sij1) / 2;
|
|
17165
|
+
for (var k = 0; k < i; ++k) {
|
|
17166
|
+
var sk = series[order[k]],
|
|
17167
|
+
skj0 = sk[j][1] || 0,
|
|
17168
|
+
skj1 = sk[j - 1][1] || 0;
|
|
17169
|
+
s3 += skj0 - skj1;
|
|
17170
|
+
}
|
|
17171
|
+
s1 += sij0, s2 += s3 * sij0;
|
|
17172
|
+
}
|
|
17173
|
+
s0[j - 1][1] += s0[j - 1][0] = y;
|
|
17174
|
+
if (s1) y -= s2 / s1;
|
|
17175
|
+
}
|
|
17176
|
+
s0[j - 1][1] += s0[j - 1][0] = y;
|
|
17177
|
+
(0,_none_js__WEBPACK_IMPORTED_MODULE_0__.default)(series, order);
|
|
17178
|
+
}
|
|
17179
|
+
|
|
17180
|
+
|
|
17181
|
+
/***/ }),
|
|
17182
|
+
|
|
17183
|
+
/***/ "../../../node_modules/d3-shape/src/order/appearance.js":
|
|
17184
|
+
/*!**************************************************************!*\
|
|
17185
|
+
!*** ../../../node_modules/d3-shape/src/order/appearance.js ***!
|
|
17186
|
+
\**************************************************************/
|
|
17187
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17188
|
+
|
|
17189
|
+
"use strict";
|
|
17190
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17191
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17192
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17193
|
+
/* harmony export */ });
|
|
17194
|
+
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/order/none.js");
|
|
17195
|
+
|
|
17196
|
+
|
|
17197
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
|
|
17198
|
+
var peaks = series.map(peak);
|
|
17199
|
+
return (0,_none_js__WEBPACK_IMPORTED_MODULE_0__.default)(series).sort(function(a, b) { return peaks[a] - peaks[b]; });
|
|
17200
|
+
}
|
|
17201
|
+
|
|
17202
|
+
function peak(series) {
|
|
17203
|
+
var i = -1, j = 0, n = series.length, vi, vj = -Infinity;
|
|
17204
|
+
while (++i < n) if ((vi = +series[i][1]) > vj) vj = vi, j = i;
|
|
17205
|
+
return j;
|
|
17206
|
+
}
|
|
17207
|
+
|
|
17208
|
+
|
|
17209
|
+
/***/ }),
|
|
17210
|
+
|
|
17211
|
+
/***/ "../../../node_modules/d3-shape/src/order/ascending.js":
|
|
17212
|
+
/*!*************************************************************!*\
|
|
17213
|
+
!*** ../../../node_modules/d3-shape/src/order/ascending.js ***!
|
|
17214
|
+
\*************************************************************/
|
|
17215
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17216
|
+
|
|
17217
|
+
"use strict";
|
|
17218
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17219
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17220
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
17221
|
+
/* harmony export */ "sum": () => (/* binding */ sum)
|
|
17222
|
+
/* harmony export */ });
|
|
17223
|
+
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/order/none.js");
|
|
17224
|
+
|
|
17225
|
+
|
|
17226
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
|
|
17227
|
+
var sums = series.map(sum);
|
|
17228
|
+
return (0,_none_js__WEBPACK_IMPORTED_MODULE_0__.default)(series).sort(function(a, b) { return sums[a] - sums[b]; });
|
|
17229
|
+
}
|
|
17230
|
+
|
|
17231
|
+
function sum(series) {
|
|
17232
|
+
var s = 0, i = -1, n = series.length, v;
|
|
17233
|
+
while (++i < n) if (v = +series[i][1]) s += v;
|
|
17234
|
+
return s;
|
|
17235
|
+
}
|
|
17236
|
+
|
|
17237
|
+
|
|
17238
|
+
/***/ }),
|
|
17239
|
+
|
|
17240
|
+
/***/ "../../../node_modules/d3-shape/src/order/descending.js":
|
|
17241
|
+
/*!**************************************************************!*\
|
|
17242
|
+
!*** ../../../node_modules/d3-shape/src/order/descending.js ***!
|
|
17243
|
+
\**************************************************************/
|
|
17244
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17245
|
+
|
|
17246
|
+
"use strict";
|
|
17247
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17248
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17249
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17250
|
+
/* harmony export */ });
|
|
17251
|
+
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../../node_modules/d3-shape/src/order/ascending.js");
|
|
17252
|
+
|
|
17253
|
+
|
|
17254
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
|
|
17255
|
+
return (0,_ascending_js__WEBPACK_IMPORTED_MODULE_0__.default)(series).reverse();
|
|
17256
|
+
}
|
|
17257
|
+
|
|
17258
|
+
|
|
17259
|
+
/***/ }),
|
|
17260
|
+
|
|
17261
|
+
/***/ "../../../node_modules/d3-shape/src/order/insideOut.js":
|
|
17262
|
+
/*!*************************************************************!*\
|
|
17263
|
+
!*** ../../../node_modules/d3-shape/src/order/insideOut.js ***!
|
|
17264
|
+
\*************************************************************/
|
|
17265
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17266
|
+
|
|
17267
|
+
"use strict";
|
|
17268
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17269
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17270
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17271
|
+
/* harmony export */ });
|
|
17272
|
+
/* harmony import */ var _appearance_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./appearance.js */ "../../../node_modules/d3-shape/src/order/appearance.js");
|
|
17273
|
+
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ascending.js */ "../../../node_modules/d3-shape/src/order/ascending.js");
|
|
17274
|
+
|
|
17275
|
+
|
|
17276
|
+
|
|
17277
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
|
|
17278
|
+
var n = series.length,
|
|
17279
|
+
i,
|
|
17280
|
+
j,
|
|
17281
|
+
sums = series.map(_ascending_js__WEBPACK_IMPORTED_MODULE_0__.sum),
|
|
17282
|
+
order = (0,_appearance_js__WEBPACK_IMPORTED_MODULE_1__.default)(series),
|
|
17283
|
+
top = 0,
|
|
17284
|
+
bottom = 0,
|
|
17285
|
+
tops = [],
|
|
17286
|
+
bottoms = [];
|
|
17287
|
+
|
|
17288
|
+
for (i = 0; i < n; ++i) {
|
|
17289
|
+
j = order[i];
|
|
17290
|
+
if (top < bottom) {
|
|
17291
|
+
top += sums[j];
|
|
17292
|
+
tops.push(j);
|
|
17293
|
+
} else {
|
|
17294
|
+
bottom += sums[j];
|
|
17295
|
+
bottoms.push(j);
|
|
17296
|
+
}
|
|
17297
|
+
}
|
|
17298
|
+
|
|
17299
|
+
return bottoms.reverse().concat(tops);
|
|
17300
|
+
}
|
|
17301
|
+
|
|
17302
|
+
|
|
17303
|
+
/***/ }),
|
|
17304
|
+
|
|
17305
|
+
/***/ "../../../node_modules/d3-shape/src/order/none.js":
|
|
17306
|
+
/*!********************************************************!*\
|
|
17307
|
+
!*** ../../../node_modules/d3-shape/src/order/none.js ***!
|
|
17308
|
+
\********************************************************/
|
|
17309
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17310
|
+
|
|
17311
|
+
"use strict";
|
|
17312
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17313
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17314
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17315
|
+
/* harmony export */ });
|
|
17316
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
|
|
17317
|
+
var n = series.length, o = new Array(n);
|
|
17318
|
+
while (--n >= 0) o[n] = n;
|
|
17319
|
+
return o;
|
|
17320
|
+
}
|
|
17321
|
+
|
|
17322
|
+
|
|
17323
|
+
/***/ }),
|
|
17324
|
+
|
|
17325
|
+
/***/ "../../../node_modules/d3-shape/src/order/reverse.js":
|
|
17326
|
+
/*!***********************************************************!*\
|
|
17327
|
+
!*** ../../../node_modules/d3-shape/src/order/reverse.js ***!
|
|
17328
|
+
\***********************************************************/
|
|
17329
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17330
|
+
|
|
17331
|
+
"use strict";
|
|
17332
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17333
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17334
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17335
|
+
/* harmony export */ });
|
|
17336
|
+
/* harmony import */ var _none_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./none.js */ "../../../node_modules/d3-shape/src/order/none.js");
|
|
17337
|
+
|
|
17338
|
+
|
|
17339
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(series) {
|
|
17340
|
+
return (0,_none_js__WEBPACK_IMPORTED_MODULE_0__.default)(series).reverse();
|
|
17341
|
+
}
|
|
17342
|
+
|
|
17343
|
+
|
|
17344
|
+
/***/ }),
|
|
17345
|
+
|
|
17346
|
+
/***/ "../../../node_modules/d3-shape/src/pie.js":
|
|
17347
|
+
/*!*************************************************!*\
|
|
17348
|
+
!*** ../../../node_modules/d3-shape/src/pie.js ***!
|
|
17349
|
+
\*************************************************/
|
|
17350
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17351
|
+
|
|
17352
|
+
"use strict";
|
|
17353
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17354
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17355
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17356
|
+
/* harmony export */ });
|
|
17357
|
+
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js");
|
|
17358
|
+
/* harmony import */ var _descending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./descending.js */ "../../../node_modules/d3-shape/src/descending.js");
|
|
17359
|
+
/* harmony import */ var _identity_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./identity.js */ "../../../node_modules/d3-shape/src/identity.js");
|
|
17360
|
+
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./math.js */ "../../../node_modules/d3-shape/src/math.js");
|
|
17361
|
+
|
|
17362
|
+
|
|
17363
|
+
|
|
17364
|
+
|
|
17365
|
+
|
|
17366
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
17367
|
+
var value = _identity_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
17368
|
+
sortValues = _descending_js__WEBPACK_IMPORTED_MODULE_1__.default,
|
|
17369
|
+
sort = null,
|
|
17370
|
+
startAngle = (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__.default)(0),
|
|
17371
|
+
endAngle = (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__.default)(_math_js__WEBPACK_IMPORTED_MODULE_3__.tau),
|
|
17372
|
+
padAngle = (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__.default)(0);
|
|
17373
|
+
|
|
17374
|
+
function pie(data) {
|
|
17375
|
+
var i,
|
|
17376
|
+
n = data.length,
|
|
17377
|
+
j,
|
|
17378
|
+
k,
|
|
17379
|
+
sum = 0,
|
|
17380
|
+
index = new Array(n),
|
|
17381
|
+
arcs = new Array(n),
|
|
17382
|
+
a0 = +startAngle.apply(this, arguments),
|
|
17383
|
+
da = Math.min(_math_js__WEBPACK_IMPORTED_MODULE_3__.tau, Math.max(-_math_js__WEBPACK_IMPORTED_MODULE_3__.tau, endAngle.apply(this, arguments) - a0)),
|
|
17384
|
+
a1,
|
|
17385
|
+
p = Math.min(Math.abs(da) / n, padAngle.apply(this, arguments)),
|
|
17386
|
+
pa = p * (da < 0 ? -1 : 1),
|
|
17387
|
+
v;
|
|
17388
|
+
|
|
17389
|
+
for (i = 0; i < n; ++i) {
|
|
17390
|
+
if ((v = arcs[index[i] = i] = +value(data[i], i, data)) > 0) {
|
|
17391
|
+
sum += v;
|
|
17392
|
+
}
|
|
17393
|
+
}
|
|
17394
|
+
|
|
17395
|
+
// Optionally sort the arcs by previously-computed values or by data.
|
|
17396
|
+
if (sortValues != null) index.sort(function(i, j) { return sortValues(arcs[i], arcs[j]); });
|
|
17397
|
+
else if (sort != null) index.sort(function(i, j) { return sort(data[i], data[j]); });
|
|
17398
|
+
|
|
17399
|
+
// Compute the arcs! They are stored in the original data's order.
|
|
17400
|
+
for (i = 0, k = sum ? (da - n * pa) / sum : 0; i < n; ++i, a0 = a1) {
|
|
17401
|
+
j = index[i], v = arcs[j], a1 = a0 + (v > 0 ? v * k : 0) + pa, arcs[j] = {
|
|
17402
|
+
data: data[j],
|
|
17403
|
+
index: i,
|
|
17404
|
+
value: v,
|
|
17405
|
+
startAngle: a0,
|
|
17406
|
+
endAngle: a1,
|
|
17407
|
+
padAngle: p
|
|
17408
|
+
};
|
|
17409
|
+
}
|
|
17410
|
+
|
|
17411
|
+
return arcs;
|
|
17412
|
+
}
|
|
17413
|
+
|
|
17414
|
+
pie.value = function(_) {
|
|
17415
|
+
return arguments.length ? (value = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__.default)(+_), pie) : value;
|
|
17416
|
+
};
|
|
17417
|
+
|
|
17418
|
+
pie.sortValues = function(_) {
|
|
17419
|
+
return arguments.length ? (sortValues = _, sort = null, pie) : sortValues;
|
|
17420
|
+
};
|
|
17421
|
+
|
|
17422
|
+
pie.sort = function(_) {
|
|
17423
|
+
return arguments.length ? (sort = _, sortValues = null, pie) : sort;
|
|
17424
|
+
};
|
|
17425
|
+
|
|
17426
|
+
pie.startAngle = function(_) {
|
|
17427
|
+
return arguments.length ? (startAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__.default)(+_), pie) : startAngle;
|
|
17428
|
+
};
|
|
17429
|
+
|
|
17430
|
+
pie.endAngle = function(_) {
|
|
17431
|
+
return arguments.length ? (endAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__.default)(+_), pie) : endAngle;
|
|
17432
|
+
};
|
|
17433
|
+
|
|
17434
|
+
pie.padAngle = function(_) {
|
|
17435
|
+
return arguments.length ? (padAngle = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_2__.default)(+_), pie) : padAngle;
|
|
17436
|
+
};
|
|
17437
|
+
|
|
17438
|
+
return pie;
|
|
17439
|
+
}
|
|
17440
|
+
|
|
17441
|
+
|
|
17442
|
+
/***/ }),
|
|
17443
|
+
|
|
17444
|
+
/***/ "../../../node_modules/d3-shape/src/point.js":
|
|
17445
|
+
/*!***************************************************!*\
|
|
17446
|
+
!*** ../../../node_modules/d3-shape/src/point.js ***!
|
|
17447
|
+
\***************************************************/
|
|
17448
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17449
|
+
|
|
17450
|
+
"use strict";
|
|
17451
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17452
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17453
|
+
/* harmony export */ "x": () => (/* binding */ x),
|
|
17454
|
+
/* harmony export */ "y": () => (/* binding */ y)
|
|
17455
|
+
/* harmony export */ });
|
|
17456
|
+
function x(p) {
|
|
17457
|
+
return p[0];
|
|
17458
|
+
}
|
|
17459
|
+
|
|
17460
|
+
function y(p) {
|
|
17461
|
+
return p[1];
|
|
17462
|
+
}
|
|
17463
|
+
|
|
17464
|
+
|
|
17465
|
+
/***/ }),
|
|
17466
|
+
|
|
17467
|
+
/***/ "../../../node_modules/d3-shape/src/pointRadial.js":
|
|
17468
|
+
/*!*********************************************************!*\
|
|
17469
|
+
!*** ../../../node_modules/d3-shape/src/pointRadial.js ***!
|
|
17470
|
+
\*********************************************************/
|
|
17471
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17472
|
+
|
|
17473
|
+
"use strict";
|
|
17474
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17475
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17476
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17477
|
+
/* harmony export */ });
|
|
17478
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(x, y) {
|
|
17479
|
+
return [(y = +y) * Math.cos(x -= Math.PI / 2), y * Math.sin(x)];
|
|
17480
|
+
}
|
|
17481
|
+
|
|
17482
|
+
|
|
17483
|
+
/***/ }),
|
|
17484
|
+
|
|
17485
|
+
/***/ "../../../node_modules/d3-shape/src/stack.js":
|
|
17486
|
+
/*!***************************************************!*\
|
|
17487
|
+
!*** ../../../node_modules/d3-shape/src/stack.js ***!
|
|
17488
|
+
\***************************************************/
|
|
17489
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17490
|
+
|
|
17491
|
+
"use strict";
|
|
17492
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17493
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17494
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
17495
|
+
/* harmony export */ });
|
|
17496
|
+
/* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./array.js */ "../../../node_modules/d3-shape/src/array.js");
|
|
17497
|
+
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js");
|
|
17498
|
+
/* harmony import */ var _offset_none_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./offset/none.js */ "../../../node_modules/d3-shape/src/offset/none.js");
|
|
17499
|
+
/* harmony import */ var _order_none_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./order/none.js */ "../../../node_modules/d3-shape/src/order/none.js");
|
|
17500
|
+
|
|
17501
|
+
|
|
17502
|
+
|
|
17503
|
+
|
|
17504
|
+
|
|
17505
|
+
function stackValue(d, key) {
|
|
17506
|
+
return d[key];
|
|
17507
|
+
}
|
|
17508
|
+
|
|
17509
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
17510
|
+
var keys = (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__.default)([]),
|
|
17511
|
+
order = _order_none_js__WEBPACK_IMPORTED_MODULE_1__.default,
|
|
17512
|
+
offset = _offset_none_js__WEBPACK_IMPORTED_MODULE_2__.default,
|
|
17513
|
+
value = stackValue;
|
|
17514
|
+
|
|
17515
|
+
function stack(data) {
|
|
17516
|
+
var kz = keys.apply(this, arguments),
|
|
17517
|
+
i,
|
|
17518
|
+
m = data.length,
|
|
17519
|
+
n = kz.length,
|
|
17520
|
+
sz = new Array(n),
|
|
17521
|
+
oz;
|
|
17522
|
+
|
|
17523
|
+
for (i = 0; i < n; ++i) {
|
|
17524
|
+
for (var ki = kz[i], si = sz[i] = new Array(m), j = 0, sij; j < m; ++j) {
|
|
17525
|
+
si[j] = sij = [0, +value(data[j], ki, j, data)];
|
|
17526
|
+
sij.data = data[j];
|
|
17527
|
+
}
|
|
17528
|
+
si.key = ki;
|
|
17529
|
+
}
|
|
17530
|
+
|
|
17531
|
+
for (i = 0, oz = order(sz); i < n; ++i) {
|
|
17532
|
+
sz[oz[i]].index = i;
|
|
17533
|
+
}
|
|
17534
|
+
|
|
17535
|
+
offset(sz, oz);
|
|
17536
|
+
return sz;
|
|
17537
|
+
}
|
|
17538
|
+
|
|
17539
|
+
stack.keys = function(_) {
|
|
17540
|
+
return arguments.length ? (keys = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__.default)(_array_js__WEBPACK_IMPORTED_MODULE_3__.slice.call(_)), stack) : keys;
|
|
17541
|
+
};
|
|
17542
|
+
|
|
17543
|
+
stack.value = function(_) {
|
|
17544
|
+
return arguments.length ? (value = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__.default)(+_), stack) : value;
|
|
17545
|
+
};
|
|
17546
|
+
|
|
17547
|
+
stack.order = function(_) {
|
|
17548
|
+
return arguments.length ? (order = _ == null ? _order_none_js__WEBPACK_IMPORTED_MODULE_1__.default : typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_0__.default)(_array_js__WEBPACK_IMPORTED_MODULE_3__.slice.call(_)), stack) : order;
|
|
17549
|
+
};
|
|
17550
|
+
|
|
17551
|
+
stack.offset = function(_) {
|
|
17552
|
+
return arguments.length ? (offset = _ == null ? _offset_none_js__WEBPACK_IMPORTED_MODULE_2__.default : _, stack) : offset;
|
|
17553
|
+
};
|
|
17554
|
+
|
|
17555
|
+
return stack;
|
|
17556
|
+
}
|
|
17557
|
+
|
|
17558
|
+
|
|
17559
|
+
/***/ }),
|
|
17560
|
+
|
|
17561
|
+
/***/ "../../../node_modules/d3-shape/src/symbol.js":
|
|
17562
|
+
/*!****************************************************!*\
|
|
17563
|
+
!*** ../../../node_modules/d3-shape/src/symbol.js ***!
|
|
17564
|
+
\****************************************************/
|
|
14487
17565
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14488
17566
|
|
|
14489
17567
|
"use strict";
|
|
14490
17568
|
__webpack_require__.r(__webpack_exports__);
|
|
14491
17569
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14492
|
-
/* harmony export */ "
|
|
17570
|
+
/* harmony export */ "symbols": () => (/* binding */ symbols),
|
|
14493
17571
|
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
14494
17572
|
/* harmony export */ });
|
|
14495
|
-
/* harmony import */ var
|
|
14496
|
-
/* harmony import */ var
|
|
14497
|
-
/* harmony import */ var
|
|
14498
|
-
/* harmony import */ var
|
|
14499
|
-
/* harmony import */ var
|
|
14500
|
-
/* harmony import */ var
|
|
14501
|
-
/* harmony import */ var
|
|
14502
|
-
/* harmony import */ var
|
|
14503
|
-
/* harmony import */ var
|
|
14504
|
-
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/millisecond.js");
|
|
14505
|
-
/* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! d3-time-format */ "../../../node_modules/d3-time-format/src/defaultLocale.js");
|
|
14506
|
-
/* harmony import */ var _array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./array */ "../../../node_modules/d3-scale/src/array.js");
|
|
14507
|
-
/* harmony import */ var _continuous__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous */ "../../../node_modules/d3-scale/src/continuous.js");
|
|
14508
|
-
/* harmony import */ var _nice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./nice */ "../../../node_modules/d3-scale/src/nice.js");
|
|
17573
|
+
/* harmony import */ var d3_path__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-path */ "../../../node_modules/d3-path/src/path.js");
|
|
17574
|
+
/* harmony import */ var _symbol_circle_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./symbol/circle.js */ "../../../node_modules/d3-shape/src/symbol/circle.js");
|
|
17575
|
+
/* harmony import */ var _symbol_cross_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./symbol/cross.js */ "../../../node_modules/d3-shape/src/symbol/cross.js");
|
|
17576
|
+
/* harmony import */ var _symbol_diamond_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./symbol/diamond.js */ "../../../node_modules/d3-shape/src/symbol/diamond.js");
|
|
17577
|
+
/* harmony import */ var _symbol_star_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./symbol/star.js */ "../../../node_modules/d3-shape/src/symbol/star.js");
|
|
17578
|
+
/* harmony import */ var _symbol_square_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./symbol/square.js */ "../../../node_modules/d3-shape/src/symbol/square.js");
|
|
17579
|
+
/* harmony import */ var _symbol_triangle_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./symbol/triangle.js */ "../../../node_modules/d3-shape/src/symbol/triangle.js");
|
|
17580
|
+
/* harmony import */ var _symbol_wye_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./symbol/wye.js */ "../../../node_modules/d3-shape/src/symbol/wye.js");
|
|
17581
|
+
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./constant.js */ "../../../node_modules/d3-shape/src/constant.js");
|
|
14509
17582
|
|
|
14510
17583
|
|
|
14511
17584
|
|
|
@@ -14514,200 +17587,260 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14514
17587
|
|
|
14515
17588
|
|
|
14516
17589
|
|
|
14517
|
-
var durationSecond = 1000,
|
|
14518
|
-
durationMinute = durationSecond * 60,
|
|
14519
|
-
durationHour = durationMinute * 60,
|
|
14520
|
-
durationDay = durationHour * 24,
|
|
14521
|
-
durationWeek = durationDay * 7,
|
|
14522
|
-
durationMonth = durationDay * 30,
|
|
14523
|
-
durationYear = durationDay * 365;
|
|
14524
17590
|
|
|
14525
|
-
function date(t) {
|
|
14526
|
-
return new Date(t);
|
|
14527
|
-
}
|
|
14528
17591
|
|
|
14529
|
-
|
|
14530
|
-
|
|
17592
|
+
var symbols = [
|
|
17593
|
+
_symbol_circle_js__WEBPACK_IMPORTED_MODULE_0__.default,
|
|
17594
|
+
_symbol_cross_js__WEBPACK_IMPORTED_MODULE_1__.default,
|
|
17595
|
+
_symbol_diamond_js__WEBPACK_IMPORTED_MODULE_2__.default,
|
|
17596
|
+
_symbol_square_js__WEBPACK_IMPORTED_MODULE_3__.default,
|
|
17597
|
+
_symbol_star_js__WEBPACK_IMPORTED_MODULE_4__.default,
|
|
17598
|
+
_symbol_triangle_js__WEBPACK_IMPORTED_MODULE_5__.default,
|
|
17599
|
+
_symbol_wye_js__WEBPACK_IMPORTED_MODULE_6__.default
|
|
17600
|
+
];
|
|
17601
|
+
|
|
17602
|
+
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {
|
|
17603
|
+
var type = (0,_constant_js__WEBPACK_IMPORTED_MODULE_7__.default)(_symbol_circle_js__WEBPACK_IMPORTED_MODULE_0__.default),
|
|
17604
|
+
size = (0,_constant_js__WEBPACK_IMPORTED_MODULE_7__.default)(64),
|
|
17605
|
+
context = null;
|
|
17606
|
+
|
|
17607
|
+
function symbol() {
|
|
17608
|
+
var buffer;
|
|
17609
|
+
if (!context) context = buffer = (0,d3_path__WEBPACK_IMPORTED_MODULE_8__.default)();
|
|
17610
|
+
type.apply(this, arguments).draw(context, +size.apply(this, arguments));
|
|
17611
|
+
if (buffer) return context = null, buffer + "" || null;
|
|
17612
|
+
}
|
|
17613
|
+
|
|
17614
|
+
symbol.type = function(_) {
|
|
17615
|
+
return arguments.length ? (type = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_7__.default)(_), symbol) : type;
|
|
17616
|
+
};
|
|
17617
|
+
|
|
17618
|
+
symbol.size = function(_) {
|
|
17619
|
+
return arguments.length ? (size = typeof _ === "function" ? _ : (0,_constant_js__WEBPACK_IMPORTED_MODULE_7__.default)(+_), symbol) : size;
|
|
17620
|
+
};
|
|
17621
|
+
|
|
17622
|
+
symbol.context = function(_) {
|
|
17623
|
+
return arguments.length ? (context = _ == null ? null : _, symbol) : context;
|
|
17624
|
+
};
|
|
17625
|
+
|
|
17626
|
+
return symbol;
|
|
14531
17627
|
}
|
|
14532
17628
|
|
|
14533
|
-
function calendar(year, month, week, day, hour, minute, second, millisecond, format) {
|
|
14534
|
-
var scale = (0,_continuous__WEBPACK_IMPORTED_MODULE_2__.default)(_continuous__WEBPACK_IMPORTED_MODULE_2__.deinterpolateLinear, d3_interpolate__WEBPACK_IMPORTED_MODULE_4__.default),
|
|
14535
|
-
invert = scale.invert,
|
|
14536
|
-
domain = scale.domain;
|
|
14537
17629
|
|
|
14538
|
-
|
|
14539
|
-
formatSecond = format(":%S"),
|
|
14540
|
-
formatMinute = format("%I:%M"),
|
|
14541
|
-
formatHour = format("%I %p"),
|
|
14542
|
-
formatDay = format("%a %d"),
|
|
14543
|
-
formatWeek = format("%b %d"),
|
|
14544
|
-
formatMonth = format("%B"),
|
|
14545
|
-
formatYear = format("%Y");
|
|
17630
|
+
/***/ }),
|
|
14546
17631
|
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
[minute, 1, durationMinute],
|
|
14553
|
-
[minute, 5, 5 * durationMinute],
|
|
14554
|
-
[minute, 15, 15 * durationMinute],
|
|
14555
|
-
[minute, 30, 30 * durationMinute],
|
|
14556
|
-
[ hour, 1, durationHour ],
|
|
14557
|
-
[ hour, 3, 3 * durationHour ],
|
|
14558
|
-
[ hour, 6, 6 * durationHour ],
|
|
14559
|
-
[ hour, 12, 12 * durationHour ],
|
|
14560
|
-
[ day, 1, durationDay ],
|
|
14561
|
-
[ day, 2, 2 * durationDay ],
|
|
14562
|
-
[ week, 1, durationWeek ],
|
|
14563
|
-
[ month, 1, durationMonth ],
|
|
14564
|
-
[ month, 3, 3 * durationMonth ],
|
|
14565
|
-
[ year, 1, durationYear ]
|
|
14566
|
-
];
|
|
17632
|
+
/***/ "../../../node_modules/d3-shape/src/symbol/circle.js":
|
|
17633
|
+
/*!***********************************************************!*\
|
|
17634
|
+
!*** ../../../node_modules/d3-shape/src/symbol/circle.js ***!
|
|
17635
|
+
\***********************************************************/
|
|
17636
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14567
17637
|
|
|
14568
|
-
|
|
14569
|
-
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
17638
|
+
"use strict";
|
|
17639
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17640
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17641
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17642
|
+
/* harmony export */ });
|
|
17643
|
+
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "../../../node_modules/d3-shape/src/math.js");
|
|
17644
|
+
|
|
17645
|
+
|
|
17646
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
17647
|
+
draw: function(context, size) {
|
|
17648
|
+
var r = Math.sqrt(size / _math_js__WEBPACK_IMPORTED_MODULE_0__.pi);
|
|
17649
|
+
context.moveTo(r, 0);
|
|
17650
|
+
context.arc(0, 0, r, 0, _math_js__WEBPACK_IMPORTED_MODULE_0__.tau);
|
|
14576
17651
|
}
|
|
17652
|
+
});
|
|
14577
17653
|
|
|
14578
|
-
function tickInterval(interval, start, stop, step) {
|
|
14579
|
-
if (interval == null) interval = 10;
|
|
14580
17654
|
|
|
14581
|
-
|
|
14582
|
-
// based on the extent of the domain and a rough estimate of tick size.
|
|
14583
|
-
// Otherwise, assume interval is already a time interval and use it.
|
|
14584
|
-
if (typeof interval === "number") {
|
|
14585
|
-
var target = Math.abs(stop - start) / interval,
|
|
14586
|
-
i = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.bisector)(function(i) { return i[2]; }).right(tickIntervals, target);
|
|
14587
|
-
if (i === tickIntervals.length) {
|
|
14588
|
-
step = (0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickStep)(start / durationYear, stop / durationYear, interval);
|
|
14589
|
-
interval = year;
|
|
14590
|
-
} else if (i) {
|
|
14591
|
-
i = tickIntervals[target / tickIntervals[i - 1][2] < tickIntervals[i][2] / target ? i - 1 : i];
|
|
14592
|
-
step = i[1];
|
|
14593
|
-
interval = i[0];
|
|
14594
|
-
} else {
|
|
14595
|
-
step = Math.max((0,d3_array__WEBPACK_IMPORTED_MODULE_0__.tickStep)(start, stop, interval), 1);
|
|
14596
|
-
interval = millisecond;
|
|
14597
|
-
}
|
|
14598
|
-
}
|
|
17655
|
+
/***/ }),
|
|
14599
17656
|
|
|
14600
|
-
|
|
17657
|
+
/***/ "../../../node_modules/d3-shape/src/symbol/cross.js":
|
|
17658
|
+
/*!**********************************************************!*\
|
|
17659
|
+
!*** ../../../node_modules/d3-shape/src/symbol/cross.js ***!
|
|
17660
|
+
\**********************************************************/
|
|
17661
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17662
|
+
|
|
17663
|
+
"use strict";
|
|
17664
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17665
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17666
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17667
|
+
/* harmony export */ });
|
|
17668
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
17669
|
+
draw: function(context, size) {
|
|
17670
|
+
var r = Math.sqrt(size / 5) / 2;
|
|
17671
|
+
context.moveTo(-3 * r, -r);
|
|
17672
|
+
context.lineTo(-r, -r);
|
|
17673
|
+
context.lineTo(-r, -3 * r);
|
|
17674
|
+
context.lineTo(r, -3 * r);
|
|
17675
|
+
context.lineTo(r, -r);
|
|
17676
|
+
context.lineTo(3 * r, -r);
|
|
17677
|
+
context.lineTo(3 * r, r);
|
|
17678
|
+
context.lineTo(r, r);
|
|
17679
|
+
context.lineTo(r, 3 * r);
|
|
17680
|
+
context.lineTo(-r, 3 * r);
|
|
17681
|
+
context.lineTo(-r, r);
|
|
17682
|
+
context.lineTo(-3 * r, r);
|
|
17683
|
+
context.closePath();
|
|
14601
17684
|
}
|
|
17685
|
+
});
|
|
14602
17686
|
|
|
14603
|
-
scale.invert = function(y) {
|
|
14604
|
-
return new Date(invert(y));
|
|
14605
|
-
};
|
|
14606
17687
|
|
|
14607
|
-
|
|
14608
|
-
return arguments.length ? domain(_array__WEBPACK_IMPORTED_MODULE_1__.map.call(_, number)) : domain().map(date);
|
|
14609
|
-
};
|
|
17688
|
+
/***/ }),
|
|
14610
17689
|
|
|
14611
|
-
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
t;
|
|
14617
|
-
if (r) t = t0, t0 = t1, t1 = t;
|
|
14618
|
-
t = tickInterval(interval, t0, t1, step);
|
|
14619
|
-
t = t ? t.range(t0, t1 + 1) : []; // inclusive stop
|
|
14620
|
-
return r ? t.reverse() : t;
|
|
14621
|
-
};
|
|
17690
|
+
/***/ "../../../node_modules/d3-shape/src/symbol/diamond.js":
|
|
17691
|
+
/*!************************************************************!*\
|
|
17692
|
+
!*** ../../../node_modules/d3-shape/src/symbol/diamond.js ***!
|
|
17693
|
+
\************************************************************/
|
|
17694
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14622
17695
|
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
17696
|
+
"use strict";
|
|
17697
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17698
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17699
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17700
|
+
/* harmony export */ });
|
|
17701
|
+
var tan30 = Math.sqrt(1 / 3),
|
|
17702
|
+
tan30_2 = tan30 * 2;
|
|
14626
17703
|
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
|
|
17704
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
17705
|
+
draw: function(context, size) {
|
|
17706
|
+
var y = Math.sqrt(size / tan30_2),
|
|
17707
|
+
x = y * tan30;
|
|
17708
|
+
context.moveTo(0, -y);
|
|
17709
|
+
context.lineTo(x, 0);
|
|
17710
|
+
context.lineTo(0, y);
|
|
17711
|
+
context.lineTo(-x, 0);
|
|
17712
|
+
context.closePath();
|
|
17713
|
+
}
|
|
17714
|
+
});
|
|
14633
17715
|
|
|
14634
|
-
scale.copy = function() {
|
|
14635
|
-
return (0,_continuous__WEBPACK_IMPORTED_MODULE_2__.copy)(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));
|
|
14636
|
-
};
|
|
14637
17716
|
|
|
14638
|
-
|
|
14639
|
-
}
|
|
17717
|
+
/***/ }),
|
|
14640
17718
|
|
|
14641
|
-
|
|
14642
|
-
|
|
14643
|
-
|
|
17719
|
+
/***/ "../../../node_modules/d3-shape/src/symbol/square.js":
|
|
17720
|
+
/*!***********************************************************!*\
|
|
17721
|
+
!*** ../../../node_modules/d3-shape/src/symbol/square.js ***!
|
|
17722
|
+
\***********************************************************/
|
|
17723
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
17724
|
+
|
|
17725
|
+
"use strict";
|
|
17726
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17727
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17728
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17729
|
+
/* harmony export */ });
|
|
17730
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
17731
|
+
draw: function(context, size) {
|
|
17732
|
+
var w = Math.sqrt(size),
|
|
17733
|
+
x = -w / 2;
|
|
17734
|
+
context.rect(x, x, w, w);
|
|
17735
|
+
}
|
|
17736
|
+
});
|
|
14644
17737
|
|
|
14645
17738
|
|
|
14646
17739
|
/***/ }),
|
|
14647
17740
|
|
|
14648
|
-
/***/ "../../../node_modules/d3-
|
|
14649
|
-
|
|
14650
|
-
!*** ../../../node_modules/d3-
|
|
14651
|
-
|
|
17741
|
+
/***/ "../../../node_modules/d3-shape/src/symbol/star.js":
|
|
17742
|
+
/*!*********************************************************!*\
|
|
17743
|
+
!*** ../../../node_modules/d3-shape/src/symbol/star.js ***!
|
|
17744
|
+
\*********************************************************/
|
|
14652
17745
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14653
17746
|
|
|
14654
17747
|
"use strict";
|
|
14655
17748
|
__webpack_require__.r(__webpack_exports__);
|
|
14656
17749
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14657
|
-
/* harmony export */ "default": () => (
|
|
17750
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14658
17751
|
/* harmony export */ });
|
|
14659
|
-
/* harmony import */ var
|
|
14660
|
-
/* harmony import */ var d3_time_format__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! d3-time-format */ "../../../node_modules/d3-time-format/src/defaultLocale.js");
|
|
14661
|
-
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcYear.js");
|
|
14662
|
-
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcMonth.js");
|
|
14663
|
-
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcWeek.js");
|
|
14664
|
-
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcDay.js");
|
|
14665
|
-
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcHour.js");
|
|
14666
|
-
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/utcMinute.js");
|
|
14667
|
-
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/second.js");
|
|
14668
|
-
/* harmony import */ var d3_time__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! d3-time */ "../../../node_modules/d3-time/src/millisecond.js");
|
|
17752
|
+
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../math.js */ "../../../node_modules/d3-shape/src/math.js");
|
|
14669
17753
|
|
|
14670
17754
|
|
|
17755
|
+
var ka = 0.89081309152928522810,
|
|
17756
|
+
kr = Math.sin(_math_js__WEBPACK_IMPORTED_MODULE_0__.pi / 10) / Math.sin(7 * _math_js__WEBPACK_IMPORTED_MODULE_0__.pi / 10),
|
|
17757
|
+
kx = Math.sin(_math_js__WEBPACK_IMPORTED_MODULE_0__.tau / 10) * kr,
|
|
17758
|
+
ky = -Math.cos(_math_js__WEBPACK_IMPORTED_MODULE_0__.tau / 10) * kr;
|
|
14671
17759
|
|
|
14672
|
-
|
|
14673
|
-
|
|
14674
|
-
|
|
14675
|
-
|
|
17760
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
17761
|
+
draw: function(context, size) {
|
|
17762
|
+
var r = Math.sqrt(size * ka),
|
|
17763
|
+
x = kx * r,
|
|
17764
|
+
y = ky * r;
|
|
17765
|
+
context.moveTo(0, -r);
|
|
17766
|
+
context.lineTo(x, y);
|
|
17767
|
+
for (var i = 1; i < 5; ++i) {
|
|
17768
|
+
var a = _math_js__WEBPACK_IMPORTED_MODULE_0__.tau * i / 5,
|
|
17769
|
+
c = Math.cos(a),
|
|
17770
|
+
s = Math.sin(a);
|
|
17771
|
+
context.lineTo(s * r, -c * r);
|
|
17772
|
+
context.lineTo(c * x - s * y, s * x + c * y);
|
|
17773
|
+
}
|
|
17774
|
+
context.closePath();
|
|
17775
|
+
}
|
|
17776
|
+
});
|
|
14676
17777
|
|
|
14677
17778
|
|
|
14678
17779
|
/***/ }),
|
|
14679
17780
|
|
|
14680
|
-
/***/ "../../../node_modules/d3-
|
|
14681
|
-
|
|
14682
|
-
!*** ../../../node_modules/d3-
|
|
14683
|
-
|
|
17781
|
+
/***/ "../../../node_modules/d3-shape/src/symbol/triangle.js":
|
|
17782
|
+
/*!*************************************************************!*\
|
|
17783
|
+
!*** ../../../node_modules/d3-shape/src/symbol/triangle.js ***!
|
|
17784
|
+
\*************************************************************/
|
|
14684
17785
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14685
17786
|
|
|
14686
17787
|
"use strict";
|
|
14687
17788
|
__webpack_require__.r(__webpack_exports__);
|
|
14688
17789
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14689
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14690
|
-
/* harmony export */ "magma": () => (/* binding */ magma),
|
|
14691
|
-
/* harmony export */ "inferno": () => (/* binding */ inferno),
|
|
14692
|
-
/* harmony export */ "plasma": () => (/* binding */ plasma)
|
|
17790
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14693
17791
|
/* harmony export */ });
|
|
14694
|
-
|
|
17792
|
+
var sqrt3 = Math.sqrt(3);
|
|
14695
17793
|
|
|
17794
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
17795
|
+
draw: function(context, size) {
|
|
17796
|
+
var y = -Math.sqrt(size / (sqrt3 * 3));
|
|
17797
|
+
context.moveTo(0, y * 2);
|
|
17798
|
+
context.lineTo(-sqrt3 * y, -y);
|
|
17799
|
+
context.lineTo(sqrt3 * y, -y);
|
|
17800
|
+
context.closePath();
|
|
17801
|
+
}
|
|
17802
|
+
});
|
|
14696
17803
|
|
|
14697
|
-
function ramp(range) {
|
|
14698
|
-
var n = range.length;
|
|
14699
|
-
return function(t) {
|
|
14700
|
-
return range[Math.max(0, Math.min(n - 1, Math.floor(t * n)))];
|
|
14701
|
-
};
|
|
14702
|
-
}
|
|
14703
17804
|
|
|
14704
|
-
|
|
17805
|
+
/***/ }),
|
|
14705
17806
|
|
|
14706
|
-
|
|
17807
|
+
/***/ "../../../node_modules/d3-shape/src/symbol/wye.js":
|
|
17808
|
+
/*!********************************************************!*\
|
|
17809
|
+
!*** ../../../node_modules/d3-shape/src/symbol/wye.js ***!
|
|
17810
|
+
\********************************************************/
|
|
17811
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
14707
17812
|
|
|
14708
|
-
|
|
17813
|
+
"use strict";
|
|
17814
|
+
__webpack_require__.r(__webpack_exports__);
|
|
17815
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17816
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17817
|
+
/* harmony export */ });
|
|
17818
|
+
var c = -0.5,
|
|
17819
|
+
s = Math.sqrt(3) / 2,
|
|
17820
|
+
k = 1 / Math.sqrt(12),
|
|
17821
|
+
a = (k / 2 + 1) * 3;
|
|
14709
17822
|
|
|
14710
|
-
|
|
17823
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
17824
|
+
draw: function(context, size) {
|
|
17825
|
+
var r = Math.sqrt(size / a),
|
|
17826
|
+
x0 = r / 2,
|
|
17827
|
+
y0 = r * k,
|
|
17828
|
+
x1 = x0,
|
|
17829
|
+
y1 = r * k + r,
|
|
17830
|
+
x2 = -x1,
|
|
17831
|
+
y2 = y1;
|
|
17832
|
+
context.moveTo(x0, y0);
|
|
17833
|
+
context.lineTo(x1, y1);
|
|
17834
|
+
context.lineTo(x2, y2);
|
|
17835
|
+
context.lineTo(c * x0 - s * y0, s * x0 + c * y0);
|
|
17836
|
+
context.lineTo(c * x1 - s * y1, s * x1 + c * y1);
|
|
17837
|
+
context.lineTo(c * x2 - s * y2, s * x2 + c * y2);
|
|
17838
|
+
context.lineTo(c * x0 + s * y0, c * y0 - s * x0);
|
|
17839
|
+
context.lineTo(c * x1 + s * y1, c * y1 - s * x1);
|
|
17840
|
+
context.lineTo(c * x2 + s * y2, c * y2 - s * x2);
|
|
17841
|
+
context.closePath();
|
|
17842
|
+
}
|
|
17843
|
+
});
|
|
14711
17844
|
|
|
14712
17845
|
|
|
14713
17846
|
/***/ }),
|
|
@@ -23332,7 +26465,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23332
26465
|
/* harmony export */ "TimerContext": () => (/* reexport safe */ _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_42__.default),
|
|
23333
26466
|
/* harmony export */ "PortalContext": () => (/* reexport safe */ _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_43__.default),
|
|
23334
26467
|
/* harmony export */ "useAnimationState": () => (/* reexport safe */ _victory_util_hooks__WEBPACK_IMPORTED_MODULE_44__.useAnimationState),
|
|
23335
|
-
/* harmony export */ "usePreviousProps": () => (/* reexport safe */ _victory_util_hooks__WEBPACK_IMPORTED_MODULE_44__.usePreviousProps)
|
|
26468
|
+
/* harmony export */ "usePreviousProps": () => (/* reexport safe */ _victory_util_hooks__WEBPACK_IMPORTED_MODULE_44__.usePreviousProps),
|
|
26469
|
+
/* harmony export */ "LineHelpers": () => (/* reexport module object */ _victory_util_line_helpers__WEBPACK_IMPORTED_MODULE_45__),
|
|
26470
|
+
/* harmony export */ "PointPathHelpers": () => (/* reexport safe */ _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_46__.default)
|
|
23336
26471
|
/* harmony export */ });
|
|
23337
26472
|
/* harmony import */ var _victory_accessible_group_victory_accessible_group__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-accessible-group/victory-accessible-group */ "./victory-accessible-group/victory-accessible-group.js");
|
|
23338
26473
|
/* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./victory-animation/victory-animation */ "./victory-animation/victory-animation.js");
|
|
@@ -23379,6 +26514,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23379
26514
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./victory-util/timer-context */ "./victory-util/timer-context.js");
|
|
23380
26515
|
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./victory-portal/portal-context */ "./victory-portal/portal-context.js");
|
|
23381
26516
|
/* harmony import */ var _victory_util_hooks__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./victory-util/hooks */ "./victory-util/hooks.js");
|
|
26517
|
+
/* harmony import */ var _victory_util_line_helpers__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./victory-util/line-helpers */ "./victory-util/line-helpers.js");
|
|
26518
|
+
/* harmony import */ var _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./victory-util/point-path-helpers */ "./victory-util/point-path-helpers.js");
|
|
23382
26519
|
// This rule doesn't play well with namespaced exports
|
|
23383
26520
|
|
|
23384
26521
|
/* eslint-disable import/export */
|
|
@@ -23443,6 +26580,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23443
26580
|
|
|
23444
26581
|
|
|
23445
26582
|
|
|
26583
|
+
|
|
26584
|
+
|
|
26585
|
+
|
|
26586
|
+
// TODO: Fix this default export
|
|
23446
26587
|
|
|
23447
26588
|
|
|
23448
26589
|
})();
|