victory-chart 36.8.5-next.0 → 36.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,16 +1,10 @@
1
1
  # victory-chart
2
2
 
3
- ## 36.8.5-next.0
3
+ ## 36.8.5
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - c8c2eb2f5: Replace instances of lodash.assign with Object.assign
8
- - Updated dependencies [c8c2eb2f5]
9
- - Updated dependencies [0f3abe234]
10
- - victory-axis@36.8.5-next.0
11
- - victory-core@36.8.5-next.0
12
- - victory-polar-axis@36.8.5-next.0
13
- - victory-shared-events@36.8.5-next.0
7
+ - Replace instances of lodash.assign with Object.assign ([#2757](https://github.com/FormidableLabs/victory/pull/2757))
14
8
 
15
9
  ## 36.8.4
16
10
 
@@ -1953,44 +1953,6 @@ function basePropertyDeep(path) {
1953
1953
  module.exports = basePropertyDeep;
1954
1954
 
1955
1955
 
1956
- /***/ }),
1957
-
1958
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js":
1959
- /*!************************************************************************************!*\
1960
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js ***!
1961
- \************************************************************************************/
1962
- /***/ ((module) => {
1963
-
1964
- /* Built-in method references for those with the same name as other `lodash` methods. */
1965
- var nativeCeil = Math.ceil,
1966
- nativeMax = Math.max;
1967
-
1968
- /**
1969
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
1970
- * coerce arguments.
1971
- *
1972
- * @private
1973
- * @param {number} start The start of the range.
1974
- * @param {number} end The end of the range.
1975
- * @param {number} step The value to increment or decrement by.
1976
- * @param {boolean} [fromRight] Specify iterating from right to left.
1977
- * @returns {Array} Returns the range of numbers.
1978
- */
1979
- function baseRange(start, end, step, fromRight) {
1980
- var index = -1,
1981
- length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
1982
- result = Array(length);
1983
-
1984
- while (length--) {
1985
- result[fromRight ? length : ++index] = start;
1986
- start += step;
1987
- }
1988
- return result;
1989
- }
1990
-
1991
- module.exports = baseRange;
1992
-
1993
-
1994
1956
  /***/ }),
1995
1957
 
1996
1958
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js":
@@ -2654,46 +2616,6 @@ function createInverter(setter, toIteratee) {
2654
2616
  module.exports = createInverter;
2655
2617
 
2656
2618
 
2657
- /***/ }),
2658
-
2659
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js":
2660
- /*!**************************************************************************************!*\
2661
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js ***!
2662
- \**************************************************************************************/
2663
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2664
-
2665
- var baseRange = __webpack_require__(/*! ./_baseRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js"),
2666
- isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"),
2667
- toFinite = __webpack_require__(/*! ./toFinite */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js");
2668
-
2669
- /**
2670
- * Creates a `_.range` or `_.rangeRight` function.
2671
- *
2672
- * @private
2673
- * @param {boolean} [fromRight] Specify iterating from right to left.
2674
- * @returns {Function} Returns the new range function.
2675
- */
2676
- function createRange(fromRight) {
2677
- return function(start, end, step) {
2678
- if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
2679
- end = step = undefined;
2680
- }
2681
- // Ensure the sign of `-0` is preserved.
2682
- start = toFinite(start);
2683
- if (end === undefined) {
2684
- end = start;
2685
- start = 0;
2686
- } else {
2687
- end = toFinite(end);
2688
- }
2689
- step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
2690
- return baseRange(start, end, step, fromRight);
2691
- };
2692
- }
2693
-
2694
- module.exports = createRange;
2695
-
2696
-
2697
2619
  /***/ }),
2698
2620
 
2699
2621
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
@@ -5735,62 +5657,6 @@ function property(path) {
5735
5657
  module.exports = property;
5736
5658
 
5737
5659
 
5738
- /***/ }),
5739
-
5740
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js":
5741
- /*!*******************************************************************************!*\
5742
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js ***!
5743
- \*******************************************************************************/
5744
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5745
-
5746
- var createRange = __webpack_require__(/*! ./_createRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js");
5747
-
5748
- /**
5749
- * Creates an array of numbers (positive and/or negative) progressing from
5750
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
5751
- * `start` is specified without an `end` or `step`. If `end` is not specified,
5752
- * it's set to `start` with `start` then set to `0`.
5753
- *
5754
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
5755
- * floating-point values which can produce unexpected results.
5756
- *
5757
- * @static
5758
- * @since 0.1.0
5759
- * @memberOf _
5760
- * @category Util
5761
- * @param {number} [start=0] The start of the range.
5762
- * @param {number} end The end of the range.
5763
- * @param {number} [step=1] The value to increment or decrement by.
5764
- * @returns {Array} Returns the range of numbers.
5765
- * @see _.inRange, _.rangeRight
5766
- * @example
5767
- *
5768
- * _.range(4);
5769
- * // => [0, 1, 2, 3]
5770
- *
5771
- * _.range(-4);
5772
- * // => [0, -1, -2, -3]
5773
- *
5774
- * _.range(1, 5);
5775
- * // => [1, 2, 3, 4]
5776
- *
5777
- * _.range(0, 20, 5);
5778
- * // => [0, 5, 10, 15]
5779
- *
5780
- * _.range(0, -4, -1);
5781
- * // => [0, -1, -2, -3]
5782
- *
5783
- * _.range(1, 4, 0);
5784
- * // => [1, 1, 1]
5785
- *
5786
- * _.range(0);
5787
- * // => []
5788
- */
5789
- var range = createRange();
5790
-
5791
- module.exports = range;
5792
-
5793
-
5794
5660
  /***/ }),
5795
5661
 
5796
5662
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/some.js":
@@ -10131,9 +9997,9 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
10131
9997
 
10132
9998
  _this = _super.call.apply(_super, [this].concat(args));
10133
9999
  _this.checkedContext = void 0;
10134
- _this.portalKey = void 0;
10135
10000
  _this.renderInPlace = void 0;
10136
10001
  _this.element = void 0;
10002
+ _this.portalKey = void 0;
10137
10003
  return _this;
10138
10004
  }
10139
10005
 
@@ -12182,26 +12048,23 @@ __webpack_require__.r(__webpack_exports__);
12182
12048
  /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_2__);
12183
12049
  /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
12184
12050
  /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__);
12185
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js");
12186
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_4__);
12187
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
12188
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_5__);
12189
- /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/invert */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/invert.js");
12190
- /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_6__);
12191
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
12192
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_7__);
12193
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js");
12194
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
12195
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
12196
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_9__);
12197
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
12198
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_10__);
12199
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
12200
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
12201
- /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
12051
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
12052
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_4__);
12053
+ /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/invert */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/invert.js");
12054
+ /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_5__);
12055
+ /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
12056
+ /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_6__);
12057
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js");
12058
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_7__);
12059
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
12060
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_8__);
12061
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
12062
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_9__);
12063
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "react");
12064
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
12065
+ /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
12202
12066
  /* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
12203
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
12204
-
12067
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
12205
12068
 
12206
12069
 
12207
12070
 
@@ -12248,14 +12111,14 @@ function getAxis(props) {
12248
12111
  */
12249
12112
 
12250
12113
  function findAxisComponents(childComponents, predicate) {
12251
- var predicateFunction = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_9___default());
12114
+ var predicateFunction = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_8___default());
12252
12115
 
12253
12116
  var findAxes = function (children) {
12254
12117
  return children.reduce(function (memo, child) {
12255
12118
  if (child.type && child.type.role === "axis" && predicateFunction(child)) {
12256
12119
  return memo.concat(child);
12257
12120
  } else if (child.props && child.props.children) {
12258
- return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(child.props.children)));
12121
+ return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children)));
12259
12122
  }
12260
12123
 
12261
12124
  return memo;
@@ -12297,7 +12160,7 @@ function getAxisComponentsWithParent(childComponents, type) {
12297
12160
  if (child.type && child.type.role === "axis" && matchesType(child)) {
12298
12161
  return memo.concat(child);
12299
12162
  } else if (child.props && child.props.children) {
12300
- var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(child.props.children));
12163
+ var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children));
12301
12164
  return childAxis.length > 0 ? memo.concat(child) : memo;
12302
12165
  }
12303
12166
 
@@ -12315,8 +12178,8 @@ function getOrigin(domain) {
12315
12178
  };
12316
12179
 
12317
12180
  return {
12318
- x: _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
12319
- y: _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
12181
+ x: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
12182
+ y: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
12320
12183
  };
12321
12184
  }
12322
12185
  function getOriginSign(origin, domain) {
@@ -12324,7 +12187,7 @@ function getOriginSign(origin, domain) {
12324
12187
  return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
12325
12188
  };
12326
12189
 
12327
- return _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain) ? "positive" : getSign();
12190
+ return _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain) ? "positive" : getSign();
12328
12191
  }
12329
12192
  /**
12330
12193
  * @param {Object} props: axis component props
@@ -12347,14 +12210,14 @@ function isVertical(props) {
12347
12210
  */
12348
12211
 
12349
12212
  function stringTicks(props) {
12350
- return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(props.tickValues);
12213
+ return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(props.tickValues);
12351
12214
  }
12352
12215
 
12353
12216
  function getDefaultTickFormat(props) {
12354
12217
  var tickValues = props.tickValues;
12355
12218
  var axis = getAxis(props);
12356
12219
  var stringMap = props.stringMap && props.stringMap[axis];
12357
- var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(tickValues) ? function (x) {
12220
+ var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(tickValues) ? function (x) {
12358
12221
  return x;
12359
12222
  } : undefined;
12360
12223
 
@@ -12364,7 +12227,7 @@ function getDefaultTickFormat(props) {
12364
12227
  } : fallbackFormat;
12365
12228
  }
12366
12229
 
12367
- var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);
12230
+ var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
12368
12231
 
12369
12232
  var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default()(lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap), function (n) {
12370
12233
  return n;
@@ -12384,7 +12247,7 @@ function getStringTicks(props) {
12384
12247
  var axis = getAxis(props);
12385
12248
  var stringMap = props.stringMap && props.stringMap[axis];
12386
12249
  var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
12387
- var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_12__.containsOnlyStrings(categories) ? categories.map(function (tick) {
12250
+ var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_11__.containsOnlyStrings(categories) ? categories.map(function (tick) {
12388
12251
  return stringMap[tick];
12389
12252
  }) : undefined;
12390
12253
 
@@ -12409,7 +12272,7 @@ function getTickArray(props) {
12409
12272
  return undefined;
12410
12273
  }
12411
12274
 
12412
- return _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
12275
+ return _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
12413
12276
  return i;
12414
12277
  }) : tickFormat;
12415
12278
  };
@@ -12420,13 +12283,13 @@ function getTickArray(props) {
12420
12283
  ticks = getStringTicks(props);
12421
12284
  }
12422
12285
 
12423
- if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(tickValues)) {
12286
+ if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickValues)) {
12424
12287
  ticks = stringMap ? tickValues.map(function (tick) {
12425
12288
  return stringMap[tick];
12426
- }) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
12289
+ }) : _helpers__WEBPACK_IMPORTED_MODULE_12__.range(1, tickValues.length + 1);
12427
12290
  }
12428
12291
 
12429
- var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
12292
+ var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default()(ticks) : getTicksFromFormat();
12430
12293
 
12431
12294
  var buildTickArray = function (arr) {
12432
12295
  var newTickArray = [];
@@ -12435,7 +12298,7 @@ function getTickArray(props) {
12435
12298
  if (arr) {
12436
12299
  arr.forEach(function (t, index) {
12437
12300
  if (Array.isArray(domain)) {
12438
- if (t >= _collection__WEBPACK_IMPORTED_MODULE_12__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_12__.getMaxValue(domain)) {
12301
+ if (t >= _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(domain)) {
12439
12302
  newTickArray.push({
12440
12303
  value: t,
12441
12304
  index: index
@@ -12467,7 +12330,7 @@ function getTickFormat(props, scale) {
12467
12330
  // by default. This changed the default formatting for some scale types when
12468
12331
  // we upgraded to d3-scale@4..
12469
12332
 
12470
- var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
12333
+ var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
12471
12334
  return x;
12472
12335
  };
12473
12336
  return defaultTickFormat || scaleTickFormat;
@@ -12482,9 +12345,9 @@ function getTickFormat(props, scale) {
12482
12345
  return function (x, index) {
12483
12346
  return filteredTickFormat[index];
12484
12347
  };
12485
- } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(tickFormat)) {
12348
+ } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(tickFormat)) {
12486
12349
  var applyStringTicks = function (tick, index, ticks) {
12487
- var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);
12350
+ var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
12488
12351
 
12489
12352
  var stringTickArray = ticks.map(function (t) {
12490
12353
  return invertedStringMap[t];
@@ -12526,7 +12389,7 @@ function getTicks(props, scale) {
12526
12389
 
12527
12390
  if (tickValues) {
12528
12391
  return downsampleTicks(tickValues, tickCount);
12529
- } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.ticks)) {
12392
+ } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.ticks)) {
12530
12393
  // eslint-disable-next-line no-magic-numbers
12531
12394
  var defaultTickCount = tickCount || 5;
12532
12395
  var scaleTicks = scale.ticks(defaultTickCount);
@@ -12572,8 +12435,8 @@ function getDomainFromData(props, axis) {
12572
12435
  var ticks = tickValues.map(function (value) {
12573
12436
  return Number(value);
12574
12437
  });
12575
- var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_12__.getMinValue(ticks);
12576
- var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_12__.getMaxValue(ticks);
12438
+ var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(ticks);
12439
+ var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(ticks);
12577
12440
  var min = minDomain !== undefined ? minDomain : defaultMin;
12578
12441
  var max = maxDomain !== undefined ? maxDomain : defaultMax;
12579
12442
  var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_13__.getDomainFromMinMax(min, max);
@@ -12602,20 +12465,20 @@ function getAxisValue(props, axis) {
12602
12465
  }
12603
12466
 
12604
12467
  var scaleAxis = axis === "x" ? "y" : "x";
12605
- var scale = lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.scale) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(props.scale[scaleAxis]) ? props.scale[scaleAxis] : undefined;
12468
+ var scale = lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.scale) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(props.scale[scaleAxis]) ? props.scale[scaleAxis] : undefined;
12606
12469
 
12607
12470
  if (!scale) {
12608
12471
  return undefined;
12609
12472
  }
12610
12473
 
12611
12474
  var stringMapAxis = axis === "x" ? "y" : "x";
12612
- var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.stringMap) && props.stringMap[stringMapAxis];
12475
+ var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.stringMap) && props.stringMap[stringMapAxis];
12613
12476
  var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
12614
12477
  return scale(axisValue);
12615
12478
  }
12616
12479
  function modifyProps(props, fallbackProps) {
12617
- if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.theme)) {
12618
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(props, fallbackProps, "axis");
12480
+ if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.theme)) {
12481
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
12619
12482
  }
12620
12483
 
12621
12484
  var role = "axis";
@@ -12627,15 +12490,15 @@ function modifyProps(props, fallbackProps) {
12627
12490
  }
12628
12491
 
12629
12492
  if (role === "axis") {
12630
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(props, fallbackProps, "axis");
12493
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
12631
12494
  }
12632
12495
 
12633
- var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default()({}, props.theme[role], props.theme.axis);
12496
+ var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default()({}, props.theme[role], props.theme.axis);
12634
12497
 
12635
12498
  var theme = Object.assign({}, props.theme, {
12636
12499
  axis: axisTheme
12637
12500
  });
12638
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(Object.assign({}, props, {
12501
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(Object.assign({}, props, {
12639
12502
  theme: theme
12640
12503
  }), fallbackProps, "axis");
12641
12504
  }
@@ -12915,17 +12778,14 @@ __webpack_require__.r(__webpack_exports__);
12915
12778
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
12916
12779
  /* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! lodash/last */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js");
12917
12780
  /* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_9__);
12918
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js");
12919
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_10__);
12920
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
12921
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_11__);
12922
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "react");
12923
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
12924
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
12781
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
12782
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_10__);
12783
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
12784
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
12785
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
12925
12786
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
12926
- /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
12927
- /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
12928
-
12787
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
12788
+ /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
12929
12789
 
12930
12790
 
12931
12791
 
@@ -12962,24 +12822,22 @@ function parseDatum(datum) {
12962
12822
  errorX: true,
12963
12823
  errorY: true
12964
12824
  };
12965
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_13__.shallowToJS(datum, immutableDatumWhitelist) : datum;
12825
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_12__.shallowToJS(datum, immutableDatumWhitelist) : datum;
12966
12826
  }
12967
12827
 
12968
12828
  function getLength(data) {
12969
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(data) ? data.size : data.length;
12829
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(data) ? data.size : data.length;
12970
12830
  } // Returns generated data for a given axis based on domain and sample from props
12971
12831
 
12972
12832
 
12973
12833
  function generateDataArray(props, axis) {
12974
12834
  var propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default()(props.domain) ? props.domain[axis] : props.domain;
12975
- var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_14__.getBaseScale(props, axis).domain();
12835
+ var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_13__.getBaseScale(props, axis).domain();
12976
12836
  var samples = props.samples || 1;
12977
12837
  var domainMax = Math.max.apply(Math, _toConsumableArray(domain));
12978
12838
  var domainMin = Math.min.apply(Math, _toConsumableArray(domain));
12979
12839
  var step = (domainMax - domainMin) / samples;
12980
-
12981
- var values = lodash_range__WEBPACK_IMPORTED_MODULE_10___default()(domainMin, domainMax, step);
12982
-
12840
+ var values = _helpers__WEBPACK_IMPORTED_MODULE_14__.range(domainMin, domainMax, step);
12983
12841
  return lodash_last__WEBPACK_IMPORTED_MODULE_9___default()(values) === domainMax ? values : values.concat(domainMax);
12984
12842
  } // Returns sorted data. If no sort keys are provided, data is returned unaltered.
12985
12843
 
@@ -13006,8 +12864,8 @@ function sortData(dataset, sortKey) {
13006
12864
  function cleanData(dataset, props) {
13007
12865
  var smallNumber = 1 / Number.MAX_SAFE_INTEGER;
13008
12866
  var scaleType = {
13009
- x: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "x"),
13010
- y: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "y")
12867
+ x: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "x"),
12868
+ y: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "y")
13011
12869
  };
13012
12870
 
13013
12871
  if (scaleType.x !== "log" && scaleType.y !== "log") {
@@ -13142,7 +13000,7 @@ function createStringMap(props, axis) {
13142
13000
  var stringsFromCategories = getStringsFromCategories(props, axis);
13143
13001
  var stringsFromData = getStringsFromData(props, axis);
13144
13002
 
13145
- var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
13003
+ var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
13146
13004
 
13147
13005
  return allStrings.length === 0 ? null : allStrings.reduce(function (memo, string, index) {
13148
13006
  memo[string] = index + 1;
@@ -13184,7 +13042,7 @@ function downsample(data, maxPoints) {
13184
13042
  */
13185
13043
 
13186
13044
  function formatData(dataset, props, expectedKeys) {
13187
- var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(dataset);
13045
+ var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(dataset);
13188
13046
 
13189
13047
  if (!isArrayOrIterable || getLength(dataset) < 1) {
13190
13048
  return [];
@@ -13197,7 +13055,7 @@ function formatData(dataset, props, expectedKeys) {
13197
13055
  expectedKeys = Array.isArray(expectedKeys) ? expectedKeys : defaultKeys;
13198
13056
 
13199
13057
  var createAccessor = function (name) {
13200
- return _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(props[name] !== undefined ? props[name] : name);
13058
+ return _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(props[name] !== undefined ? props[name] : name);
13201
13059
  };
13202
13060
 
13203
13061
  var accessor = expectedKeys.reduce(function (memo, type) {
@@ -13334,14 +13192,14 @@ function getStringsFromCategories(props, axis) {
13334
13192
  */
13335
13193
 
13336
13194
  function getStringsFromData(props, axis) {
13337
- var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(props.data);
13195
+ var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(props.data);
13338
13196
 
13339
13197
  if (!isArrayOrIterable) {
13340
13198
  return [];
13341
13199
  }
13342
13200
 
13343
13201
  var key = props[axis] === undefined ? axis : props[axis];
13344
- var accessor = _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(key); // support immutable data
13202
+ var accessor = _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(key); // support immutable data
13345
13203
 
13346
13204
  var data = props.data.reduce(function (memo, d) {
13347
13205
  memo.push(parseDatum(d));
@@ -13378,7 +13236,7 @@ function isDataComponent(component) {
13378
13236
  var role = getRole(component);
13379
13237
 
13380
13238
  if (role === "portal") {
13381
- var children = react__WEBPACK_IMPORTED_MODULE_12___default().Children.toArray(component.props.children);
13239
+ var children = react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(component.props.children);
13382
13240
  role = children.length ? getRole(children[0]) : "";
13383
13241
  }
13384
13242
 
@@ -14368,6 +14226,7 @@ __webpack_require__.r(__webpack_exports__);
14368
14226
  /* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
14369
14227
  /* harmony export */ "omit": () => (/* binding */ omit),
14370
14228
  /* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
14229
+ /* harmony export */ "range": () => (/* binding */ range),
14371
14230
  /* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
14372
14231
  /* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
14373
14232
  /* harmony export */ });
@@ -14647,6 +14506,38 @@ function getCurrentAxis(axis, horizontal) {
14647
14506
  var otherAxis = axis === "x" ? "y" : "x";
14648
14507
  return horizontal ? otherAxis : axis;
14649
14508
  }
14509
+ /**
14510
+ * Creates an array of numbers (positive and/or negative) progressing
14511
+ * from start up to, but not including, end.
14512
+ * A step of -1 is used if a negative start is specified without an end or step.
14513
+ * If end is not specified, it's set to start with start then set to 0.
14514
+ *
14515
+ * @param start The length of the array to create, or the start value
14516
+ * @param end [The end value] If this is defined, start is the start value
14517
+ * @returns An array of the given length
14518
+ */
14519
+
14520
+ function range(start, end, increment) {
14521
+ // when the end index is not given, start from 0
14522
+ var startIndex = end ? start : 0; // when the end index is not given, the end of the range is the start index
14523
+
14524
+ var endIndex = end ? end : start; // ensure endIndex is not a falsy value
14525
+
14526
+ if (!endIndex) endIndex = 0;
14527
+ var k = endIndex - startIndex; // the value range
14528
+
14529
+ var length = Math.abs(k); // the length of the range
14530
+
14531
+ var sign = k / length || 1; // the sign of the range (negative or positive)
14532
+
14533
+ var inc = increment || 1; // the step size of each increment
14534
+ // normalize the array length when dealing with floating point values
14535
+
14536
+ var arrayLength = Math.max(Math.ceil(length / inc), 0);
14537
+ return Array.from(Array(arrayLength), function (_, i) {
14538
+ return startIndex + i * sign * inc;
14539
+ });
14540
+ }
14650
14541
  /**
14651
14542
  * @param {Array} children: an array of child components
14652
14543
  * @param {Function} iteratee: a function with arguments "child", "childName", and "parent"