victory-group 36.8.5-next.0 → 36.8.6

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,12 @@
1
1
  # victory-group
2
2
 
3
- ## 36.8.5-next.0
3
+ ## 36.8.6
4
+
5
+ ## 36.8.5
4
6
 
5
7
  ### Patch Changes
6
8
 
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
9
+ - Replace instances of lodash.assign with Object.assign ([#2757](https://github.com/FormidableLabs/victory/pull/2757))
12
10
 
13
11
  ## 36.8.4
14
12
 
@@ -1911,44 +1911,6 @@ function basePropertyDeep(path) {
1911
1911
  module.exports = basePropertyDeep;
1912
1912
 
1913
1913
 
1914
- /***/ }),
1915
-
1916
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js":
1917
- /*!************************************************************************************!*\
1918
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js ***!
1919
- \************************************************************************************/
1920
- /***/ ((module) => {
1921
-
1922
- /* Built-in method references for those with the same name as other `lodash` methods. */
1923
- var nativeCeil = Math.ceil,
1924
- nativeMax = Math.max;
1925
-
1926
- /**
1927
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
1928
- * coerce arguments.
1929
- *
1930
- * @private
1931
- * @param {number} start The start of the range.
1932
- * @param {number} end The end of the range.
1933
- * @param {number} step The value to increment or decrement by.
1934
- * @param {boolean} [fromRight] Specify iterating from right to left.
1935
- * @returns {Array} Returns the range of numbers.
1936
- */
1937
- function baseRange(start, end, step, fromRight) {
1938
- var index = -1,
1939
- length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
1940
- result = Array(length);
1941
-
1942
- while (length--) {
1943
- result[fromRight ? length : ++index] = start;
1944
- start += step;
1945
- }
1946
- return result;
1947
- }
1948
-
1949
- module.exports = baseRange;
1950
-
1951
-
1952
1914
  /***/ }),
1953
1915
 
1954
1916
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js":
@@ -2612,46 +2574,6 @@ function createInverter(setter, toIteratee) {
2612
2574
  module.exports = createInverter;
2613
2575
 
2614
2576
 
2615
- /***/ }),
2616
-
2617
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js":
2618
- /*!**************************************************************************************!*\
2619
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js ***!
2620
- \**************************************************************************************/
2621
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2622
-
2623
- var baseRange = __webpack_require__(/*! ./_baseRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js"),
2624
- isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"),
2625
- toFinite = __webpack_require__(/*! ./toFinite */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js");
2626
-
2627
- /**
2628
- * Creates a `_.range` or `_.rangeRight` function.
2629
- *
2630
- * @private
2631
- * @param {boolean} [fromRight] Specify iterating from right to left.
2632
- * @returns {Function} Returns the new range function.
2633
- */
2634
- function createRange(fromRight) {
2635
- return function(start, end, step) {
2636
- if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
2637
- end = step = undefined;
2638
- }
2639
- // Ensure the sign of `-0` is preserved.
2640
- start = toFinite(start);
2641
- if (end === undefined) {
2642
- end = start;
2643
- start = 0;
2644
- } else {
2645
- end = toFinite(end);
2646
- }
2647
- step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
2648
- return baseRange(start, end, step, fromRight);
2649
- };
2650
- }
2651
-
2652
- module.exports = createRange;
2653
-
2654
-
2655
2577
  /***/ }),
2656
2578
 
2657
2579
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
@@ -5575,62 +5497,6 @@ function property(path) {
5575
5497
  module.exports = property;
5576
5498
 
5577
5499
 
5578
- /***/ }),
5579
-
5580
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js":
5581
- /*!*******************************************************************************!*\
5582
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js ***!
5583
- \*******************************************************************************/
5584
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5585
-
5586
- var createRange = __webpack_require__(/*! ./_createRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js");
5587
-
5588
- /**
5589
- * Creates an array of numbers (positive and/or negative) progressing from
5590
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
5591
- * `start` is specified without an `end` or `step`. If `end` is not specified,
5592
- * it's set to `start` with `start` then set to `0`.
5593
- *
5594
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
5595
- * floating-point values which can produce unexpected results.
5596
- *
5597
- * @static
5598
- * @since 0.1.0
5599
- * @memberOf _
5600
- * @category Util
5601
- * @param {number} [start=0] The start of the range.
5602
- * @param {number} end The end of the range.
5603
- * @param {number} [step=1] The value to increment or decrement by.
5604
- * @returns {Array} Returns the range of numbers.
5605
- * @see _.inRange, _.rangeRight
5606
- * @example
5607
- *
5608
- * _.range(4);
5609
- * // => [0, 1, 2, 3]
5610
- *
5611
- * _.range(-4);
5612
- * // => [0, -1, -2, -3]
5613
- *
5614
- * _.range(1, 5);
5615
- * // => [1, 2, 3, 4]
5616
- *
5617
- * _.range(0, 20, 5);
5618
- * // => [0, 5, 10, 15]
5619
- *
5620
- * _.range(0, -4, -1);
5621
- * // => [0, -1, -2, -3]
5622
- *
5623
- * _.range(1, 4, 0);
5624
- * // => [1, 1, 1]
5625
- *
5626
- * _.range(0);
5627
- * // => []
5628
- */
5629
- var range = createRange();
5630
-
5631
- module.exports = range;
5632
-
5633
-
5634
5500
  /***/ }),
5635
5501
 
5636
5502
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/some.js":
@@ -8415,26 +8281,23 @@ __webpack_require__.r(__webpack_exports__);
8415
8281
  /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_2__);
8416
8282
  /* 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");
8417
8283
  /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__);
8418
- /* 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");
8419
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_4__);
8420
- /* 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");
8421
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_5__);
8422
- /* 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");
8423
- /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_6__);
8424
- /* 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");
8425
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_7__);
8426
- /* 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");
8427
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
8428
- /* 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");
8429
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_9__);
8430
- /* 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");
8431
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_10__);
8432
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
8433
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
8434
- /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
8284
+ /* 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");
8285
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_4__);
8286
+ /* 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");
8287
+ /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_5__);
8288
+ /* 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");
8289
+ /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_6__);
8290
+ /* 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");
8291
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_7__);
8292
+ /* 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");
8293
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_8__);
8294
+ /* 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");
8295
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_9__);
8296
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "react");
8297
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
8298
+ /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
8435
8299
  /* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
8436
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8437
-
8300
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8438
8301
 
8439
8302
 
8440
8303
 
@@ -8481,14 +8344,14 @@ function getAxis(props) {
8481
8344
  */
8482
8345
 
8483
8346
  function findAxisComponents(childComponents, predicate) {
8484
- var predicateFunction = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_9___default());
8347
+ var predicateFunction = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_8___default());
8485
8348
 
8486
8349
  var findAxes = function (children) {
8487
8350
  return children.reduce(function (memo, child) {
8488
8351
  if (child.type && child.type.role === "axis" && predicateFunction(child)) {
8489
8352
  return memo.concat(child);
8490
8353
  } else if (child.props && child.props.children) {
8491
- return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(child.props.children)));
8354
+ return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children)));
8492
8355
  }
8493
8356
 
8494
8357
  return memo;
@@ -8530,7 +8393,7 @@ function getAxisComponentsWithParent(childComponents, type) {
8530
8393
  if (child.type && child.type.role === "axis" && matchesType(child)) {
8531
8394
  return memo.concat(child);
8532
8395
  } else if (child.props && child.props.children) {
8533
- var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(child.props.children));
8396
+ var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children));
8534
8397
  return childAxis.length > 0 ? memo.concat(child) : memo;
8535
8398
  }
8536
8399
 
@@ -8548,8 +8411,8 @@ function getOrigin(domain) {
8548
8411
  };
8549
8412
 
8550
8413
  return {
8551
- x: _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
8552
- y: _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
8414
+ x: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
8415
+ y: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
8553
8416
  };
8554
8417
  }
8555
8418
  function getOriginSign(origin, domain) {
@@ -8557,7 +8420,7 @@ function getOriginSign(origin, domain) {
8557
8420
  return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
8558
8421
  };
8559
8422
 
8560
- return _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain) ? "positive" : getSign();
8423
+ return _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain) ? "positive" : getSign();
8561
8424
  }
8562
8425
  /**
8563
8426
  * @param {Object} props: axis component props
@@ -8580,14 +8443,14 @@ function isVertical(props) {
8580
8443
  */
8581
8444
 
8582
8445
  function stringTicks(props) {
8583
- return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(props.tickValues);
8446
+ return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(props.tickValues);
8584
8447
  }
8585
8448
 
8586
8449
  function getDefaultTickFormat(props) {
8587
8450
  var tickValues = props.tickValues;
8588
8451
  var axis = getAxis(props);
8589
8452
  var stringMap = props.stringMap && props.stringMap[axis];
8590
- var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(tickValues) ? function (x) {
8453
+ var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(tickValues) ? function (x) {
8591
8454
  return x;
8592
8455
  } : undefined;
8593
8456
 
@@ -8597,7 +8460,7 @@ function getDefaultTickFormat(props) {
8597
8460
  } : fallbackFormat;
8598
8461
  }
8599
8462
 
8600
- var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);
8463
+ var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
8601
8464
 
8602
8465
  var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default()(lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap), function (n) {
8603
8466
  return n;
@@ -8617,7 +8480,7 @@ function getStringTicks(props) {
8617
8480
  var axis = getAxis(props);
8618
8481
  var stringMap = props.stringMap && props.stringMap[axis];
8619
8482
  var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
8620
- var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_12__.containsOnlyStrings(categories) ? categories.map(function (tick) {
8483
+ var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_11__.containsOnlyStrings(categories) ? categories.map(function (tick) {
8621
8484
  return stringMap[tick];
8622
8485
  }) : undefined;
8623
8486
 
@@ -8642,7 +8505,7 @@ function getTickArray(props) {
8642
8505
  return undefined;
8643
8506
  }
8644
8507
 
8645
- return _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
8508
+ return _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
8646
8509
  return i;
8647
8510
  }) : tickFormat;
8648
8511
  };
@@ -8653,13 +8516,13 @@ function getTickArray(props) {
8653
8516
  ticks = getStringTicks(props);
8654
8517
  }
8655
8518
 
8656
- if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(tickValues)) {
8519
+ if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickValues)) {
8657
8520
  ticks = stringMap ? tickValues.map(function (tick) {
8658
8521
  return stringMap[tick];
8659
- }) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
8522
+ }) : _helpers__WEBPACK_IMPORTED_MODULE_12__.range(1, tickValues.length + 1);
8660
8523
  }
8661
8524
 
8662
- var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
8525
+ var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default()(ticks) : getTicksFromFormat();
8663
8526
 
8664
8527
  var buildTickArray = function (arr) {
8665
8528
  var newTickArray = [];
@@ -8668,7 +8531,7 @@ function getTickArray(props) {
8668
8531
  if (arr) {
8669
8532
  arr.forEach(function (t, index) {
8670
8533
  if (Array.isArray(domain)) {
8671
- if (t >= _collection__WEBPACK_IMPORTED_MODULE_12__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_12__.getMaxValue(domain)) {
8534
+ if (t >= _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(domain)) {
8672
8535
  newTickArray.push({
8673
8536
  value: t,
8674
8537
  index: index
@@ -8700,7 +8563,7 @@ function getTickFormat(props, scale) {
8700
8563
  // by default. This changed the default formatting for some scale types when
8701
8564
  // we upgraded to d3-scale@4..
8702
8565
 
8703
- var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
8566
+ var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
8704
8567
  return x;
8705
8568
  };
8706
8569
  return defaultTickFormat || scaleTickFormat;
@@ -8715,9 +8578,9 @@ function getTickFormat(props, scale) {
8715
8578
  return function (x, index) {
8716
8579
  return filteredTickFormat[index];
8717
8580
  };
8718
- } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(tickFormat)) {
8581
+ } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(tickFormat)) {
8719
8582
  var applyStringTicks = function (tick, index, ticks) {
8720
- var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);
8583
+ var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
8721
8584
 
8722
8585
  var stringTickArray = ticks.map(function (t) {
8723
8586
  return invertedStringMap[t];
@@ -8759,7 +8622,7 @@ function getTicks(props, scale) {
8759
8622
 
8760
8623
  if (tickValues) {
8761
8624
  return downsampleTicks(tickValues, tickCount);
8762
- } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.ticks)) {
8625
+ } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.ticks)) {
8763
8626
  // eslint-disable-next-line no-magic-numbers
8764
8627
  var defaultTickCount = tickCount || 5;
8765
8628
  var scaleTicks = scale.ticks(defaultTickCount);
@@ -8805,8 +8668,8 @@ function getDomainFromData(props, axis) {
8805
8668
  var ticks = tickValues.map(function (value) {
8806
8669
  return Number(value);
8807
8670
  });
8808
- var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_12__.getMinValue(ticks);
8809
- var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_12__.getMaxValue(ticks);
8671
+ var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(ticks);
8672
+ var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(ticks);
8810
8673
  var min = minDomain !== undefined ? minDomain : defaultMin;
8811
8674
  var max = maxDomain !== undefined ? maxDomain : defaultMax;
8812
8675
  var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_13__.getDomainFromMinMax(min, max);
@@ -8835,20 +8698,20 @@ function getAxisValue(props, axis) {
8835
8698
  }
8836
8699
 
8837
8700
  var scaleAxis = axis === "x" ? "y" : "x";
8838
- 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;
8701
+ 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;
8839
8702
 
8840
8703
  if (!scale) {
8841
8704
  return undefined;
8842
8705
  }
8843
8706
 
8844
8707
  var stringMapAxis = axis === "x" ? "y" : "x";
8845
- var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.stringMap) && props.stringMap[stringMapAxis];
8708
+ var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.stringMap) && props.stringMap[stringMapAxis];
8846
8709
  var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
8847
8710
  return scale(axisValue);
8848
8711
  }
8849
8712
  function modifyProps(props, fallbackProps) {
8850
- if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.theme)) {
8851
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(props, fallbackProps, "axis");
8713
+ if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.theme)) {
8714
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
8852
8715
  }
8853
8716
 
8854
8717
  var role = "axis";
@@ -8860,15 +8723,15 @@ function modifyProps(props, fallbackProps) {
8860
8723
  }
8861
8724
 
8862
8725
  if (role === "axis") {
8863
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(props, fallbackProps, "axis");
8726
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
8864
8727
  }
8865
8728
 
8866
- var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default()({}, props.theme[role], props.theme.axis);
8729
+ var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default()({}, props.theme[role], props.theme.axis);
8867
8730
 
8868
8731
  var theme = Object.assign({}, props.theme, {
8869
8732
  axis: axisTheme
8870
8733
  });
8871
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(Object.assign({}, props, {
8734
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(Object.assign({}, props, {
8872
8735
  theme: theme
8873
8736
  }), fallbackProps, "axis");
8874
8737
  }
@@ -9148,17 +9011,14 @@ __webpack_require__.r(__webpack_exports__);
9148
9011
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
9149
9012
  /* 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");
9150
9013
  /* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_9__);
9151
- /* 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");
9152
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_10__);
9153
- /* 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");
9154
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_11__);
9155
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "react");
9156
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
9157
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9014
+ /* 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");
9015
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_10__);
9016
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
9017
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
9018
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9158
9019
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
9159
- /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
9160
- /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
9161
-
9020
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
9021
+ /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
9162
9022
 
9163
9023
 
9164
9024
 
@@ -9195,24 +9055,22 @@ function parseDatum(datum) {
9195
9055
  errorX: true,
9196
9056
  errorY: true
9197
9057
  };
9198
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_13__.shallowToJS(datum, immutableDatumWhitelist) : datum;
9058
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_12__.shallowToJS(datum, immutableDatumWhitelist) : datum;
9199
9059
  }
9200
9060
 
9201
9061
  function getLength(data) {
9202
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(data) ? data.size : data.length;
9062
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(data) ? data.size : data.length;
9203
9063
  } // Returns generated data for a given axis based on domain and sample from props
9204
9064
 
9205
9065
 
9206
9066
  function generateDataArray(props, axis) {
9207
9067
  var propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default()(props.domain) ? props.domain[axis] : props.domain;
9208
- var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_14__.getBaseScale(props, axis).domain();
9068
+ var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_13__.getBaseScale(props, axis).domain();
9209
9069
  var samples = props.samples || 1;
9210
9070
  var domainMax = Math.max.apply(Math, _toConsumableArray(domain));
9211
9071
  var domainMin = Math.min.apply(Math, _toConsumableArray(domain));
9212
9072
  var step = (domainMax - domainMin) / samples;
9213
-
9214
- var values = lodash_range__WEBPACK_IMPORTED_MODULE_10___default()(domainMin, domainMax, step);
9215
-
9073
+ var values = _helpers__WEBPACK_IMPORTED_MODULE_14__.range(domainMin, domainMax, step);
9216
9074
  return lodash_last__WEBPACK_IMPORTED_MODULE_9___default()(values) === domainMax ? values : values.concat(domainMax);
9217
9075
  } // Returns sorted data. If no sort keys are provided, data is returned unaltered.
9218
9076
 
@@ -9239,8 +9097,8 @@ function sortData(dataset, sortKey) {
9239
9097
  function cleanData(dataset, props) {
9240
9098
  var smallNumber = 1 / Number.MAX_SAFE_INTEGER;
9241
9099
  var scaleType = {
9242
- x: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "x"),
9243
- y: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "y")
9100
+ x: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "x"),
9101
+ y: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "y")
9244
9102
  };
9245
9103
 
9246
9104
  if (scaleType.x !== "log" && scaleType.y !== "log") {
@@ -9375,7 +9233,7 @@ function createStringMap(props, axis) {
9375
9233
  var stringsFromCategories = getStringsFromCategories(props, axis);
9376
9234
  var stringsFromData = getStringsFromData(props, axis);
9377
9235
 
9378
- var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
9236
+ var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
9379
9237
 
9380
9238
  return allStrings.length === 0 ? null : allStrings.reduce(function (memo, string, index) {
9381
9239
  memo[string] = index + 1;
@@ -9417,7 +9275,7 @@ function downsample(data, maxPoints) {
9417
9275
  */
9418
9276
 
9419
9277
  function formatData(dataset, props, expectedKeys) {
9420
- var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(dataset);
9278
+ var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(dataset);
9421
9279
 
9422
9280
  if (!isArrayOrIterable || getLength(dataset) < 1) {
9423
9281
  return [];
@@ -9430,7 +9288,7 @@ function formatData(dataset, props, expectedKeys) {
9430
9288
  expectedKeys = Array.isArray(expectedKeys) ? expectedKeys : defaultKeys;
9431
9289
 
9432
9290
  var createAccessor = function (name) {
9433
- return _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(props[name] !== undefined ? props[name] : name);
9291
+ return _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(props[name] !== undefined ? props[name] : name);
9434
9292
  };
9435
9293
 
9436
9294
  var accessor = expectedKeys.reduce(function (memo, type) {
@@ -9567,14 +9425,14 @@ function getStringsFromCategories(props, axis) {
9567
9425
  */
9568
9426
 
9569
9427
  function getStringsFromData(props, axis) {
9570
- var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(props.data);
9428
+ var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(props.data);
9571
9429
 
9572
9430
  if (!isArrayOrIterable) {
9573
9431
  return [];
9574
9432
  }
9575
9433
 
9576
9434
  var key = props[axis] === undefined ? axis : props[axis];
9577
- var accessor = _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(key); // support immutable data
9435
+ var accessor = _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(key); // support immutable data
9578
9436
 
9579
9437
  var data = props.data.reduce(function (memo, d) {
9580
9438
  memo.push(parseDatum(d));
@@ -9611,7 +9469,7 @@ function isDataComponent(component) {
9611
9469
  var role = getRole(component);
9612
9470
 
9613
9471
  if (role === "portal") {
9614
- var children = react__WEBPACK_IMPORTED_MODULE_12___default().Children.toArray(component.props.children);
9472
+ var children = react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(component.props.children);
9615
9473
  role = children.length ? getRole(children[0]) : "";
9616
9474
  }
9617
9475
 
@@ -10601,6 +10459,7 @@ __webpack_require__.r(__webpack_exports__);
10601
10459
  /* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
10602
10460
  /* harmony export */ "omit": () => (/* binding */ omit),
10603
10461
  /* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
10462
+ /* harmony export */ "range": () => (/* binding */ range),
10604
10463
  /* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
10605
10464
  /* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
10606
10465
  /* harmony export */ });
@@ -10880,6 +10739,38 @@ function getCurrentAxis(axis, horizontal) {
10880
10739
  var otherAxis = axis === "x" ? "y" : "x";
10881
10740
  return horizontal ? otherAxis : axis;
10882
10741
  }
10742
+ /**
10743
+ * Creates an array of numbers (positive and/or negative) progressing
10744
+ * from start up to, but not including, end.
10745
+ * A step of -1 is used if a negative start is specified without an end or step.
10746
+ * If end is not specified, it's set to start with start then set to 0.
10747
+ *
10748
+ * @param start The length of the array to create, or the start value
10749
+ * @param end [The end value] If this is defined, start is the start value
10750
+ * @returns An array of the given length
10751
+ */
10752
+
10753
+ function range(start, end, increment) {
10754
+ // when the end index is not given, start from 0
10755
+ var startIndex = end ? start : 0; // when the end index is not given, the end of the range is the start index
10756
+
10757
+ var endIndex = end ? end : start; // ensure endIndex is not a falsy value
10758
+
10759
+ if (!endIndex) endIndex = 0;
10760
+ var k = endIndex - startIndex; // the value range
10761
+
10762
+ var length = Math.abs(k); // the length of the range
10763
+
10764
+ var sign = k / length || 1; // the sign of the range (negative or positive)
10765
+
10766
+ var inc = increment || 1; // the step size of each increment
10767
+ // normalize the array length when dealing with floating point values
10768
+
10769
+ var arrayLength = Math.max(Math.ceil(length / inc), 0);
10770
+ return Array.from(Array(arrayLength), function (_, i) {
10771
+ return startIndex + i * sign * inc;
10772
+ });
10773
+ }
10883
10774
  /**
10884
10775
  * @param {Array} children: an array of child components
10885
10776
  * @param {Function} iteratee: a function with arguments "child", "childName", and "parent"