victory-create-container 31.1.0 → 31.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -203,7 +203,7 @@ module.exports = assign;
|
|
|
203
203
|
/***/ (function(module, exports, __webpack_require__) {
|
|
204
204
|
|
|
205
205
|
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 92),
|
|
206
|
-
isObject = __webpack_require__(/*! ./isObject */
|
|
206
|
+
isObject = __webpack_require__(/*! ./isObject */ 10);
|
|
207
207
|
|
|
208
208
|
/** `Object#toString` result references. */
|
|
209
209
|
var asyncTag = '[object AsyncFunction]',
|
|
@@ -629,9 +629,7 @@ function reduceChildren(children, iteratee) {
|
|
|
629
629
|
} else {
|
|
630
630
|
var result = iteratee(child, childName, parent);
|
|
631
631
|
|
|
632
|
-
if (
|
|
633
|
-
memo = result.reduce(combine, memo);
|
|
634
|
-
} else if (result) {
|
|
632
|
+
if (result) {
|
|
635
633
|
memo = combine(memo, result);
|
|
636
634
|
}
|
|
637
635
|
}
|
|
@@ -945,48 +943,6 @@ module.exports = isArray;
|
|
|
945
943
|
|
|
946
944
|
/***/ }),
|
|
947
945
|
/* 9 */
|
|
948
|
-
/*!***************************************************************************!*\
|
|
949
|
-
!*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObject.js ***!
|
|
950
|
-
\***************************************************************************/
|
|
951
|
-
/*! dynamic exports provided */
|
|
952
|
-
/*! all exports used */
|
|
953
|
-
/***/ (function(module, exports) {
|
|
954
|
-
|
|
955
|
-
/**
|
|
956
|
-
* Checks if `value` is the
|
|
957
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
958
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
959
|
-
*
|
|
960
|
-
* @static
|
|
961
|
-
* @memberOf _
|
|
962
|
-
* @since 0.1.0
|
|
963
|
-
* @category Lang
|
|
964
|
-
* @param {*} value The value to check.
|
|
965
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
966
|
-
* @example
|
|
967
|
-
*
|
|
968
|
-
* _.isObject({});
|
|
969
|
-
* // => true
|
|
970
|
-
*
|
|
971
|
-
* _.isObject([1, 2, 3]);
|
|
972
|
-
* // => true
|
|
973
|
-
*
|
|
974
|
-
* _.isObject(_.noop);
|
|
975
|
-
* // => true
|
|
976
|
-
*
|
|
977
|
-
* _.isObject(null);
|
|
978
|
-
* // => false
|
|
979
|
-
*/
|
|
980
|
-
function isObject(value) {
|
|
981
|
-
var type = typeof value;
|
|
982
|
-
return value != null && (type == 'object' || type == 'function');
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
module.exports = isObject;
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
/***/ }),
|
|
989
|
-
/* 10 */
|
|
990
946
|
/*!************************************************************************************!*\
|
|
991
947
|
!*** /Users/boygirl/formidable/v/victory/node_modules/react-fast-compare/index.js ***!
|
|
992
948
|
\************************************************************************************/
|
|
@@ -1059,7 +1015,10 @@ function equal(a, b) {
|
|
|
1059
1015
|
continue;
|
|
1060
1016
|
} else {
|
|
1061
1017
|
// all other properties should be traversed as usual
|
|
1062
|
-
if (!equal(a[key], b[key]))
|
|
1018
|
+
if (!equal(a[key], b[key])) {
|
|
1019
|
+
// console.log(key)
|
|
1020
|
+
return false
|
|
1021
|
+
};
|
|
1063
1022
|
}
|
|
1064
1023
|
}
|
|
1065
1024
|
// end react-fast-compare
|
|
@@ -1091,6 +1050,48 @@ module.exports = function exportedEqual(a, b) {
|
|
|
1091
1050
|
};
|
|
1092
1051
|
|
|
1093
1052
|
|
|
1053
|
+
/***/ }),
|
|
1054
|
+
/* 10 */
|
|
1055
|
+
/*!***************************************************************************!*\
|
|
1056
|
+
!*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObject.js ***!
|
|
1057
|
+
\***************************************************************************/
|
|
1058
|
+
/*! dynamic exports provided */
|
|
1059
|
+
/*! all exports used */
|
|
1060
|
+
/***/ (function(module, exports) {
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Checks if `value` is the
|
|
1064
|
+
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1065
|
+
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
1066
|
+
*
|
|
1067
|
+
* @static
|
|
1068
|
+
* @memberOf _
|
|
1069
|
+
* @since 0.1.0
|
|
1070
|
+
* @category Lang
|
|
1071
|
+
* @param {*} value The value to check.
|
|
1072
|
+
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
1073
|
+
* @example
|
|
1074
|
+
*
|
|
1075
|
+
* _.isObject({});
|
|
1076
|
+
* // => true
|
|
1077
|
+
*
|
|
1078
|
+
* _.isObject([1, 2, 3]);
|
|
1079
|
+
* // => true
|
|
1080
|
+
*
|
|
1081
|
+
* _.isObject(_.noop);
|
|
1082
|
+
* // => true
|
|
1083
|
+
*
|
|
1084
|
+
* _.isObject(null);
|
|
1085
|
+
* // => false
|
|
1086
|
+
*/
|
|
1087
|
+
function isObject(value) {
|
|
1088
|
+
var type = typeof value;
|
|
1089
|
+
return value != null && (type == 'object' || type == 'function');
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
module.exports = isObject;
|
|
1093
|
+
|
|
1094
|
+
|
|
1094
1095
|
/***/ }),
|
|
1095
1096
|
/* 11 */
|
|
1096
1097
|
/*!******************************************************************************!*\
|
|
@@ -2268,7 +2269,7 @@ function linear() {
|
|
|
2268
2269
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2269
2270
|
|
|
2270
2271
|
var debounce = __webpack_require__(/*! ./debounce */ 374),
|
|
2271
|
-
isObject = __webpack_require__(/*! ./isObject */
|
|
2272
|
+
isObject = __webpack_require__(/*! ./isObject */ 10);
|
|
2272
2273
|
|
|
2273
2274
|
/** Error message constants. */
|
|
2274
2275
|
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
@@ -5172,7 +5173,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
5172
5173
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
5173
5174
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
5174
5175
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
5175
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
5176
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
5176
5177
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
5177
5178
|
function _extends() { _extends = Object.assign || 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); }
|
|
5178
5179
|
|
|
@@ -5283,7 +5284,7 @@ Object.defineProperty(Rect, "propTypes", {
|
|
|
5283
5284
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
5284
5285
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
5285
5286
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
5286
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
5287
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
5287
5288
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
5288
5289
|
function _extends() { _extends = Object.assign || 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); }
|
|
5289
5290
|
|
|
@@ -5378,7 +5379,7 @@ Object.defineProperty(Path, "propTypes", {
|
|
|
5378
5379
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
5379
5380
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
5380
5381
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
5381
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
5382
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
5382
5383
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
5383
5384
|
function _extends() { _extends = Object.assign || 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); }
|
|
5384
5385
|
|
|
@@ -6399,8 +6400,13 @@ function getStringsFromData(props, axis) {
|
|
|
6399
6400
|
}
|
|
6400
6401
|
|
|
6401
6402
|
var key = props[axis] === undefined ? axis : props[axis];
|
|
6402
|
-
var accessor = __WEBPACK_IMPORTED_MODULE_12__helpers__["a" /* default */].createAccessor(key);
|
|
6403
|
-
|
|
6403
|
+
var accessor = __WEBPACK_IMPORTED_MODULE_12__helpers__["a" /* default */].createAccessor(key); // support immutable data
|
|
6404
|
+
|
|
6405
|
+
var data = props.data.reduce(function (memo, d) {
|
|
6406
|
+
memo.push(parseDatum(d));
|
|
6407
|
+
return memo;
|
|
6408
|
+
}, []);
|
|
6409
|
+
var sortedData = sortData(data, props.sortKey, props.sortOrder);
|
|
6404
6410
|
var dataStrings = sortedData.reduce(function (dataArr, datum) {
|
|
6405
6411
|
datum = parseDatum(datum);
|
|
6406
6412
|
dataArr.push(accessor(datum));
|
|
@@ -8181,7 +8187,7 @@ module.exports = ListCache;
|
|
|
8181
8187
|
/*! all exports used */
|
|
8182
8188
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8183
8189
|
|
|
8184
|
-
var isObject = __webpack_require__(/*! ./isObject */
|
|
8190
|
+
var isObject = __webpack_require__(/*! ./isObject */ 10);
|
|
8185
8191
|
|
|
8186
8192
|
/**
|
|
8187
8193
|
* Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
|
|
@@ -8367,6 +8373,8 @@ module.exports = isIndex;
|
|
|
8367
8373
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_ease__ = __webpack_require__(/*! d3-ease */ 222);
|
|
8368
8374
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(/*! ./util */ 233);
|
|
8369
8375
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__victory_util_timer__ = __webpack_require__(/*! ../victory-util/timer */ 43);
|
|
8376
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
8377
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_fast_compare__);
|
|
8370
8378
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
|
|
8371
8379
|
|
|
8372
8380
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
|
|
@@ -8394,6 +8402,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8394
8402
|
|
|
8395
8403
|
|
|
8396
8404
|
|
|
8405
|
+
|
|
8397
8406
|
var VictoryAnimation =
|
|
8398
8407
|
/*#__PURE__*/
|
|
8399
8408
|
function (_React$Component) {
|
|
@@ -8437,31 +8446,35 @@ function (_React$Component) {
|
|
|
8437
8446
|
this.traverseQueue();
|
|
8438
8447
|
}
|
|
8439
8448
|
}
|
|
8440
|
-
/* lifecycle */
|
|
8441
|
-
|
|
8442
8449
|
}, {
|
|
8443
|
-
key: "
|
|
8444
|
-
value: function
|
|
8445
|
-
|
|
8446
|
-
this.getTimer().unsubscribe(this.loopID);
|
|
8447
|
-
/* If an object was supplied */
|
|
8448
|
-
|
|
8449
|
-
if (!Array.isArray(nextProps.data)) {
|
|
8450
|
-
// Replace the tween queue. Could set `this.queue = [nextProps.data]`,
|
|
8451
|
-
// but let's reuse the same array.
|
|
8452
|
-
this.queue.length = 0;
|
|
8453
|
-
this.queue.push(nextProps.data);
|
|
8454
|
-
/* If an array was supplied */
|
|
8455
|
-
} else {
|
|
8456
|
-
var _queue;
|
|
8450
|
+
key: "shouldComponentUpdate",
|
|
8451
|
+
value: function shouldComponentUpdate(nextProps, nextState) {
|
|
8452
|
+
var equalProps = __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default()(this.props, nextProps);
|
|
8457
8453
|
|
|
8458
|
-
|
|
8459
|
-
|
|
8460
|
-
|
|
8461
|
-
|
|
8454
|
+
if (!equalProps) {
|
|
8455
|
+
/* cancel existing loop if it exists */
|
|
8456
|
+
this.getTimer().unsubscribe(this.loopID);
|
|
8457
|
+
/* If an object was supplied */
|
|
8458
|
+
|
|
8459
|
+
if (!Array.isArray(nextProps.data)) {
|
|
8460
|
+
// Replace the tween queue. Could set `this.queue = [nextProps.data]`,
|
|
8461
|
+
// but let's reuse the same array.
|
|
8462
|
+
this.queue.length = 0;
|
|
8463
|
+
this.queue.push(nextProps.data);
|
|
8464
|
+
/* If an array was supplied */
|
|
8465
|
+
} else {
|
|
8466
|
+
var _queue;
|
|
8467
|
+
|
|
8468
|
+
/* Extend the tween queue */
|
|
8469
|
+
(_queue = this.queue).push.apply(_queue, _toConsumableArray(nextProps.data));
|
|
8470
|
+
}
|
|
8471
|
+
/* Start traversing the tween queue */
|
|
8462
8472
|
|
|
8463
8473
|
|
|
8464
|
-
|
|
8474
|
+
this.traverseQueue();
|
|
8475
|
+
}
|
|
8476
|
+
|
|
8477
|
+
return nextState.animationInfo.animating || !equalProps;
|
|
8465
8478
|
}
|
|
8466
8479
|
}, {
|
|
8467
8480
|
key: "componentWillUnmount",
|
|
@@ -8995,7 +9008,7 @@ module.exports = toFinite;
|
|
|
8995
9008
|
/*! all exports used */
|
|
8996
9009
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8997
9010
|
|
|
8998
|
-
var isObject = __webpack_require__(/*! ./isObject */
|
|
9011
|
+
var isObject = __webpack_require__(/*! ./isObject */ 10),
|
|
8999
9012
|
isSymbol = __webpack_require__(/*! ./isSymbol */ 39);
|
|
9000
9013
|
|
|
9001
9014
|
/** Used as references for various `Number` constants. */
|
|
@@ -9614,7 +9627,7 @@ function getProps(props, index) {
|
|
|
9614
9627
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
9615
9628
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
9616
9629
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
9617
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
9630
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
9618
9631
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
9619
9632
|
function _extends() { _extends = Object.assign || 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); }
|
|
9620
9633
|
|
|
@@ -9711,7 +9724,7 @@ Object.defineProperty(TSpan, "propTypes", {
|
|
|
9711
9724
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
9712
9725
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
9713
9726
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
9714
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
9727
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
9715
9728
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
9716
9729
|
function _extends() { _extends = Object.assign || 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); }
|
|
9717
9730
|
|
|
@@ -9811,7 +9824,7 @@ Object.defineProperty(Text, "propTypes", {
|
|
|
9811
9824
|
|
|
9812
9825
|
"use strict";
|
|
9813
9826
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VictoryTransition; });
|
|
9814
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */
|
|
9827
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 10);
|
|
9815
9828
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
|
|
9816
9829
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_pick__ = __webpack_require__(/*! lodash/pick */ 46);
|
|
9817
9830
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_pick___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_pick__);
|
|
@@ -9828,6 +9841,8 @@ Object.defineProperty(Text, "propTypes", {
|
|
|
9828
9841
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__victory_util_helpers__ = __webpack_require__(/*! ../victory-util/helpers */ 5);
|
|
9829
9842
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__victory_util_timer__ = __webpack_require__(/*! ../victory-util/timer */ 43);
|
|
9830
9843
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__victory_util_transitions__ = __webpack_require__(/*! ../victory-util/transitions */ 74);
|
|
9844
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
9845
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react_fast_compare__);
|
|
9831
9846
|
|
|
9832
9847
|
|
|
9833
9848
|
|
|
@@ -9855,6 +9870,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9855
9870
|
|
|
9856
9871
|
|
|
9857
9872
|
|
|
9873
|
+
|
|
9858
9874
|
var VictoryTransition =
|
|
9859
9875
|
/*#__PURE__*/
|
|
9860
9876
|
function (_React$Component) {
|
|
@@ -9886,14 +9902,18 @@ function (_React$Component) {
|
|
|
9886
9902
|
}); //eslint-disable-line react/no-did-mount-set-state
|
|
9887
9903
|
}
|
|
9888
9904
|
}, {
|
|
9889
|
-
key: "
|
|
9890
|
-
value: function
|
|
9905
|
+
key: "shouldComponentUpdate",
|
|
9906
|
+
value: function shouldComponentUpdate(nextProps) {
|
|
9891
9907
|
var _this2 = this;
|
|
9892
9908
|
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9909
|
+
if (!__WEBPACK_IMPORTED_MODULE_11_react_fast_compare___default()(this.props, nextProps)) {
|
|
9910
|
+
this.getTimer().bypassAnimation();
|
|
9911
|
+
this.setState(this.getTransitionState(this.props, nextProps), function () {
|
|
9912
|
+
return _this2.getTimer().resumeAnimation();
|
|
9913
|
+
});
|
|
9914
|
+
}
|
|
9915
|
+
|
|
9916
|
+
return true;
|
|
9897
9917
|
}
|
|
9898
9918
|
}, {
|
|
9899
9919
|
key: "componentWillUnmount",
|
|
@@ -10156,7 +10176,7 @@ Object.defineProperty(ClipPath, "propTypes", {
|
|
|
10156
10176
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
|
|
10157
10177
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
|
|
10158
10178
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
|
|
10159
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
10179
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
10160
10180
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
|
|
10161
10181
|
function _extends() { _extends = Object.assign || 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); }
|
|
10162
10182
|
|
|
@@ -12053,14 +12073,17 @@ module.exports = values;
|
|
|
12053
12073
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_uniq__);
|
|
12054
12074
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert__ = __webpack_require__(/*! lodash/invert */ 366);
|
|
12055
12075
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_lodash_invert__);
|
|
12056
|
-
/* harmony import */ var
|
|
12057
|
-
/* harmony import */ var
|
|
12058
|
-
/* harmony import */ var
|
|
12059
|
-
/* harmony import */ var
|
|
12060
|
-
/* harmony import */ var
|
|
12061
|
-
/* harmony import */ var
|
|
12062
|
-
/* harmony import */ var
|
|
12063
|
-
/* harmony import */ var
|
|
12076
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 10);
|
|
12077
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_lodash_isObject__);
|
|
12078
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 3);
|
|
12079
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__);
|
|
12080
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity__ = __webpack_require__(/*! lodash/identity */ 21);
|
|
12081
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_lodash_identity__);
|
|
12082
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(/*! react */ 0);
|
|
12083
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
|
|
12084
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__collection__ = __webpack_require__(/*! ./collection */ 16);
|
|
12085
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__domain__ = __webpack_require__(/*! ./domain */ 89);
|
|
12086
|
+
|
|
12064
12087
|
|
|
12065
12088
|
|
|
12066
12089
|
|
|
@@ -12123,14 +12146,14 @@ function getCurrentAxis(axis, horizontal) {
|
|
|
12123
12146
|
|
|
12124
12147
|
|
|
12125
12148
|
function findAxisComponents(childComponents, predicate) {
|
|
12126
|
-
predicate = predicate ||
|
|
12149
|
+
predicate = predicate || __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default.a;
|
|
12127
12150
|
|
|
12128
12151
|
var findAxes = function (children) {
|
|
12129
12152
|
return children.reduce(function (memo, child) {
|
|
12130
12153
|
if (child.type && child.type.role === "axis" && predicate(child)) {
|
|
12131
12154
|
return memo.concat(child);
|
|
12132
12155
|
} else if (child.props && child.props.children) {
|
|
12133
|
-
return memo.concat(findAxes(
|
|
12156
|
+
return memo.concat(findAxes(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children)));
|
|
12134
12157
|
}
|
|
12135
12158
|
|
|
12136
12159
|
return memo;
|
|
@@ -12174,7 +12197,7 @@ function getAxisComponentsWithParent(childComponents, type) {
|
|
|
12174
12197
|
if (child.type && child.type.role === "axis" && matchesType(child)) {
|
|
12175
12198
|
return memo.concat(child);
|
|
12176
12199
|
} else if (child.props && child.props.children) {
|
|
12177
|
-
var childAxis = findComponents(
|
|
12200
|
+
var childAxis = findComponents(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children));
|
|
12178
12201
|
return childAxis.length > 0 ? memo.concat(child) : memo;
|
|
12179
12202
|
}
|
|
12180
12203
|
|
|
@@ -12193,8 +12216,8 @@ function getOrigin(domain) {
|
|
|
12193
12216
|
};
|
|
12194
12217
|
|
|
12195
12218
|
return {
|
|
12196
|
-
x:
|
|
12197
|
-
y:
|
|
12219
|
+
x: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
|
|
12220
|
+
y: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
|
|
12198
12221
|
};
|
|
12199
12222
|
}
|
|
12200
12223
|
|
|
@@ -12203,7 +12226,7 @@ function getOriginSign(origin, domain) {
|
|
|
12203
12226
|
return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
|
|
12204
12227
|
};
|
|
12205
12228
|
|
|
12206
|
-
return
|
|
12229
|
+
return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain) ? "positive" : getSign();
|
|
12207
12230
|
}
|
|
12208
12231
|
/**
|
|
12209
12232
|
* @param {ReactComponent} component: a victory axis component.
|
|
@@ -12270,13 +12293,15 @@ function isVertical(props) {
|
|
|
12270
12293
|
|
|
12271
12294
|
|
|
12272
12295
|
function stringTicks(props) {
|
|
12273
|
-
return props.tickValues !== undefined &&
|
|
12296
|
+
return props.tickValues !== undefined && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(props.tickValues);
|
|
12274
12297
|
}
|
|
12275
12298
|
|
|
12276
12299
|
function getDefaultTickFormat(props) {
|
|
12277
|
-
var tickValues = props.tickValues
|
|
12278
|
-
|
|
12279
|
-
var
|
|
12300
|
+
var tickValues = props.tickValues;
|
|
12301
|
+
var axis = getAxis(props);
|
|
12302
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
12303
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
12304
|
+
var fallbackFormat = tickValues && !__WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(tickValues) ? function (x) {
|
|
12280
12305
|
return x;
|
|
12281
12306
|
} : undefined;
|
|
12282
12307
|
|
|
@@ -12303,12 +12328,14 @@ function getDefaultTickFormat(props) {
|
|
|
12303
12328
|
}
|
|
12304
12329
|
|
|
12305
12330
|
function getTickFormat(props, scale) {
|
|
12306
|
-
var tickFormat = props.tickFormat
|
|
12307
|
-
|
|
12331
|
+
var tickFormat = props.tickFormat;
|
|
12332
|
+
var axis = getAxis(props);
|
|
12333
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
12334
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
12308
12335
|
|
|
12309
12336
|
if (!tickFormat) {
|
|
12310
12337
|
var defaultTickFormat = getDefaultTickFormat(props);
|
|
12311
|
-
var scaleTickFormat = scale.tickFormat &&
|
|
12338
|
+
var scaleTickFormat = scale.tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
|
|
12312
12339
|
return x;
|
|
12313
12340
|
};
|
|
12314
12341
|
return defaultTickFormat || scaleTickFormat;
|
|
@@ -12316,7 +12343,7 @@ function getTickFormat(props, scale) {
|
|
|
12316
12343
|
return function (x, index) {
|
|
12317
12344
|
return tickFormat[index];
|
|
12318
12345
|
};
|
|
12319
|
-
} else if (tickFormat &&
|
|
12346
|
+
} else if (tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(tickFormat)) {
|
|
12320
12347
|
var applyStringTicks = function (tick, index, ticks) {
|
|
12321
12348
|
var invertedStringMap = __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default()(stringMap);
|
|
12322
12349
|
|
|
@@ -12335,10 +12362,11 @@ function getTickFormat(props, scale) {
|
|
|
12335
12362
|
}
|
|
12336
12363
|
|
|
12337
12364
|
function getStringTicks(props) {
|
|
12338
|
-
var stringMap = props.stringMap;
|
|
12339
12365
|
var axis = getAxis(props);
|
|
12366
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
12367
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
12340
12368
|
var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
|
|
12341
|
-
var ticksFromCategories = categories &&
|
|
12369
|
+
var ticksFromCategories = categories && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsOnlyStrings(categories) ? categories.map(function (tick) {
|
|
12342
12370
|
return stringMap[tick];
|
|
12343
12371
|
}) : undefined;
|
|
12344
12372
|
|
|
@@ -12349,15 +12377,17 @@ function getStringTicks(props) {
|
|
|
12349
12377
|
|
|
12350
12378
|
function getTickArray(props) {
|
|
12351
12379
|
var tickValues = props.tickValues,
|
|
12352
|
-
tickFormat = props.tickFormat
|
|
12353
|
-
|
|
12380
|
+
tickFormat = props.tickFormat;
|
|
12381
|
+
var axis = getAxis(props);
|
|
12382
|
+
var currentAxis = getCurrentAxis(axis, props.horizontal);
|
|
12383
|
+
var stringMap = props.stringMap && props.stringMap[currentAxis];
|
|
12354
12384
|
|
|
12355
12385
|
var getTicksFromFormat = function () {
|
|
12356
12386
|
if (!tickFormat || !Array.isArray(tickFormat)) {
|
|
12357
12387
|
return undefined;
|
|
12358
12388
|
}
|
|
12359
12389
|
|
|
12360
|
-
return
|
|
12390
|
+
return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
|
|
12361
12391
|
return i;
|
|
12362
12392
|
}) : tickFormat;
|
|
12363
12393
|
};
|
|
@@ -12368,7 +12398,7 @@ function getTickArray(props) {
|
|
|
12368
12398
|
ticks = getStringTicks(props);
|
|
12369
12399
|
}
|
|
12370
12400
|
|
|
12371
|
-
if (tickValues &&
|
|
12401
|
+
if (tickValues && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickValues)) {
|
|
12372
12402
|
ticks = stringMap ? tickValues.map(function (tick) {
|
|
12373
12403
|
return stringMap[tick];
|
|
12374
12404
|
}) : __WEBPACK_IMPORTED_MODULE_4_lodash_range___default()(1, tickValues.length + 1);
|
|
@@ -12377,7 +12407,6 @@ function getTickArray(props) {
|
|
|
12377
12407
|
var tickArray = ticks ? __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default()(ticks) : getTicksFromFormat(props);
|
|
12378
12408
|
|
|
12379
12409
|
var filterArray = function (arr) {
|
|
12380
|
-
var axis = getAxis(props);
|
|
12381
12410
|
var domain = props.domain && props.domain[axis] || props.domain;
|
|
12382
12411
|
return Array.isArray(domain) ? arr.filter(function (t) {
|
|
12383
12412
|
return t >= Math.min.apply(Math, _toConsumableArray(domain)) && t <= Math.max.apply(Math, _toConsumableArray(domain));
|
|
@@ -12404,7 +12433,7 @@ function getTicks(props, scale, filterZero) {
|
|
|
12404
12433
|
|
|
12405
12434
|
if (tickValues) {
|
|
12406
12435
|
return downsampleTicks(tickValues, tickCount);
|
|
12407
|
-
} else if (scale.ticks &&
|
|
12436
|
+
} else if (scale.ticks && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.ticks)) {
|
|
12408
12437
|
// eslint-disable-next-line no-magic-numbers
|
|
12409
12438
|
var defaultTickCount = tickCount || 5;
|
|
12410
12439
|
var scaleTicks = scale.ticks(defaultTickCount);
|
|
@@ -12442,18 +12471,18 @@ function getDomainFromData(props, axis) {
|
|
|
12442
12471
|
return undefined;
|
|
12443
12472
|
}
|
|
12444
12473
|
|
|
12445
|
-
var minDomain =
|
|
12446
|
-
var maxDomain =
|
|
12474
|
+
var minDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMinFromProps(props, axis);
|
|
12475
|
+
var maxDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMaxFromProps(props, axis);
|
|
12447
12476
|
var tickStrings = stringTicks(props);
|
|
12448
12477
|
var ticks = tickValues.map(function (value) {
|
|
12449
12478
|
return +value;
|
|
12450
12479
|
});
|
|
12451
|
-
var defaultMin = tickStrings ? 1 :
|
|
12452
|
-
var defaultMax = tickStrings ? tickValues.length :
|
|
12480
|
+
var defaultMin = tickStrings ? 1 : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMinValue(ticks);
|
|
12481
|
+
var defaultMax = tickStrings ? tickValues.length : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMaxValue(ticks);
|
|
12453
12482
|
var min = minDomain !== undefined ? minDomain : defaultMin;
|
|
12454
12483
|
var max = maxDomain !== undefined ? maxDomain : defaultMax;
|
|
12455
|
-
var initialDomain =
|
|
12456
|
-
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ?
|
|
12484
|
+
var initialDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getDomainFromMinMax(min, max);
|
|
12485
|
+
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getSymmetricDomain(initialDomain, ticks) : initialDomain;
|
|
12457
12486
|
|
|
12458
12487
|
if (isVertical(props) && !polar) {
|
|
12459
12488
|
domain.reverse();
|
|
@@ -12470,7 +12499,25 @@ function getDomain(props, axis) {
|
|
|
12470
12499
|
return undefined;
|
|
12471
12500
|
}
|
|
12472
12501
|
|
|
12473
|
-
return
|
|
12502
|
+
return __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].createDomainFunction(getDomainFromData)(props, inherentAxis);
|
|
12503
|
+
}
|
|
12504
|
+
|
|
12505
|
+
function getAxisValue(props, axis) {
|
|
12506
|
+
if (!props.axisValue) {
|
|
12507
|
+
return undefined;
|
|
12508
|
+
}
|
|
12509
|
+
|
|
12510
|
+
var scaleAxis = axis === "x" ? "y" : "x";
|
|
12511
|
+
var scale = __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default()(props.scale) && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(props.scale[scaleAxis]) ? props.scale[scaleAxis] : undefined;
|
|
12512
|
+
|
|
12513
|
+
if (!scale) {
|
|
12514
|
+
return undefined;
|
|
12515
|
+
}
|
|
12516
|
+
|
|
12517
|
+
var stringMapAxis = getCurrentAxis(axis, props.horizontal) === "x" ? "y" : "x";
|
|
12518
|
+
var stringMap = __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default()(props.stringMap) && props.stringMap[stringMapAxis];
|
|
12519
|
+
var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
|
|
12520
|
+
return scale(axisValue);
|
|
12474
12521
|
}
|
|
12475
12522
|
|
|
12476
12523
|
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
@@ -12486,7 +12533,8 @@ function getDomain(props, axis) {
|
|
|
12486
12533
|
getOriginSign: getOriginSign,
|
|
12487
12534
|
getDomain: getDomain,
|
|
12488
12535
|
isVertical: isVertical,
|
|
12489
|
-
stringTicks: stringTicks
|
|
12536
|
+
stringTicks: stringTicks,
|
|
12537
|
+
getAxisValue: getAxisValue
|
|
12490
12538
|
});
|
|
12491
12539
|
|
|
12492
12540
|
/***/ }),
|
|
@@ -12668,7 +12716,7 @@ Object.defineProperty(Flyout, "defaultProps", {
|
|
|
12668
12716
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_assign__ = __webpack_require__(/*! lodash/assign */ 2);
|
|
12669
12717
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_lodash_assign__);
|
|
12670
12718
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_victory_core__ = __webpack_require__(/*! victory-core */ 7);
|
|
12671
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
12719
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
12672
12720
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react_fast_compare__);
|
|
12673
12721
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_d3_voronoi__ = __webpack_require__(/*! d3-voronoi */ 376);
|
|
12674
12722
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(/*! react */ 0);
|
|
@@ -13933,7 +13981,7 @@ var SelectionHelpers = {
|
|
|
13933
13981
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_lodash_assign__ = __webpack_require__(/*! lodash/assign */ 2);
|
|
13934
13982
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_lodash_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_lodash_assign__);
|
|
13935
13983
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_victory_core__ = __webpack_require__(/*! victory-core */ 7);
|
|
13936
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
13984
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
13937
13985
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_fast_compare__);
|
|
13938
13986
|
|
|
13939
13987
|
|
|
@@ -19274,7 +19322,7 @@ function piecewise(interpolate, values) {
|
|
|
19274
19322
|
|
|
19275
19323
|
"use strict";
|
|
19276
19324
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VictoryContainer; });
|
|
19277
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */
|
|
19325
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 10);
|
|
19278
19326
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
|
|
19279
19327
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 44);
|
|
19280
19328
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__);
|
|
@@ -19963,7 +20011,7 @@ module.exports = basePick;
|
|
|
19963
20011
|
var assignValue = __webpack_require__(/*! ./_assignValue */ 72),
|
|
19964
20012
|
castPath = __webpack_require__(/*! ./_castPath */ 38),
|
|
19965
20013
|
isIndex = __webpack_require__(/*! ./_isIndex */ 107),
|
|
19966
|
-
isObject = __webpack_require__(/*! ./isObject */
|
|
20014
|
+
isObject = __webpack_require__(/*! ./isObject */ 10),
|
|
19967
20015
|
toKey = __webpack_require__(/*! ./_toKey */ 27);
|
|
19968
20016
|
|
|
19969
20017
|
/**
|
|
@@ -20380,7 +20428,7 @@ Object.defineProperty(VictoryLabel, "defaultProps", {
|
|
|
20380
20428
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VictoryClipContainer; });
|
|
20381
20429
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 44);
|
|
20382
20430
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__);
|
|
20383
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */
|
|
20431
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 10);
|
|
20384
20432
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isObject__);
|
|
20385
20433
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 3);
|
|
20386
20434
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__);
|
|
@@ -22032,7 +22080,7 @@ Object.defineProperty(Whisker, "defaultProps", {
|
|
|
22032
22080
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(/*! react */ 0);
|
|
22033
22081
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
|
|
22034
22082
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__events__ = __webpack_require__(/*! ./events */ 80);
|
|
22035
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
22083
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
22036
22084
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_fast_compare__);
|
|
22037
22085
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__victory_transition_victory_transition__ = __webpack_require__(/*! ../victory-transition/victory-transition */ 126);
|
|
22038
22086
|
|
|
@@ -22071,9 +22119,18 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
22071
22119
|
|
|
22072
22120
|
var datumHasXandY = function (datum) {
|
|
22073
22121
|
return !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._x) && !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._y);
|
|
22074
|
-
};
|
|
22075
|
-
|
|
22076
|
-
|
|
22122
|
+
}; // used for checking state changes. Expected components can be passed in via options
|
|
22123
|
+
|
|
22124
|
+
|
|
22125
|
+
var defaultComponents = [{
|
|
22126
|
+
name: "parent",
|
|
22127
|
+
index: "parent"
|
|
22128
|
+
}, {
|
|
22129
|
+
name: "data"
|
|
22130
|
+
}, {
|
|
22131
|
+
name: "labels"
|
|
22132
|
+
}];
|
|
22133
|
+
/* unused harmony default export */ var _unused_webpack_default_export = (function (WrappedComponent, options) {
|
|
22077
22134
|
return (
|
|
22078
22135
|
/*#__PURE__*/
|
|
22079
22136
|
function (_WrappedComponent) {
|
|
@@ -22100,23 +22157,73 @@ var datumHasXandY = function (datum) {
|
|
|
22100
22157
|
_this.cacheValues(calculatedValues);
|
|
22101
22158
|
|
|
22102
22159
|
_this.externalMutations = _this.getExternalMutations(props);
|
|
22160
|
+
_this.calculatedState = _this.getStateChanges(props, calculatedValues);
|
|
22103
22161
|
return _this;
|
|
22104
22162
|
}
|
|
22105
22163
|
|
|
22106
22164
|
_createClass(addEvents, [{
|
|
22107
|
-
key: "
|
|
22108
|
-
value: function
|
|
22109
|
-
var
|
|
22110
|
-
|
|
22111
|
-
|
|
22165
|
+
key: "shouldComponentUpdate",
|
|
22166
|
+
value: function shouldComponentUpdate(nextProps) {
|
|
22167
|
+
var calculatedValues = this.getCalculatedValues(nextProps);
|
|
22168
|
+
var externalMutations = this.getExternalMutations(nextProps);
|
|
22169
|
+
var animating = this.props.animating || this.props.animate;
|
|
22170
|
+
var newMutation = !__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(externalMutations, this.externalMutations);
|
|
22171
|
+
|
|
22172
|
+
if (animating || newMutation) {
|
|
22173
|
+
this.cacheValues(calculatedValues);
|
|
22112
22174
|
this.externalMutations = externalMutations;
|
|
22113
|
-
this.applyExternalMutations(
|
|
22175
|
+
this.applyExternalMutations(nextProps, externalMutations);
|
|
22176
|
+
return true;
|
|
22114
22177
|
}
|
|
22115
|
-
|
|
22178
|
+
|
|
22179
|
+
var calculatedState = this.getStateChanges(nextProps, calculatedValues);
|
|
22180
|
+
|
|
22181
|
+
if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.calculatedState, calculatedState)) {
|
|
22182
|
+
this.calculatedState = calculatedState;
|
|
22183
|
+
this.cacheValues(calculatedValues);
|
|
22184
|
+
return true;
|
|
22185
|
+
}
|
|
22186
|
+
|
|
22187
|
+
if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.props, nextProps)) {
|
|
22188
|
+
this.cacheValues(calculatedValues);
|
|
22189
|
+
return true;
|
|
22190
|
+
}
|
|
22191
|
+
|
|
22192
|
+
return false;
|
|
22193
|
+
} // compile all state changes from own and parent state. Order doesn't matter, as any state
|
|
22194
|
+
// state change should trigger a re-render
|
|
22195
|
+
|
|
22116
22196
|
}, {
|
|
22117
|
-
key: "
|
|
22118
|
-
value: function
|
|
22119
|
-
this
|
|
22197
|
+
key: "getStateChanges",
|
|
22198
|
+
value: function getStateChanges(props, calculatedValues) {
|
|
22199
|
+
var _this2 = this;
|
|
22200
|
+
|
|
22201
|
+
var hasEvents = calculatedValues.hasEvents,
|
|
22202
|
+
getSharedEventState = calculatedValues.getSharedEventState;
|
|
22203
|
+
|
|
22204
|
+
if (!hasEvents) {
|
|
22205
|
+
return {};
|
|
22206
|
+
}
|
|
22207
|
+
|
|
22208
|
+
var getState = function (key, type) {
|
|
22209
|
+
var result = __WEBPACK_IMPORTED_MODULE_7_lodash_defaults___default()({}, _this2.getEventState(key, type), getSharedEventState(key, type));
|
|
22210
|
+
|
|
22211
|
+
return __WEBPACK_IMPORTED_MODULE_1_lodash_isEmpty___default()(result) ? undefined : result;
|
|
22212
|
+
};
|
|
22213
|
+
|
|
22214
|
+
options = options || {};
|
|
22215
|
+
var components = options.components || defaultComponents;
|
|
22216
|
+
var stateChanges = components.map(function (component) {
|
|
22217
|
+
if (!props.standalone && component.name === "parent") {
|
|
22218
|
+
// don't check for changes on parent props for non-standalone components
|
|
22219
|
+
return undefined;
|
|
22220
|
+
} else {
|
|
22221
|
+
return component.index !== undefined ? getState(component.index, component.name) : calculatedValues.dataKeys.map(function (key) {
|
|
22222
|
+
return getState(key, component.name);
|
|
22223
|
+
}).filter(Boolean);
|
|
22224
|
+
}
|
|
22225
|
+
}).filter(Boolean);
|
|
22226
|
+
return stateChanges;
|
|
22120
22227
|
}
|
|
22121
22228
|
}, {
|
|
22122
22229
|
key: "applyExternalMutations",
|
|
@@ -22170,10 +22277,10 @@ var datumHasXandY = function (datum) {
|
|
|
22170
22277
|
}, {
|
|
22171
22278
|
key: "cacheValues",
|
|
22172
22279
|
value: function cacheValues(obj) {
|
|
22173
|
-
var
|
|
22280
|
+
var _this3 = this;
|
|
22174
22281
|
|
|
22175
22282
|
__WEBPACK_IMPORTED_MODULE_5_lodash_keys___default()(obj).forEach(function (key) {
|
|
22176
|
-
|
|
22283
|
+
_this3[key] = obj[key];
|
|
22177
22284
|
});
|
|
22178
22285
|
}
|
|
22179
22286
|
}, {
|
|
@@ -22259,7 +22366,7 @@ var datumHasXandY = function (datum) {
|
|
|
22259
22366
|
}, {
|
|
22260
22367
|
key: "renderContinuousData",
|
|
22261
22368
|
value: function renderContinuousData(props) {
|
|
22262
|
-
var
|
|
22369
|
+
var _this4 = this;
|
|
22263
22370
|
|
|
22264
22371
|
var dataComponent = props.dataComponent,
|
|
22265
22372
|
labelComponent = props.labelComponent,
|
|
@@ -22268,7 +22375,7 @@ var datumHasXandY = function (datum) {
|
|
|
22268
22375
|
var dataKeys = __WEBPACK_IMPORTED_MODULE_2_lodash_without___default()(this.dataKeys, "all");
|
|
22269
22376
|
|
|
22270
22377
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
22271
|
-
var labelProps =
|
|
22378
|
+
var labelProps = _this4.getComponentProps(labelComponent, "labels", key);
|
|
22272
22379
|
|
|
22273
22380
|
if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
|
|
22274
22381
|
memo = memo.concat(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps));
|
|
@@ -22283,14 +22390,14 @@ var datumHasXandY = function (datum) {
|
|
|
22283
22390
|
}, {
|
|
22284
22391
|
key: "renderData",
|
|
22285
22392
|
value: function renderData(props) {
|
|
22286
|
-
var
|
|
22393
|
+
var _this5 = this;
|
|
22287
22394
|
|
|
22288
22395
|
var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
|
|
22289
22396
|
var dataComponent = props.dataComponent,
|
|
22290
22397
|
labelComponent = props.labelComponent,
|
|
22291
22398
|
groupComponent = props.groupComponent;
|
|
22292
22399
|
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
22293
|
-
var dataProps =
|
|
22400
|
+
var dataProps = _this5.getComponentProps(dataComponent, "data", index);
|
|
22294
22401
|
|
|
22295
22402
|
if (shouldRenderDatum(dataProps.datum)) {
|
|
22296
22403
|
validDataComponents.push(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(dataComponent, dataProps));
|
|
@@ -22299,7 +22406,7 @@ var datumHasXandY = function (datum) {
|
|
|
22299
22406
|
return validDataComponents;
|
|
22300
22407
|
}, []);
|
|
22301
22408
|
var labelComponents = this.dataKeys.map(function (_dataKey, index) {
|
|
22302
|
-
var labelProps =
|
|
22409
|
+
var labelProps = _this5.getComponentProps(labelComponent, "labels", index);
|
|
22303
22410
|
|
|
22304
22411
|
if (labelProps.text !== undefined && labelProps.text !== null) {
|
|
22305
22412
|
return __WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps);
|
|
@@ -25826,14 +25933,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
|
25826
25933
|
getAllEvents: function (props) {
|
|
25827
25934
|
var components = ["groupComponent", "containerComponent", "labelComponent"];
|
|
25828
25935
|
this.componentEvents = __WEBPACK_IMPORTED_MODULE_15__events__["a" /* default */].getComponentEvents(props, components);
|
|
25936
|
+
var events = props.events;
|
|
25829
25937
|
|
|
25830
25938
|
if (Array.isArray(this.componentEvents)) {
|
|
25831
25939
|
var _componentEvents;
|
|
25832
25940
|
|
|
25833
|
-
|
|
25941
|
+
events = Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
|
|
25834
25942
|
}
|
|
25835
25943
|
|
|
25836
|
-
return
|
|
25944
|
+
return events || [];
|
|
25837
25945
|
},
|
|
25838
25946
|
getAnimationProps: function (props, child, index) {
|
|
25839
25947
|
var _this = this;
|
|
@@ -26071,9 +26179,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
|
|
|
26071
26179
|
};
|
|
26072
26180
|
|
|
26073
26181
|
var combine = function (memo, datum) {
|
|
26182
|
+
var x = Array.isArray(datum) ? datum.map(function (d) {
|
|
26183
|
+
return d.x;
|
|
26184
|
+
}).filter(Boolean) : datum.x;
|
|
26185
|
+
var y = Array.isArray(datum) ? datum.map(function (d) {
|
|
26186
|
+
return d.y;
|
|
26187
|
+
}).filter(Boolean) : datum.y;
|
|
26074
26188
|
return {
|
|
26075
|
-
x:
|
|
26076
|
-
y:
|
|
26189
|
+
x: x !== undefined ? memo.x.concat(x) : memo.x,
|
|
26190
|
+
y: y !== undefined ? memo.y.concat(y) : memo.y
|
|
26077
26191
|
};
|
|
26078
26192
|
};
|
|
26079
26193
|
|
|
@@ -27291,7 +27405,7 @@ Object.defineProperty(VictoryTooltip, "defaultEvents", {
|
|
|
27291
27405
|
/*! all exports used */
|
|
27292
27406
|
/***/ (function(module, exports, __webpack_require__) {
|
|
27293
27407
|
|
|
27294
|
-
var isObject = __webpack_require__(/*! ./isObject */
|
|
27408
|
+
var isObject = __webpack_require__(/*! ./isObject */ 10),
|
|
27295
27409
|
now = __webpack_require__(/*! ./now */ 375),
|
|
27296
27410
|
toNumber = __webpack_require__(/*! ./toNumber */ 119);
|
|
27297
27411
|
|
|
@@ -28384,7 +28498,7 @@ var selectionContainerMixin = function (base) {
|
|
|
28384
28498
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react__);
|
|
28385
28499
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_victory_core__ = __webpack_require__(/*! victory-core */ 7);
|
|
28386
28500
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__brush_helpers__ = __webpack_require__(/*! ./brush-helpers */ 163);
|
|
28387
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */
|
|
28501
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
|
|
28388
28502
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_fast_compare__);
|
|
28389
28503
|
|
|
28390
28504
|
|
|
@@ -28665,7 +28779,7 @@ var brushContainerMixin = function (base) {
|
|
|
28665
28779
|
|
|
28666
28780
|
"use strict";
|
|
28667
28781
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cursorContainerMixin; });
|
|
28668
|
-
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */
|
|
28782
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 10);
|
|
28669
28783
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
|
|
28670
28784
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_assign__ = __webpack_require__(/*! lodash/assign */ 2);
|
|
28671
28785
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_assign___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_assign__);
|