victory-create-container 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,18 +1,12 @@
1
1
  # victory-create-container
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-brush-container@36.8.5-next.0
11
- - victory-core@36.8.5-next.0
12
- - victory-cursor-container@36.8.5-next.0
13
- - victory-selection-container@36.8.5-next.0
14
- - victory-voronoi-container@36.8.5-next.0
15
- - victory-zoom-container@36.8.5-next.0
9
+ - Replace instances of lodash.assign with Object.assign ([#2757](https://github.com/FormidableLabs/victory/pull/2757))
16
10
 
17
11
  ## 36.8.4
18
12
 
@@ -2539,44 +2539,6 @@ function basePropertyDeep(path) {
2539
2539
  module.exports = basePropertyDeep;
2540
2540
 
2541
2541
 
2542
- /***/ }),
2543
-
2544
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js":
2545
- /*!************************************************************************************!*\
2546
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js ***!
2547
- \************************************************************************************/
2548
- /***/ ((module) => {
2549
-
2550
- /* Built-in method references for those with the same name as other `lodash` methods. */
2551
- var nativeCeil = Math.ceil,
2552
- nativeMax = Math.max;
2553
-
2554
- /**
2555
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
2556
- * coerce arguments.
2557
- *
2558
- * @private
2559
- * @param {number} start The start of the range.
2560
- * @param {number} end The end of the range.
2561
- * @param {number} step The value to increment or decrement by.
2562
- * @param {boolean} [fromRight] Specify iterating from right to left.
2563
- * @returns {Array} Returns the range of numbers.
2564
- */
2565
- function baseRange(start, end, step, fromRight) {
2566
- var index = -1,
2567
- length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
2568
- result = Array(length);
2569
-
2570
- while (length--) {
2571
- result[fromRight ? length : ++index] = start;
2572
- start += step;
2573
- }
2574
- return result;
2575
- }
2576
-
2577
- module.exports = baseRange;
2578
-
2579
-
2580
2542
  /***/ }),
2581
2543
 
2582
2544
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js":
@@ -3387,46 +3349,6 @@ function createInverter(setter, toIteratee) {
3387
3349
  module.exports = createInverter;
3388
3350
 
3389
3351
 
3390
- /***/ }),
3391
-
3392
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js":
3393
- /*!**************************************************************************************!*\
3394
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js ***!
3395
- \**************************************************************************************/
3396
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3397
-
3398
- var baseRange = __webpack_require__(/*! ./_baseRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js"),
3399
- isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"),
3400
- toFinite = __webpack_require__(/*! ./toFinite */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js");
3401
-
3402
- /**
3403
- * Creates a `_.range` or `_.rangeRight` function.
3404
- *
3405
- * @private
3406
- * @param {boolean} [fromRight] Specify iterating from right to left.
3407
- * @returns {Function} Returns the new range function.
3408
- */
3409
- function createRange(fromRight) {
3410
- return function(start, end, step) {
3411
- if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
3412
- end = step = undefined;
3413
- }
3414
- // Ensure the sign of `-0` is preserved.
3415
- start = toFinite(start);
3416
- if (end === undefined) {
3417
- end = start;
3418
- start = 0;
3419
- } else {
3420
- end = toFinite(end);
3421
- }
3422
- step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
3423
- return baseRange(start, end, step, fromRight);
3424
- };
3425
- }
3426
-
3427
- module.exports = createRange;
3428
-
3429
-
3430
3352
  /***/ }),
3431
3353
 
3432
3354
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
@@ -6989,62 +6911,6 @@ function property(path) {
6989
6911
  module.exports = property;
6990
6912
 
6991
6913
 
6992
- /***/ }),
6993
-
6994
- /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js":
6995
- /*!*******************************************************************************!*\
6996
- !*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js ***!
6997
- \*******************************************************************************/
6998
- /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
6999
-
7000
- var createRange = __webpack_require__(/*! ./_createRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js");
7001
-
7002
- /**
7003
- * Creates an array of numbers (positive and/or negative) progressing from
7004
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
7005
- * `start` is specified without an `end` or `step`. If `end` is not specified,
7006
- * it's set to `start` with `start` then set to `0`.
7007
- *
7008
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
7009
- * floating-point values which can produce unexpected results.
7010
- *
7011
- * @static
7012
- * @since 0.1.0
7013
- * @memberOf _
7014
- * @category Util
7015
- * @param {number} [start=0] The start of the range.
7016
- * @param {number} end The end of the range.
7017
- * @param {number} [step=1] The value to increment or decrement by.
7018
- * @returns {Array} Returns the range of numbers.
7019
- * @see _.inRange, _.rangeRight
7020
- * @example
7021
- *
7022
- * _.range(4);
7023
- * // => [0, 1, 2, 3]
7024
- *
7025
- * _.range(-4);
7026
- * // => [0, -1, -2, -3]
7027
- *
7028
- * _.range(1, 5);
7029
- * // => [1, 2, 3, 4]
7030
- *
7031
- * _.range(0, 20, 5);
7032
- * // => [0, 5, 10, 15]
7033
- *
7034
- * _.range(0, -4, -1);
7035
- * // => [0, -1, -2, -3]
7036
- *
7037
- * _.range(1, 4, 0);
7038
- * // => [1, 1, 1]
7039
- *
7040
- * _.range(0);
7041
- * // => []
7042
- */
7043
- var range = createRange();
7044
-
7045
- module.exports = range;
7046
-
7047
-
7048
6914
  /***/ }),
7049
6915
 
7050
6916
  /***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sortedUniq.js":
@@ -12271,26 +12137,23 @@ __webpack_require__.r(__webpack_exports__);
12271
12137
  /* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_2__);
12272
12138
  /* 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");
12273
12139
  /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__);
12274
- /* 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");
12275
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_4__);
12276
- /* 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");
12277
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_5__);
12278
- /* 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");
12279
- /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_6__);
12280
- /* 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");
12281
- /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_7__);
12282
- /* 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");
12283
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
12284
- /* 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");
12285
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_9__);
12286
- /* 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");
12287
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_10__);
12288
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
12289
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
12290
- /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
12140
+ /* 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");
12141
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_4__);
12142
+ /* 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");
12143
+ /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_5__);
12144
+ /* 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");
12145
+ /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_6__);
12146
+ /* 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");
12147
+ /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_7__);
12148
+ /* 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");
12149
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_8__);
12150
+ /* 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");
12151
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_9__);
12152
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "react");
12153
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
12154
+ /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
12291
12155
  /* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
12292
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
12293
-
12156
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
12294
12157
 
12295
12158
 
12296
12159
 
@@ -12337,14 +12200,14 @@ function getAxis(props) {
12337
12200
  */
12338
12201
 
12339
12202
  function findAxisComponents(childComponents, predicate) {
12340
- var predicateFunction = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_9___default());
12203
+ var predicateFunction = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_8___default());
12341
12204
 
12342
12205
  var findAxes = function (children) {
12343
12206
  return children.reduce(function (memo, child) {
12344
12207
  if (child.type && child.type.role === "axis" && predicateFunction(child)) {
12345
12208
  return memo.concat(child);
12346
12209
  } else if (child.props && child.props.children) {
12347
- return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(child.props.children)));
12210
+ return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children)));
12348
12211
  }
12349
12212
 
12350
12213
  return memo;
@@ -12386,7 +12249,7 @@ function getAxisComponentsWithParent(childComponents, type) {
12386
12249
  if (child.type && child.type.role === "axis" && matchesType(child)) {
12387
12250
  return memo.concat(child);
12388
12251
  } else if (child.props && child.props.children) {
12389
- var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(child.props.children));
12252
+ var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children));
12390
12253
  return childAxis.length > 0 ? memo.concat(child) : memo;
12391
12254
  }
12392
12255
 
@@ -12404,8 +12267,8 @@ function getOrigin(domain) {
12404
12267
  };
12405
12268
 
12406
12269
  return {
12407
- x: _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
12408
- y: _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
12270
+ x: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
12271
+ y: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
12409
12272
  };
12410
12273
  }
12411
12274
  function getOriginSign(origin, domain) {
@@ -12413,7 +12276,7 @@ function getOriginSign(origin, domain) {
12413
12276
  return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
12414
12277
  };
12415
12278
 
12416
- return _collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(domain) ? "positive" : getSign();
12279
+ return _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain) ? "positive" : getSign();
12417
12280
  }
12418
12281
  /**
12419
12282
  * @param {Object} props: axis component props
@@ -12436,14 +12299,14 @@ function isVertical(props) {
12436
12299
  */
12437
12300
 
12438
12301
  function stringTicks(props) {
12439
- return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(props.tickValues);
12302
+ return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(props.tickValues);
12440
12303
  }
12441
12304
 
12442
12305
  function getDefaultTickFormat(props) {
12443
12306
  var tickValues = props.tickValues;
12444
12307
  var axis = getAxis(props);
12445
12308
  var stringMap = props.stringMap && props.stringMap[axis];
12446
- var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_12__.containsDates(tickValues) ? function (x) {
12309
+ var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(tickValues) ? function (x) {
12447
12310
  return x;
12448
12311
  } : undefined;
12449
12312
 
@@ -12453,7 +12316,7 @@ function getDefaultTickFormat(props) {
12453
12316
  } : fallbackFormat;
12454
12317
  }
12455
12318
 
12456
- var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);
12319
+ var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
12457
12320
 
12458
12321
  var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default()(lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap), function (n) {
12459
12322
  return n;
@@ -12473,7 +12336,7 @@ function getStringTicks(props) {
12473
12336
  var axis = getAxis(props);
12474
12337
  var stringMap = props.stringMap && props.stringMap[axis];
12475
12338
  var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
12476
- var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_12__.containsOnlyStrings(categories) ? categories.map(function (tick) {
12339
+ var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_11__.containsOnlyStrings(categories) ? categories.map(function (tick) {
12477
12340
  return stringMap[tick];
12478
12341
  }) : undefined;
12479
12342
 
@@ -12498,7 +12361,7 @@ function getTickArray(props) {
12498
12361
  return undefined;
12499
12362
  }
12500
12363
 
12501
- return _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
12364
+ return _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
12502
12365
  return i;
12503
12366
  }) : tickFormat;
12504
12367
  };
@@ -12509,13 +12372,13 @@ function getTickArray(props) {
12509
12372
  ticks = getStringTicks(props);
12510
12373
  }
12511
12374
 
12512
- if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_12__.containsStrings(tickValues)) {
12375
+ if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickValues)) {
12513
12376
  ticks = stringMap ? tickValues.map(function (tick) {
12514
12377
  return stringMap[tick];
12515
- }) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
12378
+ }) : _helpers__WEBPACK_IMPORTED_MODULE_12__.range(1, tickValues.length + 1);
12516
12379
  }
12517
12380
 
12518
- var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
12381
+ var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default()(ticks) : getTicksFromFormat();
12519
12382
 
12520
12383
  var buildTickArray = function (arr) {
12521
12384
  var newTickArray = [];
@@ -12524,7 +12387,7 @@ function getTickArray(props) {
12524
12387
  if (arr) {
12525
12388
  arr.forEach(function (t, index) {
12526
12389
  if (Array.isArray(domain)) {
12527
- if (t >= _collection__WEBPACK_IMPORTED_MODULE_12__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_12__.getMaxValue(domain)) {
12390
+ if (t >= _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(domain)) {
12528
12391
  newTickArray.push({
12529
12392
  value: t,
12530
12393
  index: index
@@ -12556,7 +12419,7 @@ function getTickFormat(props, scale) {
12556
12419
  // by default. This changed the default formatting for some scale types when
12557
12420
  // we upgraded to d3-scale@4..
12558
12421
 
12559
- var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
12422
+ var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
12560
12423
  return x;
12561
12424
  };
12562
12425
  return defaultTickFormat || scaleTickFormat;
@@ -12571,9 +12434,9 @@ function getTickFormat(props, scale) {
12571
12434
  return function (x, index) {
12572
12435
  return filteredTickFormat[index];
12573
12436
  };
12574
- } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(tickFormat)) {
12437
+ } else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(tickFormat)) {
12575
12438
  var applyStringTicks = function (tick, index, ticks) {
12576
- var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_6___default()(stringMap);
12439
+ var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
12577
12440
 
12578
12441
  var stringTickArray = ticks.map(function (t) {
12579
12442
  return invertedStringMap[t];
@@ -12615,7 +12478,7 @@ function getTicks(props, scale) {
12615
12478
 
12616
12479
  if (tickValues) {
12617
12480
  return downsampleTicks(tickValues, tickCount);
12618
- } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default()(scale.ticks)) {
12481
+ } else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.ticks)) {
12619
12482
  // eslint-disable-next-line no-magic-numbers
12620
12483
  var defaultTickCount = tickCount || 5;
12621
12484
  var scaleTicks = scale.ticks(defaultTickCount);
@@ -12661,8 +12524,8 @@ function getDomainFromData(props, axis) {
12661
12524
  var ticks = tickValues.map(function (value) {
12662
12525
  return Number(value);
12663
12526
  });
12664
- var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_12__.getMinValue(ticks);
12665
- var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_12__.getMaxValue(ticks);
12527
+ var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(ticks);
12528
+ var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(ticks);
12666
12529
  var min = minDomain !== undefined ? minDomain : defaultMin;
12667
12530
  var max = maxDomain !== undefined ? maxDomain : defaultMax;
12668
12531
  var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_13__.getDomainFromMinMax(min, max);
@@ -12691,20 +12554,20 @@ function getAxisValue(props, axis) {
12691
12554
  }
12692
12555
 
12693
12556
  var scaleAxis = axis === "x" ? "y" : "x";
12694
- 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;
12557
+ 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;
12695
12558
 
12696
12559
  if (!scale) {
12697
12560
  return undefined;
12698
12561
  }
12699
12562
 
12700
12563
  var stringMapAxis = axis === "x" ? "y" : "x";
12701
- var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.stringMap) && props.stringMap[stringMapAxis];
12564
+ var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.stringMap) && props.stringMap[stringMapAxis];
12702
12565
  var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
12703
12566
  return scale(axisValue);
12704
12567
  }
12705
12568
  function modifyProps(props, fallbackProps) {
12706
- if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_7___default()(props.theme)) {
12707
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(props, fallbackProps, "axis");
12569
+ if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.theme)) {
12570
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
12708
12571
  }
12709
12572
 
12710
12573
  var role = "axis";
@@ -12716,15 +12579,15 @@ function modifyProps(props, fallbackProps) {
12716
12579
  }
12717
12580
 
12718
12581
  if (role === "axis") {
12719
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(props, fallbackProps, "axis");
12582
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
12720
12583
  }
12721
12584
 
12722
- var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_10___default()({}, props.theme[role], props.theme.axis);
12585
+ var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default()({}, props.theme[role], props.theme.axis);
12723
12586
 
12724
12587
  var theme = Object.assign({}, props.theme, {
12725
12588
  axis: axisTheme
12726
12589
  });
12727
- return _helpers__WEBPACK_IMPORTED_MODULE_14__.modifyProps(Object.assign({}, props, {
12590
+ return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(Object.assign({}, props, {
12728
12591
  theme: theme
12729
12592
  }), fallbackProps, "axis");
12730
12593
  }
@@ -13004,17 +12867,14 @@ __webpack_require__.r(__webpack_exports__);
13004
12867
  /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
13005
12868
  /* 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");
13006
12869
  /* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_9__);
13007
- /* 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");
13008
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_10__);
13009
- /* 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");
13010
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_11__);
13011
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! react */ "react");
13012
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
13013
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
12870
+ /* 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");
12871
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_10__);
12872
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
12873
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
12874
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
13014
12875
  /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
13015
- /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
13016
- /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
13017
-
12876
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
12877
+ /* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
13018
12878
 
13019
12879
 
13020
12880
 
@@ -13051,24 +12911,22 @@ function parseDatum(datum) {
13051
12911
  errorX: true,
13052
12912
  errorY: true
13053
12913
  };
13054
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_13__.shallowToJS(datum, immutableDatumWhitelist) : datum;
12914
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_12__.shallowToJS(datum, immutableDatumWhitelist) : datum;
13055
12915
  }
13056
12916
 
13057
12917
  function getLength(data) {
13058
- return _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(data) ? data.size : data.length;
12918
+ return _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(data) ? data.size : data.length;
13059
12919
  } // Returns generated data for a given axis based on domain and sample from props
13060
12920
 
13061
12921
 
13062
12922
  function generateDataArray(props, axis) {
13063
12923
  var propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default()(props.domain) ? props.domain[axis] : props.domain;
13064
- var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_14__.getBaseScale(props, axis).domain();
12924
+ var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_13__.getBaseScale(props, axis).domain();
13065
12925
  var samples = props.samples || 1;
13066
12926
  var domainMax = Math.max.apply(Math, _toConsumableArray(domain));
13067
12927
  var domainMin = Math.min.apply(Math, _toConsumableArray(domain));
13068
12928
  var step = (domainMax - domainMin) / samples;
13069
-
13070
- var values = lodash_range__WEBPACK_IMPORTED_MODULE_10___default()(domainMin, domainMax, step);
13071
-
12929
+ var values = _helpers__WEBPACK_IMPORTED_MODULE_14__.range(domainMin, domainMax, step);
13072
12930
  return lodash_last__WEBPACK_IMPORTED_MODULE_9___default()(values) === domainMax ? values : values.concat(domainMax);
13073
12931
  } // Returns sorted data. If no sort keys are provided, data is returned unaltered.
13074
12932
 
@@ -13095,8 +12953,8 @@ function sortData(dataset, sortKey) {
13095
12953
  function cleanData(dataset, props) {
13096
12954
  var smallNumber = 1 / Number.MAX_SAFE_INTEGER;
13097
12955
  var scaleType = {
13098
- x: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "x"),
13099
- y: _scale__WEBPACK_IMPORTED_MODULE_14__.getScaleType(props, "y")
12956
+ x: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "x"),
12957
+ y: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "y")
13100
12958
  };
13101
12959
 
13102
12960
  if (scaleType.x !== "log" && scaleType.y !== "log") {
@@ -13231,7 +13089,7 @@ function createStringMap(props, axis) {
13231
13089
  var stringsFromCategories = getStringsFromCategories(props, axis);
13232
13090
  var stringsFromData = getStringsFromData(props, axis);
13233
13091
 
13234
- var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_11___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
13092
+ var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
13235
13093
 
13236
13094
  return allStrings.length === 0 ? null : allStrings.reduce(function (memo, string, index) {
13237
13095
  memo[string] = index + 1;
@@ -13273,7 +13131,7 @@ function downsample(data, maxPoints) {
13273
13131
  */
13274
13132
 
13275
13133
  function formatData(dataset, props, expectedKeys) {
13276
- var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(dataset);
13134
+ var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(dataset);
13277
13135
 
13278
13136
  if (!isArrayOrIterable || getLength(dataset) < 1) {
13279
13137
  return [];
@@ -13286,7 +13144,7 @@ function formatData(dataset, props, expectedKeys) {
13286
13144
  expectedKeys = Array.isArray(expectedKeys) ? expectedKeys : defaultKeys;
13287
13145
 
13288
13146
  var createAccessor = function (name) {
13289
- return _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(props[name] !== undefined ? props[name] : name);
13147
+ return _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(props[name] !== undefined ? props[name] : name);
13290
13148
  };
13291
13149
 
13292
13150
  var accessor = expectedKeys.reduce(function (memo, type) {
@@ -13423,14 +13281,14 @@ function getStringsFromCategories(props, axis) {
13423
13281
  */
13424
13282
 
13425
13283
  function getStringsFromData(props, axis) {
13426
- var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_13__.isIterable(props.data);
13284
+ var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(props.data);
13427
13285
 
13428
13286
  if (!isArrayOrIterable) {
13429
13287
  return [];
13430
13288
  }
13431
13289
 
13432
13290
  var key = props[axis] === undefined ? axis : props[axis];
13433
- var accessor = _helpers__WEBPACK_IMPORTED_MODULE_16__.createAccessor(key); // support immutable data
13291
+ var accessor = _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(key); // support immutable data
13434
13292
 
13435
13293
  var data = props.data.reduce(function (memo, d) {
13436
13294
  memo.push(parseDatum(d));
@@ -13467,7 +13325,7 @@ function isDataComponent(component) {
13467
13325
  var role = getRole(component);
13468
13326
 
13469
13327
  if (role === "portal") {
13470
- var children = react__WEBPACK_IMPORTED_MODULE_12___default().Children.toArray(component.props.children);
13328
+ var children = react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(component.props.children);
13471
13329
  role = children.length ? getRole(children[0]) : "";
13472
13330
  }
13473
13331
 
@@ -14457,6 +14315,7 @@ __webpack_require__.r(__webpack_exports__);
14457
14315
  /* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
14458
14316
  /* harmony export */ "omit": () => (/* binding */ omit),
14459
14317
  /* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
14318
+ /* harmony export */ "range": () => (/* binding */ range),
14460
14319
  /* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
14461
14320
  /* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
14462
14321
  /* harmony export */ });
@@ -14736,6 +14595,38 @@ function getCurrentAxis(axis, horizontal) {
14736
14595
  var otherAxis = axis === "x" ? "y" : "x";
14737
14596
  return horizontal ? otherAxis : axis;
14738
14597
  }
14598
+ /**
14599
+ * Creates an array of numbers (positive and/or negative) progressing
14600
+ * from start up to, but not including, end.
14601
+ * A step of -1 is used if a negative start is specified without an end or step.
14602
+ * If end is not specified, it's set to start with start then set to 0.
14603
+ *
14604
+ * @param start The length of the array to create, or the start value
14605
+ * @param end [The end value] If this is defined, start is the start value
14606
+ * @returns An array of the given length
14607
+ */
14608
+
14609
+ function range(start, end, increment) {
14610
+ // when the end index is not given, start from 0
14611
+ var startIndex = end ? start : 0; // when the end index is not given, the end of the range is the start index
14612
+
14613
+ var endIndex = end ? end : start; // ensure endIndex is not a falsy value
14614
+
14615
+ if (!endIndex) endIndex = 0;
14616
+ var k = endIndex - startIndex; // the value range
14617
+
14618
+ var length = Math.abs(k); // the length of the range
14619
+
14620
+ var sign = k / length || 1; // the sign of the range (negative or positive)
14621
+
14622
+ var inc = increment || 1; // the step size of each increment
14623
+ // normalize the array length when dealing with floating point values
14624
+
14625
+ var arrayLength = Math.max(Math.ceil(length / inc), 0);
14626
+ return Array.from(Array(arrayLength), function (_, i) {
14627
+ return startIndex + i * sign * inc;
14628
+ });
14629
+ }
14739
14630
  /**
14740
14631
  * @param {Array} children: an array of child components
14741
14632
  * @param {Function} iteratee: a function with arguments "child", "childName", and "parent"