victory-core 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 +4 -5
- package/dist/victory-core.js +100 -210
- package/dist/victory-core.min.js +1 -1
- package/es/index.d.ts +17 -17
- package/es/types/callbacks.d.ts +36 -36
- package/es/types/prop-types.d.ts +129 -129
- package/es/victory-accessible-group/victory-accessible-group.d.ts +25 -25
- package/es/victory-animation/util.d.ts +66 -66
- package/es/victory-animation/victory-animation.d.ts +69 -69
- package/es/victory-clip-container/victory-clip-container.d.ts +76 -76
- package/es/victory-container/victory-container.d.ts +99 -99
- package/es/victory-label/victory-label.d.ts +58 -58
- package/es/victory-portal/portal-context.d.ts +11 -11
- package/es/victory-portal/portal.d.ts +28 -28
- package/es/victory-portal/victory-portal.d.ts +31 -31
- package/es/victory-portal/victory-portal.js +1 -1
- package/es/victory-primitives/arc.d.ts +44 -45
- package/es/victory-primitives/background.d.ts +44 -44
- package/es/victory-primitives/border.d.ts +38 -38
- package/es/victory-primitives/circle.d.ts +3 -3
- package/es/victory-primitives/clip-path.d.ts +7 -7
- package/es/victory-primitives/index.d.ts +14 -14
- package/es/victory-primitives/line-segment.d.ts +40 -40
- package/es/victory-primitives/line.d.ts +3 -3
- package/es/victory-primitives/path.d.ts +3 -3
- package/es/victory-primitives/point.d.ts +43 -43
- package/es/victory-primitives/rect.d.ts +3 -3
- package/es/victory-primitives/text.d.ts +8 -8
- package/es/victory-primitives/tspan.d.ts +3 -3
- package/es/victory-primitives/types.d.ts +7 -7
- package/es/victory-primitives/whisker.d.ts +52 -52
- package/es/victory-theme/grayscale.d.ts +2 -2
- package/es/victory-theme/material.d.ts +2 -2
- package/es/victory-theme/types.d.ts +238 -238
- package/es/victory-theme/victory-theme.d.ts +5 -5
- package/es/victory-transition/victory-transition.d.ts +59 -59
- package/es/victory-util/add-events.d.ts +126 -126
- package/es/victory-util/axis.d.ts +50 -50
- package/es/victory-util/axis.js +1 -2
- package/es/victory-util/collection.d.ts +8 -8
- package/es/victory-util/common-props.d.ts +84 -84
- package/es/victory-util/data.d.ts +74 -74
- package/es/victory-util/data.js +1 -4
- package/es/victory-util/default-transitions.d.ts +4 -4
- package/es/victory-util/domain.d.ts +90 -90
- package/es/victory-util/events.d.ts +64 -64
- package/es/victory-util/helpers.d.ts +73 -62
- package/es/victory-util/helpers.js +32 -0
- package/es/victory-util/hooks/index.d.ts +2 -2
- package/es/victory-util/hooks/use-animation-state.d.ts +21 -21
- package/es/victory-util/hooks/use-previous-props.d.ts +1 -1
- package/es/victory-util/immutable.d.ts +11 -11
- package/es/victory-util/index.d.ts +27 -27
- package/es/victory-util/label-helpers.d.ts +26 -26
- package/es/victory-util/line-helpers.d.ts +4 -4
- package/es/victory-util/log.d.ts +1 -1
- package/es/victory-util/point-path-helpers.d.ts +9 -9
- package/es/victory-util/point-path-helpers.js +3 -3
- package/es/victory-util/prop-types.d.ts +50 -50
- package/es/victory-util/scale.d.ts +9 -9
- package/es/victory-util/selection.d.ts +28 -28
- package/es/victory-util/style.d.ts +18 -18
- package/es/victory-util/textsize.d.ts +35 -35
- package/es/victory-util/timer-context.d.ts +11 -11
- package/es/victory-util/timer.d.ts +16 -16
- package/es/victory-util/transitions.d.ts +48 -48
- package/es/victory-util/type-helpers.d.ts +9 -9
- package/es/victory-util/user-props.d.ts +26 -26
- package/es/victory-util/wrapper.d.ts +37 -37
- package/lib/index.d.ts +17 -17
- package/lib/types/callbacks.d.ts +36 -36
- package/lib/types/prop-types.d.ts +129 -129
- package/lib/victory-accessible-group/victory-accessible-group.d.ts +25 -25
- package/lib/victory-animation/util.d.ts +66 -66
- package/lib/victory-animation/victory-animation.d.ts +69 -69
- package/lib/victory-clip-container/victory-clip-container.d.ts +76 -76
- package/lib/victory-container/victory-container.d.ts +99 -99
- package/lib/victory-label/victory-label.d.ts +58 -58
- package/lib/victory-portal/portal-context.d.ts +11 -11
- package/lib/victory-portal/portal.d.ts +28 -28
- package/lib/victory-portal/victory-portal.d.ts +31 -31
- package/lib/victory-portal/victory-portal.js +1 -1
- package/lib/victory-primitives/arc.d.ts +44 -45
- package/lib/victory-primitives/background.d.ts +44 -44
- package/lib/victory-primitives/border.d.ts +38 -38
- package/lib/victory-primitives/circle.d.ts +3 -3
- package/lib/victory-primitives/clip-path.d.ts +7 -7
- package/lib/victory-primitives/index.d.ts +14 -14
- package/lib/victory-primitives/line-segment.d.ts +40 -40
- package/lib/victory-primitives/line.d.ts +3 -3
- package/lib/victory-primitives/path.d.ts +3 -3
- package/lib/victory-primitives/point.d.ts +43 -43
- package/lib/victory-primitives/rect.d.ts +3 -3
- package/lib/victory-primitives/text.d.ts +8 -8
- package/lib/victory-primitives/tspan.d.ts +3 -3
- package/lib/victory-primitives/types.d.ts +7 -7
- package/lib/victory-primitives/whisker.d.ts +52 -52
- package/lib/victory-theme/grayscale.d.ts +2 -2
- package/lib/victory-theme/material.d.ts +2 -2
- package/lib/victory-theme/types.d.ts +238 -238
- package/lib/victory-theme/victory-theme.d.ts +5 -5
- package/lib/victory-transition/victory-transition.d.ts +59 -59
- package/lib/victory-util/add-events.d.ts +126 -126
- package/lib/victory-util/axis.d.ts +50 -50
- package/lib/victory-util/axis.js +1 -3
- package/lib/victory-util/collection.d.ts +8 -8
- package/lib/victory-util/common-props.d.ts +84 -84
- package/lib/victory-util/data.d.ts +74 -74
- package/lib/victory-util/data.js +1 -3
- package/lib/victory-util/default-transitions.d.ts +4 -4
- package/lib/victory-util/domain.d.ts +90 -90
- package/lib/victory-util/events.d.ts +64 -64
- package/lib/victory-util/helpers.d.ts +73 -62
- package/lib/victory-util/helpers.js +34 -0
- package/lib/victory-util/hooks/index.d.ts +2 -2
- package/lib/victory-util/hooks/use-animation-state.d.ts +21 -21
- package/lib/victory-util/hooks/use-previous-props.d.ts +1 -1
- package/lib/victory-util/immutable.d.ts +11 -11
- package/lib/victory-util/index.d.ts +27 -27
- package/lib/victory-util/label-helpers.d.ts +26 -26
- package/lib/victory-util/line-helpers.d.ts +4 -4
- package/lib/victory-util/log.d.ts +1 -1
- package/lib/victory-util/point-path-helpers.d.ts +9 -9
- package/lib/victory-util/point-path-helpers.js +6 -3
- package/lib/victory-util/prop-types.d.ts +50 -50
- package/lib/victory-util/scale.d.ts +9 -9
- package/lib/victory-util/selection.d.ts +28 -28
- package/lib/victory-util/style.d.ts +18 -18
- package/lib/victory-util/textsize.d.ts +35 -35
- package/lib/victory-util/timer-context.d.ts +11 -11
- package/lib/victory-util/timer.d.ts +16 -16
- package/lib/victory-util/transitions.d.ts +48 -48
- package/lib/victory-util/type-helpers.d.ts +9 -9
- package/lib/victory-util/user-props.d.ts +26 -26
- package/lib/victory-util/wrapper.d.ts +37 -37
- package/package.json +7 -7
- package/src/victory-clip-container/victory-clip-container.tsx +1 -1
- package/src/victory-container/victory-container.tsx +2 -4
- package/src/victory-portal/portal.tsx +1 -1
- package/src/victory-portal/victory-portal.tsx +2 -2
- package/src/victory-primitives/arc.tsx +0 -1
- package/src/victory-util/axis.tsx +1 -2
- package/src/victory-util/data.ts +1 -2
- package/src/victory-util/helpers.ts +31 -0
- package/src/victory-util/point-path-helpers.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# victory-core
|
|
2
2
|
|
|
3
|
-
## 36.8.5
|
|
3
|
+
## 36.8.5
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
- victory-vendor@36.8.5-next.0
|
|
7
|
+
- Replace instances of lodash.assign with Object.assign ([#2757](https://github.com/FormidableLabs/victory/pull/2757))
|
|
8
|
+
|
|
9
|
+
* Replace instances of lodash.range with equivalent native code ([#2760](https://github.com/FormidableLabs/victory/pull/2760))
|
|
11
10
|
|
|
12
11
|
## 36.8.4
|
|
13
12
|
|
package/dist/victory-core.js
CHANGED
|
@@ -2042,9 +2042,9 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
2042
2042
|
|
|
2043
2043
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
2044
2044
|
_this.checkedContext = void 0;
|
|
2045
|
-
_this.portalKey = void 0;
|
|
2046
2045
|
_this.renderInPlace = void 0;
|
|
2047
2046
|
_this.element = void 0;
|
|
2047
|
+
_this.portalKey = void 0;
|
|
2048
2048
|
return _this;
|
|
2049
2049
|
}
|
|
2050
2050
|
|
|
@@ -4483,26 +4483,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4483
4483
|
/* harmony import */ var lodash_values__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_values__WEBPACK_IMPORTED_MODULE_2__);
|
|
4484
4484
|
/* 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");
|
|
4485
4485
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_3__);
|
|
4486
|
-
/* harmony import */ var
|
|
4487
|
-
/* harmony import */ var
|
|
4488
|
-
/* harmony import */ var
|
|
4489
|
-
/* harmony import */ var
|
|
4490
|
-
/* harmony import */ var
|
|
4491
|
-
/* harmony import */ var
|
|
4492
|
-
/* harmony import */ var
|
|
4493
|
-
/* harmony import */ var
|
|
4494
|
-
/* harmony import */ var
|
|
4495
|
-
/* harmony import */ var
|
|
4496
|
-
/* harmony import */ var
|
|
4497
|
-
/* harmony import */ var
|
|
4498
|
-
/* harmony import */ var
|
|
4499
|
-
/* harmony import */ var
|
|
4500
|
-
/* harmony import */ var
|
|
4501
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
|
|
4502
|
-
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./collection */ "./victory-util/collection.tsx");
|
|
4486
|
+
/* 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");
|
|
4487
|
+
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_4__);
|
|
4488
|
+
/* 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");
|
|
4489
|
+
/* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_5__);
|
|
4490
|
+
/* 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");
|
|
4491
|
+
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_6__);
|
|
4492
|
+
/* 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");
|
|
4493
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_7__);
|
|
4494
|
+
/* 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");
|
|
4495
|
+
/* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_8__);
|
|
4496
|
+
/* 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");
|
|
4497
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_9__);
|
|
4498
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react */ "react");
|
|
4499
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_10__);
|
|
4500
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./collection */ "./victory-util/collection.tsx");
|
|
4503
4501
|
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./domain */ "./victory-util/domain.ts");
|
|
4504
|
-
/* harmony import */ var
|
|
4505
|
-
|
|
4502
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
|
|
4506
4503
|
|
|
4507
4504
|
|
|
4508
4505
|
|
|
@@ -4549,14 +4546,14 @@ function getAxis(props) {
|
|
|
4549
4546
|
*/
|
|
4550
4547
|
|
|
4551
4548
|
function findAxisComponents(childComponents, predicate) {
|
|
4552
|
-
var predicateFunction = predicate || (
|
|
4549
|
+
var predicateFunction = predicate || (lodash_identity__WEBPACK_IMPORTED_MODULE_8___default());
|
|
4553
4550
|
|
|
4554
4551
|
var findAxes = function (children) {
|
|
4555
4552
|
return children.reduce(function (memo, child) {
|
|
4556
4553
|
if (child.type && child.type.role === "axis" && predicateFunction(child)) {
|
|
4557
4554
|
return memo.concat(child);
|
|
4558
4555
|
} else if (child.props && child.props.children) {
|
|
4559
|
-
return memo.concat(findAxes(
|
|
4556
|
+
return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children)));
|
|
4560
4557
|
}
|
|
4561
4558
|
|
|
4562
4559
|
return memo;
|
|
@@ -4598,7 +4595,7 @@ function getAxisComponentsWithParent(childComponents, type) {
|
|
|
4598
4595
|
if (child.type && child.type.role === "axis" && matchesType(child)) {
|
|
4599
4596
|
return memo.concat(child);
|
|
4600
4597
|
} else if (child.props && child.props.children) {
|
|
4601
|
-
var childAxis = findComponents(
|
|
4598
|
+
var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_10___default().Children.toArray(child.props.children));
|
|
4602
4599
|
return childAxis.length > 0 ? memo.concat(child) : memo;
|
|
4603
4600
|
}
|
|
4604
4601
|
|
|
@@ -4616,8 +4613,8 @@ function getOrigin(domain) {
|
|
|
4616
4613
|
};
|
|
4617
4614
|
|
|
4618
4615
|
return {
|
|
4619
|
-
x:
|
|
4620
|
-
y:
|
|
4616
|
+
x: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
|
|
4617
|
+
y: _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
|
|
4621
4618
|
};
|
|
4622
4619
|
}
|
|
4623
4620
|
function getOriginSign(origin, domain) {
|
|
@@ -4625,7 +4622,7 @@ function getOriginSign(origin, domain) {
|
|
|
4625
4622
|
return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
|
|
4626
4623
|
};
|
|
4627
4624
|
|
|
4628
|
-
return
|
|
4625
|
+
return _collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(domain) ? "positive" : getSign();
|
|
4629
4626
|
}
|
|
4630
4627
|
/**
|
|
4631
4628
|
* @param {Object} props: axis component props
|
|
@@ -4648,14 +4645,14 @@ function isVertical(props) {
|
|
|
4648
4645
|
*/
|
|
4649
4646
|
|
|
4650
4647
|
function stringTicks(props) {
|
|
4651
|
-
return props.tickValues !== undefined &&
|
|
4648
|
+
return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(props.tickValues);
|
|
4652
4649
|
}
|
|
4653
4650
|
|
|
4654
4651
|
function getDefaultTickFormat(props) {
|
|
4655
4652
|
var tickValues = props.tickValues;
|
|
4656
4653
|
var axis = getAxis(props);
|
|
4657
4654
|
var stringMap = props.stringMap && props.stringMap[axis];
|
|
4658
|
-
var fallbackFormat = tickValues && !
|
|
4655
|
+
var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_11__.containsDates(tickValues) ? function (x) {
|
|
4659
4656
|
return x;
|
|
4660
4657
|
} : undefined;
|
|
4661
4658
|
|
|
@@ -4665,7 +4662,7 @@ function getDefaultTickFormat(props) {
|
|
|
4665
4662
|
} : fallbackFormat;
|
|
4666
4663
|
}
|
|
4667
4664
|
|
|
4668
|
-
var invertedStringMap = stringMap &&
|
|
4665
|
+
var invertedStringMap = stringMap && lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
|
|
4669
4666
|
|
|
4670
4667
|
var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_3___default()(lodash_values__WEBPACK_IMPORTED_MODULE_2___default()(stringMap), function (n) {
|
|
4671
4668
|
return n;
|
|
@@ -4685,7 +4682,7 @@ function getStringTicks(props) {
|
|
|
4685
4682
|
var axis = getAxis(props);
|
|
4686
4683
|
var stringMap = props.stringMap && props.stringMap[axis];
|
|
4687
4684
|
var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
|
|
4688
|
-
var ticksFromCategories = categories &&
|
|
4685
|
+
var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_11__.containsOnlyStrings(categories) ? categories.map(function (tick) {
|
|
4689
4686
|
return stringMap[tick];
|
|
4690
4687
|
}) : undefined;
|
|
4691
4688
|
|
|
@@ -4710,7 +4707,7 @@ function getTickArray(props) {
|
|
|
4710
4707
|
return undefined;
|
|
4711
4708
|
}
|
|
4712
4709
|
|
|
4713
|
-
return
|
|
4710
|
+
return _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
|
|
4714
4711
|
return i;
|
|
4715
4712
|
}) : tickFormat;
|
|
4716
4713
|
};
|
|
@@ -4721,13 +4718,13 @@ function getTickArray(props) {
|
|
|
4721
4718
|
ticks = getStringTicks(props);
|
|
4722
4719
|
}
|
|
4723
4720
|
|
|
4724
|
-
if (tickValues &&
|
|
4721
|
+
if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_11__.containsStrings(tickValues)) {
|
|
4725
4722
|
ticks = stringMap ? tickValues.map(function (tick) {
|
|
4726
4723
|
return stringMap[tick];
|
|
4727
|
-
}) :
|
|
4724
|
+
}) : _helpers__WEBPACK_IMPORTED_MODULE_12__.range(1, tickValues.length + 1);
|
|
4728
4725
|
}
|
|
4729
4726
|
|
|
4730
|
-
var tickArray = ticks ?
|
|
4727
|
+
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_4___default()(ticks) : getTicksFromFormat();
|
|
4731
4728
|
|
|
4732
4729
|
var buildTickArray = function (arr) {
|
|
4733
4730
|
var newTickArray = [];
|
|
@@ -4736,7 +4733,7 @@ function getTickArray(props) {
|
|
|
4736
4733
|
if (arr) {
|
|
4737
4734
|
arr.forEach(function (t, index) {
|
|
4738
4735
|
if (Array.isArray(domain)) {
|
|
4739
|
-
if (t >=
|
|
4736
|
+
if (t >= _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(domain)) {
|
|
4740
4737
|
newTickArray.push({
|
|
4741
4738
|
value: t,
|
|
4742
4739
|
index: index
|
|
@@ -4768,7 +4765,7 @@ function getTickFormat(props, scale) {
|
|
|
4768
4765
|
// by default. This changed the default formatting for some scale types when
|
|
4769
4766
|
// we upgraded to d3-scale@4..
|
|
4770
4767
|
|
|
4771
|
-
var scaleTickFormat = scale.tickFormat &&
|
|
4768
|
+
var scaleTickFormat = scale.tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.tickFormat) ? scale.tickFormat() : function (x) {
|
|
4772
4769
|
return x;
|
|
4773
4770
|
};
|
|
4774
4771
|
return defaultTickFormat || scaleTickFormat;
|
|
@@ -4783,9 +4780,9 @@ function getTickFormat(props, scale) {
|
|
|
4783
4780
|
return function (x, index) {
|
|
4784
4781
|
return filteredTickFormat[index];
|
|
4785
4782
|
};
|
|
4786
|
-
} else if (tickFormat &&
|
|
4783
|
+
} else if (tickFormat && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(tickFormat)) {
|
|
4787
4784
|
var applyStringTicks = function (tick, index, ticks) {
|
|
4788
|
-
var invertedStringMap =
|
|
4785
|
+
var invertedStringMap = lodash_invert__WEBPACK_IMPORTED_MODULE_5___default()(stringMap);
|
|
4789
4786
|
|
|
4790
4787
|
var stringTickArray = ticks.map(function (t) {
|
|
4791
4788
|
return invertedStringMap[t];
|
|
@@ -4827,7 +4824,7 @@ function getTicks(props, scale) {
|
|
|
4827
4824
|
|
|
4828
4825
|
if (tickValues) {
|
|
4829
4826
|
return downsampleTicks(tickValues, tickCount);
|
|
4830
|
-
} else if (scale.ticks &&
|
|
4827
|
+
} else if (scale.ticks && lodash_isFunction__WEBPACK_IMPORTED_MODULE_7___default()(scale.ticks)) {
|
|
4831
4828
|
// eslint-disable-next-line no-magic-numbers
|
|
4832
4829
|
var defaultTickCount = tickCount || 5;
|
|
4833
4830
|
var scaleTicks = scale.ticks(defaultTickCount);
|
|
@@ -4873,8 +4870,8 @@ function getDomainFromData(props, axis) {
|
|
|
4873
4870
|
var ticks = tickValues.map(function (value) {
|
|
4874
4871
|
return Number(value);
|
|
4875
4872
|
});
|
|
4876
|
-
var defaultMin = tickStrings ? 1 :
|
|
4877
|
-
var defaultMax = tickStrings ? tickValues.length :
|
|
4873
|
+
var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_11__.getMinValue(ticks);
|
|
4874
|
+
var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_11__.getMaxValue(ticks);
|
|
4878
4875
|
var min = minDomain !== undefined ? minDomain : defaultMin;
|
|
4879
4876
|
var max = maxDomain !== undefined ? maxDomain : defaultMax;
|
|
4880
4877
|
var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_13__.getDomainFromMinMax(min, max);
|
|
@@ -4903,20 +4900,20 @@ function getAxisValue(props, axis) {
|
|
|
4903
4900
|
}
|
|
4904
4901
|
|
|
4905
4902
|
var scaleAxis = axis === "x" ? "y" : "x";
|
|
4906
|
-
var scale =
|
|
4903
|
+
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;
|
|
4907
4904
|
|
|
4908
4905
|
if (!scale) {
|
|
4909
4906
|
return undefined;
|
|
4910
4907
|
}
|
|
4911
4908
|
|
|
4912
4909
|
var stringMapAxis = axis === "x" ? "y" : "x";
|
|
4913
|
-
var stringMap =
|
|
4910
|
+
var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.stringMap) && props.stringMap[stringMapAxis];
|
|
4914
4911
|
var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
|
|
4915
4912
|
return scale(axisValue);
|
|
4916
4913
|
}
|
|
4917
4914
|
function modifyProps(props, fallbackProps) {
|
|
4918
|
-
if (!
|
|
4919
|
-
return
|
|
4915
|
+
if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_6___default()(props.theme)) {
|
|
4916
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
|
|
4920
4917
|
}
|
|
4921
4918
|
|
|
4922
4919
|
var role = "axis";
|
|
@@ -4928,15 +4925,15 @@ function modifyProps(props, fallbackProps) {
|
|
|
4928
4925
|
}
|
|
4929
4926
|
|
|
4930
4927
|
if (role === "axis") {
|
|
4931
|
-
return
|
|
4928
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(props, fallbackProps, "axis");
|
|
4932
4929
|
}
|
|
4933
4930
|
|
|
4934
|
-
var axisTheme =
|
|
4931
|
+
var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_9___default()({}, props.theme[role], props.theme.axis);
|
|
4935
4932
|
|
|
4936
4933
|
var theme = Object.assign({}, props.theme, {
|
|
4937
4934
|
axis: axisTheme
|
|
4938
4935
|
});
|
|
4939
|
-
return
|
|
4936
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_12__.modifyProps(Object.assign({}, props, {
|
|
4940
4937
|
theme: theme
|
|
4941
4938
|
}), fallbackProps, "axis");
|
|
4942
4939
|
}
|
|
@@ -5216,17 +5213,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5216
5213
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_8__);
|
|
5217
5214
|
/* 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");
|
|
5218
5215
|
/* harmony import */ var lodash_last__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(lodash_last__WEBPACK_IMPORTED_MODULE_9__);
|
|
5219
|
-
/* harmony import */ var
|
|
5220
|
-
/* harmony import */ var
|
|
5221
|
-
/* harmony import */ var
|
|
5222
|
-
/* harmony import */ var
|
|
5223
|
-
/* harmony import */ var
|
|
5224
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__);
|
|
5225
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
|
|
5216
|
+
/* 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");
|
|
5217
|
+
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_10__);
|
|
5218
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
|
|
5219
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
|
|
5220
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
|
|
5226
5221
|
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./collection */ "./victory-util/collection.tsx");
|
|
5227
|
-
/* harmony import */ var
|
|
5228
|
-
/* harmony import */ var
|
|
5229
|
-
|
|
5222
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./scale */ "./victory-util/scale.ts");
|
|
5223
|
+
/* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./immutable */ "./victory-util/immutable.ts");
|
|
5230
5224
|
|
|
5231
5225
|
|
|
5232
5226
|
|
|
@@ -5263,24 +5257,22 @@ function parseDatum(datum) {
|
|
|
5263
5257
|
errorX: true,
|
|
5264
5258
|
errorY: true
|
|
5265
5259
|
};
|
|
5266
|
-
return
|
|
5260
|
+
return _immutable__WEBPACK_IMPORTED_MODULE_12__.isImmutable(datum) ? _immutable__WEBPACK_IMPORTED_MODULE_12__.shallowToJS(datum, immutableDatumWhitelist) : datum;
|
|
5267
5261
|
}
|
|
5268
5262
|
|
|
5269
5263
|
function getLength(data) {
|
|
5270
|
-
return
|
|
5264
|
+
return _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(data) ? data.size : data.length;
|
|
5271
5265
|
} // Returns generated data for a given axis based on domain and sample from props
|
|
5272
5266
|
|
|
5273
5267
|
|
|
5274
5268
|
function generateDataArray(props, axis) {
|
|
5275
5269
|
var propsDomain = lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_7___default()(props.domain) ? props.domain[axis] : props.domain;
|
|
5276
|
-
var domain = propsDomain ||
|
|
5270
|
+
var domain = propsDomain || _scale__WEBPACK_IMPORTED_MODULE_13__.getBaseScale(props, axis).domain();
|
|
5277
5271
|
var samples = props.samples || 1;
|
|
5278
5272
|
var domainMax = Math.max.apply(Math, _toConsumableArray(domain));
|
|
5279
5273
|
var domainMin = Math.min.apply(Math, _toConsumableArray(domain));
|
|
5280
5274
|
var step = (domainMax - domainMin) / samples;
|
|
5281
|
-
|
|
5282
|
-
var values = lodash_range__WEBPACK_IMPORTED_MODULE_10___default()(domainMin, domainMax, step);
|
|
5283
|
-
|
|
5275
|
+
var values = _helpers__WEBPACK_IMPORTED_MODULE_14__.range(domainMin, domainMax, step);
|
|
5284
5276
|
return lodash_last__WEBPACK_IMPORTED_MODULE_9___default()(values) === domainMax ? values : values.concat(domainMax);
|
|
5285
5277
|
} // Returns sorted data. If no sort keys are provided, data is returned unaltered.
|
|
5286
5278
|
|
|
@@ -5307,8 +5299,8 @@ function sortData(dataset, sortKey) {
|
|
|
5307
5299
|
function cleanData(dataset, props) {
|
|
5308
5300
|
var smallNumber = 1 / Number.MAX_SAFE_INTEGER;
|
|
5309
5301
|
var scaleType = {
|
|
5310
|
-
x:
|
|
5311
|
-
y:
|
|
5302
|
+
x: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "x"),
|
|
5303
|
+
y: _scale__WEBPACK_IMPORTED_MODULE_13__.getScaleType(props, "y")
|
|
5312
5304
|
};
|
|
5313
5305
|
|
|
5314
5306
|
if (scaleType.x !== "log" && scaleType.y !== "log") {
|
|
@@ -5443,7 +5435,7 @@ function createStringMap(props, axis) {
|
|
|
5443
5435
|
var stringsFromCategories = getStringsFromCategories(props, axis);
|
|
5444
5436
|
var stringsFromData = getStringsFromData(props, axis);
|
|
5445
5437
|
|
|
5446
|
-
var allStrings =
|
|
5438
|
+
var allStrings = lodash_uniq__WEBPACK_IMPORTED_MODULE_10___default()([].concat(_toConsumableArray(stringsFromAxes), _toConsumableArray(stringsFromCategories), _toConsumableArray(stringsFromData)));
|
|
5447
5439
|
|
|
5448
5440
|
return allStrings.length === 0 ? null : allStrings.reduce(function (memo, string, index) {
|
|
5449
5441
|
memo[string] = index + 1;
|
|
@@ -5485,7 +5477,7 @@ function downsample(data, maxPoints) {
|
|
|
5485
5477
|
*/
|
|
5486
5478
|
|
|
5487
5479
|
function formatData(dataset, props, expectedKeys) {
|
|
5488
|
-
var isArrayOrIterable = Array.isArray(dataset) ||
|
|
5480
|
+
var isArrayOrIterable = Array.isArray(dataset) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(dataset);
|
|
5489
5481
|
|
|
5490
5482
|
if (!isArrayOrIterable || getLength(dataset) < 1) {
|
|
5491
5483
|
return [];
|
|
@@ -5498,7 +5490,7 @@ function formatData(dataset, props, expectedKeys) {
|
|
|
5498
5490
|
expectedKeys = Array.isArray(expectedKeys) ? expectedKeys : defaultKeys;
|
|
5499
5491
|
|
|
5500
5492
|
var createAccessor = function (name) {
|
|
5501
|
-
return
|
|
5493
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(props[name] !== undefined ? props[name] : name);
|
|
5502
5494
|
};
|
|
5503
5495
|
|
|
5504
5496
|
var accessor = expectedKeys.reduce(function (memo, type) {
|
|
@@ -5635,14 +5627,14 @@ function getStringsFromCategories(props, axis) {
|
|
|
5635
5627
|
*/
|
|
5636
5628
|
|
|
5637
5629
|
function getStringsFromData(props, axis) {
|
|
5638
|
-
var isArrayOrIterable = Array.isArray(props.data) ||
|
|
5630
|
+
var isArrayOrIterable = Array.isArray(props.data) || _immutable__WEBPACK_IMPORTED_MODULE_12__.isIterable(props.data);
|
|
5639
5631
|
|
|
5640
5632
|
if (!isArrayOrIterable) {
|
|
5641
5633
|
return [];
|
|
5642
5634
|
}
|
|
5643
5635
|
|
|
5644
5636
|
var key = props[axis] === undefined ? axis : props[axis];
|
|
5645
|
-
var accessor =
|
|
5637
|
+
var accessor = _helpers__WEBPACK_IMPORTED_MODULE_14__.createAccessor(key); // support immutable data
|
|
5646
5638
|
|
|
5647
5639
|
var data = props.data.reduce(function (memo, d) {
|
|
5648
5640
|
memo.push(parseDatum(d));
|
|
@@ -5679,7 +5671,7 @@ function isDataComponent(component) {
|
|
|
5679
5671
|
var role = getRole(component);
|
|
5680
5672
|
|
|
5681
5673
|
if (role === "portal") {
|
|
5682
|
-
var children =
|
|
5674
|
+
var children = react__WEBPACK_IMPORTED_MODULE_11___default().Children.toArray(component.props.children);
|
|
5683
5675
|
role = children.length ? getRole(children[0]) : "";
|
|
5684
5676
|
}
|
|
5685
5677
|
|
|
@@ -6791,6 +6783,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6791
6783
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
6792
6784
|
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
6793
6785
|
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
6786
|
+
/* harmony export */ "range": () => (/* binding */ range),
|
|
6794
6787
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
6795
6788
|
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
6796
6789
|
/* harmony export */ });
|
|
@@ -7070,6 +7063,38 @@ function getCurrentAxis(axis, horizontal) {
|
|
|
7070
7063
|
var otherAxis = axis === "x" ? "y" : "x";
|
|
7071
7064
|
return horizontal ? otherAxis : axis;
|
|
7072
7065
|
}
|
|
7066
|
+
/**
|
|
7067
|
+
* Creates an array of numbers (positive and/or negative) progressing
|
|
7068
|
+
* from start up to, but not including, end.
|
|
7069
|
+
* A step of -1 is used if a negative start is specified without an end or step.
|
|
7070
|
+
* If end is not specified, it's set to start with start then set to 0.
|
|
7071
|
+
*
|
|
7072
|
+
* @param start The length of the array to create, or the start value
|
|
7073
|
+
* @param end [The end value] If this is defined, start is the start value
|
|
7074
|
+
* @returns An array of the given length
|
|
7075
|
+
*/
|
|
7076
|
+
|
|
7077
|
+
function range(start, end, increment) {
|
|
7078
|
+
// when the end index is not given, start from 0
|
|
7079
|
+
var startIndex = end ? start : 0; // when the end index is not given, the end of the range is the start index
|
|
7080
|
+
|
|
7081
|
+
var endIndex = end ? end : start; // ensure endIndex is not a falsy value
|
|
7082
|
+
|
|
7083
|
+
if (!endIndex) endIndex = 0;
|
|
7084
|
+
var k = endIndex - startIndex; // the value range
|
|
7085
|
+
|
|
7086
|
+
var length = Math.abs(k); // the length of the range
|
|
7087
|
+
|
|
7088
|
+
var sign = k / length || 1; // the sign of the range (negative or positive)
|
|
7089
|
+
|
|
7090
|
+
var inc = increment || 1; // the step size of each increment
|
|
7091
|
+
// normalize the array length when dealing with floating point values
|
|
7092
|
+
|
|
7093
|
+
var arrayLength = Math.max(Math.ceil(length / inc), 0);
|
|
7094
|
+
return Array.from(Array(arrayLength), function (_, i) {
|
|
7095
|
+
return startIndex + i * sign * inc;
|
|
7096
|
+
});
|
|
7097
|
+
}
|
|
7073
7098
|
/**
|
|
7074
7099
|
* @param {Array} children: an array of child components
|
|
7075
7100
|
* @param {Function} iteratee: a function with arguments "child", "childName", and "parent"
|
|
@@ -7899,8 +7924,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7899
7924
|
/* harmony export */ "triangleDown": () => (/* binding */ triangleDown),
|
|
7900
7925
|
/* harmony export */ "triangleUp": () => (/* binding */ triangleUp)
|
|
7901
7926
|
/* harmony export */ });
|
|
7902
|
-
/* harmony import */ var
|
|
7903
|
-
/*
|
|
7927
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers */ "./victory-util/helpers.ts");
|
|
7928
|
+
/* eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 2.5, 3] }]*/
|
|
7904
7929
|
|
|
7905
7930
|
function circle(x, y, size) {
|
|
7906
7931
|
return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
|
|
@@ -7965,11 +7990,10 @@ function star(x, y, size) {
|
|
|
7965
7990
|
var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
|
|
7966
7991
|
// eslint-disable-next-line no-magic-numbers
|
|
7967
7992
|
|
|
7968
|
-
var starCoords =
|
|
7993
|
+
var starCoords = _helpers__WEBPACK_IMPORTED_MODULE_0__.range(10).map(function (index) {
|
|
7969
7994
|
var length = index % 2 === 0 ? baseSize : baseSize / 2;
|
|
7970
7995
|
return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y);
|
|
7971
7996
|
});
|
|
7972
|
-
|
|
7973
7997
|
return "M ".concat(starCoords.join("L"), " z");
|
|
7974
7998
|
}
|
|
7975
7999
|
|
|
@@ -11703,44 +11727,6 @@ function basePropertyDeep(path) {
|
|
|
11703
11727
|
module.exports = basePropertyDeep;
|
|
11704
11728
|
|
|
11705
11729
|
|
|
11706
|
-
/***/ }),
|
|
11707
|
-
|
|
11708
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js":
|
|
11709
|
-
/*!************************************************************************************!*\
|
|
11710
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js ***!
|
|
11711
|
-
\************************************************************************************/
|
|
11712
|
-
/***/ ((module) => {
|
|
11713
|
-
|
|
11714
|
-
/* Built-in method references for those with the same name as other `lodash` methods. */
|
|
11715
|
-
var nativeCeil = Math.ceil,
|
|
11716
|
-
nativeMax = Math.max;
|
|
11717
|
-
|
|
11718
|
-
/**
|
|
11719
|
-
* The base implementation of `_.range` and `_.rangeRight` which doesn't
|
|
11720
|
-
* coerce arguments.
|
|
11721
|
-
*
|
|
11722
|
-
* @private
|
|
11723
|
-
* @param {number} start The start of the range.
|
|
11724
|
-
* @param {number} end The end of the range.
|
|
11725
|
-
* @param {number} step The value to increment or decrement by.
|
|
11726
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
11727
|
-
* @returns {Array} Returns the range of numbers.
|
|
11728
|
-
*/
|
|
11729
|
-
function baseRange(start, end, step, fromRight) {
|
|
11730
|
-
var index = -1,
|
|
11731
|
-
length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),
|
|
11732
|
-
result = Array(length);
|
|
11733
|
-
|
|
11734
|
-
while (length--) {
|
|
11735
|
-
result[fromRight ? length : ++index] = start;
|
|
11736
|
-
start += step;
|
|
11737
|
-
}
|
|
11738
|
-
return result;
|
|
11739
|
-
}
|
|
11740
|
-
|
|
11741
|
-
module.exports = baseRange;
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
11730
|
/***/ }),
|
|
11745
11731
|
|
|
11746
11732
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js":
|
|
@@ -12404,46 +12390,6 @@ function createInverter(setter, toIteratee) {
|
|
|
12404
12390
|
module.exports = createInverter;
|
|
12405
12391
|
|
|
12406
12392
|
|
|
12407
|
-
/***/ }),
|
|
12408
|
-
|
|
12409
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js":
|
|
12410
|
-
/*!**************************************************************************************!*\
|
|
12411
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js ***!
|
|
12412
|
-
\**************************************************************************************/
|
|
12413
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
12414
|
-
|
|
12415
|
-
var baseRange = __webpack_require__(/*! ./_baseRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRange.js"),
|
|
12416
|
-
isIterateeCall = __webpack_require__(/*! ./_isIterateeCall */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isIterateeCall.js"),
|
|
12417
|
-
toFinite = __webpack_require__(/*! ./toFinite */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toFinite.js");
|
|
12418
|
-
|
|
12419
|
-
/**
|
|
12420
|
-
* Creates a `_.range` or `_.rangeRight` function.
|
|
12421
|
-
*
|
|
12422
|
-
* @private
|
|
12423
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
12424
|
-
* @returns {Function} Returns the new range function.
|
|
12425
|
-
*/
|
|
12426
|
-
function createRange(fromRight) {
|
|
12427
|
-
return function(start, end, step) {
|
|
12428
|
-
if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {
|
|
12429
|
-
end = step = undefined;
|
|
12430
|
-
}
|
|
12431
|
-
// Ensure the sign of `-0` is preserved.
|
|
12432
|
-
start = toFinite(start);
|
|
12433
|
-
if (end === undefined) {
|
|
12434
|
-
end = start;
|
|
12435
|
-
start = 0;
|
|
12436
|
-
} else {
|
|
12437
|
-
end = toFinite(end);
|
|
12438
|
-
}
|
|
12439
|
-
step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);
|
|
12440
|
-
return baseRange(start, end, step, fromRight);
|
|
12441
|
-
};
|
|
12442
|
-
}
|
|
12443
|
-
|
|
12444
|
-
module.exports = createRange;
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
12393
|
/***/ }),
|
|
12448
12394
|
|
|
12449
12395
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
|
|
@@ -15447,62 +15393,6 @@ function property(path) {
|
|
|
15447
15393
|
module.exports = property;
|
|
15448
15394
|
|
|
15449
15395
|
|
|
15450
|
-
/***/ }),
|
|
15451
|
-
|
|
15452
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js":
|
|
15453
|
-
/*!*******************************************************************************!*\
|
|
15454
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js ***!
|
|
15455
|
-
\*******************************************************************************/
|
|
15456
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
15457
|
-
|
|
15458
|
-
var createRange = __webpack_require__(/*! ./_createRange */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js");
|
|
15459
|
-
|
|
15460
|
-
/**
|
|
15461
|
-
* Creates an array of numbers (positive and/or negative) progressing from
|
|
15462
|
-
* `start` up to, but not including, `end`. A step of `-1` is used if a negative
|
|
15463
|
-
* `start` is specified without an `end` or `step`. If `end` is not specified,
|
|
15464
|
-
* it's set to `start` with `start` then set to `0`.
|
|
15465
|
-
*
|
|
15466
|
-
* **Note:** JavaScript follows the IEEE-754 standard for resolving
|
|
15467
|
-
* floating-point values which can produce unexpected results.
|
|
15468
|
-
*
|
|
15469
|
-
* @static
|
|
15470
|
-
* @since 0.1.0
|
|
15471
|
-
* @memberOf _
|
|
15472
|
-
* @category Util
|
|
15473
|
-
* @param {number} [start=0] The start of the range.
|
|
15474
|
-
* @param {number} end The end of the range.
|
|
15475
|
-
* @param {number} [step=1] The value to increment or decrement by.
|
|
15476
|
-
* @returns {Array} Returns the range of numbers.
|
|
15477
|
-
* @see _.inRange, _.rangeRight
|
|
15478
|
-
* @example
|
|
15479
|
-
*
|
|
15480
|
-
* _.range(4);
|
|
15481
|
-
* // => [0, 1, 2, 3]
|
|
15482
|
-
*
|
|
15483
|
-
* _.range(-4);
|
|
15484
|
-
* // => [0, -1, -2, -3]
|
|
15485
|
-
*
|
|
15486
|
-
* _.range(1, 5);
|
|
15487
|
-
* // => [1, 2, 3, 4]
|
|
15488
|
-
*
|
|
15489
|
-
* _.range(0, 20, 5);
|
|
15490
|
-
* // => [0, 5, 10, 15]
|
|
15491
|
-
*
|
|
15492
|
-
* _.range(0, -4, -1);
|
|
15493
|
-
* // => [0, -1, -2, -3]
|
|
15494
|
-
*
|
|
15495
|
-
* _.range(1, 4, 0);
|
|
15496
|
-
* // => [1, 1, 1]
|
|
15497
|
-
*
|
|
15498
|
-
* _.range(0);
|
|
15499
|
-
* // => []
|
|
15500
|
-
*/
|
|
15501
|
-
var range = createRange();
|
|
15502
|
-
|
|
15503
|
-
module.exports = range;
|
|
15504
|
-
|
|
15505
|
-
|
|
15506
15396
|
/***/ }),
|
|
15507
15397
|
|
|
15508
15398
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/some.js":
|