victory-chart 36.9.2-next.3 → 36.9.2
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 +1 -16
- package/README.md +2 -2
- package/dist/victory-chart.js +167 -542
- package/dist/victory-chart.min.js +1 -1
- package/es/helper-methods.d.ts +40 -40
- package/es/index.d.ts +1 -1
- package/es/victory-chart.d.ts +26 -26
- package/lib/helper-methods.d.ts +40 -40
- package/lib/index.d.ts +1 -1
- package/lib/victory-chart.d.ts +26 -26
- package/package.json +9 -6
package/dist/victory-chart.js
CHANGED
|
@@ -968,83 +968,6 @@ function baseAssignValue(object, key, value) {
|
|
|
968
968
|
module.exports = baseAssignValue;
|
|
969
969
|
|
|
970
970
|
|
|
971
|
-
/***/ }),
|
|
972
|
-
|
|
973
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js":
|
|
974
|
-
/*!*****************************************************************************************!*\
|
|
975
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js ***!
|
|
976
|
-
\*****************************************************************************************/
|
|
977
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
978
|
-
|
|
979
|
-
var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js"),
|
|
980
|
-
arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js"),
|
|
981
|
-
arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js"),
|
|
982
|
-
arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
|
|
983
|
-
baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
|
|
984
|
-
cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js");
|
|
985
|
-
|
|
986
|
-
/** Used as the size to enable large array optimizations. */
|
|
987
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
* The base implementation of methods like `_.difference` without support
|
|
991
|
-
* for excluding multiple arrays or iteratee shorthands.
|
|
992
|
-
*
|
|
993
|
-
* @private
|
|
994
|
-
* @param {Array} array The array to inspect.
|
|
995
|
-
* @param {Array} values The values to exclude.
|
|
996
|
-
* @param {Function} [iteratee] The iteratee invoked per element.
|
|
997
|
-
* @param {Function} [comparator] The comparator invoked per element.
|
|
998
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
999
|
-
*/
|
|
1000
|
-
function baseDifference(array, values, iteratee, comparator) {
|
|
1001
|
-
var index = -1,
|
|
1002
|
-
includes = arrayIncludes,
|
|
1003
|
-
isCommon = true,
|
|
1004
|
-
length = array.length,
|
|
1005
|
-
result = [],
|
|
1006
|
-
valuesLength = values.length;
|
|
1007
|
-
|
|
1008
|
-
if (!length) {
|
|
1009
|
-
return result;
|
|
1010
|
-
}
|
|
1011
|
-
if (iteratee) {
|
|
1012
|
-
values = arrayMap(values, baseUnary(iteratee));
|
|
1013
|
-
}
|
|
1014
|
-
if (comparator) {
|
|
1015
|
-
includes = arrayIncludesWith;
|
|
1016
|
-
isCommon = false;
|
|
1017
|
-
}
|
|
1018
|
-
else if (values.length >= LARGE_ARRAY_SIZE) {
|
|
1019
|
-
includes = cacheHas;
|
|
1020
|
-
isCommon = false;
|
|
1021
|
-
values = new SetCache(values);
|
|
1022
|
-
}
|
|
1023
|
-
outer:
|
|
1024
|
-
while (++index < length) {
|
|
1025
|
-
var value = array[index],
|
|
1026
|
-
computed = iteratee == null ? value : iteratee(value);
|
|
1027
|
-
|
|
1028
|
-
value = (comparator || value !== 0) ? value : 0;
|
|
1029
|
-
if (isCommon && computed === computed) {
|
|
1030
|
-
var valuesIndex = valuesLength;
|
|
1031
|
-
while (valuesIndex--) {
|
|
1032
|
-
if (values[valuesIndex] === computed) {
|
|
1033
|
-
continue outer;
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
result.push(value);
|
|
1037
|
-
}
|
|
1038
|
-
else if (!includes(values, computed, comparator)) {
|
|
1039
|
-
result.push(value);
|
|
1040
|
-
}
|
|
1041
|
-
}
|
|
1042
|
-
return result;
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
module.exports = baseDifference;
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
971
|
/***/ }),
|
|
1049
972
|
|
|
1050
973
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
|
|
@@ -1093,58 +1016,6 @@ function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
|
1093
1016
|
module.exports = baseFlatten;
|
|
1094
1017
|
|
|
1095
1018
|
|
|
1096
|
-
/***/ }),
|
|
1097
|
-
|
|
1098
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js":
|
|
1099
|
-
/*!**********************************************************************************!*\
|
|
1100
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js ***!
|
|
1101
|
-
\**********************************************************************************/
|
|
1102
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1103
|
-
|
|
1104
|
-
var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js");
|
|
1105
|
-
|
|
1106
|
-
/**
|
|
1107
|
-
* The base implementation of `baseForOwn` which iterates over `object`
|
|
1108
|
-
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
1109
|
-
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
1110
|
-
*
|
|
1111
|
-
* @private
|
|
1112
|
-
* @param {Object} object The object to iterate over.
|
|
1113
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1114
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1115
|
-
* @returns {Object} Returns `object`.
|
|
1116
|
-
*/
|
|
1117
|
-
var baseFor = createBaseFor();
|
|
1118
|
-
|
|
1119
|
-
module.exports = baseFor;
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
/***/ }),
|
|
1123
|
-
|
|
1124
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js":
|
|
1125
|
-
/*!*************************************************************************************!*\
|
|
1126
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js ***!
|
|
1127
|
-
\*************************************************************************************/
|
|
1128
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1129
|
-
|
|
1130
|
-
var baseFor = __webpack_require__(/*! ./_baseFor */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"),
|
|
1131
|
-
keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
|
|
1132
|
-
|
|
1133
|
-
/**
|
|
1134
|
-
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
1135
|
-
*
|
|
1136
|
-
* @private
|
|
1137
|
-
* @param {Object} object The object to iterate over.
|
|
1138
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1139
|
-
* @returns {Object} Returns `object`.
|
|
1140
|
-
*/
|
|
1141
|
-
function baseForOwn(object, iteratee) {
|
|
1142
|
-
return object && baseFor(object, iteratee, keys);
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
module.exports = baseForOwn;
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
1019
|
/***/ }),
|
|
1149
1020
|
|
|
1150
1021
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js":
|
|
@@ -1267,37 +1138,6 @@ function strictIndexOf(array, value, fromIndex) {
|
|
|
1267
1138
|
module.exports = strictIndexOf;
|
|
1268
1139
|
|
|
1269
1140
|
|
|
1270
|
-
/***/ }),
|
|
1271
|
-
|
|
1272
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseInverter.js":
|
|
1273
|
-
/*!***************************************************************************************!*\
|
|
1274
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseInverter.js ***!
|
|
1275
|
-
\***************************************************************************************/
|
|
1276
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1277
|
-
|
|
1278
|
-
var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js");
|
|
1279
|
-
|
|
1280
|
-
/**
|
|
1281
|
-
* The base implementation of `_.invert` and `_.invertBy` which inverts
|
|
1282
|
-
* `object` with values transformed by `iteratee` and set by `setter`.
|
|
1283
|
-
*
|
|
1284
|
-
* @private
|
|
1285
|
-
* @param {Object} object The object to iterate over.
|
|
1286
|
-
* @param {Function} setter The function to set `accumulator` values.
|
|
1287
|
-
* @param {Function} iteratee The iteratee to transform values.
|
|
1288
|
-
* @param {Object} accumulator The initial inverted object.
|
|
1289
|
-
* @returns {Function} Returns `accumulator`.
|
|
1290
|
-
*/
|
|
1291
|
-
function baseInverter(object, setter, iteratee, accumulator) {
|
|
1292
|
-
baseForOwn(object, function(value, key, object) {
|
|
1293
|
-
setter(accumulator, iteratee(value), key, object);
|
|
1294
|
-
});
|
|
1295
|
-
return accumulator;
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
module.exports = baseInverter;
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
1141
|
/***/ }),
|
|
1302
1142
|
|
|
1303
1143
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsDate.js":
|
|
@@ -2378,68 +2218,6 @@ function createAggregator(setter, initializer) {
|
|
|
2378
2218
|
module.exports = createAggregator;
|
|
2379
2219
|
|
|
2380
2220
|
|
|
2381
|
-
/***/ }),
|
|
2382
|
-
|
|
2383
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js":
|
|
2384
|
-
/*!****************************************************************************************!*\
|
|
2385
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js ***!
|
|
2386
|
-
\****************************************************************************************/
|
|
2387
|
-
/***/ ((module) => {
|
|
2388
|
-
|
|
2389
|
-
/**
|
|
2390
|
-
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
2391
|
-
*
|
|
2392
|
-
* @private
|
|
2393
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
2394
|
-
* @returns {Function} Returns the new base function.
|
|
2395
|
-
*/
|
|
2396
|
-
function createBaseFor(fromRight) {
|
|
2397
|
-
return function(object, iteratee, keysFunc) {
|
|
2398
|
-
var index = -1,
|
|
2399
|
-
iterable = Object(object),
|
|
2400
|
-
props = keysFunc(object),
|
|
2401
|
-
length = props.length;
|
|
2402
|
-
|
|
2403
|
-
while (length--) {
|
|
2404
|
-
var key = props[fromRight ? length : ++index];
|
|
2405
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
2406
|
-
break;
|
|
2407
|
-
}
|
|
2408
|
-
}
|
|
2409
|
-
return object;
|
|
2410
|
-
};
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
module.exports = createBaseFor;
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
/***/ }),
|
|
2417
|
-
|
|
2418
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js":
|
|
2419
|
-
/*!*****************************************************************************************!*\
|
|
2420
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js ***!
|
|
2421
|
-
\*****************************************************************************************/
|
|
2422
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2423
|
-
|
|
2424
|
-
var baseInverter = __webpack_require__(/*! ./_baseInverter */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseInverter.js");
|
|
2425
|
-
|
|
2426
|
-
/**
|
|
2427
|
-
* Creates a function like `_.invertBy`.
|
|
2428
|
-
*
|
|
2429
|
-
* @private
|
|
2430
|
-
* @param {Function} setter The function to set accumulator values.
|
|
2431
|
-
* @param {Function} toIteratee The function to resolve iteratees.
|
|
2432
|
-
* @returns {Function} Returns the new inverter function.
|
|
2433
|
-
*/
|
|
2434
|
-
function createInverter(setter, toIteratee) {
|
|
2435
|
-
return function(object, iteratee) {
|
|
2436
|
-
return baseInverter(object, setter, toIteratee(iteratee), {});
|
|
2437
|
-
};
|
|
2438
|
-
}
|
|
2439
|
-
|
|
2440
|
-
module.exports = createInverter;
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
2221
|
/***/ }),
|
|
2444
2222
|
|
|
2445
2223
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
|
|
@@ -3637,42 +3415,6 @@ function toKey(value) {
|
|
|
3637
3415
|
module.exports = toKey;
|
|
3638
3416
|
|
|
3639
3417
|
|
|
3640
|
-
/***/ }),
|
|
3641
|
-
|
|
3642
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js":
|
|
3643
|
-
/*!**********************************************************************************!*\
|
|
3644
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js ***!
|
|
3645
|
-
\**********************************************************************************/
|
|
3646
|
-
/***/ ((module) => {
|
|
3647
|
-
|
|
3648
|
-
/**
|
|
3649
|
-
* Creates a function that returns `value`.
|
|
3650
|
-
*
|
|
3651
|
-
* @static
|
|
3652
|
-
* @memberOf _
|
|
3653
|
-
* @since 2.4.0
|
|
3654
|
-
* @category Util
|
|
3655
|
-
* @param {*} value The value to return from the new function.
|
|
3656
|
-
* @returns {Function} Returns the new constant function.
|
|
3657
|
-
* @example
|
|
3658
|
-
*
|
|
3659
|
-
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
3660
|
-
*
|
|
3661
|
-
* console.log(objects);
|
|
3662
|
-
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
3663
|
-
*
|
|
3664
|
-
* console.log(objects[0] === objects[1]);
|
|
3665
|
-
* // => true
|
|
3666
|
-
*/
|
|
3667
|
-
function constant(value) {
|
|
3668
|
-
return function() {
|
|
3669
|
-
return value;
|
|
3670
|
-
};
|
|
3671
|
-
}
|
|
3672
|
-
|
|
3673
|
-
module.exports = constant;
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
3418
|
/***/ }),
|
|
3677
3419
|
|
|
3678
3420
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js":
|
|
@@ -3747,49 +3489,6 @@ var defaults = baseRest(function(object, sources) {
|
|
|
3747
3489
|
module.exports = defaults;
|
|
3748
3490
|
|
|
3749
3491
|
|
|
3750
|
-
/***/ }),
|
|
3751
|
-
|
|
3752
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js":
|
|
3753
|
-
/*!************************************************************************************!*\
|
|
3754
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js ***!
|
|
3755
|
-
\************************************************************************************/
|
|
3756
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3757
|
-
|
|
3758
|
-
var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js"),
|
|
3759
|
-
baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js"),
|
|
3760
|
-
baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
|
|
3761
|
-
isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
|
|
3762
|
-
|
|
3763
|
-
/**
|
|
3764
|
-
* Creates an array of `array` values not included in the other given arrays
|
|
3765
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
3766
|
-
* for equality comparisons. The order and references of result values are
|
|
3767
|
-
* determined by the first array.
|
|
3768
|
-
*
|
|
3769
|
-
* **Note:** Unlike `_.pullAll`, this method returns a new array.
|
|
3770
|
-
*
|
|
3771
|
-
* @static
|
|
3772
|
-
* @memberOf _
|
|
3773
|
-
* @since 0.1.0
|
|
3774
|
-
* @category Array
|
|
3775
|
-
* @param {Array} array The array to inspect.
|
|
3776
|
-
* @param {...Array} [values] The values to exclude.
|
|
3777
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
3778
|
-
* @see _.without, _.xor
|
|
3779
|
-
* @example
|
|
3780
|
-
*
|
|
3781
|
-
* _.difference([2, 1], [2, 3]);
|
|
3782
|
-
* // => [1]
|
|
3783
|
-
*/
|
|
3784
|
-
var difference = baseRest(function(array, values) {
|
|
3785
|
-
return isArrayLikeObject(array)
|
|
3786
|
-
? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
|
|
3787
|
-
: [];
|
|
3788
|
-
});
|
|
3789
|
-
|
|
3790
|
-
module.exports = difference;
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
3492
|
/***/ }),
|
|
3794
3493
|
|
|
3795
3494
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js":
|
|
@@ -4076,58 +3775,6 @@ function identity(value) {
|
|
|
4076
3775
|
module.exports = identity;
|
|
4077
3776
|
|
|
4078
3777
|
|
|
4079
|
-
/***/ }),
|
|
4080
|
-
|
|
4081
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/invert.js":
|
|
4082
|
-
/*!********************************************************************************!*\
|
|
4083
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/invert.js ***!
|
|
4084
|
-
\********************************************************************************/
|
|
4085
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4086
|
-
|
|
4087
|
-
var constant = __webpack_require__(/*! ./constant */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"),
|
|
4088
|
-
createInverter = __webpack_require__(/*! ./_createInverter */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js"),
|
|
4089
|
-
identity = __webpack_require__(/*! ./identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
|
|
4090
|
-
|
|
4091
|
-
/** Used for built-in method references. */
|
|
4092
|
-
var objectProto = Object.prototype;
|
|
4093
|
-
|
|
4094
|
-
/**
|
|
4095
|
-
* Used to resolve the
|
|
4096
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4097
|
-
* of values.
|
|
4098
|
-
*/
|
|
4099
|
-
var nativeObjectToString = objectProto.toString;
|
|
4100
|
-
|
|
4101
|
-
/**
|
|
4102
|
-
* Creates an object composed of the inverted keys and values of `object`.
|
|
4103
|
-
* If `object` contains duplicate values, subsequent values overwrite
|
|
4104
|
-
* property assignments of previous values.
|
|
4105
|
-
*
|
|
4106
|
-
* @static
|
|
4107
|
-
* @memberOf _
|
|
4108
|
-
* @since 0.7.0
|
|
4109
|
-
* @category Object
|
|
4110
|
-
* @param {Object} object The object to invert.
|
|
4111
|
-
* @returns {Object} Returns the new inverted object.
|
|
4112
|
-
* @example
|
|
4113
|
-
*
|
|
4114
|
-
* var object = { 'a': 1, 'b': 2, 'c': 1 };
|
|
4115
|
-
*
|
|
4116
|
-
* _.invert(object);
|
|
4117
|
-
* // => { '1': 'c', '2': 'b' }
|
|
4118
|
-
*/
|
|
4119
|
-
var invert = createInverter(function(result, value, key) {
|
|
4120
|
-
if (value != null &&
|
|
4121
|
-
typeof value.toString != 'function') {
|
|
4122
|
-
value = nativeObjectToString.call(value);
|
|
4123
|
-
}
|
|
4124
|
-
|
|
4125
|
-
result[value] = key;
|
|
4126
|
-
}, constant(identity));
|
|
4127
|
-
|
|
4128
|
-
module.exports = invert;
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
3778
|
/***/ }),
|
|
4132
3779
|
|
|
4133
3780
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js":
|
|
@@ -4235,49 +3882,6 @@ function isArrayLike(value) {
|
|
|
4235
3882
|
module.exports = isArrayLike;
|
|
4236
3883
|
|
|
4237
3884
|
|
|
4238
|
-
/***/ }),
|
|
4239
|
-
|
|
4240
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js":
|
|
4241
|
-
/*!*******************************************************************************************!*\
|
|
4242
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js ***!
|
|
4243
|
-
\*******************************************************************************************/
|
|
4244
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4245
|
-
|
|
4246
|
-
var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
|
|
4247
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
|
|
4248
|
-
|
|
4249
|
-
/**
|
|
4250
|
-
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
4251
|
-
* is an object.
|
|
4252
|
-
*
|
|
4253
|
-
* @static
|
|
4254
|
-
* @memberOf _
|
|
4255
|
-
* @since 4.0.0
|
|
4256
|
-
* @category Lang
|
|
4257
|
-
* @param {*} value The value to check.
|
|
4258
|
-
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
4259
|
-
* else `false`.
|
|
4260
|
-
* @example
|
|
4261
|
-
*
|
|
4262
|
-
* _.isArrayLikeObject([1, 2, 3]);
|
|
4263
|
-
* // => true
|
|
4264
|
-
*
|
|
4265
|
-
* _.isArrayLikeObject(document.body.children);
|
|
4266
|
-
* // => true
|
|
4267
|
-
*
|
|
4268
|
-
* _.isArrayLikeObject('abc');
|
|
4269
|
-
* // => false
|
|
4270
|
-
*
|
|
4271
|
-
* _.isArrayLikeObject(_.noop);
|
|
4272
|
-
* // => false
|
|
4273
|
-
*/
|
|
4274
|
-
function isArrayLikeObject(value) {
|
|
4275
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
4276
|
-
}
|
|
4277
|
-
|
|
4278
|
-
module.exports = isArrayLikeObject;
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
3885
|
/***/ }),
|
|
4282
3886
|
|
|
4283
3887
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js":
|
|
@@ -9406,18 +9010,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9406
9010
|
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
9407
9011
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
|
|
9408
9012
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
|
|
9409
|
-
/* harmony import */ var
|
|
9410
|
-
/* harmony import */ var
|
|
9411
|
-
/* harmony import */ var
|
|
9412
|
-
/* harmony import */ var
|
|
9413
|
-
/* harmony import */ var
|
|
9414
|
-
/* harmony import */ var
|
|
9415
|
-
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
9416
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
9417
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__);
|
|
9013
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
9014
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
9015
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
9016
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
9017
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
9018
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
9418
9019
|
/* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js");
|
|
9419
|
-
/* harmony import */ var
|
|
9420
|
-
|
|
9020
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
9021
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
9022
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9421
9023
|
|
|
9422
9024
|
|
|
9423
9025
|
|
|
@@ -9458,13 +9060,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9458
9060
|
|
|
9459
9061
|
|
|
9460
9062
|
|
|
9063
|
+
|
|
9461
9064
|
// DISCLAIMER:
|
|
9462
9065
|
// This file is not currently tested, and it is first on the list of files
|
|
9463
9066
|
// to refactor in our current refactoring effort. Please do not make changes
|
|
9464
9067
|
// to this file without manual testing and/or refactoring and adding tests.
|
|
9465
9068
|
|
|
9466
9069
|
var datumHasXandY = function (datum) {
|
|
9467
|
-
return !(0,
|
|
9070
|
+
return !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isNil)(datum._x) && !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isNil)(datum._y);
|
|
9468
9071
|
}; // used for checking state changes. Expected components can be passed in via options
|
|
9469
9072
|
|
|
9470
9073
|
|
|
@@ -9492,11 +9095,11 @@ function addEvents(WrappedComponent) {
|
|
|
9492
9095
|
|
|
9493
9096
|
_this = _super.call(this, props);
|
|
9494
9097
|
_this.state = {};
|
|
9495
|
-
_this.getEventState =
|
|
9496
|
-
_this.getScopedEvents =
|
|
9098
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_6__.getEventState.bind(_assertThisInitialized(_this));
|
|
9099
|
+
_this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
9497
9100
|
|
|
9498
9101
|
_this.getEvents = function (p, target, eventKey) {
|
|
9499
|
-
return
|
|
9102
|
+
return _events__WEBPACK_IMPORTED_MODULE_6__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
|
|
9500
9103
|
};
|
|
9501
9104
|
|
|
9502
9105
|
_this.externalMutations = _this.getExternalMutations(_this.props);
|
|
@@ -9516,7 +9119,7 @@ function addEvents(WrappedComponent) {
|
|
|
9516
9119
|
var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
|
|
9517
9120
|
|
|
9518
9121
|
var animating = this.props.animating || this.props.animate;
|
|
9519
|
-
var newMutation = !
|
|
9122
|
+
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(externalMutations, this.externalMutations);
|
|
9520
9123
|
|
|
9521
9124
|
if (animating || newMutation) {
|
|
9522
9125
|
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
@@ -9527,12 +9130,12 @@ function addEvents(WrappedComponent) {
|
|
|
9527
9130
|
|
|
9528
9131
|
var calculatedState = this.getStateChanges(nextProps);
|
|
9529
9132
|
|
|
9530
|
-
if (!
|
|
9133
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.calculatedState, calculatedState)) {
|
|
9531
9134
|
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
9532
9135
|
return true;
|
|
9533
9136
|
}
|
|
9534
9137
|
|
|
9535
|
-
if (!
|
|
9138
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
9536
9139
|
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
9537
9140
|
return true;
|
|
9538
9141
|
}
|
|
@@ -9558,15 +9161,11 @@ function addEvents(WrappedComponent) {
|
|
|
9558
9161
|
var calculatedState = this.getStateChanges(prevProps);
|
|
9559
9162
|
this.calculatedState = calculatedState;
|
|
9560
9163
|
var globalEventKeys = Object.keys(this.globalEvents);
|
|
9561
|
-
|
|
9562
|
-
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_2___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
9563
|
-
|
|
9164
|
+
var removedGlobalEventKeys = (0,_collection__WEBPACK_IMPORTED_MODULE_7__.difference)(this.prevGlobalEventKeys, globalEventKeys);
|
|
9564
9165
|
removedGlobalEventKeys.forEach(function (key) {
|
|
9565
9166
|
return _this3.removeGlobalListener(key);
|
|
9566
9167
|
});
|
|
9567
|
-
|
|
9568
|
-
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_2___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
9569
|
-
|
|
9168
|
+
var addedGlobalEventKeys = (0,_collection__WEBPACK_IMPORTED_MODULE_7__.difference)(globalEventKeys, this.prevGlobalEventKeys);
|
|
9570
9169
|
addedGlobalEventKeys.forEach(function (key) {
|
|
9571
9170
|
return _this3.addGlobalListener(key);
|
|
9572
9171
|
});
|
|
@@ -9588,16 +9187,16 @@ function addEvents(WrappedComponent) {
|
|
|
9588
9187
|
|
|
9589
9188
|
var boundListener = function (event) {
|
|
9590
9189
|
var listener = _this5.globalEvents[key];
|
|
9591
|
-
return listener && listener(
|
|
9190
|
+
return listener && listener(_events__WEBPACK_IMPORTED_MODULE_6__.emulateReactEvent(event));
|
|
9592
9191
|
};
|
|
9593
9192
|
|
|
9594
9193
|
this.boundGlobalEvents[key] = boundListener;
|
|
9595
|
-
window.addEventListener(
|
|
9194
|
+
window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), boundListener);
|
|
9596
9195
|
}
|
|
9597
9196
|
}, {
|
|
9598
9197
|
key: "removeGlobalListener",
|
|
9599
9198
|
value: function removeGlobalListener(key) {
|
|
9600
|
-
window.removeEventListener(
|
|
9199
|
+
window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
9601
9200
|
} // compile all state changes from own and parent state. Order doesn't matter, as any state
|
|
9602
9201
|
// state change should trigger a re-render
|
|
9603
9202
|
|
|
@@ -9611,7 +9210,7 @@ function addEvents(WrappedComponent) {
|
|
|
9611
9210
|
}
|
|
9612
9211
|
|
|
9613
9212
|
var getState = function (key, type) {
|
|
9614
|
-
var result =
|
|
9213
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
9615
9214
|
|
|
9616
9215
|
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
|
|
9617
9216
|
};
|
|
@@ -9634,7 +9233,7 @@ function addEvents(WrappedComponent) {
|
|
|
9634
9233
|
value: function applyExternalMutations(props, externalMutations) {
|
|
9635
9234
|
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
|
|
9636
9235
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
9637
|
-
return (0,
|
|
9236
|
+
return (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
9638
9237
|
}, []);
|
|
9639
9238
|
var compiledCallbacks = callbacks.length ? function () {
|
|
9640
9239
|
callbacks.forEach(function (c) {
|
|
@@ -9649,8 +9248,8 @@ function addEvents(WrappedComponent) {
|
|
|
9649
9248
|
value: function getCalculatedValues(props) {
|
|
9650
9249
|
var sharedEvents = props.sharedEvents;
|
|
9651
9250
|
var components = WrappedComponent.expectedComponents;
|
|
9652
|
-
var componentEvents =
|
|
9653
|
-
var getSharedEventState = sharedEvents && (0,
|
|
9251
|
+
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getComponentEvents(props, components);
|
|
9252
|
+
var getSharedEventState = sharedEvents && (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
9654
9253
|
return undefined;
|
|
9655
9254
|
};
|
|
9656
9255
|
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
@@ -9673,7 +9272,7 @@ function addEvents(WrappedComponent) {
|
|
|
9673
9272
|
value: function getExternalMutations(props) {
|
|
9674
9273
|
var sharedEvents = props.sharedEvents,
|
|
9675
9274
|
externalEventMutations = props.externalEventMutations;
|
|
9676
|
-
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined :
|
|
9275
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
9677
9276
|
}
|
|
9678
9277
|
}, {
|
|
9679
9278
|
key: "cacheValues",
|
|
@@ -9691,12 +9290,12 @@ function addEvents(WrappedComponent) {
|
|
|
9691
9290
|
var sharedParentState = getSharedEventStateFunction("parent", "parent");
|
|
9692
9291
|
var parentState = this.getEventState("parent", "parent");
|
|
9693
9292
|
|
|
9694
|
-
var baseParentProps =
|
|
9293
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
|
|
9695
9294
|
|
|
9696
9295
|
var parentPropsList = baseParentProps.parentControlledProps;
|
|
9697
9296
|
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
|
|
9698
9297
|
|
|
9699
|
-
var modifiedProps =
|
|
9298
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
|
|
9700
9299
|
|
|
9701
9300
|
return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
9702
9301
|
}
|
|
@@ -9728,21 +9327,21 @@ function addEvents(WrappedComponent) {
|
|
|
9728
9327
|
if (this.hasEvents) {
|
|
9729
9328
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
9730
9329
|
|
|
9731
|
-
var componentProps =
|
|
9330
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
9732
9331
|
index: index,
|
|
9733
9332
|
key: id
|
|
9734
9333
|
}, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
|
|
9735
9334
|
id: id
|
|
9736
9335
|
});
|
|
9737
9336
|
|
|
9738
|
-
var events =
|
|
9337
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
9739
9338
|
|
|
9740
9339
|
return Object.assign({}, componentProps, {
|
|
9741
9340
|
events: events
|
|
9742
9341
|
});
|
|
9743
9342
|
}
|
|
9744
9343
|
|
|
9745
|
-
return
|
|
9344
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
9746
9345
|
index: index,
|
|
9747
9346
|
key: id
|
|
9748
9347
|
}, currentProps, baseProps, {
|
|
@@ -9756,11 +9355,11 @@ function addEvents(WrappedComponent) {
|
|
|
9756
9355
|
var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
|
|
9757
9356
|
|
|
9758
9357
|
if (parentProps.events) {
|
|
9759
|
-
this.globalEvents =
|
|
9760
|
-
parentProps.events =
|
|
9358
|
+
this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
|
|
9359
|
+
parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
|
|
9761
9360
|
}
|
|
9762
9361
|
|
|
9763
|
-
return /*#__PURE__*/
|
|
9362
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
|
|
9764
9363
|
}
|
|
9765
9364
|
}, {
|
|
9766
9365
|
key: "animateComponent",
|
|
@@ -9769,10 +9368,10 @@ function addEvents(WrappedComponent) {
|
|
|
9769
9368
|
|
|
9770
9369
|
var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
|
|
9771
9370
|
var Comp = this.constructor;
|
|
9772
|
-
return /*#__PURE__*/
|
|
9371
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
|
|
9773
9372
|
animate: props.animate,
|
|
9774
9373
|
animationWhitelist: animationWhitelist
|
|
9775
|
-
}, /*#__PURE__*/
|
|
9374
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
|
|
9776
9375
|
} // Used by `VictoryLine` and `VictoryArea`
|
|
9777
9376
|
|
|
9778
9377
|
}, {
|
|
@@ -9792,13 +9391,13 @@ function addEvents(WrappedComponent) {
|
|
|
9792
9391
|
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
9793
9392
|
|
|
9794
9393
|
if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
|
|
9795
|
-
newMemo = newMemo.concat( /*#__PURE__*/
|
|
9394
|
+
newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
|
|
9796
9395
|
}
|
|
9797
9396
|
|
|
9798
9397
|
return newMemo;
|
|
9799
9398
|
}, []);
|
|
9800
9399
|
var dataProps = this.getComponentProps(dataComponent, "data", "all");
|
|
9801
|
-
var children = [/*#__PURE__*/
|
|
9400
|
+
var children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
|
|
9802
9401
|
return this.renderContainer(groupComponent, children);
|
|
9803
9402
|
}
|
|
9804
9403
|
}, {
|
|
@@ -9814,7 +9413,7 @@ function addEvents(WrappedComponent) {
|
|
|
9814
9413
|
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
9815
9414
|
|
|
9816
9415
|
if (shouldRenderDatum(dataProps.datum)) {
|
|
9817
|
-
validDataComponents.push( /*#__PURE__*/
|
|
9416
|
+
validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
|
|
9818
9417
|
}
|
|
9819
9418
|
|
|
9820
9419
|
return validDataComponents;
|
|
@@ -9823,7 +9422,7 @@ function addEvents(WrappedComponent) {
|
|
|
9823
9422
|
var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
|
|
9824
9423
|
|
|
9825
9424
|
if (labelProps.text !== undefined && labelProps.text !== null) {
|
|
9826
|
-
return /*#__PURE__*/
|
|
9425
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
|
|
9827
9426
|
}
|
|
9828
9427
|
|
|
9829
9428
|
return undefined;
|
|
@@ -9868,21 +9467,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9868
9467
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
|
|
9869
9468
|
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
|
|
9870
9469
|
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_1__);
|
|
9871
|
-
/* harmony import */ var
|
|
9872
|
-
/* harmony import */ var
|
|
9873
|
-
/* harmony import */ var
|
|
9874
|
-
/* harmony import */ var
|
|
9875
|
-
/* harmony import */ var
|
|
9876
|
-
/* harmony import */ var
|
|
9877
|
-
/* harmony import */ var
|
|
9878
|
-
/* harmony import */ var
|
|
9879
|
-
/* harmony import */ var
|
|
9880
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
|
9881
|
-
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
9882
|
-
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
|
|
9883
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9884
|
-
|
|
9885
|
-
|
|
9470
|
+
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
|
|
9471
|
+
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_2__);
|
|
9472
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
9473
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
|
|
9474
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
9475
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
9476
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
9477
|
+
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
|
|
9478
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9886
9479
|
|
|
9887
9480
|
|
|
9888
9481
|
|
|
@@ -9905,12 +9498,22 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
9905
9498
|
|
|
9906
9499
|
|
|
9907
9500
|
|
|
9501
|
+
/**
|
|
9502
|
+
* Returns the first argument it receives
|
|
9503
|
+
* @param value The value to return
|
|
9504
|
+
* @returns The value given
|
|
9505
|
+
*/
|
|
9506
|
+
function identity(value) {
|
|
9507
|
+
return value;
|
|
9508
|
+
}
|
|
9908
9509
|
/**
|
|
9909
9510
|
* Returns the axis (x or y) of a particular axis component
|
|
9910
9511
|
* @param {Object} props: the props object.
|
|
9911
9512
|
* @param {Boolean} horizontal: true for horizontal charts
|
|
9912
9513
|
* @returns {String} the dimension appropriate for the axis given its props
|
|
9913
9514
|
*/
|
|
9515
|
+
|
|
9516
|
+
|
|
9914
9517
|
function getAxis(props) {
|
|
9915
9518
|
var dependentAxis = props.dependentAxis;
|
|
9916
9519
|
return dependentAxis ? "y" : "x";
|
|
@@ -9923,14 +9526,14 @@ function getAxis(props) {
|
|
|
9923
9526
|
*/
|
|
9924
9527
|
|
|
9925
9528
|
function findAxisComponents(childComponents, predicate) {
|
|
9926
|
-
var predicateFunction = predicate ||
|
|
9529
|
+
var predicateFunction = predicate || identity;
|
|
9927
9530
|
|
|
9928
9531
|
var findAxes = function (children) {
|
|
9929
9532
|
return children.reduce(function (memo, child) {
|
|
9930
9533
|
if (child.type && child.type.role === "axis" && predicateFunction(child)) {
|
|
9931
9534
|
return memo.concat(child);
|
|
9932
9535
|
} else if (child.props && child.props.children) {
|
|
9933
|
-
return memo.concat(findAxes(
|
|
9536
|
+
return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children)));
|
|
9934
9537
|
}
|
|
9935
9538
|
|
|
9936
9539
|
return memo;
|
|
@@ -9972,7 +9575,7 @@ function getAxisComponentsWithParent(childComponents, type) {
|
|
|
9972
9575
|
if (child.type && child.type.role === "axis" && matchesType(child)) {
|
|
9973
9576
|
return memo.concat(child);
|
|
9974
9577
|
} else if (child.props && child.props.children) {
|
|
9975
|
-
var childAxis = findComponents(
|
|
9578
|
+
var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children));
|
|
9976
9579
|
return childAxis.length > 0 ? memo.concat(child) : memo;
|
|
9977
9580
|
}
|
|
9978
9581
|
|
|
@@ -9990,8 +9593,8 @@ function getOrigin(domain) {
|
|
|
9990
9593
|
};
|
|
9991
9594
|
|
|
9992
9595
|
return {
|
|
9993
|
-
x:
|
|
9994
|
-
y:
|
|
9596
|
+
x: _collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
|
|
9597
|
+
y: _collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
|
|
9995
9598
|
};
|
|
9996
9599
|
}
|
|
9997
9600
|
function getOriginSign(origin, domain) {
|
|
@@ -9999,7 +9602,7 @@ function getOriginSign(origin, domain) {
|
|
|
9999
9602
|
return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
|
|
10000
9603
|
};
|
|
10001
9604
|
|
|
10002
|
-
return
|
|
9605
|
+
return _collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(domain) ? "positive" : getSign();
|
|
10003
9606
|
}
|
|
10004
9607
|
/**
|
|
10005
9608
|
* @param {Object} props: axis component props
|
|
@@ -10022,14 +9625,14 @@ function isVertical(props) {
|
|
|
10022
9625
|
*/
|
|
10023
9626
|
|
|
10024
9627
|
function stringTicks(props) {
|
|
10025
|
-
return props.tickValues !== undefined &&
|
|
9628
|
+
return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(props.tickValues);
|
|
10026
9629
|
}
|
|
10027
9630
|
|
|
10028
9631
|
function getDefaultTickFormat(props) {
|
|
10029
9632
|
var tickValues = props.tickValues;
|
|
10030
9633
|
var axis = getAxis(props);
|
|
10031
9634
|
var stringMap = props.stringMap && props.stringMap[axis];
|
|
10032
|
-
var fallbackFormat = tickValues && !
|
|
9635
|
+
var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(tickValues) ? function (x) {
|
|
10033
9636
|
return x;
|
|
10034
9637
|
} : undefined;
|
|
10035
9638
|
|
|
@@ -10039,7 +9642,7 @@ function getDefaultTickFormat(props) {
|
|
|
10039
9642
|
} : fallbackFormat;
|
|
10040
9643
|
}
|
|
10041
9644
|
|
|
10042
|
-
var invertedStringMap = stringMap &&
|
|
9645
|
+
var invertedStringMap = stringMap && _helpers__WEBPACK_IMPORTED_MODULE_6__.invert(stringMap);
|
|
10043
9646
|
|
|
10044
9647
|
var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(Object.values(stringMap), function (n) {
|
|
10045
9648
|
return n;
|
|
@@ -10059,7 +9662,7 @@ function getStringTicks(props) {
|
|
|
10059
9662
|
var axis = getAxis(props);
|
|
10060
9663
|
var stringMap = props.stringMap && props.stringMap[axis];
|
|
10061
9664
|
var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
|
|
10062
|
-
var ticksFromCategories = categories &&
|
|
9665
|
+
var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_5__.containsOnlyStrings(categories) ? categories.map(function (tick) {
|
|
10063
9666
|
return stringMap[tick];
|
|
10064
9667
|
}) : undefined;
|
|
10065
9668
|
var ticksFromStringMap = stringMap && Object.values(stringMap);
|
|
@@ -10082,7 +9685,7 @@ function getTickArray(props) {
|
|
|
10082
9685
|
return undefined;
|
|
10083
9686
|
}
|
|
10084
9687
|
|
|
10085
|
-
return
|
|
9688
|
+
return _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
|
|
10086
9689
|
return i;
|
|
10087
9690
|
}) : tickFormat;
|
|
10088
9691
|
};
|
|
@@ -10093,10 +9696,10 @@ function getTickArray(props) {
|
|
|
10093
9696
|
ticks = getStringTicks(props);
|
|
10094
9697
|
}
|
|
10095
9698
|
|
|
10096
|
-
if (tickValues &&
|
|
9699
|
+
if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(tickValues)) {
|
|
10097
9700
|
ticks = stringMap ? tickValues.map(function (tick) {
|
|
10098
9701
|
return stringMap[tick];
|
|
10099
|
-
}) :
|
|
9702
|
+
}) : _helpers__WEBPACK_IMPORTED_MODULE_6__.range(1, tickValues.length + 1);
|
|
10100
9703
|
}
|
|
10101
9704
|
|
|
10102
9705
|
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default()(ticks) : getTicksFromFormat();
|
|
@@ -10108,7 +9711,7 @@ function getTickArray(props) {
|
|
|
10108
9711
|
if (arr) {
|
|
10109
9712
|
arr.forEach(function (t, index) {
|
|
10110
9713
|
if (Array.isArray(domain)) {
|
|
10111
|
-
if (t >=
|
|
9714
|
+
if (t >= _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(domain)) {
|
|
10112
9715
|
newTickArray.push({
|
|
10113
9716
|
value: t,
|
|
10114
9717
|
index: index
|
|
@@ -10140,7 +9743,7 @@ function getTickFormat(props, scale) {
|
|
|
10140
9743
|
// by default. This changed the default formatting for some scale types when
|
|
10141
9744
|
// we upgraded to d3-scale@4..
|
|
10142
9745
|
|
|
10143
|
-
var scaleTickFormat = scale.tickFormat &&
|
|
9746
|
+
var scaleTickFormat = scale.tickFormat && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(scale.tickFormat) ? scale.tickFormat() : function (x) {
|
|
10144
9747
|
return x;
|
|
10145
9748
|
};
|
|
10146
9749
|
return defaultTickFormat || scaleTickFormat;
|
|
@@ -10155,10 +9758,9 @@ function getTickFormat(props, scale) {
|
|
|
10155
9758
|
return function (x, index) {
|
|
10156
9759
|
return filteredTickFormat[index];
|
|
10157
9760
|
};
|
|
10158
|
-
} else if (tickFormat &&
|
|
9761
|
+
} else if (tickFormat && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(tickFormat)) {
|
|
10159
9762
|
var applyStringTicks = function (tick, index, ticks) {
|
|
10160
|
-
var invertedStringMap =
|
|
10161
|
-
|
|
9763
|
+
var invertedStringMap = _helpers__WEBPACK_IMPORTED_MODULE_6__.invert(stringMap);
|
|
10162
9764
|
var stringTickArray = ticks.map(function (t) {
|
|
10163
9765
|
return invertedStringMap[t];
|
|
10164
9766
|
});
|
|
@@ -10199,7 +9801,7 @@ function getTicks(props, scale) {
|
|
|
10199
9801
|
|
|
10200
9802
|
if (tickValues) {
|
|
10201
9803
|
return downsampleTicks(tickValues, tickCount);
|
|
10202
|
-
} else if (scale.ticks &&
|
|
9804
|
+
} else if (scale.ticks && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(scale.ticks)) {
|
|
10203
9805
|
// eslint-disable-next-line no-magic-numbers
|
|
10204
9806
|
var defaultTickCount = tickCount || 5;
|
|
10205
9807
|
var scaleTicks = scale.ticks(defaultTickCount);
|
|
@@ -10241,18 +9843,18 @@ function getDomainFromData(props, axis) {
|
|
|
10241
9843
|
return undefined;
|
|
10242
9844
|
}
|
|
10243
9845
|
|
|
10244
|
-
var minDomain =
|
|
10245
|
-
var maxDomain =
|
|
9846
|
+
var minDomain = _domain__WEBPACK_IMPORTED_MODULE_7__.getMinFromProps(props, axis);
|
|
9847
|
+
var maxDomain = _domain__WEBPACK_IMPORTED_MODULE_7__.getMaxFromProps(props, axis);
|
|
10246
9848
|
var tickStrings = stringTicks(props);
|
|
10247
9849
|
var ticks = tickValues.map(function (value) {
|
|
10248
9850
|
return Number(value);
|
|
10249
9851
|
});
|
|
10250
|
-
var defaultMin = tickStrings ? 1 :
|
|
10251
|
-
var defaultMax = tickStrings ? tickValues.length :
|
|
9852
|
+
var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(ticks);
|
|
9853
|
+
var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(ticks);
|
|
10252
9854
|
var min = minDomain !== undefined ? minDomain : defaultMin;
|
|
10253
9855
|
var max = maxDomain !== undefined ? maxDomain : defaultMax;
|
|
10254
|
-
var initialDomain =
|
|
10255
|
-
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ?
|
|
9856
|
+
var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_7__.getDomainFromMinMax(min, max);
|
|
9857
|
+
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? _domain__WEBPACK_IMPORTED_MODULE_7__.getSymmetricDomain(initialDomain, ticks) : initialDomain;
|
|
10256
9858
|
|
|
10257
9859
|
if (isVertical(props) && !polar) {
|
|
10258
9860
|
domain.reverse();
|
|
@@ -10269,7 +9871,7 @@ function getDomain(props, axis) {
|
|
|
10269
9871
|
return undefined;
|
|
10270
9872
|
}
|
|
10271
9873
|
|
|
10272
|
-
return
|
|
9874
|
+
return _domain__WEBPACK_IMPORTED_MODULE_7__.createDomainFunction(getDomainFromData)(props, inherentAxis);
|
|
10273
9875
|
}
|
|
10274
9876
|
function getAxisValue(props, axis) {
|
|
10275
9877
|
if (!props.axisValue) {
|
|
@@ -10277,20 +9879,20 @@ function getAxisValue(props, axis) {
|
|
|
10277
9879
|
}
|
|
10278
9880
|
|
|
10279
9881
|
var scaleAxis = axis === "x" ? "y" : "x";
|
|
10280
|
-
var scale =
|
|
9882
|
+
var scale = lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(props.scale) && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(props.scale[scaleAxis]) ? props.scale[scaleAxis] : undefined;
|
|
10281
9883
|
|
|
10282
9884
|
if (!scale) {
|
|
10283
9885
|
return undefined;
|
|
10284
9886
|
}
|
|
10285
9887
|
|
|
10286
9888
|
var stringMapAxis = axis === "x" ? "y" : "x";
|
|
10287
|
-
var stringMap =
|
|
9889
|
+
var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(props.stringMap) && props.stringMap[stringMapAxis];
|
|
10288
9890
|
var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
|
|
10289
9891
|
return scale(axisValue);
|
|
10290
9892
|
}
|
|
10291
9893
|
function modifyProps(props, fallbackProps) {
|
|
10292
|
-
if (!
|
|
10293
|
-
return
|
|
9894
|
+
if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(props.theme)) {
|
|
9895
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, "axis");
|
|
10294
9896
|
}
|
|
10295
9897
|
|
|
10296
9898
|
var role = "axis";
|
|
@@ -10302,15 +9904,15 @@ function modifyProps(props, fallbackProps) {
|
|
|
10302
9904
|
}
|
|
10303
9905
|
|
|
10304
9906
|
if (role === "axis") {
|
|
10305
|
-
return
|
|
9907
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, "axis");
|
|
10306
9908
|
}
|
|
10307
9909
|
|
|
10308
|
-
var axisTheme =
|
|
9910
|
+
var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.theme[role], props.theme.axis);
|
|
10309
9911
|
|
|
10310
9912
|
var theme = Object.assign({}, props.theme, {
|
|
10311
9913
|
axis: axisTheme
|
|
10312
9914
|
});
|
|
10313
|
-
return
|
|
9915
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(Object.assign({}, props, {
|
|
10314
9916
|
theme: theme
|
|
10315
9917
|
}), fallbackProps, "axis");
|
|
10316
9918
|
}
|
|
@@ -10330,6 +9932,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10330
9932
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
10331
9933
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
10332
9934
|
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
9935
|
+
/* harmony export */ "difference": () => (/* binding */ difference),
|
|
10333
9936
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
10334
9937
|
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
10335
9938
|
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
@@ -10371,6 +9974,22 @@ function containsOnlyStrings(collection) {
|
|
|
10371
9974
|
return typeof value === "string";
|
|
10372
9975
|
});
|
|
10373
9976
|
}
|
|
9977
|
+
/**
|
|
9978
|
+
* Creates an array of array values not included in the other given arrays
|
|
9979
|
+
* @param a The array to inspect
|
|
9980
|
+
* @param b The values to exclude
|
|
9981
|
+
* @returns The new array of filtered values
|
|
9982
|
+
*/
|
|
9983
|
+
|
|
9984
|
+
function difference(a, b) {
|
|
9985
|
+
if (a && b) {
|
|
9986
|
+
return a.filter(function (value) {
|
|
9987
|
+
return !b.includes(value);
|
|
9988
|
+
});
|
|
9989
|
+
}
|
|
9990
|
+
|
|
9991
|
+
return [];
|
|
9992
|
+
}
|
|
10374
9993
|
function isArrayOfArrays(collection) {
|
|
10375
9994
|
return isNonEmptyArray(collection) && collection.every(Array.isArray);
|
|
10376
9995
|
}
|
|
@@ -11858,6 +11477,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11858
11477
|
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
11859
11478
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
11860
11479
|
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
11480
|
+
/* harmony export */ "invert": () => (/* binding */ invert),
|
|
11861
11481
|
/* harmony export */ "isFunction": () => (/* binding */ isFunction),
|
|
11862
11482
|
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
11863
11483
|
/* harmony export */ "isNil": () => (/* binding */ isNil),
|
|
@@ -11908,6 +11528,18 @@ function getPolarRange(props, axis) {
|
|
|
11908
11528
|
return [props.innerRadius || 0, getRadius(props)];
|
|
11909
11529
|
} // Exported Functions
|
|
11910
11530
|
|
|
11531
|
+
/**
|
|
11532
|
+
* Creates an object composed of the inverted keys and values of object.
|
|
11533
|
+
* If object contains duplicate values, subsequent values overwrite property assignments of previous values.
|
|
11534
|
+
*/
|
|
11535
|
+
|
|
11536
|
+
|
|
11537
|
+
function invert(original) {
|
|
11538
|
+
return Object.entries(original).reduce(function (acc, current) {
|
|
11539
|
+
acc[current[1]] = current[0];
|
|
11540
|
+
return acc;
|
|
11541
|
+
}, {});
|
|
11542
|
+
}
|
|
11911
11543
|
/**
|
|
11912
11544
|
* creates an object with some keys excluded
|
|
11913
11545
|
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
@@ -11916,7 +11548,6 @@ function getPolarRange(props, axis) {
|
|
|
11916
11548
|
* @returns {Object} new object with same properties as originalObject
|
|
11917
11549
|
*/
|
|
11918
11550
|
|
|
11919
|
-
|
|
11920
11551
|
function omit(originalObject) {
|
|
11921
11552
|
var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
11922
11553
|
// code based on babel's _objectWithoutProperties
|
|
@@ -14548,11 +14179,11 @@ function getChildStyle(child, index, calculatedProps) {
|
|
|
14548
14179
|
|
|
14549
14180
|
var labelsStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, childStyle.labels, style.labels);
|
|
14550
14181
|
|
|
14551
|
-
return {
|
|
14182
|
+
return _objectSpread(_objectSpread({}, childStyle), {}, {
|
|
14552
14183
|
parent: style.parent,
|
|
14553
14184
|
data: dataStyle,
|
|
14554
14185
|
labels: labelsStyle
|
|
14555
|
-
};
|
|
14186
|
+
});
|
|
14556
14187
|
}
|
|
14557
14188
|
function getStringsFromCategories(childComponents, axis) {
|
|
14558
14189
|
var iteratee = function (child) {
|
|
@@ -15337,24 +14968,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15337
14968
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15338
14969
|
/* harmony export */ "VictorySharedEvents": () => (/* binding */ VictorySharedEvents)
|
|
15339
14970
|
/* harmony export */ });
|
|
15340
|
-
/* harmony import */ var
|
|
15341
|
-
/* harmony import */ var
|
|
15342
|
-
/* harmony import */ var
|
|
15343
|
-
/* harmony import */ var
|
|
15344
|
-
/* harmony import */ var
|
|
15345
|
-
/* harmony import */ var
|
|
15346
|
-
/* harmony import */ var
|
|
15347
|
-
/* harmony import */ var
|
|
15348
|
-
/* harmony import */ var
|
|
15349
|
-
/* harmony import */ var
|
|
15350
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
|
|
14971
|
+
/* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/fromPairs */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/fromPairs.js");
|
|
14972
|
+
/* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__);
|
|
14973
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
|
|
14974
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
|
|
14975
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
14976
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
14977
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
14978
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
14979
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
|
|
14980
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/collection.js");
|
|
15351
14981
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
15352
14982
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
|
|
15353
|
-
/* harmony import */ var
|
|
15354
|
-
/* harmony import */ var
|
|
15355
|
-
/* harmony import */ var
|
|
15356
|
-
/* harmony import */ var
|
|
15357
|
-
|
|
14983
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
14984
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
14985
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/.pnpm/json-stringify-safe@5.0.1/node_modules/json-stringify-safe/stringify.js");
|
|
14986
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_5__);
|
|
15358
14987
|
|
|
15359
14988
|
|
|
15360
14989
|
|
|
@@ -15421,8 +15050,8 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15421
15050
|
_this.globalEvents = void 0;
|
|
15422
15051
|
_this.prevGlobalEventKeys = void 0;
|
|
15423
15052
|
_this.boundGlobalEvents = void 0;
|
|
15424
|
-
_this.getScopedEvents =
|
|
15425
|
-
_this.getEventState =
|
|
15053
|
+
_this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
15054
|
+
_this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEventState.bind(_assertThisInitialized(_this));
|
|
15426
15055
|
_this.state = _this.state || {};
|
|
15427
15056
|
_this.sharedEventsCache = {};
|
|
15428
15057
|
_this.globalEvents = {};
|
|
@@ -15435,7 +15064,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15435
15064
|
_createClass(VictorySharedEvents, [{
|
|
15436
15065
|
key: "shouldComponentUpdate",
|
|
15437
15066
|
value: function shouldComponentUpdate(nextProps) {
|
|
15438
|
-
if (!
|
|
15067
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
15439
15068
|
this.baseProps = this.getBaseProps(nextProps);
|
|
15440
15069
|
var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
|
|
15441
15070
|
this.applyExternalMutations(nextProps, externalMutations);
|
|
@@ -15460,15 +15089,11 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15460
15089
|
var _this3 = this;
|
|
15461
15090
|
|
|
15462
15091
|
var globalEventKeys = Object.keys(this.globalEvents);
|
|
15463
|
-
|
|
15464
|
-
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
15465
|
-
|
|
15092
|
+
var removedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(this.prevGlobalEventKeys, globalEventKeys);
|
|
15466
15093
|
removedGlobalEventKeys.forEach(function (key) {
|
|
15467
15094
|
return _this3.removeGlobalListener(key);
|
|
15468
15095
|
});
|
|
15469
|
-
|
|
15470
|
-
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
15471
|
-
|
|
15096
|
+
var addedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(globalEventKeys, this.prevGlobalEventKeys);
|
|
15472
15097
|
addedGlobalEventKeys.forEach(function (key) {
|
|
15473
15098
|
return _this3.addGlobalListener(key);
|
|
15474
15099
|
});
|
|
@@ -15490,22 +15115,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15490
15115
|
|
|
15491
15116
|
var boundListener = function (event) {
|
|
15492
15117
|
var listener = _this5.globalEvents[key];
|
|
15493
|
-
return listener && listener(
|
|
15118
|
+
return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_6__.emulateReactEvent(event));
|
|
15494
15119
|
};
|
|
15495
15120
|
|
|
15496
15121
|
this.boundGlobalEvents[key] = boundListener;
|
|
15497
|
-
window.addEventListener(
|
|
15122
|
+
window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), boundListener);
|
|
15498
15123
|
}
|
|
15499
15124
|
}, {
|
|
15500
15125
|
key: "removeGlobalListener",
|
|
15501
15126
|
value: function removeGlobalListener(key) {
|
|
15502
|
-
window.removeEventListener(
|
|
15127
|
+
window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
15503
15128
|
}
|
|
15504
15129
|
}, {
|
|
15505
15130
|
key: "getAllEvents",
|
|
15506
15131
|
value: function getAllEvents(props) {
|
|
15507
15132
|
var components = ["container", "groupComponent"];
|
|
15508
|
-
var componentEvents =
|
|
15133
|
+
var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getComponentEvents(props, components);
|
|
15509
15134
|
|
|
15510
15135
|
if (Array.isArray(componentEvents)) {
|
|
15511
15136
|
return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
|
|
@@ -15516,7 +15141,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15516
15141
|
}, {
|
|
15517
15142
|
key: "applyExternalMutations",
|
|
15518
15143
|
value: function applyExternalMutations(props, externalMutations) {
|
|
15519
|
-
if (!
|
|
15144
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
|
|
15520
15145
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
15521
15146
|
return victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
15522
15147
|
}, []);
|
|
@@ -15531,7 +15156,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15531
15156
|
}, {
|
|
15532
15157
|
key: "getExternalMutations",
|
|
15533
15158
|
value: function getExternalMutations(props, baseProps) {
|
|
15534
|
-
return !
|
|
15159
|
+
return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_6__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, Object.keys(baseProps)) : undefined;
|
|
15535
15160
|
}
|
|
15536
15161
|
}, {
|
|
15537
15162
|
key: "cacheSharedEvents",
|
|
@@ -15546,7 +15171,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15546
15171
|
sharedEvents = _ref2[0],
|
|
15547
15172
|
prevCacheValues = _ref2[1];
|
|
15548
15173
|
|
|
15549
|
-
if (sharedEvents &&
|
|
15174
|
+
if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(cacheValues, prevCacheValues)) {
|
|
15550
15175
|
return sharedEvents;
|
|
15551
15176
|
}
|
|
15552
15177
|
|
|
@@ -15556,7 +15181,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15556
15181
|
key: "getBaseProps",
|
|
15557
15182
|
value: function getBaseProps(props) {
|
|
15558
15183
|
var container = props.container;
|
|
15559
|
-
var children =
|
|
15184
|
+
var children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(this.props.children);
|
|
15560
15185
|
var childBaseProps = this.getBasePropsFromChildren(children);
|
|
15561
15186
|
var parentBaseProps = container ? container.props : {};
|
|
15562
15187
|
return Object.assign({}, childBaseProps, {
|
|
@@ -15577,7 +15202,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15577
15202
|
};
|
|
15578
15203
|
|
|
15579
15204
|
var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_8__.reduceChildren(childComponents, iteratee);
|
|
15580
|
-
return
|
|
15205
|
+
return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default()(baseProps);
|
|
15581
15206
|
}
|
|
15582
15207
|
}, {
|
|
15583
15208
|
key: "getNewChildren",
|
|
@@ -15590,9 +15215,9 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15590
15215
|
var alterChildren = function (children, childNames) {
|
|
15591
15216
|
return children.reduce(function (memo, child, index) {
|
|
15592
15217
|
if (child.props.children) {
|
|
15593
|
-
var newChildren =
|
|
15218
|
+
var newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children);
|
|
15594
15219
|
var names = childNames.slice(index, index + newChildren.length);
|
|
15595
|
-
var results = /*#__PURE__*/
|
|
15220
|
+
var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, child.props, alterChildren(newChildren, names));
|
|
15596
15221
|
return memo.concat(results);
|
|
15597
15222
|
} else if (childNames[index] !== "parent" && child.type && victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(child.type.getBaseProps)) {
|
|
15598
15223
|
var name = child.props.name || childNames[index];
|
|
@@ -15603,7 +15228,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15603
15228
|
|
|
15604
15229
|
return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
|
|
15605
15230
|
});
|
|
15606
|
-
var sharedEventsCacheValues = [name, baseProps, childEvents,
|
|
15231
|
+
var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default()(_this6.state[name])];
|
|
15607
15232
|
var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
|
|
15608
15233
|
events: childEvents,
|
|
15609
15234
|
// partially apply child name and baseProps,
|
|
@@ -15618,7 +15243,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15618
15243
|
|
|
15619
15244
|
_this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
|
|
15620
15245
|
|
|
15621
|
-
return memo.concat( /*#__PURE__*/
|
|
15246
|
+
return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, Object.assign({
|
|
15622
15247
|
key: "events-".concat(name),
|
|
15623
15248
|
sharedEvents: sharedEvents,
|
|
15624
15249
|
eventKey: eventKey,
|
|
@@ -15631,7 +15256,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15631
15256
|
};
|
|
15632
15257
|
|
|
15633
15258
|
var childNames = Object.keys(baseProps);
|
|
15634
|
-
var childComponents =
|
|
15259
|
+
var childComponents = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
|
|
15635
15260
|
return alterChildren(childComponents, childNames);
|
|
15636
15261
|
}
|
|
15637
15262
|
}, {
|
|
@@ -15654,22 +15279,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15654
15279
|
var container = props.container || props.groupComponent;
|
|
15655
15280
|
var role = container.type && container.type.role;
|
|
15656
15281
|
var containerProps = container.props || {};
|
|
15657
|
-
var boundGetEvents =
|
|
15282
|
+
var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEvents.bind(this);
|
|
15658
15283
|
var parentEvents = sharedEvents && boundGetEvents({
|
|
15659
15284
|
sharedEvents: sharedEvents
|
|
15660
15285
|
}, "parent");
|
|
15661
15286
|
|
|
15662
|
-
var parentProps =
|
|
15287
|
+
var parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
|
|
15663
15288
|
children: children
|
|
15664
15289
|
});
|
|
15665
15290
|
|
|
15666
|
-
var containerEvents =
|
|
15291
|
+
var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
|
|
15667
15292
|
|
|
15668
|
-
this.globalEvents =
|
|
15669
|
-
var localEvents =
|
|
15670
|
-
return role === "container" ? /*#__PURE__*/
|
|
15293
|
+
this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(containerEvents);
|
|
15294
|
+
var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(containerEvents);
|
|
15295
|
+
return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, Object.assign({}, parentProps, {
|
|
15671
15296
|
events: localEvents
|
|
15672
|
-
})) : /*#__PURE__*/
|
|
15297
|
+
})) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, localEvents, children);
|
|
15673
15298
|
}
|
|
15674
15299
|
}, {
|
|
15675
15300
|
key: "render",
|
|
@@ -15680,19 +15305,19 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
15680
15305
|
return this.getContainer(this.props, this.baseProps, events);
|
|
15681
15306
|
}
|
|
15682
15307
|
|
|
15683
|
-
return /*#__PURE__*/
|
|
15308
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(this.props.container, {
|
|
15684
15309
|
children: this.props.children
|
|
15685
15310
|
});
|
|
15686
15311
|
}
|
|
15687
15312
|
}]);
|
|
15688
15313
|
|
|
15689
15314
|
return VictorySharedEvents;
|
|
15690
|
-
}((
|
|
15315
|
+
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
15691
15316
|
VictorySharedEvents.displayName = "VictorySharedEvents";
|
|
15692
15317
|
VictorySharedEvents.role = "shared-event-wrapper";
|
|
15693
15318
|
VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
15694
15319
|
VictorySharedEvents.defaultProps = {
|
|
15695
|
-
groupComponent: /*#__PURE__*/
|
|
15320
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null)
|
|
15696
15321
|
};
|
|
15697
15322
|
|
|
15698
15323
|
/***/ }),
|