victory-brush-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
  }
@@ -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 */ 86),
664
- isObject = __webpack_require__(/*! ./isObject */ 11);
662
+ isObject = __webpack_require__(/*! ./isObject */ 9);
665
663
 
666
664
  /** `Object#toString` result references. */
667
665
  var asyncTag = '[object AsyncFunction]',
@@ -885,7 +883,10 @@ function equal(a, b) {
885
883
  continue;
886
884
  } else {
887
885
  // all other properties should be traversed as usual
888
- if (!equal(a[key], b[key])) return false;
886
+ if (!equal(a[key], b[key])) {
887
+ // console.log(key)
888
+ return false
889
+ };
889
890
  }
890
891
  }
891
892
  // end react-fast-compare
@@ -919,6 +920,48 @@ module.exports = function exportedEqual(a, b) {
919
920
 
920
921
  /***/ }),
921
922
  /* 9 */
923
+ /*!***************************************************************************!*\
924
+ !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObject.js ***!
925
+ \***************************************************************************/
926
+ /*! dynamic exports provided */
927
+ /*! all exports used */
928
+ /***/ (function(module, exports) {
929
+
930
+ /**
931
+ * Checks if `value` is the
932
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
933
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
934
+ *
935
+ * @static
936
+ * @memberOf _
937
+ * @since 0.1.0
938
+ * @category Lang
939
+ * @param {*} value The value to check.
940
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
941
+ * @example
942
+ *
943
+ * _.isObject({});
944
+ * // => true
945
+ *
946
+ * _.isObject([1, 2, 3]);
947
+ * // => true
948
+ *
949
+ * _.isObject(_.noop);
950
+ * // => true
951
+ *
952
+ * _.isObject(null);
953
+ * // => false
954
+ */
955
+ function isObject(value) {
956
+ var type = typeof value;
957
+ return value != null && (type == 'object' || type == 'function');
958
+ }
959
+
960
+ module.exports = isObject;
961
+
962
+
963
+ /***/ }),
964
+ /* 10 */
922
965
  /*!******************************************************************************!*\
923
966
  !*** /Users/boygirl/formidable/v/victory/node_modules/d3-array/src/index.js ***!
924
967
  \******************************************************************************/
@@ -1015,7 +1058,7 @@ module.exports = function exportedEqual(a, b) {
1015
1058
 
1016
1059
 
1017
1060
  /***/ }),
1018
- /* 10 */
1061
+ /* 11 */
1019
1062
  /*!********************************************************************************!*\
1020
1063
  !*** /Users/boygirl/formidable/v/victory/node_modules/d3-time/src/duration.js ***!
1021
1064
  \********************************************************************************/
@@ -1036,48 +1079,6 @@ var durationDay = 864e5;
1036
1079
  var durationWeek = 6048e5;
1037
1080
 
1038
1081
 
1039
- /***/ }),
1040
- /* 11 */
1041
- /*!***************************************************************************!*\
1042
- !*** /Users/boygirl/formidable/v/victory/node_modules/lodash/isObject.js ***!
1043
- \***************************************************************************/
1044
- /*! dynamic exports provided */
1045
- /*! all exports used */
1046
- /***/ (function(module, exports) {
1047
-
1048
- /**
1049
- * Checks if `value` is the
1050
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1051
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1052
- *
1053
- * @static
1054
- * @memberOf _
1055
- * @since 0.1.0
1056
- * @category Lang
1057
- * @param {*} value The value to check.
1058
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1059
- * @example
1060
- *
1061
- * _.isObject({});
1062
- * // => true
1063
- *
1064
- * _.isObject([1, 2, 3]);
1065
- * // => true
1066
- *
1067
- * _.isObject(_.noop);
1068
- * // => true
1069
- *
1070
- * _.isObject(null);
1071
- * // => false
1072
- */
1073
- function isObject(value) {
1074
- var type = typeof value;
1075
- return value != null && (type == 'object' || type == 'function');
1076
- }
1077
-
1078
- module.exports = isObject;
1079
-
1080
-
1081
1082
  /***/ }),
1082
1083
  /* 12 */
1083
1084
  /*!******************************************************************************!*\
@@ -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);
@@ -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));
@@ -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 */ 8);
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",
@@ -7623,7 +7636,7 @@ module.exports = stubFalse;
7623
7636
  /*! all exports used */
7624
7637
  /***/ (function(module, exports, __webpack_require__) {
7625
7638
 
7626
- var isObject = __webpack_require__(/*! ./isObject */ 11);
7639
+ var isObject = __webpack_require__(/*! ./isObject */ 9);
7627
7640
 
7628
7641
  /**
7629
7642
  * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.
@@ -8979,7 +8992,7 @@ Object.defineProperty(Text, "propTypes", {
8979
8992
 
8980
8993
  "use strict";
8981
8994
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VictoryTransition; });
8982
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
8995
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 9);
8983
8996
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
8984
8997
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_pick__ = __webpack_require__(/*! lodash/pick */ 65);
8985
8998
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_pick___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_pick__);
@@ -8996,6 +9009,8 @@ Object.defineProperty(Text, "propTypes", {
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 */ 8);
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",
@@ -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 */ 13);
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 */ 9);
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
  /***/ }),
@@ -16257,7 +16305,7 @@ function piecewise(interpolate, values) {
16257
16305
 
16258
16306
  "use strict";
16259
16307
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return VictoryContainer; });
16260
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
16308
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 9);
16261
16309
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_isObject__);
16262
16310
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 64);
16263
16311
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_uniqueId__);
@@ -16816,7 +16864,7 @@ module.exports = basePick;
16816
16864
  var assignValue = __webpack_require__(/*! ./_assignValue */ 46),
16817
16865
  castPath = __webpack_require__(/*! ./_castPath */ 35),
16818
16866
  isIndex = __webpack_require__(/*! ./_isIndex */ 101),
16819
- isObject = __webpack_require__(/*! ./isObject */ 11),
16867
+ isObject = __webpack_require__(/*! ./isObject */ 9),
16820
16868
  toKey = __webpack_require__(/*! ./_toKey */ 24);
16821
16869
 
16822
16870
  /**
@@ -17386,7 +17434,7 @@ module.exports = nativeKeys;
17386
17434
  /* unused harmony export default */
17387
17435
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__ = __webpack_require__(/*! lodash/uniqueId */ 64);
17388
17436
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_lodash_uniqueId__);
17389
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 11);
17437
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject__ = __webpack_require__(/*! lodash/isObject */ 9);
17390
17438
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_lodash_isObject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_lodash_isObject__);
17391
17439
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__ = __webpack_require__(/*! lodash/isFunction */ 5);
17392
17440
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_lodash_isFunction___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_lodash_isFunction__);
@@ -19075,9 +19123,18 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
19075
19123
 
19076
19124
  var datumHasXandY = function (datum) {
19077
19125
  return !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._x) && !__WEBPACK_IMPORTED_MODULE_0_lodash_isNil___default()(datum._y);
19078
- };
19079
-
19080
- /* unused harmony default export */ var _unused_webpack_default_export = (function (WrappedComponent) {
19126
+ }; // used for checking state changes. Expected components can be passed in via options
19127
+
19128
+
19129
+ var defaultComponents = [{
19130
+ name: "parent",
19131
+ index: "parent"
19132
+ }, {
19133
+ name: "data"
19134
+ }, {
19135
+ name: "labels"
19136
+ }];
19137
+ /* unused harmony default export */ var _unused_webpack_default_export = (function (WrappedComponent, options) {
19081
19138
  return (
19082
19139
  /*#__PURE__*/
19083
19140
  function (_WrappedComponent) {
@@ -19104,23 +19161,73 @@ var datumHasXandY = function (datum) {
19104
19161
  _this.cacheValues(calculatedValues);
19105
19162
 
19106
19163
  _this.externalMutations = _this.getExternalMutations(props);
19164
+ _this.calculatedState = _this.getStateChanges(props, calculatedValues);
19107
19165
  return _this;
19108
19166
  }
19109
19167
 
19110
19168
  _createClass(addEvents, [{
19111
- key: "componentDidUpdate",
19112
- value: function componentDidUpdate() {
19113
- var externalMutations = this.getExternalMutations(this.props);
19114
-
19115
- if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.externalMutations, externalMutations)) {
19169
+ key: "shouldComponentUpdate",
19170
+ value: function shouldComponentUpdate(nextProps) {
19171
+ var calculatedValues = this.getCalculatedValues(nextProps);
19172
+ var externalMutations = this.getExternalMutations(nextProps);
19173
+ var animating = this.props.animating || this.props.animate;
19174
+ var newMutation = !__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(externalMutations, this.externalMutations);
19175
+
19176
+ if (animating || newMutation) {
19177
+ this.cacheValues(calculatedValues);
19116
19178
  this.externalMutations = externalMutations;
19117
- this.applyExternalMutations(this.props, externalMutations);
19179
+ this.applyExternalMutations(nextProps, externalMutations);
19180
+ return true;
19118
19181
  }
19119
- }
19182
+
19183
+ var calculatedState = this.getStateChanges(nextProps, calculatedValues);
19184
+
19185
+ if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.calculatedState, calculatedState)) {
19186
+ this.calculatedState = calculatedState;
19187
+ this.cacheValues(calculatedValues);
19188
+ return true;
19189
+ }
19190
+
19191
+ if (!__WEBPACK_IMPORTED_MODULE_10_react_fast_compare___default()(this.props, nextProps)) {
19192
+ this.cacheValues(calculatedValues);
19193
+ return true;
19194
+ }
19195
+
19196
+ return false;
19197
+ } // compile all state changes from own and parent state. Order doesn't matter, as any state
19198
+ // state change should trigger a re-render
19199
+
19120
19200
  }, {
19121
- key: "componentWillReceiveProps",
19122
- value: function componentWillReceiveProps(nextProps) {
19123
- this.cacheValues(this.getCalculatedValues(nextProps));
19201
+ key: "getStateChanges",
19202
+ value: function getStateChanges(props, calculatedValues) {
19203
+ var _this2 = this;
19204
+
19205
+ var hasEvents = calculatedValues.hasEvents,
19206
+ getSharedEventState = calculatedValues.getSharedEventState;
19207
+
19208
+ if (!hasEvents) {
19209
+ return {};
19210
+ }
19211
+
19212
+ var getState = function (key, type) {
19213
+ var result = __WEBPACK_IMPORTED_MODULE_7_lodash_defaults___default()({}, _this2.getEventState(key, type), getSharedEventState(key, type));
19214
+
19215
+ return __WEBPACK_IMPORTED_MODULE_1_lodash_isEmpty___default()(result) ? undefined : result;
19216
+ };
19217
+
19218
+ options = options || {};
19219
+ var components = options.components || defaultComponents;
19220
+ var stateChanges = components.map(function (component) {
19221
+ if (!props.standalone && component.name === "parent") {
19222
+ // don't check for changes on parent props for non-standalone components
19223
+ return undefined;
19224
+ } else {
19225
+ return component.index !== undefined ? getState(component.index, component.name) : calculatedValues.dataKeys.map(function (key) {
19226
+ return getState(key, component.name);
19227
+ }).filter(Boolean);
19228
+ }
19229
+ }).filter(Boolean);
19230
+ return stateChanges;
19124
19231
  }
19125
19232
  }, {
19126
19233
  key: "applyExternalMutations",
@@ -19174,10 +19281,10 @@ var datumHasXandY = function (datum) {
19174
19281
  }, {
19175
19282
  key: "cacheValues",
19176
19283
  value: function cacheValues(obj) {
19177
- var _this2 = this;
19284
+ var _this3 = this;
19178
19285
 
19179
19286
  __WEBPACK_IMPORTED_MODULE_5_lodash_keys___default()(obj).forEach(function (key) {
19180
- _this2[key] = obj[key];
19287
+ _this3[key] = obj[key];
19181
19288
  });
19182
19289
  }
19183
19290
  }, {
@@ -19263,7 +19370,7 @@ var datumHasXandY = function (datum) {
19263
19370
  }, {
19264
19371
  key: "renderContinuousData",
19265
19372
  value: function renderContinuousData(props) {
19266
- var _this3 = this;
19373
+ var _this4 = this;
19267
19374
 
19268
19375
  var dataComponent = props.dataComponent,
19269
19376
  labelComponent = props.labelComponent,
@@ -19272,7 +19379,7 @@ var datumHasXandY = function (datum) {
19272
19379
  var dataKeys = __WEBPACK_IMPORTED_MODULE_2_lodash_without___default()(this.dataKeys, "all");
19273
19380
 
19274
19381
  var labelComponents = dataKeys.reduce(function (memo, key) {
19275
- var labelProps = _this3.getComponentProps(labelComponent, "labels", key);
19382
+ var labelProps = _this4.getComponentProps(labelComponent, "labels", key);
19276
19383
 
19277
19384
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
19278
19385
  memo = memo.concat(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps));
@@ -19287,14 +19394,14 @@ var datumHasXandY = function (datum) {
19287
19394
  }, {
19288
19395
  key: "renderData",
19289
19396
  value: function renderData(props) {
19290
- var _this4 = this;
19397
+ var _this5 = this;
19291
19398
 
19292
19399
  var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
19293
19400
  var dataComponent = props.dataComponent,
19294
19401
  labelComponent = props.labelComponent,
19295
19402
  groupComponent = props.groupComponent;
19296
19403
  var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
19297
- var dataProps = _this4.getComponentProps(dataComponent, "data", index);
19404
+ var dataProps = _this5.getComponentProps(dataComponent, "data", index);
19298
19405
 
19299
19406
  if (shouldRenderDatum(dataProps.datum)) {
19300
19407
  validDataComponents.push(__WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(dataComponent, dataProps));
@@ -19303,7 +19410,7 @@ var datumHasXandY = function (datum) {
19303
19410
  return validDataComponents;
19304
19411
  }, []);
19305
19412
  var labelComponents = this.dataKeys.map(function (_dataKey, index) {
19306
- var labelProps = _this4.getComponentProps(labelComponent, "labels", index);
19413
+ var labelProps = _this5.getComponentProps(labelComponent, "labels", index);
19307
19414
 
19308
19415
  if (labelProps.text !== undefined && labelProps.text !== null) {
19309
19416
  return __WEBPACK_IMPORTED_MODULE_8_react___default.a.cloneElement(labelComponent, labelProps);
@@ -19890,7 +19997,7 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
19890
19997
  "use strict";
19891
19998
  /* harmony export (immutable) */ __webpack_exports__["a"] = band;
19892
19999
  /* harmony export (immutable) */ __webpack_exports__["b"] = point;
19893
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
20000
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
19894
20001
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ordinal__ = __webpack_require__(/*! ./ordinal */ 136);
19895
20002
 
19896
20003
 
@@ -20749,7 +20856,7 @@ function identity() {
20749
20856
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
20750
20857
 
20751
20858
  "use strict";
20752
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
20859
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
20753
20860
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 138);
20754
20861
 
20755
20862
 
@@ -21028,7 +21135,7 @@ function defaultLocale(definition) {
21028
21135
 
21029
21136
  "use strict";
21030
21137
  /* harmony export (immutable) */ __webpack_exports__["a"] = log;
21031
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
21138
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
21032
21139
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_d3_format__ = __webpack_require__(/*! d3-format */ 138);
21033
21140
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__constant__ = __webpack_require__(/*! ./constant */ 79);
21034
21141
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__nice__ = __webpack_require__(/*! ./nice */ 142);
@@ -21229,7 +21336,7 @@ function sqrt() {
21229
21336
 
21230
21337
  "use strict";
21231
21338
  /* harmony export (immutable) */ __webpack_exports__["a"] = quantile;
21232
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
21339
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
21233
21340
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
21234
21341
 
21235
21342
 
@@ -21295,7 +21402,7 @@ function quantile() {
21295
21402
 
21296
21403
  "use strict";
21297
21404
  /* harmony export (immutable) */ __webpack_exports__["a"] = quantize;
21298
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
21405
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
21299
21406
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
21300
21407
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__linear__ = __webpack_require__(/*! ./linear */ 27);
21301
21408
 
@@ -21357,7 +21464,7 @@ function quantize() {
21357
21464
 
21358
21465
  "use strict";
21359
21466
  /* harmony export (immutable) */ __webpack_exports__["a"] = threshold;
21360
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 9);
21467
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_d3_array__ = __webpack_require__(/*! d3-array */ 10);
21361
21468
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array__ = __webpack_require__(/*! ./array */ 14);
21362
21469
 
21363
21470
 
@@ -21446,7 +21553,7 @@ var milliseconds = millisecond.range;
21446
21553
  "use strict";
21447
21554
  /* unused harmony export seconds */
21448
21555
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21449
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21556
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21450
21557
 
21451
21558
 
21452
21559
 
@@ -21476,7 +21583,7 @@ var seconds = second.range;
21476
21583
  "use strict";
21477
21584
  /* unused harmony export minutes */
21478
21585
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21479
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21586
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21480
21587
 
21481
21588
 
21482
21589
 
@@ -21506,7 +21613,7 @@ var minutes = minute.range;
21506
21613
  "use strict";
21507
21614
  /* unused harmony export hours */
21508
21615
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21509
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21616
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21510
21617
 
21511
21618
 
21512
21619
 
@@ -21538,7 +21645,7 @@ var hours = hour.range;
21538
21645
  "use strict";
21539
21646
  /* unused harmony export days */
21540
21647
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21541
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21648
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21542
21649
 
21543
21650
 
21544
21651
 
@@ -21581,7 +21688,7 @@ var days = day.range;
21581
21688
  /* unused harmony export fridays */
21582
21689
  /* unused harmony export saturdays */
21583
21690
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21584
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21691
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21585
21692
 
21586
21693
 
21587
21694
 
@@ -21694,7 +21801,7 @@ var years = year.range;
21694
21801
  "use strict";
21695
21802
  /* unused harmony export utcMinutes */
21696
21803
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21697
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21804
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21698
21805
 
21699
21806
 
21700
21807
 
@@ -21724,7 +21831,7 @@ var utcMinutes = utcMinute.range;
21724
21831
  "use strict";
21725
21832
  /* unused harmony export utcHours */
21726
21833
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21727
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21834
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21728
21835
 
21729
21836
 
21730
21837
 
@@ -21754,7 +21861,7 @@ var utcHours = utcHour.range;
21754
21861
  "use strict";
21755
21862
  /* unused harmony export utcDays */
21756
21863
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21757
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21864
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21758
21865
 
21759
21866
 
21760
21867
 
@@ -21797,7 +21904,7 @@ var utcDays = utcDay.range;
21797
21904
  /* unused harmony export utcFridays */
21798
21905
  /* unused harmony export utcSaturdays */
21799
21906
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__interval__ = __webpack_require__(/*! ./interval */ 4);
21800
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 10);
21907
+ /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__duration__ = __webpack_require__(/*! ./duration */ 11);
21801
21908
 
21802
21909
 
21803
21910
 
@@ -22828,14 +22935,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
22828
22935
  getAllEvents: function (props) {
22829
22936
  var components = ["groupComponent", "containerComponent", "labelComponent"];
22830
22937
  this.componentEvents = __WEBPACK_IMPORTED_MODULE_15__events__["a" /* default */].getComponentEvents(props, components);
22938
+ var events = props.events;
22831
22939
 
22832
22940
  if (Array.isArray(this.componentEvents)) {
22833
22941
  var _componentEvents;
22834
22942
 
22835
- return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
22943
+ events = Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
22836
22944
  }
22837
22945
 
22838
- return props.events;
22946
+ return events || [];
22839
22947
  },
22840
22948
  getAnimationProps: function (props, child, index) {
22841
22949
  var _this = this;
@@ -23073,9 +23181,15 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
23073
23181
  };
23074
23182
 
23075
23183
  var combine = function (memo, datum) {
23184
+ var x = Array.isArray(datum) ? datum.map(function (d) {
23185
+ return d.x;
23186
+ }).filter(Boolean) : datum.x;
23187
+ var y = Array.isArray(datum) ? datum.map(function (d) {
23188
+ return d.y;
23189
+ }).filter(Boolean) : datum.y;
23076
23190
  return {
23077
- x: datum.x !== undefined ? memo.x.concat(datum.x) : memo.x,
23078
- y: datum.y !== undefined ? memo.y.concat(datum.y) : memo.y
23191
+ x: x !== undefined ? memo.x.concat(x) : memo.x,
23192
+ y: y !== undefined ? memo.y.concat(y) : memo.y
23079
23193
  };
23080
23194
  };
23081
23195
 
@@ -23606,7 +23720,7 @@ module.exports = mapValues;
23606
23720
  /***/ (function(module, exports, __webpack_require__) {
23607
23721
 
23608
23722
  var debounce = __webpack_require__(/*! ./debounce */ 347),
23609
- isObject = __webpack_require__(/*! ./isObject */ 11);
23723
+ isObject = __webpack_require__(/*! ./isObject */ 9);
23610
23724
 
23611
23725
  /** Error message constants. */
23612
23726
  var FUNC_ERROR_TEXT = 'Expected a function';
@@ -23685,7 +23799,7 @@ module.exports = throttle;
23685
23799
  /*! all exports used */
23686
23800
  /***/ (function(module, exports, __webpack_require__) {
23687
23801
 
23688
- var isObject = __webpack_require__(/*! ./isObject */ 11),
23802
+ var isObject = __webpack_require__(/*! ./isObject */ 9),
23689
23803
  now = __webpack_require__(/*! ./now */ 348),
23690
23804
  toNumber = __webpack_require__(/*! ./toNumber */ 112);
23691
23805