victory-histogram 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-histogram.js +1125 -995
- package/dist/victory-histogram.min.js +1 -1
- package/es/helper-methods.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -1
- package/es/victory-histogram.js +23 -32
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/victory-histogram.js +23 -33
- package/package.json +8 -8
- package/src/helper-methods.js +10 -10
- package/src/index.d.ts +1 -1
- package/src/victory-histogram.js +19 -22
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryHistogram"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryHistogram"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -20,10 +20,10 @@ 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 */ "
|
|
23
|
+
/* harmony export */ "getBaseProps": () => (/* binding */ getBaseProps),
|
|
24
24
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
25
25
|
/* harmony export */ "getDomain": () => (/* binding */ getDomain),
|
|
26
|
-
/* harmony export */ "
|
|
26
|
+
/* harmony export */ "getFormattedData": () => (/* binding */ getFormattedData)
|
|
27
27
|
/* harmony export */ });
|
|
28
28
|
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
|
|
29
29
|
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -357,22 +357,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
357
357
|
/* harmony export */ });
|
|
358
358
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
359
359
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
360
|
-
/* harmony import */ var
|
|
361
|
-
/* harmony import */ var
|
|
360
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
361
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
362
362
|
/* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/bar.js");
|
|
363
|
-
/* harmony import */ var
|
|
364
|
-
/* harmony import */ var
|
|
365
|
-
/* harmony import */ var
|
|
366
|
-
/* harmony import */ var
|
|
363
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
364
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
365
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
366
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
367
367
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
368
368
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
369
369
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
|
|
370
370
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/add-events.js");
|
|
371
|
-
/* harmony import */ var
|
|
371
|
+
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.js");
|
|
372
372
|
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; }
|
|
373
373
|
|
|
374
374
|
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; }
|
|
375
375
|
|
|
376
|
+
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; }
|
|
377
|
+
|
|
376
378
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
377
379
|
|
|
378
380
|
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); } }
|
|
@@ -381,7 +383,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
381
383
|
|
|
382
384
|
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); }
|
|
383
385
|
|
|
384
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
386
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
385
387
|
|
|
386
388
|
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); }; }
|
|
387
389
|
|
|
@@ -391,9 +393,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
391
393
|
|
|
392
394
|
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; } }
|
|
393
395
|
|
|
394
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
395
|
-
|
|
396
|
-
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; }
|
|
396
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
397
397
|
|
|
398
398
|
|
|
399
399
|
|
|
@@ -428,28 +428,24 @@ var VictoryHistogram = /*#__PURE__*/function (_React$Component) {
|
|
|
428
428
|
value: function render() {
|
|
429
429
|
var animationWhitelist = VictoryHistogram.animationWhitelist,
|
|
430
430
|
role = VictoryHistogram.role;
|
|
431
|
-
var props =
|
|
431
|
+
var props = victory_core__WEBPACK_IMPORTED_MODULE_1__.modifyProps(this.props, fallbackProps, role);
|
|
432
432
|
|
|
433
433
|
if (this.shouldAnimate()) {
|
|
434
434
|
return this.animateComponent(props, animationWhitelist);
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
var children = this.renderData(props);
|
|
438
|
-
var
|
|
439
|
-
return
|
|
438
|
+
var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
|
|
439
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_2__.withSafeUserProps(component, props);
|
|
440
440
|
}
|
|
441
441
|
}]);
|
|
442
442
|
|
|
443
443
|
return VictoryHistogram;
|
|
444
444
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
_defineProperty(VictoryHistogram, "role", "histogram");
|
|
451
|
-
|
|
452
|
-
_defineProperty(VictoryHistogram, "defaultTransitions", {
|
|
445
|
+
VictoryHistogram.animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
|
|
446
|
+
VictoryHistogram.displayName = "VictoryHistogram";
|
|
447
|
+
VictoryHistogram.role = "histogram";
|
|
448
|
+
VictoryHistogram.defaultTransitions = {
|
|
453
449
|
onLoad: {
|
|
454
450
|
duration: 2000,
|
|
455
451
|
before: function () {
|
|
@@ -493,50 +489,44 @@ _defineProperty(VictoryHistogram, "defaultTransitions", {
|
|
|
493
489
|
};
|
|
494
490
|
}
|
|
495
491
|
}
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
|
|
509
|
-
bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)])
|
|
492
|
+
};
|
|
493
|
+
VictoryHistogram.getFormattedData = _helper_methods__WEBPACK_IMPORTED_MODULE_3__.getFormattedData;
|
|
494
|
+
VictoryHistogram.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.dataProps), {}, {
|
|
495
|
+
binSpacing: victory_core__WEBPACK_IMPORTED_MODULE_5__.nonNegative,
|
|
496
|
+
bins: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_6___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), prop_types__WEBPACK_IMPORTED_MODULE_6___default().instanceOf(Date)])), victory_core__WEBPACK_IMPORTED_MODULE_5__.nonNegative]),
|
|
497
|
+
cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
498
|
+
top: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
499
|
+
topLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
500
|
+
topRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
501
|
+
bottom: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
502
|
+
bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
503
|
+
bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)])
|
|
510
504
|
})]),
|
|
511
|
-
getPath: (
|
|
512
|
-
horizontal: (
|
|
513
|
-
})
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__["default"], null),
|
|
505
|
+
getPath: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
506
|
+
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool)
|
|
507
|
+
});
|
|
508
|
+
VictoryHistogram.defaultProps = {
|
|
509
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryContainer, null),
|
|
517
510
|
data: defaultData,
|
|
518
511
|
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_bar__WEBPACK_IMPORTED_MODULE_8__["default"], null),
|
|
519
512
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", {
|
|
520
513
|
role: "presentation"
|
|
521
514
|
}),
|
|
522
|
-
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__
|
|
515
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryLabel, null),
|
|
523
516
|
samples: 50,
|
|
524
517
|
sortOrder: "ascending",
|
|
525
518
|
standalone: true,
|
|
526
|
-
theme: victory_core__WEBPACK_IMPORTED_MODULE_10__
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
_defineProperty(VictoryHistogram, "getData", _helper_methods__WEBPACK_IMPORTED_MODULE_4__.getData);
|
|
532
|
-
|
|
533
|
-
_defineProperty(VictoryHistogram, "getBaseProps", function (props) {
|
|
534
|
-
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getBaseProps)(props, fallbackProps);
|
|
535
|
-
});
|
|
519
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryTheme.grayscale
|
|
520
|
+
};
|
|
521
|
+
VictoryHistogram.getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_3__.getDomain;
|
|
522
|
+
VictoryHistogram.getData = _helper_methods__WEBPACK_IMPORTED_MODULE_3__.getData;
|
|
536
523
|
|
|
537
|
-
|
|
524
|
+
VictoryHistogram.getBaseProps = function (props) {
|
|
525
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getBaseProps)(props, fallbackProps);
|
|
526
|
+
};
|
|
538
527
|
|
|
539
|
-
|
|
528
|
+
VictoryHistogram.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
529
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_11__.addEvents)(VictoryHistogram));
|
|
540
530
|
|
|
541
531
|
/***/ }),
|
|
542
532
|
|
|
@@ -5920,7 +5910,7 @@ var printWarning = function() {};
|
|
|
5920
5910
|
if (true) {
|
|
5921
5911
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5922
5912
|
var loggedTypeFailures = {};
|
|
5923
|
-
var has =
|
|
5913
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
5924
5914
|
|
|
5925
5915
|
printWarning = function(text) {
|
|
5926
5916
|
var message = 'Warning: ' + text;
|
|
@@ -5932,7 +5922,7 @@ if (true) {
|
|
|
5932
5922
|
// This error was thrown as a convenience so that you can use this stack
|
|
5933
5923
|
// to find the callsite that caused this warning to fire.
|
|
5934
5924
|
throw new Error(message);
|
|
5935
|
-
} catch (x) {}
|
|
5925
|
+
} catch (x) { /**/ }
|
|
5936
5926
|
};
|
|
5937
5927
|
}
|
|
5938
5928
|
|
|
@@ -5961,7 +5951,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
5961
5951
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
5962
5952
|
var err = Error(
|
|
5963
5953
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
5964
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
5954
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
5955
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
5965
5956
|
);
|
|
5966
5957
|
err.name = 'Invariant Violation';
|
|
5967
5958
|
throw err;
|
|
@@ -6028,13 +6019,13 @@ module.exports = checkPropTypes;
|
|
|
6028
6019
|
|
|
6029
6020
|
|
|
6030
6021
|
|
|
6031
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6022
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6032
6023
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6033
6024
|
|
|
6034
6025
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6026
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6035
6027
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
6036
6028
|
|
|
6037
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6038
6029
|
var printWarning = function() {};
|
|
6039
6030
|
|
|
6040
6031
|
if (true) {
|
|
@@ -6135,6 +6126,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6135
6126
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6136
6127
|
var ReactPropTypes = {
|
|
6137
6128
|
array: createPrimitiveTypeChecker('array'),
|
|
6129
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6138
6130
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
6139
6131
|
func: createPrimitiveTypeChecker('function'),
|
|
6140
6132
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -6180,8 +6172,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6180
6172
|
* is prohibitively expensive if they are created too often, such as what
|
|
6181
6173
|
* happens in oneOfType() for any type before the one that matched.
|
|
6182
6174
|
*/
|
|
6183
|
-
function PropTypeError(message) {
|
|
6175
|
+
function PropTypeError(message, data) {
|
|
6184
6176
|
this.message = message;
|
|
6177
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
6185
6178
|
this.stack = '';
|
|
6186
6179
|
}
|
|
6187
6180
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -6216,7 +6209,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6216
6209
|
) {
|
|
6217
6210
|
printWarning(
|
|
6218
6211
|
'You are manually calling a React.PropTypes validation ' +
|
|
6219
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
6212
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6220
6213
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6221
6214
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6222
6215
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -6255,7 +6248,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6255
6248
|
// 'of type `object`'.
|
|
6256
6249
|
var preciseType = getPreciseType(propValue);
|
|
6257
6250
|
|
|
6258
|
-
return new PropTypeError(
|
|
6251
|
+
return new PropTypeError(
|
|
6252
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6253
|
+
{expectedType: expectedType}
|
|
6254
|
+
);
|
|
6259
6255
|
}
|
|
6260
6256
|
return null;
|
|
6261
6257
|
}
|
|
@@ -6399,14 +6395,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6399
6395
|
}
|
|
6400
6396
|
|
|
6401
6397
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6398
|
+
var expectedTypes = [];
|
|
6402
6399
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6403
6400
|
var checker = arrayOfTypeCheckers[i];
|
|
6404
|
-
|
|
6401
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6402
|
+
if (checkerResult == null) {
|
|
6405
6403
|
return null;
|
|
6406
6404
|
}
|
|
6405
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6406
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
6407
|
+
}
|
|
6407
6408
|
}
|
|
6408
|
-
|
|
6409
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
6409
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6410
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6410
6411
|
}
|
|
6411
6412
|
return createChainableTypeChecker(validate);
|
|
6412
6413
|
}
|
|
@@ -6421,6 +6422,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6421
6422
|
return createChainableTypeChecker(validate);
|
|
6422
6423
|
}
|
|
6423
6424
|
|
|
6425
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6426
|
+
return new PropTypeError(
|
|
6427
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6428
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6429
|
+
);
|
|
6430
|
+
}
|
|
6431
|
+
|
|
6424
6432
|
function createShapeTypeChecker(shapeTypes) {
|
|
6425
6433
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6426
6434
|
var propValue = props[propName];
|
|
@@ -6430,8 +6438,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6430
6438
|
}
|
|
6431
6439
|
for (var key in shapeTypes) {
|
|
6432
6440
|
var checker = shapeTypes[key];
|
|
6433
|
-
if (
|
|
6434
|
-
|
|
6441
|
+
if (typeof checker !== 'function') {
|
|
6442
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6435
6443
|
}
|
|
6436
6444
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6437
6445
|
if (error) {
|
|
@@ -6450,16 +6458,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6450
6458
|
if (propType !== 'object') {
|
|
6451
6459
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6452
6460
|
}
|
|
6453
|
-
// We need to check all keys in case some are required but missing from
|
|
6454
|
-
// props.
|
|
6461
|
+
// We need to check all keys in case some are required but missing from props.
|
|
6455
6462
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6456
6463
|
for (var key in allKeys) {
|
|
6457
6464
|
var checker = shapeTypes[key];
|
|
6465
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6466
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6467
|
+
}
|
|
6458
6468
|
if (!checker) {
|
|
6459
6469
|
return new PropTypeError(
|
|
6460
6470
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6461
6471
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6462
|
-
'\nValid keys: ' +
|
|
6472
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6463
6473
|
);
|
|
6464
6474
|
}
|
|
6465
6475
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -6628,7 +6638,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6628
6638
|
*/
|
|
6629
6639
|
|
|
6630
6640
|
if (true) {
|
|
6631
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6641
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6632
6642
|
|
|
6633
6643
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
6634
6644
|
// http://fb.me/prop-types-in-prod
|
|
@@ -6662,115 +6672,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
6662
6672
|
|
|
6663
6673
|
/***/ }),
|
|
6664
6674
|
|
|
6665
|
-
/***/ "../../../node_modules/
|
|
6666
|
-
|
|
6667
|
-
!*** ../../../node_modules/
|
|
6668
|
-
|
|
6675
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
6676
|
+
/*!***************************************************!*\
|
|
6677
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
6678
|
+
\***************************************************/
|
|
6669
6679
|
/***/ ((module) => {
|
|
6670
6680
|
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
var isArray = Array.isArray;
|
|
6675
|
-
var keyList = Object.keys;
|
|
6676
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
6677
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
6678
|
-
|
|
6679
|
-
function equal(a, b) {
|
|
6680
|
-
// fast-deep-equal index.js 2.0.1
|
|
6681
|
-
if (a === b) return true;
|
|
6682
|
-
|
|
6683
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
6684
|
-
var arrA = isArray(a)
|
|
6685
|
-
, arrB = isArray(b)
|
|
6686
|
-
, i
|
|
6687
|
-
, length
|
|
6688
|
-
, key;
|
|
6689
|
-
|
|
6690
|
-
if (arrA && arrB) {
|
|
6691
|
-
length = a.length;
|
|
6692
|
-
if (length != b.length) return false;
|
|
6693
|
-
for (i = length; i-- !== 0;)
|
|
6694
|
-
if (!equal(a[i], b[i])) return false;
|
|
6695
|
-
return true;
|
|
6696
|
-
}
|
|
6697
|
-
|
|
6698
|
-
if (arrA != arrB) return false;
|
|
6699
|
-
|
|
6700
|
-
var dateA = a instanceof Date
|
|
6701
|
-
, dateB = b instanceof Date;
|
|
6702
|
-
if (dateA != dateB) return false;
|
|
6703
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
6704
|
-
|
|
6705
|
-
var regexpA = a instanceof RegExp
|
|
6706
|
-
, regexpB = b instanceof RegExp;
|
|
6707
|
-
if (regexpA != regexpB) return false;
|
|
6708
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
6709
|
-
|
|
6710
|
-
var keys = keyList(a);
|
|
6711
|
-
length = keys.length;
|
|
6712
|
-
|
|
6713
|
-
if (length !== keyList(b).length)
|
|
6714
|
-
return false;
|
|
6715
|
-
|
|
6716
|
-
for (i = length; i-- !== 0;)
|
|
6717
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
6718
|
-
// end fast-deep-equal
|
|
6719
|
-
|
|
6720
|
-
// start react-fast-compare
|
|
6721
|
-
// custom handling for DOM elements
|
|
6722
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
6723
|
-
return a === b;
|
|
6724
|
-
|
|
6725
|
-
// custom handling for React
|
|
6726
|
-
for (i = length; i-- !== 0;) {
|
|
6727
|
-
key = keys[i];
|
|
6728
|
-
if (key === '_owner' && a.$$typeof) {
|
|
6729
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
6730
|
-
// _owner contains circular references
|
|
6731
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
6732
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
6733
|
-
continue;
|
|
6734
|
-
} else {
|
|
6735
|
-
// all other properties should be traversed as usual
|
|
6736
|
-
if (!equal(a[key], b[key])) return false;
|
|
6737
|
-
}
|
|
6738
|
-
}
|
|
6739
|
-
// end react-fast-compare
|
|
6740
|
-
|
|
6741
|
-
// fast-deep-equal index.js 2.0.1
|
|
6742
|
-
return true;
|
|
6743
|
-
}
|
|
6744
|
-
|
|
6745
|
-
return a !== a && b !== b;
|
|
6746
|
-
}
|
|
6747
|
-
// end fast-deep-equal
|
|
6748
|
-
|
|
6749
|
-
module.exports = function exportedEqual(a, b) {
|
|
6750
|
-
try {
|
|
6751
|
-
return equal(a, b);
|
|
6752
|
-
} catch (error) {
|
|
6753
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
6754
|
-
// warn on circular references, don't crash
|
|
6755
|
-
// browsers give this different errors name and messages:
|
|
6756
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
6757
|
-
// firefox: "InternalError", too much recursion"
|
|
6758
|
-
// edge: "Error", "Out of stack space"
|
|
6759
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
6760
|
-
return false;
|
|
6761
|
-
}
|
|
6762
|
-
// some other error. we should definitely know about these
|
|
6763
|
-
throw error;
|
|
6764
|
-
}
|
|
6765
|
-
};
|
|
6681
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6766
6682
|
|
|
6767
6683
|
|
|
6768
6684
|
/***/ }),
|
|
6769
6685
|
|
|
6770
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
6771
|
-
|
|
6772
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
6773
|
-
|
|
6686
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
6687
|
+
/*!******************************************************************************************!*\
|
|
6688
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
6689
|
+
\******************************************************************************************/
|
|
6774
6690
|
/***/ ((__unused_webpack_module, exports) => {
|
|
6775
6691
|
|
|
6776
6692
|
"use strict";
|
|
@@ -6959,18 +6875,162 @@ exports.typeOf = typeOf;
|
|
|
6959
6875
|
|
|
6960
6876
|
/***/ }),
|
|
6961
6877
|
|
|
6962
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
6963
|
-
|
|
6964
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
6965
|
-
|
|
6878
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
6879
|
+
/*!***********************************************************************!*\
|
|
6880
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
6881
|
+
\***********************************************************************/
|
|
6966
6882
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6967
6883
|
|
|
6968
6884
|
"use strict";
|
|
6969
6885
|
|
|
6970
6886
|
|
|
6971
6887
|
if (false) {} else {
|
|
6972
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
6888
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
6889
|
+
}
|
|
6890
|
+
|
|
6891
|
+
|
|
6892
|
+
/***/ }),
|
|
6893
|
+
|
|
6894
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
6895
|
+
/*!*********************************************************!*\
|
|
6896
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
6897
|
+
\*********************************************************/
|
|
6898
|
+
/***/ ((module) => {
|
|
6899
|
+
|
|
6900
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
6901
|
+
|
|
6902
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
6903
|
+
var hasMap = typeof Map === 'function';
|
|
6904
|
+
var hasSet = typeof Set === 'function';
|
|
6905
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
6906
|
+
|
|
6907
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
6908
|
+
|
|
6909
|
+
function equal(a, b) {
|
|
6910
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
6911
|
+
if (a === b) return true;
|
|
6912
|
+
|
|
6913
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
6914
|
+
if (a.constructor !== b.constructor) return false;
|
|
6915
|
+
|
|
6916
|
+
var length, i, keys;
|
|
6917
|
+
if (Array.isArray(a)) {
|
|
6918
|
+
length = a.length;
|
|
6919
|
+
if (length != b.length) return false;
|
|
6920
|
+
for (i = length; i-- !== 0;)
|
|
6921
|
+
if (!equal(a[i], b[i])) return false;
|
|
6922
|
+
return true;
|
|
6923
|
+
}
|
|
6924
|
+
|
|
6925
|
+
// START: Modifications:
|
|
6926
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
6927
|
+
// to co-exist with es5.
|
|
6928
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
6929
|
+
// Basically, take:
|
|
6930
|
+
//
|
|
6931
|
+
// ```js
|
|
6932
|
+
// for (i of a.entries())
|
|
6933
|
+
// if (!b.has(i[0])) return false;
|
|
6934
|
+
// ```
|
|
6935
|
+
//
|
|
6936
|
+
// ... and convert to:
|
|
6937
|
+
//
|
|
6938
|
+
// ```js
|
|
6939
|
+
// it = a.entries();
|
|
6940
|
+
// while (!(i = it.next()).done)
|
|
6941
|
+
// if (!b.has(i.value[0])) return false;
|
|
6942
|
+
// ```
|
|
6943
|
+
//
|
|
6944
|
+
// **Note**: `i` access switches to `i.value`.
|
|
6945
|
+
var it;
|
|
6946
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
6947
|
+
if (a.size !== b.size) return false;
|
|
6948
|
+
it = a.entries();
|
|
6949
|
+
while (!(i = it.next()).done)
|
|
6950
|
+
if (!b.has(i.value[0])) return false;
|
|
6951
|
+
it = a.entries();
|
|
6952
|
+
while (!(i = it.next()).done)
|
|
6953
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
6954
|
+
return true;
|
|
6955
|
+
}
|
|
6956
|
+
|
|
6957
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
6958
|
+
if (a.size !== b.size) return false;
|
|
6959
|
+
it = a.entries();
|
|
6960
|
+
while (!(i = it.next()).done)
|
|
6961
|
+
if (!b.has(i.value[0])) return false;
|
|
6962
|
+
return true;
|
|
6963
|
+
}
|
|
6964
|
+
// END: Modifications
|
|
6965
|
+
|
|
6966
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
6967
|
+
length = a.length;
|
|
6968
|
+
if (length != b.length) return false;
|
|
6969
|
+
for (i = length; i-- !== 0;)
|
|
6970
|
+
if (a[i] !== b[i]) return false;
|
|
6971
|
+
return true;
|
|
6972
|
+
}
|
|
6973
|
+
|
|
6974
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
6975
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
6976
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
6977
|
+
|
|
6978
|
+
keys = Object.keys(a);
|
|
6979
|
+
length = keys.length;
|
|
6980
|
+
if (length !== Object.keys(b).length) return false;
|
|
6981
|
+
|
|
6982
|
+
for (i = length; i-- !== 0;)
|
|
6983
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
6984
|
+
// END: fast-deep-equal
|
|
6985
|
+
|
|
6986
|
+
// START: react-fast-compare
|
|
6987
|
+
// custom handling for DOM elements
|
|
6988
|
+
if (hasElementType && a instanceof Element) return false;
|
|
6989
|
+
|
|
6990
|
+
// custom handling for React/Preact
|
|
6991
|
+
for (i = length; i-- !== 0;) {
|
|
6992
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
6993
|
+
// React-specific: avoid traversing React elements' _owner
|
|
6994
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
6995
|
+
// __v = $_original / $_vnode
|
|
6996
|
+
// __o = $_owner
|
|
6997
|
+
// These properties contain circular references and are not needed when
|
|
6998
|
+
// comparing the actual elements (and not their owners)
|
|
6999
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7000
|
+
|
|
7001
|
+
continue;
|
|
7002
|
+
}
|
|
7003
|
+
|
|
7004
|
+
// all other properties should be traversed as usual
|
|
7005
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7006
|
+
}
|
|
7007
|
+
// END: react-fast-compare
|
|
7008
|
+
|
|
7009
|
+
// START: fast-deep-equal
|
|
7010
|
+
return true;
|
|
7011
|
+
}
|
|
7012
|
+
|
|
7013
|
+
return a !== a && b !== b;
|
|
6973
7014
|
}
|
|
7015
|
+
// end fast-deep-equal
|
|
7016
|
+
|
|
7017
|
+
module.exports = function isEqual(a, b) {
|
|
7018
|
+
try {
|
|
7019
|
+
return equal(a, b);
|
|
7020
|
+
} catch (error) {
|
|
7021
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7022
|
+
// warn on circular references, don't crash
|
|
7023
|
+
// browsers give this different errors name and messages:
|
|
7024
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7025
|
+
// firefox: "InternalError", too much recursion"
|
|
7026
|
+
// edge: "Error", "Out of stack space"
|
|
7027
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7028
|
+
return false;
|
|
7029
|
+
}
|
|
7030
|
+
// some other error. we should definitely know about these
|
|
7031
|
+
throw error;
|
|
7032
|
+
}
|
|
7033
|
+
};
|
|
6974
7034
|
|
|
6975
7035
|
|
|
6976
7036
|
/***/ }),
|
|
@@ -7077,6 +7137,7 @@ var getStyle = function () {
|
|
|
7077
7137
|
};
|
|
7078
7138
|
return victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()(baseStyle, style), props);
|
|
7079
7139
|
};
|
|
7140
|
+
//# sourceMappingURL=bar-helper-methods.js.map
|
|
7080
7141
|
|
|
7081
7142
|
/***/ }),
|
|
7082
7143
|
|
|
@@ -7093,15 +7154,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7093
7154
|
/* harmony export */ });
|
|
7094
7155
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
7095
7156
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
7096
|
-
/* harmony import */ var
|
|
7097
|
-
/* harmony import */ var
|
|
7098
|
-
/* harmony import */ var
|
|
7099
|
-
/* harmony import */ var
|
|
7100
|
-
/* harmony import */ var
|
|
7101
|
-
/* harmony import */ var
|
|
7157
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7158
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
7159
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
7160
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
7161
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
7162
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
7102
7163
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
7103
|
-
/* harmony import */ var
|
|
7104
|
-
/* harmony import */ var
|
|
7164
|
+
/* harmony import */ var _bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bar-helper-methods */ "../../victory-bar/es/bar-helper-methods.js");
|
|
7165
|
+
/* harmony import */ var _path_helper_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./path-helper-methods */ "../../victory-bar/es/path-helper-methods.js");
|
|
7105
7166
|
|
|
7106
7167
|
|
|
7107
7168
|
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; }
|
|
@@ -7129,18 +7190,18 @@ var evaluateProps = function (props) {
|
|
|
7129
7190
|
* `id`
|
|
7130
7191
|
* `tabIndex`
|
|
7131
7192
|
*/
|
|
7132
|
-
var style = (0,
|
|
7133
|
-
var barWidth = (0,
|
|
7193
|
+
var style = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getStyle)(props.style, props);
|
|
7194
|
+
var barWidth = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getBarWidth)(props.barWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
7134
7195
|
style: style
|
|
7135
7196
|
}));
|
|
7136
|
-
var cornerRadius = (0,
|
|
7197
|
+
var cornerRadius = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getCornerRadius)(props.cornerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
7137
7198
|
style: style,
|
|
7138
7199
|
barWidth: barWidth
|
|
7139
7200
|
}));
|
|
7140
|
-
var ariaLabel =
|
|
7141
|
-
var desc =
|
|
7142
|
-
var id =
|
|
7143
|
-
var tabIndex =
|
|
7201
|
+
var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.ariaLabel, props);
|
|
7202
|
+
var desc = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.desc, props);
|
|
7203
|
+
var id = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.id, props);
|
|
7204
|
+
var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.tabIndex, props);
|
|
7144
7205
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
7145
7206
|
ariaLabel: ariaLabel,
|
|
7146
7207
|
style: style,
|
|
@@ -7160,9 +7221,9 @@ var Bar = function (props) {
|
|
|
7160
7221
|
style = _props.style,
|
|
7161
7222
|
barWidth = _props.barWidth,
|
|
7162
7223
|
cornerRadius = _props.cornerRadius;
|
|
7163
|
-
var path = polar ? (0,
|
|
7224
|
+
var path = polar ? (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getPolarBarPath)(props, cornerRadius) : (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getBarPath)(props, barWidth, cornerRadius);
|
|
7164
7225
|
var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;
|
|
7165
|
-
return /*#__PURE__*/
|
|
7226
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, _objectSpread(_objectSpread({}, props.events), {}, {
|
|
7166
7227
|
"aria-label": props.ariaLabel,
|
|
7167
7228
|
style: style,
|
|
7168
7229
|
d: path,
|
|
@@ -7177,34 +7238,35 @@ var Bar = function (props) {
|
|
|
7177
7238
|
}));
|
|
7178
7239
|
};
|
|
7179
7240
|
|
|
7180
|
-
Bar.propTypes = _objectSpread(_objectSpread({},
|
|
7181
|
-
alignment:
|
|
7182
|
-
barRatio: (
|
|
7183
|
-
barWidth:
|
|
7184
|
-
cornerRadius:
|
|
7185
|
-
top:
|
|
7186
|
-
topLeft:
|
|
7187
|
-
topRight:
|
|
7188
|
-
bottom:
|
|
7189
|
-
bottomLeft:
|
|
7190
|
-
bottomRight:
|
|
7241
|
+
Bar.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.CommonProps.primitiveProps), {}, {
|
|
7242
|
+
alignment: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["start", "middle", "end"]),
|
|
7243
|
+
barRatio: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
7244
|
+
barWidth: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
7245
|
+
cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
7246
|
+
top: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
7247
|
+
topLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
7248
|
+
topRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
7249
|
+
bottom: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
7250
|
+
bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
7251
|
+
bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)])
|
|
7191
7252
|
})]),
|
|
7192
|
-
datum: (
|
|
7193
|
-
getPath: (
|
|
7194
|
-
horizontal: (
|
|
7195
|
-
pathComponent: (
|
|
7196
|
-
width: (
|
|
7197
|
-
x: (
|
|
7198
|
-
y: (
|
|
7199
|
-
y0: (
|
|
7253
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
7254
|
+
getPath: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
7255
|
+
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
7256
|
+
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
7257
|
+
width: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
7258
|
+
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
7259
|
+
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
7260
|
+
y0: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
7200
7261
|
});
|
|
7201
7262
|
Bar.defaultProps = {
|
|
7202
7263
|
defaultBarWidth: 8,
|
|
7203
|
-
pathComponent: /*#__PURE__*/
|
|
7264
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Path, null),
|
|
7204
7265
|
role: "presentation",
|
|
7205
7266
|
shapeRendering: "auto"
|
|
7206
7267
|
};
|
|
7207
7268
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Bar);
|
|
7269
|
+
//# sourceMappingURL=bar.js.map
|
|
7208
7270
|
|
|
7209
7271
|
/***/ }),
|
|
7210
7272
|
|
|
@@ -7337,6 +7399,7 @@ var circle = function (center, radius) {
|
|
|
7337
7399
|
};
|
|
7338
7400
|
|
|
7339
7401
|
|
|
7402
|
+
//# sourceMappingURL=geometry-helper-methods.js.map
|
|
7340
7403
|
|
|
7341
7404
|
/***/ }),
|
|
7342
7405
|
|
|
@@ -7505,6 +7568,7 @@ var getBaseProps = function (props, fallbackProps) {
|
|
|
7505
7568
|
return childProps;
|
|
7506
7569
|
}, initialChildProps);
|
|
7507
7570
|
};
|
|
7571
|
+
//# sourceMappingURL=helper-methods.js.map
|
|
7508
7572
|
|
|
7509
7573
|
/***/ }),
|
|
7510
7574
|
|
|
@@ -7517,12 +7581,12 @@ var getBaseProps = function (props, fallbackProps) {
|
|
|
7517
7581
|
"use strict";
|
|
7518
7582
|
__webpack_require__.r(__webpack_exports__);
|
|
7519
7583
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7584
|
+
/* harmony export */ "getBarPath": () => (/* binding */ getBarPath),
|
|
7520
7585
|
/* harmony export */ "getCustomBarPath": () => (/* binding */ getCustomBarPath),
|
|
7521
|
-
/* harmony export */ "getVerticalBarPath": () => (/* binding */ getVerticalBarPath),
|
|
7522
7586
|
/* harmony export */ "getHorizontalBarPath": () => (/* binding */ getHorizontalBarPath),
|
|
7523
|
-
/* harmony export */ "
|
|
7524
|
-
/* harmony export */ "
|
|
7525
|
-
/* harmony export */ "
|
|
7587
|
+
/* harmony export */ "getPolarBarPath": () => (/* binding */ getPolarBarPath),
|
|
7588
|
+
/* harmony export */ "getVerticalBarPath": () => (/* binding */ getVerticalBarPath),
|
|
7589
|
+
/* harmony export */ "getVerticalPolarBarPath": () => (/* binding */ getVerticalPolarBarPath)
|
|
7526
7590
|
/* harmony export */ });
|
|
7527
7591
|
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/node_modules/d3-shape/src/arc.js");
|
|
7528
7592
|
/* harmony import */ var _geometry_helper_methods__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./geometry-helper-methods */ "../../victory-bar/es/geometry-helper-methods.js");
|
|
@@ -8012,6 +8076,7 @@ var getPolarBarPath = function (props, cornerRadius) {
|
|
|
8012
8076
|
// TODO Radial bars
|
|
8013
8077
|
return getVerticalPolarBarPath(props, cornerRadius);
|
|
8014
8078
|
};
|
|
8079
|
+
//# sourceMappingURL=path-helper-methods.js.map
|
|
8015
8080
|
|
|
8016
8081
|
/***/ }),
|
|
8017
8082
|
|
|
@@ -8024,11 +8089,11 @@ var getPolarBarPath = function (props, cornerRadius) {
|
|
|
8024
8089
|
"use strict";
|
|
8025
8090
|
__webpack_require__.r(__webpack_exports__);
|
|
8026
8091
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8027
|
-
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
8028
|
-
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
8029
8092
|
/* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
|
|
8093
|
+
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
8030
8094
|
/* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
|
|
8031
8095
|
/* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
|
|
8096
|
+
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
8032
8097
|
/* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
|
|
8033
8098
|
/* harmony export */ });
|
|
8034
8099
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
|
|
@@ -8073,7 +8138,7 @@ var isInterpolatable = function (obj) {
|
|
|
8073
8138
|
// component is only going to call the function (in which case it's
|
|
8074
8139
|
// safely interpolatable) or if it's going to access special properties
|
|
8075
8140
|
// (in which case our function generated from `interpolateFunction` will
|
|
8076
|
-
// most likely cause an error. We could check for enumerable properties
|
|
8141
|
+
// most likely cause an error). We could check for enumerable properties
|
|
8077
8142
|
// on the function object here to see if it's a "plain" function, but
|
|
8078
8143
|
// let's just require that components prevent such function props from
|
|
8079
8144
|
// being animated in the first place.
|
|
@@ -8125,7 +8190,7 @@ var interpolateFunction = function (a, b) {
|
|
|
8125
8190
|
}
|
|
8126
8191
|
|
|
8127
8192
|
return function () {
|
|
8128
|
-
/* eslint-disable no-invalid-this */
|
|
8193
|
+
/* eslint-disable no-invalid-this, prefer-rest-params */
|
|
8129
8194
|
var aval = typeof a === "function" ? a.apply(this, arguments) : a;
|
|
8130
8195
|
var bval = typeof b === "function" ? b.apply(this, arguments) : b;
|
|
8131
8196
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
|
|
@@ -8238,15 +8303,18 @@ var victoryInterpolator = function (a, b) {
|
|
|
8238
8303
|
}
|
|
8239
8304
|
|
|
8240
8305
|
if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
|
|
8306
|
+
// @ts-expect-error These generics are tough, but they work :)
|
|
8241
8307
|
return interpolateObject(a, b);
|
|
8242
8308
|
}
|
|
8243
8309
|
|
|
8244
8310
|
if (typeof a === "string" || typeof b === "string") {
|
|
8245
8311
|
return interpolateString(a, b);
|
|
8246
|
-
}
|
|
8312
|
+
} // @ts-expect-error These generics are tough, but they work :)
|
|
8313
|
+
|
|
8247
8314
|
|
|
8248
8315
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
|
|
8249
8316
|
};
|
|
8317
|
+
//# sourceMappingURL=util.js.map
|
|
8250
8318
|
|
|
8251
8319
|
/***/ }),
|
|
8252
8320
|
|
|
@@ -8259,17 +8327,17 @@ var victoryInterpolator = function (a, b) {
|
|
|
8259
8327
|
"use strict";
|
|
8260
8328
|
__webpack_require__.r(__webpack_exports__);
|
|
8261
8329
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8262
|
-
/* harmony export */ "
|
|
8330
|
+
/* harmony export */ "VictoryAnimation": () => (/* binding */ VictoryAnimation)
|
|
8263
8331
|
/* harmony export */ });
|
|
8264
8332
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8265
8333
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8266
|
-
/* harmony import */ var
|
|
8267
|
-
/* harmony import */ var
|
|
8268
|
-
/* harmony import */ var
|
|
8269
|
-
/* harmony import */ var
|
|
8334
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8335
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
8336
|
+
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
8337
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
8270
8338
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
8271
|
-
/* harmony import */ var
|
|
8272
|
-
/* harmony import */ var
|
|
8339
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
8340
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__);
|
|
8273
8341
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8274
8342
|
|
|
8275
8343
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -8290,7 +8358,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8290
8358
|
|
|
8291
8359
|
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); }
|
|
8292
8360
|
|
|
8293
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8361
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8294
8362
|
|
|
8295
8363
|
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); }; }
|
|
8296
8364
|
|
|
@@ -8300,9 +8368,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8300
8368
|
|
|
8301
8369
|
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; } }
|
|
8302
8370
|
|
|
8303
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8304
|
-
|
|
8305
|
-
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; }
|
|
8371
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8306
8372
|
|
|
8307
8373
|
/*global setTimeout:false */
|
|
8308
8374
|
|
|
@@ -8311,7 +8377,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8311
8377
|
|
|
8312
8378
|
|
|
8313
8379
|
|
|
8314
|
-
|
|
8315
8380
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
8316
8381
|
_inherits(VictoryAnimation, _React$Component);
|
|
8317
8382
|
|
|
@@ -8325,6 +8390,56 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8325
8390
|
_this = _super.call(this, props, context);
|
|
8326
8391
|
/* defaults */
|
|
8327
8392
|
|
|
8393
|
+
_this.interpolator = void 0;
|
|
8394
|
+
_this.queue = void 0;
|
|
8395
|
+
_this.ease = void 0;
|
|
8396
|
+
_this.timer = void 0;
|
|
8397
|
+
_this.loopID = void 0;
|
|
8398
|
+
|
|
8399
|
+
_this.functionToBeRunEachFrame = function (elapsed, duration) {
|
|
8400
|
+
/*
|
|
8401
|
+
step can generate imprecise values, sometimes greater than 1
|
|
8402
|
+
if this happens set the state to 1 and return, cancelling the timer
|
|
8403
|
+
*/
|
|
8404
|
+
duration = duration !== undefined ? duration : _this.props.duration;
|
|
8405
|
+
var step = duration ? elapsed / duration : 1;
|
|
8406
|
+
|
|
8407
|
+
if (step >= 1) {
|
|
8408
|
+
_this.setState({
|
|
8409
|
+
data: _this.interpolator(1),
|
|
8410
|
+
animationInfo: {
|
|
8411
|
+
progress: 1,
|
|
8412
|
+
animating: false,
|
|
8413
|
+
terminating: true
|
|
8414
|
+
}
|
|
8415
|
+
});
|
|
8416
|
+
|
|
8417
|
+
if (_this.loopID) {
|
|
8418
|
+
_this.timer.unsubscribe(_this.loopID);
|
|
8419
|
+
}
|
|
8420
|
+
|
|
8421
|
+
_this.queue.shift();
|
|
8422
|
+
|
|
8423
|
+
_this.traverseQueue();
|
|
8424
|
+
|
|
8425
|
+
return;
|
|
8426
|
+
}
|
|
8427
|
+
/*
|
|
8428
|
+
if we're not at the end of the timer, set the state by passing
|
|
8429
|
+
current step value that's transformed by the ease function to the
|
|
8430
|
+
interpolator, which is cached for performance whenever props are received
|
|
8431
|
+
*/
|
|
8432
|
+
|
|
8433
|
+
|
|
8434
|
+
_this.setState({
|
|
8435
|
+
data: _this.interpolator(_this.ease(step)),
|
|
8436
|
+
animationInfo: {
|
|
8437
|
+
progress: step,
|
|
8438
|
+
animating: step < 1
|
|
8439
|
+
}
|
|
8440
|
+
});
|
|
8441
|
+
};
|
|
8442
|
+
|
|
8328
8443
|
_this.state = {
|
|
8329
8444
|
data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
|
|
8330
8445
|
animationInfo: {
|
|
@@ -8336,13 +8451,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8336
8451
|
_this.queue = Array.isArray(_this.props.data) ? _this.props.data.slice(1) : [];
|
|
8337
8452
|
/* build easing function */
|
|
8338
8453
|
|
|
8339
|
-
_this.ease =
|
|
8340
|
-
/*
|
|
8341
|
-
There is no autobinding of this in ES6 classes
|
|
8342
|
-
so we bind functionToBeRunEachFrame to current instance of victory animation class
|
|
8343
|
-
*/
|
|
8344
|
-
|
|
8345
|
-
_this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
|
|
8454
|
+
_this.ease = victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
|
|
8346
8455
|
_this.timer = _this.context.animationTimer;
|
|
8347
8456
|
return _this;
|
|
8348
8457
|
}
|
|
@@ -8358,7 +8467,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8358
8467
|
}, {
|
|
8359
8468
|
key: "componentDidUpdate",
|
|
8360
8469
|
value: function componentDidUpdate(prevProps) {
|
|
8361
|
-
var equalProps =
|
|
8470
|
+
var equalProps = react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(this.props, prevProps);
|
|
8362
8471
|
|
|
8363
8472
|
if (!equalProps) {
|
|
8364
8473
|
/* If the previous animation didn't finish, force it to complete before starting a new one */
|
|
@@ -8427,7 +8536,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8427
8536
|
var data = this.queue[0];
|
|
8428
8537
|
/* compare cached version to next props */
|
|
8429
8538
|
|
|
8430
|
-
this.interpolator = (0,
|
|
8539
|
+
this.interpolator = (0,_util__WEBPACK_IMPORTED_MODULE_3__.victoryInterpolator)(this.state.data, data);
|
|
8431
8540
|
/* reset step to zero */
|
|
8432
8541
|
|
|
8433
8542
|
if (this.props.delay) {
|
|
@@ -8443,49 +8552,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8443
8552
|
}
|
|
8444
8553
|
/* every frame we... */
|
|
8445
8554
|
|
|
8446
|
-
}, {
|
|
8447
|
-
key: "functionToBeRunEachFrame",
|
|
8448
|
-
value: function functionToBeRunEachFrame(elapsed, duration) {
|
|
8449
|
-
/*
|
|
8450
|
-
step can generate imprecise values, sometimes greater than 1
|
|
8451
|
-
if this happens set the state to 1 and return, cancelling the timer
|
|
8452
|
-
*/
|
|
8453
|
-
duration = duration !== undefined ? duration : this.props.duration;
|
|
8454
|
-
var step = duration ? elapsed / duration : 1;
|
|
8455
|
-
|
|
8456
|
-
if (step >= 1) {
|
|
8457
|
-
this.setState({
|
|
8458
|
-
data: this.interpolator(1),
|
|
8459
|
-
animationInfo: {
|
|
8460
|
-
progress: 1,
|
|
8461
|
-
animating: false,
|
|
8462
|
-
terminating: true
|
|
8463
|
-
}
|
|
8464
|
-
});
|
|
8465
|
-
|
|
8466
|
-
if (this.loopID) {
|
|
8467
|
-
this.timer.unsubscribe(this.loopID);
|
|
8468
|
-
}
|
|
8469
|
-
|
|
8470
|
-
this.queue.shift();
|
|
8471
|
-
this.traverseQueue();
|
|
8472
|
-
return;
|
|
8473
|
-
}
|
|
8474
|
-
/*
|
|
8475
|
-
if we're not at the end of the timer, set the state by passing
|
|
8476
|
-
current step value that's transformed by the ease function to the
|
|
8477
|
-
interpolator, which is cached for performance whenever props are received
|
|
8478
|
-
*/
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
this.setState({
|
|
8482
|
-
data: this.interpolator(this.ease(step)),
|
|
8483
|
-
animationInfo: {
|
|
8484
|
-
progress: step,
|
|
8485
|
-
animating: step < 1
|
|
8486
|
-
}
|
|
8487
|
-
});
|
|
8488
|
-
}
|
|
8489
8555
|
}, {
|
|
8490
8556
|
key: "render",
|
|
8491
8557
|
value: function render() {
|
|
@@ -8495,28 +8561,23 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8495
8561
|
|
|
8496
8562
|
return VictoryAnimation;
|
|
8497
8563
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
8498
|
-
|
|
8499
|
-
|
|
8500
|
-
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
});
|
|
8509
|
-
|
|
8510
|
-
_defineProperty(VictoryAnimation, "defaultProps", {
|
|
8564
|
+
VictoryAnimation.displayName = "VictoryAnimation";
|
|
8565
|
+
VictoryAnimation.propTypes = {
|
|
8566
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
8567
|
+
data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
|
|
8568
|
+
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8569
|
+
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8570
|
+
easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
|
|
8571
|
+
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
8572
|
+
};
|
|
8573
|
+
VictoryAnimation.defaultProps = {
|
|
8511
8574
|
data: {},
|
|
8512
8575
|
delay: 0,
|
|
8513
8576
|
duration: 1000,
|
|
8514
8577
|
easing: "quadInOut"
|
|
8515
|
-
}
|
|
8516
|
-
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
|
|
8578
|
+
};
|
|
8579
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
8580
|
+
//# sourceMappingURL=victory-animation.js.map
|
|
8520
8581
|
|
|
8521
8582
|
/***/ }),
|
|
8522
8583
|
|
|
@@ -8529,7 +8590,7 @@ _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WE
|
|
|
8529
8590
|
"use strict";
|
|
8530
8591
|
__webpack_require__.r(__webpack_exports__);
|
|
8531
8592
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8532
|
-
/* harmony export */ "
|
|
8593
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
8533
8594
|
/* harmony export */ });
|
|
8534
8595
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
8535
8596
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8543,26 +8604,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8543
8604
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
8544
8605
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
8545
8606
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
8546
|
-
/* harmony import */ var
|
|
8547
|
-
/* harmony import */ var
|
|
8607
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8608
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
8548
8609
|
/* 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");
|
|
8549
8610
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
8550
|
-
/* harmony import */ var
|
|
8611
|
+
/* 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");
|
|
8551
8612
|
/* 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");
|
|
8552
|
-
/* harmony import */ var
|
|
8553
|
-
/* harmony import */ var
|
|
8613
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8614
|
+
/* 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");
|
|
8554
8615
|
|
|
8555
8616
|
|
|
8556
8617
|
|
|
8557
8618
|
|
|
8558
8619
|
|
|
8559
8620
|
|
|
8560
|
-
function _extends() { _extends = Object.assign
|
|
8621
|
+
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); }
|
|
8561
8622
|
|
|
8562
8623
|
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; }
|
|
8563
8624
|
|
|
8564
8625
|
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; }
|
|
8565
8626
|
|
|
8627
|
+
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; }
|
|
8628
|
+
|
|
8566
8629
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8567
8630
|
|
|
8568
8631
|
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); } }
|
|
@@ -8571,7 +8634,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8571
8634
|
|
|
8572
8635
|
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); }
|
|
8573
8636
|
|
|
8574
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8637
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8575
8638
|
|
|
8576
8639
|
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); }; }
|
|
8577
8640
|
|
|
@@ -8581,10 +8644,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8581
8644
|
|
|
8582
8645
|
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; } }
|
|
8583
8646
|
|
|
8584
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8585
|
-
|
|
8586
|
-
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; }
|
|
8587
|
-
|
|
8647
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8588
8648
|
|
|
8589
8649
|
|
|
8590
8650
|
|
|
@@ -8599,13 +8659,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8599
8659
|
|
|
8600
8660
|
var _super = _createSuper(VictoryContainer);
|
|
8601
8661
|
|
|
8662
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
8663
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
8602
8664
|
function VictoryContainer(props) {
|
|
8603
8665
|
var _this;
|
|
8604
8666
|
|
|
8605
8667
|
_classCallCheck(this, VictoryContainer);
|
|
8606
8668
|
|
|
8607
8669
|
_this = _super.call(this, props);
|
|
8608
|
-
_this.containerId =
|
|
8670
|
+
_this.containerId = void 0;
|
|
8671
|
+
_this.portalRef = void 0;
|
|
8672
|
+
_this.containerRef = void 0;
|
|
8673
|
+
_this.shouldHandleWheel = void 0;
|
|
8609
8674
|
|
|
8610
8675
|
_this.savePortalRef = function (portal) {
|
|
8611
8676
|
_this.portalRef = portal;
|
|
@@ -8624,18 +8689,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8624
8689
|
return _this.portalRef.portalDeregister(key);
|
|
8625
8690
|
};
|
|
8626
8691
|
|
|
8627
|
-
_this.saveContainerRef =
|
|
8692
|
+
_this.saveContainerRef = function (container) {
|
|
8693
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
8694
|
+
_this.props.containerRef(container);
|
|
8695
|
+
}
|
|
8696
|
+
|
|
8628
8697
|
_this.containerRef = container;
|
|
8629
8698
|
return container;
|
|
8630
8699
|
};
|
|
8631
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
8632
8700
|
|
|
8633
|
-
|
|
8634
|
-
|
|
8635
|
-
|
|
8636
|
-
};
|
|
8637
|
-
}
|
|
8701
|
+
_this.handleWheel = function (e) {
|
|
8702
|
+
return e.preventDefault();
|
|
8703
|
+
};
|
|
8638
8704
|
|
|
8705
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
8706
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
8639
8707
|
return _this;
|
|
8640
8708
|
}
|
|
8641
8709
|
|
|
@@ -8728,7 +8796,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8728
8796
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
8729
8797
|
style: portalSvgStyle
|
|
8730
8798
|
};
|
|
8731
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
8799
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
8732
8800
|
value: {
|
|
8733
8801
|
portalUpdate: this.portalUpdate,
|
|
8734
8802
|
portalRegister: this.portalRegister,
|
|
@@ -8763,8 +8831,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8763
8831
|
tabIndex = _this$props.tabIndex,
|
|
8764
8832
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
8765
8833
|
role = _this$props.role;
|
|
8766
|
-
var style = responsive ? this.props.style :
|
|
8767
|
-
var userProps =
|
|
8834
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
8835
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
8768
8836
|
|
|
8769
8837
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
8770
8838
|
width: width,
|
|
@@ -8783,53 +8851,47 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8783
8851
|
|
|
8784
8852
|
return VictoryContainer;
|
|
8785
8853
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
8798
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
8799
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8854
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
8855
|
+
VictoryContainer.role = "container";
|
|
8856
|
+
VictoryContainer.propTypes = {
|
|
8857
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8858
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8859
|
+
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)]),
|
|
8860
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8861
|
+
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)]),
|
|
8862
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
8863
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8864
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8800
8865
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
8801
|
-
name: (
|
|
8802
|
-
origin:
|
|
8866
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8867
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
8803
8868
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
8804
8869
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
8805
8870
|
}),
|
|
8806
|
-
ouiaId:
|
|
8807
|
-
ouiaSafe: (
|
|
8808
|
-
ouiaType: (
|
|
8809
|
-
polar: (
|
|
8810
|
-
portalComponent: (
|
|
8871
|
+
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)]),
|
|
8872
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8873
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8874
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8875
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
8811
8876
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
8812
|
-
preserveAspectRatio: (
|
|
8813
|
-
responsive: (
|
|
8814
|
-
role: (
|
|
8815
|
-
style: (
|
|
8816
|
-
tabIndex: (
|
|
8817
|
-
theme: (
|
|
8818
|
-
title: (
|
|
8877
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8878
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8879
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8880
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8881
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
8882
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8883
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8819
8884
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
8820
|
-
}
|
|
8821
|
-
|
|
8822
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
8885
|
+
};
|
|
8886
|
+
VictoryContainer.defaultProps = {
|
|
8823
8887
|
className: "VictoryContainer",
|
|
8824
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
8888
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
8825
8889
|
portalZIndex: 99,
|
|
8826
8890
|
responsive: true,
|
|
8827
8891
|
role: "img"
|
|
8828
|
-
}
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8892
|
+
};
|
|
8893
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
8894
|
+
//# sourceMappingURL=victory-container.js.map
|
|
8833
8895
|
|
|
8834
8896
|
/***/ }),
|
|
8835
8897
|
|
|
@@ -8842,7 +8904,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
8842
8904
|
"use strict";
|
|
8843
8905
|
__webpack_require__.r(__webpack_exports__);
|
|
8844
8906
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8845
|
-
/* harmony export */ "
|
|
8907
|
+
/* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
|
|
8846
8908
|
/* harmony export */ });
|
|
8847
8909
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
8848
8910
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8850,20 +8912,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8850
8912
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
8851
8913
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8852
8914
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
|
|
8853
|
-
/* harmony import */ var
|
|
8854
|
-
/* harmony import */ var
|
|
8855
|
-
/* harmony import */ var
|
|
8856
|
-
/* harmony import */ var
|
|
8915
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8916
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
|
|
8917
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
8918
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
8857
8919
|
/* 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");
|
|
8858
|
-
/* harmony import */ var
|
|
8859
|
-
/* harmony import */ var
|
|
8860
|
-
/* harmony import */ var
|
|
8861
|
-
/* harmony import */ var
|
|
8862
|
-
/* harmony import */ var
|
|
8863
|
-
/* harmony import */ var
|
|
8864
|
-
/* harmony import */ var
|
|
8865
|
-
/* harmony import */ var
|
|
8920
|
+
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
8921
|
+
/* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
|
|
8922
|
+
/* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../victory-primitives/tspan */ "../../victory-core/es/victory-primitives/tspan.js");
|
|
8923
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8924
|
+
/* 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");
|
|
8925
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8926
|
+
/* 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");
|
|
8927
|
+
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
8866
8928
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
8929
|
+
/* 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");
|
|
8867
8930
|
|
|
8868
8931
|
|
|
8869
8932
|
|
|
@@ -8898,6 +8961,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8898
8961
|
|
|
8899
8962
|
|
|
8900
8963
|
|
|
8964
|
+
|
|
8901
8965
|
var defaultStyles = {
|
|
8902
8966
|
fill: "#252525",
|
|
8903
8967
|
fontSize: 14,
|
|
@@ -8910,7 +8974,7 @@ var getPosition = function (props, dimension) {
|
|
|
8910
8974
|
return 0;
|
|
8911
8975
|
}
|
|
8912
8976
|
|
|
8913
|
-
var scaledPoint =
|
|
8977
|
+
var scaledPoint = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, props.datum);
|
|
8914
8978
|
return scaledPoint[dimension];
|
|
8915
8979
|
};
|
|
8916
8980
|
|
|
@@ -8927,7 +8991,7 @@ var getFontSize = function (style) {
|
|
|
8927
8991
|
if (!isNaN(fontSize)) {
|
|
8928
8992
|
return fontSize;
|
|
8929
8993
|
} else {
|
|
8930
|
-
|
|
8994
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_5__.warn("fontSize should be expressed as a number of pixels");
|
|
8931
8995
|
return defaultStyles.fontSize;
|
|
8932
8996
|
}
|
|
8933
8997
|
}
|
|
@@ -8948,7 +9012,7 @@ var shouldUseMultilineBackgrounds = function (props) {
|
|
|
8948
9012
|
|
|
8949
9013
|
var getStyles = function (style, props) {
|
|
8950
9014
|
if (props.disableInlineStyles) {
|
|
8951
|
-
var baseStyles =
|
|
9015
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8952
9016
|
return {
|
|
8953
9017
|
// Font size is necessary to calculate the y position of the label
|
|
8954
9018
|
fontSize: getFontSize(baseStyles)
|
|
@@ -8957,7 +9021,7 @@ var getStyles = function (style, props) {
|
|
|
8957
9021
|
|
|
8958
9022
|
var getSingleStyle = function (s) {
|
|
8959
9023
|
s = s ? lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, s, defaultStyles) : defaultStyles;
|
|
8960
|
-
var baseStyles =
|
|
9024
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8961
9025
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, baseStyles, {
|
|
8962
9026
|
fontSize: getFontSize(baseStyles)
|
|
8963
9027
|
});
|
|
@@ -8974,28 +9038,28 @@ var getBackgroundStyles = function (style, props) {
|
|
|
8974
9038
|
}
|
|
8975
9039
|
|
|
8976
9040
|
return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) {
|
|
8977
|
-
return
|
|
8978
|
-
}) :
|
|
9041
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
9042
|
+
}) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8979
9043
|
};
|
|
8980
9044
|
|
|
8981
9045
|
var getBackgroundPadding = function (props) {
|
|
8982
9046
|
if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
|
|
8983
9047
|
return props.backgroundPadding.map(function (backgroundPadding) {
|
|
8984
|
-
var padding =
|
|
8985
|
-
return
|
|
9048
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(backgroundPadding, props);
|
|
9049
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8986
9050
|
padding: padding
|
|
8987
9051
|
});
|
|
8988
9052
|
});
|
|
8989
9053
|
} else {
|
|
8990
|
-
var padding =
|
|
8991
|
-
return
|
|
9054
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.backgroundPadding, props);
|
|
9055
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8992
9056
|
padding: padding
|
|
8993
9057
|
});
|
|
8994
9058
|
}
|
|
8995
9059
|
};
|
|
8996
9060
|
|
|
8997
9061
|
var getLineHeight = function (props) {
|
|
8998
|
-
var lineHeight =
|
|
9062
|
+
var lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.lineHeight, props);
|
|
8999
9063
|
|
|
9000
9064
|
if (Array.isArray(lineHeight)) {
|
|
9001
9065
|
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
|
|
@@ -9011,11 +9075,11 @@ var getContent = function (text, props) {
|
|
|
9011
9075
|
|
|
9012
9076
|
if (Array.isArray(text)) {
|
|
9013
9077
|
return text.map(function (line) {
|
|
9014
|
-
return
|
|
9078
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(line, props);
|
|
9015
9079
|
});
|
|
9016
9080
|
}
|
|
9017
9081
|
|
|
9018
|
-
var child =
|
|
9082
|
+
var child = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(text, props);
|
|
9019
9083
|
|
|
9020
9084
|
if (child === undefined || child === null) {
|
|
9021
9085
|
return undefined;
|
|
@@ -9025,10 +9089,10 @@ var getContent = function (text, props) {
|
|
|
9025
9089
|
};
|
|
9026
9090
|
|
|
9027
9091
|
var getDy = function (props, verticalAnchor, lineHeight) {
|
|
9028
|
-
var dy = props.dy ?
|
|
9092
|
+
var dy = props.dy ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dy, props) : 0;
|
|
9029
9093
|
var length = props.inline ? 1 : props.text.length;
|
|
9030
|
-
var capHeight =
|
|
9031
|
-
var anchor = verticalAnchor ?
|
|
9094
|
+
var capHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.capHeight, props);
|
|
9095
|
+
var anchor = verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(verticalAnchor, props) : "middle";
|
|
9032
9096
|
|
|
9033
9097
|
var fontSizes = _toConsumableArray(Array(length).keys()).map(function (i) {
|
|
9034
9098
|
return getSingleValue(props.style, i).fontSize;
|
|
@@ -9056,15 +9120,15 @@ var getDy = function (props, verticalAnchor, lineHeight) {
|
|
|
9056
9120
|
var getTransform = function (props, x, y) {
|
|
9057
9121
|
var polar = props.polar;
|
|
9058
9122
|
var style = getSingleValue(props.style);
|
|
9059
|
-
var defaultAngle = polar ?
|
|
9060
|
-
var baseAngle = style.angle === undefined ?
|
|
9123
|
+
var defaultAngle = polar ? _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(props) : 0;
|
|
9124
|
+
var baseAngle = style.angle === undefined ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.angle, props) : style.angle;
|
|
9061
9125
|
var angle = baseAngle === undefined ? defaultAngle : baseAngle;
|
|
9062
9126
|
var transform = props.transform || style.transform;
|
|
9063
|
-
var transformPart = transform &&
|
|
9127
|
+
var transformPart = transform && _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(transform, props);
|
|
9064
9128
|
var rotatePart = angle && {
|
|
9065
9129
|
rotate: [angle, x, y]
|
|
9066
9130
|
};
|
|
9067
|
-
return transformPart || angle ?
|
|
9131
|
+
return transformPart || angle ? _victory_util_style__WEBPACK_IMPORTED_MODULE_7__.toTransformString(transformPart, rotatePart) : undefined;
|
|
9068
9132
|
};
|
|
9069
9133
|
|
|
9070
9134
|
var getXCoordinate = function (calculatedProps, labelSizeWidth) {
|
|
@@ -9145,7 +9209,7 @@ var getFullBackground = function (calculatedProps, tspanValues) {
|
|
|
9145
9209
|
x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
|
|
9146
9210
|
y: yCoordinate
|
|
9147
9211
|
};
|
|
9148
|
-
return /*#__PURE__*/
|
|
9212
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
9149
9213
|
};
|
|
9150
9214
|
|
|
9151
9215
|
var getInlineXOffset = function (calculatedProps, textElements, index) {
|
|
@@ -9227,7 +9291,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
|
|
|
9227
9291
|
x: xCoord - padding.left,
|
|
9228
9292
|
y: yCoord
|
|
9229
9293
|
};
|
|
9230
|
-
return /*#__PURE__*/
|
|
9294
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
9231
9295
|
});
|
|
9232
9296
|
};
|
|
9233
9297
|
|
|
@@ -9278,7 +9342,7 @@ var evaluateProps = function (props) {
|
|
|
9278
9342
|
style: style,
|
|
9279
9343
|
backgroundStyle: backgroundStyle
|
|
9280
9344
|
}));
|
|
9281
|
-
var id =
|
|
9345
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
|
|
9282
9346
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
|
|
9283
9347
|
backgroundStyle: backgroundStyle,
|
|
9284
9348
|
backgroundPadding: backgroundPadding,
|
|
@@ -9289,13 +9353,13 @@ var evaluateProps = function (props) {
|
|
|
9289
9353
|
};
|
|
9290
9354
|
|
|
9291
9355
|
var getCalculatedProps = function (props) {
|
|
9292
|
-
var ariaLabel =
|
|
9356
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
|
|
9293
9357
|
var style = getSingleValue(props.style);
|
|
9294
9358
|
var lineHeight = getLineHeight(props);
|
|
9295
|
-
var direction = props.direction ?
|
|
9296
|
-
var textAnchor = props.textAnchor ?
|
|
9297
|
-
var verticalAnchor = props.verticalAnchor ?
|
|
9298
|
-
var dx = props.dx ?
|
|
9359
|
+
var direction = props.direction ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.direction, props) : "inherit";
|
|
9360
|
+
var textAnchor = props.textAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.textAnchor, props) : style.textAnchor || "start";
|
|
9361
|
+
var verticalAnchor = props.verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.verticalAnchor, props) : style.verticalAnchor || "middle";
|
|
9362
|
+
var dx = props.dx ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dx, props) : 0;
|
|
9299
9363
|
var dy = getDy(props, verticalAnchor, lineHeight);
|
|
9300
9364
|
var x = props.x !== undefined ? props.x : getPosition(props, "x");
|
|
9301
9365
|
var y = props.y !== undefined ? props.y : getPosition(props, "y");
|
|
@@ -9334,6 +9398,7 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
9334
9398
|
tabIndex = calculatedProps.tabIndex,
|
|
9335
9399
|
tspanComponent = calculatedProps.tspanComponent,
|
|
9336
9400
|
textComponent = calculatedProps.textComponent;
|
|
9401
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(calculatedProps);
|
|
9337
9402
|
|
|
9338
9403
|
var textProps = _objectSpread(_objectSpread({
|
|
9339
9404
|
"aria-label": ariaLabel,
|
|
@@ -9346,10 +9411,10 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
9346
9411
|
transform: transform,
|
|
9347
9412
|
className: className,
|
|
9348
9413
|
title: title,
|
|
9349
|
-
desc:
|
|
9350
|
-
tabIndex:
|
|
9414
|
+
desc: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(desc, calculatedProps),
|
|
9415
|
+
tabIndex: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(tabIndex, calculatedProps),
|
|
9351
9416
|
id: id
|
|
9352
|
-
});
|
|
9417
|
+
}, userProps);
|
|
9353
9418
|
|
|
9354
9419
|
var tspans = text.map(function (line, i) {
|
|
9355
9420
|
var currentStyle = tspanValues[i].style;
|
|
@@ -9362,9 +9427,9 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
9362
9427
|
style: currentStyle,
|
|
9363
9428
|
children: line
|
|
9364
9429
|
};
|
|
9365
|
-
return /*#__PURE__*/
|
|
9430
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(tspanComponent, tspanProps);
|
|
9366
9431
|
});
|
|
9367
|
-
return /*#__PURE__*/
|
|
9432
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(textComponent, textProps, tspans);
|
|
9368
9433
|
};
|
|
9369
9434
|
|
|
9370
9435
|
var VictoryLabel = function (props) {
|
|
@@ -9389,6 +9454,7 @@ var VictoryLabel = function (props) {
|
|
|
9389
9454
|
fontSize: currentStyle.fontSize || defaultStyles.fontSize,
|
|
9390
9455
|
capHeight: capHeightPx,
|
|
9391
9456
|
text: line,
|
|
9457
|
+
// @ts-expect-error TODO: This looks like a bug:
|
|
9392
9458
|
textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
|
|
9393
9459
|
lineHeight: currentLineHeight,
|
|
9394
9460
|
backgroundPadding: getSingleValue(backgroundPadding, i)
|
|
@@ -9399,71 +9465,75 @@ var VictoryLabel = function (props) {
|
|
|
9399
9465
|
if (props.backgroundStyle) {
|
|
9400
9466
|
var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
|
|
9401
9467
|
var children = [backgroundElement, label];
|
|
9402
|
-
var backgroundWithLabel = /*#__PURE__*/
|
|
9403
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
9468
|
+
var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
|
|
9469
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
|
|
9404
9470
|
}
|
|
9405
9471
|
|
|
9406
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
9472
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
|
|
9407
9473
|
};
|
|
9408
|
-
|
|
9409
9474
|
VictoryLabel.displayName = "VictoryLabel";
|
|
9410
9475
|
VictoryLabel.role = "label";
|
|
9411
9476
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
9412
9477
|
VictoryLabel.propTypes = {
|
|
9413
|
-
active: (
|
|
9414
|
-
angle:
|
|
9415
|
-
ariaLabel:
|
|
9416
|
-
backgroundComponent: (
|
|
9417
|
-
backgroundPadding:
|
|
9418
|
-
backgroundStyle:
|
|
9419
|
-
capHeight:
|
|
9420
|
-
className: (
|
|
9421
|
-
data: (
|
|
9422
|
-
datum: (
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9478
|
+
active: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9479
|
+
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)]),
|
|
9480
|
+
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)]),
|
|
9481
|
+
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9482
|
+
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)]),
|
|
9483
|
+
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)]),
|
|
9484
|
+
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)]),
|
|
9485
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
9486
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
9487
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
|
|
9488
|
+
// @ts-expect-error "Function is not assignable to string"
|
|
9489
|
+
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)]),
|
|
9490
|
+
direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
9491
|
+
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)]),
|
|
9492
|
+
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)]),
|
|
9493
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
9494
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9495
|
+
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)]),
|
|
9496
|
+
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)]),
|
|
9497
|
+
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9498
|
+
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
9499
|
+
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)]),
|
|
9500
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
9501
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
9502
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
9437
9503
|
}),
|
|
9438
|
-
polar: (
|
|
9439
|
-
renderInPortal: (
|
|
9440
|
-
scale:
|
|
9441
|
-
x:
|
|
9442
|
-
y:
|
|
9504
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9505
|
+
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9506
|
+
scale: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
9507
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale,
|
|
9508
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale
|
|
9443
9509
|
}),
|
|
9444
|
-
style:
|
|
9445
|
-
tabIndex:
|
|
9446
|
-
text:
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
9510
|
+
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)]),
|
|
9511
|
+
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)]),
|
|
9512
|
+
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)]),
|
|
9513
|
+
// @ts-expect-error Function is not assignable to string"
|
|
9514
|
+
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)]),
|
|
9515
|
+
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9516
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
9517
|
+
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)]),
|
|
9518
|
+
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9519
|
+
// @ts-expect-error Function is not assignable to string"
|
|
9520
|
+
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)]),
|
|
9521
|
+
// @ts-expect-error Number is not assignable to string
|
|
9522
|
+
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)]),
|
|
9523
|
+
// @ts-expect-error Number is not assignable to string
|
|
9524
|
+
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)])
|
|
9455
9525
|
};
|
|
9456
9526
|
VictoryLabel.defaultProps = {
|
|
9457
|
-
backgroundComponent: /*#__PURE__*/
|
|
9458
|
-
groupComponent: /*#__PURE__*/
|
|
9527
|
+
backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
|
|
9528
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
9459
9529
|
direction: "inherit",
|
|
9460
|
-
textComponent: /*#__PURE__*/
|
|
9461
|
-
tspanComponent: /*#__PURE__*/
|
|
9530
|
+
textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
|
|
9531
|
+
tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
|
|
9462
9532
|
capHeight: 0.71,
|
|
9463
9533
|
// Magic number from d3.
|
|
9464
9534
|
lineHeight: 1
|
|
9465
9535
|
};
|
|
9466
|
-
|
|
9536
|
+
//# sourceMappingURL=victory-label.js.map
|
|
9467
9537
|
|
|
9468
9538
|
/***/ }),
|
|
9469
9539
|
|
|
@@ -9476,19 +9546,19 @@ VictoryLabel.defaultProps = {
|
|
|
9476
9546
|
"use strict";
|
|
9477
9547
|
__webpack_require__.r(__webpack_exports__);
|
|
9478
9548
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9479
|
-
/* harmony export */ "
|
|
9549
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
9480
9550
|
/* harmony export */ });
|
|
9481
9551
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9482
9552
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9483
9553
|
|
|
9554
|
+
|
|
9484
9555
|
/**
|
|
9485
9556
|
* The React context object consumers may use to access the context of the
|
|
9486
9557
|
* portal.
|
|
9487
9558
|
*/
|
|
9488
|
-
|
|
9489
9559
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
9490
9560
|
PortalContext.displayName = "PortalContext";
|
|
9491
|
-
|
|
9561
|
+
//# sourceMappingURL=portal-context.js.map
|
|
9492
9562
|
|
|
9493
9563
|
/***/ }),
|
|
9494
9564
|
|
|
@@ -9501,7 +9571,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
9501
9571
|
"use strict";
|
|
9502
9572
|
__webpack_require__.r(__webpack_exports__);
|
|
9503
9573
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9504
|
-
/* harmony export */ "
|
|
9574
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
9505
9575
|
/* harmony export */ });
|
|
9506
9576
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
9507
9577
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9520,7 +9590,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9520
9590
|
|
|
9521
9591
|
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); }
|
|
9522
9592
|
|
|
9523
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9593
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9524
9594
|
|
|
9525
9595
|
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); }; }
|
|
9526
9596
|
|
|
@@ -9530,10 +9600,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9530
9600
|
|
|
9531
9601
|
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; } }
|
|
9532
9602
|
|
|
9533
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9534
|
-
|
|
9535
|
-
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; }
|
|
9536
|
-
|
|
9603
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9537
9604
|
|
|
9538
9605
|
|
|
9539
9606
|
|
|
@@ -9549,32 +9616,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
9549
9616
|
_classCallCheck(this, Portal);
|
|
9550
9617
|
|
|
9551
9618
|
_this = _super.call(this, props);
|
|
9619
|
+
_this.map = void 0;
|
|
9620
|
+
_this.index = void 0;
|
|
9621
|
+
|
|
9622
|
+
_this.portalRegister = function () {
|
|
9623
|
+
return ++_this.index;
|
|
9624
|
+
};
|
|
9625
|
+
|
|
9626
|
+
_this.portalUpdate = function (key, element) {
|
|
9627
|
+
_this.map[key] = element;
|
|
9628
|
+
|
|
9629
|
+
_this.forceUpdate();
|
|
9630
|
+
};
|
|
9631
|
+
|
|
9632
|
+
_this.portalDeregister = function (key) {
|
|
9633
|
+
delete _this.map[key];
|
|
9634
|
+
|
|
9635
|
+
_this.forceUpdate();
|
|
9636
|
+
};
|
|
9637
|
+
|
|
9552
9638
|
_this.map = {};
|
|
9553
9639
|
_this.index = 1;
|
|
9554
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
9555
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
9556
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
9557
9640
|
return _this;
|
|
9558
9641
|
}
|
|
9559
9642
|
|
|
9560
9643
|
_createClass(Portal, [{
|
|
9561
|
-
key: "portalRegister",
|
|
9562
|
-
value: function portalRegister() {
|
|
9563
|
-
return ++this.index;
|
|
9564
|
-
}
|
|
9565
|
-
}, {
|
|
9566
|
-
key: "portalUpdate",
|
|
9567
|
-
value: function portalUpdate(key, element) {
|
|
9568
|
-
this.map[key] = element;
|
|
9569
|
-
this.forceUpdate();
|
|
9570
|
-
}
|
|
9571
|
-
}, {
|
|
9572
|
-
key: "portalDeregister",
|
|
9573
|
-
value: function portalDeregister(key) {
|
|
9574
|
-
delete this.map[key];
|
|
9575
|
-
this.forceUpdate();
|
|
9576
|
-
}
|
|
9577
|
-
}, {
|
|
9578
9644
|
key: "getChildren",
|
|
9579
9645
|
value: function getChildren() {
|
|
9580
9646
|
var _this2 = this;
|
|
@@ -9596,18 +9662,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
9596
9662
|
|
|
9597
9663
|
return Portal;
|
|
9598
9664
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
_defineProperty(Portal, "propTypes", {
|
|
9665
|
+
Portal.displayName = "Portal";
|
|
9666
|
+
Portal.propTypes = {
|
|
9603
9667
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9604
9668
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
9605
9669
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
9606
9670
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9607
9671
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
9608
|
-
}
|
|
9609
|
-
|
|
9610
|
-
|
|
9672
|
+
};
|
|
9673
|
+
//# sourceMappingURL=portal.js.map
|
|
9611
9674
|
|
|
9612
9675
|
/***/ }),
|
|
9613
9676
|
|
|
@@ -9620,16 +9683,16 @@ _defineProperty(Portal, "propTypes", {
|
|
|
9620
9683
|
"use strict";
|
|
9621
9684
|
__webpack_require__.r(__webpack_exports__);
|
|
9622
9685
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9623
|
-
/* harmony export */ "
|
|
9686
|
+
/* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
|
|
9624
9687
|
/* harmony export */ });
|
|
9625
9688
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
9626
9689
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9627
9690
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9628
9691
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9629
|
-
/* harmony import */ var
|
|
9630
|
-
/* harmony import */ var
|
|
9631
|
-
/* harmony import */ var
|
|
9632
|
-
/* harmony import */ var
|
|
9692
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9693
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9694
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
9695
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9633
9696
|
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
9634
9697
|
|
|
9635
9698
|
|
|
@@ -9641,7 +9704,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9641
9704
|
|
|
9642
9705
|
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); }
|
|
9643
9706
|
|
|
9644
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9707
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9645
9708
|
|
|
9646
9709
|
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); }; }
|
|
9647
9710
|
|
|
@@ -9651,10 +9714,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9651
9714
|
|
|
9652
9715
|
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; } }
|
|
9653
9716
|
|
|
9654
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9655
|
-
|
|
9656
|
-
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; }
|
|
9657
|
-
|
|
9717
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9658
9718
|
|
|
9659
9719
|
|
|
9660
9720
|
|
|
@@ -9667,9 +9727,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9667
9727
|
var _super = _createSuper(VictoryPortal);
|
|
9668
9728
|
|
|
9669
9729
|
function VictoryPortal() {
|
|
9730
|
+
var _this;
|
|
9731
|
+
|
|
9670
9732
|
_classCallCheck(this, VictoryPortal);
|
|
9671
9733
|
|
|
9672
|
-
|
|
9734
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9735
|
+
args[_key] = arguments[_key];
|
|
9736
|
+
}
|
|
9737
|
+
|
|
9738
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9739
|
+
_this.checkedContext = void 0;
|
|
9740
|
+
_this.renderInPlace = void 0;
|
|
9741
|
+
_this.element = void 0;
|
|
9742
|
+
_this.portalKey = void 0;
|
|
9743
|
+
return _this;
|
|
9673
9744
|
}
|
|
9674
9745
|
|
|
9675
9746
|
_createClass(VictoryPortal, [{
|
|
@@ -9678,7 +9749,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9678
9749
|
if (!this.checkedContext) {
|
|
9679
9750
|
if (typeof this.context.portalUpdate !== "function") {
|
|
9680
9751
|
var msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
|
|
9681
|
-
|
|
9752
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_2__.warn(msg);
|
|
9682
9753
|
this.renderInPlace = true;
|
|
9683
9754
|
}
|
|
9684
9755
|
|
|
@@ -9724,7 +9795,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9724
9795
|
standalone: false
|
|
9725
9796
|
} : {};
|
|
9726
9797
|
|
|
9727
|
-
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps,
|
|
9798
|
+
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.omit(this.props, ["children", "groupComponent"]));
|
|
9728
9799
|
|
|
9729
9800
|
var child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
|
|
9730
9801
|
return this.renderPortal(child);
|
|
@@ -9733,23 +9804,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9733
9804
|
|
|
9734
9805
|
return VictoryPortal;
|
|
9735
9806
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9736
|
-
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element)
|
|
9744
|
-
});
|
|
9745
|
-
|
|
9746
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
9807
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
9808
|
+
VictoryPortal.role = "portal";
|
|
9809
|
+
VictoryPortal.propTypes = {
|
|
9810
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
9811
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
9812
|
+
};
|
|
9813
|
+
VictoryPortal.defaultProps = {
|
|
9747
9814
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
9748
|
-
}
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9815
|
+
};
|
|
9816
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
9817
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
9753
9818
|
|
|
9754
9819
|
/***/ }),
|
|
9755
9820
|
|
|
@@ -9762,7 +9827,7 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
|
|
|
9762
9827
|
"use strict";
|
|
9763
9828
|
__webpack_require__.r(__webpack_exports__);
|
|
9764
9829
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9765
|
-
/* harmony export */ "
|
|
9830
|
+
/* harmony export */ "Path": () => (/* binding */ Path)
|
|
9766
9831
|
/* harmony export */ });
|
|
9767
9832
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9768
9833
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9773,16 +9838,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9773
9838
|
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; }
|
|
9774
9839
|
|
|
9775
9840
|
|
|
9776
|
-
|
|
9777
9841
|
var Path = function (props) {
|
|
9778
9842
|
// eslint-disable-next-line react/prop-types
|
|
9779
9843
|
var desc = props.desc,
|
|
9780
9844
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9781
9845
|
|
|
9782
|
-
return desc ?
|
|
9846
|
+
return desc ?
|
|
9847
|
+
/*#__PURE__*/
|
|
9848
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9849
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9850
|
+
/*#__PURE__*/
|
|
9851
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9852
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
9783
9853
|
};
|
|
9784
|
-
|
|
9785
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
|
|
9854
|
+
//# sourceMappingURL=path.js.map
|
|
9786
9855
|
|
|
9787
9856
|
/***/ }),
|
|
9788
9857
|
|
|
@@ -9795,33 +9864,37 @@ var Path = function (props) {
|
|
|
9795
9864
|
"use strict";
|
|
9796
9865
|
__webpack_require__.r(__webpack_exports__);
|
|
9797
9866
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9798
|
-
/* harmony export */ "
|
|
9867
|
+
/* harmony export */ "Rect": () => (/* binding */ Rect)
|
|
9799
9868
|
/* harmony export */ });
|
|
9800
9869
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9801
9870
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9802
9871
|
var _excluded = ["desc"];
|
|
9803
9872
|
|
|
9804
|
-
function _extends() { _extends = Object.assign
|
|
9873
|
+
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); }
|
|
9805
9874
|
|
|
9806
9875
|
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; }
|
|
9807
9876
|
|
|
9808
9877
|
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; }
|
|
9809
9878
|
|
|
9810
9879
|
|
|
9811
|
-
|
|
9812
9880
|
var Rect = function (props) {
|
|
9813
9881
|
// eslint-disable-next-line react/prop-types
|
|
9814
9882
|
var desc = props.desc,
|
|
9815
9883
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9816
9884
|
|
|
9817
|
-
return desc ?
|
|
9885
|
+
return desc ?
|
|
9886
|
+
/*#__PURE__*/
|
|
9887
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9888
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9818
9889
|
vectorEffect: "non-scaling-stroke"
|
|
9819
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9890
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9891
|
+
/*#__PURE__*/
|
|
9892
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9893
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9820
9894
|
vectorEffect: "non-scaling-stroke"
|
|
9821
9895
|
}, rest));
|
|
9822
9896
|
};
|
|
9823
|
-
|
|
9824
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
|
|
9897
|
+
//# sourceMappingURL=rect.js.map
|
|
9825
9898
|
|
|
9826
9899
|
/***/ }),
|
|
9827
9900
|
|
|
@@ -9834,7 +9907,7 @@ var Rect = function (props) {
|
|
|
9834
9907
|
"use strict";
|
|
9835
9908
|
__webpack_require__.r(__webpack_exports__);
|
|
9836
9909
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9837
|
-
/* harmony export */ "
|
|
9910
|
+
/* harmony export */ "Text": () => (/* binding */ Text)
|
|
9838
9911
|
/* harmony export */ });
|
|
9839
9912
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9840
9913
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9848,22 +9921,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
9848
9921
|
|
|
9849
9922
|
|
|
9850
9923
|
|
|
9851
|
-
|
|
9852
9924
|
var Text = function (props) {
|
|
9853
9925
|
var children = props.children,
|
|
9854
9926
|
title = props.title,
|
|
9855
9927
|
desc = props.desc,
|
|
9856
9928
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9857
9929
|
|
|
9858
|
-
return
|
|
9930
|
+
return (
|
|
9931
|
+
/*#__PURE__*/
|
|
9932
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9933
|
+
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)
|
|
9934
|
+
);
|
|
9859
9935
|
};
|
|
9860
|
-
|
|
9861
9936
|
Text.propTypes = {
|
|
9862
9937
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
9863
9938
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
9864
9939
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
9865
9940
|
};
|
|
9866
|
-
|
|
9941
|
+
//# sourceMappingURL=text.js.map
|
|
9867
9942
|
|
|
9868
9943
|
/***/ }),
|
|
9869
9944
|
|
|
@@ -9876,17 +9951,19 @@ Text.propTypes = {
|
|
|
9876
9951
|
"use strict";
|
|
9877
9952
|
__webpack_require__.r(__webpack_exports__);
|
|
9878
9953
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9879
|
-
/* harmony export */ "
|
|
9954
|
+
/* harmony export */ "TSpan": () => (/* binding */ TSpan)
|
|
9880
9955
|
/* harmony export */ });
|
|
9881
9956
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9882
9957
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9883
9958
|
|
|
9884
|
-
|
|
9885
9959
|
var TSpan = function (props) {
|
|
9886
|
-
return
|
|
9960
|
+
return (
|
|
9961
|
+
/*#__PURE__*/
|
|
9962
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9963
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
9964
|
+
);
|
|
9887
9965
|
};
|
|
9888
|
-
|
|
9889
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
|
|
9966
|
+
//# sourceMappingURL=tspan.js.map
|
|
9890
9967
|
|
|
9891
9968
|
/***/ }),
|
|
9892
9969
|
|
|
@@ -9899,7 +9976,7 @@ var TSpan = function (props) {
|
|
|
9899
9976
|
"use strict";
|
|
9900
9977
|
__webpack_require__.r(__webpack_exports__);
|
|
9901
9978
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9902
|
-
/* harmony export */ "
|
|
9979
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
9903
9980
|
/* harmony export */ });
|
|
9904
9981
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9905
9982
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9946,7 +10023,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9946
10023
|
|
|
9947
10024
|
var strokeLinecap = "round";
|
|
9948
10025
|
var strokeLinejoin = "round";
|
|
9949
|
-
|
|
10026
|
+
var grayscale = {
|
|
9950
10027
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9951
10028
|
style: {
|
|
9952
10029
|
data: {
|
|
@@ -10161,7 +10238,8 @@ var strokeLinejoin = "round";
|
|
|
10161
10238
|
}
|
|
10162
10239
|
}
|
|
10163
10240
|
}, baseProps)
|
|
10164
|
-
}
|
|
10241
|
+
};
|
|
10242
|
+
//# sourceMappingURL=grayscale.js.map
|
|
10165
10243
|
|
|
10166
10244
|
/***/ }),
|
|
10167
10245
|
|
|
@@ -10174,7 +10252,7 @@ var strokeLinejoin = "round";
|
|
|
10174
10252
|
"use strict";
|
|
10175
10253
|
__webpack_require__.r(__webpack_exports__);
|
|
10176
10254
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10177
|
-
/* harmony export */ "
|
|
10255
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
10178
10256
|
/* harmony export */ });
|
|
10179
10257
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
10180
10258
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10231,7 +10309,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
10231
10309
|
var strokeDasharray = "10, 5";
|
|
10232
10310
|
var strokeLinecap = "round";
|
|
10233
10311
|
var strokeLinejoin = "round";
|
|
10234
|
-
|
|
10312
|
+
var material = {
|
|
10235
10313
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
10236
10314
|
style: {
|
|
10237
10315
|
data: {
|
|
@@ -10463,7 +10541,8 @@ var strokeLinejoin = "round";
|
|
|
10463
10541
|
}
|
|
10464
10542
|
}
|
|
10465
10543
|
}, baseProps)
|
|
10466
|
-
}
|
|
10544
|
+
};
|
|
10545
|
+
//# sourceMappingURL=material.js.map
|
|
10467
10546
|
|
|
10468
10547
|
/***/ }),
|
|
10469
10548
|
|
|
@@ -10476,16 +10555,18 @@ var strokeLinejoin = "round";
|
|
|
10476
10555
|
"use strict";
|
|
10477
10556
|
__webpack_require__.r(__webpack_exports__);
|
|
10478
10557
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10479
|
-
/* harmony export */ "
|
|
10558
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
10480
10559
|
/* harmony export */ });
|
|
10481
|
-
/* harmony import */ var
|
|
10482
|
-
/* harmony import */ var
|
|
10560
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
10561
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
10483
10562
|
|
|
10484
10563
|
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
grayscale:
|
|
10488
|
-
|
|
10564
|
+
|
|
10565
|
+
var VictoryTheme = {
|
|
10566
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
10567
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
10568
|
+
};
|
|
10569
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
10489
10570
|
|
|
10490
10571
|
/***/ }),
|
|
10491
10572
|
|
|
@@ -10498,33 +10579,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10498
10579
|
"use strict";
|
|
10499
10580
|
__webpack_require__.r(__webpack_exports__);
|
|
10500
10581
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10501
|
-
/* harmony export */ "
|
|
10582
|
+
/* harmony export */ "VictoryTransition": () => (/* binding */ VictoryTransition)
|
|
10502
10583
|
/* harmony export */ });
|
|
10503
|
-
/* harmony import */ var
|
|
10504
|
-
/* harmony import */ var
|
|
10505
|
-
/* harmony import */ var
|
|
10506
|
-
/* harmony import */ var
|
|
10507
|
-
/* harmony import */ var
|
|
10508
|
-
/* harmony import */ var
|
|
10509
|
-
/* harmony import */ var
|
|
10510
|
-
/* harmony import */ var
|
|
10511
|
-
/* harmony import */ var
|
|
10512
|
-
/* harmony import */ var
|
|
10513
|
-
/* harmony import */ var
|
|
10514
|
-
/* harmony import */ var
|
|
10515
|
-
/* harmony import */ var
|
|
10516
|
-
/* harmony import */ var
|
|
10517
|
-
/* harmony import */ var
|
|
10518
|
-
/* harmony import */ var
|
|
10519
|
-
/* harmony import */ var
|
|
10520
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10521
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_6__);
|
|
10522
|
-
|
|
10584
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
10585
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
10586
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
10587
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
|
|
10588
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10589
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
10590
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
10591
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
10592
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
10593
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
10594
|
+
/* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
|
|
10595
|
+
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
10596
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10597
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
10598
|
+
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
10599
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10600
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
10523
10601
|
|
|
10524
10602
|
|
|
10525
10603
|
|
|
10526
10604
|
|
|
10527
|
-
function _extends() { _extends = Object.assign
|
|
10605
|
+
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); }
|
|
10528
10606
|
|
|
10529
10607
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10530
10608
|
|
|
@@ -10534,7 +10612,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
10534
10612
|
|
|
10535
10613
|
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); }
|
|
10536
10614
|
|
|
10537
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
10615
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10538
10616
|
|
|
10539
10617
|
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); }; }
|
|
10540
10618
|
|
|
@@ -10544,10 +10622,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10544
10622
|
|
|
10545
10623
|
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; } }
|
|
10546
10624
|
|
|
10547
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10548
|
-
|
|
10549
|
-
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; }
|
|
10550
|
-
|
|
10625
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10551
10626
|
|
|
10552
10627
|
|
|
10553
10628
|
|
|
@@ -10568,6 +10643,9 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10568
10643
|
_classCallCheck(this, VictoryTransition);
|
|
10569
10644
|
|
|
10570
10645
|
_this = _super.call(this, props, context);
|
|
10646
|
+
_this.continuous = void 0;
|
|
10647
|
+
_this.timer = void 0;
|
|
10648
|
+
_this.transitionProps = void 0;
|
|
10571
10649
|
_this.state = {
|
|
10572
10650
|
nodesShouldLoad: false,
|
|
10573
10651
|
nodesDoneLoad: false
|
|
@@ -10575,7 +10653,6 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10575
10653
|
var child = _this.props.children;
|
|
10576
10654
|
var polar = child.props.polar;
|
|
10577
10655
|
_this.continuous = !polar && child.type && child.type.continuous === true;
|
|
10578
|
-
_this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
|
|
10579
10656
|
_this.timer = _this.context.transitionTimer;
|
|
10580
10657
|
return _this;
|
|
10581
10658
|
}
|
|
@@ -10592,7 +10669,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10592
10669
|
value: function shouldComponentUpdate(nextProps) {
|
|
10593
10670
|
var _this2 = this;
|
|
10594
10671
|
|
|
10595
|
-
if (!
|
|
10672
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
10596
10673
|
this.timer.bypassAnimation();
|
|
10597
10674
|
this.setState(this.getTransitionState(this.props, nextProps), function () {
|
|
10598
10675
|
return _this2.timer.resumeAnimation();
|
|
@@ -10621,10 +10698,10 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10621
10698
|
nextProps: nextProps
|
|
10622
10699
|
};
|
|
10623
10700
|
} else {
|
|
10624
|
-
var oldChildren =
|
|
10625
|
-
var nextChildren =
|
|
10701
|
+
var oldChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
|
|
10702
|
+
var nextChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(nextProps.children);
|
|
10626
10703
|
|
|
10627
|
-
var _Transitions$getIniti =
|
|
10704
|
+
var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getInitialTransitionState(oldChildren, nextChildren),
|
|
10628
10705
|
nodesWillExit = _Transitions$getIniti.nodesWillExit,
|
|
10629
10706
|
nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
|
|
10630
10707
|
childrenTransitions = _Transitions$getIniti.childrenTransitions,
|
|
@@ -10645,18 +10722,18 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10645
10722
|
value: function getDomainFromChildren(props, axis) {
|
|
10646
10723
|
var getChildDomains = function (children) {
|
|
10647
10724
|
return children.reduce(function (memo, child) {
|
|
10648
|
-
if (child.type &&
|
|
10725
|
+
if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getDomain)) {
|
|
10649
10726
|
var childDomain = child.props && child.type.getDomain(child.props, axis);
|
|
10650
10727
|
return childDomain ? memo.concat(childDomain) : memo;
|
|
10651
10728
|
} else if (child.props && child.props.children) {
|
|
10652
|
-
return memo.concat(getChildDomains(
|
|
10729
|
+
return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children)));
|
|
10653
10730
|
}
|
|
10654
10731
|
|
|
10655
10732
|
return memo;
|
|
10656
10733
|
}, []);
|
|
10657
10734
|
};
|
|
10658
10735
|
|
|
10659
|
-
var child =
|
|
10736
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
10660
10737
|
var childProps = child.props || {};
|
|
10661
10738
|
var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
|
|
10662
10739
|
|
|
@@ -10664,7 +10741,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10664
10741
|
return domain;
|
|
10665
10742
|
} else {
|
|
10666
10743
|
var childDomains = getChildDomains([child]);
|
|
10667
|
-
return childDomains.length === 0 ? [0, 1] : [
|
|
10744
|
+
return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMaxValue(childDomains)];
|
|
10668
10745
|
}
|
|
10669
10746
|
}
|
|
10670
10747
|
}, {
|
|
@@ -10679,10 +10756,12 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10679
10756
|
}, {
|
|
10680
10757
|
key: "pickDomainProps",
|
|
10681
10758
|
value: function pickDomainProps(props) {
|
|
10682
|
-
var
|
|
10759
|
+
var _props$animate;
|
|
10760
|
+
|
|
10761
|
+
var parentState = (_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.parentState;
|
|
10683
10762
|
|
|
10684
10763
|
if (parentState && parentState.nodesWillExit) {
|
|
10685
|
-
return this.
|
|
10764
|
+
return this.continuous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
|
|
10686
10765
|
}
|
|
10687
10766
|
|
|
10688
10767
|
return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
|
|
@@ -10691,7 +10770,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10691
10770
|
key: "getClipWidth",
|
|
10692
10771
|
value: function getClipWidth(props, child) {
|
|
10693
10772
|
var getDefaultClipWidth = function () {
|
|
10694
|
-
var range =
|
|
10773
|
+
var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(child.props, "x");
|
|
10695
10774
|
return range ? Math.abs(range[1] - range[0]) : props.width;
|
|
10696
10775
|
};
|
|
10697
10776
|
|
|
@@ -10701,13 +10780,14 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10701
10780
|
}, {
|
|
10702
10781
|
key: "render",
|
|
10703
10782
|
value: function render() {
|
|
10704
|
-
var
|
|
10783
|
+
var _this$props$animate,
|
|
10784
|
+
_this3 = this;
|
|
10705
10785
|
|
|
10706
10786
|
var props = this.pickProps();
|
|
10707
|
-
var getTransitionProps =
|
|
10787
|
+
var getTransitionProps = (_this$props$animate = this.props.animate) !== null && _this$props$animate !== void 0 && _this$props$animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, function (newState) {
|
|
10708
10788
|
return _this3.setState(newState);
|
|
10709
10789
|
});
|
|
10710
|
-
var child =
|
|
10790
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
10711
10791
|
var transitionProps = getTransitionProps(child);
|
|
10712
10792
|
this.transitionProps = transitionProps;
|
|
10713
10793
|
var domain = {
|
|
@@ -10716,29 +10796,29 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10716
10796
|
};
|
|
10717
10797
|
var clipWidth = this.getClipWidth(props, child);
|
|
10718
10798
|
|
|
10719
|
-
var combinedProps =
|
|
10799
|
+
var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10720
10800
|
domain: domain,
|
|
10721
10801
|
clipWidth: clipWidth
|
|
10722
10802
|
}, transitionProps, child.props);
|
|
10723
10803
|
|
|
10724
10804
|
var animationWhitelist = props.animationWhitelist || [];
|
|
10725
10805
|
var whitelist = animationWhitelist.concat(["clipWidth"]);
|
|
10726
|
-
var propsToAnimate = whitelist.length ?
|
|
10727
|
-
return /*#__PURE__*/
|
|
10806
|
+
var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
|
|
10807
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
|
|
10728
10808
|
data: propsToAnimate
|
|
10729
10809
|
}), function (newProps) {
|
|
10730
10810
|
if (child.props.groupComponent) {
|
|
10731
|
-
var groupComponent = _this3.continuous ? /*#__PURE__*/
|
|
10811
|
+
var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child.props.groupComponent, {
|
|
10732
10812
|
clipWidth: newProps.clipWidth || 0
|
|
10733
10813
|
}) : child.props.groupComponent;
|
|
10734
|
-
return /*#__PURE__*/
|
|
10814
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10735
10815
|
animate: null,
|
|
10736
10816
|
animating: true,
|
|
10737
10817
|
groupComponent: groupComponent
|
|
10738
10818
|
}, newProps, combinedProps));
|
|
10739
10819
|
}
|
|
10740
10820
|
|
|
10741
|
-
return /*#__PURE__*/
|
|
10821
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10742
10822
|
animate: null,
|
|
10743
10823
|
animating: true
|
|
10744
10824
|
}, newProps, combinedProps));
|
|
@@ -10747,19 +10827,15 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10747
10827
|
}]);
|
|
10748
10828
|
|
|
10749
10829
|
return VictoryTransition;
|
|
10750
|
-
}((
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
_defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]);
|
|
10761
|
-
|
|
10762
|
-
|
|
10830
|
+
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
10831
|
+
VictoryTransition.displayName = "VictoryTransition";
|
|
10832
|
+
VictoryTransition.propTypes = {
|
|
10833
|
+
animate: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)]),
|
|
10834
|
+
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
10835
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
10836
|
+
};
|
|
10837
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
10838
|
+
//# sourceMappingURL=victory-transition.js.map
|
|
10763
10839
|
|
|
10764
10840
|
/***/ }),
|
|
10765
10841
|
|
|
@@ -10772,33 +10848,32 @@ _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__W
|
|
|
10772
10848
|
"use strict";
|
|
10773
10849
|
__webpack_require__.r(__webpack_exports__);
|
|
10774
10850
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10775
|
-
/* harmony export */ "
|
|
10851
|
+
/* harmony export */ "addEvents": () => (/* binding */ addEvents)
|
|
10776
10852
|
/* harmony export */ });
|
|
10777
|
-
/* harmony import */ var
|
|
10778
|
-
/* harmony import */ var
|
|
10779
|
-
/* harmony import */ var
|
|
10780
|
-
/* harmony import */ var
|
|
10781
|
-
/* harmony import */ var
|
|
10782
|
-
/* harmony import */ var
|
|
10783
|
-
/* harmony import */ var
|
|
10784
|
-
/* harmony import */ var
|
|
10785
|
-
/* harmony import */ var
|
|
10786
|
-
/* harmony import */ var
|
|
10787
|
-
/* harmony import */ var
|
|
10788
|
-
/* harmony import */ var
|
|
10789
|
-
/* harmony import */ var
|
|
10790
|
-
/* harmony import */ var
|
|
10791
|
-
/* harmony import */ var
|
|
10792
|
-
/* harmony import */ var
|
|
10793
|
-
/* harmony import */ var
|
|
10794
|
-
/* harmony import */ var
|
|
10853
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
10854
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
10855
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
10856
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
10857
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10858
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
|
|
10859
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
|
|
10860
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
|
|
10861
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
10862
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
|
|
10863
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
10864
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
|
|
10865
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
|
|
10866
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
|
|
10867
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10868
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
|
|
10869
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
10870
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
|
|
10795
10871
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
|
|
10796
10872
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
|
10797
10873
|
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
10798
10874
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10799
10875
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_10__);
|
|
10800
10876
|
/* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js");
|
|
10801
|
-
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
10802
10877
|
|
|
10803
10878
|
|
|
10804
10879
|
|
|
@@ -10829,7 +10904,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
10829
10904
|
|
|
10830
10905
|
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); }
|
|
10831
10906
|
|
|
10832
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
10907
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10833
10908
|
|
|
10834
10909
|
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); }; }
|
|
10835
10910
|
|
|
@@ -10839,7 +10914,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10839
10914
|
|
|
10840
10915
|
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; } }
|
|
10841
10916
|
|
|
10842
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10917
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10843
10918
|
|
|
10844
10919
|
/*global window:false */
|
|
10845
10920
|
|
|
@@ -10847,9 +10922,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10847
10922
|
|
|
10848
10923
|
|
|
10849
10924
|
|
|
10850
|
-
|
|
10925
|
+
// DISCLAIMER:
|
|
10926
|
+
// This file is not currently tested, and it is first on the list of files
|
|
10927
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
10928
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
10851
10929
|
var datumHasXandY = function (datum) {
|
|
10852
|
-
return !
|
|
10930
|
+
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
|
|
10853
10931
|
}; // used for checking state changes. Expected components can be passed in via options
|
|
10854
10932
|
|
|
10855
10933
|
|
|
@@ -10861,44 +10939,45 @@ var defaultComponents = [{
|
|
|
10861
10939
|
}, {
|
|
10862
10940
|
name: "labels"
|
|
10863
10941
|
}];
|
|
10864
|
-
|
|
10865
|
-
|
|
10866
|
-
_inherits(addEvents, _WrappedComponent);
|
|
10942
|
+
function addEvents(WrappedComponent) {
|
|
10943
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10867
10944
|
|
|
10868
|
-
|
|
10945
|
+
// @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
|
|
10946
|
+
var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
|
|
10947
|
+
_inherits(AddEventsMixin, _WrappedComponent);
|
|
10869
10948
|
|
|
10870
|
-
|
|
10949
|
+
var _super = _createSuper(AddEventsMixin);
|
|
10950
|
+
|
|
10951
|
+
function AddEventsMixin(props) {
|
|
10871
10952
|
var _this;
|
|
10872
10953
|
|
|
10873
|
-
_classCallCheck(this,
|
|
10954
|
+
_classCallCheck(this, AddEventsMixin);
|
|
10874
10955
|
|
|
10875
10956
|
_this = _super.call(this, props);
|
|
10876
|
-
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10877
|
-
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
10878
10957
|
_this.state = {};
|
|
10958
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
10959
|
+
_this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10879
10960
|
|
|
10880
10961
|
_this.getEvents = function (p, target, eventKey) {
|
|
10881
|
-
return
|
|
10962
|
+
return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
|
|
10882
10963
|
};
|
|
10883
10964
|
|
|
10884
|
-
_this.
|
|
10885
|
-
|
|
10886
|
-
var calculatedValues = _this.getCalculatedValues(props);
|
|
10887
|
-
|
|
10888
|
-
_this.cacheValues(calculatedValues);
|
|
10889
|
-
|
|
10890
|
-
_this.externalMutations = _this.getExternalMutations(props);
|
|
10891
|
-
_this.calculatedState = _this.getStateChanges(props);
|
|
10965
|
+
_this.externalMutations = _this.getExternalMutations(_this.props);
|
|
10966
|
+
_this.calculatedState = _this.getStateChanges(_this.props);
|
|
10892
10967
|
_this.globalEvents = {};
|
|
10893
10968
|
_this.prevGlobalEventKeys = [];
|
|
10894
10969
|
_this.boundGlobalEvents = {};
|
|
10970
|
+
|
|
10971
|
+
_this.cacheValues(_this.getCalculatedValues(props));
|
|
10972
|
+
|
|
10895
10973
|
return _this;
|
|
10896
10974
|
}
|
|
10897
10975
|
|
|
10898
|
-
_createClass(
|
|
10976
|
+
_createClass(AddEventsMixin, [{
|
|
10899
10977
|
key: "shouldComponentUpdate",
|
|
10900
10978
|
value: function shouldComponentUpdate(nextProps) {
|
|
10901
|
-
var externalMutations = this.getExternalMutations(nextProps);
|
|
10979
|
+
var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
|
|
10980
|
+
|
|
10902
10981
|
var animating = this.props.animating || this.props.animate;
|
|
10903
10982
|
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
10904
10983
|
|
|
@@ -10928,7 +11007,7 @@ var defaultComponents = [{
|
|
|
10928
11007
|
value: function componentDidMount() {
|
|
10929
11008
|
var _this2 = this;
|
|
10930
11009
|
|
|
10931
|
-
var globalEventKeys =
|
|
11010
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10932
11011
|
|
|
10933
11012
|
globalEventKeys.forEach(function (key) {
|
|
10934
11013
|
return _this2.addGlobalListener(key);
|
|
@@ -10943,15 +11022,15 @@ var defaultComponents = [{
|
|
|
10943
11022
|
var calculatedState = this.getStateChanges(prevProps);
|
|
10944
11023
|
this.calculatedState = calculatedState;
|
|
10945
11024
|
|
|
10946
|
-
var globalEventKeys =
|
|
11025
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10947
11026
|
|
|
10948
|
-
var removedGlobalEventKeys =
|
|
11027
|
+
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
10949
11028
|
|
|
10950
11029
|
removedGlobalEventKeys.forEach(function (key) {
|
|
10951
11030
|
return _this3.removeGlobalListener(key);
|
|
10952
11031
|
});
|
|
10953
11032
|
|
|
10954
|
-
var addedGlobalEventKeys =
|
|
11033
|
+
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
10955
11034
|
|
|
10956
11035
|
addedGlobalEventKeys.forEach(function (key) {
|
|
10957
11036
|
return _this3.addGlobalListener(key);
|
|
@@ -10997,12 +11076,11 @@ var defaultComponents = [{
|
|
|
10997
11076
|
}
|
|
10998
11077
|
|
|
10999
11078
|
var getState = function (key, type) {
|
|
11000
|
-
var result =
|
|
11079
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
11001
11080
|
|
|
11002
|
-
return
|
|
11081
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
|
|
11003
11082
|
};
|
|
11004
11083
|
|
|
11005
|
-
options = options || {};
|
|
11006
11084
|
var components = options.components || defaultComponents;
|
|
11007
11085
|
var stateChanges = components.map(function (component) {
|
|
11008
11086
|
if (!props.standalone && component.name === "parent") {
|
|
@@ -11019,9 +11097,9 @@ var defaultComponents = [{
|
|
|
11019
11097
|
}, {
|
|
11020
11098
|
key: "applyExternalMutations",
|
|
11021
11099
|
value: function applyExternalMutations(props, externalMutations) {
|
|
11022
|
-
if (!
|
|
11100
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
|
|
11023
11101
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
11024
|
-
memo =
|
|
11102
|
+
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
11025
11103
|
return memo;
|
|
11026
11104
|
}, []);
|
|
11027
11105
|
var compiledCallbacks = callbacks.length ? function () {
|
|
@@ -11038,12 +11116,12 @@ var defaultComponents = [{
|
|
|
11038
11116
|
var sharedEvents = props.sharedEvents;
|
|
11039
11117
|
var components = WrappedComponent.expectedComponents;
|
|
11040
11118
|
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
11041
|
-
var getSharedEventState = sharedEvents &&
|
|
11119
|
+
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
11042
11120
|
return undefined;
|
|
11043
11121
|
};
|
|
11044
11122
|
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
11045
11123
|
|
|
11046
|
-
var dataKeys =
|
|
11124
|
+
var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
|
|
11047
11125
|
return key !== "parent";
|
|
11048
11126
|
});
|
|
11049
11127
|
|
|
@@ -11063,32 +11141,32 @@ var defaultComponents = [{
|
|
|
11063
11141
|
value: function getExternalMutations(props) {
|
|
11064
11142
|
var sharedEvents = props.sharedEvents,
|
|
11065
11143
|
externalEventMutations = props.externalEventMutations;
|
|
11066
|
-
return
|
|
11144
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
11067
11145
|
}
|
|
11068
11146
|
}, {
|
|
11069
11147
|
key: "cacheValues",
|
|
11070
11148
|
value: function cacheValues(obj) {
|
|
11071
11149
|
var _this7 = this;
|
|
11072
11150
|
|
|
11073
|
-
|
|
11151
|
+
lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
|
|
11074
11152
|
_this7[key] = obj[key];
|
|
11075
11153
|
});
|
|
11076
11154
|
}
|
|
11077
11155
|
}, {
|
|
11078
11156
|
key: "getBaseProps",
|
|
11079
11157
|
value: function getBaseProps(props, getSharedEventState) {
|
|
11080
|
-
getSharedEventState = getSharedEventState || this.getSharedEventState;
|
|
11158
|
+
getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
|
|
11081
11159
|
var sharedParentState = getSharedEventState("parent", "parent");
|
|
11082
11160
|
var parentState = this.getEventState("parent", "parent");
|
|
11083
11161
|
|
|
11084
|
-
var baseParentProps =
|
|
11162
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
|
|
11085
11163
|
|
|
11086
11164
|
var parentPropsList = baseParentProps.parentControlledProps;
|
|
11087
|
-
var parentProps = parentPropsList ?
|
|
11165
|
+
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
|
|
11088
11166
|
|
|
11089
|
-
var modifiedProps =
|
|
11167
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
|
|
11090
11168
|
|
|
11091
|
-
return
|
|
11169
|
+
return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
11092
11170
|
}
|
|
11093
11171
|
}, {
|
|
11094
11172
|
key: "getAllEvents",
|
|
@@ -11116,21 +11194,21 @@ var defaultComponents = [{
|
|
|
11116
11194
|
if (this.hasEvents) {
|
|
11117
11195
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
11118
11196
|
|
|
11119
|
-
var componentProps =
|
|
11197
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
11120
11198
|
index: index,
|
|
11121
11199
|
key: id
|
|
11122
11200
|
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
11123
11201
|
id: id
|
|
11124
11202
|
});
|
|
11125
11203
|
|
|
11126
|
-
var events =
|
|
11204
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
11127
11205
|
|
|
11128
|
-
return
|
|
11206
|
+
return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
|
|
11129
11207
|
events: events
|
|
11130
11208
|
});
|
|
11131
11209
|
}
|
|
11132
11210
|
|
|
11133
|
-
return
|
|
11211
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
11134
11212
|
index: index,
|
|
11135
11213
|
key: id
|
|
11136
11214
|
}, component.props, baseProps, {
|
|
@@ -11153,11 +11231,14 @@ var defaultComponents = [{
|
|
|
11153
11231
|
}, {
|
|
11154
11232
|
key: "animateComponent",
|
|
11155
11233
|
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
11156
|
-
var
|
|
11157
|
-
|
|
11234
|
+
var _props$animate;
|
|
11235
|
+
|
|
11236
|
+
var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
|
|
11237
|
+
var Comp = this.constructor;
|
|
11238
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
|
|
11158
11239
|
animate: props.animate,
|
|
11159
11240
|
animationWhitelist: animationWhitelist
|
|
11160
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(
|
|
11241
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
|
|
11161
11242
|
} // Used by `VictoryLine` and `VictoryArea`
|
|
11162
11243
|
|
|
11163
11244
|
}, {
|
|
@@ -11169,7 +11250,7 @@ var defaultComponents = [{
|
|
|
11169
11250
|
labelComponent = props.labelComponent,
|
|
11170
11251
|
groupComponent = props.groupComponent;
|
|
11171
11252
|
|
|
11172
|
-
var dataKeys =
|
|
11253
|
+
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
|
|
11173
11254
|
|
|
11174
11255
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
11175
11256
|
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
@@ -11193,7 +11274,6 @@ var defaultComponents = [{
|
|
|
11193
11274
|
var dataComponent = props.dataComponent,
|
|
11194
11275
|
labelComponent = props.labelComponent,
|
|
11195
11276
|
groupComponent = props.groupComponent;
|
|
11196
|
-
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__.getSafeUserProps(props);
|
|
11197
11277
|
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
11198
11278
|
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
11199
11279
|
|
|
@@ -11213,14 +11293,16 @@ var defaultComponents = [{
|
|
|
11213
11293
|
return undefined;
|
|
11214
11294
|
}).filter(Boolean);
|
|
11215
11295
|
var children = [].concat(_toConsumableArray(dataComponents), _toConsumableArray(labelComponents));
|
|
11216
|
-
|
|
11217
|
-
return this.renderContainer(group, children);
|
|
11296
|
+
return this.renderContainer(groupComponent, children);
|
|
11218
11297
|
}
|
|
11219
11298
|
}]);
|
|
11220
11299
|
|
|
11221
|
-
return
|
|
11300
|
+
return AddEventsMixin;
|
|
11222
11301
|
}(WrappedComponent);
|
|
11223
|
-
|
|
11302
|
+
|
|
11303
|
+
return AddEventsMixin;
|
|
11304
|
+
}
|
|
11305
|
+
//# sourceMappingURL=add-events.js.map
|
|
11224
11306
|
|
|
11225
11307
|
/***/ }),
|
|
11226
11308
|
|
|
@@ -11233,14 +11315,14 @@ var defaultComponents = [{
|
|
|
11233
11315
|
"use strict";
|
|
11234
11316
|
__webpack_require__.r(__webpack_exports__);
|
|
11235
11317
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11236
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
11237
11318
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
11238
11319
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
11239
11320
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
11240
|
-
/* harmony export */ "
|
|
11241
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
11321
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
11242
11322
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
11243
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
11323
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
11324
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
11325
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
11244
11326
|
/* harmony export */ });
|
|
11245
11327
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
11246
11328
|
|
|
@@ -11254,9 +11336,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11254
11336
|
|
|
11255
11337
|
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; }
|
|
11256
11338
|
|
|
11257
|
-
/* eslint-disable func-style */
|
|
11258
|
-
|
|
11259
|
-
/* eslint-disable no-use-before-define */
|
|
11260
11339
|
function isNonEmptyArray(collection) {
|
|
11261
11340
|
return Array.isArray(collection) && collection.length > 0;
|
|
11262
11341
|
}
|
|
@@ -11295,7 +11374,8 @@ function getMaxValue(arr) {
|
|
|
11295
11374
|
}
|
|
11296
11375
|
|
|
11297
11376
|
var array = arr.concat(values);
|
|
11298
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
11377
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
11378
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
11299
11379
|
}
|
|
11300
11380
|
function getMinValue(arr) {
|
|
11301
11381
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -11303,8 +11383,10 @@ function getMinValue(arr) {
|
|
|
11303
11383
|
}
|
|
11304
11384
|
|
|
11305
11385
|
var array = arr.concat(values);
|
|
11306
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
11386
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
11387
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
11307
11388
|
}
|
|
11389
|
+
//# sourceMappingURL=collection.js.map
|
|
11308
11390
|
|
|
11309
11391
|
/***/ }),
|
|
11310
11392
|
|
|
@@ -11317,9 +11399,7 @@ function getMinValue(arr) {
|
|
|
11317
11399
|
"use strict";
|
|
11318
11400
|
__webpack_require__.r(__webpack_exports__);
|
|
11319
11401
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11320
|
-
/* harmony export */ "
|
|
11321
|
-
/* harmony export */ "baseProps": () => (/* binding */ baseProps),
|
|
11322
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
11402
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
11323
11403
|
/* harmony export */ });
|
|
11324
11404
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11325
11405
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11327,26 +11407,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11327
11407
|
|
|
11328
11408
|
|
|
11329
11409
|
var dataProps = {
|
|
11410
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11330
11411
|
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({
|
|
11331
11412
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
11332
11413
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
11333
11414
|
})]),
|
|
11415
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11334
11416
|
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)]),
|
|
11335
11417
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11336
11418
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11337
11419
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11338
11420
|
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)]),
|
|
11339
11421
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11340
|
-
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))]),
|
|
11422
|
+
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))]),
|
|
11341
11423
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
11342
11424
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11343
11425
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11344
11426
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11345
11427
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11346
11428
|
}),
|
|
11347
|
-
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))]),
|
|
11348
|
-
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))]),
|
|
11349
|
-
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))])
|
|
11429
|
+
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))]),
|
|
11430
|
+
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))]),
|
|
11431
|
+
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))])
|
|
11350
11432
|
};
|
|
11351
11433
|
var baseProps = {
|
|
11352
11434
|
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)]),
|
|
@@ -11355,14 +11437,17 @@ var baseProps = {
|
|
|
11355
11437
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
11356
11438
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
11357
11439
|
})]),
|
|
11440
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11358
11441
|
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({
|
|
11359
11442
|
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)]),
|
|
11360
11443
|
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)])
|
|
11361
11444
|
})]),
|
|
11445
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11362
11446
|
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({
|
|
11363
11447
|
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)]),
|
|
11364
11448
|
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)])
|
|
11365
11449
|
})]),
|
|
11450
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11366
11451
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11367
11452
|
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))]),
|
|
11368
11453
|
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))])
|
|
@@ -11373,20 +11458,23 @@ var baseProps = {
|
|
|
11373
11458
|
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)]),
|
|
11374
11459
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11375
11460
|
})),
|
|
11461
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11376
11462
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11377
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
11463
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11378
11464
|
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)]),
|
|
11379
11465
|
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)]),
|
|
11380
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
11466
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11381
11467
|
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)])
|
|
11382
11468
|
})),
|
|
11383
11469
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11384
11470
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11385
11471
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
11472
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11386
11473
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11387
11474
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11388
11475
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
11389
11476
|
}),
|
|
11477
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11390
11478
|
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({
|
|
11391
11479
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11392
11480
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -11395,17 +11483,19 @@ var baseProps = {
|
|
|
11395
11483
|
})]),
|
|
11396
11484
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11397
11485
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11398
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
11399
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
11486
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
11487
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
11400
11488
|
})]),
|
|
11401
11489
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11402
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
11403
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
11490
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
11491
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
11404
11492
|
})]),
|
|
11493
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11405
11494
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11406
11495
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
11407
11496
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
11408
11497
|
}),
|
|
11498
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11409
11499
|
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({
|
|
11410
11500
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
11411
11501
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -11425,6 +11515,7 @@ var primitiveProps = {
|
|
|
11425
11515
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11426
11516
|
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)]),
|
|
11427
11517
|
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)]),
|
|
11518
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11428
11519
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11429
11520
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11430
11521
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -11440,6 +11531,12 @@ var primitiveProps = {
|
|
|
11440
11531
|
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)]),
|
|
11441
11532
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
11442
11533
|
};
|
|
11534
|
+
var CommonProps = {
|
|
11535
|
+
dataProps: dataProps,
|
|
11536
|
+
baseProps: baseProps,
|
|
11537
|
+
primitiveProps: primitiveProps
|
|
11538
|
+
};
|
|
11539
|
+
//# sourceMappingURL=common-props.js.map
|
|
11443
11540
|
|
|
11444
11541
|
/***/ }),
|
|
11445
11542
|
|
|
@@ -11452,10 +11549,10 @@ var primitiveProps = {
|
|
|
11452
11549
|
"use strict";
|
|
11453
11550
|
__webpack_require__.r(__webpack_exports__);
|
|
11454
11551
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11455
|
-
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
11456
11552
|
/* harmony export */ "createStringMap": () => (/* binding */ createStringMap),
|
|
11457
11553
|
/* harmony export */ "downsample": () => (/* binding */ downsample),
|
|
11458
11554
|
/* harmony export */ "formatData": () => (/* binding */ formatData),
|
|
11555
|
+
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
11459
11556
|
/* harmony export */ "generateData": () => (/* binding */ generateData),
|
|
11460
11557
|
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
11461
11558
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
@@ -11522,8 +11619,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11522
11619
|
|
|
11523
11620
|
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; }
|
|
11524
11621
|
|
|
11525
|
-
/* eslint-disable func-style */
|
|
11526
|
-
|
|
11527
11622
|
/* eslint-disable no-use-before-define */
|
|
11528
11623
|
|
|
11529
11624
|
|
|
@@ -11955,6 +12050,7 @@ function isDataComponent(component) {
|
|
|
11955
12050
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
11956
12051
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
11957
12052
|
}
|
|
12053
|
+
//# sourceMappingURL=data.js.map
|
|
11958
12054
|
|
|
11959
12055
|
/***/ }),
|
|
11960
12056
|
|
|
@@ -12017,8 +12113,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
12017
12113
|
|
|
12018
12114
|
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; }
|
|
12019
12115
|
|
|
12020
|
-
/* eslint-disable func-style */
|
|
12021
|
-
|
|
12022
12116
|
/* eslint-disable no-use-before-define */
|
|
12023
12117
|
|
|
12024
12118
|
|
|
@@ -12058,8 +12152,9 @@ function getDomainPadding(props, axis) {
|
|
|
12058
12152
|
}
|
|
12059
12153
|
|
|
12060
12154
|
function getFlatData(dataset, axis) {
|
|
12155
|
+
var axisKey = "_".concat(axis);
|
|
12061
12156
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
12062
|
-
return datum[
|
|
12157
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
12063
12158
|
});
|
|
12064
12159
|
}
|
|
12065
12160
|
|
|
@@ -12124,7 +12219,9 @@ function padDomain(domain, props, axis) {
|
|
|
12124
12219
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
12125
12220
|
// Naive initial padding calculation
|
|
12126
12221
|
var initialPadding = {
|
|
12222
|
+
// @ts-expect-error `max/min` might be dates
|
|
12127
12223
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
12224
|
+
// @ts-expect-error `max/min` might be dates
|
|
12128
12225
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
12129
12226
|
}; // Adjust the domain by the initial padding
|
|
12130
12227
|
|
|
@@ -12409,6 +12506,7 @@ function isDomainComponent(component) {
|
|
|
12409
12506
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
12410
12507
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
12411
12508
|
}
|
|
12509
|
+
//# sourceMappingURL=domain.js.map
|
|
12412
12510
|
|
|
12413
12511
|
/***/ }),
|
|
12414
12512
|
|
|
@@ -12421,18 +12519,18 @@ function isDomainComponent(component) {
|
|
|
12421
12519
|
"use strict";
|
|
12422
12520
|
__webpack_require__.r(__webpack_exports__);
|
|
12423
12521
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12424
|
-
/* harmony export */ "
|
|
12425
|
-
/* harmony export */ "
|
|
12426
|
-
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
12522
|
+
/* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
|
|
12523
|
+
/* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
|
|
12427
12524
|
/* harmony export */ "getEventState": () => (/* binding */ getEventState),
|
|
12428
|
-
/* harmony export */ "
|
|
12429
|
-
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
12525
|
+
/* harmony export */ "getEvents": () => (/* binding */ getEvents),
|
|
12430
12526
|
/* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
|
|
12431
|
-
/* harmony export */ "
|
|
12527
|
+
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
12528
|
+
/* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
|
|
12432
12529
|
/* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
|
|
12433
12530
|
/* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
|
|
12434
|
-
/* harmony export */ "
|
|
12435
|
-
/* harmony export */ "
|
|
12531
|
+
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
12532
|
+
/* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
|
|
12533
|
+
/* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
|
|
12436
12534
|
/* harmony export */ });
|
|
12437
12535
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
12438
12536
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12477,15 +12575,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
12477
12575
|
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; }
|
|
12478
12576
|
|
|
12479
12577
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
12578
|
+
|
|
12480
12579
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
12481
12580
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
12482
12581
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
12483
12582
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
12484
12583
|
* (i.e. VictoryChart) in the case of shared events
|
|
12485
12584
|
*/
|
|
12486
|
-
// eslint-disable-next-line max-params
|
|
12487
|
-
|
|
12488
|
-
|
|
12585
|
+
// eslint-disable-next-line max-params
|
|
12586
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
12587
|
+
getScopedEvents) {
|
|
12489
12588
|
var _this = this;
|
|
12490
12589
|
|
|
12491
12590
|
// Returns all events that apply to a particular target element
|
|
@@ -12708,24 +12807,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
12708
12807
|
return memo;
|
|
12709
12808
|
}, {});
|
|
12710
12809
|
}
|
|
12711
|
-
/*
|
|
12810
|
+
/*
|
|
12811
|
+
* Returns a partially applied event handler for a specific target element
|
|
12712
12812
|
* This allows event handlers to have access to props controlling each element
|
|
12713
12813
|
*/
|
|
12714
12814
|
|
|
12715
12815
|
function getPartialEvents(events, eventKey, childProps) {
|
|
12716
|
-
|
|
12816
|
+
if (!events) return {};
|
|
12817
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
12717
12818
|
var appliedEvent = function (evt) {
|
|
12718
12819
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
12719
12820
|
};
|
|
12720
12821
|
|
|
12721
12822
|
memo[eventName] = appliedEvent;
|
|
12722
12823
|
return memo;
|
|
12723
|
-
}, {})
|
|
12824
|
+
}, {});
|
|
12724
12825
|
}
|
|
12826
|
+
|
|
12725
12827
|
/* Returns the property of the state object corresponding to event changes for
|
|
12726
12828
|
* a particular element
|
|
12727
12829
|
*/
|
|
12728
|
-
|
|
12830
|
+
// eslint-disable-next-line max-params
|
|
12729
12831
|
function getEventState(eventKey, namespace, childType) {
|
|
12730
12832
|
// Mandatory usage: `getEventState.bind(this)`
|
|
12731
12833
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -12910,6 +13012,7 @@ var emulateReactEvent = function (event) {
|
|
|
12910
13012
|
nativeEvent: event
|
|
12911
13013
|
});
|
|
12912
13014
|
};
|
|
13015
|
+
//# sourceMappingURL=events.js.map
|
|
12913
13016
|
|
|
12914
13017
|
/***/ }),
|
|
12915
13018
|
|
|
@@ -12922,25 +13025,25 @@ var emulateReactEvent = function (event) {
|
|
|
12922
13025
|
"use strict";
|
|
12923
13026
|
__webpack_require__.r(__webpack_exports__);
|
|
12924
13027
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12925
|
-
/* harmony export */ "
|
|
12926
|
-
/* harmony export */ "
|
|
12927
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
12928
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
12929
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
12930
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
12931
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
13028
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
13029
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
12932
13030
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
12933
13031
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
12934
|
-
/* harmony export */ "
|
|
12935
|
-
/* harmony export */ "
|
|
12936
|
-
/* harmony export */ "
|
|
13032
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
13033
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
13034
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
13035
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
12937
13036
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
13037
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
12938
13038
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
12939
|
-
/* harmony export */ "
|
|
13039
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
13040
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
13041
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
12940
13042
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
12941
|
-
/* harmony export */ "
|
|
13043
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
13044
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
12942
13045
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
12943
|
-
/* harmony export */ "
|
|
13046
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
12944
13047
|
/* harmony export */ });
|
|
12945
13048
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
12946
13049
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12963,8 +13066,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12963
13066
|
|
|
12964
13067
|
|
|
12965
13068
|
|
|
12966
|
-
/* eslint-disable func-style */
|
|
12967
|
-
|
|
12968
13069
|
/* eslint-disable no-use-before-define */
|
|
12969
13070
|
|
|
12970
13071
|
|
|
@@ -12993,7 +13094,7 @@ function getPolarRange(props, axis) {
|
|
|
12993
13094
|
|
|
12994
13095
|
/**
|
|
12995
13096
|
* creates an object with some keys excluded
|
|
12996
|
-
* replacement for lodash.omit for performance. does not
|
|
13097
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
12997
13098
|
* @param {Object} originalObject: created object will be based on this object
|
|
12998
13099
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
12999
13100
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -13006,6 +13107,7 @@ function omit(originalObject) {
|
|
|
13006
13107
|
var newObject = {};
|
|
13007
13108
|
|
|
13008
13109
|
for (var key in originalObject) {
|
|
13110
|
+
// @ts-expect-error String is not assignable to Key
|
|
13009
13111
|
if (ks.indexOf(key) >= 0) {
|
|
13010
13112
|
continue;
|
|
13011
13113
|
}
|
|
@@ -13238,7 +13340,9 @@ function reduceChildren(children, iteratee) {
|
|
|
13238
13340
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
13239
13341
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
13240
13342
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
13241
|
-
return
|
|
13343
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
13344
|
+
memo.concat(item)
|
|
13345
|
+
);
|
|
13242
13346
|
};
|
|
13243
13347
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
13244
13348
|
|
|
@@ -13282,7 +13386,7 @@ function reduceChildren(children, iteratee) {
|
|
|
13282
13386
|
/**
|
|
13283
13387
|
* @param {Object} props: the props object
|
|
13284
13388
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
13285
|
-
* children or nested children are
|
|
13389
|
+
* children or nested children are horizontal
|
|
13286
13390
|
*/
|
|
13287
13391
|
|
|
13288
13392
|
function isHorizontal(props) {
|
|
@@ -13305,6 +13409,7 @@ function isHorizontal(props) {
|
|
|
13305
13409
|
|
|
13306
13410
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
13307
13411
|
}
|
|
13412
|
+
//# sourceMappingURL=helpers.js.map
|
|
13308
13413
|
|
|
13309
13414
|
/***/ }),
|
|
13310
13415
|
|
|
@@ -13318,17 +13423,16 @@ function isHorizontal(props) {
|
|
|
13318
13423
|
__webpack_require__.r(__webpack_exports__);
|
|
13319
13424
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13320
13425
|
/* harmony export */ "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
|
|
13321
|
-
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
13322
13426
|
/* harmony export */ "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
|
|
13323
13427
|
/* harmony export */ "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
|
|
13324
|
-
/* harmony export */ "
|
|
13325
|
-
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
13428
|
+
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
13326
13429
|
/* harmony export */ "isImmutable": () => (/* binding */ isImmutable),
|
|
13430
|
+
/* harmony export */ "isIterable": () => (/* binding */ isIterable),
|
|
13327
13431
|
/* harmony export */ "isList": () => (/* binding */ isList),
|
|
13328
13432
|
/* harmony export */ "isMap": () => (/* binding */ isMap),
|
|
13433
|
+
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
13329
13434
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
13330
13435
|
/* harmony export */ });
|
|
13331
|
-
/* eslint-disable func-style */
|
|
13332
13436
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
13333
13437
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
13334
13438
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -13349,15 +13453,16 @@ function isMap(x) {
|
|
|
13349
13453
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
13350
13454
|
}
|
|
13351
13455
|
function shallowToJS(x, whitelist) {
|
|
13352
|
-
return isIterable(x) ? x.reduce(function (
|
|
13456
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
13353
13457
|
if (whitelist && whitelist[key]) {
|
|
13354
13458
|
curr = shallowToJS(curr);
|
|
13355
13459
|
}
|
|
13356
13460
|
|
|
13357
|
-
|
|
13358
|
-
return
|
|
13461
|
+
result[key] = curr;
|
|
13462
|
+
return result;
|
|
13359
13463
|
}, isList(x) ? [] : {}) : x;
|
|
13360
13464
|
}
|
|
13465
|
+
//# sourceMappingURL=immutable.js.map
|
|
13361
13466
|
|
|
13362
13467
|
/***/ }),
|
|
13363
13468
|
|
|
@@ -13370,20 +13475,18 @@ function shallowToJS(x, whitelist) {
|
|
|
13370
13475
|
"use strict";
|
|
13371
13476
|
__webpack_require__.r(__webpack_exports__);
|
|
13372
13477
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13373
|
-
/* harmony export */ "
|
|
13478
|
+
/* harmony export */ "getDegrees": () => (/* binding */ getDegrees),
|
|
13479
|
+
/* harmony export */ "getPolarAngle": () => (/* binding */ getPolarAngle),
|
|
13374
13480
|
/* harmony export */ "getPolarTextAnchor": () => (/* binding */ getPolarTextAnchor),
|
|
13375
13481
|
/* harmony export */ "getPolarVerticalAnchor": () => (/* binding */ getPolarVerticalAnchor),
|
|
13376
|
-
/* harmony export */ "
|
|
13377
|
-
/* harmony export */ "
|
|
13378
|
-
/* harmony export */ "getProps": () => (/* binding */ getProps)
|
|
13482
|
+
/* harmony export */ "getProps": () => (/* binding */ getProps),
|
|
13483
|
+
/* harmony export */ "getText": () => (/* binding */ getText)
|
|
13379
13484
|
/* harmony export */ });
|
|
13380
13485
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
13381
13486
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
13382
13487
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
13383
13488
|
|
|
13384
13489
|
|
|
13385
|
-
/* eslint-disable func-style */
|
|
13386
|
-
|
|
13387
13490
|
/* eslint-disable no-use-before-define */
|
|
13388
13491
|
|
|
13389
13492
|
|
|
@@ -13617,6 +13720,7 @@ function getProps(props, index) {
|
|
|
13617
13720
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
13618
13721
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
13619
13722
|
}
|
|
13723
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
13620
13724
|
|
|
13621
13725
|
/***/ }),
|
|
13622
13726
|
|
|
@@ -13635,7 +13739,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13635
13739
|
|
|
13636
13740
|
/* eslint-disable no-console */
|
|
13637
13741
|
// TODO: Use "warning" npm module like React is switching to.
|
|
13638
|
-
// eslint-disable-next-line func-style
|
|
13639
13742
|
function warn(message) {
|
|
13640
13743
|
if (true) {
|
|
13641
13744
|
if (console && console.warn) {
|
|
@@ -13643,6 +13746,7 @@ function warn(message) {
|
|
|
13643
13746
|
}
|
|
13644
13747
|
}
|
|
13645
13748
|
}
|
|
13749
|
+
//# sourceMappingURL=log.js.map
|
|
13646
13750
|
|
|
13647
13751
|
/***/ }),
|
|
13648
13752
|
|
|
@@ -13655,27 +13759,25 @@ function warn(message) {
|
|
|
13655
13759
|
"use strict";
|
|
13656
13760
|
__webpack_require__.r(__webpack_exports__);
|
|
13657
13761
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13658
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
13659
13762
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
13660
|
-
/* harmony export */ "
|
|
13661
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
13662
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
13763
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
13663
13764
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
13664
|
-
/* harmony export */ "
|
|
13765
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
13665
13766
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
13767
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
13666
13768
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
13667
|
-
/* harmony export */ "
|
|
13769
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
13770
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
13771
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
13668
13772
|
/* harmony export */ });
|
|
13669
13773
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
13670
13774
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
13671
13775
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
13672
13776
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
13673
|
-
/* harmony import */ var
|
|
13674
|
-
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
13675
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
13777
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
13676
13778
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
13677
13779
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
13678
|
-
|
|
13780
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
13679
13781
|
|
|
13680
13782
|
|
|
13681
13783
|
|
|
@@ -13683,6 +13785,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13683
13785
|
|
|
13684
13786
|
|
|
13685
13787
|
|
|
13788
|
+
|
|
13789
|
+
|
|
13686
13790
|
/**
|
|
13687
13791
|
* Return a new validator based on `validator` but with the option to chain
|
|
13688
13792
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -13690,30 +13794,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13690
13794
|
* @param {Function} validator Validation function.
|
|
13691
13795
|
* @returns {Function} Validator with `isRequired` option.
|
|
13692
13796
|
*/
|
|
13693
|
-
|
|
13694
13797
|
var makeChainable = function (validator) {
|
|
13695
|
-
|
|
13696
|
-
|
|
13697
|
-
|
|
13798
|
+
var createChainable = function (isRequired) {
|
|
13799
|
+
return function (props, propName, componentName) {
|
|
13800
|
+
var value = props[propName];
|
|
13698
13801
|
|
|
13699
|
-
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
13802
|
+
if (value === undefined || value === null) {
|
|
13803
|
+
if (isRequired) {
|
|
13804
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
13805
|
+
}
|
|
13703
13806
|
|
|
13704
|
-
|
|
13705
|
-
|
|
13807
|
+
return null;
|
|
13808
|
+
}
|
|
13706
13809
|
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
|
|
13810
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
13811
|
+
rest[_key - 3] = arguments[_key];
|
|
13812
|
+
}
|
|
13710
13813
|
|
|
13711
|
-
|
|
13814
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13815
|
+
};
|
|
13712
13816
|
};
|
|
13713
13817
|
|
|
13714
|
-
var chainable =
|
|
13715
|
-
|
|
13716
|
-
|
|
13818
|
+
var chainable = Object.assign(createChainable(false), {
|
|
13819
|
+
isRequired: createChainable(true)
|
|
13820
|
+
});
|
|
13717
13821
|
return chainable;
|
|
13718
13822
|
};
|
|
13719
13823
|
|
|
@@ -13743,7 +13847,7 @@ var getConstructor = function (value) {
|
|
|
13743
13847
|
};
|
|
13744
13848
|
/**
|
|
13745
13849
|
* Get the name of the constructor used to create `value`, using
|
|
13746
|
-
* `Object.
|
|
13850
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
13747
13851
|
* "null" or "undefined", respectively.
|
|
13748
13852
|
* @param {*} value Instance to return the constructor name of.
|
|
13749
13853
|
* @returns {String} Name of the constructor.
|
|
@@ -13773,10 +13877,11 @@ function deprecated(propType, explanation) {
|
|
|
13773
13877
|
var value = props[propName];
|
|
13774
13878
|
|
|
13775
13879
|
if (value !== null && value !== undefined) {
|
|
13776
|
-
|
|
13880
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
13777
13881
|
}
|
|
13778
13882
|
|
|
13779
|
-
|
|
13883
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
13884
|
+
return null;
|
|
13780
13885
|
};
|
|
13781
13886
|
}
|
|
13782
13887
|
/**
|
|
@@ -13795,7 +13900,7 @@ function allOfType(validators) {
|
|
|
13795
13900
|
|
|
13796
13901
|
return validators.reduce(function (result, validator) {
|
|
13797
13902
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13798
|
-
},
|
|
13903
|
+
}, null);
|
|
13799
13904
|
});
|
|
13800
13905
|
}
|
|
13801
13906
|
/**
|
|
@@ -13809,7 +13914,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
13809
13914
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
13810
13915
|
}
|
|
13811
13916
|
|
|
13812
|
-
return
|
|
13917
|
+
return null;
|
|
13813
13918
|
});
|
|
13814
13919
|
/**
|
|
13815
13920
|
* Check that the value is an integer.
|
|
@@ -13822,7 +13927,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
13822
13927
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
13823
13928
|
}
|
|
13824
13929
|
|
|
13825
|
-
return
|
|
13930
|
+
return null;
|
|
13826
13931
|
});
|
|
13827
13932
|
/**
|
|
13828
13933
|
* Check that the value is greater than zero.
|
|
@@ -13835,7 +13940,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
13835
13940
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
13836
13941
|
}
|
|
13837
13942
|
|
|
13838
|
-
return
|
|
13943
|
+
return null;
|
|
13839
13944
|
});
|
|
13840
13945
|
/**
|
|
13841
13946
|
* Check that the value is an Array of two unique values.
|
|
@@ -13848,32 +13953,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
13848
13953
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
13849
13954
|
}
|
|
13850
13955
|
|
|
13851
|
-
return
|
|
13956
|
+
return null;
|
|
13852
13957
|
});
|
|
13853
13958
|
/**
|
|
13854
13959
|
* Check that the value looks like a d3 `scale` function.
|
|
13855
13960
|
*/
|
|
13856
13961
|
|
|
13857
13962
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
13858
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13859
|
-
|
|
13860
|
-
var validScale = function (scl) {
|
|
13861
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
13862
|
-
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);
|
|
13863
|
-
} else if (typeof scl === "string") {
|
|
13864
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
13865
|
-
}
|
|
13866
|
-
|
|
13867
|
-
return false;
|
|
13868
|
-
};
|
|
13869
|
-
|
|
13870
13963
|
var value = props[propName];
|
|
13871
13964
|
|
|
13872
|
-
if (!validScale(value)) {
|
|
13965
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
13873
13966
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
13874
13967
|
}
|
|
13875
13968
|
|
|
13876
|
-
return
|
|
13969
|
+
return null;
|
|
13877
13970
|
});
|
|
13878
13971
|
/**
|
|
13879
13972
|
* Check that an array contains items of the same type.
|
|
@@ -13887,7 +13980,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
13887
13980
|
}
|
|
13888
13981
|
|
|
13889
13982
|
if (values.length < 2) {
|
|
13890
|
-
return
|
|
13983
|
+
return null;
|
|
13891
13984
|
}
|
|
13892
13985
|
|
|
13893
13986
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -13902,7 +13995,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
13902
13995
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
13903
13996
|
}
|
|
13904
13997
|
|
|
13905
|
-
return
|
|
13998
|
+
return null;
|
|
13906
13999
|
});
|
|
13907
14000
|
/**
|
|
13908
14001
|
* Check that array prop length matches props.data.length
|
|
@@ -13913,7 +14006,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
13913
14006
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
13914
14007
|
}
|
|
13915
14008
|
|
|
13916
|
-
return
|
|
14009
|
+
return null;
|
|
13917
14010
|
});
|
|
13918
14011
|
/**
|
|
13919
14012
|
* Check that the value is a regular expression
|
|
@@ -13924,8 +14017,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
13924
14017
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
13925
14018
|
}
|
|
13926
14019
|
|
|
13927
|
-
return
|
|
14020
|
+
return null;
|
|
13928
14021
|
});
|
|
14022
|
+
//# sourceMappingURL=prop-types.js.map
|
|
13929
14023
|
|
|
13930
14024
|
/***/ }),
|
|
13931
14025
|
|
|
@@ -13938,12 +14032,13 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
13938
14032
|
"use strict";
|
|
13939
14033
|
__webpack_require__.r(__webpack_exports__);
|
|
13940
14034
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13941
|
-
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
13942
14035
|
/* harmony export */ "getBaseScale": () => (/* binding */ getBaseScale),
|
|
13943
14036
|
/* harmony export */ "getDefaultScale": () => (/* binding */ getDefaultScale),
|
|
14037
|
+
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
13944
14038
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
13945
14039
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
13946
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
14040
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
14041
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
13947
14042
|
/* harmony export */ });
|
|
13948
14043
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
13949
14044
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -13961,8 +14056,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13961
14056
|
|
|
13962
14057
|
|
|
13963
14058
|
|
|
13964
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
14059
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13965
14060
|
|
|
14061
|
+
// Private Functions
|
|
13966
14062
|
function toNewName(scale) {
|
|
13967
14063
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
13968
14064
|
var capitalize = function (s) {
|
|
@@ -14032,7 +14128,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
14032
14128
|
|
|
14033
14129
|
|
|
14034
14130
|
function getScaleFromName(name) {
|
|
14035
|
-
|
|
14131
|
+
if (validScale(name)) {
|
|
14132
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
14133
|
+
|
|
14134
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
14135
|
+
}
|
|
14136
|
+
|
|
14137
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
14036
14138
|
}
|
|
14037
14139
|
function getBaseScale(props, axis) {
|
|
14038
14140
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -14042,7 +14144,7 @@ function getBaseScale(props, axis) {
|
|
|
14042
14144
|
}
|
|
14043
14145
|
|
|
14044
14146
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
14045
|
-
return
|
|
14147
|
+
return getScaleFromName(defaultScale);
|
|
14046
14148
|
}
|
|
14047
14149
|
function getDefaultScale() {
|
|
14048
14150
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -14055,7 +14157,7 @@ function getScaleFromProps(props, axis) {
|
|
|
14055
14157
|
var scale = props.scale[axis] || props.scale;
|
|
14056
14158
|
|
|
14057
14159
|
if (validScale(scale)) {
|
|
14058
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
14160
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
14059
14161
|
}
|
|
14060
14162
|
|
|
14061
14163
|
return undefined;
|
|
@@ -14090,6 +14192,7 @@ function getType(scale) {
|
|
|
14090
14192
|
})[0];
|
|
14091
14193
|
return scaleType ? scaleType.name : undefined;
|
|
14092
14194
|
}
|
|
14195
|
+
//# sourceMappingURL=scale.js.map
|
|
14093
14196
|
|
|
14094
14197
|
/***/ }),
|
|
14095
14198
|
|
|
@@ -14102,11 +14205,9 @@ function getType(scale) {
|
|
|
14102
14205
|
"use strict";
|
|
14103
14206
|
__webpack_require__.r(__webpack_exports__);
|
|
14104
14207
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14105
|
-
/* harmony export */ "
|
|
14106
|
-
/* harmony export */ "
|
|
14208
|
+
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
14209
|
+
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
14107
14210
|
/* harmony export */ });
|
|
14108
|
-
/* eslint-disable func-style */
|
|
14109
|
-
|
|
14110
14211
|
/**
|
|
14111
14212
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
14112
14213
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -14163,6 +14264,7 @@ function getColorScale(name) {
|
|
|
14163
14264
|
};
|
|
14164
14265
|
return name ? scales[name] : scales.grayscale;
|
|
14165
14266
|
}
|
|
14267
|
+
//# sourceMappingURL=style.js.map
|
|
14166
14268
|
|
|
14167
14269
|
/***/ }),
|
|
14168
14270
|
|
|
@@ -14175,9 +14277,9 @@ function getColorScale(name) {
|
|
|
14175
14277
|
"use strict";
|
|
14176
14278
|
__webpack_require__.r(__webpack_exports__);
|
|
14177
14279
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14178
|
-
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels),
|
|
14179
14280
|
/* harmony export */ "_approximateTextSizeInternal": () => (/* binding */ _approximateTextSizeInternal),
|
|
14180
|
-
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize)
|
|
14281
|
+
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize),
|
|
14282
|
+
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels)
|
|
14181
14283
|
/* harmony export */ });
|
|
14182
14284
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
14183
14285
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -14367,8 +14469,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
14367
14469
|
|
|
14368
14470
|
|
|
14369
14471
|
var convertLengthToPixels = function (length, fontSize) {
|
|
14370
|
-
var
|
|
14371
|
-
|
|
14472
|
+
var _length$match;
|
|
14473
|
+
|
|
14474
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
14475
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
14372
14476
|
var result;
|
|
14373
14477
|
|
|
14374
14478
|
if (!attribute) {
|
|
@@ -14434,9 +14538,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
14434
14538
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
14435
14539
|
return total + lineStyle.lineHeight * height;
|
|
14436
14540
|
}, 0);
|
|
14437
|
-
};
|
|
14438
|
-
|
|
14541
|
+
};
|
|
14439
14542
|
|
|
14543
|
+
// Stubbable implementation.
|
|
14440
14544
|
var _approximateTextSizeInternal = {
|
|
14441
14545
|
impl: function (text, style) {
|
|
14442
14546
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -14455,7 +14559,7 @@ var _approximateTextSizeInternal = {
|
|
|
14455
14559
|
};
|
|
14456
14560
|
/**
|
|
14457
14561
|
* Predict text size by font params.
|
|
14458
|
-
* @param {string} text Content for width calculation.
|
|
14562
|
+
* @param {string|string[]} text Content for width calculation.
|
|
14459
14563
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
14460
14564
|
* @param {string} style.fontFamily Text fontFamily.
|
|
14461
14565
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -14468,6 +14572,7 @@ var _approximateTextSizeInternal = {
|
|
|
14468
14572
|
var approximateTextSize = function (text, style) {
|
|
14469
14573
|
return _approximateTextSizeInternal.impl(text, style);
|
|
14470
14574
|
};
|
|
14575
|
+
//# sourceMappingURL=textsize.js.map
|
|
14471
14576
|
|
|
14472
14577
|
/***/ }),
|
|
14473
14578
|
|
|
@@ -14498,6 +14603,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
14498
14603
|
});
|
|
14499
14604
|
TimerContext.displayName = "TimerContext";
|
|
14500
14605
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
14606
|
+
//# sourceMappingURL=timer-context.js.map
|
|
14501
14607
|
|
|
14502
14608
|
/***/ }),
|
|
14503
14609
|
|
|
@@ -14523,11 +14629,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
14523
14629
|
|
|
14524
14630
|
var Timer = /*#__PURE__*/function () {
|
|
14525
14631
|
function Timer() {
|
|
14632
|
+
var _this = this;
|
|
14633
|
+
|
|
14526
14634
|
_classCallCheck(this, Timer);
|
|
14527
14635
|
|
|
14636
|
+
this.shouldAnimate = void 0;
|
|
14637
|
+
this.subscribers = void 0;
|
|
14638
|
+
this.activeSubscriptions = void 0;
|
|
14639
|
+
this.timer = void 0;
|
|
14640
|
+
|
|
14641
|
+
this.loop = function () {
|
|
14642
|
+
_this.subscribers.forEach(function (s) {
|
|
14643
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
14644
|
+
});
|
|
14645
|
+
};
|
|
14646
|
+
|
|
14528
14647
|
this.shouldAnimate = true;
|
|
14529
14648
|
this.subscribers = [];
|
|
14530
|
-
this.loop = this.loop.bind(this);
|
|
14531
14649
|
this.timer = null;
|
|
14532
14650
|
this.activeSubscriptions = 0;
|
|
14533
14651
|
}
|
|
@@ -14542,13 +14660,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
14542
14660
|
value: function resumeAnimation() {
|
|
14543
14661
|
this.shouldAnimate = true;
|
|
14544
14662
|
}
|
|
14545
|
-
}, {
|
|
14546
|
-
key: "loop",
|
|
14547
|
-
value: function loop() {
|
|
14548
|
-
this.subscribers.forEach(function (s) {
|
|
14549
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
14550
|
-
});
|
|
14551
|
-
}
|
|
14552
14663
|
}, {
|
|
14553
14664
|
key: "start",
|
|
14554
14665
|
value: function start() {
|
|
@@ -14595,6 +14706,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
14595
14706
|
}();
|
|
14596
14707
|
|
|
14597
14708
|
|
|
14709
|
+
//# sourceMappingURL=timer.js.map
|
|
14598
14710
|
|
|
14599
14711
|
/***/ }),
|
|
14600
14712
|
|
|
@@ -14685,7 +14797,7 @@ function getChildData(child) {
|
|
|
14685
14797
|
}
|
|
14686
14798
|
/**
|
|
14687
14799
|
* If a parent component has animation enabled, calculate the transitions
|
|
14688
|
-
* for any data of any child component that supports data transitions
|
|
14800
|
+
* for any data of any child component that supports data transitions.
|
|
14689
14801
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
14690
14802
|
* in the first set and not the second, in the second and not the first,
|
|
14691
14803
|
* or both.
|
|
@@ -14814,7 +14926,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
14814
14926
|
|
|
14815
14927
|
if (exitingNodes) {
|
|
14816
14928
|
// After the exit transition occurs, trigger the animations for
|
|
14817
|
-
// nodes that are neither exiting
|
|
14929
|
+
// nodes that are neither exiting nor entering.
|
|
14818
14930
|
animate.onEnd = cb;
|
|
14819
14931
|
var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.
|
|
14820
14932
|
|
|
@@ -14884,7 +14996,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
14884
14996
|
* and its index in the parent's children array.
|
|
14885
14997
|
*
|
|
14886
14998
|
* In particular, this will include an `animate` object that is set appropriately
|
|
14887
|
-
* so that each child will be
|
|
14999
|
+
* so that each child will be synchronized for each stage of a transition
|
|
14888
15000
|
* animation. It will also include a transformed `data` object, where each datum
|
|
14889
15001
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
14890
15002
|
* functions.
|
|
@@ -15029,6 +15141,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
15029
15141
|
};
|
|
15030
15142
|
};
|
|
15031
15143
|
}
|
|
15144
|
+
//# sourceMappingURL=transitions.js.map
|
|
15032
15145
|
|
|
15033
15146
|
/***/ }),
|
|
15034
15147
|
|
|
@@ -15041,8 +15154,11 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
15041
15154
|
"use strict";
|
|
15042
15155
|
__webpack_require__.r(__webpack_exports__);
|
|
15043
15156
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15044
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
15157
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
15158
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
15045
15159
|
/* harmony export */ });
|
|
15160
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15161
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15046
15162
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15047
15163
|
|
|
15048
15164
|
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."); }
|
|
@@ -15061,16 +15177,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
15061
15177
|
|
|
15062
15178
|
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; }
|
|
15063
15179
|
|
|
15180
|
+
|
|
15064
15181
|
/*
|
|
15065
15182
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
15066
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
15183
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
15067
15184
|
starts with these characters.
|
|
15068
15185
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
15069
15186
|
*/
|
|
15187
|
+
|
|
15070
15188
|
var USER_PROPS_SAFELIST = {
|
|
15071
15189
|
startsWith: ["data-", "aria-"],
|
|
15072
15190
|
exactMatch: []
|
|
15073
15191
|
};
|
|
15192
|
+
|
|
15074
15193
|
/**
|
|
15075
15194
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
15076
15195
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -15079,7 +15198,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
15079
15198
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
15080
15199
|
* otherwise
|
|
15081
15200
|
*/
|
|
15082
|
-
|
|
15083
15201
|
var doesPropStartWith = function (key) {
|
|
15084
15202
|
var startsWith = false;
|
|
15085
15203
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -15153,6 +15271,18 @@ var getSafeUserProps = function (props) {
|
|
|
15153
15271
|
return [key, getValue(value, props)];
|
|
15154
15272
|
}));
|
|
15155
15273
|
};
|
|
15274
|
+
/**
|
|
15275
|
+
* Wraps a component and adds safe user props
|
|
15276
|
+
*
|
|
15277
|
+
* @param {ReactElement} component: parent component
|
|
15278
|
+
* @param {Object} props: props to be filtered
|
|
15279
|
+
* @returns {ReactElement} modified component
|
|
15280
|
+
*/
|
|
15281
|
+
|
|
15282
|
+
var withSafeUserProps = function (component, props) {
|
|
15283
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
15284
|
+
};
|
|
15285
|
+
//# sourceMappingURL=user-props.js.map
|
|
15156
15286
|
|
|
15157
15287
|
/***/ }),
|
|
15158
15288
|
|
|
@@ -15283,8 +15413,8 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_react__;
|
|
|
15283
15413
|
"use strict";
|
|
15284
15414
|
__webpack_require__.r(__webpack_exports__);
|
|
15285
15415
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15286
|
-
/* harmony export */ "
|
|
15287
|
-
/* harmony export */ "
|
|
15416
|
+
/* harmony export */ "map": () => (/* binding */ map),
|
|
15417
|
+
/* harmony export */ "slice": () => (/* binding */ slice)
|
|
15288
15418
|
/* harmony export */ });
|
|
15289
15419
|
var array = Array.prototype;
|
|
15290
15420
|
|
|
@@ -15467,9 +15597,9 @@ function bin() {
|
|
|
15467
15597
|
"use strict";
|
|
15468
15598
|
__webpack_require__.r(__webpack_exports__);
|
|
15469
15599
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15470
|
-
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
15471
|
-
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
15472
15600
|
/* harmony export */ "bisectCenter": () => (/* binding */ bisectCenter),
|
|
15601
|
+
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
15602
|
+
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
15473
15603
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15474
15604
|
/* harmony export */ });
|
|
15475
15605
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
@@ -16002,9 +16132,9 @@ function range(start, stop, step) {
|
|
|
16002
16132
|
"use strict";
|
|
16003
16133
|
__webpack_require__.r(__webpack_exports__);
|
|
16004
16134
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16005
|
-
/* harmony export */ "
|
|
16135
|
+
/* harmony export */ "ascendingDefined": () => (/* binding */ ascendingDefined),
|
|
16006
16136
|
/* harmony export */ "compareDefined": () => (/* binding */ compareDefined),
|
|
16007
|
-
/* harmony export */ "
|
|
16137
|
+
/* harmony export */ "default": () => (/* binding */ sort)
|
|
16008
16138
|
/* harmony export */ });
|
|
16009
16139
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
16010
16140
|
/* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permute.js */ "../../victory-vendor/node_modules/d3-array/src/permute.js");
|
|
@@ -16153,14 +16283,14 @@ function tickStep(start, stop, count) {
|
|
|
16153
16283
|
__webpack_require__.r(__webpack_exports__);
|
|
16154
16284
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16155
16285
|
/* harmony export */ "Color": () => (/* binding */ Color),
|
|
16156
|
-
/* harmony export */ "
|
|
16286
|
+
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
16157
16287
|
/* harmony export */ "brighter": () => (/* binding */ brighter),
|
|
16288
|
+
/* harmony export */ "darker": () => (/* binding */ darker),
|
|
16158
16289
|
/* harmony export */ "default": () => (/* binding */ color),
|
|
16159
|
-
/* harmony export */ "
|
|
16160
|
-
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
16161
|
-
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
16290
|
+
/* harmony export */ "hsl": () => (/* binding */ hsl),
|
|
16162
16291
|
/* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
|
|
16163
|
-
/* harmony export */ "
|
|
16292
|
+
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
16293
|
+
/* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert)
|
|
16164
16294
|
/* harmony export */ });
|
|
16165
16295
|
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-vendor/node_modules/d3-color/src/define.js");
|
|
16166
16296
|
|
|
@@ -16599,8 +16729,8 @@ function extend(parent, definition) {
|
|
|
16599
16729
|
__webpack_require__.r(__webpack_exports__);
|
|
16600
16730
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16601
16731
|
/* harmony export */ "backIn": () => (/* binding */ backIn),
|
|
16602
|
-
/* harmony export */ "
|
|
16603
|
-
/* harmony export */ "
|
|
16732
|
+
/* harmony export */ "backInOut": () => (/* binding */ backInOut),
|
|
16733
|
+
/* harmony export */ "backOut": () => (/* binding */ backOut)
|
|
16604
16734
|
/* harmony export */ });
|
|
16605
16735
|
var overshoot = 1.70158;
|
|
16606
16736
|
|
|
@@ -16653,8 +16783,8 @@ var backInOut = (function custom(s) {
|
|
|
16653
16783
|
__webpack_require__.r(__webpack_exports__);
|
|
16654
16784
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16655
16785
|
/* harmony export */ "bounceIn": () => (/* binding */ bounceIn),
|
|
16656
|
-
/* harmony export */ "
|
|
16657
|
-
/* harmony export */ "
|
|
16786
|
+
/* harmony export */ "bounceInOut": () => (/* binding */ bounceInOut),
|
|
16787
|
+
/* harmony export */ "bounceOut": () => (/* binding */ bounceOut)
|
|
16658
16788
|
/* harmony export */ });
|
|
16659
16789
|
var b1 = 4 / 11,
|
|
16660
16790
|
b2 = 6 / 11,
|
|
@@ -16692,8 +16822,8 @@ function bounceInOut(t) {
|
|
|
16692
16822
|
__webpack_require__.r(__webpack_exports__);
|
|
16693
16823
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16694
16824
|
/* harmony export */ "circleIn": () => (/* binding */ circleIn),
|
|
16695
|
-
/* harmony export */ "
|
|
16696
|
-
/* harmony export */ "
|
|
16825
|
+
/* harmony export */ "circleInOut": () => (/* binding */ circleInOut),
|
|
16826
|
+
/* harmony export */ "circleOut": () => (/* binding */ circleOut)
|
|
16697
16827
|
/* harmony export */ });
|
|
16698
16828
|
function circleIn(t) {
|
|
16699
16829
|
return 1 - Math.sqrt(1 - t * t);
|
|
@@ -16720,8 +16850,8 @@ function circleInOut(t) {
|
|
|
16720
16850
|
__webpack_require__.r(__webpack_exports__);
|
|
16721
16851
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16722
16852
|
/* harmony export */ "cubicIn": () => (/* binding */ cubicIn),
|
|
16723
|
-
/* harmony export */ "
|
|
16724
|
-
/* harmony export */ "
|
|
16853
|
+
/* harmony export */ "cubicInOut": () => (/* binding */ cubicInOut),
|
|
16854
|
+
/* harmony export */ "cubicOut": () => (/* binding */ cubicOut)
|
|
16725
16855
|
/* harmony export */ });
|
|
16726
16856
|
function cubicIn(t) {
|
|
16727
16857
|
return t * t * t;
|
|
@@ -16748,8 +16878,8 @@ function cubicInOut(t) {
|
|
|
16748
16878
|
__webpack_require__.r(__webpack_exports__);
|
|
16749
16879
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16750
16880
|
/* harmony export */ "elasticIn": () => (/* binding */ elasticIn),
|
|
16751
|
-
/* harmony export */ "
|
|
16752
|
-
/* harmony export */ "
|
|
16881
|
+
/* harmony export */ "elasticInOut": () => (/* binding */ elasticInOut),
|
|
16882
|
+
/* harmony export */ "elasticOut": () => (/* binding */ elasticOut)
|
|
16753
16883
|
/* harmony export */ });
|
|
16754
16884
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16755
16885
|
|
|
@@ -16812,8 +16942,8 @@ var elasticInOut = (function custom(a, p) {
|
|
|
16812
16942
|
__webpack_require__.r(__webpack_exports__);
|
|
16813
16943
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16814
16944
|
/* harmony export */ "expIn": () => (/* binding */ expIn),
|
|
16815
|
-
/* harmony export */ "
|
|
16816
|
-
/* harmony export */ "
|
|
16945
|
+
/* harmony export */ "expInOut": () => (/* binding */ expInOut),
|
|
16946
|
+
/* harmony export */ "expOut": () => (/* binding */ expOut)
|
|
16817
16947
|
/* harmony export */ });
|
|
16818
16948
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16819
16949
|
|
|
@@ -16842,43 +16972,43 @@ function expInOut(t) {
|
|
|
16842
16972
|
"use strict";
|
|
16843
16973
|
__webpack_require__.r(__webpack_exports__);
|
|
16844
16974
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16845
|
-
/* harmony export */ "
|
|
16846
|
-
/* harmony export */ "
|
|
16847
|
-
/* harmony export */ "
|
|
16848
|
-
/* harmony export */ "
|
|
16849
|
-
/* harmony export */ "
|
|
16975
|
+
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16976
|
+
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16977
|
+
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16978
|
+
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16979
|
+
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16980
|
+
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16981
|
+
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16982
|
+
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16983
|
+
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16984
|
+
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16985
|
+
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16986
|
+
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16850
16987
|
/* harmony export */ "easeCubic": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16851
16988
|
/* harmony export */ "easeCubicIn": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicIn),
|
|
16852
|
-
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16853
16989
|
/* harmony export */ "easeCubicInOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16990
|
+
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16991
|
+
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16992
|
+
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16993
|
+
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut),
|
|
16994
|
+
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16995
|
+
/* harmony export */ "easeExp": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16996
|
+
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16997
|
+
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16998
|
+
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16999
|
+
/* harmony export */ "easeLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_0__.linear),
|
|
16854
17000
|
/* harmony export */ "easePoly": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
16855
17001
|
/* harmony export */ "easePolyIn": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyIn),
|
|
16856
|
-
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
16857
17002
|
/* harmony export */ "easePolyInOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
17003
|
+
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
17004
|
+
/* harmony export */ "easeQuad": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
17005
|
+
/* harmony export */ "easeQuadIn": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadIn),
|
|
17006
|
+
/* harmony export */ "easeQuadInOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
17007
|
+
/* harmony export */ "easeQuadOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadOut),
|
|
16858
17008
|
/* harmony export */ "easeSin": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16859
17009
|
/* harmony export */ "easeSinIn": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinIn),
|
|
16860
|
-
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut),
|
|
16861
17010
|
/* harmony export */ "easeSinInOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16862
|
-
/* harmony export */ "
|
|
16863
|
-
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16864
|
-
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16865
|
-
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16866
|
-
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16867
|
-
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16868
|
-
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16869
|
-
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16870
|
-
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16871
|
-
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16872
|
-
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16873
|
-
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16874
|
-
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16875
|
-
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16876
|
-
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16877
|
-
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16878
|
-
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16879
|
-
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16880
|
-
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16881
|
-
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut)
|
|
17011
|
+
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut)
|
|
16882
17012
|
/* harmony export */ });
|
|
16883
17013
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-ease/src/linear.js");
|
|
16884
17014
|
/* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad.js */ "../../victory-vendor/node_modules/d3-ease/src/quad.js");
|
|
@@ -16958,8 +17088,8 @@ function tpmt(x) {
|
|
|
16958
17088
|
__webpack_require__.r(__webpack_exports__);
|
|
16959
17089
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16960
17090
|
/* harmony export */ "polyIn": () => (/* binding */ polyIn),
|
|
16961
|
-
/* harmony export */ "
|
|
16962
|
-
/* harmony export */ "
|
|
17091
|
+
/* harmony export */ "polyInOut": () => (/* binding */ polyInOut),
|
|
17092
|
+
/* harmony export */ "polyOut": () => (/* binding */ polyOut)
|
|
16963
17093
|
/* harmony export */ });
|
|
16964
17094
|
var exponent = 3;
|
|
16965
17095
|
|
|
@@ -17012,8 +17142,8 @@ var polyInOut = (function custom(e) {
|
|
|
17012
17142
|
__webpack_require__.r(__webpack_exports__);
|
|
17013
17143
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17014
17144
|
/* harmony export */ "quadIn": () => (/* binding */ quadIn),
|
|
17015
|
-
/* harmony export */ "
|
|
17016
|
-
/* harmony export */ "
|
|
17145
|
+
/* harmony export */ "quadInOut": () => (/* binding */ quadInOut),
|
|
17146
|
+
/* harmony export */ "quadOut": () => (/* binding */ quadOut)
|
|
17017
17147
|
/* harmony export */ });
|
|
17018
17148
|
function quadIn(t) {
|
|
17019
17149
|
return t * t;
|
|
@@ -17040,8 +17170,8 @@ function quadInOut(t) {
|
|
|
17040
17170
|
__webpack_require__.r(__webpack_exports__);
|
|
17041
17171
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17042
17172
|
/* harmony export */ "sinIn": () => (/* binding */ sinIn),
|
|
17043
|
-
/* harmony export */ "
|
|
17044
|
-
/* harmony export */ "
|
|
17173
|
+
/* harmony export */ "sinInOut": () => (/* binding */ sinInOut),
|
|
17174
|
+
/* harmony export */ "sinOut": () => (/* binding */ sinOut)
|
|
17045
17175
|
/* harmony export */ });
|
|
17046
17176
|
var pi = Math.PI,
|
|
17047
17177
|
halfPi = pi / 2;
|
|
@@ -17070,9 +17200,9 @@ function sinInOut(t) {
|
|
|
17070
17200
|
"use strict";
|
|
17071
17201
|
__webpack_require__.r(__webpack_exports__);
|
|
17072
17202
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17203
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
17073
17204
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
17074
|
-
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
17075
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
17205
|
+
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
17076
17206
|
/* harmony export */ });
|
|
17077
17207
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-format/src/locale.js");
|
|
17078
17208
|
|
|
@@ -17218,8 +17348,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17218
17348
|
"use strict";
|
|
17219
17349
|
__webpack_require__.r(__webpack_exports__);
|
|
17220
17350
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17221
|
-
/* harmony export */ "
|
|
17222
|
-
/* harmony export */ "
|
|
17351
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
17352
|
+
/* harmony export */ "prefixExponent": () => (/* binding */ prefixExponent)
|
|
17223
17353
|
/* harmony export */ });
|
|
17224
17354
|
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../victory-vendor/node_modules/d3-format/src/formatDecimal.js");
|
|
17225
17355
|
|
|
@@ -17278,8 +17408,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17278
17408
|
"use strict";
|
|
17279
17409
|
__webpack_require__.r(__webpack_exports__);
|
|
17280
17410
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17281
|
-
/* harmony export */ "
|
|
17282
|
-
/* harmony export */ "
|
|
17411
|
+
/* harmony export */ "FormatSpecifier": () => (/* binding */ FormatSpecifier),
|
|
17412
|
+
/* harmony export */ "default": () => (/* binding */ formatSpecifier)
|
|
17283
17413
|
/* harmony export */ });
|
|
17284
17414
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
17285
17415
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
@@ -17761,9 +17891,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17761
17891
|
"use strict";
|
|
17762
17892
|
__webpack_require__.r(__webpack_exports__);
|
|
17763
17893
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17764
|
-
/* harmony export */ "
|
|
17894
|
+
/* harmony export */ "default": () => (/* binding */ nogamma),
|
|
17765
17895
|
/* harmony export */ "gamma": () => (/* binding */ gamma),
|
|
17766
|
-
/* harmony export */ "
|
|
17896
|
+
/* harmony export */ "hue": () => (/* binding */ hue)
|
|
17767
17897
|
/* harmony export */ });
|
|
17768
17898
|
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-vendor/node_modules/d3-interpolate/src/constant.js");
|
|
17769
17899
|
|
|
@@ -18468,10 +18598,10 @@ function constants(x) {
|
|
|
18468
18598
|
"use strict";
|
|
18469
18599
|
__webpack_require__.r(__webpack_exports__);
|
|
18470
18600
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18471
|
-
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
18472
18601
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
18473
|
-
/* harmony export */ "
|
|
18474
|
-
/* harmony export */ "
|
|
18602
|
+
/* harmony export */ "default": () => (/* binding */ continuous),
|
|
18603
|
+
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
18604
|
+
/* harmony export */ "transformer": () => (/* binding */ transformer)
|
|
18475
18605
|
/* harmony export */ });
|
|
18476
18606
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisect.js");
|
|
18477
18607
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -18619,9 +18749,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18619
18749
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18620
18750
|
/* harmony export */ "default": () => (/* binding */ diverging),
|
|
18621
18751
|
/* harmony export */ "divergingLog": () => (/* binding */ divergingLog),
|
|
18622
|
-
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog),
|
|
18623
18752
|
/* harmony export */ "divergingPow": () => (/* binding */ divergingPow),
|
|
18624
|
-
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt)
|
|
18753
|
+
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt),
|
|
18754
|
+
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog)
|
|
18625
18755
|
/* harmony export */ });
|
|
18626
18756
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/piecewise.js");
|
|
18627
18757
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -18796,32 +18926,32 @@ function identity(domain) {
|
|
|
18796
18926
|
__webpack_require__.r(__webpack_exports__);
|
|
18797
18927
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18798
18928
|
/* harmony export */ "scaleBand": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
18799
|
-
/* harmony export */ "
|
|
18929
|
+
/* harmony export */ "scaleDiverging": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
18930
|
+
/* harmony export */ "scaleDivergingLog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingLog),
|
|
18931
|
+
/* harmony export */ "scaleDivergingPow": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingPow),
|
|
18932
|
+
/* harmony export */ "scaleDivergingSqrt": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSqrt),
|
|
18933
|
+
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18800
18934
|
/* harmony export */ "scaleIdentity": () => (/* reexport safe */ _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
18935
|
+
/* harmony export */ "scaleImplicit": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__.implicit),
|
|
18801
18936
|
/* harmony export */ "scaleLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
18802
18937
|
/* harmony export */ "scaleLog": () => (/* reexport safe */ _log_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
18803
|
-
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18804
18938
|
/* harmony export */ "scaleOrdinal": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
18805
|
-
/* harmony export */ "
|
|
18939
|
+
/* harmony export */ "scalePoint": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__.point),
|
|
18806
18940
|
/* harmony export */ "scalePow": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
18807
|
-
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18808
|
-
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18809
18941
|
/* harmony export */ "scaleQuantile": () => (/* reexport safe */ _quantile_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
18810
18942
|
/* harmony export */ "scaleQuantize": () => (/* reexport safe */ _quantize_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
18811
|
-
/* harmony export */ "
|
|
18812
|
-
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18813
|
-
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18943
|
+
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18814
18944
|
/* harmony export */ "scaleSequential": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
18815
18945
|
/* harmony export */ "scaleSequentialLog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialLog),
|
|
18816
18946
|
/* harmony export */ "scaleSequentialPow": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialPow),
|
|
18947
|
+
/* harmony export */ "scaleSequentialQuantile": () => (/* reexport safe */ _sequentialQuantile_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
18817
18948
|
/* harmony export */ "scaleSequentialSqrt": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSqrt),
|
|
18818
18949
|
/* harmony export */ "scaleSequentialSymlog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSymlog),
|
|
18819
|
-
/* harmony export */ "
|
|
18820
|
-
/* harmony export */ "
|
|
18821
|
-
/* harmony export */ "
|
|
18822
|
-
/* harmony export */ "
|
|
18823
|
-
/* harmony export */ "
|
|
18824
|
-
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18950
|
+
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18951
|
+
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18952
|
+
/* harmony export */ "scaleThreshold": () => (/* reexport safe */ _threshold_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
18953
|
+
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18954
|
+
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18825
18955
|
/* harmony export */ "tickFormat": () => (/* reexport safe */ _tickFormat_js__WEBPACK_IMPORTED_MODULE_16__["default"])
|
|
18826
18956
|
/* harmony export */ });
|
|
18827
18957
|
/* harmony import */ var _band_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band.js */ "../../victory-vendor/node_modules/d3-scale/src/band.js");
|
|
@@ -18887,8 +19017,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18887
19017
|
"use strict";
|
|
18888
19018
|
__webpack_require__.r(__webpack_exports__);
|
|
18889
19019
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18890
|
-
/* harmony export */ "
|
|
18891
|
-
/* harmony export */ "
|
|
19020
|
+
/* harmony export */ "initInterpolator": () => (/* binding */ initInterpolator),
|
|
19021
|
+
/* harmony export */ "initRange": () => (/* binding */ initRange)
|
|
18892
19022
|
/* harmony export */ });
|
|
18893
19023
|
function initRange(domain, range) {
|
|
18894
19024
|
switch (arguments.length) {
|
|
@@ -18929,8 +19059,8 @@ function initInterpolator(domain, interpolator) {
|
|
|
18929
19059
|
"use strict";
|
|
18930
19060
|
__webpack_require__.r(__webpack_exports__);
|
|
18931
19061
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18932
|
-
/* harmony export */ "
|
|
18933
|
-
/* harmony export */ "
|
|
19062
|
+
/* harmony export */ "default": () => (/* binding */ linear),
|
|
19063
|
+
/* harmony export */ "linearish": () => (/* binding */ linearish)
|
|
18934
19064
|
/* harmony export */ });
|
|
18935
19065
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
18936
19066
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -19019,8 +19149,8 @@ function linear() {
|
|
|
19019
19149
|
"use strict";
|
|
19020
19150
|
__webpack_require__.r(__webpack_exports__);
|
|
19021
19151
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19022
|
-
/* harmony export */ "
|
|
19023
|
-
/* harmony export */ "
|
|
19152
|
+
/* harmony export */ "default": () => (/* binding */ log),
|
|
19153
|
+
/* harmony export */ "loggish": () => (/* binding */ loggish)
|
|
19024
19154
|
/* harmony export */ });
|
|
19025
19155
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
19026
19156
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../victory-vendor/node_modules/d3-format/src/formatSpecifier.js");
|
|
@@ -19232,8 +19362,8 @@ function number(x) {
|
|
|
19232
19362
|
"use strict";
|
|
19233
19363
|
__webpack_require__.r(__webpack_exports__);
|
|
19234
19364
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19235
|
-
/* harmony export */ "
|
|
19236
|
-
/* harmony export */ "
|
|
19365
|
+
/* harmony export */ "default": () => (/* binding */ ordinal),
|
|
19366
|
+
/* harmony export */ "implicit": () => (/* binding */ implicit)
|
|
19237
19367
|
/* harmony export */ });
|
|
19238
19368
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/internmap/src/index.js");
|
|
19239
19369
|
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init.js */ "../../victory-vendor/node_modules/d3-scale/src/init.js");
|
|
@@ -19296,8 +19426,8 @@ function ordinal() {
|
|
|
19296
19426
|
"use strict";
|
|
19297
19427
|
__webpack_require__.r(__webpack_exports__);
|
|
19298
19428
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19299
|
-
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
19300
19429
|
/* harmony export */ "default": () => (/* binding */ pow),
|
|
19430
|
+
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
19301
19431
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt)
|
|
19302
19432
|
/* harmony export */ });
|
|
19303
19433
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
@@ -19601,9 +19731,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19601
19731
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
19602
19732
|
/* harmony export */ "default": () => (/* binding */ sequential),
|
|
19603
19733
|
/* harmony export */ "sequentialLog": () => (/* binding */ sequentialLog),
|
|
19604
|
-
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog),
|
|
19605
19734
|
/* harmony export */ "sequentialPow": () => (/* binding */ sequentialPow),
|
|
19606
|
-
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt)
|
|
19735
|
+
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt),
|
|
19736
|
+
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog)
|
|
19607
19737
|
/* harmony export */ });
|
|
19608
19738
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
19609
19739
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/round.js");
|
|
@@ -19791,8 +19921,8 @@ function sequentialQuantile() {
|
|
|
19791
19921
|
"use strict";
|
|
19792
19922
|
__webpack_require__.r(__webpack_exports__);
|
|
19793
19923
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19794
|
-
/* harmony export */ "
|
|
19795
|
-
/* harmony export */ "
|
|
19924
|
+
/* harmony export */ "default": () => (/* binding */ symlog),
|
|
19925
|
+
/* harmony export */ "symlogish": () => (/* binding */ symlogish)
|
|
19796
19926
|
/* harmony export */ });
|
|
19797
19927
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
19798
19928
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -20384,18 +20514,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20384
20514
|
__webpack_require__.r(__webpack_exports__);
|
|
20385
20515
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20386
20516
|
/* harmony export */ "abs": () => (/* binding */ abs),
|
|
20517
|
+
/* harmony export */ "acos": () => (/* binding */ acos),
|
|
20518
|
+
/* harmony export */ "asin": () => (/* binding */ asin),
|
|
20387
20519
|
/* harmony export */ "atan2": () => (/* binding */ atan2),
|
|
20388
20520
|
/* harmony export */ "cos": () => (/* binding */ cos),
|
|
20521
|
+
/* harmony export */ "epsilon": () => (/* binding */ epsilon),
|
|
20522
|
+
/* harmony export */ "halfPi": () => (/* binding */ halfPi),
|
|
20389
20523
|
/* harmony export */ "max": () => (/* binding */ max),
|
|
20390
20524
|
/* harmony export */ "min": () => (/* binding */ min),
|
|
20525
|
+
/* harmony export */ "pi": () => (/* binding */ pi),
|
|
20391
20526
|
/* harmony export */ "sin": () => (/* binding */ sin),
|
|
20392
20527
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt),
|
|
20393
|
-
/* harmony export */ "
|
|
20394
|
-
/* harmony export */ "pi": () => (/* binding */ pi),
|
|
20395
|
-
/* harmony export */ "halfPi": () => (/* binding */ halfPi),
|
|
20396
|
-
/* harmony export */ "tau": () => (/* binding */ tau),
|
|
20397
|
-
/* harmony export */ "acos": () => (/* binding */ acos),
|
|
20398
|
-
/* harmony export */ "asin": () => (/* binding */ asin)
|
|
20528
|
+
/* harmony export */ "tau": () => (/* binding */ tau)
|
|
20399
20529
|
/* harmony export */ });
|
|
20400
20530
|
const abs = Math.abs;
|
|
20401
20531
|
const atan2 = Math.atan2;
|
|
@@ -20430,11 +20560,11 @@ function asin(x) {
|
|
|
20430
20560
|
"use strict";
|
|
20431
20561
|
__webpack_require__.r(__webpack_exports__);
|
|
20432
20562
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20563
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
20433
20564
|
/* harmony export */ "timeFormat": () => (/* binding */ timeFormat),
|
|
20434
20565
|
/* harmony export */ "timeParse": () => (/* binding */ timeParse),
|
|
20435
20566
|
/* harmony export */ "utcFormat": () => (/* binding */ utcFormat),
|
|
20436
|
-
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
20437
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
20567
|
+
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
20438
20568
|
/* harmony export */ });
|
|
20439
20569
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-time-format/src/locale.js");
|
|
20440
20570
|
|
|
@@ -21184,8 +21314,8 @@ function formatUnixTimestampSeconds(d) {
|
|
|
21184
21314
|
"use strict";
|
|
21185
21315
|
__webpack_require__.r(__webpack_exports__);
|
|
21186
21316
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21187
|
-
/* harmony export */ "
|
|
21188
|
-
/* harmony export */ "
|
|
21317
|
+
/* harmony export */ "days": () => (/* binding */ days),
|
|
21318
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
21189
21319
|
/* harmony export */ });
|
|
21190
21320
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
21191
21321
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21214,12 +21344,12 @@ var days = day.range;
|
|
|
21214
21344
|
"use strict";
|
|
21215
21345
|
__webpack_require__.r(__webpack_exports__);
|
|
21216
21346
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21217
|
-
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
21218
|
-
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
21219
|
-
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
21220
21347
|
/* harmony export */ "durationDay": () => (/* binding */ durationDay),
|
|
21221
|
-
/* harmony export */ "
|
|
21348
|
+
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
21349
|
+
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
21222
21350
|
/* harmony export */ "durationMonth": () => (/* binding */ durationMonth),
|
|
21351
|
+
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
21352
|
+
/* harmony export */ "durationWeek": () => (/* binding */ durationWeek),
|
|
21223
21353
|
/* harmony export */ "durationYear": () => (/* binding */ durationYear)
|
|
21224
21354
|
/* harmony export */ });
|
|
21225
21355
|
const durationSecond = 1000;
|
|
@@ -21501,10 +21631,10 @@ var seconds = second.range;
|
|
|
21501
21631
|
"use strict";
|
|
21502
21632
|
__webpack_require__.r(__webpack_exports__);
|
|
21503
21633
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21504
|
-
/* harmony export */ "
|
|
21505
|
-
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
21634
|
+
/* harmony export */ "timeTickInterval": () => (/* binding */ timeTickInterval),
|
|
21506
21635
|
/* harmony export */ "timeTicks": () => (/* binding */ timeTicks),
|
|
21507
|
-
/* harmony export */ "
|
|
21636
|
+
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
21637
|
+
/* harmony export */ "utcTicks": () => (/* binding */ utcTicks)
|
|
21508
21638
|
/* harmony export */ });
|
|
21509
21639
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisector.js");
|
|
21510
21640
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
@@ -21731,20 +21861,20 @@ var utcMonths = utcMonth.range;
|
|
|
21731
21861
|
"use strict";
|
|
21732
21862
|
__webpack_require__.r(__webpack_exports__);
|
|
21733
21863
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21734
|
-
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
21735
|
-
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
21736
|
-
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
21737
|
-
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
21738
|
-
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
21739
21864
|
/* harmony export */ "utcFriday": () => (/* binding */ utcFriday),
|
|
21865
|
+
/* harmony export */ "utcFridays": () => (/* binding */ utcFridays),
|
|
21866
|
+
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
21867
|
+
/* harmony export */ "utcMondays": () => (/* binding */ utcMondays),
|
|
21740
21868
|
/* harmony export */ "utcSaturday": () => (/* binding */ utcSaturday),
|
|
21869
|
+
/* harmony export */ "utcSaturdays": () => (/* binding */ utcSaturdays),
|
|
21870
|
+
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
21741
21871
|
/* harmony export */ "utcSundays": () => (/* binding */ utcSundays),
|
|
21742
|
-
/* harmony export */ "
|
|
21743
|
-
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
21744
|
-
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays),
|
|
21872
|
+
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
21745
21873
|
/* harmony export */ "utcThursdays": () => (/* binding */ utcThursdays),
|
|
21746
|
-
/* harmony export */ "
|
|
21747
|
-
/* harmony export */ "
|
|
21874
|
+
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
21875
|
+
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
21876
|
+
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
21877
|
+
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays)
|
|
21748
21878
|
/* harmony export */ });
|
|
21749
21879
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
21750
21880
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21833,20 +21963,20 @@ var utcYears = utcYear.range;
|
|
|
21833
21963
|
"use strict";
|
|
21834
21964
|
__webpack_require__.r(__webpack_exports__);
|
|
21835
21965
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21836
|
-
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
21837
|
-
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
21838
|
-
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
21839
|
-
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
21840
|
-
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
21841
21966
|
/* harmony export */ "friday": () => (/* binding */ friday),
|
|
21967
|
+
/* harmony export */ "fridays": () => (/* binding */ fridays),
|
|
21968
|
+
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
21969
|
+
/* harmony export */ "mondays": () => (/* binding */ mondays),
|
|
21842
21970
|
/* harmony export */ "saturday": () => (/* binding */ saturday),
|
|
21971
|
+
/* harmony export */ "saturdays": () => (/* binding */ saturdays),
|
|
21972
|
+
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
21843
21973
|
/* harmony export */ "sundays": () => (/* binding */ sundays),
|
|
21844
|
-
/* harmony export */ "
|
|
21845
|
-
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
21846
|
-
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays),
|
|
21974
|
+
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
21847
21975
|
/* harmony export */ "thursdays": () => (/* binding */ thursdays),
|
|
21848
|
-
/* harmony export */ "
|
|
21849
|
-
/* harmony export */ "
|
|
21976
|
+
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
21977
|
+
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
21978
|
+
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
21979
|
+
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays)
|
|
21850
21980
|
/* harmony export */ });
|
|
21851
21981
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
21852
21982
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21935,8 +22065,8 @@ var years = year.range;
|
|
|
21935
22065
|
"use strict";
|
|
21936
22066
|
__webpack_require__.r(__webpack_exports__);
|
|
21937
22067
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21938
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
21939
22068
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
22069
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
21940
22070
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
21941
22071
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
21942
22072
|
/* harmony export */ });
|