victory-cursor-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.
@@ -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
  }
@@ -855,6 +853,115 @@ module.exports = isObject;
855
853
 
856
854
  /***/ }),
857
855
  /* 9 */
856
+ /*!************************************************************************************!*\
857
+ !*** /Users/boygirl/formidable/v/victory/node_modules/react-fast-compare/index.js ***!
858
+ \************************************************************************************/
859
+ /*! dynamic exports provided */
860
+ /*! exports used: default */
861
+ /***/ (function(module, exports, __webpack_require__) {
862
+
863
+ "use strict";
864
+
865
+
866
+ var isArray = Array.isArray;
867
+ var keyList = Object.keys;
868
+ var hasProp = Object.prototype.hasOwnProperty;
869
+ var hasElementType = typeof Element !== 'undefined';
870
+
871
+ function equal(a, b) {
872
+ // fast-deep-equal index.js 2.0.1
873
+ if (a === b) return true;
874
+
875
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
876
+ var arrA = isArray(a)
877
+ , arrB = isArray(b)
878
+ , i
879
+ , length
880
+ , key;
881
+
882
+ if (arrA && arrB) {
883
+ length = a.length;
884
+ if (length != b.length) return false;
885
+ for (i = length; i-- !== 0;)
886
+ if (!equal(a[i], b[i])) return false;
887
+ return true;
888
+ }
889
+
890
+ if (arrA != arrB) return false;
891
+
892
+ var dateA = a instanceof Date
893
+ , dateB = b instanceof Date;
894
+ if (dateA != dateB) return false;
895
+ if (dateA && dateB) return a.getTime() == b.getTime();
896
+
897
+ var regexpA = a instanceof RegExp
898
+ , regexpB = b instanceof RegExp;
899
+ if (regexpA != regexpB) return false;
900
+ if (regexpA && regexpB) return a.toString() == b.toString();
901
+
902
+ var keys = keyList(a);
903
+ length = keys.length;
904
+
905
+ if (length !== keyList(b).length)
906
+ return false;
907
+
908
+ for (i = length; i-- !== 0;)
909
+ if (!hasProp.call(b, keys[i])) return false;
910
+ // end fast-deep-equal
911
+
912
+ // start react-fast-compare
913
+ // custom handling for DOM elements
914
+ if (hasElementType && a instanceof Element && b instanceof Element)
915
+ return a === b;
916
+
917
+ // custom handling for React
918
+ for (i = length; i-- !== 0;) {
919
+ key = keys[i];
920
+ if (key === '_owner' && a.$$typeof) {
921
+ // React-specific: avoid traversing React elements' _owner.
922
+ // _owner contains circular references
923
+ // and is not needed when comparing the actual elements (and not their owners)
924
+ // .$$typeof and ._store on just reasonable markers of a react element
925
+ continue;
926
+ } else {
927
+ // all other properties should be traversed as usual
928
+ if (!equal(a[key], b[key])) {
929
+ // console.log(key)
930
+ return false
931
+ };
932
+ }
933
+ }
934
+ // end react-fast-compare
935
+
936
+ // fast-deep-equal index.js 2.0.1
937
+ return true;
938
+ }
939
+
940
+ return a !== a && b !== b;
941
+ }
942
+ // end fast-deep-equal
943
+
944
+ module.exports = function exportedEqual(a, b) {
945
+ try {
946
+ return equal(a, b);
947
+ } catch (error) {
948
+ if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
949
+ // warn on circular references, don't crash
950
+ // browsers give this different errors name and messages:
951
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
952
+ // firefox: "InternalError", too much recursion"
953
+ // edge: "Error", "Out of stack space"
954
+ console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
955
+ return false;
956
+ }
957
+ // some other error. we should definitely know about these
958
+ throw error;
959
+ }
960
+ };
961
+
962
+
963
+ /***/ }),
964
+ /* 10 */
858
965
  /*!******************************************************************************!*\
859
966
  !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/index.js ***!
860
967
  \******************************************************************************/
@@ -951,7 +1058,7 @@ module.exports = isObject;
951
1058
 
952
1059
 
953
1060
  /***/ }),
954
- /* 10 */
1061
+ /* 11 */
955
1062
  /*!********************************************************************************!*\
956
1063
  !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/duration.js ***!
957
1064
  \********************************************************************************/
@@ -973,7 +1080,7 @@ var durationWeek = 6048e5;
973
1080
 
974
1081
 
975
1082
  /***/ }),
976
- /* 11 */
1083
+ /* 12 */
977
1084
  /*!******************************************************************************!*\
978
1085
  !*** /Users/boygirl/formidable/v/victory/node_modules/d3-color/src/index.js ***!
979
1086
  \******************************************************************************/
@@ -999,7 +1106,7 @@ var durationWeek = 6048e5;
999
1106
 
1000
1107
 
1001
1108
  /***/ }),
1002
- /* 12 */
1109
+ /* 13 */
1003
1110
  /*!***********************************************************************************************!*\
1004
1111
  !*** /Users/boygirl/formidable/v/victory/packages/victory-core/es/victory-util/collection.js ***!
1005
1112
  \***********************************************************************************************/
@@ -1086,112 +1193,6 @@ function getMinValue(arr) {
1086
1193
  removeUndefined: removeUndefined
1087
1194
  });
1088
1195
 
1089
- /***/ }),
1090
- /* 13 */
1091
- /*!************************************************************************************!*\
1092
- !*** /Users/boygirl/formidable/v/victory/node_modules/react-fast-compare/index.js ***!
1093
- \************************************************************************************/
1094
- /*! dynamic exports provided */
1095
- /*! exports used: default */
1096
- /***/ (function(module, exports, __webpack_require__) {
1097
-
1098
- "use strict";
1099
-
1100
-
1101
- var isArray = Array.isArray;
1102
- var keyList = Object.keys;
1103
- var hasProp = Object.prototype.hasOwnProperty;
1104
- var hasElementType = typeof Element !== 'undefined';
1105
-
1106
- function equal(a, b) {
1107
- // fast-deep-equal index.js 2.0.1
1108
- if (a === b) return true;
1109
-
1110
- if (a && b && typeof a == 'object' && typeof b == 'object') {
1111
- var arrA = isArray(a)
1112
- , arrB = isArray(b)
1113
- , i
1114
- , length
1115
- , key;
1116
-
1117
- if (arrA && arrB) {
1118
- length = a.length;
1119
- if (length != b.length) return false;
1120
- for (i = length; i-- !== 0;)
1121
- if (!equal(a[i], b[i])) return false;
1122
- return true;
1123
- }
1124
-
1125
- if (arrA != arrB) return false;
1126
-
1127
- var dateA = a instanceof Date
1128
- , dateB = b instanceof Date;
1129
- if (dateA != dateB) return false;
1130
- if (dateA && dateB) return a.getTime() == b.getTime();
1131
-
1132
- var regexpA = a instanceof RegExp
1133
- , regexpB = b instanceof RegExp;
1134
- if (regexpA != regexpB) return false;
1135
- if (regexpA && regexpB) return a.toString() == b.toString();
1136
-
1137
- var keys = keyList(a);
1138
- length = keys.length;
1139
-
1140
- if (length !== keyList(b).length)
1141
- return false;
1142
-
1143
- for (i = length; i-- !== 0;)
1144
- if (!hasProp.call(b, keys[i])) return false;
1145
- // end fast-deep-equal
1146
-
1147
- // start react-fast-compare
1148
- // custom handling for DOM elements
1149
- if (hasElementType && a instanceof Element && b instanceof Element)
1150
- return a === b;
1151
-
1152
- // custom handling for React
1153
- for (i = length; i-- !== 0;) {
1154
- key = keys[i];
1155
- if (key === '_owner' && a.$$typeof) {
1156
- // React-specific: avoid traversing React elements' _owner.
1157
- // _owner contains circular references
1158
- // and is not needed when comparing the actual elements (and not their owners)
1159
- // .$$typeof and ._store on just reasonable markers of a react element
1160
- continue;
1161
- } else {
1162
- // all other properties should be traversed as usual
1163
- if (!equal(a[key], b[key])) return false;
1164
- }
1165
- }
1166
- // end react-fast-compare
1167
-
1168
- // fast-deep-equal index.js 2.0.1
1169
- return true;
1170
- }
1171
-
1172
- return a !== a && b !== b;
1173
- }
1174
- // end fast-deep-equal
1175
-
1176
- module.exports = function exportedEqual(a, b) {
1177
- try {
1178
- return equal(a, b);
1179
- } catch (error) {
1180
- if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
1181
- // warn on circular references, don't crash
1182
- // browsers give this different errors name and messages:
1183
- // chrome/safari: "RangeError", "Maximum call stack size exceeded"
1184
- // firefox: "InternalError", too much recursion"
1185
- // edge: "Error", "Out of stack space"
1186
- console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
1187
- return false;
1188
- }
1189
- // some other error. we should definitely know about these
1190
- throw error;
1191
- }
1192
- };
1193
-
1194
-
1195
1196
  /***/ }),
1196
1197
  /* 14 */
1197
1198
  /*!******************************************************************************!*\
@@ -1946,7 +1947,7 @@ module.exports = arrayIncludes;
1946
1947
  "use strict";
1947
1948
  /* harmony export (immutable) */ __webpack_exports__["b"] = linearish;
1948
1949
  /* harmony export (immutable) */ __webpack_exports__["a"] = linear;
1949
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
1950
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
1950
1951
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
1951
1952
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__continuous__ = __webpack_require__(/*! ./continuous */ 42);
1952
1953
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__tickFormat__ = __webpack_require__(/*! ./tickFormat */ 287);
@@ -2786,7 +2787,7 @@ module.exports = uniq;
2786
2787
  /* harmony export (immutable) */ __webpack_exports__["c"] = deinterpolateLinear;
2787
2788
  /* harmony export (immutable) */ __webpack_exports__["a"] = copy;
2788
2789
  /* harmony export (immutable) */ __webpack_exports__["b"] = continuous;
2789
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
2790
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
2790
2791
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
2791
2792
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(/*! ./array */ 14);
2792
2793
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__constant__ = __webpack_require__(/*! ./constant */ 79);
@@ -3484,7 +3485,7 @@ module.exports = property;
3484
3485
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3485
3486
 
3486
3487
  "use strict";
3487
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 11);
3488
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
3488
3489
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__rgb__ = __webpack_require__(/*! ./rgb */ 104);
3489
3490
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__array__ = __webpack_require__(/*! ./array */ 107);
3490
3491
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__date__ = __webpack_require__(/*! ./date */ 108);
@@ -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 */ 13);
4686
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
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 */ 13);
4797
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
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 */ 13);
4892
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
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 */ 147);
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 */ 25);
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 */ 262);
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
 
@@ -7123,7 +7129,7 @@ module.exports = stubFalse;
7123
7129
  /* unused harmony reexport Whisker */
7124
7130
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__victory_util_add_events__ = __webpack_require__(/*! ./victory-util/add-events */ 251);
7125
7131
  /* unused harmony reexport addEvents */
7126
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__victory_util_collection__ = __webpack_require__(/*! ./victory-util/collection */ 12);
7132
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__victory_util_collection__ = __webpack_require__(/*! ./victory-util/collection */ 13);
7127
7133
  /* unused harmony reexport Collection */
7128
7134
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__victory_util_data__ = __webpack_require__(/*! ./victory-util/data */ 75);
7129
7135
  /* unused harmony reexport Data */
@@ -7232,6 +7238,8 @@ module.exports = stubFalse;
7232
7238
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_ease__ = __webpack_require__(/*! d3-ease */ 164);
7233
7239
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__util__ = __webpack_require__(/*! ./util */ 175);
7234
7240
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__victory_util_timer__ = __webpack_require__(/*! ../victory-util/timer */ 38);
7241
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
7242
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_fast_compare__);
7235
7243
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); }
7236
7244
 
7237
7245
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); }
@@ -7259,6 +7267,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
7259
7267
 
7260
7268
 
7261
7269
 
7270
+
7262
7271
  var VictoryAnimation =
7263
7272
  /*#__PURE__*/
7264
7273
  function (_React$Component) {
@@ -7302,31 +7311,35 @@ function (_React$Component) {
7302
7311
  this.traverseQueue();
7303
7312
  }
7304
7313
  }
7305
- /* lifecycle */
7306
-
7307
7314
  }, {
7308
- key: "componentWillReceiveProps",
7309
- value: function componentWillReceiveProps(nextProps) {
7310
- /* cancel existing loop if it exists */
7311
- this.getTimer().unsubscribe(this.loopID);
7312
- /* If an object was supplied */
7313
-
7314
- if (!Array.isArray(nextProps.data)) {
7315
- // Replace the tween queue. Could set `this.queue = [nextProps.data]`,
7316
- // but let's reuse the same array.
7317
- this.queue.length = 0;
7318
- this.queue.push(nextProps.data);
7319
- /* If an array was supplied */
7320
- } else {
7321
- var _queue;
7315
+ key: "shouldComponentUpdate",
7316
+ value: function shouldComponentUpdate(nextProps, nextState) {
7317
+ var equalProps = __WEBPACK_IMPORTED_MODULE_5_react_fast_compare___default()(this.props, nextProps);
7322
7318
 
7323
- /* Extend the tween queue */
7324
- (_queue = this.queue).push.apply(_queue, _toConsumableArray(nextProps.data));
7325
- }
7326
- /* Start traversing the tween queue */
7319
+ if (!equalProps) {
7320
+ /* cancel existing loop if it exists */
7321
+ this.getTimer().unsubscribe(this.loopID);
7322
+ /* If an object was supplied */
7323
+
7324
+ if (!Array.isArray(nextProps.data)) {
7325
+ // Replace the tween queue. Could set `this.queue = [nextProps.data]`,
7326
+ // but let's reuse the same array.
7327
+ this.queue.length = 0;
7328
+ this.queue.push(nextProps.data);
7329
+ /* If an array was supplied */
7330
+ } else {
7331
+ var _queue;
7327
7332
 
7333
+ /* Extend the tween queue */
7334
+ (_queue = this.queue).push.apply(_queue, _toConsumableArray(nextProps.data));
7335
+ }
7336
+ /* Start traversing the tween queue */
7337
+
7338
+
7339
+ this.traverseQueue();
7340
+ }
7328
7341
 
7329
- this.traverseQueue();
7342
+ return nextState.animationInfo.animating || !equalProps;
7330
7343
  }
7331
7344
  }, {
7332
7345
  key: "componentWillUnmount",
@@ -7881,7 +7894,7 @@ var rad2deg = 180 / Math.PI;
7881
7894
  "use strict";
7882
7895
  /* unused harmony export rgbBasis */
7883
7896
  /* unused harmony export rgbBasisClosed */
7884
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 11);
7897
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
7885
7898
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__basis__ = __webpack_require__(/*! ./basis */ 62);
7886
7899
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__basisClosed__ = __webpack_require__(/*! ./basisClosed */ 105);
7887
7900
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__color__ = __webpack_require__(/*! ./color */ 19);
@@ -8782,7 +8795,7 @@ function getProps(props, index) {
8782
8795
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
8783
8796
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
8784
8797
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
8785
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 13);
8798
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
8786
8799
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
8787
8800
  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); }
8788
8801
 
@@ -8879,7 +8892,7 @@ Object.defineProperty(TSpan, "propTypes", {
8879
8892
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
8880
8893
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
8881
8894
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
8882
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 13);
8895
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
8883
8896
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
8884
8897
  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); }
8885
8898
 
@@ -8992,10 +9005,12 @@ Object.defineProperty(Text, "propTypes", {
8992
9005
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types__ = __webpack_require__(/*! prop-types */ 1);
8993
9006
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_prop_types__);
8994
9007
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__victory_animation_victory_animation__ = __webpack_require__(/*! ../victory-animation/victory-animation */ 90);
8995
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__victory_util_collection__ = __webpack_require__(/*! ../victory-util/collection */ 12);
9008
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__victory_util_collection__ = __webpack_require__(/*! ../victory-util/collection */ 13);
8996
9009
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__victory_util_helpers__ = __webpack_require__(/*! ../victory-util/helpers */ 3);
8997
9010
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__victory_util_timer__ = __webpack_require__(/*! ../victory-util/timer */ 38);
8998
9011
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__victory_util_transitions__ = __webpack_require__(/*! ../victory-util/transitions */ 68);
9012
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
9013
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_react_fast_compare__);
8999
9014
 
9000
9015
 
9001
9016
 
@@ -9023,6 +9038,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
9023
9038
 
9024
9039
 
9025
9040
 
9041
+
9026
9042
  var VictoryTransition =
9027
9043
  /*#__PURE__*/
9028
9044
  function (_React$Component) {
@@ -9054,14 +9070,18 @@ function (_React$Component) {
9054
9070
  }); //eslint-disable-line react/no-did-mount-set-state
9055
9071
  }
9056
9072
  }, {
9057
- key: "componentWillReceiveProps",
9058
- value: function componentWillReceiveProps(nextProps) {
9073
+ key: "shouldComponentUpdate",
9074
+ value: function shouldComponentUpdate(nextProps) {
9059
9075
  var _this2 = this;
9060
9076
 
9061
- this.getTimer().bypassAnimation();
9062
- this.setState(this.getTransitionState(this.props, nextProps), function () {
9063
- return _this2.getTimer().resumeAnimation();
9064
- });
9077
+ if (!__WEBPACK_IMPORTED_MODULE_11_react_fast_compare___default()(this.props, nextProps)) {
9078
+ this.getTimer().bypassAnimation();
9079
+ this.setState(this.getTransitionState(this.props, nextProps), function () {
9080
+ return _this2.getTimer().resumeAnimation();
9081
+ });
9082
+ }
9083
+
9084
+ return true;
9065
9085
  }
9066
9086
  }, {
9067
9087
  key: "componentWillUnmount",
@@ -9324,7 +9344,7 @@ Object.defineProperty(ClipPath, "propTypes", {
9324
9344
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
9325
9345
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(/*! prop-types */ 1);
9326
9346
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
9327
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 13);
9347
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
9328
9348
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_fast_compare__);
9329
9349
  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); }
9330
9350
 
@@ -10266,7 +10286,7 @@ var prefixExponent;
10266
10286
 
10267
10287
  "use strict";
10268
10288
  /* harmony export (immutable) */ __webpack_exports__["a"] = calendar;
10269
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
10289
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
10270
10290
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
10271
10291
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_d3_time__ = __webpack_require__(/*! d3-time */ 81);
10272
10292
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_d3_time_format__ = __webpack_require__(/*! d3-time-format */ 144);
@@ -11221,14 +11241,17 @@ module.exports = values;
11221
11241
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_lodash_uniq__);
11222
11242
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert__ = __webpack_require__(/*! lodash/invert */ 339);
11223
11243
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_lodash_invert__);
11224
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
11225
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_lodash_isFunction__);
11226
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_identity__ = __webpack_require__(/*! lodash/identity */ 15);
11227
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_identity___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_lodash_identity__);
11228
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react__ = __webpack_require__(/*! react */ 0);
11229
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_react__);
11230
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__collection__ = __webpack_require__(/*! ./collection */ 12);
11231
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__domain__ = __webpack_require__(/*! ./domain */ 83);
11244
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 8);
11245
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_lodash_isObject__);
11246
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
11247
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_lodash_isFunction__);
11248
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity__ = __webpack_require__(/*! lodash/identity */ 15);
11249
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_lodash_identity__);
11250
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react__ = __webpack_require__(/*! react */ 0);
11251
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react__);
11252
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__collection__ = __webpack_require__(/*! ./collection */ 13);
11253
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__domain__ = __webpack_require__(/*! ./domain */ 83);
11254
+
11232
11255
 
11233
11256
 
11234
11257
 
@@ -11291,14 +11314,14 @@ function getCurrentAxis(axis, horizontal) {
11291
11314
 
11292
11315
 
11293
11316
  function findAxisComponents(childComponents, predicate) {
11294
- predicate = predicate || __WEBPACK_IMPORTED_MODULE_8_lodash_identity___default.a;
11317
+ predicate = predicate || __WEBPACK_IMPORTED_MODULE_9_lodash_identity___default.a;
11295
11318
 
11296
11319
  var findAxes = function (children) {
11297
11320
  return children.reduce(function (memo, child) {
11298
11321
  if (child.type && child.type.role === "axis" && predicate(child)) {
11299
11322
  return memo.concat(child);
11300
11323
  } else if (child.props && child.props.children) {
11301
- return memo.concat(findAxes(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Children.toArray(child.props.children)));
11324
+ return memo.concat(findAxes(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children)));
11302
11325
  }
11303
11326
 
11304
11327
  return memo;
@@ -11342,7 +11365,7 @@ function getAxisComponentsWithParent(childComponents, type) {
11342
11365
  if (child.type && child.type.role === "axis" && matchesType(child)) {
11343
11366
  return memo.concat(child);
11344
11367
  } else if (child.props && child.props.children) {
11345
- var childAxis = findComponents(__WEBPACK_IMPORTED_MODULE_9_react___default.a.Children.toArray(child.props.children));
11368
+ var childAxis = findComponents(__WEBPACK_IMPORTED_MODULE_10_react___default.a.Children.toArray(child.props.children));
11346
11369
  return childAxis.length > 0 ? memo.concat(child) : memo;
11347
11370
  }
11348
11371
 
@@ -11361,8 +11384,8 @@ function getOrigin(domain) {
11361
11384
  };
11362
11385
 
11363
11386
  return {
11364
- x: __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
11365
- y: __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
11387
+ x: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
11388
+ y: __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
11366
11389
  };
11367
11390
  }
11368
11391
 
@@ -11371,7 +11394,7 @@ function getOriginSign(origin, domain) {
11371
11394
  return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
11372
11395
  };
11373
11396
 
11374
- return __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsDates(domain) ? "positive" : getSign();
11397
+ return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(domain) ? "positive" : getSign();
11375
11398
  }
11376
11399
  /**
11377
11400
  * @param {ReactComponent} component: a victory axis component.
@@ -11438,13 +11461,15 @@ function isVertical(props) {
11438
11461
 
11439
11462
 
11440
11463
  function stringTicks(props) {
11441
- return props.tickValues !== undefined && __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsStrings(props.tickValues);
11464
+ return props.tickValues !== undefined && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(props.tickValues);
11442
11465
  }
11443
11466
 
11444
11467
  function getDefaultTickFormat(props) {
11445
- var tickValues = props.tickValues,
11446
- stringMap = props.stringMap;
11447
- var fallbackFormat = tickValues && !__WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsDates(tickValues) ? function (x) {
11468
+ var tickValues = props.tickValues;
11469
+ var axis = getAxis(props);
11470
+ var currentAxis = getCurrentAxis(axis, props.horizontal);
11471
+ var stringMap = props.stringMap && props.stringMap[currentAxis];
11472
+ var fallbackFormat = tickValues && !__WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsDates(tickValues) ? function (x) {
11448
11473
  return x;
11449
11474
  } : undefined;
11450
11475
 
@@ -11471,12 +11496,14 @@ function getDefaultTickFormat(props) {
11471
11496
  }
11472
11497
 
11473
11498
  function getTickFormat(props, scale) {
11474
- var tickFormat = props.tickFormat,
11475
- stringMap = props.stringMap;
11499
+ var tickFormat = props.tickFormat;
11500
+ var axis = getAxis(props);
11501
+ var currentAxis = getCurrentAxis(axis, props.horizontal);
11502
+ var stringMap = props.stringMap && props.stringMap[currentAxis];
11476
11503
 
11477
11504
  if (!tickFormat) {
11478
11505
  var defaultTickFormat = getDefaultTickFormat(props);
11479
- var scaleTickFormat = scale.tickFormat && __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
11506
+ var scaleTickFormat = scale.tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
11480
11507
  return x;
11481
11508
  };
11482
11509
  return defaultTickFormat || scaleTickFormat;
@@ -11484,7 +11511,7 @@ function getTickFormat(props, scale) {
11484
11511
  return function (x, index) {
11485
11512
  return tickFormat[index];
11486
11513
  };
11487
- } else if (tickFormat && __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction___default()(tickFormat)) {
11514
+ } else if (tickFormat && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(tickFormat)) {
11488
11515
  var applyStringTicks = function (tick, index, ticks) {
11489
11516
  var invertedStringMap = __WEBPACK_IMPORTED_MODULE_6_lodash_invert___default()(stringMap);
11490
11517
 
@@ -11503,10 +11530,11 @@ function getTickFormat(props, scale) {
11503
11530
  }
11504
11531
 
11505
11532
  function getStringTicks(props) {
11506
- var stringMap = props.stringMap;
11507
11533
  var axis = getAxis(props);
11534
+ var currentAxis = getCurrentAxis(axis, props.horizontal);
11535
+ var stringMap = props.stringMap && props.stringMap[currentAxis];
11508
11536
  var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
11509
- var ticksFromCategories = categories && __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsOnlyStrings(categories) ? categories.map(function (tick) {
11537
+ var ticksFromCategories = categories && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsOnlyStrings(categories) ? categories.map(function (tick) {
11510
11538
  return stringMap[tick];
11511
11539
  }) : undefined;
11512
11540
 
@@ -11517,15 +11545,17 @@ function getStringTicks(props) {
11517
11545
 
11518
11546
  function getTickArray(props) {
11519
11547
  var tickValues = props.tickValues,
11520
- tickFormat = props.tickFormat,
11521
- stringMap = props.stringMap;
11548
+ tickFormat = props.tickFormat;
11549
+ var axis = getAxis(props);
11550
+ var currentAxis = getCurrentAxis(axis, props.horizontal);
11551
+ var stringMap = props.stringMap && props.stringMap[currentAxis];
11522
11552
 
11523
11553
  var getTicksFromFormat = function () {
11524
11554
  if (!tickFormat || !Array.isArray(tickFormat)) {
11525
11555
  return undefined;
11526
11556
  }
11527
11557
 
11528
- return __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
11558
+ return __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
11529
11559
  return i;
11530
11560
  }) : tickFormat;
11531
11561
  };
@@ -11536,7 +11566,7 @@ function getTickArray(props) {
11536
11566
  ticks = getStringTicks(props);
11537
11567
  }
11538
11568
 
11539
- if (tickValues && __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].containsStrings(tickValues)) {
11569
+ if (tickValues && __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].containsStrings(tickValues)) {
11540
11570
  ticks = stringMap ? tickValues.map(function (tick) {
11541
11571
  return stringMap[tick];
11542
11572
  }) : __WEBPACK_IMPORTED_MODULE_4_lodash_range___default()(1, tickValues.length + 1);
@@ -11545,7 +11575,6 @@ function getTickArray(props) {
11545
11575
  var tickArray = ticks ? __WEBPACK_IMPORTED_MODULE_5_lodash_uniq___default()(ticks) : getTicksFromFormat(props);
11546
11576
 
11547
11577
  var filterArray = function (arr) {
11548
- var axis = getAxis(props);
11549
11578
  var domain = props.domain && props.domain[axis] || props.domain;
11550
11579
  return Array.isArray(domain) ? arr.filter(function (t) {
11551
11580
  return t >= Math.min.apply(Math, _toConsumableArray(domain)) && t <= Math.max.apply(Math, _toConsumableArray(domain));
@@ -11572,7 +11601,7 @@ function getTicks(props, scale, filterZero) {
11572
11601
 
11573
11602
  if (tickValues) {
11574
11603
  return downsampleTicks(tickValues, tickCount);
11575
- } else if (scale.ticks && __WEBPACK_IMPORTED_MODULE_7_lodash_isFunction___default()(scale.ticks)) {
11604
+ } else if (scale.ticks && __WEBPACK_IMPORTED_MODULE_8_lodash_isFunction___default()(scale.ticks)) {
11576
11605
  // eslint-disable-next-line no-magic-numbers
11577
11606
  var defaultTickCount = tickCount || 5;
11578
11607
  var scaleTicks = scale.ticks(defaultTickCount);
@@ -11610,18 +11639,18 @@ function getDomainFromData(props, axis) {
11610
11639
  return undefined;
11611
11640
  }
11612
11641
 
11613
- var minDomain = __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].getMinFromProps(props, axis);
11614
- var maxDomain = __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].getMaxFromProps(props, axis);
11642
+ var minDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMinFromProps(props, axis);
11643
+ var maxDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getMaxFromProps(props, axis);
11615
11644
  var tickStrings = stringTicks(props);
11616
11645
  var ticks = tickValues.map(function (value) {
11617
11646
  return +value;
11618
11647
  });
11619
- var defaultMin = tickStrings ? 1 : __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].getMinValue(ticks);
11620
- var defaultMax = tickStrings ? tickValues.length : __WEBPACK_IMPORTED_MODULE_10__collection__["a" /* default */].getMaxValue(ticks);
11648
+ var defaultMin = tickStrings ? 1 : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMinValue(ticks);
11649
+ var defaultMax = tickStrings ? tickValues.length : __WEBPACK_IMPORTED_MODULE_11__collection__["a" /* default */].getMaxValue(ticks);
11621
11650
  var min = minDomain !== undefined ? minDomain : defaultMin;
11622
11651
  var max = maxDomain !== undefined ? maxDomain : defaultMax;
11623
- var initialDomain = __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].getDomainFromMinMax(min, max);
11624
- var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].getSymmetricDomain(initialDomain, ticks) : initialDomain;
11652
+ var initialDomain = __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getDomainFromMinMax(min, max);
11653
+ var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].getSymmetricDomain(initialDomain, ticks) : initialDomain;
11625
11654
 
11626
11655
  if (isVertical(props) && !polar) {
11627
11656
  domain.reverse();
@@ -11638,7 +11667,25 @@ function getDomain(props, axis) {
11638
11667
  return undefined;
11639
11668
  }
11640
11669
 
11641
- return __WEBPACK_IMPORTED_MODULE_11__domain__["a" /* default */].createDomainFunction(getDomainFromData)(props, inherentAxis);
11670
+ return __WEBPACK_IMPORTED_MODULE_12__domain__["a" /* default */].createDomainFunction(getDomainFromData)(props, inherentAxis);
11671
+ }
11672
+
11673
+ function getAxisValue(props, axis) {
11674
+ if (!props.axisValue) {
11675
+ return undefined;
11676
+ }
11677
+
11678
+ var scaleAxis = axis === "x" ? "y" : "x";
11679
+ 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;
11680
+
11681
+ if (!scale) {
11682
+ return undefined;
11683
+ }
11684
+
11685
+ var stringMapAxis = getCurrentAxis(axis, props.horizontal) === "x" ? "y" : "x";
11686
+ var stringMap = __WEBPACK_IMPORTED_MODULE_7_lodash_isObject___default()(props.stringMap) && props.stringMap[stringMapAxis];
11687
+ var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
11688
+ return scale(axisValue);
11642
11689
  }
11643
11690
 
11644
11691
  /* harmony default export */ __webpack_exports__["a"] = ({
@@ -11654,7 +11701,8 @@ function getDomain(props, axis) {
11654
11701
  getOriginSign: getOriginSign,
11655
11702
  getDomain: getDomain,
11656
11703
  isVertical: isVertical,
11657
- stringTicks: stringTicks
11704
+ stringTicks: stringTicks,
11705
+ getAxisValue: getAxisValue
11658
11706
  });
11659
11707
 
11660
11708
  /***/ }),
@@ -15593,7 +15641,7 @@ function tanh(x) {
15593
15641
 
15594
15642
  "use strict";
15595
15643
  /* unused harmony export hslLong */
15596
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 11);
15644
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
15597
15645
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 19);
15598
15646
 
15599
15647
 
@@ -15628,7 +15676,7 @@ var hslLong = hsl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]);
15628
15676
 
15629
15677
  "use strict";
15630
15678
  /* unused harmony export default */
15631
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 11);
15679
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
15632
15680
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 19);
15633
15681
 
15634
15682
 
@@ -15658,7 +15706,7 @@ function lab(start, end) {
15658
15706
 
15659
15707
  "use strict";
15660
15708
  /* unused harmony export hclLong */
15661
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 11);
15709
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
15662
15710
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 19);
15663
15711
 
15664
15712
 
@@ -15694,7 +15742,7 @@ var hclLong = hcl(__WEBPACK_IMPORTED_MODULE_1__color__["a" /* default */]);
15694
15742
 
15695
15743
  "use strict";
15696
15744
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cubehelixLong; });
15697
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 11);
15745
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
15698
15746
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__color__ = __webpack_require__(/*! ./color */ 19);
15699
15747
 
15700
15748
 
@@ -18628,7 +18676,7 @@ Object.defineProperty(Whisker, "defaultProps", {
18628
18676
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react__ = __webpack_require__(/*! react */ 0);
18629
18677
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_react__);
18630
18678
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__events__ = __webpack_require__(/*! ./events */ 74);
18631
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 13);
18679
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare__ = __webpack_require__(/*! react-fast-compare */ 9);
18632
18680
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_react_fast_compare__);
18633
18681
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__victory_transition_victory_transition__ = __webpack_require__(/*! ../victory-transition/victory-transition */ 119);
18634
18682
 
@@ -18667,9 +18715,18 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
18667
18715
 
18668
18716
  var datumHasXandY = function (datum) {
18669
18717
  return !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._x) && !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._y);
18670
- };
18671
-
18672
- /* unused harmony default export */ var _unused_webpack_default_export = (function (WrappedComponent) {
18718
+ }; // used for checking state changes. Expected components can be passed in via options
18719
+
18720
+
18721
+ var defaultComponents = [{
18722
+ name: "parent",
18723
+ index: "parent"
18724
+ }, {
18725
+ name: "data"
18726
+ }, {
18727
+ name: "labels"
18728
+ }];
18729
+ /* unused harmony default export */ var _unused_webpack_default_export = (function (WrappedComponent, options) {
18673
18730
  return (
18674
18731
  /*#__PURE__*/
18675
18732
  function (_WrappedComponent) {
@@ -18696,23 +18753,73 @@ var datumHasXandY = function (datum) {
18696
18753
  _this.cacheValues(calculatedValues);
18697
18754
 
18698
18755
  _this.externalMutations = _this.getExternalMutations(props);
18756
+ _this.calculatedState = _this.getStateChanges(props, calculatedValues);
18699
18757
  return _this;
18700
18758
  }
18701
18759
 
18702
18760
  _createClass(addEvents, [{
18703
- key: "componentDidUpdate",
18704
- value: function componentDidUpdate() {
18705
- var externalMutations = this.getExternalMutations(this.props);
18706
-
18707
- if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.externalMutations, externalMutations)) {
18761
+ key: "shouldComponentUpdate",
18762
+ value: function shouldComponentUpdate(nextProps) {
18763
+ var calculatedValues = this.getCalculatedValues(nextProps);
18764
+ var externalMutations = this.getExternalMutations(nextProps);
18765
+ var animating = this.props.animating || this.props.animate;
18766
+ var newMutation = !__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(externalMutations, this.externalMutations);
18767
+
18768
+ if (animating || newMutation) {
18769
+ this.cacheValues(calculatedValues);
18708
18770
  this.externalMutations = externalMutations;
18709
- this.applyExternalMutations(this.props, externalMutations);
18771
+ this.applyExternalMutations(nextProps, externalMutations);
18772
+ return true;
18710
18773
  }
18711
- }
18774
+
18775
+ var calculatedState = this.getStateChanges(nextProps, calculatedValues);
18776
+
18777
+ if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.calculatedState, calculatedState)) {
18778
+ this.calculatedState = calculatedState;
18779
+ this.cacheValues(calculatedValues);
18780
+ return true;
18781
+ }
18782
+
18783
+ if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.props, nextProps)) {
18784
+ this.cacheValues(calculatedValues);
18785
+ return true;
18786
+ }
18787
+
18788
+ return false;
18789
+ } // compile all state changes from own and parent state. Order doesn't matter, as any state
18790
+ // state change should trigger a re-render
18791
+
18712
18792
  }, {
18713
- key: "componentWillReceiveProps",
18714
- value: function componentWillReceiveProps(nextProps) {
18715
- this.cacheValues(this.getCalculatedValues(nextProps));
18793
+ key: "getStateChanges",
18794
+ value: function getStateChanges(props, calculatedValues) {
18795
+ var _this2 = this;
18796
+
18797
+ var hasEvents = calculatedValues.hasEvents,
18798
+ getSharedEventState = calculatedValues.getSharedEventState;
18799
+
18800
+ if (!hasEvents) {
18801
+ return {};
18802
+ }
18803
+
18804
+ var getState = function (key, type) {
18805
+ var result = __WEBPACK_IMPORTED_MODULE_7_lodash_defaults___default()({}, _this2.getEventState(key, type), getSharedEventState(key, type));
18806
+
18807
+ return __WEBPACK_IMPORTED_MODULE_1_lodash_isEmpty___default()(result) ? undefined : result;
18808
+ };
18809
+
18810
+ options = options || {};
18811
+ var components = options.components || defaultComponents;
18812
+ var stateChanges = components.map(function (component) {
18813
+ if (!props.standalone && component.name === "parent") {
18814
+ // don't check for changes on parent props for non-standalone components
18815
+ return undefined;
18816
+ } else {
18817
+ return component.index !== undefined ? getState(component.index, component.name) : calculatedValues.dataKeys.map(function (key) {
18818
+ return getState(key, component.name);
18819
+ }).filter(Boolean);
18820
+ }
18821
+ }).filter(Boolean);
18822
+ return stateChanges;
18716
18823
  }
18717
18824
  }, {
18718
18825
  key: "applyExternalMutations",
@@ -18766,10 +18873,10 @@ var datumHasXandY = function (datum) {
18766
18873
  }, {
18767
18874
  key: "cacheValues",
18768
18875
  value: function cacheValues(obj) {
18769
- var _this2 = this;
18876
+ var _this3 = this;
18770
18877
 
18771
18878
  __WEBPACK_IMPORTED_MODULE_5_lodash_keys___default()(obj).forEach(function (key) {
18772
- _this2[key] = obj[key];
18879
+ _this3[key] = obj[key];
18773
18880
  });
18774
18881
  }
18775
18882
  }, {
@@ -18855,7 +18962,7 @@ var datumHasXandY = function (datum) {
18855
18962
  }, {
18856
18963
  key: "renderContinuousData",
18857
18964
  value: function renderContinuousData(props) {
18858
- var _this3 = this;
18965
+ var _this4 = this;
18859
18966
 
18860
18967
  var dataComponent = props.dataComponent,
18861
18968
  labelComponent = props.labelComponent,
@@ -18864,7 +18971,7 @@ var datumHasXandY = function (datum) {
18864
18971
  var dataKeys = __WEBPACK_IMPORTED_MODULE_2_lodash_without___default()(this.dataKeys, "all");
18865
18972
 
18866
18973
  var labelComponents = dataKeys.reduce(function (memo, key) {
18867
- var labelProps = _this3.getComponentProps(labelComponent, "labels", key);
18974
+ var labelProps = _this4.getComponentProps(labelComponent, "labels", key);
18868
18975
 
18869
18976
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
18870
18977
  memo = memo.concat(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps));
@@ -18879,14 +18986,14 @@ var datumHasXandY = function (datum) {
18879
18986
  }, {
18880
18987
  key: "renderData",
18881
18988
  value: function renderData(props) {
18882
- var _this4 = this;
18989
+ var _this5 = this;
18883
18990
 
18884
18991
  var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
18885
18992
  var dataComponent = props.dataComponent,
18886
18993
  labelComponent = props.labelComponent,
18887
18994
  groupComponent = props.groupComponent;
18888
18995
  var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
18889
- var dataProps = _this4.getComponentProps(dataComponent, "data", index);
18996
+ var dataProps = _this5.getComponentProps(dataComponent, "data", index);
18890
18997
 
18891
18998
  if (shouldRenderDatum(dataProps.datum)) {
18892
18999
  validDataComponents.push(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(dataComponent, dataProps));
@@ -18895,7 +19002,7 @@ var datumHasXandY = function (datum) {
18895
19002
  return validDataComponents;
18896
19003
  }, []);
18897
19004
  var labelComponents = this.dataKeys.map(function (_dataKey, index) {
18898
- var labelProps = _this4.getComponentProps(labelComponent, "labels", index);
19005
+ var labelProps = _this5.getComponentProps(labelComponent, "labels", index);
18899
19006
 
18900
19007
  if (labelProps.text !== undefined && labelProps.text !== null) {
18901
19008
  return __WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps);
@@ -19482,7 +19589,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
19482
19589
  "use strict";
19483
19590
  /* harmony export (immutable) */ __webpack_exports__["a"] = band;
19484
19591
  /* harmony export (immutable) */ __webpack_exports__["b"] = point;
19485
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
19592
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
19486
19593
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ordinal__ = __webpack_require__(/*! ./ordinal */ 136);
19487
19594
 
19488
19595
 
@@ -20341,7 +20448,7 @@ function identity() {
20341
20448
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20342
20449
 
20343
20450
  "use strict";
20344
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
20451
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
20345
20452
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 138);
20346
20453
 
20347
20454
 
@@ -20620,7 +20727,7 @@ function defaultLocale(definition) {
20620
20727
 
20621
20728
  "use strict";
20622
20729
  /* harmony export (immutable) */ __webpack_exports__["a"] = log;
20623
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
20730
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
20624
20731
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 138);
20625
20732
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(/*! ./constant */ 79);
20626
20733
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nice__ = __webpack_require__(/*! ./nice */ 142);
@@ -20821,7 +20928,7 @@ function sqrt() {
20821
20928
 
20822
20929
  "use strict";
20823
20930
  /* harmony export (immutable) */ __webpack_exports__["a"] = quantile;
20824
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
20931
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
20825
20932
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
20826
20933
 
20827
20934
 
@@ -20887,7 +20994,7 @@ function quantile() {
20887
20994
 
20888
20995
  "use strict";
20889
20996
  /* harmony export (immutable) */ __webpack_exports__["a"] = quantize;
20890
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
20997
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
20891
20998
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
20892
20999
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__linear__ = __webpack_require__(/*! ./linear */ 27);
20893
21000
 
@@ -20949,7 +21056,7 @@ function quantize() {
20949
21056
 
20950
21057
  "use strict";
20951
21058
  /* harmony export (immutable) */ __webpack_exports__["a"] = threshold;
20952
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
21059
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
20953
21060
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
20954
21061
 
20955
21062
 
@@ -21038,7 +21145,7 @@ var milliseconds = millisecond.range;
21038
21145
  "use strict";
21039
21146
  /* unused harmony export seconds */
21040
21147
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21041
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21148
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21042
21149
 
21043
21150
 
21044
21151
 
@@ -21068,7 +21175,7 @@ var seconds = second.range;
21068
21175
  "use strict";
21069
21176
  /* unused harmony export minutes */
21070
21177
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21071
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21178
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21072
21179
 
21073
21180
 
21074
21181
 
@@ -21098,7 +21205,7 @@ var minutes = minute.range;
21098
21205
  "use strict";
21099
21206
  /* unused harmony export hours */
21100
21207
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21101
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21208
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21102
21209
 
21103
21210
 
21104
21211
 
@@ -21130,7 +21237,7 @@ var hours = hour.range;
21130
21237
  "use strict";
21131
21238
  /* unused harmony export days */
21132
21239
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21133
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21240
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21134
21241
 
21135
21242
 
21136
21243
 
@@ -21173,7 +21280,7 @@ var days = day.range;
21173
21280
  /* unused harmony export fridays */
21174
21281
  /* unused harmony export saturdays */
21175
21282
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21176
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21283
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21177
21284
 
21178
21285
 
21179
21286
 
@@ -21286,7 +21393,7 @@ var years = year.range;
21286
21393
  "use strict";
21287
21394
  /* unused harmony export utcMinutes */
21288
21395
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21289
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21396
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21290
21397
 
21291
21398
 
21292
21399
 
@@ -21316,7 +21423,7 @@ var utcMinutes = utcMinute.range;
21316
21423
  "use strict";
21317
21424
  /* unused harmony export utcHours */
21318
21425
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21319
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21426
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21320
21427
 
21321
21428
 
21322
21429
 
@@ -21346,7 +21453,7 @@ var utcHours = utcHour.range;
21346
21453
  "use strict";
21347
21454
  /* unused harmony export utcDays */
21348
21455
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21349
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21456
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21350
21457
 
21351
21458
 
21352
21459
 
@@ -21389,7 +21496,7 @@ var utcDays = utcDay.range;
21389
21496
  /* unused harmony export utcFridays */
21390
21497
  /* unused harmony export utcSaturdays */
21391
21498
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21392
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21499
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21393
21500
 
21394
21501
 
21395
21502
 
@@ -21612,7 +21719,7 @@ var parseIso = +new Date("2000-01-01T00:00:00.000Z")
21612
21719
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21613
21720
 
21614
21721
  "use strict";
21615
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 11);
21722
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
21616
21723
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
21617
21724
 
21618
21725
 
@@ -21632,7 +21739,7 @@ var parseIso = +new Date("2000-01-01T00:00:00.000Z")
21632
21739
  "use strict";
21633
21740
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return warm; });
21634
21741
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return cool; });
21635
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 11);
21742
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_color__ = __webpack_require__(/*! d3-color */ 12);
21636
21743
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_interpolate__ = __webpack_require__(/*! d3-interpolate */ 18);
21637
21744
 
21638
21745
 
@@ -21934,7 +22041,7 @@ module.exports = baseSortedUniq;
21934
22041
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
21935
22042
 
21936
22043
  "use strict";
21937
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__collection__ = __webpack_require__(/*! ./collection */ 12);
22044
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__collection__ = __webpack_require__(/*! ./collection */ 13);
21938
22045
  /* eslint-disable func-style */
21939
22046
 
21940
22047
  /* eslint-disable no-use-before-define */
@@ -22288,7 +22395,7 @@ var approximateTextSize = function (text, style) {
22288
22395
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__data__ = __webpack_require__(/*! ./data */ 75);
22289
22396
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__domain__ = __webpack_require__(/*! ./domain */ 83);
22290
22397
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__events__ = __webpack_require__(/*! ./events */ 74);
22291
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__collection__ = __webpack_require__(/*! ./collection */ 12);
22398
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__collection__ = __webpack_require__(/*! ./collection */ 13);
22292
22399
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__helpers__ = __webpack_require__(/*! ./helpers */ 3);
22293
22400
 
22294
22401
 
@@ -22420,14 +22527,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
22420
22527
  getAllEvents: function (props) {
22421
22528
  var components = ["groupComponent", "containerComponent", "labelComponent"];
22422
22529
  this.componentEvents = __WEBPACK_IMPORTED_MODULE_15__events__["a" /* default */].getComponentEvents(props, components);
22530
+ var events = props.events;
22423
22531
 
22424
22532
  if (Array.isArray(this.componentEvents)) {
22425
22533
  var _componentEvents;
22426
22534
 
22427
- return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
22535
+ events = Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
22428
22536
  }
22429
22537
 
22430
- return props.events;
22538
+ return events || [];
22431
22539
  },
22432
22540
  getAnimationProps: function (props, child, index) {
22433
22541
  var _this = this;
@@ -22665,9 +22773,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
22665
22773
  };
22666
22774
 
22667
22775
  var combine = function (memo, datum) {
22776
+ var x = Array.isArray(datum) ? datum.map(function (d) {
22777
+ return d.x;
22778
+ }).filter(Boolean) : datum.x;
22779
+ var y = Array.isArray(datum) ? datum.map(function (d) {
22780
+ return d.y;
22781
+ }).filter(Boolean) : datum.y;
22668
22782
  return {
22669
- x: datum.x !== undefined ? memo.x.concat(datum.x) : memo.x,
22670
- y: datum.y !== undefined ? memo.y.concat(datum.y) : memo.y
22783
+ x: x !== undefined ? memo.x.concat(x) : memo.x,
22784
+ y: y !== undefined ? memo.y.concat(y) : memo.y
22671
22785
  };
22672
22786
  };
22673
22787