victory-brush-line 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.
@@ -506,9 +506,7 @@ function reduceChildren(children, iteratee) {
506
506
  } else {
507
507
  var result = iteratee(child, childName, parent);
508
508
 
509
- if (Array.isArray(result)) {
510
- memo = result.reduce(combine, memo);
511
- } else if (result) {
509
+ if (result) {
512
510
  memo = combine(memo, result);
513
511
  }
514
512
  }
@@ -661,7 +659,7 @@ function newInterval(floori, offseti, count, field) {
661
659
  /***/ (function(module, exports, __webpack_require__) {
662
660
 
663
661
  var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ 92),
664
- isObject = __webpack_require__(/*! ./isObject */ 13);
662
+ isObject = __webpack_require__(/*! ./isObject */ 11);
665
663
 
666
664
  /** `Object#toString` result references. */
667
665
  var asyncTag = '[object AsyncFunction]',
@@ -813,6 +811,115 @@ module.exports = defaults;
813
811
 
814
812
  /***/ }),
815
813
  /* 8 */
814
+ /*!************************************************************************************!*\
815
+ !*** /Users/boygirl/formidable/v/victory/node_modules/react-fast-compare/index.js ***!
816
+ \************************************************************************************/
817
+ /*! dynamic exports provided */
818
+ /*! exports used: default */
819
+ /***/ (function(module, exports, __webpack_require__) {
820
+
821
+ "use strict";
822
+
823
+
824
+ var isArray = Array.isArray;
825
+ var keyList = Object.keys;
826
+ var hasProp = Object.prototype.hasOwnProperty;
827
+ var hasElementType = typeof Element !== 'undefined';
828
+
829
+ function equal(a, b) {
830
+ // fast-deep-equal index.js 2.0.1
831
+ if (a === b) return true;
832
+
833
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
834
+ var arrA = isArray(a)
835
+ , arrB = isArray(b)
836
+ , i
837
+ , length
838
+ , key;
839
+
840
+ if (arrA && arrB) {
841
+ length = a.length;
842
+ if (length != b.length) return false;
843
+ for (i = length; i-- !== 0;)
844
+ if (!equal(a[i], b[i])) return false;
845
+ return true;
846
+ }
847
+
848
+ if (arrA != arrB) return false;
849
+
850
+ var dateA = a instanceof Date
851
+ , dateB = b instanceof Date;
852
+ if (dateA != dateB) return false;
853
+ if (dateA && dateB) return a.getTime() == b.getTime();
854
+
855
+ var regexpA = a instanceof RegExp
856
+ , regexpB = b instanceof RegExp;
857
+ if (regexpA != regexpB) return false;
858
+ if (regexpA && regexpB) return a.toString() == b.toString();
859
+
860
+ var keys = keyList(a);
861
+ length = keys.length;
862
+
863
+ if (length !== keyList(b).length)
864
+ return false;
865
+
866
+ for (i = length; i-- !== 0;)
867
+ if (!hasProp.call(b, keys[i])) return false;
868
+ // end fast-deep-equal
869
+
870
+ // start react-fast-compare
871
+ // custom handling for DOM elements
872
+ if (hasElementType && a instanceof Element && b instanceof Element)
873
+ return a === b;
874
+
875
+ // custom handling for React
876
+ for (i = length; i-- !== 0;) {
877
+ key = keys[i];
878
+ if (key === '_owner' && a.$$typeof) {
879
+ // React-specific: avoid traversing React elements' _owner.
880
+ // _owner contains circular references
881
+ // and is not needed when comparing the actual elements (and not their owners)
882
+ // .$$typeof and ._store on just reasonable markers of a react element
883
+ continue;
884
+ } else {
885
+ // all other properties should be traversed as usual
886
+ if (!equal(a[key], b[key])) {
887
+ // console.log(key)
888
+ return false
889
+ };
890
+ }
891
+ }
892
+ // end react-fast-compare
893
+
894
+ // fast-deep-equal index.js 2.0.1
895
+ return true;
896
+ }
897
+
898
+ return a !== a && b !== b;
899
+ }
900
+ // end fast-deep-equal
901
+
902
+ module.exports = function exportedEqual(a, b) {
903
+ try {
904
+ return equal(a, b);
905
+ } catch (error) {
906
+ if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
907
+ // warn on circular references, don't crash
908
+ // browsers give this different errors name and messages:
909
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
910
+ // firefox: "InternalError", too much recursion"
911
+ // edge: "Error", "Out of stack space"
912
+ console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
913
+ return false;
914
+ }
915
+ // some other error. we should definitely know about these
916
+ throw error;
917
+ }
918
+ };
919
+
920
+
921
+ /***/ }),
922
+ /* 9 */
816
923
  /*!******************************************************************************!*\
817
924
  !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/index.js ***!
818
925
  \******************************************************************************/
@@ -909,7 +1016,7 @@ module.exports = defaults;
909
1016
 
910
1017
 
911
1018
  /***/ }),
912
- /* 9 */
1019
+ /* 10 */
913
1020
  /*!********************************************************************************!*\
914
1021
  !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/duration.js ***!
915
1022
  \********************************************************************************/
@@ -931,7 +1038,49 @@ var durationWeek = 6048e5;
931
1038
 
932
1039
 
933
1040
  /***/ }),
934
- /* 10 */
1041
+ /* 11 */
1042
+ /*!***************************************************************************!*\
1043
+ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObject.js ***!
1044
+ \***************************************************************************/
1045
+ /*! dynamic exports provided */
1046
+ /*! all exports used */
1047
+ /***/ (function(module, exports) {
1048
+
1049
+ /**
1050
+ * Checks if `value` is the
1051
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1052
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1053
+ *
1054
+ * @static
1055
+ * @memberOf _
1056
+ * @since 0.1.0
1057
+ * @category Lang
1058
+ * @param {*} value The value to check.
1059
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1060
+ * @example
1061
+ *
1062
+ * _.isObject({});
1063
+ * // => true
1064
+ *
1065
+ * _.isObject([1, 2, 3]);
1066
+ * // => true
1067
+ *
1068
+ * _.isObject(_.noop);
1069
+ * // => true
1070
+ *
1071
+ * _.isObject(null);
1072
+ * // => false
1073
+ */
1074
+ function isObject(value) {
1075
+ var type = typeof value;
1076
+ return value != null && (type == 'object' || type == 'function');
1077
+ }
1078
+
1079
+ module.exports = isObject;
1080
+
1081
+
1082
+ /***/ }),
1083
+ /* 12 */
935
1084
  /*!******************************************************************************!*\
936
1085
  !*** /Users/boygirl/formidable/v/victory/node_modules/d3-color/src/index.js ***!
937
1086
  \******************************************************************************/
@@ -957,113 +1106,7 @@ var durationWeek = 6048e5;
957
1106
 
958
1107
 
959
1108
  /***/ }),
960
- /* 11 */
961
- /*!************************************************************************************!*\
962
- !*** /Users/boygirl/formidable/v/victory/node_modules/react-fast-compare/index.js ***!
963
- \************************************************************************************/
964
- /*! dynamic exports provided */
965
- /*! exports used: default */
966
- /***/ (function(module, exports, __webpack_require__) {
967
-
968
- "use strict";
969
-
970
-
971
- var isArray = Array.isArray;
972
- var keyList = Object.keys;
973
- var hasProp = Object.prototype.hasOwnProperty;
974
- var hasElementType = typeof Element !== 'undefined';
975
-
976
- function equal(a, b) {
977
- // fast-deep-equal index.js 2.0.1
978
- if (a === b) return true;
979
-
980
- if (a && b && typeof a == 'object' && typeof b == 'object') {
981
- var arrA = isArray(a)
982
- , arrB = isArray(b)
983
- , i
984
- , length
985
- , key;
986
-
987
- if (arrA && arrB) {
988
- length = a.length;
989
- if (length != b.length) return false;
990
- for (i = length; i-- !== 0;)
991
- if (!equal(a[i], b[i])) return false;
992
- return true;
993
- }
994
-
995
- if (arrA != arrB) return false;
996
-
997
- var dateA = a instanceof Date
998
- , dateB = b instanceof Date;
999
- if (dateA != dateB) return false;
1000
- if (dateA && dateB) return a.getTime() == b.getTime();
1001
-
1002
- var regexpA = a instanceof RegExp
1003
- , regexpB = b instanceof RegExp;
1004
- if (regexpA != regexpB) return false;
1005
- if (regexpA && regexpB) return a.toString() == b.toString();
1006
-
1007
- var keys = keyList(a);
1008
- length = keys.length;
1009
-
1010
- if (length !== keyList(b).length)
1011
- return false;
1012
-
1013
- for (i = length; i-- !== 0;)
1014
- if (!hasProp.call(b, keys[i])) return false;
1015
- // end fast-deep-equal
1016
-
1017
- // start react-fast-compare
1018
- // custom handling for DOM elements
1019
- if (hasElementType && a instanceof Element && b instanceof Element)
1020
- return a === b;
1021
-
1022
- // custom handling for React
1023
- for (i = length; i-- !== 0;) {
1024
- key = keys[i];
1025
- if (key === '_owner' && a.$$typeof) {
1026
- // React-specific: avoid traversing React elements' _owner.
1027
- // _owner contains circular references
1028
- // and is not needed when comparing the actual elements (and not their owners)
1029
- // .$$typeof and ._store on just reasonable markers of a react element
1030
- continue;
1031
- } else {
1032
- // all other properties should be traversed as usual
1033
- if (!equal(a[key], b[key])) return false;
1034
- }
1035
- }
1036
- // end react-fast-compare
1037
-
1038
- // fast-deep-equal index.js 2.0.1
1039
- return true;
1040
- }
1041
-
1042
- return a !== a && b !== b;
1043
- }
1044
- // end fast-deep-equal
1045
-
1046
- module.exports = function exportedEqual(a, b) {
1047
- try {
1048
- return equal(a, b);
1049
- } catch (error) {
1050
- if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
1051
- // warn on circular references, don't crash
1052
- // browsers give this different errors name and messages:
1053
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
1054
- // firefox: "InternalError", too much recursion"
1055
- // edge: "Error", "Out of stack space"
1056
- console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
1057
- return false;
1058
- }
1059
- // some other error. we should definitely know about these
1060
- throw error;
1061
- }
1062
- };
1063
-
1064
-
1065
- /***/ }),
1066
- /* 12 */
1109
+ /* 13 */
1067
1110
  /*!***********************************************************************************************!*\
1068
1111
  !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/collection.js ***!
1069
1112
  \***********************************************************************************************/
@@ -1150,48 +1193,6 @@ function getMinValue(arr) {
1150
1193
  removeUndefined: removeUndefined
1151
1194
  });
1152
1195
 
1153
- /***/ }),
1154
- /* 13 */
1155
- /*!***************************************************************************!*\
1156
- !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObject.js ***!
1157
- \***************************************************************************/
1158
- /*! dynamic exports provided */
1159
- /*! all exports used */
1160
- /***/ (function(module, exports) {
1161
-
1162
- /**
1163
- * Checks if `value` is the
1164
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1165
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1166
- *
1167
- * @static
1168
- * @memberOf _
1169
- * @since 0.1.0
1170
- * @category Lang
1171
- * @param {*} value The value to check.
1172
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1173
- * @example
1174
- *
1175
- * _.isObject({});
1176
- * // => true
1177
- *
1178
- * _.isObject([1, 2, 3]);
1179
- * // => true
1180
- *
1181
- * _.isObject(_.noop);
1182
- * // => true
1183
- *
1184
- * _.isObject(null);
1185
- * // => false
1186
- */
1187
- function isObject(value) {
1188
- var type = typeof value;
1189
- return value != null && (type == 'object' || type == 'function');
1190
- }
1191
-
1192
- module.exports = isObject;
1193
-
1194
-
1195
1196
  /***/ }),
1196
1197
  /* 14 */
1197
1198
  /*!******************************************************************************!*\
@@ -1975,7 +1976,7 @@ module.exports = arrayIncludes;
1975
1976
  "use strict";
1976
1977
  /* harmony export (immutable) */ __webpack_exports__["b"] = linearish;
1977
1978
  /* harmony export (immutable) */ __webpack_exports__["a"] = linear;
1978
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 8);
1979
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
1979
1980
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
1980
1981
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__continuous__ = __webpack_require__(/*! ./continuous */ 43);
1981
1982
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tickFormat__ = __webpack_require__(/*! ./tickFormat */ 285);
@@ -2815,7 +2816,7 @@ module.exports = uniq;
2815
2816
  /* harmony export (immutable) */ __webpack_exports__["c"] = deinterpolateLinear;
2816
2817
  /* harmony export (immutable) */ __webpack_exports__["a"] = copy;
2817
2818
  /* harmony export (immutable) */ __webpack_exports__["b"] = continuous;
2818
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 8);
2819
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
2819
2820
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
2820
2821
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(/*! ./array */ 14);
2821
2822
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constant__ = __webpack_require__(/*! ./constant */ 79);
@@ -3553,7 +3554,7 @@ module.exports = property;
3553
3554
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3554
3555
 
3555
3556
  "use strict";
3556
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 10);
3557
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
3557
3558
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__rgb__ = __webpack_require__(/*! ./rgb */ 103);
3558
3559
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(/*! ./array */ 106);
3559
3560
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__date__ = __webpack_require__(/*! ./date */ 107);
@@ -4682,7 +4683,7 @@ function getTransitionPropsFactory(props, state, setState) {
4682
4683
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
4683
4684
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
4684
4685
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
4685
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 11);
4686
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
4686
4687
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
4687
4688
  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); }
4688
4689
 
@@ -4793,7 +4794,7 @@ Object.defineProperty(Rect, "propTypes", {
4793
4794
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
4794
4795
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
4795
4796
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
4796
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 11);
4797
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
4797
4798
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
4798
4799
  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); }
4799
4800
 
@@ -4888,7 +4889,7 @@ Object.defineProperty(Path, "propTypes", {
4888
4889
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
4889
4890
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
4890
4891
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
4891
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 11);
4892
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
4892
4893
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
4893
4894
  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); }
4894
4895
 
@@ -5566,7 +5567,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
5566
5567
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react__ = __webpack_require__(/*! react */ 0);
5567
5568
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react__);
5568
5569
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__helpers__ = __webpack_require__(/*! ./helpers */ 3);
5569
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__collection__ = __webpack_require__(/*! ./collection */ 12);
5570
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__collection__ = __webpack_require__(/*! ./collection */ 13);
5570
5571
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__scale__ = __webpack_require__(/*! ./scale */ 76);
5571
5572
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__immutable__ = __webpack_require__(/*! ./immutable */ 144);
5572
5573
 
@@ -5909,8 +5910,13 @@ function getStringsFromData(props, axis) {
5909
5910
  }
5910
5911
 
5911
5912
  var key = props[axis] === undefined ? axis : props[axis];
5912
- var accessor = __WEBPACK_IMPORTED_MODULE_12__helpers__["a" /* default */].createAccessor(key);
5913
- var sortedData = sortData(props.data, props.sortKey, props.sortOrder);
5913
+ var accessor = __WEBPACK_IMPORTED_MODULE_12__helpers__["a" /* default */].createAccessor(key); // support immutable data
5914
+
5915
+ var data = props.data.reduce(function (memo, d) {
5916
+ memo.push(parseDatum(d));
5917
+ return memo;
5918
+ }, []);
5919
+ var sortedData = sortData(data, props.sortKey, props.sortOrder);
5914
5920
  var dataStrings = sortedData.reduce(function (dataArr, datum) {
5915
5921
  datum = parseDatum(datum);
5916
5922
  dataArr.push(accessor(datum));
@@ -5978,7 +5984,7 @@ function isDataComponent(component) {
5978
5984
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_includes__ = __webpack_require__(/*! lodash/includes */ 26);
5979
5985
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_includes___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_includes__);
5980
5986
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__helpers__ = __webpack_require__(/*! ./helpers */ 3);
5981
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__collection__ = __webpack_require__(/*! ./collection */ 12);
5987
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__collection__ = __webpack_require__(/*! ./collection */ 13);
5982
5988
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_d3_scale__ = __webpack_require__(/*! d3-scale */ 260);
5983
5989
 
5984
5990
 
@@ -6462,7 +6468,7 @@ function defaultLocale(definition) {
6462
6468
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__data__ = __webpack_require__(/*! ./data */ 75);
6463
6469
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__scale__ = __webpack_require__(/*! ./scale */ 76);
6464
6470
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__helpers__ = __webpack_require__(/*! ./helpers */ 3);
6465
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__collection__ = __webpack_require__(/*! ./collection */ 12);
6471
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__collection__ = __webpack_require__(/*! ./collection */ 13);
6466
6472
 
6467
6473
 
6468
6474
 
@@ -7278,6 +7284,8 @@ module.exports = stubFalse;
7278
7284
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_ease__ = __webpack_require__(/*! d3-ease */ 174);
7279
7285
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(/*! ./util */ 185);
7280
7286
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__victory_util_timer__ = __webpack_require__(/*! ../victory-util/timer */ 39);
7287
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
7288
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_fast_compare__);
7281
7289
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
7282
7290
 
7283
7291
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
@@ -7305,6 +7313,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7305
7313
 
7306
7314
 
7307
7315
 
7316
+
7308
7317
  var VictoryAnimation =
7309
7318
  /*#__PURE__*/
7310
7319
  function (_React$Component) {
@@ -7348,31 +7357,35 @@ function (_React$Component) {
7348
7357
  this.traverseQueue();
7349
7358
  }
7350
7359
  }
7351
- /* lifecycle */
7352
-
7353
7360
  }, {
7354
- key: "componentWillReceiveProps",
7355
- value: function componentWillReceiveProps(nextProps) {
7356
- /* cancel existing loop if it exists */
7357
- this.getTimer().unsubscribe(this.loopID);
7358
- /* If an object was supplied */
7359
-
7360
- if (!Array.isArray(nextProps.data)) {
7361
- // Replace the tween queue. Could set `this.queue = [nextProps.data]`,
7362
- // but let's reuse the same array.
7363
- this.queue.length = 0;
7364
- this.queue.push(nextProps.data);
7365
- /* If an array was supplied */
7366
- } else {
7367
- var _queue;
7361
+ key: "shouldComponentUpdate",
7362
+ value: function shouldComponentUpdate(nextProps, nextState) {
7363
+ var equalProps = __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default()(this.props, nextProps);
7368
7364
 
7369
- /* Extend the tween queue */
7370
- (_queue = this.queue).push.apply(_queue, _toConsumableArray(nextProps.data));
7371
- }
7372
- /* Start traversing the tween queue */
7365
+ if (!equalProps) {
7366
+ /* cancel existing loop if it exists */
7367
+ this.getTimer().unsubscribe(this.loopID);
7368
+ /* If an object was supplied */
7369
+
7370
+ if (!Array.isArray(nextProps.data)) {
7371
+ // Replace the tween queue. Could set `this.queue = [nextProps.data]`,
7372
+ // but let's reuse the same array.
7373
+ this.queue.length = 0;
7374
+ this.queue.push(nextProps.data);
7375
+ /* If an array was supplied */
7376
+ } else {
7377
+ var _queue;
7373
7378
 
7379
+ /* Extend the tween queue */
7380
+ (_queue = this.queue).push.apply(_queue, _toConsumableArray(nextProps.data));
7381
+ }
7382
+ /* Start traversing the tween queue */
7383
+
7384
+
7385
+ this.traverseQueue();
7386
+ }
7374
7387
 
7375
- this.traverseQueue();
7388
+ return nextState.animationInfo.animating || !equalProps;
7376
7389
  }
7377
7390
  }, {
7378
7391
  key: "componentWillUnmount",
@@ -7669,7 +7682,7 @@ module.exports = stubFalse;
7669
7682
  /*! all exports used */
7670
7683
  /***/ (function(module, exports, __webpack_require__) {
7671
7684
 
7672
- var isObject = __webpack_require__(/*! ./isObject */ 13);
7685
+ var isObject = __webpack_require__(/*! ./isObject */ 11);
7673
7686
 
7674
7687
  /**
7675
7688
  * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
@@ -7770,7 +7783,7 @@ var rad2deg = 180 / Math.PI;
7770
7783
  "use strict";
7771
7784
  /* unused harmony export rgbBasis */
7772
7785
  /* unused harmony export rgbBasisClosed */
7773
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 10);
7786
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
7774
7787
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__basis__ = __webpack_require__(/*! ./basis */ 64);
7775
7788
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__basisClosed__ = __webpack_require__(/*! ./basisClosed */ 104);
7776
7789
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__color__ = __webpack_require__(/*! ./color */ 18);
@@ -8598,7 +8611,7 @@ function getProps(props, index) {
8598
8611
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
8599
8612
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
8600
8613
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
8601
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 11);
8614
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
8602
8615
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
8603
8616
  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); }
8604
8617
 
@@ -8695,7 +8708,7 @@ Object.defineProperty(TSpan, "propTypes", {
8695
8708
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
8696
8709
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
8697
8710
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
8698
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 11);
8711
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
8699
8712
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
8700
8713
  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); }
8701
8714
 
@@ -8795,7 +8808,7 @@ Object.defineProperty(Text, "propTypes", {
8795
8808
 
8796
8809
  "use strict";
8797
8810
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VictoryTransition; });
8798
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 13);
8811
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
8799
8812
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
8800
8813
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_pick__ = __webpack_require__(/*! lodash/pick */ 30);
8801
8814
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_pick___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_pick__);
@@ -8808,10 +8821,12 @@ Object.defineProperty(Text, "propTypes", {
8808
8821
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(/*! prop-types */ 1);
8809
8822
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);
8810
8823
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__victory_animation_victory_animation__ = __webpack_require__(/*! ../victory-animation/victory-animation */ 94);
8811
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__victory_util_collection__ = __webpack_require__(/*! ../victory-util/collection */ 12);
8824
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__victory_util_collection__ = __webpack_require__(/*! ../victory-util/collection */ 13);
8812
8825
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__victory_util_helpers__ = __webpack_require__(/*! ../victory-util/helpers */ 3);
8813
8826
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__victory_util_timer__ = __webpack_require__(/*! ../victory-util/timer */ 39);
8814
8827
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__victory_util_transitions__ = __webpack_require__(/*! ../victory-util/transitions */ 68);
8828
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
8829
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react_fast_compare__);
8815
8830
 
8816
8831
 
8817
8832
 
@@ -8839,6 +8854,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
8839
8854
 
8840
8855
 
8841
8856
 
8857
+
8842
8858
  var VictoryTransition =
8843
8859
  /*#__PURE__*/
8844
8860
  function (_React$Component) {
@@ -8870,14 +8886,18 @@ function (_React$Component) {
8870
8886
  }); //eslint-disable-line react/no-did-mount-set-state
8871
8887
  }
8872
8888
  }, {
8873
- key: "componentWillReceiveProps",
8874
- value: function componentWillReceiveProps(nextProps) {
8889
+ key: "shouldComponentUpdate",
8890
+ value: function shouldComponentUpdate(nextProps) {
8875
8891
  var _this2 = this;
8876
8892
 
8877
- this.getTimer().bypassAnimation();
8878
- this.setState(this.getTransitionState(this.props, nextProps), function () {
8879
- return _this2.getTimer().resumeAnimation();
8880
- });
8893
+ if (!__WEBPACK_IMPORTED_MODULE_11_react_fast_compare___default()(this.props, nextProps)) {
8894
+ this.getTimer().bypassAnimation();
8895
+ this.setState(this.getTransitionState(this.props, nextProps), function () {
8896
+ return _this2.getTimer().resumeAnimation();
8897
+ });
8898
+ }
8899
+
8900
+ return true;
8881
8901
  }
8882
8902
  }, {
8883
8903
  key: "componentWillUnmount",
@@ -9140,7 +9160,7 @@ Object.defineProperty(ClipPath, "propTypes", {
9140
9160
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
9141
9161
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
9142
9162
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
9143
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 11);
9163
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
9144
9164
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
9145
9165
  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); }
9146
9166
 
@@ -10082,7 +10102,7 @@ var prefixExponent;
10082
10102
 
10083
10103
  "use strict";
10084
10104
  /* harmony export (immutable) */ __webpack_exports__["a"] = calendar;
10085
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 8);
10105
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
10086
10106
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
10087
10107
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_time__ = __webpack_require__(/*! d3-time */ 81);
10088
10108
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_d3_time_format__ = __webpack_require__(/*! d3-time-format */ 141);
@@ -11037,14 +11057,17 @@ module.exports = values;
11037
11057
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_uniq__);
11038
11058
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert__ = __webpack_require__(/*! lodash/invert */ 337);
11039
11059
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_lodash_invert__);
11040
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
11041
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_lodash_isFunction__);
11042
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_identity__ = __webpack_require__(/*! lodash/identity */ 15);
11043
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_identity___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_lodash_identity__);
11044
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react__ = __webpack_require__(/*! react */ 0);
11045
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react__);
11046
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__collection__ = __webpack_require__(/*! ./collection */ 12);
11047
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__domain__ = __webpack_require__(/*! ./domain */ 83);
11060
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
11061
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_lodash_isObject__);
11062
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
11063
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__);
11064
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity__ = __webpack_require__(/*! lodash/identity */ 15);
11065
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_lodash_identity__);
11066
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(/*! react */ 0);
11067
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
11068
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__collection__ = __webpack_require__(/*! ./collection */ 13);
11069
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__domain__ = __webpack_require__(/*! ./domain */ 83);
11070
+
11048
11071
 
11049
11072
 
11050
11073
 
@@ -11107,14 +11130,14 @@ function getCurrentAxis(axis, horizontal) {
11107
11130
 
11108
11131
 
11109
11132
  function findAxisComponents(childComponents, predicate) {
11110
- predicate = predicate || __WEBPACK_IMPORTED_MODULE_8_lodash_identity___default.a;
11133
+ predicate = predicate || __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default.a;
11111
11134
 
11112
11135
  var findAxes = function (children) {
11113
11136
  return children.reduce(function (memo, child) {
11114
11137
  if (child.type && child.type.role === "axis" && predicate(child)) {
11115
11138
  return memo.concat(child);
11116
11139
  } else if (child.props && child.props.children) {
11117
- return memo.concat(findAxes(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Children.toArray(child.props.children)));
11140
+ return memo.concat(findAxes(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children)));
11118
11141
  }
11119
11142
 
11120
11143
  return memo;
@@ -11158,7 +11181,7 @@ function getAxisComponentsWithParent(childComponents, type) {
11158
11181
  if (child.type && child.type.role === "axis" && matchesType(child)) {
11159
11182
  return memo.concat(child);
11160
11183
  } else if (child.props && child.props.children) {
11161
- var childAxis = findComponents(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Children.toArray(child.props.children));
11184
+ var childAxis = findComponents(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children));
11162
11185
  return childAxis.length > 0 ? memo.concat(child) : memo;
11163
11186
  }
11164
11187
 
@@ -11177,8 +11200,8 @@ function getOrigin(domain) {
11177
11200
  };
11178
11201
 
11179
11202
  return {
11180
- x: __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
11181
- y: __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
11203
+ x: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
11204
+ y: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
11182
11205
  };
11183
11206
  }
11184
11207
 
@@ -11187,7 +11210,7 @@ function getOriginSign(origin, domain) {
11187
11210
  return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
11188
11211
  };
11189
11212
 
11190
- return __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsDates(domain) ? "positive" : getSign();
11213
+ return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain) ? "positive" : getSign();
11191
11214
  }
11192
11215
  /**
11193
11216
  * @param {ReactComponent} component: a victory axis component.
@@ -11254,13 +11277,15 @@ function isVertical(props) {
11254
11277
 
11255
11278
 
11256
11279
  function stringTicks(props) {
11257
- return props.tickValues !== undefined && __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsStrings(props.tickValues);
11280
+ return props.tickValues !== undefined && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(props.tickValues);
11258
11281
  }
11259
11282
 
11260
11283
  function getDefaultTickFormat(props) {
11261
- var tickValues = props.tickValues,
11262
- stringMap = props.stringMap;
11263
- var fallbackFormat = tickValues && !__WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsDates(tickValues) ? function (x) {
11284
+ var tickValues = props.tickValues;
11285
+ var axis = getAxis(props);
11286
+ var currentAxis = getCurrentAxis(axis, props.horizontal);
11287
+ var stringMap = props.stringMap && props.stringMap[currentAxis];
11288
+ var fallbackFormat = tickValues && !__WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(tickValues) ? function (x) {
11264
11289
  return x;
11265
11290
  } : undefined;
11266
11291
 
@@ -11287,12 +11312,14 @@ function getDefaultTickFormat(props) {
11287
11312
  }
11288
11313
 
11289
11314
  function getTickFormat(props, scale) {
11290
- var tickFormat = props.tickFormat,
11291
- stringMap = props.stringMap;
11315
+ var tickFormat = props.tickFormat;
11316
+ var axis = getAxis(props);
11317
+ var currentAxis = getCurrentAxis(axis, props.horizontal);
11318
+ var stringMap = props.stringMap && props.stringMap[currentAxis];
11292
11319
 
11293
11320
  if (!tickFormat) {
11294
11321
  var defaultTickFormat = getDefaultTickFormat(props);
11295
- var scaleTickFormat = scale.tickFormat && __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
11322
+ var scaleTickFormat = scale.tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
11296
11323
  return x;
11297
11324
  };
11298
11325
  return defaultTickFormat || scaleTickFormat;
@@ -11300,7 +11327,7 @@ function getTickFormat(props, scale) {
11300
11327
  return function (x, index) {
11301
11328
  return tickFormat[index];
11302
11329
  };
11303
- } else if (tickFormat && __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction___default()(tickFormat)) {
11330
+ } else if (tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(tickFormat)) {
11304
11331
  var applyStringTicks = function (tick, index, ticks) {
11305
11332
  var invertedStringMap = __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default()(stringMap);
11306
11333
 
@@ -11319,10 +11346,11 @@ function getTickFormat(props, scale) {
11319
11346
  }
11320
11347
 
11321
11348
  function getStringTicks(props) {
11322
- var stringMap = props.stringMap;
11323
11349
  var axis = getAxis(props);
11350
+ var currentAxis = getCurrentAxis(axis, props.horizontal);
11351
+ var stringMap = props.stringMap && props.stringMap[currentAxis];
11324
11352
  var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
11325
- var ticksFromCategories = categories && __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsOnlyStrings(categories) ? categories.map(function (tick) {
11353
+ var ticksFromCategories = categories && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsOnlyStrings(categories) ? categories.map(function (tick) {
11326
11354
  return stringMap[tick];
11327
11355
  }) : undefined;
11328
11356
 
@@ -11333,15 +11361,17 @@ function getStringTicks(props) {
11333
11361
 
11334
11362
  function getTickArray(props) {
11335
11363
  var tickValues = props.tickValues,
11336
- tickFormat = props.tickFormat,
11337
- stringMap = props.stringMap;
11364
+ tickFormat = props.tickFormat;
11365
+ var axis = getAxis(props);
11366
+ var currentAxis = getCurrentAxis(axis, props.horizontal);
11367
+ var stringMap = props.stringMap && props.stringMap[currentAxis];
11338
11368
 
11339
11369
  var getTicksFromFormat = function () {
11340
11370
  if (!tickFormat || !Array.isArray(tickFormat)) {
11341
11371
  return undefined;
11342
11372
  }
11343
11373
 
11344
- return __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
11374
+ return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
11345
11375
  return i;
11346
11376
  }) : tickFormat;
11347
11377
  };
@@ -11352,7 +11382,7 @@ function getTickArray(props) {
11352
11382
  ticks = getStringTicks(props);
11353
11383
  }
11354
11384
 
11355
- if (tickValues && __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsStrings(tickValues)) {
11385
+ if (tickValues && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickValues)) {
11356
11386
  ticks = stringMap ? tickValues.map(function (tick) {
11357
11387
  return stringMap[tick];
11358
11388
  }) : __WEBPACK_IMPORTED_MODULE_4_lodash_range___default()(1, tickValues.length + 1);
@@ -11361,7 +11391,6 @@ function getTickArray(props) {
11361
11391
  var tickArray = ticks ? __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default()(ticks) : getTicksFromFormat(props);
11362
11392
 
11363
11393
  var filterArray = function (arr) {
11364
- var axis = getAxis(props);
11365
11394
  var domain = props.domain && props.domain[axis] || props.domain;
11366
11395
  return Array.isArray(domain) ? arr.filter(function (t) {
11367
11396
  return t >= Math.min.apply(Math, _toConsumableArray(domain)) && t <= Math.max.apply(Math, _toConsumableArray(domain));
@@ -11388,7 +11417,7 @@ function getTicks(props, scale, filterZero) {
11388
11417
 
11389
11418
  if (tickValues) {
11390
11419
  return downsampleTicks(tickValues, tickCount);
11391
- } else if (scale.ticks && __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction___default()(scale.ticks)) {
11420
+ } else if (scale.ticks && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.ticks)) {
11392
11421
  // eslint-disable-next-line no-magic-numbers
11393
11422
  var defaultTickCount = tickCount || 5;
11394
11423
  var scaleTicks = scale.ticks(defaultTickCount);
@@ -11426,18 +11455,18 @@ function getDomainFromData(props, axis) {
11426
11455
  return undefined;
11427
11456
  }
11428
11457
 
11429
- var minDomain = __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].getMinFromProps(props, axis);
11430
- var maxDomain = __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].getMaxFromProps(props, axis);
11458
+ var minDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMinFromProps(props, axis);
11459
+ var maxDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMaxFromProps(props, axis);
11431
11460
  var tickStrings = stringTicks(props);
11432
11461
  var ticks = tickValues.map(function (value) {
11433
11462
  return +value;
11434
11463
  });
11435
- var defaultMin = tickStrings ? 1 : __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].getMinValue(ticks);
11436
- var defaultMax = tickStrings ? tickValues.length : __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].getMaxValue(ticks);
11464
+ var defaultMin = tickStrings ? 1 : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMinValue(ticks);
11465
+ var defaultMax = tickStrings ? tickValues.length : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMaxValue(ticks);
11437
11466
  var min = minDomain !== undefined ? minDomain : defaultMin;
11438
11467
  var max = maxDomain !== undefined ? maxDomain : defaultMax;
11439
- var initialDomain = __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].getDomainFromMinMax(min, max);
11440
- var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].getSymmetricDomain(initialDomain, ticks) : initialDomain;
11468
+ var initialDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getDomainFromMinMax(min, max);
11469
+ var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getSymmetricDomain(initialDomain, ticks) : initialDomain;
11441
11470
 
11442
11471
  if (isVertical(props) && !polar) {
11443
11472
  domain.reverse();
@@ -11454,7 +11483,25 @@ function getDomain(props, axis) {
11454
11483
  return undefined;
11455
11484
  }
11456
11485
 
11457
- return __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].createDomainFunction(getDomainFromData)(props, inherentAxis);
11486
+ return __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].createDomainFunction(getDomainFromData)(props, inherentAxis);
11487
+ }
11488
+
11489
+ function getAxisValue(props, axis) {
11490
+ if (!props.axisValue) {
11491
+ return undefined;
11492
+ }
11493
+
11494
+ var scaleAxis = axis === "x" ? "y" : "x";
11495
+ 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;
11496
+
11497
+ if (!scale) {
11498
+ return undefined;
11499
+ }
11500
+
11501
+ var stringMapAxis = getCurrentAxis(axis, props.horizontal) === "x" ? "y" : "x";
11502
+ var stringMap = __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default()(props.stringMap) && props.stringMap[stringMapAxis];
11503
+ var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
11504
+ return scale(axisValue);
11458
11505
  }
11459
11506
 
11460
11507
  /* harmony default export */ __webpack_exports__["a"] = ({
@@ -11470,7 +11517,8 @@ function getDomain(props, axis) {
11470
11517
  getOriginSign: getOriginSign,
11471
11518
  getDomain: getDomain,
11472
11519
  isVertical: isVertical,
11473
- stringTicks: stringTicks
11520
+ stringTicks: stringTicks,
11521
+ getAxisValue: getAxisValue
11474
11522
  });
11475
11523
 
11476
11524
  /***/ }),
@@ -11512,7 +11560,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
11512
11560
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(/*! prop-types */ 1);
11513
11561
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);
11514
11562
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_victory_core__ = __webpack_require__(/*! victory-core */ 173);
11515
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 11);
11563
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
11516
11564
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_react_fast_compare__);
11517
11565
 
11518
11566
 
@@ -11543,6 +11591,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
11543
11591
 
11544
11592
 
11545
11593
 
11594
+ var SMALL_NUMBER = 1 / Number.MAX_SAFE_INTEGER;
11546
11595
 
11547
11596
  var getScale = function (props) {
11548
11597
  var _props$scale = props.scale,
@@ -11582,7 +11631,23 @@ var getFullDomain = function (props) {
11582
11631
  };
11583
11632
 
11584
11633
  var withinBound = function (value, bound) {
11585
- return value >= Math.min.apply(Math, _toConsumableArray(bound)) && value <= Math.max.apply(Math, _toConsumableArray(bound));
11634
+ return value >= __WEBPACK_IMPORTED_MODULE_6_victory_core__["b" /* Collection */].getMinValue(bound) && value <= __WEBPACK_IMPORTED_MODULE_6_victory_core__["b" /* Collection */].getMaxValue(bound);
11635
+ };
11636
+
11637
+ var getBrushDomain = function (brushDomain, fullDomain) {
11638
+ if (brushDomain) {
11639
+ var brushMin = __WEBPACK_IMPORTED_MODULE_6_victory_core__["b" /* Collection */].getMinValue(brushDomain);
11640
+ var brushMax = __WEBPACK_IMPORTED_MODULE_6_victory_core__["b" /* Collection */].getMaxValue(brushDomain);
11641
+ var domainMin = __WEBPACK_IMPORTED_MODULE_6_victory_core__["b" /* Collection */].getMinValue(fullDomain);
11642
+ var domainMax = __WEBPACK_IMPORTED_MODULE_6_victory_core__["b" /* Collection */].getMaxValue(fullDomain);
11643
+ var defaultMin = brushMin < domainMin ? domainMin : domainMax - SMALL_NUMBER;
11644
+ var defaultMax = brushMax > domainMax ? domainMax : domainMin + SMALL_NUMBER;
11645
+ var min = withinBound(brushMin, fullDomain) ? brushMin : defaultMin;
11646
+ var max = withinBound(brushMax, fullDomain) ? brushMax : defaultMax;
11647
+ return [min, max];
11648
+ }
11649
+
11650
+ return fullDomain;
11586
11651
  };
11587
11652
 
11588
11653
  var getActiveHandle = function (props, position, range) {
@@ -11605,7 +11670,7 @@ var getActiveHandle = function (props, position, range) {
11605
11670
  };
11606
11671
 
11607
11672
  var getMinimumDomain = function () {
11608
- return [0, 1 / Number.MAX_SAFE_INTEGER];
11673
+ return [0, SMALL_NUMBER];
11609
11674
  };
11610
11675
 
11611
11676
  var panBox = function (props, position) {
@@ -11665,7 +11730,7 @@ function (_React$Component) {
11665
11730
  value: function getRectDimensions(props, brushWidth, domain) {
11666
11731
  var dimension = props.dimension,
11667
11732
  brushDomain = props.brushDomain;
11668
- domain = domain || brushDomain || getFullDomain(props);
11733
+ domain = domain || getBrushDomain(brushDomain, getFullDomain(props));
11669
11734
  var range = toRange(props, domain);
11670
11735
  var coordinates = dimension === "x" ? {
11671
11736
  y1: props.y1,
@@ -11708,7 +11773,7 @@ function (_React$Component) {
11708
11773
  y2 = props.y2,
11709
11774
  brushDomain = props.brushDomain;
11710
11775
  var brushWidth = props.brushWidth || props.width;
11711
- var domain = brushDomain || getFullDomain(props);
11776
+ var domain = getBrushDomain(brushDomain, getFullDomain(props));
11712
11777
  var range = toRange(props, domain);
11713
11778
  var defaultX = Math.min(x1, x2) - brushWidth / 2;
11714
11779
  var defaultY = Math.min(y1, y2) - brushWidth / 2;
@@ -11929,7 +11994,7 @@ Object.defineProperty(VictoryBrushLine, "defaultEvents", {
11929
11994
  var parentSVG = targetProps.parentSVG || __WEBPACK_IMPORTED_MODULE_6_victory_core__["g" /* Selection */].getParentSVG(evt);
11930
11995
  var position = __WEBPACK_IMPORTED_MODULE_6_victory_core__["g" /* Selection */].getSVGEventCoordinates(evt, parentSVG)[dimension];
11931
11996
  var fullDomain = getFullDomain(targetProps);
11932
- var currentDomain = brushDomain || fullDomain;
11997
+ var currentDomain = getBrushDomain(brushDomain, fullDomain);
11933
11998
  var range = toRange(targetProps, currentDomain);
11934
11999
  var activeHandle = allowResize && getActiveHandle(targetProps, position, range);
11935
12000
  var activeBrushes = {
@@ -11962,7 +12027,7 @@ Object.defineProperty(VictoryBrushLine, "defaultEvents", {
11962
12027
  }
11963
12028
 
11964
12029
  var fullDomain = getFullDomain(targetProps);
11965
- var currentDomain = brushDomain || fullDomain;
12030
+ var currentDomain = getBrushDomain(brushDomain, fullDomain);
11966
12031
  var parentSVG = targetProps.parentSVG || __WEBPACK_IMPORTED_MODULE_6_victory_core__["g" /* Selection */].getParentSVG(evt);
11967
12032
  var position = __WEBPACK_IMPORTED_MODULE_6_victory_core__["g" /* Selection */].getSVGEventCoordinates(evt, parentSVG)[dimension];
11968
12033
  var range = toRange(targetProps, currentDomain);
@@ -12029,7 +12094,7 @@ Object.defineProperty(VictoryBrushLine, "defaultEvents", {
12029
12094
  var parentSVG = targetProps.parentSVG || __WEBPACK_IMPORTED_MODULE_6_victory_core__["g" /* Selection */].getParentSVG(evt);
12030
12095
  var position = __WEBPACK_IMPORTED_MODULE_6_victory_core__["g" /* Selection */].getSVGEventCoordinates(evt, parentSVG)[dimension];
12031
12096
  var fullDomain = getFullDomain(targetProps);
12032
- var domain = brushDomain || fullDomain;
12097
+ var domain = getBrushDomain(brushDomain, fullDomain);
12033
12098
  var initialRange = toRange(targetProps, domain);
12034
12099
  var activeHandle = getActiveHandle(targetProps, position, initialRange);
12035
12100
  var activeBrushes = {
@@ -12393,7 +12458,7 @@ module.exports = g;
12393
12458
  var assignValue = __webpack_require__(/*! ./_assignValue */ 47),
12394
12459
  castPath = __webpack_require__(/*! ./_castPath */ 31),
12395
12460
  isIndex = __webpack_require__(/*! ./_isIndex */ 87),
12396
- isObject = __webpack_require__(/*! ./isObject */ 13),
12461
+ isObject = __webpack_require__(/*! ./isObject */ 11),
12397
12462
  toKey = __webpack_require__(/*! ./_toKey */ 24);
12398
12463
 
12399
12464
  /**
@@ -13745,7 +13810,7 @@ module.exports = function() {
13745
13810
  /* unused harmony reexport Whisker */
13746
13811
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__victory_util_add_events__ = __webpack_require__(/*! ./victory-util/add-events */ 249);
13747
13812
  /* unused harmony reexport addEvents */
13748
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__victory_util_collection__ = __webpack_require__(/*! ./victory-util/collection */ 12);
13813
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__victory_util_collection__ = __webpack_require__(/*! ./victory-util/collection */ 13);
13749
13814
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_15__victory_util_collection__["a"]; });
13750
13815
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__victory_util_data__ = __webpack_require__(/*! ./victory-util/data */ 75);
13751
13816
  /* unused harmony reexport Data */
@@ -16079,7 +16144,7 @@ function tanh(x) {
16079
16144
 
16080
16145
  "use strict";
16081
16146
  /* unused harmony export hslLong */
16082
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 10);
16147
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
16083
16148
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 18);
16084
16149
 
16085
16150
 
@@ -16114,7 +16179,7 @@ var hslLong = hsl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]);
16114
16179
 
16115
16180
  "use strict";
16116
16181
  /* unused harmony export default */
16117
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 10);
16182
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
16118
16183
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 18);
16119
16184
 
16120
16185
 
@@ -16144,7 +16209,7 @@ function lab(start, end) {
16144
16209
 
16145
16210
  "use strict";
16146
16211
  /* unused harmony export hclLong */
16147
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 10);
16212
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
16148
16213
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 18);
16149
16214
 
16150
16215
 
@@ -16180,7 +16245,7 @@ var hclLong = hcl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]);
16180
16245
 
16181
16246
  "use strict";
16182
16247
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cubehelixLong; });
16183
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 10);
16248
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
16184
16249
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 18);
16185
16250
 
16186
16251
 
@@ -16332,7 +16397,7 @@ function piecewise(interpolate, values) {
16332
16397
 
16333
16398
  "use strict";
16334
16399
  /* unused harmony export default */
16335
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 13);
16400
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
16336
16401
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
16337
16402
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 66);
16338
16403
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__);
@@ -16858,7 +16923,7 @@ module.exports = toInteger;
16858
16923
  /*! all exports used */
16859
16924
  /***/ (function(module, exports, __webpack_require__) {
16860
16925
 
16861
- var isObject = __webpack_require__(/*! ./isObject */ 13),
16926
+ var isObject = __webpack_require__(/*! ./isObject */ 11),
16862
16927
  isSymbol = __webpack_require__(/*! ./isSymbol */ 22);
16863
16928
 
16864
16929
  /** Used as references for various `Number` constants. */
@@ -17312,7 +17377,7 @@ module.exports = nativeKeys;
17312
17377
  /* unused harmony export default */
17313
17378
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 66);
17314
17379
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__);
17315
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 13);
17380
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
17316
17381
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isObject__);
17317
17382
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
17318
17383
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__);
@@ -18964,7 +19029,7 @@ Object.defineProperty(Whisker, "defaultProps", {
18964
19029
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(/*! react */ 0);
18965
19030
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
18966
19031
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__events__ = __webpack_require__(/*! ./events */ 74);
18967
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 11);
19032
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 8);
18968
19033
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_fast_compare__);
18969
19034
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__victory_transition_victory_transition__ = __webpack_require__(/*! ../victory-transition/victory-transition */ 116);
18970
19035
 
@@ -19003,9 +19068,18 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
19003
19068
 
19004
19069
  var datumHasXandY = function (datum) {
19005
19070
  return !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._x) && !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._y);
19006
- };
19007
-
19008
- /* unused harmony default export */ var _unused_webpack_default_export = (function (WrappedComponent) {
19071
+ }; // used for checking state changes. Expected components can be passed in via options
19072
+
19073
+
19074
+ var defaultComponents = [{
19075
+ name: "parent",
19076
+ index: "parent"
19077
+ }, {
19078
+ name: "data"
19079
+ }, {
19080
+ name: "labels"
19081
+ }];
19082
+ /* unused harmony default export */ var _unused_webpack_default_export = (function (WrappedComponent, options) {
19009
19083
  return (
19010
19084
  /*#__PURE__*/
19011
19085
  function (_WrappedComponent) {
@@ -19032,23 +19106,73 @@ var datumHasXandY = function (datum) {
19032
19106
  _this.cacheValues(calculatedValues);
19033
19107
 
19034
19108
  _this.externalMutations = _this.getExternalMutations(props);
19109
+ _this.calculatedState = _this.getStateChanges(props, calculatedValues);
19035
19110
  return _this;
19036
19111
  }
19037
19112
 
19038
19113
  _createClass(addEvents, [{
19039
- key: "componentDidUpdate",
19040
- value: function componentDidUpdate() {
19041
- var externalMutations = this.getExternalMutations(this.props);
19042
-
19043
- if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.externalMutations, externalMutations)) {
19114
+ key: "shouldComponentUpdate",
19115
+ value: function shouldComponentUpdate(nextProps) {
19116
+ var calculatedValues = this.getCalculatedValues(nextProps);
19117
+ var externalMutations = this.getExternalMutations(nextProps);
19118
+ var animating = this.props.animating || this.props.animate;
19119
+ var newMutation = !__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(externalMutations, this.externalMutations);
19120
+
19121
+ if (animating || newMutation) {
19122
+ this.cacheValues(calculatedValues);
19044
19123
  this.externalMutations = externalMutations;
19045
- this.applyExternalMutations(this.props, externalMutations);
19124
+ this.applyExternalMutations(nextProps, externalMutations);
19125
+ return true;
19046
19126
  }
19047
- }
19127
+
19128
+ var calculatedState = this.getStateChanges(nextProps, calculatedValues);
19129
+
19130
+ if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.calculatedState, calculatedState)) {
19131
+ this.calculatedState = calculatedState;
19132
+ this.cacheValues(calculatedValues);
19133
+ return true;
19134
+ }
19135
+
19136
+ if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.props, nextProps)) {
19137
+ this.cacheValues(calculatedValues);
19138
+ return true;
19139
+ }
19140
+
19141
+ return false;
19142
+ } // compile all state changes from own and parent state. Order doesn't matter, as any state
19143
+ // state change should trigger a re-render
19144
+
19048
19145
  }, {
19049
- key: "componentWillReceiveProps",
19050
- value: function componentWillReceiveProps(nextProps) {
19051
- this.cacheValues(this.getCalculatedValues(nextProps));
19146
+ key: "getStateChanges",
19147
+ value: function getStateChanges(props, calculatedValues) {
19148
+ var _this2 = this;
19149
+
19150
+ var hasEvents = calculatedValues.hasEvents,
19151
+ getSharedEventState = calculatedValues.getSharedEventState;
19152
+
19153
+ if (!hasEvents) {
19154
+ return {};
19155
+ }
19156
+
19157
+ var getState = function (key, type) {
19158
+ var result = __WEBPACK_IMPORTED_MODULE_7_lodash_defaults___default()({}, _this2.getEventState(key, type), getSharedEventState(key, type));
19159
+
19160
+ return __WEBPACK_IMPORTED_MODULE_1_lodash_isEmpty___default()(result) ? undefined : result;
19161
+ };
19162
+
19163
+ options = options || {};
19164
+ var components = options.components || defaultComponents;
19165
+ var stateChanges = components.map(function (component) {
19166
+ if (!props.standalone && component.name === "parent") {
19167
+ // don't check for changes on parent props for non-standalone components
19168
+ return undefined;
19169
+ } else {
19170
+ return component.index !== undefined ? getState(component.index, component.name) : calculatedValues.dataKeys.map(function (key) {
19171
+ return getState(key, component.name);
19172
+ }).filter(Boolean);
19173
+ }
19174
+ }).filter(Boolean);
19175
+ return stateChanges;
19052
19176
  }
19053
19177
  }, {
19054
19178
  key: "applyExternalMutations",
@@ -19102,10 +19226,10 @@ var datumHasXandY = function (datum) {
19102
19226
  }, {
19103
19227
  key: "cacheValues",
19104
19228
  value: function cacheValues(obj) {
19105
- var _this2 = this;
19229
+ var _this3 = this;
19106
19230
 
19107
19231
  __WEBPACK_IMPORTED_MODULE_5_lodash_keys___default()(obj).forEach(function (key) {
19108
- _this2[key] = obj[key];
19232
+ _this3[key] = obj[key];
19109
19233
  });
19110
19234
  }
19111
19235
  }, {
@@ -19191,7 +19315,7 @@ var datumHasXandY = function (datum) {
19191
19315
  }, {
19192
19316
  key: "renderContinuousData",
19193
19317
  value: function renderContinuousData(props) {
19194
- var _this3 = this;
19318
+ var _this4 = this;
19195
19319
 
19196
19320
  var dataComponent = props.dataComponent,
19197
19321
  labelComponent = props.labelComponent,
@@ -19200,7 +19324,7 @@ var datumHasXandY = function (datum) {
19200
19324
  var dataKeys = __WEBPACK_IMPORTED_MODULE_2_lodash_without___default()(this.dataKeys, "all");
19201
19325
 
19202
19326
  var labelComponents = dataKeys.reduce(function (memo, key) {
19203
- var labelProps = _this3.getComponentProps(labelComponent, "labels", key);
19327
+ var labelProps = _this4.getComponentProps(labelComponent, "labels", key);
19204
19328
 
19205
19329
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
19206
19330
  memo = memo.concat(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps));
@@ -19215,14 +19339,14 @@ var datumHasXandY = function (datum) {
19215
19339
  }, {
19216
19340
  key: "renderData",
19217
19341
  value: function renderData(props) {
19218
- var _this4 = this;
19342
+ var _this5 = this;
19219
19343
 
19220
19344
  var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
19221
19345
  var dataComponent = props.dataComponent,
19222
19346
  labelComponent = props.labelComponent,
19223
19347
  groupComponent = props.groupComponent;
19224
19348
  var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
19225
- var dataProps = _this4.getComponentProps(dataComponent, "data", index);
19349
+ var dataProps = _this5.getComponentProps(dataComponent, "data", index);
19226
19350
 
19227
19351
  if (shouldRenderDatum(dataProps.datum)) {
19228
19352
  validDataComponents.push(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(dataComponent, dataProps));
@@ -19231,7 +19355,7 @@ var datumHasXandY = function (datum) {
19231
19355
  return validDataComponents;
19232
19356
  }, []);
19233
19357
  var labelComponents = this.dataKeys.map(function (_dataKey, index) {
19234
- var labelProps = _this4.getComponentProps(labelComponent, "labels", index);
19358
+ var labelProps = _this5.getComponentProps(labelComponent, "labels", index);
19235
19359
 
19236
19360
  if (labelProps.text !== undefined && labelProps.text !== null) {
19237
19361
  return __WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps);
@@ -19818,7 +19942,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
19818
19942
  "use strict";
19819
19943
  /* harmony export (immutable) */ __webpack_exports__["a"] = band;
19820
19944
  /* harmony export (immutable) */ __webpack_exports__["b"] = point;
19821
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 8);
19945
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
19822
19946
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ordinal__ = __webpack_require__(/*! ./ordinal */ 133);
19823
19947
 
19824
19948
 
@@ -20677,7 +20801,7 @@ function identity() {
20677
20801
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20678
20802
 
20679
20803
  "use strict";
20680
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 8);
20804
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
20681
20805
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 135);
20682
20806
 
20683
20807
 
@@ -20956,7 +21080,7 @@ function defaultLocale(definition) {
20956
21080
 
20957
21081
  "use strict";
20958
21082
  /* harmony export (immutable) */ __webpack_exports__["a"] = log;
20959
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 8);
21083
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
20960
21084
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 135);
20961
21085
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(/*! ./constant */ 79);
20962
21086
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nice__ = __webpack_require__(/*! ./nice */ 139);
@@ -21157,7 +21281,7 @@ function sqrt() {
21157
21281
 
21158
21282
  "use strict";
21159
21283
  /* harmony export (immutable) */ __webpack_exports__["a"] = quantile;
21160
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 8);
21284
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
21161
21285
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
21162
21286
 
21163
21287
 
@@ -21223,7 +21347,7 @@ function quantile() {
21223
21347
 
21224
21348
  "use strict";
21225
21349
  /* harmony export (immutable) */ __webpack_exports__["a"] = quantize;
21226
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 8);
21350
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
21227
21351
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
21228
21352
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__linear__ = __webpack_require__(/*! ./linear */ 28);
21229
21353
 
@@ -21285,7 +21409,7 @@ function quantize() {
21285
21409
 
21286
21410
  "use strict";
21287
21411
  /* harmony export (immutable) */ __webpack_exports__["a"] = threshold;
21288
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 8);
21412
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
21289
21413
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
21290
21414
 
21291
21415
 
@@ -21374,7 +21498,7 @@ var milliseconds = millisecond.range;
21374
21498
  "use strict";
21375
21499
  /* unused harmony export seconds */
21376
21500
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21377
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 9);
21501
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21378
21502
 
21379
21503
 
21380
21504
 
@@ -21404,7 +21528,7 @@ var seconds = second.range;
21404
21528
  "use strict";
21405
21529
  /* unused harmony export minutes */
21406
21530
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21407
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 9);
21531
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21408
21532
 
21409
21533
 
21410
21534
 
@@ -21434,7 +21558,7 @@ var minutes = minute.range;
21434
21558
  "use strict";
21435
21559
  /* unused harmony export hours */
21436
21560
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21437
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 9);
21561
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21438
21562
 
21439
21563
 
21440
21564
 
@@ -21466,7 +21590,7 @@ var hours = hour.range;
21466
21590
  "use strict";
21467
21591
  /* unused harmony export days */
21468
21592
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21469
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 9);
21593
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21470
21594
 
21471
21595
 
21472
21596
 
@@ -21509,7 +21633,7 @@ var days = day.range;
21509
21633
  /* unused harmony export fridays */
21510
21634
  /* unused harmony export saturdays */
21511
21635
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21512
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 9);
21636
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21513
21637
 
21514
21638
 
21515
21639
 
@@ -21622,7 +21746,7 @@ var years = year.range;
21622
21746
  "use strict";
21623
21747
  /* unused harmony export utcMinutes */
21624
21748
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21625
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 9);
21749
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21626
21750
 
21627
21751
 
21628
21752
 
@@ -21652,7 +21776,7 @@ var utcMinutes = utcMinute.range;
21652
21776
  "use strict";
21653
21777
  /* unused harmony export utcHours */
21654
21778
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21655
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 9);
21779
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21656
21780
 
21657
21781
 
21658
21782
 
@@ -21682,7 +21806,7 @@ var utcHours = utcHour.range;
21682
21806
  "use strict";
21683
21807
  /* unused harmony export utcDays */
21684
21808
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21685
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 9);
21809
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21686
21810
 
21687
21811
 
21688
21812
 
@@ -21725,7 +21849,7 @@ var utcDays = utcDay.range;
21725
21849
  /* unused harmony export utcFridays */
21726
21850
  /* unused harmony export utcSaturdays */
21727
21851
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21728
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 9);
21852
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21729
21853
 
21730
21854
 
21731
21855
 
@@ -21948,7 +22072,7 @@ var parseIso = +new Date("2000-01-01T00:00:00.000Z")
21948
22072
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21949
22073
 
21950
22074
  "use strict";
21951
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 10);
22075
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
21952
22076
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
21953
22077
 
21954
22078
 
@@ -21968,7 +22092,7 @@ var parseIso = +new Date("2000-01-01T00:00:00.000Z")
21968
22092
  "use strict";
21969
22093
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return warm; });
21970
22094
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cool; });
21971
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 10);
22095
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
21972
22096
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 17);
21973
22097
 
21974
22098
 
@@ -22270,7 +22394,7 @@ module.exports = baseSortedUniq;
22270
22394
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
22271
22395
 
22272
22396
  "use strict";
22273
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__collection__ = __webpack_require__(/*! ./collection */ 12);
22397
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__collection__ = __webpack_require__(/*! ./collection */ 13);
22274
22398
  /* eslint-disable func-style */
22275
22399
 
22276
22400
  /* eslint-disable no-use-before-define */
@@ -22624,7 +22748,7 @@ var approximateTextSize = function (text, style) {
22624
22748
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__data__ = __webpack_require__(/*! ./data */ 75);
22625
22749
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__domain__ = __webpack_require__(/*! ./domain */ 83);
22626
22750
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__events__ = __webpack_require__(/*! ./events */ 74);
22627
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__collection__ = __webpack_require__(/*! ./collection */ 12);
22751
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__collection__ = __webpack_require__(/*! ./collection */ 13);
22628
22752
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__helpers__ = __webpack_require__(/*! ./helpers */ 3);
22629
22753
 
22630
22754
 
@@ -22756,14 +22880,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
22756
22880
  getAllEvents: function (props) {
22757
22881
  var components = ["groupComponent", "containerComponent", "labelComponent"];
22758
22882
  this.componentEvents = __WEBPACK_IMPORTED_MODULE_15__events__["a" /* default */].getComponentEvents(props, components);
22883
+ var events = props.events;
22759
22884
 
22760
22885
  if (Array.isArray(this.componentEvents)) {
22761
22886
  var _componentEvents;
22762
22887
 
22763
- return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
22888
+ events = Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
22764
22889
  }
22765
22890
 
22766
- return props.events;
22891
+ return events || [];
22767
22892
  },
22768
22893
  getAnimationProps: function (props, child, index) {
22769
22894
  var _this = this;
@@ -23001,9 +23126,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
23001
23126
  };
23002
23127
 
23003
23128
  var combine = function (memo, datum) {
23129
+ var x = Array.isArray(datum) ? datum.map(function (d) {
23130
+ return d.x;
23131
+ }).filter(Boolean) : datum.x;
23132
+ var y = Array.isArray(datum) ? datum.map(function (d) {
23133
+ return d.y;
23134
+ }).filter(Boolean) : datum.y;
23004
23135
  return {
23005
- x: datum.x !== undefined ? memo.x.concat(datum.x) : memo.x,
23006
- y: datum.y !== undefined ? memo.y.concat(datum.y) : memo.y
23136
+ x: x !== undefined ? memo.x.concat(x) : memo.x,
23137
+ y: y !== undefined ? memo.y.concat(y) : memo.y
23007
23138
  };
23008
23139
  };
23009
23140