victory-voronoi-container 36.4.0 → 36.5.1
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-voronoi-container.js +917 -778
- package/dist/victory-voronoi-container.min.js +1 -1
- package/es/index.js +2 -1
- package/es/victory-voronoi-container.js +11 -9
- package/es/voronoi-helpers.js +2 -1
- package/lib/index.js +2 -1
- package/lib/victory-voronoi-container.js +10 -9
- package/lib/voronoi-helpers.js +2 -1
- package/package.json +7 -7
- package/src/index.js +1 -1
- package/src/victory-voronoi-container.js +21 -20
- package/src/voronoi-helpers.js +18 -18
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryVoronoiContainer"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryVoronoiContainer"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -20,8 +20,8 @@ return /******/ (() => { // webpackBootstrap
|
|
|
20
20
|
"use strict";
|
|
21
21
|
__webpack_require__.r(__webpack_exports__);
|
|
22
22
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23
|
-
/* harmony export */ "
|
|
24
|
-
/* harmony export */ "
|
|
23
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
24
|
+
/* harmony export */ "voronoiContainerMixin": () => (/* binding */ voronoiContainerMixin)
|
|
25
25
|
/* harmony export */ });
|
|
26
26
|
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
27
27
|
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -29,13 +29,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29
29
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
|
|
30
30
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
31
31
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
32
|
-
/* harmony import */ var
|
|
33
|
-
/* harmony import */ var
|
|
34
|
-
/* harmony import */ var
|
|
35
|
-
/* harmony import */ var
|
|
32
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
33
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
34
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
35
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
36
36
|
/* harmony import */ var victory_tooltip__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-tooltip */ "../../victory-tooltip/es/victory-tooltip.js");
|
|
37
|
-
/* harmony import */ var
|
|
38
|
-
/* harmony import */ var
|
|
37
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
38
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
39
39
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
40
40
|
/* harmony import */ var _voronoi_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./voronoi-helpers */ "./voronoi-helpers.js");
|
|
41
41
|
|
|
@@ -63,6 +63,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
63
63
|
|
|
64
64
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
65
65
|
|
|
66
|
+
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; }
|
|
67
|
+
|
|
66
68
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
67
69
|
|
|
68
70
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -71,7 +73,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
71
73
|
|
|
72
74
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
73
75
|
|
|
74
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
76
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
75
77
|
|
|
76
78
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
77
79
|
|
|
@@ -81,10 +83,9 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
81
83
|
|
|
82
84
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
83
85
|
|
|
84
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
85
|
-
|
|
86
|
-
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; }
|
|
86
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
87
87
|
|
|
88
|
+
/* eslint-disable react/no-multi-comp */
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
|
|
@@ -129,7 +130,7 @@ var voronoiContainerMixin = function (base) {
|
|
|
129
130
|
mouseFollowTooltips = props.mouseFollowTooltips;
|
|
130
131
|
var voronoiDimension = this.getDimension(props);
|
|
131
132
|
var point = this.getPoint(points[0]);
|
|
132
|
-
var basePosition =
|
|
133
|
+
var basePosition = victory_core__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, point);
|
|
133
134
|
var center = mouseFollowTooltips ? mousePosition : undefined;
|
|
134
135
|
|
|
135
136
|
if (!voronoiDimension || points.length < 2) {
|
|
@@ -169,7 +170,7 @@ var voronoiContainerMixin = function (base) {
|
|
|
169
170
|
var textArray = text !== undefined ? "".concat(text).split("\n") : [];
|
|
170
171
|
var baseStyle = datum.style && datum.style[type] || {};
|
|
171
172
|
var componentStyle = Array.isArray(componentStyleArray) ? componentStyleArray[index] : componentStyleArray;
|
|
172
|
-
var style =
|
|
173
|
+
var style = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, componentStyle, baseStyle, themeStyles[type]), labelProps);
|
|
173
174
|
var styleArray = textArray.length ? textArray.map(function () {
|
|
174
175
|
return style;
|
|
175
176
|
}) : [style];
|
|
@@ -267,7 +268,7 @@ var voronoiContainerMixin = function (base) {
|
|
|
267
268
|
var labelProps = this.getLabelProps(props, activePoints);
|
|
268
269
|
var text = labelProps.text;
|
|
269
270
|
var showLabel = Array.isArray(text) ? text.filter(Boolean).length : text;
|
|
270
|
-
return showLabel ? /*#__PURE__*/
|
|
271
|
+
return showLabel ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps) : null;
|
|
271
272
|
} else {
|
|
272
273
|
return null;
|
|
273
274
|
}
|
|
@@ -276,35 +277,35 @@ var voronoiContainerMixin = function (base) {
|
|
|
276
277
|
}, {
|
|
277
278
|
key: "getChildren",
|
|
278
279
|
value: function getChildren(props) {
|
|
279
|
-
return [].concat(_toConsumableArray(
|
|
280
|
+
return [].concat(_toConsumableArray(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)), [this.getTooltip(props)]);
|
|
280
281
|
}
|
|
281
282
|
}]);
|
|
282
283
|
|
|
283
284
|
return VictoryVoronoiContainer;
|
|
284
|
-
}(base),
|
|
285
|
-
activateData: (
|
|
286
|
-
activateLabels: (
|
|
287
|
-
disable: (
|
|
288
|
-
labelComponent: (
|
|
289
|
-
labels: (
|
|
290
|
-
mouseFollowTooltips: (
|
|
291
|
-
onActivated: (
|
|
292
|
-
onDeactivated: (
|
|
293
|
-
radius: (
|
|
294
|
-
voronoiBlacklist:
|
|
295
|
-
voronoiDimension:
|
|
296
|
-
voronoiPadding:
|
|
297
|
-
top: (
|
|
298
|
-
bottom: (
|
|
299
|
-
left: (
|
|
300
|
-
right: (
|
|
285
|
+
}(base), _class.displayName = "VictoryVoronoiContainer", _class.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer.propTypes), {}, {
|
|
286
|
+
activateData: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
287
|
+
activateLabels: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
288
|
+
disable: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
289
|
+
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
290
|
+
labels: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
291
|
+
mouseFollowTooltips: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
292
|
+
onActivated: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
293
|
+
onDeactivated: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
294
|
+
radius: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
295
|
+
voronoiBlacklist: prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().string), victory_core__WEBPACK_IMPORTED_MODULE_7__.regExp])),
|
|
296
|
+
voronoiDimension: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["x", "y"]),
|
|
297
|
+
voronoiPadding: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
298
|
+
top: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
299
|
+
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
300
|
+
left: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
301
|
+
right: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
301
302
|
})])
|
|
302
|
-
})
|
|
303
|
+
}), _class.defaultProps = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer.defaultProps), {}, {
|
|
303
304
|
activateData: true,
|
|
304
305
|
activateLabels: true,
|
|
305
|
-
labelComponent: /*#__PURE__*/
|
|
306
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_tooltip__WEBPACK_IMPORTED_MODULE_8__["default"], null),
|
|
306
307
|
voronoiPadding: 5
|
|
307
|
-
})
|
|
308
|
+
}), _class.defaultEvents = function (props) {
|
|
308
309
|
return [{
|
|
309
310
|
target: "parent",
|
|
310
311
|
eventHandlers: {
|
|
@@ -335,9 +336,9 @@ var voronoiContainerMixin = function (base) {
|
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
338
|
}];
|
|
338
|
-
}
|
|
339
|
+
}, _class;
|
|
339
340
|
};
|
|
340
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (voronoiContainerMixin(
|
|
341
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (voronoiContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer));
|
|
341
342
|
|
|
342
343
|
/***/ }),
|
|
343
344
|
|
|
@@ -6624,7 +6625,7 @@ var printWarning = function() {};
|
|
|
6624
6625
|
if (true) {
|
|
6625
6626
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6626
6627
|
var loggedTypeFailures = {};
|
|
6627
|
-
var has =
|
|
6628
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6628
6629
|
|
|
6629
6630
|
printWarning = function(text) {
|
|
6630
6631
|
var message = 'Warning: ' + text;
|
|
@@ -6636,7 +6637,7 @@ if (true) {
|
|
|
6636
6637
|
// This error was thrown as a convenience so that you can use this stack
|
|
6637
6638
|
// to find the callsite that caused this warning to fire.
|
|
6638
6639
|
throw new Error(message);
|
|
6639
|
-
} catch (x) {}
|
|
6640
|
+
} catch (x) { /**/ }
|
|
6640
6641
|
};
|
|
6641
6642
|
}
|
|
6642
6643
|
|
|
@@ -6665,7 +6666,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
6665
6666
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6666
6667
|
var err = Error(
|
|
6667
6668
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6668
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
6669
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6670
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6669
6671
|
);
|
|
6670
6672
|
err.name = 'Invariant Violation';
|
|
6671
6673
|
throw err;
|
|
@@ -6732,13 +6734,13 @@ module.exports = checkPropTypes;
|
|
|
6732
6734
|
|
|
6733
6735
|
|
|
6734
6736
|
|
|
6735
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6737
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6736
6738
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6737
6739
|
|
|
6738
6740
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6741
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6739
6742
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
6740
6743
|
|
|
6741
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6742
6744
|
var printWarning = function() {};
|
|
6743
6745
|
|
|
6744
6746
|
if (true) {
|
|
@@ -6839,6 +6841,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6839
6841
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6840
6842
|
var ReactPropTypes = {
|
|
6841
6843
|
array: createPrimitiveTypeChecker('array'),
|
|
6844
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6842
6845
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
6843
6846
|
func: createPrimitiveTypeChecker('function'),
|
|
6844
6847
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -6884,8 +6887,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6884
6887
|
* is prohibitively expensive if they are created too often, such as what
|
|
6885
6888
|
* happens in oneOfType() for any type before the one that matched.
|
|
6886
6889
|
*/
|
|
6887
|
-
function PropTypeError(message) {
|
|
6890
|
+
function PropTypeError(message, data) {
|
|
6888
6891
|
this.message = message;
|
|
6892
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
6889
6893
|
this.stack = '';
|
|
6890
6894
|
}
|
|
6891
6895
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -6920,7 +6924,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6920
6924
|
) {
|
|
6921
6925
|
printWarning(
|
|
6922
6926
|
'You are manually calling a React.PropTypes validation ' +
|
|
6923
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
6927
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6924
6928
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6925
6929
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6926
6930
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -6959,7 +6963,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6959
6963
|
// 'of type `object`'.
|
|
6960
6964
|
var preciseType = getPreciseType(propValue);
|
|
6961
6965
|
|
|
6962
|
-
return new PropTypeError(
|
|
6966
|
+
return new PropTypeError(
|
|
6967
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6968
|
+
{expectedType: expectedType}
|
|
6969
|
+
);
|
|
6963
6970
|
}
|
|
6964
6971
|
return null;
|
|
6965
6972
|
}
|
|
@@ -7103,14 +7110,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7103
7110
|
}
|
|
7104
7111
|
|
|
7105
7112
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7113
|
+
var expectedTypes = [];
|
|
7106
7114
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
7107
7115
|
var checker = arrayOfTypeCheckers[i];
|
|
7108
|
-
|
|
7116
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
7117
|
+
if (checkerResult == null) {
|
|
7109
7118
|
return null;
|
|
7110
7119
|
}
|
|
7120
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
7121
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
7122
|
+
}
|
|
7111
7123
|
}
|
|
7112
|
-
|
|
7113
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
7124
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
7125
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
7114
7126
|
}
|
|
7115
7127
|
return createChainableTypeChecker(validate);
|
|
7116
7128
|
}
|
|
@@ -7125,6 +7137,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7125
7137
|
return createChainableTypeChecker(validate);
|
|
7126
7138
|
}
|
|
7127
7139
|
|
|
7140
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
7141
|
+
return new PropTypeError(
|
|
7142
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
7143
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
7144
|
+
);
|
|
7145
|
+
}
|
|
7146
|
+
|
|
7128
7147
|
function createShapeTypeChecker(shapeTypes) {
|
|
7129
7148
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7130
7149
|
var propValue = props[propName];
|
|
@@ -7134,8 +7153,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7134
7153
|
}
|
|
7135
7154
|
for (var key in shapeTypes) {
|
|
7136
7155
|
var checker = shapeTypes[key];
|
|
7137
|
-
if (
|
|
7138
|
-
|
|
7156
|
+
if (typeof checker !== 'function') {
|
|
7157
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
7139
7158
|
}
|
|
7140
7159
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
7141
7160
|
if (error) {
|
|
@@ -7154,16 +7173,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7154
7173
|
if (propType !== 'object') {
|
|
7155
7174
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
7156
7175
|
}
|
|
7157
|
-
// We need to check all keys in case some are required but missing from
|
|
7158
|
-
// props.
|
|
7176
|
+
// We need to check all keys in case some are required but missing from props.
|
|
7159
7177
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
7160
7178
|
for (var key in allKeys) {
|
|
7161
7179
|
var checker = shapeTypes[key];
|
|
7180
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
7181
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
7182
|
+
}
|
|
7162
7183
|
if (!checker) {
|
|
7163
7184
|
return new PropTypeError(
|
|
7164
7185
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
7165
7186
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
7166
|
-
'\nValid keys: ' +
|
|
7187
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
7167
7188
|
);
|
|
7168
7189
|
}
|
|
7169
7190
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -7332,7 +7353,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7332
7353
|
*/
|
|
7333
7354
|
|
|
7334
7355
|
if (true) {
|
|
7335
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
7356
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
7336
7357
|
|
|
7337
7358
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7338
7359
|
// http://fb.me/prop-types-in-prod
|
|
@@ -7366,115 +7387,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
7366
7387
|
|
|
7367
7388
|
/***/ }),
|
|
7368
7389
|
|
|
7369
|
-
/***/ "../../../node_modules/
|
|
7370
|
-
|
|
7371
|
-
!*** ../../../node_modules/
|
|
7372
|
-
|
|
7390
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
7391
|
+
/*!***************************************************!*\
|
|
7392
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
7393
|
+
\***************************************************/
|
|
7373
7394
|
/***/ ((module) => {
|
|
7374
7395
|
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
var isArray = Array.isArray;
|
|
7379
|
-
var keyList = Object.keys;
|
|
7380
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
7381
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
7382
|
-
|
|
7383
|
-
function equal(a, b) {
|
|
7384
|
-
// fast-deep-equal index.js 2.0.1
|
|
7385
|
-
if (a === b) return true;
|
|
7386
|
-
|
|
7387
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7388
|
-
var arrA = isArray(a)
|
|
7389
|
-
, arrB = isArray(b)
|
|
7390
|
-
, i
|
|
7391
|
-
, length
|
|
7392
|
-
, key;
|
|
7393
|
-
|
|
7394
|
-
if (arrA && arrB) {
|
|
7395
|
-
length = a.length;
|
|
7396
|
-
if (length != b.length) return false;
|
|
7397
|
-
for (i = length; i-- !== 0;)
|
|
7398
|
-
if (!equal(a[i], b[i])) return false;
|
|
7399
|
-
return true;
|
|
7400
|
-
}
|
|
7401
|
-
|
|
7402
|
-
if (arrA != arrB) return false;
|
|
7403
|
-
|
|
7404
|
-
var dateA = a instanceof Date
|
|
7405
|
-
, dateB = b instanceof Date;
|
|
7406
|
-
if (dateA != dateB) return false;
|
|
7407
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
7408
|
-
|
|
7409
|
-
var regexpA = a instanceof RegExp
|
|
7410
|
-
, regexpB = b instanceof RegExp;
|
|
7411
|
-
if (regexpA != regexpB) return false;
|
|
7412
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
7413
|
-
|
|
7414
|
-
var keys = keyList(a);
|
|
7415
|
-
length = keys.length;
|
|
7416
|
-
|
|
7417
|
-
if (length !== keyList(b).length)
|
|
7418
|
-
return false;
|
|
7419
|
-
|
|
7420
|
-
for (i = length; i-- !== 0;)
|
|
7421
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
7422
|
-
// end fast-deep-equal
|
|
7423
|
-
|
|
7424
|
-
// start react-fast-compare
|
|
7425
|
-
// custom handling for DOM elements
|
|
7426
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
7427
|
-
return a === b;
|
|
7428
|
-
|
|
7429
|
-
// custom handling for React
|
|
7430
|
-
for (i = length; i-- !== 0;) {
|
|
7431
|
-
key = keys[i];
|
|
7432
|
-
if (key === '_owner' && a.$$typeof) {
|
|
7433
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
7434
|
-
// _owner contains circular references
|
|
7435
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
7436
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
7437
|
-
continue;
|
|
7438
|
-
} else {
|
|
7439
|
-
// all other properties should be traversed as usual
|
|
7440
|
-
if (!equal(a[key], b[key])) return false;
|
|
7441
|
-
}
|
|
7442
|
-
}
|
|
7443
|
-
// end react-fast-compare
|
|
7444
|
-
|
|
7445
|
-
// fast-deep-equal index.js 2.0.1
|
|
7446
|
-
return true;
|
|
7447
|
-
}
|
|
7448
|
-
|
|
7449
|
-
return a !== a && b !== b;
|
|
7450
|
-
}
|
|
7451
|
-
// end fast-deep-equal
|
|
7452
|
-
|
|
7453
|
-
module.exports = function exportedEqual(a, b) {
|
|
7454
|
-
try {
|
|
7455
|
-
return equal(a, b);
|
|
7456
|
-
} catch (error) {
|
|
7457
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
7458
|
-
// warn on circular references, don't crash
|
|
7459
|
-
// browsers give this different errors name and messages:
|
|
7460
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7461
|
-
// firefox: "InternalError", too much recursion"
|
|
7462
|
-
// edge: "Error", "Out of stack space"
|
|
7463
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
7464
|
-
return false;
|
|
7465
|
-
}
|
|
7466
|
-
// some other error. we should definitely know about these
|
|
7467
|
-
throw error;
|
|
7468
|
-
}
|
|
7469
|
-
};
|
|
7396
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
7470
7397
|
|
|
7471
7398
|
|
|
7472
7399
|
/***/ }),
|
|
7473
7400
|
|
|
7474
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
7475
|
-
|
|
7476
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
7477
|
-
|
|
7401
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
7402
|
+
/*!******************************************************************************************!*\
|
|
7403
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7404
|
+
\******************************************************************************************/
|
|
7478
7405
|
/***/ ((__unused_webpack_module, exports) => {
|
|
7479
7406
|
|
|
7480
7407
|
"use strict";
|
|
@@ -7663,18 +7590,162 @@ exports.typeOf = typeOf;
|
|
|
7663
7590
|
|
|
7664
7591
|
/***/ }),
|
|
7665
7592
|
|
|
7666
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
7667
|
-
|
|
7668
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
7669
|
-
|
|
7593
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
7594
|
+
/*!***********************************************************************!*\
|
|
7595
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
7596
|
+
\***********************************************************************/
|
|
7670
7597
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7671
7598
|
|
|
7672
7599
|
"use strict";
|
|
7673
7600
|
|
|
7674
7601
|
|
|
7675
7602
|
if (false) {} else {
|
|
7676
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
7603
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
7604
|
+
}
|
|
7605
|
+
|
|
7606
|
+
|
|
7607
|
+
/***/ }),
|
|
7608
|
+
|
|
7609
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
7610
|
+
/*!*********************************************************!*\
|
|
7611
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
7612
|
+
\*********************************************************/
|
|
7613
|
+
/***/ ((module) => {
|
|
7614
|
+
|
|
7615
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7616
|
+
|
|
7617
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
7618
|
+
var hasMap = typeof Map === 'function';
|
|
7619
|
+
var hasSet = typeof Set === 'function';
|
|
7620
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7621
|
+
|
|
7622
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7623
|
+
|
|
7624
|
+
function equal(a, b) {
|
|
7625
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7626
|
+
if (a === b) return true;
|
|
7627
|
+
|
|
7628
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7629
|
+
if (a.constructor !== b.constructor) return false;
|
|
7630
|
+
|
|
7631
|
+
var length, i, keys;
|
|
7632
|
+
if (Array.isArray(a)) {
|
|
7633
|
+
length = a.length;
|
|
7634
|
+
if (length != b.length) return false;
|
|
7635
|
+
for (i = length; i-- !== 0;)
|
|
7636
|
+
if (!equal(a[i], b[i])) return false;
|
|
7637
|
+
return true;
|
|
7638
|
+
}
|
|
7639
|
+
|
|
7640
|
+
// START: Modifications:
|
|
7641
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7642
|
+
// to co-exist with es5.
|
|
7643
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7644
|
+
// Basically, take:
|
|
7645
|
+
//
|
|
7646
|
+
// ```js
|
|
7647
|
+
// for (i of a.entries())
|
|
7648
|
+
// if (!b.has(i[0])) return false;
|
|
7649
|
+
// ```
|
|
7650
|
+
//
|
|
7651
|
+
// ... and convert to:
|
|
7652
|
+
//
|
|
7653
|
+
// ```js
|
|
7654
|
+
// it = a.entries();
|
|
7655
|
+
// while (!(i = it.next()).done)
|
|
7656
|
+
// if (!b.has(i.value[0])) return false;
|
|
7657
|
+
// ```
|
|
7658
|
+
//
|
|
7659
|
+
// **Note**: `i` access switches to `i.value`.
|
|
7660
|
+
var it;
|
|
7661
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7662
|
+
if (a.size !== b.size) return false;
|
|
7663
|
+
it = a.entries();
|
|
7664
|
+
while (!(i = it.next()).done)
|
|
7665
|
+
if (!b.has(i.value[0])) return false;
|
|
7666
|
+
it = a.entries();
|
|
7667
|
+
while (!(i = it.next()).done)
|
|
7668
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7669
|
+
return true;
|
|
7670
|
+
}
|
|
7671
|
+
|
|
7672
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7673
|
+
if (a.size !== b.size) return false;
|
|
7674
|
+
it = a.entries();
|
|
7675
|
+
while (!(i = it.next()).done)
|
|
7676
|
+
if (!b.has(i.value[0])) return false;
|
|
7677
|
+
return true;
|
|
7678
|
+
}
|
|
7679
|
+
// END: Modifications
|
|
7680
|
+
|
|
7681
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7682
|
+
length = a.length;
|
|
7683
|
+
if (length != b.length) return false;
|
|
7684
|
+
for (i = length; i-- !== 0;)
|
|
7685
|
+
if (a[i] !== b[i]) return false;
|
|
7686
|
+
return true;
|
|
7687
|
+
}
|
|
7688
|
+
|
|
7689
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7690
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7691
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7692
|
+
|
|
7693
|
+
keys = Object.keys(a);
|
|
7694
|
+
length = keys.length;
|
|
7695
|
+
if (length !== Object.keys(b).length) return false;
|
|
7696
|
+
|
|
7697
|
+
for (i = length; i-- !== 0;)
|
|
7698
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7699
|
+
// END: fast-deep-equal
|
|
7700
|
+
|
|
7701
|
+
// START: react-fast-compare
|
|
7702
|
+
// custom handling for DOM elements
|
|
7703
|
+
if (hasElementType && a instanceof Element) return false;
|
|
7704
|
+
|
|
7705
|
+
// custom handling for React/Preact
|
|
7706
|
+
for (i = length; i-- !== 0;) {
|
|
7707
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7708
|
+
// React-specific: avoid traversing React elements' _owner
|
|
7709
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7710
|
+
// __v = $_original / $_vnode
|
|
7711
|
+
// __o = $_owner
|
|
7712
|
+
// These properties contain circular references and are not needed when
|
|
7713
|
+
// comparing the actual elements (and not their owners)
|
|
7714
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7715
|
+
|
|
7716
|
+
continue;
|
|
7717
|
+
}
|
|
7718
|
+
|
|
7719
|
+
// all other properties should be traversed as usual
|
|
7720
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7721
|
+
}
|
|
7722
|
+
// END: react-fast-compare
|
|
7723
|
+
|
|
7724
|
+
// START: fast-deep-equal
|
|
7725
|
+
return true;
|
|
7726
|
+
}
|
|
7727
|
+
|
|
7728
|
+
return a !== a && b !== b;
|
|
7677
7729
|
}
|
|
7730
|
+
// end fast-deep-equal
|
|
7731
|
+
|
|
7732
|
+
module.exports = function isEqual(a, b) {
|
|
7733
|
+
try {
|
|
7734
|
+
return equal(a, b);
|
|
7735
|
+
} catch (error) {
|
|
7736
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7737
|
+
// warn on circular references, don't crash
|
|
7738
|
+
// browsers give this different errors name and messages:
|
|
7739
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7740
|
+
// firefox: "InternalError", too much recursion"
|
|
7741
|
+
// edge: "Error", "Out of stack space"
|
|
7742
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7743
|
+
return false;
|
|
7744
|
+
}
|
|
7745
|
+
// some other error. we should definitely know about these
|
|
7746
|
+
throw error;
|
|
7747
|
+
}
|
|
7748
|
+
};
|
|
7678
7749
|
|
|
7679
7750
|
|
|
7680
7751
|
/***/ }),
|
|
@@ -7688,7 +7759,7 @@ if (false) {} else {
|
|
|
7688
7759
|
"use strict";
|
|
7689
7760
|
__webpack_require__.r(__webpack_exports__);
|
|
7690
7761
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7691
|
-
/* harmony export */ "
|
|
7762
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
7692
7763
|
/* harmony export */ });
|
|
7693
7764
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7694
7765
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7702,26 +7773,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7702
7773
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
7703
7774
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
7704
7775
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
7705
|
-
/* harmony import */ var
|
|
7706
|
-
/* harmony import */ var
|
|
7776
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7777
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
7707
7778
|
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
7708
7779
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7709
|
-
/* harmony import */ var
|
|
7780
|
+
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
7710
7781
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
7711
|
-
/* harmony import */ var
|
|
7712
|
-
/* harmony import */ var
|
|
7782
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7783
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
7713
7784
|
|
|
7714
7785
|
|
|
7715
7786
|
|
|
7716
7787
|
|
|
7717
7788
|
|
|
7718
7789
|
|
|
7719
|
-
function _extends() { _extends = Object.assign
|
|
7790
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
7720
7791
|
|
|
7721
7792
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7722
7793
|
|
|
7723
7794
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7724
7795
|
|
|
7796
|
+
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; }
|
|
7797
|
+
|
|
7725
7798
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7726
7799
|
|
|
7727
7800
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -7730,7 +7803,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7730
7803
|
|
|
7731
7804
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
7732
7805
|
|
|
7733
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7806
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7734
7807
|
|
|
7735
7808
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7736
7809
|
|
|
@@ -7740,10 +7813,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7740
7813
|
|
|
7741
7814
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7742
7815
|
|
|
7743
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7744
|
-
|
|
7745
|
-
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; }
|
|
7746
|
-
|
|
7816
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7747
7817
|
|
|
7748
7818
|
|
|
7749
7819
|
|
|
@@ -7758,13 +7828,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7758
7828
|
|
|
7759
7829
|
var _super = _createSuper(VictoryContainer);
|
|
7760
7830
|
|
|
7831
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7832
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7761
7833
|
function VictoryContainer(props) {
|
|
7762
7834
|
var _this;
|
|
7763
7835
|
|
|
7764
7836
|
_classCallCheck(this, VictoryContainer);
|
|
7765
7837
|
|
|
7766
7838
|
_this = _super.call(this, props);
|
|
7767
|
-
_this.containerId =
|
|
7839
|
+
_this.containerId = void 0;
|
|
7840
|
+
_this.portalRef = void 0;
|
|
7841
|
+
_this.containerRef = void 0;
|
|
7842
|
+
_this.shouldHandleWheel = void 0;
|
|
7768
7843
|
|
|
7769
7844
|
_this.savePortalRef = function (portal) {
|
|
7770
7845
|
_this.portalRef = portal;
|
|
@@ -7783,18 +7858,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7783
7858
|
return _this.portalRef.portalDeregister(key);
|
|
7784
7859
|
};
|
|
7785
7860
|
|
|
7786
|
-
_this.saveContainerRef =
|
|
7861
|
+
_this.saveContainerRef = function (container) {
|
|
7862
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
7863
|
+
_this.props.containerRef(container);
|
|
7864
|
+
}
|
|
7865
|
+
|
|
7787
7866
|
_this.containerRef = container;
|
|
7788
7867
|
return container;
|
|
7789
7868
|
};
|
|
7790
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
7791
7869
|
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
};
|
|
7796
|
-
}
|
|
7870
|
+
_this.handleWheel = function (e) {
|
|
7871
|
+
return e.preventDefault();
|
|
7872
|
+
};
|
|
7797
7873
|
|
|
7874
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
7875
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
7798
7876
|
return _this;
|
|
7799
7877
|
}
|
|
7800
7878
|
|
|
@@ -7887,7 +7965,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7887
7965
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
7888
7966
|
style: portalSvgStyle
|
|
7889
7967
|
};
|
|
7890
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
7968
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
7891
7969
|
value: {
|
|
7892
7970
|
portalUpdate: this.portalUpdate,
|
|
7893
7971
|
portalRegister: this.portalRegister,
|
|
@@ -7922,8 +8000,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7922
8000
|
tabIndex = _this$props.tabIndex,
|
|
7923
8001
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
7924
8002
|
role = _this$props.role;
|
|
7925
|
-
var style = responsive ? this.props.style :
|
|
7926
|
-
var userProps =
|
|
8003
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
8004
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
7927
8005
|
|
|
7928
8006
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
7929
8007
|
width: width,
|
|
@@ -7942,53 +8020,47 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7942
8020
|
|
|
7943
8021
|
return VictoryContainer;
|
|
7944
8022
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
7957
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
7958
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8023
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
8024
|
+
VictoryContainer.role = "container";
|
|
8025
|
+
VictoryContainer.propTypes = {
|
|
8026
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8027
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8028
|
+
children: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)]),
|
|
8029
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8030
|
+
containerId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
8031
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
8032
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8033
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7959
8034
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7960
|
-
name: (
|
|
7961
|
-
origin:
|
|
8035
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8036
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
7962
8037
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7963
8038
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7964
8039
|
}),
|
|
7965
|
-
ouiaId:
|
|
7966
|
-
ouiaSafe: (
|
|
7967
|
-
ouiaType: (
|
|
7968
|
-
polar: (
|
|
7969
|
-
portalComponent: (
|
|
8040
|
+
ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
8041
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8042
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8043
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8044
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
7970
8045
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
7971
|
-
preserveAspectRatio: (
|
|
7972
|
-
responsive: (
|
|
7973
|
-
role: (
|
|
7974
|
-
style: (
|
|
7975
|
-
tabIndex: (
|
|
7976
|
-
theme: (
|
|
7977
|
-
title: (
|
|
8046
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8047
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8048
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8049
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8050
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
8051
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8052
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7978
8053
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7979
|
-
}
|
|
7980
|
-
|
|
7981
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
8054
|
+
};
|
|
8055
|
+
VictoryContainer.defaultProps = {
|
|
7982
8056
|
className: "VictoryContainer",
|
|
7983
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
8057
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
7984
8058
|
portalZIndex: 99,
|
|
7985
8059
|
responsive: true,
|
|
7986
8060
|
role: "img"
|
|
7987
|
-
}
|
|
7988
|
-
|
|
7989
|
-
|
|
7990
|
-
|
|
7991
|
-
|
|
8061
|
+
};
|
|
8062
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
8063
|
+
//# sourceMappingURL=victory-container.js.map
|
|
7992
8064
|
|
|
7993
8065
|
/***/ }),
|
|
7994
8066
|
|
|
@@ -8001,7 +8073,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
8001
8073
|
"use strict";
|
|
8002
8074
|
__webpack_require__.r(__webpack_exports__);
|
|
8003
8075
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8004
|
-
/* harmony export */ "
|
|
8076
|
+
/* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
|
|
8005
8077
|
/* harmony export */ });
|
|
8006
8078
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
8007
8079
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8009,20 +8081,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8009
8081
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
8010
8082
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8011
8083
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
|
|
8012
|
-
/* harmony import */ var
|
|
8013
|
-
/* harmony import */ var
|
|
8014
|
-
/* harmony import */ var
|
|
8015
|
-
/* harmony import */ var
|
|
8084
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8085
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
|
|
8086
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
8087
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
8016
8088
|
/* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
|
|
8017
|
-
/* harmony import */ var
|
|
8018
|
-
/* harmony import */ var
|
|
8019
|
-
/* harmony import */ var
|
|
8020
|
-
/* harmony import */ var
|
|
8021
|
-
/* harmony import */ var
|
|
8022
|
-
/* harmony import */ var
|
|
8023
|
-
/* harmony import */ var
|
|
8024
|
-
/* harmony import */ var
|
|
8089
|
+
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
8090
|
+
/* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
|
|
8091
|
+
/* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../victory-primitives/tspan */ "../../victory-core/es/victory-primitives/tspan.js");
|
|
8092
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8093
|
+
/* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/label-helpers */ "../../victory-core/es/victory-util/label-helpers.js");
|
|
8094
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8095
|
+
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
8096
|
+
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
8025
8097
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
8098
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
8026
8099
|
|
|
8027
8100
|
|
|
8028
8101
|
|
|
@@ -8057,6 +8130,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8057
8130
|
|
|
8058
8131
|
|
|
8059
8132
|
|
|
8133
|
+
|
|
8060
8134
|
var defaultStyles = {
|
|
8061
8135
|
fill: "#252525",
|
|
8062
8136
|
fontSize: 14,
|
|
@@ -8069,7 +8143,7 @@ var getPosition = function (props, dimension) {
|
|
|
8069
8143
|
return 0;
|
|
8070
8144
|
}
|
|
8071
8145
|
|
|
8072
|
-
var scaledPoint =
|
|
8146
|
+
var scaledPoint = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, props.datum);
|
|
8073
8147
|
return scaledPoint[dimension];
|
|
8074
8148
|
};
|
|
8075
8149
|
|
|
@@ -8086,7 +8160,7 @@ var getFontSize = function (style) {
|
|
|
8086
8160
|
if (!isNaN(fontSize)) {
|
|
8087
8161
|
return fontSize;
|
|
8088
8162
|
} else {
|
|
8089
|
-
|
|
8163
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_5__.warn("fontSize should be expressed as a number of pixels");
|
|
8090
8164
|
return defaultStyles.fontSize;
|
|
8091
8165
|
}
|
|
8092
8166
|
}
|
|
@@ -8107,7 +8181,7 @@ var shouldUseMultilineBackgrounds = function (props) {
|
|
|
8107
8181
|
|
|
8108
8182
|
var getStyles = function (style, props) {
|
|
8109
8183
|
if (props.disableInlineStyles) {
|
|
8110
|
-
var baseStyles =
|
|
8184
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8111
8185
|
return {
|
|
8112
8186
|
// Font size is necessary to calculate the y position of the label
|
|
8113
8187
|
fontSize: getFontSize(baseStyles)
|
|
@@ -8116,7 +8190,7 @@ var getStyles = function (style, props) {
|
|
|
8116
8190
|
|
|
8117
8191
|
var getSingleStyle = function (s) {
|
|
8118
8192
|
s = s ? lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, s, defaultStyles) : defaultStyles;
|
|
8119
|
-
var baseStyles =
|
|
8193
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8120
8194
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, baseStyles, {
|
|
8121
8195
|
fontSize: getFontSize(baseStyles)
|
|
8122
8196
|
});
|
|
@@ -8133,28 +8207,28 @@ var getBackgroundStyles = function (style, props) {
|
|
|
8133
8207
|
}
|
|
8134
8208
|
|
|
8135
8209
|
return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) {
|
|
8136
|
-
return
|
|
8137
|
-
}) :
|
|
8210
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8211
|
+
}) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8138
8212
|
};
|
|
8139
8213
|
|
|
8140
8214
|
var getBackgroundPadding = function (props) {
|
|
8141
8215
|
if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
|
|
8142
8216
|
return props.backgroundPadding.map(function (backgroundPadding) {
|
|
8143
|
-
var padding =
|
|
8144
|
-
return
|
|
8217
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(backgroundPadding, props);
|
|
8218
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8145
8219
|
padding: padding
|
|
8146
8220
|
});
|
|
8147
8221
|
});
|
|
8148
8222
|
} else {
|
|
8149
|
-
var padding =
|
|
8150
|
-
return
|
|
8223
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.backgroundPadding, props);
|
|
8224
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8151
8225
|
padding: padding
|
|
8152
8226
|
});
|
|
8153
8227
|
}
|
|
8154
8228
|
};
|
|
8155
8229
|
|
|
8156
8230
|
var getLineHeight = function (props) {
|
|
8157
|
-
var lineHeight =
|
|
8231
|
+
var lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.lineHeight, props);
|
|
8158
8232
|
|
|
8159
8233
|
if (Array.isArray(lineHeight)) {
|
|
8160
8234
|
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
|
|
@@ -8170,11 +8244,11 @@ var getContent = function (text, props) {
|
|
|
8170
8244
|
|
|
8171
8245
|
if (Array.isArray(text)) {
|
|
8172
8246
|
return text.map(function (line) {
|
|
8173
|
-
return
|
|
8247
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(line, props);
|
|
8174
8248
|
});
|
|
8175
8249
|
}
|
|
8176
8250
|
|
|
8177
|
-
var child =
|
|
8251
|
+
var child = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(text, props);
|
|
8178
8252
|
|
|
8179
8253
|
if (child === undefined || child === null) {
|
|
8180
8254
|
return undefined;
|
|
@@ -8184,10 +8258,10 @@ var getContent = function (text, props) {
|
|
|
8184
8258
|
};
|
|
8185
8259
|
|
|
8186
8260
|
var getDy = function (props, verticalAnchor, lineHeight) {
|
|
8187
|
-
var dy = props.dy ?
|
|
8261
|
+
var dy = props.dy ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dy, props) : 0;
|
|
8188
8262
|
var length = props.inline ? 1 : props.text.length;
|
|
8189
|
-
var capHeight =
|
|
8190
|
-
var anchor = verticalAnchor ?
|
|
8263
|
+
var capHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.capHeight, props);
|
|
8264
|
+
var anchor = verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(verticalAnchor, props) : "middle";
|
|
8191
8265
|
|
|
8192
8266
|
var fontSizes = _toConsumableArray(Array(length).keys()).map(function (i) {
|
|
8193
8267
|
return getSingleValue(props.style, i).fontSize;
|
|
@@ -8215,15 +8289,15 @@ var getDy = function (props, verticalAnchor, lineHeight) {
|
|
|
8215
8289
|
var getTransform = function (props, x, y) {
|
|
8216
8290
|
var polar = props.polar;
|
|
8217
8291
|
var style = getSingleValue(props.style);
|
|
8218
|
-
var defaultAngle = polar ?
|
|
8219
|
-
var baseAngle = style.angle === undefined ?
|
|
8292
|
+
var defaultAngle = polar ? _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(props) : 0;
|
|
8293
|
+
var baseAngle = style.angle === undefined ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.angle, props) : style.angle;
|
|
8220
8294
|
var angle = baseAngle === undefined ? defaultAngle : baseAngle;
|
|
8221
8295
|
var transform = props.transform || style.transform;
|
|
8222
|
-
var transformPart = transform &&
|
|
8296
|
+
var transformPart = transform && _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(transform, props);
|
|
8223
8297
|
var rotatePart = angle && {
|
|
8224
8298
|
rotate: [angle, x, y]
|
|
8225
8299
|
};
|
|
8226
|
-
return transformPart || angle ?
|
|
8300
|
+
return transformPart || angle ? _victory_util_style__WEBPACK_IMPORTED_MODULE_7__.toTransformString(transformPart, rotatePart) : undefined;
|
|
8227
8301
|
};
|
|
8228
8302
|
|
|
8229
8303
|
var getXCoordinate = function (calculatedProps, labelSizeWidth) {
|
|
@@ -8304,7 +8378,7 @@ var getFullBackground = function (calculatedProps, tspanValues) {
|
|
|
8304
8378
|
x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
|
|
8305
8379
|
y: yCoordinate
|
|
8306
8380
|
};
|
|
8307
|
-
return /*#__PURE__*/
|
|
8381
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8308
8382
|
};
|
|
8309
8383
|
|
|
8310
8384
|
var getInlineXOffset = function (calculatedProps, textElements, index) {
|
|
@@ -8386,7 +8460,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
|
|
|
8386
8460
|
x: xCoord - padding.left,
|
|
8387
8461
|
y: yCoord
|
|
8388
8462
|
};
|
|
8389
|
-
return /*#__PURE__*/
|
|
8463
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8390
8464
|
});
|
|
8391
8465
|
};
|
|
8392
8466
|
|
|
@@ -8437,7 +8511,7 @@ var evaluateProps = function (props) {
|
|
|
8437
8511
|
style: style,
|
|
8438
8512
|
backgroundStyle: backgroundStyle
|
|
8439
8513
|
}));
|
|
8440
|
-
var id =
|
|
8514
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
|
|
8441
8515
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
|
|
8442
8516
|
backgroundStyle: backgroundStyle,
|
|
8443
8517
|
backgroundPadding: backgroundPadding,
|
|
@@ -8448,13 +8522,13 @@ var evaluateProps = function (props) {
|
|
|
8448
8522
|
};
|
|
8449
8523
|
|
|
8450
8524
|
var getCalculatedProps = function (props) {
|
|
8451
|
-
var ariaLabel =
|
|
8525
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
|
|
8452
8526
|
var style = getSingleValue(props.style);
|
|
8453
8527
|
var lineHeight = getLineHeight(props);
|
|
8454
|
-
var direction = props.direction ?
|
|
8455
|
-
var textAnchor = props.textAnchor ?
|
|
8456
|
-
var verticalAnchor = props.verticalAnchor ?
|
|
8457
|
-
var dx = props.dx ?
|
|
8528
|
+
var direction = props.direction ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.direction, props) : "inherit";
|
|
8529
|
+
var textAnchor = props.textAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.textAnchor, props) : style.textAnchor || "start";
|
|
8530
|
+
var verticalAnchor = props.verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.verticalAnchor, props) : style.verticalAnchor || "middle";
|
|
8531
|
+
var dx = props.dx ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dx, props) : 0;
|
|
8458
8532
|
var dy = getDy(props, verticalAnchor, lineHeight);
|
|
8459
8533
|
var x = props.x !== undefined ? props.x : getPosition(props, "x");
|
|
8460
8534
|
var y = props.y !== undefined ? props.y : getPosition(props, "y");
|
|
@@ -8493,6 +8567,7 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8493
8567
|
tabIndex = calculatedProps.tabIndex,
|
|
8494
8568
|
tspanComponent = calculatedProps.tspanComponent,
|
|
8495
8569
|
textComponent = calculatedProps.textComponent;
|
|
8570
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(calculatedProps);
|
|
8496
8571
|
|
|
8497
8572
|
var textProps = _objectSpread(_objectSpread({
|
|
8498
8573
|
"aria-label": ariaLabel,
|
|
@@ -8505,10 +8580,10 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8505
8580
|
transform: transform,
|
|
8506
8581
|
className: className,
|
|
8507
8582
|
title: title,
|
|
8508
|
-
desc:
|
|
8509
|
-
tabIndex:
|
|
8583
|
+
desc: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(desc, calculatedProps),
|
|
8584
|
+
tabIndex: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(tabIndex, calculatedProps),
|
|
8510
8585
|
id: id
|
|
8511
|
-
});
|
|
8586
|
+
}, userProps);
|
|
8512
8587
|
|
|
8513
8588
|
var tspans = text.map(function (line, i) {
|
|
8514
8589
|
var currentStyle = tspanValues[i].style;
|
|
@@ -8521,9 +8596,9 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8521
8596
|
style: currentStyle,
|
|
8522
8597
|
children: line
|
|
8523
8598
|
};
|
|
8524
|
-
return /*#__PURE__*/
|
|
8599
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(tspanComponent, tspanProps);
|
|
8525
8600
|
});
|
|
8526
|
-
return /*#__PURE__*/
|
|
8601
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(textComponent, textProps, tspans);
|
|
8527
8602
|
};
|
|
8528
8603
|
|
|
8529
8604
|
var VictoryLabel = function (props) {
|
|
@@ -8548,6 +8623,7 @@ var VictoryLabel = function (props) {
|
|
|
8548
8623
|
fontSize: currentStyle.fontSize || defaultStyles.fontSize,
|
|
8549
8624
|
capHeight: capHeightPx,
|
|
8550
8625
|
text: line,
|
|
8626
|
+
// @ts-expect-error TODO: This looks like a bug:
|
|
8551
8627
|
textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
|
|
8552
8628
|
lineHeight: currentLineHeight,
|
|
8553
8629
|
backgroundPadding: getSingleValue(backgroundPadding, i)
|
|
@@ -8558,71 +8634,75 @@ var VictoryLabel = function (props) {
|
|
|
8558
8634
|
if (props.backgroundStyle) {
|
|
8559
8635
|
var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
|
|
8560
8636
|
var children = [backgroundElement, label];
|
|
8561
|
-
var backgroundWithLabel = /*#__PURE__*/
|
|
8562
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
8637
|
+
var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
|
|
8638
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
|
|
8563
8639
|
}
|
|
8564
8640
|
|
|
8565
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
8641
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
|
|
8566
8642
|
};
|
|
8567
|
-
|
|
8568
8643
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8569
8644
|
VictoryLabel.role = "label";
|
|
8570
8645
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
8571
8646
|
VictoryLabel.propTypes = {
|
|
8572
|
-
active: (
|
|
8573
|
-
angle:
|
|
8574
|
-
ariaLabel:
|
|
8575
|
-
backgroundComponent: (
|
|
8576
|
-
backgroundPadding:
|
|
8577
|
-
backgroundStyle:
|
|
8578
|
-
capHeight:
|
|
8579
|
-
className: (
|
|
8580
|
-
data: (
|
|
8581
|
-
datum: (
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8592
|
-
|
|
8593
|
-
|
|
8594
|
-
|
|
8595
|
-
|
|
8647
|
+
active: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8648
|
+
angle: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8649
|
+
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8650
|
+
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8651
|
+
backgroundPadding: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8652
|
+
backgroundStyle: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8653
|
+
capHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8654
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
8655
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
8656
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
|
|
8657
|
+
// @ts-expect-error "Function is not assignable to string"
|
|
8658
|
+
desc: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8659
|
+
direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
8660
|
+
dx: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8661
|
+
dy: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8662
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
8663
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8664
|
+
id: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8665
|
+
index: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
8666
|
+
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8667
|
+
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
8668
|
+
lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8669
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
8670
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
8671
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
8596
8672
|
}),
|
|
8597
|
-
polar: (
|
|
8598
|
-
renderInPortal: (
|
|
8599
|
-
scale:
|
|
8600
|
-
x:
|
|
8601
|
-
y:
|
|
8673
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8674
|
+
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8675
|
+
scale: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
8676
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale,
|
|
8677
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale
|
|
8602
8678
|
}),
|
|
8603
|
-
style:
|
|
8604
|
-
tabIndex:
|
|
8605
|
-
text:
|
|
8606
|
-
|
|
8607
|
-
|
|
8608
|
-
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
|
|
8612
|
-
|
|
8613
|
-
|
|
8679
|
+
style: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8680
|
+
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8681
|
+
text: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8682
|
+
// @ts-expect-error Function is not assignable to string"
|
|
8683
|
+
textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8684
|
+
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8685
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
8686
|
+
transform: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8687
|
+
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8688
|
+
// @ts-expect-error Function is not assignable to string"
|
|
8689
|
+
verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8690
|
+
// @ts-expect-error Number is not assignable to string
|
|
8691
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
8692
|
+
// @ts-expect-error Number is not assignable to string
|
|
8693
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)])
|
|
8614
8694
|
};
|
|
8615
8695
|
VictoryLabel.defaultProps = {
|
|
8616
|
-
backgroundComponent: /*#__PURE__*/
|
|
8617
|
-
groupComponent: /*#__PURE__*/
|
|
8696
|
+
backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
|
|
8697
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
8618
8698
|
direction: "inherit",
|
|
8619
|
-
textComponent: /*#__PURE__*/
|
|
8620
|
-
tspanComponent: /*#__PURE__*/
|
|
8699
|
+
textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
|
|
8700
|
+
tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
|
|
8621
8701
|
capHeight: 0.71,
|
|
8622
8702
|
// Magic number from d3.
|
|
8623
8703
|
lineHeight: 1
|
|
8624
8704
|
};
|
|
8625
|
-
|
|
8705
|
+
//# sourceMappingURL=victory-label.js.map
|
|
8626
8706
|
|
|
8627
8707
|
/***/ }),
|
|
8628
8708
|
|
|
@@ -8635,19 +8715,19 @@ VictoryLabel.defaultProps = {
|
|
|
8635
8715
|
"use strict";
|
|
8636
8716
|
__webpack_require__.r(__webpack_exports__);
|
|
8637
8717
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8638
|
-
/* harmony export */ "
|
|
8718
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
8639
8719
|
/* harmony export */ });
|
|
8640
8720
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8641
8721
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8642
8722
|
|
|
8723
|
+
|
|
8643
8724
|
/**
|
|
8644
8725
|
* The React context object consumers may use to access the context of the
|
|
8645
8726
|
* portal.
|
|
8646
8727
|
*/
|
|
8647
|
-
|
|
8648
8728
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
8649
8729
|
PortalContext.displayName = "PortalContext";
|
|
8650
|
-
|
|
8730
|
+
//# sourceMappingURL=portal-context.js.map
|
|
8651
8731
|
|
|
8652
8732
|
/***/ }),
|
|
8653
8733
|
|
|
@@ -8660,7 +8740,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
8660
8740
|
"use strict";
|
|
8661
8741
|
__webpack_require__.r(__webpack_exports__);
|
|
8662
8742
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8663
|
-
/* harmony export */ "
|
|
8743
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
8664
8744
|
/* harmony export */ });
|
|
8665
8745
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
8666
8746
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8679,7 +8759,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8679
8759
|
|
|
8680
8760
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8681
8761
|
|
|
8682
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8762
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8683
8763
|
|
|
8684
8764
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8685
8765
|
|
|
@@ -8689,10 +8769,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8689
8769
|
|
|
8690
8770
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8691
8771
|
|
|
8692
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8693
|
-
|
|
8694
|
-
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; }
|
|
8695
|
-
|
|
8772
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8696
8773
|
|
|
8697
8774
|
|
|
8698
8775
|
|
|
@@ -8708,32 +8785,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8708
8785
|
_classCallCheck(this, Portal);
|
|
8709
8786
|
|
|
8710
8787
|
_this = _super.call(this, props);
|
|
8788
|
+
_this.map = void 0;
|
|
8789
|
+
_this.index = void 0;
|
|
8790
|
+
|
|
8791
|
+
_this.portalRegister = function () {
|
|
8792
|
+
return ++_this.index;
|
|
8793
|
+
};
|
|
8794
|
+
|
|
8795
|
+
_this.portalUpdate = function (key, element) {
|
|
8796
|
+
_this.map[key] = element;
|
|
8797
|
+
|
|
8798
|
+
_this.forceUpdate();
|
|
8799
|
+
};
|
|
8800
|
+
|
|
8801
|
+
_this.portalDeregister = function (key) {
|
|
8802
|
+
delete _this.map[key];
|
|
8803
|
+
|
|
8804
|
+
_this.forceUpdate();
|
|
8805
|
+
};
|
|
8806
|
+
|
|
8711
8807
|
_this.map = {};
|
|
8712
8808
|
_this.index = 1;
|
|
8713
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
8714
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
8715
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
8716
8809
|
return _this;
|
|
8717
8810
|
}
|
|
8718
8811
|
|
|
8719
8812
|
_createClass(Portal, [{
|
|
8720
|
-
key: "portalRegister",
|
|
8721
|
-
value: function portalRegister() {
|
|
8722
|
-
return ++this.index;
|
|
8723
|
-
}
|
|
8724
|
-
}, {
|
|
8725
|
-
key: "portalUpdate",
|
|
8726
|
-
value: function portalUpdate(key, element) {
|
|
8727
|
-
this.map[key] = element;
|
|
8728
|
-
this.forceUpdate();
|
|
8729
|
-
}
|
|
8730
|
-
}, {
|
|
8731
|
-
key: "portalDeregister",
|
|
8732
|
-
value: function portalDeregister(key) {
|
|
8733
|
-
delete this.map[key];
|
|
8734
|
-
this.forceUpdate();
|
|
8735
|
-
}
|
|
8736
|
-
}, {
|
|
8737
8813
|
key: "getChildren",
|
|
8738
8814
|
value: function getChildren() {
|
|
8739
8815
|
var _this2 = this;
|
|
@@ -8755,18 +8831,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8755
8831
|
|
|
8756
8832
|
return Portal;
|
|
8757
8833
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8758
|
-
|
|
8759
|
-
|
|
8760
|
-
|
|
8761
|
-
_defineProperty(Portal, "propTypes", {
|
|
8834
|
+
Portal.displayName = "Portal";
|
|
8835
|
+
Portal.propTypes = {
|
|
8762
8836
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8763
8837
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
8764
8838
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
8765
8839
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8766
8840
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
8767
|
-
}
|
|
8768
|
-
|
|
8769
|
-
|
|
8841
|
+
};
|
|
8842
|
+
//# sourceMappingURL=portal.js.map
|
|
8770
8843
|
|
|
8771
8844
|
/***/ }),
|
|
8772
8845
|
|
|
@@ -8779,16 +8852,16 @@ _defineProperty(Portal, "propTypes", {
|
|
|
8779
8852
|
"use strict";
|
|
8780
8853
|
__webpack_require__.r(__webpack_exports__);
|
|
8781
8854
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8782
|
-
/* harmony export */ "
|
|
8855
|
+
/* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
|
|
8783
8856
|
/* harmony export */ });
|
|
8784
8857
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
8785
8858
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
8786
8859
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8787
8860
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8788
|
-
/* harmony import */ var
|
|
8789
|
-
/* harmony import */ var
|
|
8790
|
-
/* harmony import */ var
|
|
8791
|
-
/* harmony import */ var
|
|
8861
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8862
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
8863
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8864
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8792
8865
|
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
8793
8866
|
|
|
8794
8867
|
|
|
@@ -8800,7 +8873,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8800
8873
|
|
|
8801
8874
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8802
8875
|
|
|
8803
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8876
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8804
8877
|
|
|
8805
8878
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8806
8879
|
|
|
@@ -8810,10 +8883,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8810
8883
|
|
|
8811
8884
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8812
8885
|
|
|
8813
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8814
|
-
|
|
8815
|
-
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; }
|
|
8816
|
-
|
|
8886
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8817
8887
|
|
|
8818
8888
|
|
|
8819
8889
|
|
|
@@ -8826,9 +8896,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8826
8896
|
var _super = _createSuper(VictoryPortal);
|
|
8827
8897
|
|
|
8828
8898
|
function VictoryPortal() {
|
|
8899
|
+
var _this;
|
|
8900
|
+
|
|
8829
8901
|
_classCallCheck(this, VictoryPortal);
|
|
8830
8902
|
|
|
8831
|
-
|
|
8903
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8904
|
+
args[_key] = arguments[_key];
|
|
8905
|
+
}
|
|
8906
|
+
|
|
8907
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
8908
|
+
_this.checkedContext = void 0;
|
|
8909
|
+
_this.renderInPlace = void 0;
|
|
8910
|
+
_this.element = void 0;
|
|
8911
|
+
_this.portalKey = void 0;
|
|
8912
|
+
return _this;
|
|
8832
8913
|
}
|
|
8833
8914
|
|
|
8834
8915
|
_createClass(VictoryPortal, [{
|
|
@@ -8837,7 +8918,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8837
8918
|
if (!this.checkedContext) {
|
|
8838
8919
|
if (typeof this.context.portalUpdate !== "function") {
|
|
8839
8920
|
var msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
|
|
8840
|
-
|
|
8921
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_2__.warn(msg);
|
|
8841
8922
|
this.renderInPlace = true;
|
|
8842
8923
|
}
|
|
8843
8924
|
|
|
@@ -8883,7 +8964,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8883
8964
|
standalone: false
|
|
8884
8965
|
} : {};
|
|
8885
8966
|
|
|
8886
|
-
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps,
|
|
8967
|
+
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.omit(this.props, ["children", "groupComponent"]));
|
|
8887
8968
|
|
|
8888
8969
|
var child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
|
|
8889
8970
|
return this.renderPortal(child);
|
|
@@ -8892,23 +8973,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8892
8973
|
|
|
8893
8974
|
return VictoryPortal;
|
|
8894
8975
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element)
|
|
8903
|
-
});
|
|
8904
|
-
|
|
8905
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
8976
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
8977
|
+
VictoryPortal.role = "portal";
|
|
8978
|
+
VictoryPortal.propTypes = {
|
|
8979
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
8980
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
8981
|
+
};
|
|
8982
|
+
VictoryPortal.defaultProps = {
|
|
8906
8983
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
8907
|
-
}
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8984
|
+
};
|
|
8985
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
8986
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
8912
8987
|
|
|
8913
8988
|
/***/ }),
|
|
8914
8989
|
|
|
@@ -8921,7 +8996,7 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
|
|
|
8921
8996
|
"use strict";
|
|
8922
8997
|
__webpack_require__.r(__webpack_exports__);
|
|
8923
8998
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8924
|
-
/* harmony export */ "
|
|
8999
|
+
/* harmony export */ "Path": () => (/* binding */ Path)
|
|
8925
9000
|
/* harmony export */ });
|
|
8926
9001
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8927
9002
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8932,16 +9007,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
8932
9007
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8933
9008
|
|
|
8934
9009
|
|
|
8935
|
-
|
|
8936
9010
|
var Path = function (props) {
|
|
8937
9011
|
// eslint-disable-next-line react/prop-types
|
|
8938
9012
|
var desc = props.desc,
|
|
8939
9013
|
rest = _objectWithoutProperties(props, _excluded);
|
|
8940
9014
|
|
|
8941
|
-
return desc ?
|
|
9015
|
+
return desc ?
|
|
9016
|
+
/*#__PURE__*/
|
|
9017
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9018
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9019
|
+
/*#__PURE__*/
|
|
9020
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9021
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
8942
9022
|
};
|
|
8943
|
-
|
|
8944
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
|
|
9023
|
+
//# sourceMappingURL=path.js.map
|
|
8945
9024
|
|
|
8946
9025
|
/***/ }),
|
|
8947
9026
|
|
|
@@ -8954,33 +9033,37 @@ var Path = function (props) {
|
|
|
8954
9033
|
"use strict";
|
|
8955
9034
|
__webpack_require__.r(__webpack_exports__);
|
|
8956
9035
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8957
|
-
/* harmony export */ "
|
|
9036
|
+
/* harmony export */ "Rect": () => (/* binding */ Rect)
|
|
8958
9037
|
/* harmony export */ });
|
|
8959
9038
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8960
9039
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8961
9040
|
var _excluded = ["desc"];
|
|
8962
9041
|
|
|
8963
|
-
function _extends() { _extends = Object.assign
|
|
9042
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
8964
9043
|
|
|
8965
9044
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8966
9045
|
|
|
8967
9046
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8968
9047
|
|
|
8969
9048
|
|
|
8970
|
-
|
|
8971
9049
|
var Rect = function (props) {
|
|
8972
9050
|
// eslint-disable-next-line react/prop-types
|
|
8973
9051
|
var desc = props.desc,
|
|
8974
9052
|
rest = _objectWithoutProperties(props, _excluded);
|
|
8975
9053
|
|
|
8976
|
-
return desc ?
|
|
9054
|
+
return desc ?
|
|
9055
|
+
/*#__PURE__*/
|
|
9056
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9057
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
8977
9058
|
vectorEffect: "non-scaling-stroke"
|
|
8978
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9059
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9060
|
+
/*#__PURE__*/
|
|
9061
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9062
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
8979
9063
|
vectorEffect: "non-scaling-stroke"
|
|
8980
9064
|
}, rest));
|
|
8981
9065
|
};
|
|
8982
|
-
|
|
8983
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
|
|
9066
|
+
//# sourceMappingURL=rect.js.map
|
|
8984
9067
|
|
|
8985
9068
|
/***/ }),
|
|
8986
9069
|
|
|
@@ -8993,7 +9076,7 @@ var Rect = function (props) {
|
|
|
8993
9076
|
"use strict";
|
|
8994
9077
|
__webpack_require__.r(__webpack_exports__);
|
|
8995
9078
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8996
|
-
/* harmony export */ "
|
|
9079
|
+
/* harmony export */ "Text": () => (/* binding */ Text)
|
|
8997
9080
|
/* harmony export */ });
|
|
8998
9081
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8999
9082
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9007,22 +9090,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
9007
9090
|
|
|
9008
9091
|
|
|
9009
9092
|
|
|
9010
|
-
|
|
9011
9093
|
var Text = function (props) {
|
|
9012
9094
|
var children = props.children,
|
|
9013
9095
|
title = props.title,
|
|
9014
9096
|
desc = props.desc,
|
|
9015
9097
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9016
9098
|
|
|
9017
|
-
return
|
|
9099
|
+
return (
|
|
9100
|
+
/*#__PURE__*/
|
|
9101
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9102
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children)
|
|
9103
|
+
);
|
|
9018
9104
|
};
|
|
9019
|
-
|
|
9020
9105
|
Text.propTypes = {
|
|
9021
9106
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
9022
9107
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
9023
9108
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
9024
9109
|
};
|
|
9025
|
-
|
|
9110
|
+
//# sourceMappingURL=text.js.map
|
|
9026
9111
|
|
|
9027
9112
|
/***/ }),
|
|
9028
9113
|
|
|
@@ -9035,17 +9120,19 @@ Text.propTypes = {
|
|
|
9035
9120
|
"use strict";
|
|
9036
9121
|
__webpack_require__.r(__webpack_exports__);
|
|
9037
9122
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9038
|
-
/* harmony export */ "
|
|
9123
|
+
/* harmony export */ "TSpan": () => (/* binding */ TSpan)
|
|
9039
9124
|
/* harmony export */ });
|
|
9040
9125
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9041
9126
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9042
9127
|
|
|
9043
|
-
|
|
9044
9128
|
var TSpan = function (props) {
|
|
9045
|
-
return
|
|
9129
|
+
return (
|
|
9130
|
+
/*#__PURE__*/
|
|
9131
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9132
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
9133
|
+
);
|
|
9046
9134
|
};
|
|
9047
|
-
|
|
9048
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
|
|
9135
|
+
//# sourceMappingURL=tspan.js.map
|
|
9049
9136
|
|
|
9050
9137
|
/***/ }),
|
|
9051
9138
|
|
|
@@ -9058,7 +9145,7 @@ var TSpan = function (props) {
|
|
|
9058
9145
|
"use strict";
|
|
9059
9146
|
__webpack_require__.r(__webpack_exports__);
|
|
9060
9147
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9061
|
-
/* harmony export */ "
|
|
9148
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
9062
9149
|
/* harmony export */ });
|
|
9063
9150
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9064
9151
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9105,7 +9192,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9105
9192
|
|
|
9106
9193
|
var strokeLinecap = "round";
|
|
9107
9194
|
var strokeLinejoin = "round";
|
|
9108
|
-
|
|
9195
|
+
var grayscale = {
|
|
9109
9196
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9110
9197
|
style: {
|
|
9111
9198
|
data: {
|
|
@@ -9320,7 +9407,8 @@ var strokeLinejoin = "round";
|
|
|
9320
9407
|
}
|
|
9321
9408
|
}
|
|
9322
9409
|
}, baseProps)
|
|
9323
|
-
}
|
|
9410
|
+
};
|
|
9411
|
+
//# sourceMappingURL=grayscale.js.map
|
|
9324
9412
|
|
|
9325
9413
|
/***/ }),
|
|
9326
9414
|
|
|
@@ -9333,7 +9421,7 @@ var strokeLinejoin = "round";
|
|
|
9333
9421
|
"use strict";
|
|
9334
9422
|
__webpack_require__.r(__webpack_exports__);
|
|
9335
9423
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9336
|
-
/* harmony export */ "
|
|
9424
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
9337
9425
|
/* harmony export */ });
|
|
9338
9426
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9339
9427
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9390,7 +9478,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9390
9478
|
var strokeDasharray = "10, 5";
|
|
9391
9479
|
var strokeLinecap = "round";
|
|
9392
9480
|
var strokeLinejoin = "round";
|
|
9393
|
-
|
|
9481
|
+
var material = {
|
|
9394
9482
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9395
9483
|
style: {
|
|
9396
9484
|
data: {
|
|
@@ -9622,7 +9710,8 @@ var strokeLinejoin = "round";
|
|
|
9622
9710
|
}
|
|
9623
9711
|
}
|
|
9624
9712
|
}, baseProps)
|
|
9625
|
-
}
|
|
9713
|
+
};
|
|
9714
|
+
//# sourceMappingURL=material.js.map
|
|
9626
9715
|
|
|
9627
9716
|
/***/ }),
|
|
9628
9717
|
|
|
@@ -9635,16 +9724,18 @@ var strokeLinejoin = "round";
|
|
|
9635
9724
|
"use strict";
|
|
9636
9725
|
__webpack_require__.r(__webpack_exports__);
|
|
9637
9726
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9638
|
-
/* harmony export */ "
|
|
9727
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
9639
9728
|
/* harmony export */ });
|
|
9640
|
-
/* harmony import */ var
|
|
9641
|
-
/* harmony import */ var
|
|
9729
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
9730
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
9642
9731
|
|
|
9643
9732
|
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
grayscale:
|
|
9647
|
-
|
|
9733
|
+
|
|
9734
|
+
var VictoryTheme = {
|
|
9735
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
9736
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
9737
|
+
};
|
|
9738
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
9648
9739
|
|
|
9649
9740
|
/***/ }),
|
|
9650
9741
|
|
|
@@ -9657,14 +9748,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9657
9748
|
"use strict";
|
|
9658
9749
|
__webpack_require__.r(__webpack_exports__);
|
|
9659
9750
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9660
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
9661
9751
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
9662
9752
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
9663
9753
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
9664
|
-
/* harmony export */ "
|
|
9665
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
9754
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
9666
9755
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
9667
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
9756
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
9757
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
9758
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
9668
9759
|
/* harmony export */ });
|
|
9669
9760
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
9670
9761
|
|
|
@@ -9678,9 +9769,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9678
9769
|
|
|
9679
9770
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
9680
9771
|
|
|
9681
|
-
/* eslint-disable func-style */
|
|
9682
|
-
|
|
9683
|
-
/* eslint-disable no-use-before-define */
|
|
9684
9772
|
function isNonEmptyArray(collection) {
|
|
9685
9773
|
return Array.isArray(collection) && collection.length > 0;
|
|
9686
9774
|
}
|
|
@@ -9719,7 +9807,8 @@ function getMaxValue(arr) {
|
|
|
9719
9807
|
}
|
|
9720
9808
|
|
|
9721
9809
|
var array = arr.concat(values);
|
|
9722
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
9810
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9811
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
9723
9812
|
}
|
|
9724
9813
|
function getMinValue(arr) {
|
|
9725
9814
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -9727,8 +9816,10 @@ function getMinValue(arr) {
|
|
|
9727
9816
|
}
|
|
9728
9817
|
|
|
9729
9818
|
var array = arr.concat(values);
|
|
9730
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
9819
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9820
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
9731
9821
|
}
|
|
9822
|
+
//# sourceMappingURL=collection.js.map
|
|
9732
9823
|
|
|
9733
9824
|
/***/ }),
|
|
9734
9825
|
|
|
@@ -9741,9 +9832,7 @@ function getMinValue(arr) {
|
|
|
9741
9832
|
"use strict";
|
|
9742
9833
|
__webpack_require__.r(__webpack_exports__);
|
|
9743
9834
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9744
|
-
/* harmony export */ "
|
|
9745
|
-
/* harmony export */ "baseProps": () => (/* binding */ baseProps),
|
|
9746
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
9835
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
9747
9836
|
/* harmony export */ });
|
|
9748
9837
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9749
9838
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9751,26 +9840,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9751
9840
|
|
|
9752
9841
|
|
|
9753
9842
|
var dataProps = {
|
|
9843
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9754
9844
|
categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9755
9845
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
9756
9846
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
9757
9847
|
})]),
|
|
9848
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9758
9849
|
data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
9759
9850
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9760
9851
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9761
9852
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9762
9853
|
labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
9763
9854
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9764
|
-
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
|
|
9855
|
+
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
9765
9856
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
9766
9857
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9767
9858
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9768
9859
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9769
9860
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9770
9861
|
}),
|
|
9771
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
|
|
9772
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
|
|
9773
|
-
y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))])
|
|
9862
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
9863
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
9864
|
+
y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
|
|
9774
9865
|
};
|
|
9775
9866
|
var baseProps = {
|
|
9776
9867
|
animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
@@ -9779,14 +9870,17 @@ var baseProps = {
|
|
|
9779
9870
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9780
9871
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9781
9872
|
})]),
|
|
9873
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9782
9874
|
maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9783
9875
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
9784
9876
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
9785
9877
|
})]),
|
|
9878
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9786
9879
|
minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9787
9880
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
9788
9881
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
9789
9882
|
})]),
|
|
9883
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9790
9884
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9791
9885
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
9792
9886
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
|
|
@@ -9797,20 +9891,23 @@ var baseProps = {
|
|
|
9797
9891
|
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
9798
9892
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9799
9893
|
})),
|
|
9894
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9800
9895
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9801
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
9896
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
9802
9897
|
childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
9803
9898
|
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
9804
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
9899
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
9805
9900
|
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)])
|
|
9806
9901
|
})),
|
|
9807
9902
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9808
9903
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9809
9904
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9905
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9810
9906
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9811
9907
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9812
9908
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
9813
9909
|
}),
|
|
9910
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9814
9911
|
padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9815
9912
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9816
9913
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -9819,17 +9916,19 @@ var baseProps = {
|
|
|
9819
9916
|
})]),
|
|
9820
9917
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9821
9918
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9822
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9823
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9919
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
9920
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
9824
9921
|
})]),
|
|
9825
9922
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9826
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
9827
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
9923
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
9924
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
9828
9925
|
})]),
|
|
9926
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9829
9927
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9830
9928
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
9831
9929
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
9832
9930
|
}),
|
|
9931
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9833
9932
|
singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9834
9933
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
9835
9934
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -9849,6 +9948,7 @@ var primitiveProps = {
|
|
|
9849
9948
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9850
9949
|
id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
9851
9950
|
index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
9951
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9852
9952
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9853
9953
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9854
9954
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -9864,6 +9964,12 @@ var primitiveProps = {
|
|
|
9864
9964
|
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
9865
9965
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
9866
9966
|
};
|
|
9967
|
+
var CommonProps = {
|
|
9968
|
+
dataProps: dataProps,
|
|
9969
|
+
baseProps: baseProps,
|
|
9970
|
+
primitiveProps: primitiveProps
|
|
9971
|
+
};
|
|
9972
|
+
//# sourceMappingURL=common-props.js.map
|
|
9867
9973
|
|
|
9868
9974
|
/***/ }),
|
|
9869
9975
|
|
|
@@ -9876,10 +9982,10 @@ var primitiveProps = {
|
|
|
9876
9982
|
"use strict";
|
|
9877
9983
|
__webpack_require__.r(__webpack_exports__);
|
|
9878
9984
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9879
|
-
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
9880
9985
|
/* harmony export */ "createStringMap": () => (/* binding */ createStringMap),
|
|
9881
9986
|
/* harmony export */ "downsample": () => (/* binding */ downsample),
|
|
9882
9987
|
/* harmony export */ "formatData": () => (/* binding */ formatData),
|
|
9988
|
+
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
9883
9989
|
/* harmony export */ "generateData": () => (/* binding */ generateData),
|
|
9884
9990
|
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
9885
9991
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
@@ -9946,8 +10052,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9946
10052
|
|
|
9947
10053
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
9948
10054
|
|
|
9949
|
-
/* eslint-disable func-style */
|
|
9950
|
-
|
|
9951
10055
|
/* eslint-disable no-use-before-define */
|
|
9952
10056
|
|
|
9953
10057
|
|
|
@@ -10379,6 +10483,7 @@ function isDataComponent(component) {
|
|
|
10379
10483
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
10380
10484
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
10381
10485
|
}
|
|
10486
|
+
//# sourceMappingURL=data.js.map
|
|
10382
10487
|
|
|
10383
10488
|
/***/ }),
|
|
10384
10489
|
|
|
@@ -10391,25 +10496,25 @@ function isDataComponent(component) {
|
|
|
10391
10496
|
"use strict";
|
|
10392
10497
|
__webpack_require__.r(__webpack_exports__);
|
|
10393
10498
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10394
|
-
/* harmony export */ "
|
|
10395
|
-
/* harmony export */ "
|
|
10396
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
10397
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
10398
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
10399
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
10400
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
10499
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
10500
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
10401
10501
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
10402
10502
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
10403
|
-
/* harmony export */ "
|
|
10404
|
-
/* harmony export */ "
|
|
10405
|
-
/* harmony export */ "
|
|
10503
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
10504
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
10505
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
10506
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
10406
10507
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
10508
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
10407
10509
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
10408
|
-
/* harmony export */ "
|
|
10510
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
10511
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
10512
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
10409
10513
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
10410
|
-
/* harmony export */ "
|
|
10514
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
10515
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
10411
10516
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
10412
|
-
/* harmony export */ "
|
|
10517
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
10413
10518
|
/* harmony export */ });
|
|
10414
10519
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10415
10520
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10432,8 +10537,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10432
10537
|
|
|
10433
10538
|
|
|
10434
10539
|
|
|
10435
|
-
/* eslint-disable func-style */
|
|
10436
|
-
|
|
10437
10540
|
/* eslint-disable no-use-before-define */
|
|
10438
10541
|
|
|
10439
10542
|
|
|
@@ -10462,7 +10565,7 @@ function getPolarRange(props, axis) {
|
|
|
10462
10565
|
|
|
10463
10566
|
/**
|
|
10464
10567
|
* creates an object with some keys excluded
|
|
10465
|
-
* replacement for lodash.omit for performance. does not
|
|
10568
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
10466
10569
|
* @param {Object} originalObject: created object will be based on this object
|
|
10467
10570
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
10468
10571
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -10475,6 +10578,7 @@ function omit(originalObject) {
|
|
|
10475
10578
|
var newObject = {};
|
|
10476
10579
|
|
|
10477
10580
|
for (var key in originalObject) {
|
|
10581
|
+
// @ts-expect-error String is not assignable to Key
|
|
10478
10582
|
if (ks.indexOf(key) >= 0) {
|
|
10479
10583
|
continue;
|
|
10480
10584
|
}
|
|
@@ -10707,7 +10811,9 @@ function reduceChildren(children, iteratee) {
|
|
|
10707
10811
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
10708
10812
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
10709
10813
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
10710
|
-
return
|
|
10814
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
10815
|
+
memo.concat(item)
|
|
10816
|
+
);
|
|
10711
10817
|
};
|
|
10712
10818
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
10713
10819
|
|
|
@@ -10751,7 +10857,7 @@ function reduceChildren(children, iteratee) {
|
|
|
10751
10857
|
/**
|
|
10752
10858
|
* @param {Object} props: the props object
|
|
10753
10859
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
10754
|
-
* children or nested children are
|
|
10860
|
+
* children or nested children are horizontal
|
|
10755
10861
|
*/
|
|
10756
10862
|
|
|
10757
10863
|
function isHorizontal(props) {
|
|
@@ -10774,6 +10880,7 @@ function isHorizontal(props) {
|
|
|
10774
10880
|
|
|
10775
10881
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
10776
10882
|
}
|
|
10883
|
+
//# sourceMappingURL=helpers.js.map
|
|
10777
10884
|
|
|
10778
10885
|
/***/ }),
|
|
10779
10886
|
|
|
@@ -10787,17 +10894,16 @@ function isHorizontal(props) {
|
|
|
10787
10894
|
__webpack_require__.r(__webpack_exports__);
|
|
10788
10895
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10789
10896
|
/* harmony export */ "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
|
|
10790
|
-
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
10791
10897
|
/* harmony export */ "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
|
|
10792
10898
|
/* harmony export */ "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
|
|
10793
|
-
/* harmony export */ "
|
|
10794
|
-
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
10899
|
+
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
10795
10900
|
/* harmony export */ "isImmutable": () => (/* binding */ isImmutable),
|
|
10901
|
+
/* harmony export */ "isIterable": () => (/* binding */ isIterable),
|
|
10796
10902
|
/* harmony export */ "isList": () => (/* binding */ isList),
|
|
10797
10903
|
/* harmony export */ "isMap": () => (/* binding */ isMap),
|
|
10904
|
+
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
10798
10905
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
10799
10906
|
/* harmony export */ });
|
|
10800
|
-
/* eslint-disable func-style */
|
|
10801
10907
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
10802
10908
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
10803
10909
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -10818,15 +10924,16 @@ function isMap(x) {
|
|
|
10818
10924
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
10819
10925
|
}
|
|
10820
10926
|
function shallowToJS(x, whitelist) {
|
|
10821
|
-
return isIterable(x) ? x.reduce(function (
|
|
10927
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
10822
10928
|
if (whitelist && whitelist[key]) {
|
|
10823
10929
|
curr = shallowToJS(curr);
|
|
10824
10930
|
}
|
|
10825
10931
|
|
|
10826
|
-
|
|
10827
|
-
return
|
|
10932
|
+
result[key] = curr;
|
|
10933
|
+
return result;
|
|
10828
10934
|
}, isList(x) ? [] : {}) : x;
|
|
10829
10935
|
}
|
|
10936
|
+
//# sourceMappingURL=immutable.js.map
|
|
10830
10937
|
|
|
10831
10938
|
/***/ }),
|
|
10832
10939
|
|
|
@@ -10839,20 +10946,18 @@ function shallowToJS(x, whitelist) {
|
|
|
10839
10946
|
"use strict";
|
|
10840
10947
|
__webpack_require__.r(__webpack_exports__);
|
|
10841
10948
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10842
|
-
/* harmony export */ "
|
|
10949
|
+
/* harmony export */ "getDegrees": () => (/* binding */ getDegrees),
|
|
10950
|
+
/* harmony export */ "getPolarAngle": () => (/* binding */ getPolarAngle),
|
|
10843
10951
|
/* harmony export */ "getPolarTextAnchor": () => (/* binding */ getPolarTextAnchor),
|
|
10844
10952
|
/* harmony export */ "getPolarVerticalAnchor": () => (/* binding */ getPolarVerticalAnchor),
|
|
10845
|
-
/* harmony export */ "
|
|
10846
|
-
/* harmony export */ "
|
|
10847
|
-
/* harmony export */ "getProps": () => (/* binding */ getProps)
|
|
10953
|
+
/* harmony export */ "getProps": () => (/* binding */ getProps),
|
|
10954
|
+
/* harmony export */ "getText": () => (/* binding */ getText)
|
|
10848
10955
|
/* harmony export */ });
|
|
10849
10956
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10850
10957
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
10851
10958
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10852
10959
|
|
|
10853
10960
|
|
|
10854
|
-
/* eslint-disable func-style */
|
|
10855
|
-
|
|
10856
10961
|
/* eslint-disable no-use-before-define */
|
|
10857
10962
|
|
|
10858
10963
|
|
|
@@ -11086,6 +11191,7 @@ function getProps(props, index) {
|
|
|
11086
11191
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
11087
11192
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
11088
11193
|
}
|
|
11194
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
11089
11195
|
|
|
11090
11196
|
/***/ }),
|
|
11091
11197
|
|
|
@@ -11104,7 +11210,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11104
11210
|
|
|
11105
11211
|
/* eslint-disable no-console */
|
|
11106
11212
|
// TODO: Use "warning" npm module like React is switching to.
|
|
11107
|
-
// eslint-disable-next-line func-style
|
|
11108
11213
|
function warn(message) {
|
|
11109
11214
|
if (true) {
|
|
11110
11215
|
if (console && console.warn) {
|
|
@@ -11112,6 +11217,7 @@ function warn(message) {
|
|
|
11112
11217
|
}
|
|
11113
11218
|
}
|
|
11114
11219
|
}
|
|
11220
|
+
//# sourceMappingURL=log.js.map
|
|
11115
11221
|
|
|
11116
11222
|
/***/ }),
|
|
11117
11223
|
|
|
@@ -11124,27 +11230,25 @@ function warn(message) {
|
|
|
11124
11230
|
"use strict";
|
|
11125
11231
|
__webpack_require__.r(__webpack_exports__);
|
|
11126
11232
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11127
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
11128
11233
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
11129
|
-
/* harmony export */ "
|
|
11130
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
11131
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
11234
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
11132
11235
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
11133
|
-
/* harmony export */ "
|
|
11236
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
11134
11237
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
11238
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
11135
11239
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
11136
|
-
/* harmony export */ "
|
|
11240
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
11241
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
11242
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
11137
11243
|
/* harmony export */ });
|
|
11138
11244
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
11139
11245
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
11140
11246
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
11141
11247
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
11142
|
-
/* harmony import */ var
|
|
11143
|
-
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
11144
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11248
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11145
11249
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11146
11250
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
11147
|
-
|
|
11251
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
11148
11252
|
|
|
11149
11253
|
|
|
11150
11254
|
|
|
@@ -11152,6 +11256,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11152
11256
|
|
|
11153
11257
|
|
|
11154
11258
|
|
|
11259
|
+
|
|
11260
|
+
|
|
11155
11261
|
/**
|
|
11156
11262
|
* Return a new validator based on `validator` but with the option to chain
|
|
11157
11263
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -11159,30 +11265,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11159
11265
|
* @param {Function} validator Validation function.
|
|
11160
11266
|
* @returns {Function} Validator with `isRequired` option.
|
|
11161
11267
|
*/
|
|
11162
|
-
|
|
11163
11268
|
var makeChainable = function (validator) {
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11269
|
+
var createChainable = function (isRequired) {
|
|
11270
|
+
return function (props, propName, componentName) {
|
|
11271
|
+
var value = props[propName];
|
|
11167
11272
|
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11273
|
+
if (value === undefined || value === null) {
|
|
11274
|
+
if (isRequired) {
|
|
11275
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
11276
|
+
}
|
|
11172
11277
|
|
|
11173
|
-
|
|
11174
|
-
|
|
11278
|
+
return null;
|
|
11279
|
+
}
|
|
11175
11280
|
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
|
|
11281
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
11282
|
+
rest[_key - 3] = arguments[_key];
|
|
11283
|
+
}
|
|
11179
11284
|
|
|
11180
|
-
|
|
11285
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11286
|
+
};
|
|
11181
11287
|
};
|
|
11182
11288
|
|
|
11183
|
-
var chainable =
|
|
11184
|
-
|
|
11185
|
-
|
|
11289
|
+
var chainable = Object.assign(createChainable(false), {
|
|
11290
|
+
isRequired: createChainable(true)
|
|
11291
|
+
});
|
|
11186
11292
|
return chainable;
|
|
11187
11293
|
};
|
|
11188
11294
|
|
|
@@ -11212,7 +11318,7 @@ var getConstructor = function (value) {
|
|
|
11212
11318
|
};
|
|
11213
11319
|
/**
|
|
11214
11320
|
* Get the name of the constructor used to create `value`, using
|
|
11215
|
-
* `Object.
|
|
11321
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
11216
11322
|
* "null" or "undefined", respectively.
|
|
11217
11323
|
* @param {*} value Instance to return the constructor name of.
|
|
11218
11324
|
* @returns {String} Name of the constructor.
|
|
@@ -11242,10 +11348,11 @@ function deprecated(propType, explanation) {
|
|
|
11242
11348
|
var value = props[propName];
|
|
11243
11349
|
|
|
11244
11350
|
if (value !== null && value !== undefined) {
|
|
11245
|
-
|
|
11351
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
11246
11352
|
}
|
|
11247
11353
|
|
|
11248
|
-
|
|
11354
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
11355
|
+
return null;
|
|
11249
11356
|
};
|
|
11250
11357
|
}
|
|
11251
11358
|
/**
|
|
@@ -11264,7 +11371,7 @@ function allOfType(validators) {
|
|
|
11264
11371
|
|
|
11265
11372
|
return validators.reduce(function (result, validator) {
|
|
11266
11373
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11267
|
-
},
|
|
11374
|
+
}, null);
|
|
11268
11375
|
});
|
|
11269
11376
|
}
|
|
11270
11377
|
/**
|
|
@@ -11278,7 +11385,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
11278
11385
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
11279
11386
|
}
|
|
11280
11387
|
|
|
11281
|
-
return
|
|
11388
|
+
return null;
|
|
11282
11389
|
});
|
|
11283
11390
|
/**
|
|
11284
11391
|
* Check that the value is an integer.
|
|
@@ -11291,7 +11398,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
11291
11398
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
11292
11399
|
}
|
|
11293
11400
|
|
|
11294
|
-
return
|
|
11401
|
+
return null;
|
|
11295
11402
|
});
|
|
11296
11403
|
/**
|
|
11297
11404
|
* Check that the value is greater than zero.
|
|
@@ -11304,7 +11411,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
11304
11411
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
11305
11412
|
}
|
|
11306
11413
|
|
|
11307
|
-
return
|
|
11414
|
+
return null;
|
|
11308
11415
|
});
|
|
11309
11416
|
/**
|
|
11310
11417
|
* Check that the value is an Array of two unique values.
|
|
@@ -11317,32 +11424,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
11317
11424
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
11318
11425
|
}
|
|
11319
11426
|
|
|
11320
|
-
return
|
|
11427
|
+
return null;
|
|
11321
11428
|
});
|
|
11322
11429
|
/**
|
|
11323
11430
|
* Check that the value looks like a d3 `scale` function.
|
|
11324
11431
|
*/
|
|
11325
11432
|
|
|
11326
11433
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
11327
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11328
|
-
|
|
11329
|
-
var validScale = function (scl) {
|
|
11330
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
11331
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
|
|
11332
|
-
} else if (typeof scl === "string") {
|
|
11333
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
11334
|
-
}
|
|
11335
|
-
|
|
11336
|
-
return false;
|
|
11337
|
-
};
|
|
11338
|
-
|
|
11339
11434
|
var value = props[propName];
|
|
11340
11435
|
|
|
11341
|
-
if (!validScale(value)) {
|
|
11436
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
11342
11437
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
11343
11438
|
}
|
|
11344
11439
|
|
|
11345
|
-
return
|
|
11440
|
+
return null;
|
|
11346
11441
|
});
|
|
11347
11442
|
/**
|
|
11348
11443
|
* Check that an array contains items of the same type.
|
|
@@ -11356,7 +11451,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11356
11451
|
}
|
|
11357
11452
|
|
|
11358
11453
|
if (values.length < 2) {
|
|
11359
|
-
return
|
|
11454
|
+
return null;
|
|
11360
11455
|
}
|
|
11361
11456
|
|
|
11362
11457
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -11371,7 +11466,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11371
11466
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
11372
11467
|
}
|
|
11373
11468
|
|
|
11374
|
-
return
|
|
11469
|
+
return null;
|
|
11375
11470
|
});
|
|
11376
11471
|
/**
|
|
11377
11472
|
* Check that array prop length matches props.data.length
|
|
@@ -11382,7 +11477,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
11382
11477
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
11383
11478
|
}
|
|
11384
11479
|
|
|
11385
|
-
return
|
|
11480
|
+
return null;
|
|
11386
11481
|
});
|
|
11387
11482
|
/**
|
|
11388
11483
|
* Check that the value is a regular expression
|
|
@@ -11393,8 +11488,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
11393
11488
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
11394
11489
|
}
|
|
11395
11490
|
|
|
11396
|
-
return
|
|
11491
|
+
return null;
|
|
11397
11492
|
});
|
|
11493
|
+
//# sourceMappingURL=prop-types.js.map
|
|
11398
11494
|
|
|
11399
11495
|
/***/ }),
|
|
11400
11496
|
|
|
@@ -11407,12 +11503,13 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
11407
11503
|
"use strict";
|
|
11408
11504
|
__webpack_require__.r(__webpack_exports__);
|
|
11409
11505
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11410
|
-
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
11411
11506
|
/* harmony export */ "getBaseScale": () => (/* binding */ getBaseScale),
|
|
11412
11507
|
/* harmony export */ "getDefaultScale": () => (/* binding */ getDefaultScale),
|
|
11508
|
+
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
11413
11509
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
11414
11510
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
11415
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
11511
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
11512
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
11416
11513
|
/* harmony export */ });
|
|
11417
11514
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
11418
11515
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11430,8 +11527,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11430
11527
|
|
|
11431
11528
|
|
|
11432
11529
|
|
|
11433
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11530
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11434
11531
|
|
|
11532
|
+
// Private Functions
|
|
11435
11533
|
function toNewName(scale) {
|
|
11436
11534
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
11437
11535
|
var capitalize = function (s) {
|
|
@@ -11501,7 +11599,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
11501
11599
|
|
|
11502
11600
|
|
|
11503
11601
|
function getScaleFromName(name) {
|
|
11504
|
-
|
|
11602
|
+
if (validScale(name)) {
|
|
11603
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
11604
|
+
|
|
11605
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
11606
|
+
}
|
|
11607
|
+
|
|
11608
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
11505
11609
|
}
|
|
11506
11610
|
function getBaseScale(props, axis) {
|
|
11507
11611
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -11511,7 +11615,7 @@ function getBaseScale(props, axis) {
|
|
|
11511
11615
|
}
|
|
11512
11616
|
|
|
11513
11617
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
11514
|
-
return
|
|
11618
|
+
return getScaleFromName(defaultScale);
|
|
11515
11619
|
}
|
|
11516
11620
|
function getDefaultScale() {
|
|
11517
11621
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -11524,7 +11628,7 @@ function getScaleFromProps(props, axis) {
|
|
|
11524
11628
|
var scale = props.scale[axis] || props.scale;
|
|
11525
11629
|
|
|
11526
11630
|
if (validScale(scale)) {
|
|
11527
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
11631
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
11528
11632
|
}
|
|
11529
11633
|
|
|
11530
11634
|
return undefined;
|
|
@@ -11559,6 +11663,7 @@ function getType(scale) {
|
|
|
11559
11663
|
})[0];
|
|
11560
11664
|
return scaleType ? scaleType.name : undefined;
|
|
11561
11665
|
}
|
|
11666
|
+
//# sourceMappingURL=scale.js.map
|
|
11562
11667
|
|
|
11563
11668
|
/***/ }),
|
|
11564
11669
|
|
|
@@ -11571,18 +11676,16 @@ function getType(scale) {
|
|
|
11571
11676
|
"use strict";
|
|
11572
11677
|
__webpack_require__.r(__webpack_exports__);
|
|
11573
11678
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11574
|
-
/* harmony export */ "
|
|
11575
|
-
/* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates),
|
|
11576
|
-
/* harmony export */ "getDomainCoordinates": () => (/* binding */ getDomainCoordinates),
|
|
11679
|
+
/* harmony export */ "getBounds": () => (/* binding */ getBounds),
|
|
11577
11680
|
/* harmony export */ "getDataCoordinates": () => (/* binding */ getDataCoordinates),
|
|
11578
|
-
/* harmony export */ "
|
|
11681
|
+
/* harmony export */ "getDomainCoordinates": () => (/* binding */ getDomainCoordinates),
|
|
11682
|
+
/* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
|
|
11683
|
+
/* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
|
|
11579
11684
|
/* harmony export */ });
|
|
11580
|
-
/* harmony import */ var
|
|
11581
|
-
/* eslint-disable func-style */
|
|
11685
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "../../victory-core/es/victory-util/collection.js");
|
|
11582
11686
|
|
|
11583
|
-
/* eslint-disable no-use-before-define */
|
|
11584
|
-
// Private Functions
|
|
11585
11687
|
|
|
11688
|
+
// Private Functions
|
|
11586
11689
|
function transformTarget(target, matrix, dimension) {
|
|
11587
11690
|
var a = matrix.a,
|
|
11588
11691
|
d = matrix.d,
|
|
@@ -11593,11 +11696,20 @@ function transformTarget(target, matrix, dimension) {
|
|
|
11593
11696
|
|
|
11594
11697
|
function getTransformationMatrix(svg) {
|
|
11595
11698
|
return svg.getScreenCTM().inverse();
|
|
11699
|
+
}
|
|
11700
|
+
|
|
11701
|
+
function isNativeTouchEvent(nativeEvent) {
|
|
11702
|
+
return !!(nativeEvent && nativeEvent.identifier !== undefined);
|
|
11703
|
+
}
|
|
11704
|
+
|
|
11705
|
+
function isReactTouchEvent(evt) {
|
|
11706
|
+
return evt.changedTouches && evt.changedTouches.length > 0;
|
|
11596
11707
|
} // Exported Functions
|
|
11597
11708
|
|
|
11598
11709
|
|
|
11599
11710
|
function getParentSVG(evt) {
|
|
11600
|
-
if (evt.nativeEvent
|
|
11711
|
+
if (isNativeTouchEvent(evt.nativeEvent)) {
|
|
11712
|
+
// @ts-expect-error Seems like a superfluous check.
|
|
11601
11713
|
return undefined;
|
|
11602
11714
|
}
|
|
11603
11715
|
|
|
@@ -11612,7 +11724,7 @@ function getParentSVG(evt) {
|
|
|
11612
11724
|
return getParent(evt.target);
|
|
11613
11725
|
}
|
|
11614
11726
|
function getSVGEventCoordinates(evt, svg) {
|
|
11615
|
-
if (evt.nativeEvent
|
|
11727
|
+
if (isNativeTouchEvent(evt.nativeEvent)) {
|
|
11616
11728
|
// react-native override. relies on the RN.View being the _exact_ same size as its child SVG.
|
|
11617
11729
|
// this should be fine: the svg is the only child of View and the View shirks to its children
|
|
11618
11730
|
return {
|
|
@@ -11621,24 +11733,25 @@ function getSVGEventCoordinates(evt, svg) {
|
|
|
11621
11733
|
};
|
|
11622
11734
|
}
|
|
11623
11735
|
|
|
11624
|
-
|
|
11625
|
-
svg = svg || getParentSVG(
|
|
11736
|
+
var location = isReactTouchEvent(evt) ? evt.changedTouches[0] : evt;
|
|
11737
|
+
svg = svg || getParentSVG(location);
|
|
11626
11738
|
var matrix = getTransformationMatrix(svg);
|
|
11627
11739
|
return {
|
|
11628
|
-
x: transformTarget(
|
|
11629
|
-
y: transformTarget(
|
|
11740
|
+
x: transformTarget(location.clientX, matrix, "x"),
|
|
11741
|
+
y: transformTarget(location.clientY, matrix, "y")
|
|
11630
11742
|
};
|
|
11631
11743
|
}
|
|
11632
11744
|
function getDomainCoordinates(props, domain) {
|
|
11633
|
-
var
|
|
11634
|
-
|
|
11635
|
-
|
|
11745
|
+
var horizontal = props.horizontal;
|
|
11746
|
+
var scale = props.scale; // FIXME: add support for DomainTuple: [number, number]
|
|
11747
|
+
|
|
11748
|
+
var domainObj = domain || {
|
|
11636
11749
|
x: scale.x.domain(),
|
|
11637
11750
|
y: scale.y.domain()
|
|
11638
11751
|
};
|
|
11639
11752
|
return {
|
|
11640
|
-
x: horizontal ? [scale.y(
|
|
11641
|
-
y: horizontal ? [scale.x(
|
|
11753
|
+
x: horizontal ? [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])] : [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])],
|
|
11754
|
+
y: horizontal ? [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])] : [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])]
|
|
11642
11755
|
};
|
|
11643
11756
|
} // eslint-disable-next-line max-params
|
|
11644
11757
|
|
|
@@ -11676,7 +11789,7 @@ function getBounds(props) {
|
|
|
11676
11789
|
var point2 = getDataCoordinates(props, scale, x2, y2);
|
|
11677
11790
|
|
|
11678
11791
|
var makeBound = function (a, b) {
|
|
11679
|
-
return [
|
|
11792
|
+
return [_index__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _index__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
|
|
11680
11793
|
};
|
|
11681
11794
|
|
|
11682
11795
|
return {
|
|
@@ -11684,6 +11797,7 @@ function getBounds(props) {
|
|
|
11684
11797
|
y: makeBound(point1.y, point2.y)
|
|
11685
11798
|
};
|
|
11686
11799
|
}
|
|
11800
|
+
//# sourceMappingURL=selection.js.map
|
|
11687
11801
|
|
|
11688
11802
|
/***/ }),
|
|
11689
11803
|
|
|
@@ -11696,11 +11810,9 @@ function getBounds(props) {
|
|
|
11696
11810
|
"use strict";
|
|
11697
11811
|
__webpack_require__.r(__webpack_exports__);
|
|
11698
11812
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11699
|
-
/* harmony export */ "
|
|
11700
|
-
/* harmony export */ "
|
|
11813
|
+
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
11814
|
+
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
11701
11815
|
/* harmony export */ });
|
|
11702
|
-
/* eslint-disable func-style */
|
|
11703
|
-
|
|
11704
11816
|
/**
|
|
11705
11817
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
11706
11818
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -11757,6 +11869,7 @@ function getColorScale(name) {
|
|
|
11757
11869
|
};
|
|
11758
11870
|
return name ? scales[name] : scales.grayscale;
|
|
11759
11871
|
}
|
|
11872
|
+
//# sourceMappingURL=style.js.map
|
|
11760
11873
|
|
|
11761
11874
|
/***/ }),
|
|
11762
11875
|
|
|
@@ -11769,9 +11882,9 @@ function getColorScale(name) {
|
|
|
11769
11882
|
"use strict";
|
|
11770
11883
|
__webpack_require__.r(__webpack_exports__);
|
|
11771
11884
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11772
|
-
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels),
|
|
11773
11885
|
/* harmony export */ "_approximateTextSizeInternal": () => (/* binding */ _approximateTextSizeInternal),
|
|
11774
|
-
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize)
|
|
11886
|
+
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize),
|
|
11887
|
+
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels)
|
|
11775
11888
|
/* harmony export */ });
|
|
11776
11889
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
11777
11890
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11961,8 +12074,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
11961
12074
|
|
|
11962
12075
|
|
|
11963
12076
|
var convertLengthToPixels = function (length, fontSize) {
|
|
11964
|
-
var
|
|
11965
|
-
|
|
12077
|
+
var _length$match;
|
|
12078
|
+
|
|
12079
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
12080
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
11966
12081
|
var result;
|
|
11967
12082
|
|
|
11968
12083
|
if (!attribute) {
|
|
@@ -12028,9 +12143,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
12028
12143
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
12029
12144
|
return total + lineStyle.lineHeight * height;
|
|
12030
12145
|
}, 0);
|
|
12031
|
-
};
|
|
12032
|
-
|
|
12146
|
+
};
|
|
12033
12147
|
|
|
12148
|
+
// Stubbable implementation.
|
|
12034
12149
|
var _approximateTextSizeInternal = {
|
|
12035
12150
|
impl: function (text, style) {
|
|
12036
12151
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -12049,7 +12164,7 @@ var _approximateTextSizeInternal = {
|
|
|
12049
12164
|
};
|
|
12050
12165
|
/**
|
|
12051
12166
|
* Predict text size by font params.
|
|
12052
|
-
* @param {string} text Content for width calculation.
|
|
12167
|
+
* @param {string|string[]} text Content for width calculation.
|
|
12053
12168
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
12054
12169
|
* @param {string} style.fontFamily Text fontFamily.
|
|
12055
12170
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -12062,6 +12177,7 @@ var _approximateTextSizeInternal = {
|
|
|
12062
12177
|
var approximateTextSize = function (text, style) {
|
|
12063
12178
|
return _approximateTextSizeInternal.impl(text, style);
|
|
12064
12179
|
};
|
|
12180
|
+
//# sourceMappingURL=textsize.js.map
|
|
12065
12181
|
|
|
12066
12182
|
/***/ }),
|
|
12067
12183
|
|
|
@@ -12092,6 +12208,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
12092
12208
|
});
|
|
12093
12209
|
TimerContext.displayName = "TimerContext";
|
|
12094
12210
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
12211
|
+
//# sourceMappingURL=timer-context.js.map
|
|
12095
12212
|
|
|
12096
12213
|
/***/ }),
|
|
12097
12214
|
|
|
@@ -12117,11 +12234,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
12117
12234
|
|
|
12118
12235
|
var Timer = /*#__PURE__*/function () {
|
|
12119
12236
|
function Timer() {
|
|
12237
|
+
var _this = this;
|
|
12238
|
+
|
|
12120
12239
|
_classCallCheck(this, Timer);
|
|
12121
12240
|
|
|
12241
|
+
this.shouldAnimate = void 0;
|
|
12242
|
+
this.subscribers = void 0;
|
|
12243
|
+
this.activeSubscriptions = void 0;
|
|
12244
|
+
this.timer = void 0;
|
|
12245
|
+
|
|
12246
|
+
this.loop = function () {
|
|
12247
|
+
_this.subscribers.forEach(function (s) {
|
|
12248
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
12249
|
+
});
|
|
12250
|
+
};
|
|
12251
|
+
|
|
12122
12252
|
this.shouldAnimate = true;
|
|
12123
12253
|
this.subscribers = [];
|
|
12124
|
-
this.loop = this.loop.bind(this);
|
|
12125
12254
|
this.timer = null;
|
|
12126
12255
|
this.activeSubscriptions = 0;
|
|
12127
12256
|
}
|
|
@@ -12136,13 +12265,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12136
12265
|
value: function resumeAnimation() {
|
|
12137
12266
|
this.shouldAnimate = true;
|
|
12138
12267
|
}
|
|
12139
|
-
}, {
|
|
12140
|
-
key: "loop",
|
|
12141
|
-
value: function loop() {
|
|
12142
|
-
this.subscribers.forEach(function (s) {
|
|
12143
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
12144
|
-
});
|
|
12145
|
-
}
|
|
12146
12268
|
}, {
|
|
12147
12269
|
key: "start",
|
|
12148
12270
|
value: function start() {
|
|
@@ -12189,6 +12311,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12189
12311
|
}();
|
|
12190
12312
|
|
|
12191
12313
|
|
|
12314
|
+
//# sourceMappingURL=timer.js.map
|
|
12192
12315
|
|
|
12193
12316
|
/***/ }),
|
|
12194
12317
|
|
|
@@ -12201,8 +12324,11 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12201
12324
|
"use strict";
|
|
12202
12325
|
__webpack_require__.r(__webpack_exports__);
|
|
12203
12326
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12204
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
12327
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
12328
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
12205
12329
|
/* harmony export */ });
|
|
12330
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12331
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12206
12332
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12207
12333
|
|
|
12208
12334
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -12221,16 +12347,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12221
12347
|
|
|
12222
12348
|
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; }
|
|
12223
12349
|
|
|
12350
|
+
|
|
12224
12351
|
/*
|
|
12225
12352
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
12226
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
12353
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
12227
12354
|
starts with these characters.
|
|
12228
12355
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
12229
12356
|
*/
|
|
12357
|
+
|
|
12230
12358
|
var USER_PROPS_SAFELIST = {
|
|
12231
12359
|
startsWith: ["data-", "aria-"],
|
|
12232
12360
|
exactMatch: []
|
|
12233
12361
|
};
|
|
12362
|
+
|
|
12234
12363
|
/**
|
|
12235
12364
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
12236
12365
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -12239,7 +12368,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
12239
12368
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
12240
12369
|
* otherwise
|
|
12241
12370
|
*/
|
|
12242
|
-
|
|
12243
12371
|
var doesPropStartWith = function (key) {
|
|
12244
12372
|
var startsWith = false;
|
|
12245
12373
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -12313,6 +12441,18 @@ var getSafeUserProps = function (props) {
|
|
|
12313
12441
|
return [key, getValue(value, props)];
|
|
12314
12442
|
}));
|
|
12315
12443
|
};
|
|
12444
|
+
/**
|
|
12445
|
+
* Wraps a component and adds safe user props
|
|
12446
|
+
*
|
|
12447
|
+
* @param {ReactElement} component: parent component
|
|
12448
|
+
* @param {Object} props: props to be filtered
|
|
12449
|
+
* @returns {ReactElement} modified component
|
|
12450
|
+
*/
|
|
12451
|
+
|
|
12452
|
+
var withSafeUserProps = function (component, props) {
|
|
12453
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
12454
|
+
};
|
|
12455
|
+
//# sourceMappingURL=user-props.js.map
|
|
12316
12456
|
|
|
12317
12457
|
/***/ }),
|
|
12318
12458
|
|
|
@@ -12333,11 +12473,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12333
12473
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
|
|
12334
12474
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
12335
12475
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
12336
|
-
/* harmony import */ var
|
|
12337
|
-
/* harmony import */ var
|
|
12338
|
-
/* harmony import */ var
|
|
12476
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
12477
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
12478
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
12479
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
12339
12480
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
12340
|
-
/* harmony import */ var
|
|
12481
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
12341
12482
|
|
|
12342
12483
|
|
|
12343
12484
|
|
|
@@ -12407,8 +12548,8 @@ var evaluateProps = function (props) {
|
|
|
12407
12548
|
* `id`
|
|
12408
12549
|
* `style`
|
|
12409
12550
|
*/
|
|
12410
|
-
var id =
|
|
12411
|
-
var style =
|
|
12551
|
+
var id = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.id, props);
|
|
12552
|
+
var style = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(props.style, props);
|
|
12412
12553
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
12413
12554
|
id: id,
|
|
12414
12555
|
style: style
|
|
@@ -12417,7 +12558,8 @@ var evaluateProps = function (props) {
|
|
|
12417
12558
|
|
|
12418
12559
|
var Flyout = function (props) {
|
|
12419
12560
|
props = evaluateProps(props);
|
|
12420
|
-
|
|
12561
|
+
var userProps = victory_core__WEBPACK_IMPORTED_MODULE_4__.getSafeUserProps(props);
|
|
12562
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(props.pathComponent, _objectSpread(_objectSpread(_objectSpread({}, props.events), userProps), {}, {
|
|
12421
12563
|
style: props.style,
|
|
12422
12564
|
d: getFlyoutPath(props),
|
|
12423
12565
|
className: props.className,
|
|
@@ -12428,30 +12570,31 @@ var Flyout = function (props) {
|
|
|
12428
12570
|
}));
|
|
12429
12571
|
};
|
|
12430
12572
|
|
|
12431
|
-
Flyout.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.primitiveProps), {}, {
|
|
12432
|
-
center:
|
|
12433
|
-
x: (
|
|
12434
|
-
y: (
|
|
12573
|
+
Flyout.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.CommonProps.primitiveProps), {}, {
|
|
12574
|
+
center: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
12575
|
+
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12576
|
+
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
12435
12577
|
}),
|
|
12436
|
-
cornerRadius: (
|
|
12437
|
-
datum: (
|
|
12438
|
-
dx: (
|
|
12439
|
-
dy: (
|
|
12440
|
-
height: (
|
|
12441
|
-
orientation:
|
|
12442
|
-
pathComponent: (
|
|
12443
|
-
pointerLength: (
|
|
12444
|
-
pointerWidth: (
|
|
12445
|
-
width: (
|
|
12446
|
-
x: (
|
|
12447
|
-
y: (
|
|
12578
|
+
cornerRadius: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12579
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
12580
|
+
dx: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12581
|
+
dy: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12582
|
+
height: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12583
|
+
orientation: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["top", "bottom", "left", "right"]),
|
|
12584
|
+
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
12585
|
+
pointerLength: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12586
|
+
pointerWidth: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12587
|
+
width: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12588
|
+
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12589
|
+
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
12448
12590
|
});
|
|
12449
12591
|
Flyout.defaultProps = {
|
|
12450
|
-
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(
|
|
12592
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Path, null),
|
|
12451
12593
|
role: "presentation",
|
|
12452
12594
|
shapeRendering: "auto"
|
|
12453
12595
|
};
|
|
12454
12596
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Flyout);
|
|
12597
|
+
//# sourceMappingURL=flyout.js.map
|
|
12455
12598
|
|
|
12456
12599
|
/***/ }),
|
|
12457
12600
|
|
|
@@ -12478,13 +12621,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12478
12621
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
12479
12622
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
12480
12623
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
12481
|
-
/* harmony import */ var
|
|
12482
|
-
/* harmony import */ var
|
|
12483
|
-
/* harmony import */ var
|
|
12484
|
-
/* harmony import */ var
|
|
12485
|
-
/* harmony import */ var
|
|
12486
|
-
/* harmony import */ var
|
|
12487
|
-
/* harmony import */ var
|
|
12624
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
12625
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
|
|
12626
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/label-helpers.js");
|
|
12627
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
|
|
12628
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
12629
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/textsize.js");
|
|
12630
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-portal/victory-portal.js");
|
|
12488
12631
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
12489
12632
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
12490
12633
|
/* harmony import */ var _flyout__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./flyout */ "../../victory-tooltip/es/flyout.js");
|
|
@@ -12514,7 +12657,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
12514
12657
|
|
|
12515
12658
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
12516
12659
|
|
|
12517
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
12660
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12518
12661
|
|
|
12519
12662
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12520
12663
|
|
|
@@ -12524,9 +12667,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
12524
12667
|
|
|
12525
12668
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12526
12669
|
|
|
12527
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12528
|
-
|
|
12529
|
-
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; }
|
|
12670
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12530
12671
|
|
|
12531
12672
|
|
|
12532
12673
|
|
|
@@ -12571,7 +12712,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12571
12712
|
}, {
|
|
12572
12713
|
key: "getPolarOrientation",
|
|
12573
12714
|
value: function getPolarOrientation(props, datum) {
|
|
12574
|
-
var degrees =
|
|
12715
|
+
var degrees = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDegrees(props, datum);
|
|
12575
12716
|
var placement = props.labelPlacement || "vertical";
|
|
12576
12717
|
|
|
12577
12718
|
if (placement === " vertical") {
|
|
@@ -12599,7 +12740,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12599
12740
|
}, {
|
|
12600
12741
|
key: "getStyles",
|
|
12601
12742
|
value: function getStyles(props) {
|
|
12602
|
-
var theme = props.theme ||
|
|
12743
|
+
var theme = props.theme || victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryTheme.grayscale;
|
|
12603
12744
|
var defaultLabelStyles = theme && theme.tooltip && theme.tooltip.style ? theme.tooltip.style : {};
|
|
12604
12745
|
var baseLabelStyle = Array.isArray(props.style) ? props.style.map(function (s) {
|
|
12605
12746
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, s, defaultLabelStyles);
|
|
@@ -12607,9 +12748,9 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12607
12748
|
var defaultFlyoutStyles = theme && theme.tooltip && theme.tooltip.flyoutStyle ? theme.tooltip.flyoutStyle : {};
|
|
12608
12749
|
var baseFlyoutStyle = props.flyoutStyle ? lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.flyoutStyle, defaultFlyoutStyles) : defaultFlyoutStyles;
|
|
12609
12750
|
var style = Array.isArray(baseLabelStyle) ? baseLabelStyle.map(function (s) {
|
|
12610
|
-
return
|
|
12611
|
-
}) :
|
|
12612
|
-
var flyoutStyle =
|
|
12751
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateStyle(s, props);
|
|
12752
|
+
}) : victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateStyle(baseLabelStyle, props);
|
|
12753
|
+
var flyoutStyle = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateStyle(baseFlyoutStyle, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
|
|
12613
12754
|
style: style
|
|
12614
12755
|
}));
|
|
12615
12756
|
return {
|
|
@@ -12624,8 +12765,8 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12624
12765
|
centerOffset = props.centerOffset,
|
|
12625
12766
|
dx = props.dx,
|
|
12626
12767
|
dy = props.dy;
|
|
12627
|
-
var active =
|
|
12628
|
-
var text =
|
|
12768
|
+
var active = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.active, props);
|
|
12769
|
+
var text = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.text, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
|
|
12629
12770
|
active: active
|
|
12630
12771
|
}));
|
|
12631
12772
|
|
|
@@ -12636,37 +12777,37 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12636
12777
|
style = _this$getStyles.style,
|
|
12637
12778
|
flyoutStyle = _this$getStyles.flyoutStyle;
|
|
12638
12779
|
|
|
12639
|
-
var orientation =
|
|
12780
|
+
var orientation = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.orientation, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
|
|
12640
12781
|
active: active,
|
|
12641
12782
|
text: text,
|
|
12642
12783
|
style: style,
|
|
12643
12784
|
flyoutStyle: flyoutStyle
|
|
12644
12785
|
})) || this.getDefaultOrientation(props);
|
|
12645
|
-
var padding =
|
|
12786
|
+
var padding = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.flyoutPadding, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
|
|
12646
12787
|
active: active,
|
|
12647
12788
|
text: text,
|
|
12648
12789
|
style: style,
|
|
12649
12790
|
flyoutStyle: flyoutStyle,
|
|
12650
12791
|
orientation: orientation
|
|
12651
12792
|
})) || this.getLabelPadding(style);
|
|
12652
|
-
var flyoutPadding =
|
|
12793
|
+
var flyoutPadding = victory_core__WEBPACK_IMPORTED_MODULE_8__.getPadding({
|
|
12653
12794
|
padding: padding
|
|
12654
12795
|
});
|
|
12655
|
-
var pointerWidth =
|
|
12796
|
+
var pointerWidth = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.pointerWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
|
|
12656
12797
|
active: active,
|
|
12657
12798
|
text: text,
|
|
12658
12799
|
style: style,
|
|
12659
12800
|
flyoutStyle: flyoutStyle,
|
|
12660
12801
|
orientation: orientation
|
|
12661
12802
|
}));
|
|
12662
|
-
var pointerLength =
|
|
12803
|
+
var pointerLength = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.pointerLength, lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
|
|
12663
12804
|
active: active,
|
|
12664
12805
|
text: text,
|
|
12665
12806
|
style: style,
|
|
12666
12807
|
flyoutStyle: flyoutStyle,
|
|
12667
12808
|
orientation: orientation
|
|
12668
12809
|
}));
|
|
12669
|
-
var labelSize =
|
|
12810
|
+
var labelSize = victory_core__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(text, style);
|
|
12670
12811
|
|
|
12671
12812
|
var _this$getDimensions = this.getDimensions(lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, props, {
|
|
12672
12813
|
style: style,
|
|
@@ -12694,16 +12835,16 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12694
12835
|
pointerLength: pointerLength
|
|
12695
12836
|
});
|
|
12696
12837
|
|
|
12697
|
-
var offsetX = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(centerOffset) && centerOffset.x !== undefined ?
|
|
12698
|
-
var offsetY = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(centerOffset) && centerOffset.y !== undefined ?
|
|
12838
|
+
var offsetX = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(centerOffset) && centerOffset.x !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(centerOffset.x, evaluatedProps) : 0;
|
|
12839
|
+
var offsetY = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(centerOffset) && centerOffset.y !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(centerOffset.y, evaluatedProps) : 0;
|
|
12699
12840
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()({}, evaluatedProps, {
|
|
12700
12841
|
centerOffset: {
|
|
12701
12842
|
x: offsetX,
|
|
12702
12843
|
y: offsetY
|
|
12703
12844
|
},
|
|
12704
|
-
dx: dx !== undefined ?
|
|
12705
|
-
dy: dy !== undefined ?
|
|
12706
|
-
cornerRadius:
|
|
12845
|
+
dx: dx !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(dx, evaluatedProps) : 0,
|
|
12846
|
+
dy: dy !== undefined ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(dy, evaluatedProps) : 0,
|
|
12847
|
+
cornerRadius: victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(cornerRadius, evaluatedProps)
|
|
12707
12848
|
});
|
|
12708
12849
|
}
|
|
12709
12850
|
}, {
|
|
@@ -12714,7 +12855,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12714
12855
|
flyoutStyle = props.flyoutStyle,
|
|
12715
12856
|
flyoutHeight = props.flyoutHeight,
|
|
12716
12857
|
flyoutWidth = props.flyoutWidth;
|
|
12717
|
-
var labelSize =
|
|
12858
|
+
var labelSize = victory_core__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(text, style);
|
|
12718
12859
|
var flyoutDimensions = {
|
|
12719
12860
|
height: flyoutHeight,
|
|
12720
12861
|
width: flyoutWidth
|
|
@@ -12753,7 +12894,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12753
12894
|
return 0;
|
|
12754
12895
|
}
|
|
12755
12896
|
|
|
12756
|
-
var degrees =
|
|
12897
|
+
var degrees = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDegrees(props, datum);
|
|
12757
12898
|
var sign = degrees > 90 && degrees < 180 || degrees > 270 ? 1 : -1;
|
|
12758
12899
|
var labelRotation = labelPlacement === "perpendicular" ? 0 : 90;
|
|
12759
12900
|
var angle;
|
|
@@ -12843,7 +12984,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12843
12984
|
flyoutHeight = props.flyoutHeight,
|
|
12844
12985
|
flyoutWidth = props.flyoutWidth,
|
|
12845
12986
|
flyoutPadding = props.flyoutPadding;
|
|
12846
|
-
var cornerRadius =
|
|
12987
|
+
var cornerRadius = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.cornerRadius, props);
|
|
12847
12988
|
|
|
12848
12989
|
var getHeight = function () {
|
|
12849
12990
|
var calculatedHeight = labelSize.height + flyoutPadding.top + flyoutPadding.bottom;
|
|
@@ -12858,8 +12999,8 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12858
12999
|
};
|
|
12859
13000
|
|
|
12860
13001
|
return {
|
|
12861
|
-
flyoutHeight: flyoutHeight ?
|
|
12862
|
-
flyoutWidth: flyoutWidth ?
|
|
13002
|
+
flyoutHeight: flyoutHeight ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(flyoutHeight, props) : getHeight(props, labelSize, orientation),
|
|
13003
|
+
flyoutWidth: flyoutWidth ? victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(flyoutWidth, props) : getWidth(props, labelSize, orientation)
|
|
12863
13004
|
};
|
|
12864
13005
|
}
|
|
12865
13006
|
}, {
|
|
@@ -12946,7 +13087,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12946
13087
|
cornerRadius = props.cornerRadius,
|
|
12947
13088
|
events = props.events,
|
|
12948
13089
|
flyoutComponent = props.flyoutComponent;
|
|
12949
|
-
var pointerOrientation =
|
|
13090
|
+
var pointerOrientation = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.pointerOrientation, props);
|
|
12950
13091
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, flyoutComponent.props, {
|
|
12951
13092
|
x: x,
|
|
12952
13093
|
y: y,
|
|
@@ -12974,11 +13115,11 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12974
13115
|
}, {
|
|
12975
13116
|
key: "renderTooltip",
|
|
12976
13117
|
value: function renderTooltip(props) {
|
|
12977
|
-
var active =
|
|
13118
|
+
var active = victory_core__WEBPACK_IMPORTED_MODULE_8__.evaluateProp(props.active, props);
|
|
12978
13119
|
var renderInPortal = props.renderInPortal;
|
|
12979
13120
|
|
|
12980
13121
|
if (!active) {
|
|
12981
|
-
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
13122
|
+
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, null) : null;
|
|
12982
13123
|
}
|
|
12983
13124
|
|
|
12984
13125
|
var evaluatedProps = this.getEvaluatedProps(props);
|
|
@@ -12991,12 +13132,12 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12991
13132
|
role: "presentation",
|
|
12992
13133
|
transform: calculatedValues.transform
|
|
12993
13134
|
}, children);
|
|
12994
|
-
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
13135
|
+
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, tooltip) : tooltip;
|
|
12995
13136
|
}
|
|
12996
13137
|
}, {
|
|
12997
13138
|
key: "render",
|
|
12998
13139
|
value: function render() {
|
|
12999
|
-
var props =
|
|
13140
|
+
var props = victory_core__WEBPACK_IMPORTED_MODULE_8__.modifyProps(this.props, fallbackProps, "tooltip");
|
|
13000
13141
|
return this.renderTooltip(props);
|
|
13001
13142
|
}
|
|
13002
13143
|
}]);
|
|
@@ -13004,73 +13145,70 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
13004
13145
|
return VictoryTooltip;
|
|
13005
13146
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
13006
13147
|
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
13015
|
-
angle: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
13016
|
-
center: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
13148
|
+
VictoryTooltip.displayName = "VictoryTooltip";
|
|
13149
|
+
VictoryTooltip.role = "tooltip";
|
|
13150
|
+
VictoryTooltip.propTypes = {
|
|
13151
|
+
activateData: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
13152
|
+
active: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13153
|
+
activePoints: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
13154
|
+
angle: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13155
|
+
center: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
13017
13156
|
x: victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
|
|
13018
13157
|
y: victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative
|
|
13019
13158
|
}),
|
|
13020
|
-
centerOffset:
|
|
13021
|
-
x:
|
|
13022
|
-
y:
|
|
13159
|
+
centerOffset: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
13160
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13161
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)])
|
|
13023
13162
|
}),
|
|
13024
|
-
constrainToVisibleArea: (
|
|
13025
|
-
cornerRadius:
|
|
13026
|
-
data: (
|
|
13027
|
-
datum: (
|
|
13028
|
-
dx:
|
|
13029
|
-
dy:
|
|
13030
|
-
events: (
|
|
13031
|
-
flyoutComponent: (
|
|
13032
|
-
flyoutHeight:
|
|
13033
|
-
flyoutPadding:
|
|
13034
|
-
top: (
|
|
13035
|
-
bottom: (
|
|
13036
|
-
left: (
|
|
13037
|
-
right: (
|
|
13163
|
+
constrainToVisibleArea: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
13164
|
+
cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13165
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
13166
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
13167
|
+
dx: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13168
|
+
dy: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13169
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
13170
|
+
flyoutComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
13171
|
+
flyoutHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13172
|
+
flyoutPadding: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
13173
|
+
top: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13174
|
+
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13175
|
+
left: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13176
|
+
right: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number)
|
|
13038
13177
|
})]),
|
|
13039
|
-
flyoutStyle: (
|
|
13040
|
-
flyoutWidth:
|
|
13041
|
-
groupComponent: (
|
|
13042
|
-
height: (
|
|
13043
|
-
horizontal: (
|
|
13044
|
-
id:
|
|
13045
|
-
index:
|
|
13046
|
-
labelComponent: (
|
|
13047
|
-
orientation:
|
|
13048
|
-
pointerLength:
|
|
13049
|
-
pointerOrientation:
|
|
13050
|
-
pointerWidth:
|
|
13051
|
-
polar: (
|
|
13052
|
-
renderInPortal: (
|
|
13053
|
-
scale:
|
|
13178
|
+
flyoutStyle: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
13179
|
+
flyoutWidth: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13180
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
13181
|
+
height: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13182
|
+
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
13183
|
+
id: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
13184
|
+
index: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
13185
|
+
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
13186
|
+
orientation: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["top", "bottom", "left", "right"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13187
|
+
pointerLength: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13188
|
+
pointerOrientation: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["top", "bottom", "left", "right"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13189
|
+
pointerWidth: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13190
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
13191
|
+
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
13192
|
+
scale: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
13054
13193
|
x: victory_core__WEBPACK_IMPORTED_MODULE_12__.scale,
|
|
13055
13194
|
y: victory_core__WEBPACK_IMPORTED_MODULE_12__.scale
|
|
13056
13195
|
}),
|
|
13057
|
-
style:
|
|
13058
|
-
text:
|
|
13059
|
-
theme: (
|
|
13060
|
-
width: (
|
|
13061
|
-
x: (
|
|
13062
|
-
y: (
|
|
13063
|
-
}
|
|
13064
|
-
|
|
13065
|
-
_defineProperty(VictoryTooltip, "defaultProps", {
|
|
13196
|
+
style: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
13197
|
+
text: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
13198
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
13199
|
+
width: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13200
|
+
x: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13201
|
+
y: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number)
|
|
13202
|
+
};
|
|
13203
|
+
VictoryTooltip.defaultProps = {
|
|
13066
13204
|
active: false,
|
|
13067
13205
|
renderInPortal: true,
|
|
13068
|
-
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__
|
|
13206
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__.VictoryLabel, null),
|
|
13069
13207
|
flyoutComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_flyout__WEBPACK_IMPORTED_MODULE_14__["default"], null),
|
|
13070
13208
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("g", null)
|
|
13071
|
-
}
|
|
13209
|
+
};
|
|
13072
13210
|
|
|
13073
|
-
|
|
13211
|
+
VictoryTooltip.defaultEvents = function (props) {
|
|
13074
13212
|
var activate = props.activateData ? [{
|
|
13075
13213
|
target: "labels",
|
|
13076
13214
|
mutation: function () {
|
|
@@ -13138,9 +13276,10 @@ _defineProperty(VictoryTooltip, "defaultEvents", function (props) {
|
|
|
13138
13276
|
}
|
|
13139
13277
|
}
|
|
13140
13278
|
}];
|
|
13141
|
-
}
|
|
13279
|
+
};
|
|
13142
13280
|
|
|
13143
13281
|
|
|
13282
|
+
//# sourceMappingURL=victory-tooltip.js.map
|
|
13144
13283
|
|
|
13145
13284
|
/***/ }),
|
|
13146
13285
|
|
|
@@ -13231,9 +13370,9 @@ function ascending(a, b) {
|
|
|
13231
13370
|
"use strict";
|
|
13232
13371
|
__webpack_require__.r(__webpack_exports__);
|
|
13233
13372
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13234
|
-
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
13235
|
-
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
13236
13373
|
/* harmony export */ "bisectCenter": () => (/* binding */ bisectCenter),
|
|
13374
|
+
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
13375
|
+
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
13237
13376
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13238
13377
|
/* harmony export */ });
|
|
13239
13378
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
@@ -13619,9 +13758,9 @@ function range(start, stop, step) {
|
|
|
13619
13758
|
"use strict";
|
|
13620
13759
|
__webpack_require__.r(__webpack_exports__);
|
|
13621
13760
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13622
|
-
/* harmony export */ "
|
|
13761
|
+
/* harmony export */ "ascendingDefined": () => (/* binding */ ascendingDefined),
|
|
13623
13762
|
/* harmony export */ "compareDefined": () => (/* binding */ compareDefined),
|
|
13624
|
-
/* harmony export */ "
|
|
13763
|
+
/* harmony export */ "default": () => (/* binding */ sort)
|
|
13625
13764
|
/* harmony export */ });
|
|
13626
13765
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
13627
13766
|
/* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permute.js */ "../../victory-vendor/node_modules/d3-array/src/permute.js");
|
|
@@ -13749,14 +13888,14 @@ function tickStep(start, stop, count) {
|
|
|
13749
13888
|
__webpack_require__.r(__webpack_exports__);
|
|
13750
13889
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13751
13890
|
/* harmony export */ "Color": () => (/* binding */ Color),
|
|
13752
|
-
/* harmony export */ "
|
|
13891
|
+
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
13753
13892
|
/* harmony export */ "brighter": () => (/* binding */ brighter),
|
|
13893
|
+
/* harmony export */ "darker": () => (/* binding */ darker),
|
|
13754
13894
|
/* harmony export */ "default": () => (/* binding */ color),
|
|
13755
|
-
/* harmony export */ "
|
|
13756
|
-
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
13757
|
-
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
13895
|
+
/* harmony export */ "hsl": () => (/* binding */ hsl),
|
|
13758
13896
|
/* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
|
|
13759
|
-
/* harmony export */ "
|
|
13897
|
+
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
13898
|
+
/* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert)
|
|
13760
13899
|
/* harmony export */ });
|
|
13761
13900
|
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-vendor/node_modules/d3-color/src/define.js");
|
|
13762
13901
|
|
|
@@ -14194,9 +14333,9 @@ function extend(parent, definition) {
|
|
|
14194
14333
|
"use strict";
|
|
14195
14334
|
__webpack_require__.r(__webpack_exports__);
|
|
14196
14335
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14336
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
14197
14337
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
14198
|
-
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
14199
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
14338
|
+
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
14200
14339
|
/* harmony export */ });
|
|
14201
14340
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-format/src/locale.js");
|
|
14202
14341
|
|
|
@@ -14342,8 +14481,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14342
14481
|
"use strict";
|
|
14343
14482
|
__webpack_require__.r(__webpack_exports__);
|
|
14344
14483
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14345
|
-
/* harmony export */ "
|
|
14346
|
-
/* harmony export */ "
|
|
14484
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
14485
|
+
/* harmony export */ "prefixExponent": () => (/* binding */ prefixExponent)
|
|
14347
14486
|
/* harmony export */ });
|
|
14348
14487
|
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../victory-vendor/node_modules/d3-format/src/formatDecimal.js");
|
|
14349
14488
|
|
|
@@ -14402,8 +14541,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14402
14541
|
"use strict";
|
|
14403
14542
|
__webpack_require__.r(__webpack_exports__);
|
|
14404
14543
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14405
|
-
/* harmony export */ "
|
|
14406
|
-
/* harmony export */ "
|
|
14544
|
+
/* harmony export */ "FormatSpecifier": () => (/* binding */ FormatSpecifier),
|
|
14545
|
+
/* harmony export */ "default": () => (/* binding */ formatSpecifier)
|
|
14407
14546
|
/* harmony export */ });
|
|
14408
14547
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
14409
14548
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
@@ -14885,9 +15024,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14885
15024
|
"use strict";
|
|
14886
15025
|
__webpack_require__.r(__webpack_exports__);
|
|
14887
15026
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14888
|
-
/* harmony export */ "
|
|
15027
|
+
/* harmony export */ "default": () => (/* binding */ nogamma),
|
|
14889
15028
|
/* harmony export */ "gamma": () => (/* binding */ gamma),
|
|
14890
|
-
/* harmony export */ "
|
|
15029
|
+
/* harmony export */ "hue": () => (/* binding */ hue)
|
|
14891
15030
|
/* harmony export */ });
|
|
14892
15031
|
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-vendor/node_modules/d3-interpolate/src/constant.js");
|
|
14893
15032
|
|
|
@@ -15447,10 +15586,10 @@ function constants(x) {
|
|
|
15447
15586
|
"use strict";
|
|
15448
15587
|
__webpack_require__.r(__webpack_exports__);
|
|
15449
15588
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15450
|
-
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
15451
15589
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
15452
|
-
/* harmony export */ "
|
|
15453
|
-
/* harmony export */ "
|
|
15590
|
+
/* harmony export */ "default": () => (/* binding */ continuous),
|
|
15591
|
+
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
15592
|
+
/* harmony export */ "transformer": () => (/* binding */ transformer)
|
|
15454
15593
|
/* harmony export */ });
|
|
15455
15594
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisect.js");
|
|
15456
15595
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -15598,9 +15737,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15598
15737
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15599
15738
|
/* harmony export */ "default": () => (/* binding */ diverging),
|
|
15600
15739
|
/* harmony export */ "divergingLog": () => (/* binding */ divergingLog),
|
|
15601
|
-
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog),
|
|
15602
15740
|
/* harmony export */ "divergingPow": () => (/* binding */ divergingPow),
|
|
15603
|
-
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt)
|
|
15741
|
+
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt),
|
|
15742
|
+
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog)
|
|
15604
15743
|
/* harmony export */ });
|
|
15605
15744
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/piecewise.js");
|
|
15606
15745
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -15775,32 +15914,32 @@ function identity(domain) {
|
|
|
15775
15914
|
__webpack_require__.r(__webpack_exports__);
|
|
15776
15915
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15777
15916
|
/* harmony export */ "scaleBand": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
15778
|
-
/* harmony export */ "
|
|
15917
|
+
/* harmony export */ "scaleDiverging": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
15918
|
+
/* harmony export */ "scaleDivergingLog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingLog),
|
|
15919
|
+
/* harmony export */ "scaleDivergingPow": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingPow),
|
|
15920
|
+
/* harmony export */ "scaleDivergingSqrt": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSqrt),
|
|
15921
|
+
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
15779
15922
|
/* harmony export */ "scaleIdentity": () => (/* reexport safe */ _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
15923
|
+
/* harmony export */ "scaleImplicit": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__.implicit),
|
|
15780
15924
|
/* harmony export */ "scaleLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
15781
15925
|
/* harmony export */ "scaleLog": () => (/* reexport safe */ _log_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
15782
|
-
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
15783
15926
|
/* harmony export */ "scaleOrdinal": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
15784
|
-
/* harmony export */ "
|
|
15927
|
+
/* harmony export */ "scalePoint": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__.point),
|
|
15785
15928
|
/* harmony export */ "scalePow": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
15786
|
-
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
15787
|
-
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
15788
15929
|
/* harmony export */ "scaleQuantile": () => (/* reexport safe */ _quantile_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
15789
15930
|
/* harmony export */ "scaleQuantize": () => (/* reexport safe */ _quantize_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
15790
|
-
/* harmony export */ "
|
|
15791
|
-
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
15792
|
-
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
15931
|
+
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
15793
15932
|
/* harmony export */ "scaleSequential": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
15794
15933
|
/* harmony export */ "scaleSequentialLog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialLog),
|
|
15795
15934
|
/* harmony export */ "scaleSequentialPow": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialPow),
|
|
15935
|
+
/* harmony export */ "scaleSequentialQuantile": () => (/* reexport safe */ _sequentialQuantile_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
15796
15936
|
/* harmony export */ "scaleSequentialSqrt": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSqrt),
|
|
15797
15937
|
/* harmony export */ "scaleSequentialSymlog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSymlog),
|
|
15798
|
-
/* harmony export */ "
|
|
15799
|
-
/* harmony export */ "
|
|
15800
|
-
/* harmony export */ "
|
|
15801
|
-
/* harmony export */ "
|
|
15802
|
-
/* harmony export */ "
|
|
15803
|
-
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
15938
|
+
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
15939
|
+
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
15940
|
+
/* harmony export */ "scaleThreshold": () => (/* reexport safe */ _threshold_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
15941
|
+
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
15942
|
+
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
15804
15943
|
/* harmony export */ "tickFormat": () => (/* reexport safe */ _tickFormat_js__WEBPACK_IMPORTED_MODULE_16__["default"])
|
|
15805
15944
|
/* harmony export */ });
|
|
15806
15945
|
/* harmony import */ var _band_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band.js */ "../../victory-vendor/node_modules/d3-scale/src/band.js");
|
|
@@ -15866,8 +16005,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15866
16005
|
"use strict";
|
|
15867
16006
|
__webpack_require__.r(__webpack_exports__);
|
|
15868
16007
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15869
|
-
/* harmony export */ "
|
|
15870
|
-
/* harmony export */ "
|
|
16008
|
+
/* harmony export */ "initInterpolator": () => (/* binding */ initInterpolator),
|
|
16009
|
+
/* harmony export */ "initRange": () => (/* binding */ initRange)
|
|
15871
16010
|
/* harmony export */ });
|
|
15872
16011
|
function initRange(domain, range) {
|
|
15873
16012
|
switch (arguments.length) {
|
|
@@ -15908,8 +16047,8 @@ function initInterpolator(domain, interpolator) {
|
|
|
15908
16047
|
"use strict";
|
|
15909
16048
|
__webpack_require__.r(__webpack_exports__);
|
|
15910
16049
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15911
|
-
/* harmony export */ "
|
|
15912
|
-
/* harmony export */ "
|
|
16050
|
+
/* harmony export */ "default": () => (/* binding */ linear),
|
|
16051
|
+
/* harmony export */ "linearish": () => (/* binding */ linearish)
|
|
15913
16052
|
/* harmony export */ });
|
|
15914
16053
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
15915
16054
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -15998,8 +16137,8 @@ function linear() {
|
|
|
15998
16137
|
"use strict";
|
|
15999
16138
|
__webpack_require__.r(__webpack_exports__);
|
|
16000
16139
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16001
|
-
/* harmony export */ "
|
|
16002
|
-
/* harmony export */ "
|
|
16140
|
+
/* harmony export */ "default": () => (/* binding */ log),
|
|
16141
|
+
/* harmony export */ "loggish": () => (/* binding */ loggish)
|
|
16003
16142
|
/* harmony export */ });
|
|
16004
16143
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
16005
16144
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../victory-vendor/node_modules/d3-format/src/formatSpecifier.js");
|
|
@@ -16211,8 +16350,8 @@ function number(x) {
|
|
|
16211
16350
|
"use strict";
|
|
16212
16351
|
__webpack_require__.r(__webpack_exports__);
|
|
16213
16352
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16214
|
-
/* harmony export */ "
|
|
16215
|
-
/* harmony export */ "
|
|
16353
|
+
/* harmony export */ "default": () => (/* binding */ ordinal),
|
|
16354
|
+
/* harmony export */ "implicit": () => (/* binding */ implicit)
|
|
16216
16355
|
/* harmony export */ });
|
|
16217
16356
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/internmap/src/index.js");
|
|
16218
16357
|
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init.js */ "../../victory-vendor/node_modules/d3-scale/src/init.js");
|
|
@@ -16275,8 +16414,8 @@ function ordinal() {
|
|
|
16275
16414
|
"use strict";
|
|
16276
16415
|
__webpack_require__.r(__webpack_exports__);
|
|
16277
16416
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16278
|
-
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
16279
16417
|
/* harmony export */ "default": () => (/* binding */ pow),
|
|
16418
|
+
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
16280
16419
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt)
|
|
16281
16420
|
/* harmony export */ });
|
|
16282
16421
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
@@ -16580,9 +16719,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16580
16719
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
16581
16720
|
/* harmony export */ "default": () => (/* binding */ sequential),
|
|
16582
16721
|
/* harmony export */ "sequentialLog": () => (/* binding */ sequentialLog),
|
|
16583
|
-
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog),
|
|
16584
16722
|
/* harmony export */ "sequentialPow": () => (/* binding */ sequentialPow),
|
|
16585
|
-
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt)
|
|
16723
|
+
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt),
|
|
16724
|
+
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog)
|
|
16586
16725
|
/* harmony export */ });
|
|
16587
16726
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
16588
16727
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/round.js");
|
|
@@ -16770,8 +16909,8 @@ function sequentialQuantile() {
|
|
|
16770
16909
|
"use strict";
|
|
16771
16910
|
__webpack_require__.r(__webpack_exports__);
|
|
16772
16911
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16773
|
-
/* harmony export */ "
|
|
16774
|
-
/* harmony export */ "
|
|
16912
|
+
/* harmony export */ "default": () => (/* binding */ symlog),
|
|
16913
|
+
/* harmony export */ "symlogish": () => (/* binding */ symlogish)
|
|
16775
16914
|
/* harmony export */ });
|
|
16776
16915
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
16777
16916
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -17063,11 +17202,11 @@ function utcTime() {
|
|
|
17063
17202
|
"use strict";
|
|
17064
17203
|
__webpack_require__.r(__webpack_exports__);
|
|
17065
17204
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17205
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
17066
17206
|
/* harmony export */ "timeFormat": () => (/* binding */ timeFormat),
|
|
17067
17207
|
/* harmony export */ "timeParse": () => (/* binding */ timeParse),
|
|
17068
17208
|
/* harmony export */ "utcFormat": () => (/* binding */ utcFormat),
|
|
17069
|
-
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
17070
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
17209
|
+
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
17071
17210
|
/* harmony export */ });
|
|
17072
17211
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-time-format/src/locale.js");
|
|
17073
17212
|
|
|
@@ -17817,8 +17956,8 @@ function formatUnixTimestampSeconds(d) {
|
|
|
17817
17956
|
"use strict";
|
|
17818
17957
|
__webpack_require__.r(__webpack_exports__);
|
|
17819
17958
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17820
|
-
/* harmony export */ "
|
|
17821
|
-
/* harmony export */ "
|
|
17959
|
+
/* harmony export */ "days": () => (/* binding */ days),
|
|
17960
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
17822
17961
|
/* harmony export */ });
|
|
17823
17962
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
17824
17963
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -17847,12 +17986,12 @@ var days = day.range;
|
|
|
17847
17986
|
"use strict";
|
|
17848
17987
|
__webpack_require__.r(__webpack_exports__);
|
|
17849
17988
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17850
|
-
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
17851
|
-
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
17852
|
-
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
17853
17989
|
/* harmony export */ "durationDay": () => (/* binding */ durationDay),
|
|
17854
|
-
/* harmony export */ "
|
|
17990
|
+
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
17991
|
+
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
17855
17992
|
/* harmony export */ "durationMonth": () => (/* binding */ durationMonth),
|
|
17993
|
+
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
17994
|
+
/* harmony export */ "durationWeek": () => (/* binding */ durationWeek),
|
|
17856
17995
|
/* harmony export */ "durationYear": () => (/* binding */ durationYear)
|
|
17857
17996
|
/* harmony export */ });
|
|
17858
17997
|
const durationSecond = 1000;
|
|
@@ -18134,10 +18273,10 @@ var seconds = second.range;
|
|
|
18134
18273
|
"use strict";
|
|
18135
18274
|
__webpack_require__.r(__webpack_exports__);
|
|
18136
18275
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18137
|
-
/* harmony export */ "
|
|
18138
|
-
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
18276
|
+
/* harmony export */ "timeTickInterval": () => (/* binding */ timeTickInterval),
|
|
18139
18277
|
/* harmony export */ "timeTicks": () => (/* binding */ timeTicks),
|
|
18140
|
-
/* harmony export */ "
|
|
18278
|
+
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
18279
|
+
/* harmony export */ "utcTicks": () => (/* binding */ utcTicks)
|
|
18141
18280
|
/* harmony export */ });
|
|
18142
18281
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisector.js");
|
|
18143
18282
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
@@ -18364,20 +18503,20 @@ var utcMonths = utcMonth.range;
|
|
|
18364
18503
|
"use strict";
|
|
18365
18504
|
__webpack_require__.r(__webpack_exports__);
|
|
18366
18505
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18367
|
-
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
18368
|
-
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
18369
|
-
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
18370
|
-
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
18371
|
-
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
18372
18506
|
/* harmony export */ "utcFriday": () => (/* binding */ utcFriday),
|
|
18507
|
+
/* harmony export */ "utcFridays": () => (/* binding */ utcFridays),
|
|
18508
|
+
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
18509
|
+
/* harmony export */ "utcMondays": () => (/* binding */ utcMondays),
|
|
18373
18510
|
/* harmony export */ "utcSaturday": () => (/* binding */ utcSaturday),
|
|
18511
|
+
/* harmony export */ "utcSaturdays": () => (/* binding */ utcSaturdays),
|
|
18512
|
+
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
18374
18513
|
/* harmony export */ "utcSundays": () => (/* binding */ utcSundays),
|
|
18375
|
-
/* harmony export */ "
|
|
18376
|
-
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
18377
|
-
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays),
|
|
18514
|
+
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
18378
18515
|
/* harmony export */ "utcThursdays": () => (/* binding */ utcThursdays),
|
|
18379
|
-
/* harmony export */ "
|
|
18380
|
-
/* harmony export */ "
|
|
18516
|
+
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
18517
|
+
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
18518
|
+
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
18519
|
+
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays)
|
|
18381
18520
|
/* harmony export */ });
|
|
18382
18521
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
18383
18522
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -18466,20 +18605,20 @@ var utcYears = utcYear.range;
|
|
|
18466
18605
|
"use strict";
|
|
18467
18606
|
__webpack_require__.r(__webpack_exports__);
|
|
18468
18607
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18469
|
-
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
18470
|
-
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
18471
|
-
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
18472
|
-
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
18473
|
-
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
18474
18608
|
/* harmony export */ "friday": () => (/* binding */ friday),
|
|
18609
|
+
/* harmony export */ "fridays": () => (/* binding */ fridays),
|
|
18610
|
+
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
18611
|
+
/* harmony export */ "mondays": () => (/* binding */ mondays),
|
|
18475
18612
|
/* harmony export */ "saturday": () => (/* binding */ saturday),
|
|
18613
|
+
/* harmony export */ "saturdays": () => (/* binding */ saturdays),
|
|
18614
|
+
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
18476
18615
|
/* harmony export */ "sundays": () => (/* binding */ sundays),
|
|
18477
|
-
/* harmony export */ "
|
|
18478
|
-
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
18479
|
-
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays),
|
|
18616
|
+
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
18480
18617
|
/* harmony export */ "thursdays": () => (/* binding */ thursdays),
|
|
18481
|
-
/* harmony export */ "
|
|
18482
|
-
/* harmony export */ "
|
|
18618
|
+
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
18619
|
+
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
18620
|
+
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
18621
|
+
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays)
|
|
18483
18622
|
/* harmony export */ });
|
|
18484
18623
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
18485
18624
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -18568,8 +18707,8 @@ var years = year.range;
|
|
|
18568
18707
|
"use strict";
|
|
18569
18708
|
__webpack_require__.r(__webpack_exports__);
|
|
18570
18709
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18571
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
18572
18710
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
18711
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
18573
18712
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
18574
18713
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
18575
18714
|
/* harmony export */ });
|
|
@@ -18865,9 +19004,9 @@ var __webpack_exports__ = {};
|
|
|
18865
19004
|
\******************/
|
|
18866
19005
|
__webpack_require__.r(__webpack_exports__);
|
|
18867
19006
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18868
|
-
/* harmony export */ "voronoiContainerMixin": () => (/* reexport safe */ _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__.voronoiContainerMixin),
|
|
18869
19007
|
/* harmony export */ "VictoryVoronoiContainer": () => (/* reexport safe */ _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
18870
|
-
/* harmony export */ "VoronoiHelpers": () => (/* reexport safe */ _voronoi_helpers__WEBPACK_IMPORTED_MODULE_1__["default"])
|
|
19008
|
+
/* harmony export */ "VoronoiHelpers": () => (/* reexport safe */ _voronoi_helpers__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
19009
|
+
/* harmony export */ "voronoiContainerMixin": () => (/* reexport safe */ _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__.voronoiContainerMixin)
|
|
18871
19010
|
/* harmony export */ });
|
|
18872
19011
|
/* harmony import */ var _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-voronoi-container */ "./victory-voronoi-container.js");
|
|
18873
19012
|
/* harmony import */ var _voronoi_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./voronoi-helpers */ "./voronoi-helpers.js");
|