victory-stack 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,14 +1,10 @@
1
1
  # victory-stack
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-core@36.8.5-next.0
11
- - 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))
12
8
 
13
9
  ## 36.8.4
14
10
 
@@ -1978,44 +1978,6 @@ function basePropertyDeep(path) {
1978
1978
  module.exports = basePropertyDeep;
1979
1979
 
1980
1980
 
1981
- /***/ }),
1982
-
1983
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js":
1984
- /*!************************************************************************************!*\
1985
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js ***!
1986
- \************************************************************************************/
1987
- /***/ ((module) => {
1988
-
1989
- /* Built-in method references for those with the same name as other `lodash` methods. */
1990
- var nativeCeil = Math.ceil,
1991
- nativeMax = Math.max;
1992
-
1993
- /**
1994
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
1995
- * coerce arguments.
1996
- *
1997
- * @private
1998
- * @param {number} start The start of the range.
1999
- * @param {number} end The end of the range.
2000
- * @param {number} step The value to increment or decrement by.
2001
- * @param {boolean} [fromRight] Specify iterating from right to left.
2002
- * @returns {Array} Returns the range of numbers.
2003
- */
2004
- function baseRange(start, end, step, fromRight) {
2005
- var index = -1,
2006
- length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
2007
- result = Array(length);
2008
-
2009
- while (length--) {
2010
- result[fromRight ? length : ++index] = start;
2011
- start += step;
2012
- }
2013
- return result;
2014
- }
2015
-
2016
- module.exports = baseRange;
2017
-
2018
-
2019
1981
  /***/ }),
2020
1982
 
2021
1983
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js":
@@ -2679,46 +2641,6 @@ function createInverter(setter, toIteratee) {
2679
2641
  module.exports = createInverter;
2680
2642
 
2681
2643
 
2682
- /***/ }),
2683
-
2684
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js":
2685
- /*!**************************************************************************************!*\
2686
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js ***!
2687
- \**************************************************************************************/
2688
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2689
-
2690
- var baseRange = __webpack_require__(/*! ./_baseRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js"),
2691
- isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"),
2692
- toFinite = __webpack_require__(/*! ./toFinite */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js");
2693
-
2694
- /**
2695
- * Creates a `_.range` or `_.rangeRight` function.
2696
- *
2697
- * @private
2698
- * @param {boolean} [fromRight] Specify iterating from right to left.
2699
- * @returns {Function} Returns the new range function.
2700
- */
2701
- function createRange(fromRight) {
2702
- return function(start, end, step) {
2703
- if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
2704
- end = step = undefined;
2705
- }
2706
- // Ensure the sign of `-0` is preserved.
2707
- start = toFinite(start);
2708
- if (end === undefined) {
2709
- end = start;
2710
- start = 0;
2711
- } else {
2712
- end = toFinite(end);
2713
- }
2714
- step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
2715
- return baseRange(start, end, step, fromRight);
2716
- };
2717
- }
2718
-
2719
- module.exports = createRange;
2720
-
2721
-
2722
2644
  /***/ }),
2723
2645
 
2724
2646
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
@@ -5642,62 +5564,6 @@ function property(path) {
5642
5564
  module.exports = property;
5643
5565
 
5644
5566
 
5645
- /***/ }),
5646
-
5647
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js":
5648
- /*!*******************************************************************************!*\
5649
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js ***!
5650
- \*******************************************************************************/
5651
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5652
-
5653
- var createRange = __webpack_require__(/*! ./_createRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js");
5654
-
5655
- /**
5656
- * Creates an array of numbers (positive and/or negative) progressing from
5657
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
5658
- * `start` is specified without an `end` or `step`. If `end` is not specified,
5659
- * it's set to `start` with `start` then set to `0`.
5660
- *
5661
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
5662
- * floating-point values which can produce unexpected results.
5663
- *
5664
- * @static
5665
- * @since 0.1.0
5666
- * @memberOf _
5667
- * @category Util
5668
- * @param {number} [start=0] The start of the range.
5669
- * @param {number} end The end of the range.
5670
- * @param {number} [step=1] The value to increment or decrement by.
5671
- * @returns {Array} Returns the range of numbers.
5672
- * @see _.inRange, _.rangeRight
5673
- * @example
5674
- *
5675
- * _.range(4);
5676
- * // => [0, 1, 2, 3]
5677
- *
5678
- * _.range(-4);
5679
- * // => [0, -1, -2, -3]
5680
- *
5681
- * _.range(1, 5);
5682
- * // => [1, 2, 3, 4]
5683
- *
5684
- * _.range(0, 20, 5);
5685
- * // => [0, 5, 10, 15]
5686
- *
5687
- * _.range(0, -4, -1);
5688
- * // => [0, -1, -2, -3]
5689
- *
5690
- * _.range(1, 4, 0);
5691
- * // => [1, 1, 1]
5692
- *
5693
- * _.range(0);
5694
- * // => []
5695
- */
5696
- var range = createRange();
5697
-
5698
- module.exports = range;
5699
-
5700
-
5701
5567
  /***/ }),
5702
5568
 
5703
5569
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/some.js":
@@ -8482,26 +8348,23 @@ __webpack_require__.r(__webpack_exports__);
8482
8348
  /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_2__);
8483
8349
  /* 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");
8484
8350
  /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__);
8485
- /* 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");
8486
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_4__);
8487
- /* 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");
8488
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_5__);
8489
- /* 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");
8490
- /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_6__);
8491
- /* 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");
8492
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_7__);
8493
- /* 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");
8494
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
8495
- /* 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");
8496
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_9__);
8497
- /* 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");
8498
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_10__);
8499
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
8500
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
8501
- /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
8351
+ /* 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");
8352
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_4__);
8353
+ /* 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");
8354
+ /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_5__);
8355
+ /* 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");
8356
+ /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_6__);
8357
+ /* 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");
8358
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_7__);
8359
+ /* 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");
8360
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_8__);
8361
+ /* 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");
8362
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_9__);
8363
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "react");
8364
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
8365
+ /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
8502
8366
  /* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
8503
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8504
-
8367
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8505
8368
 
8506
8369
 
8507
8370
 
@@ -8548,14 +8411,14 @@ function getAxis(props) {
8548
8411
  */
8549
8412
 
8550
8413
  function findAxisComponents(childComponents, predicate) {
8551
- var predicateFunction = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_9___default());
8414
+ var predicateFunction = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_8___default());
8552
8415
 
8553
8416
  var findAxes = function (children) {
8554
8417
  return children.reduce(function (memo, child) {
8555
8418
  if (child.type && child.type.role === "axis" && predicateFunction(child)) {
8556
8419
  return memo.concat(child);
8557
8420
  } else if (child.props && child.props.children) {
8558
- return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(child.props.children)));
8421
+ return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children)));
8559
8422
  }
8560
8423
 
8561
8424
  return memo;
@@ -8597,7 +8460,7 @@ function getAxisComponentsWithParent(childComponents, type) {
8597
8460
  if (child.type && child.type.role === "axis" && matchesType(child)) {
8598
8461
  return memo.concat(child);
8599
8462
  } else if (child.props && child.props.children) {
8600
- var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(child.props.children));
8463
+ var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children));
8601
8464
  return childAxis.length > 0 ? memo.concat(child) : memo;
8602
8465
  }
8603
8466
 
@@ -8615,8 +8478,8 @@ function getOrigin(domain) {
8615
8478
  };
8616
8479
 
8617
8480
  return {
8618
- x: _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
8619
- y: _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
8481
+ x: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
8482
+ y: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
8620
8483
  };
8621
8484
  }
8622
8485
  function getOriginSign(origin, domain) {
@@ -8624,7 +8487,7 @@ function getOriginSign(origin, domain) {
8624
8487
  return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
8625
8488
  };
8626
8489
 
8627
- return _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain) ? "positive" : getSign();
8490
+ return _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain) ? "positive" : getSign();
8628
8491
  }
8629
8492
  /**
8630
8493
  * @param {Object} props: axis component props
@@ -8647,14 +8510,14 @@ function isVertical(props) {
8647
8510
  */
8648
8511
 
8649
8512
  function stringTicks(props) {
8650
- return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(props.tickValues);
8513
+ return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(props.tickValues);
8651
8514
  }
8652
8515
 
8653
8516
  function getDefaultTickFormat(props) {
8654
8517
  var tickValues = props.tickValues;
8655
8518
  var axis = getAxis(props);
8656
8519
  var stringMap = props.stringMap && props.stringMap[axis];
8657
- var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(tickValues) ? function (x) {
8520
+ var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(tickValues) ? function (x) {
8658
8521
  return x;
8659
8522
  } : undefined;
8660
8523
 
@@ -8664,7 +8527,7 @@ function getDefaultTickFormat(props) {
8664
8527
  } : fallbackFormat;
8665
8528
  }
8666
8529
 
8667
- var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);
8530
+ var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
8668
8531
 
8669
8532
  var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default()(lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap), function (n) {
8670
8533
  return n;
@@ -8684,7 +8547,7 @@ function getStringTicks(props) {
8684
8547
  var axis = getAxis(props);
8685
8548
  var stringMap = props.stringMap && props.stringMap[axis];
8686
8549
  var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
8687
- var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_12__.containsOnlyStrings(categories) ? categories.map(function (tick) {
8550
+ var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_11__.containsOnlyStrings(categories) ? categories.map(function (tick) {
8688
8551
  return stringMap[tick];
8689
8552
  }) : undefined;
8690
8553
 
@@ -8709,7 +8572,7 @@ function getTickArray(props) {
8709
8572
  return undefined;
8710
8573
  }
8711
8574
 
8712
- return _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
8575
+ return _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
8713
8576
  return i;
8714
8577
  }) : tickFormat;
8715
8578
  };
@@ -8720,13 +8583,13 @@ function getTickArray(props) {
8720
8583
  ticks = getStringTicks(props);
8721
8584
  }
8722
8585
 
8723
- if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(tickValues)) {
8586
+ if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickValues)) {
8724
8587
  ticks = stringMap ? tickValues.map(function (tick) {
8725
8588
  return stringMap[tick];
8726
- }) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
8589
+ }) : _helpers__WEBPACK_IMPORTED_MODULE_12__.range(1, tickValues.length + 1);
8727
8590
  }
8728
8591
 
8729
- var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
8592
+ var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default()(ticks) : getTicksFromFormat();
8730
8593
 
8731
8594
  var buildTickArray = function (arr) {
8732
8595
  var newTickArray = [];
@@ -8735,7 +8598,7 @@ function getTickArray(props) {
8735
8598
  if (arr) {
8736
8599
  arr.forEach(function (t, index) {
8737
8600
  if (Array.isArray(domain)) {
8738
- if (t >= _collection__WEBPACK_IMPORTED_MODULE_12__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_12__.getMaxValue(domain)) {
8601
+ if (t >= _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(domain)) {
8739
8602
  newTickArray.push({
8740
8603
  value: t,
8741
8604
  index: index
@@ -8767,7 +8630,7 @@ function getTickFormat(props, scale) {
8767
8630
  // by default. This changed the default formatting for some scale types when
8768
8631
  // we upgraded to d3-scale@4..
8769
8632
 
8770
- var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
8633
+ var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
8771
8634
  return x;
8772
8635
  };
8773
8636
  return defaultTickFormat || scaleTickFormat;
@@ -8782,9 +8645,9 @@ function getTickFormat(props, scale) {
8782
8645
  return function (x, index) {
8783
8646
  return filteredTickFormat[index];
8784
8647
  };
8785
- } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(tickFormat)) {
8648
+ } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(tickFormat)) {
8786
8649
  var applyStringTicks = function (tick, index, ticks) {
8787
- var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);
8650
+ var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
8788
8651
 
8789
8652
  var stringTickArray = ticks.map(function (t) {
8790
8653
  return invertedStringMap[t];
@@ -8826,7 +8689,7 @@ function getTicks(props, scale) {
8826
8689
 
8827
8690
  if (tickValues) {
8828
8691
  return downsampleTicks(tickValues, tickCount);
8829
- } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.ticks)) {
8692
+ } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.ticks)) {
8830
8693
  // eslint-disable-next-line no-magic-numbers
8831
8694
  var defaultTickCount = tickCount || 5;
8832
8695
  var scaleTicks = scale.ticks(defaultTickCount);
@@ -8872,8 +8735,8 @@ function getDomainFromData(props, axis) {
8872
8735
  var ticks = tickValues.map(function (value) {
8873
8736
  return Number(value);
8874
8737
  });
8875
- var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_12__.getMinValue(ticks);
8876
- var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_12__.getMaxValue(ticks);
8738
+ var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(ticks);
8739
+ var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(ticks);
8877
8740
  var min = minDomain !== undefined ? minDomain : defaultMin;
8878
8741
  var max = maxDomain !== undefined ? maxDomain : defaultMax;
8879
8742
  var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_13__.getDomainFromMinMax(min, max);
@@ -8902,20 +8765,20 @@ function getAxisValue(props, axis) {
8902
8765
  }
8903
8766
 
8904
8767
  var scaleAxis = axis === "x" ? "y" : "x";
8905
- 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;
8768
+ 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;
8906
8769
 
8907
8770
  if (!scale) {
8908
8771
  return undefined;
8909
8772
  }
8910
8773
 
8911
8774
  var stringMapAxis = axis === "x" ? "y" : "x";
8912
- var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.stringMap) && props.stringMap[stringMapAxis];
8775
+ var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.stringMap) && props.stringMap[stringMapAxis];
8913
8776
  var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
8914
8777
  return scale(axisValue);
8915
8778
  }
8916
8779
  function modifyProps(props, fallbackProps) {
8917
- if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.theme)) {
8918
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(props, fallbackProps, "axis");
8780
+ if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.theme)) {
8781
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
8919
8782
  }
8920
8783
 
8921
8784
  var role = "axis";
@@ -8927,15 +8790,15 @@ function modifyProps(props, fallbackProps) {
8927
8790
  }
8928
8791
 
8929
8792
  if (role === "axis") {
8930
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(props, fallbackProps, "axis");
8793
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
8931
8794
  }
8932
8795
 
8933
- var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default()({}, props.theme[role], props.theme.axis);
8796
+ var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default()({}, props.theme[role], props.theme.axis);
8934
8797
 
8935
8798
  var theme = Object.assign({}, props.theme, {
8936
8799
  axis: axisTheme
8937
8800
  });
8938
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(Object.assign({}, props, {
8801
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(Object.assign({}, props, {
8939
8802
  theme: theme
8940
8803
  }), fallbackProps, "axis");
8941
8804
  }
@@ -9215,17 +9078,14 @@ __webpack_require__.r(__webpack_exports__);
9215
9078
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
9216
9079
  /* 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");
9217
9080
  /* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_9__);
9218
- /* 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");
9219
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_10__);
9220
- /* 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");
9221
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_11__);
9222
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "react");
9223
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
9224
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9081
+ /* 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");
9082
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_10__);
9083
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
9084
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
9085
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9225
9086
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
9226
- /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
9227
- /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
9228
-
9087
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
9088
+ /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
9229
9089
 
9230
9090
 
9231
9091
 
@@ -9262,24 +9122,22 @@ function parseDatum(datum) {
9262
9122
  errorX: true,
9263
9123
  errorY: true
9264
9124
  };
9265
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_13__.shallowToJS(datum, immutableDatumWhitelist) : datum;
9125
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_12__.shallowToJS(datum, immutableDatumWhitelist) : datum;
9266
9126
  }
9267
9127
 
9268
9128
  function getLength(data) {
9269
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(data) ? data.size : data.length;
9129
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(data) ? data.size : data.length;
9270
9130
  } // Returns generated data for a given axis based on domain and sample from props
9271
9131
 
9272
9132
 
9273
9133
  function generateDataArray(props, axis) {
9274
9134
  var propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default()(props.domain) ? props.domain[axis] : props.domain;
9275
- var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_14__.getBaseScale(props, axis).domain();
9135
+ var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_13__.getBaseScale(props, axis).domain();
9276
9136
  var samples = props.samples || 1;
9277
9137
  var domainMax = Math.max.apply(Math, _toConsumableArray(domain));
9278
9138
  var domainMin = Math.min.apply(Math, _toConsumableArray(domain));
9279
9139
  var step = (domainMax - domainMin) / samples;
9280
-
9281
- var values = lodash_range__WEBPACK_IMPORTED_MODULE_10___default()(domainMin, domainMax, step);
9282
-
9140
+ var values = _helpers__WEBPACK_IMPORTED_MODULE_14__.range(domainMin, domainMax, step);
9283
9141
  return lodash_last__WEBPACK_IMPORTED_MODULE_9___default()(values) === domainMax ? values : values.concat(domainMax);
9284
9142
  } // Returns sorted data. If no sort keys are provided, data is returned unaltered.
9285
9143
 
@@ -9306,8 +9164,8 @@ function sortData(dataset, sortKey) {
9306
9164
  function cleanData(dataset, props) {
9307
9165
  var smallNumber = 1 / Number.MAX_SAFE_INTEGER;
9308
9166
  var scaleType = {
9309
- x: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "x"),
9310
- y: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "y")
9167
+ x: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "x"),
9168
+ y: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "y")
9311
9169
  };
9312
9170
 
9313
9171
  if (scaleType.x !== "log" && scaleType.y !== "log") {
@@ -9442,7 +9300,7 @@ function createStringMap(props, axis) {
9442
9300
  var stringsFromCategories = getStringsFromCategories(props, axis);
9443
9301
  var stringsFromData = getStringsFromData(props, axis);
9444
9302
 
9445
- var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
9303
+ var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
9446
9304
 
9447
9305
  return allStrings.length === 0 ? null : allStrings.reduce(function (memo, string, index) {
9448
9306
  memo[string] = index + 1;
@@ -9484,7 +9342,7 @@ function downsample(data, maxPoints) {
9484
9342
  */
9485
9343
 
9486
9344
  function formatData(dataset, props, expectedKeys) {
9487
- var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(dataset);
9345
+ var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(dataset);
9488
9346
 
9489
9347
  if (!isArrayOrIterable || getLength(dataset) < 1) {
9490
9348
  return [];
@@ -9497,7 +9355,7 @@ function formatData(dataset, props, expectedKeys) {
9497
9355
  expectedKeys = Array.isArray(expectedKeys) ? expectedKeys : defaultKeys;
9498
9356
 
9499
9357
  var createAccessor = function (name) {
9500
- return _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(props[name] !== undefined ? props[name] : name);
9358
+ return _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(props[name] !== undefined ? props[name] : name);
9501
9359
  };
9502
9360
 
9503
9361
  var accessor = expectedKeys.reduce(function (memo, type) {
@@ -9634,14 +9492,14 @@ function getStringsFromCategories(props, axis) {
9634
9492
  */
9635
9493
 
9636
9494
  function getStringsFromData(props, axis) {
9637
- var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(props.data);
9495
+ var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(props.data);
9638
9496
 
9639
9497
  if (!isArrayOrIterable) {
9640
9498
  return [];
9641
9499
  }
9642
9500
 
9643
9501
  var key = props[axis] === undefined ? axis : props[axis];
9644
- var accessor = _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(key); // support immutable data
9502
+ var accessor = _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(key); // support immutable data
9645
9503
 
9646
9504
  var data = props.data.reduce(function (memo, d) {
9647
9505
  memo.push(parseDatum(d));
@@ -9678,7 +9536,7 @@ function isDataComponent(component) {
9678
9536
  var role = getRole(component);
9679
9537
 
9680
9538
  if (role === "portal") {
9681
- var children = react__WEBPACK_IMPORTED_MODULE_12___default().Children.toArray(component.props.children);
9539
+ var children = react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(component.props.children);
9682
9540
  role = children.length ? getRole(children[0]) : "";
9683
9541
  }
9684
9542
 
@@ -10668,6 +10526,7 @@ __webpack_require__.r(__webpack_exports__);
10668
10526
  /* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
10669
10527
  /* harmony export */ "omit": () => (/* binding */ omit),
10670
10528
  /* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
10529
+ /* harmony export */ "range": () => (/* binding */ range),
10671
10530
  /* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
10672
10531
  /* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
10673
10532
  /* harmony export */ });
@@ -10947,6 +10806,38 @@ function getCurrentAxis(axis, horizontal) {
10947
10806
  var otherAxis = axis === "x" ? "y" : "x";
10948
10807
  return horizontal ? otherAxis : axis;
10949
10808
  }
10809
+ /**
10810
+ * Creates an array of numbers (positive and/or negative) progressing
10811
+ * from start up to, but not including, end.
10812
+ * A step of -1 is used if a negative start is specified without an end or step.
10813
+ * If end is not specified, it's set to start with start then set to 0.
10814
+ *
10815
+ * @param start The length of the array to create, or the start value
10816
+ * @param end [The end value] If this is defined, start is the start value
10817
+ * @returns An array of the given length
10818
+ */
10819
+
10820
+ function range(start, end, increment) {
10821
+ // when the end index is not given, start from 0
10822
+ var startIndex = end ? start : 0; // when the end index is not given, the end of the range is the start index
10823
+
10824
+ var endIndex = end ? end : start; // ensure endIndex is not a falsy value
10825
+
10826
+ if (!endIndex) endIndex = 0;
10827
+ var k = endIndex - startIndex; // the value range
10828
+
10829
+ var length = Math.abs(k); // the length of the range
10830
+
10831
+ var sign = k / length || 1; // the sign of the range (negative or positive)
10832
+
10833
+ var inc = increment || 1; // the step size of each increment
10834
+ // normalize the array length when dealing with floating point values
10835
+
10836
+ var arrayLength = Math.max(Math.ceil(length / inc), 0);
10837
+ return Array.from(Array(arrayLength), function (_, i) {
10838
+ return startIndex + i * sign * inc;
10839
+ });
10840
+ }
10950
10841
  /**
10951
10842
  * @param {Array} children: an array of child components
10952
10843
  * @param {Function} iteratee: a function with arguments "child", "childName", and "parent"