victory-stack 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 +2 -12
- package/README.md +2 -2
- package/dist/victory-stack.js +192 -508
- package/dist/victory-stack.min.js +1 -1
- package/es/helper-methods.d.ts +52 -52
- package/es/index.d.ts +1 -1
- package/es/victory-stack.d.ts +18 -18
- package/lib/helper-methods.d.ts +52 -52
- package/lib/index.d.ts +1 -1
- package/lib/victory-stack.d.ts +18 -18
- package/package.json +9 -6
package/dist/victory-stack.js
CHANGED
|
@@ -986,83 +986,6 @@ function baseAssignValue(object, key, value) {
|
|
|
986
986
|
module.exports = baseAssignValue;
|
|
987
987
|
|
|
988
988
|
|
|
989
|
-
/***/ }),
|
|
990
|
-
|
|
991
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js":
|
|
992
|
-
/*!*****************************************************************************************!*\
|
|
993
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js ***!
|
|
994
|
-
\*****************************************************************************************/
|
|
995
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
996
|
-
|
|
997
|
-
var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js"),
|
|
998
|
-
arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js"),
|
|
999
|
-
arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js"),
|
|
1000
|
-
arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
|
|
1001
|
-
baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
|
|
1002
|
-
cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js");
|
|
1003
|
-
|
|
1004
|
-
/** Used as the size to enable large array optimizations. */
|
|
1005
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
1006
|
-
|
|
1007
|
-
/**
|
|
1008
|
-
* The base implementation of methods like `_.difference` without support
|
|
1009
|
-
* for excluding multiple arrays or iteratee shorthands.
|
|
1010
|
-
*
|
|
1011
|
-
* @private
|
|
1012
|
-
* @param {Array} array The array to inspect.
|
|
1013
|
-
* @param {Array} values The values to exclude.
|
|
1014
|
-
* @param {Function} [iteratee] The iteratee invoked per element.
|
|
1015
|
-
* @param {Function} [comparator] The comparator invoked per element.
|
|
1016
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
1017
|
-
*/
|
|
1018
|
-
function baseDifference(array, values, iteratee, comparator) {
|
|
1019
|
-
var index = -1,
|
|
1020
|
-
includes = arrayIncludes,
|
|
1021
|
-
isCommon = true,
|
|
1022
|
-
length = array.length,
|
|
1023
|
-
result = [],
|
|
1024
|
-
valuesLength = values.length;
|
|
1025
|
-
|
|
1026
|
-
if (!length) {
|
|
1027
|
-
return result;
|
|
1028
|
-
}
|
|
1029
|
-
if (iteratee) {
|
|
1030
|
-
values = arrayMap(values, baseUnary(iteratee));
|
|
1031
|
-
}
|
|
1032
|
-
if (comparator) {
|
|
1033
|
-
includes = arrayIncludesWith;
|
|
1034
|
-
isCommon = false;
|
|
1035
|
-
}
|
|
1036
|
-
else if (values.length >= LARGE_ARRAY_SIZE) {
|
|
1037
|
-
includes = cacheHas;
|
|
1038
|
-
isCommon = false;
|
|
1039
|
-
values = new SetCache(values);
|
|
1040
|
-
}
|
|
1041
|
-
outer:
|
|
1042
|
-
while (++index < length) {
|
|
1043
|
-
var value = array[index],
|
|
1044
|
-
computed = iteratee == null ? value : iteratee(value);
|
|
1045
|
-
|
|
1046
|
-
value = (comparator || value !== 0) ? value : 0;
|
|
1047
|
-
if (isCommon && computed === computed) {
|
|
1048
|
-
var valuesIndex = valuesLength;
|
|
1049
|
-
while (valuesIndex--) {
|
|
1050
|
-
if (values[valuesIndex] === computed) {
|
|
1051
|
-
continue outer;
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
result.push(value);
|
|
1055
|
-
}
|
|
1056
|
-
else if (!includes(values, computed, comparator)) {
|
|
1057
|
-
result.push(value);
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
return result;
|
|
1061
|
-
}
|
|
1062
|
-
|
|
1063
|
-
module.exports = baseDifference;
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
989
|
/***/ }),
|
|
1067
990
|
|
|
1068
991
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
|
|
@@ -1111,58 +1034,6 @@ function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
|
1111
1034
|
module.exports = baseFlatten;
|
|
1112
1035
|
|
|
1113
1036
|
|
|
1114
|
-
/***/ }),
|
|
1115
|
-
|
|
1116
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js":
|
|
1117
|
-
/*!**********************************************************************************!*\
|
|
1118
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js ***!
|
|
1119
|
-
\**********************************************************************************/
|
|
1120
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1121
|
-
|
|
1122
|
-
var createBaseFor = __webpack_require__(/*! ./_createBaseFor */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js");
|
|
1123
|
-
|
|
1124
|
-
/**
|
|
1125
|
-
* The base implementation of `baseForOwn` which iterates over `object`
|
|
1126
|
-
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
1127
|
-
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
1128
|
-
*
|
|
1129
|
-
* @private
|
|
1130
|
-
* @param {Object} object The object to iterate over.
|
|
1131
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1132
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1133
|
-
* @returns {Object} Returns `object`.
|
|
1134
|
-
*/
|
|
1135
|
-
var baseFor = createBaseFor();
|
|
1136
|
-
|
|
1137
|
-
module.exports = baseFor;
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
/***/ }),
|
|
1141
|
-
|
|
1142
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js":
|
|
1143
|
-
/*!*************************************************************************************!*\
|
|
1144
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js ***!
|
|
1145
|
-
\*************************************************************************************/
|
|
1146
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1147
|
-
|
|
1148
|
-
var baseFor = __webpack_require__(/*! ./_baseFor */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFor.js"),
|
|
1149
|
-
keys = __webpack_require__(/*! ./keys */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/keys.js");
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
* The base implementation of `_.forOwn` without support for iteratee shorthands.
|
|
1153
|
-
*
|
|
1154
|
-
* @private
|
|
1155
|
-
* @param {Object} object The object to iterate over.
|
|
1156
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1157
|
-
* @returns {Object} Returns `object`.
|
|
1158
|
-
*/
|
|
1159
|
-
function baseForOwn(object, iteratee) {
|
|
1160
|
-
return object && baseFor(object, iteratee, keys);
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
module.exports = baseForOwn;
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
1037
|
/***/ }),
|
|
1167
1038
|
|
|
1168
1039
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGet.js":
|
|
@@ -1285,37 +1156,6 @@ function strictIndexOf(array, value, fromIndex) {
|
|
|
1285
1156
|
module.exports = strictIndexOf;
|
|
1286
1157
|
|
|
1287
1158
|
|
|
1288
|
-
/***/ }),
|
|
1289
|
-
|
|
1290
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseInverter.js":
|
|
1291
|
-
/*!***************************************************************************************!*\
|
|
1292
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseInverter.js ***!
|
|
1293
|
-
\***************************************************************************************/
|
|
1294
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1295
|
-
|
|
1296
|
-
var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js");
|
|
1297
|
-
|
|
1298
|
-
/**
|
|
1299
|
-
* The base implementation of `_.invert` and `_.invertBy` which inverts
|
|
1300
|
-
* `object` with values transformed by `iteratee` and set by `setter`.
|
|
1301
|
-
*
|
|
1302
|
-
* @private
|
|
1303
|
-
* @param {Object} object The object to iterate over.
|
|
1304
|
-
* @param {Function} setter The function to set `accumulator` values.
|
|
1305
|
-
* @param {Function} iteratee The iteratee to transform values.
|
|
1306
|
-
* @param {Object} accumulator The initial inverted object.
|
|
1307
|
-
* @returns {Function} Returns `accumulator`.
|
|
1308
|
-
*/
|
|
1309
|
-
function baseInverter(object, setter, iteratee, accumulator) {
|
|
1310
|
-
baseForOwn(object, function(value, key, object) {
|
|
1311
|
-
setter(accumulator, iteratee(value), key, object);
|
|
1312
|
-
});
|
|
1313
|
-
return accumulator;
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
module.exports = baseInverter;
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
1159
|
/***/ }),
|
|
1320
1160
|
|
|
1321
1161
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsDate.js":
|
|
@@ -2047,6 +1887,53 @@ function baseSortedUniq(array, iteratee) {
|
|
|
2047
1887
|
module.exports = baseSortedUniq;
|
|
2048
1888
|
|
|
2049
1889
|
|
|
1890
|
+
/***/ }),
|
|
1891
|
+
|
|
1892
|
+
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js":
|
|
1893
|
+
/*!***************************************************************************************!*\
|
|
1894
|
+
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js ***!
|
|
1895
|
+
\***************************************************************************************/
|
|
1896
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1897
|
+
|
|
1898
|
+
var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"),
|
|
1899
|
+
arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
|
|
1900
|
+
isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),
|
|
1901
|
+
isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js");
|
|
1902
|
+
|
|
1903
|
+
/** Used as references for various `Number` constants. */
|
|
1904
|
+
var INFINITY = 1 / 0;
|
|
1905
|
+
|
|
1906
|
+
/** Used to convert symbols to primitives and strings. */
|
|
1907
|
+
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
1908
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
1912
|
+
* values to empty strings.
|
|
1913
|
+
*
|
|
1914
|
+
* @private
|
|
1915
|
+
* @param {*} value The value to process.
|
|
1916
|
+
* @returns {string} Returns the string.
|
|
1917
|
+
*/
|
|
1918
|
+
function baseToString(value) {
|
|
1919
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
1920
|
+
if (typeof value == 'string') {
|
|
1921
|
+
return value;
|
|
1922
|
+
}
|
|
1923
|
+
if (isArray(value)) {
|
|
1924
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
1925
|
+
return arrayMap(value, baseToString) + '';
|
|
1926
|
+
}
|
|
1927
|
+
if (isSymbol(value)) {
|
|
1928
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
1929
|
+
}
|
|
1930
|
+
var result = (value + '');
|
|
1931
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
module.exports = baseToString;
|
|
1935
|
+
|
|
1936
|
+
|
|
2050
1937
|
/***/ }),
|
|
2051
1938
|
|
|
2052
1939
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js":
|
|
@@ -2349,68 +2236,6 @@ function createAggregator(setter, initializer) {
|
|
|
2349
2236
|
module.exports = createAggregator;
|
|
2350
2237
|
|
|
2351
2238
|
|
|
2352
|
-
/***/ }),
|
|
2353
|
-
|
|
2354
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js":
|
|
2355
|
-
/*!****************************************************************************************!*\
|
|
2356
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createBaseFor.js ***!
|
|
2357
|
-
\****************************************************************************************/
|
|
2358
|
-
/***/ ((module) => {
|
|
2359
|
-
|
|
2360
|
-
/**
|
|
2361
|
-
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
2362
|
-
*
|
|
2363
|
-
* @private
|
|
2364
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
2365
|
-
* @returns {Function} Returns the new base function.
|
|
2366
|
-
*/
|
|
2367
|
-
function createBaseFor(fromRight) {
|
|
2368
|
-
return function(object, iteratee, keysFunc) {
|
|
2369
|
-
var index = -1,
|
|
2370
|
-
iterable = Object(object),
|
|
2371
|
-
props = keysFunc(object),
|
|
2372
|
-
length = props.length;
|
|
2373
|
-
|
|
2374
|
-
while (length--) {
|
|
2375
|
-
var key = props[fromRight ? length : ++index];
|
|
2376
|
-
if (iteratee(iterable[key], key, iterable) === false) {
|
|
2377
|
-
break;
|
|
2378
|
-
}
|
|
2379
|
-
}
|
|
2380
|
-
return object;
|
|
2381
|
-
};
|
|
2382
|
-
}
|
|
2383
|
-
|
|
2384
|
-
module.exports = createBaseFor;
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
/***/ }),
|
|
2388
|
-
|
|
2389
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js":
|
|
2390
|
-
/*!*****************************************************************************************!*\
|
|
2391
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js ***!
|
|
2392
|
-
\*****************************************************************************************/
|
|
2393
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2394
|
-
|
|
2395
|
-
var baseInverter = __webpack_require__(/*! ./_baseInverter */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseInverter.js");
|
|
2396
|
-
|
|
2397
|
-
/**
|
|
2398
|
-
* Creates a function like `_.invertBy`.
|
|
2399
|
-
*
|
|
2400
|
-
* @private
|
|
2401
|
-
* @param {Function} setter The function to set accumulator values.
|
|
2402
|
-
* @param {Function} toIteratee The function to resolve iteratees.
|
|
2403
|
-
* @returns {Function} Returns the new inverter function.
|
|
2404
|
-
*/
|
|
2405
|
-
function createInverter(setter, toIteratee) {
|
|
2406
|
-
return function(object, iteratee) {
|
|
2407
|
-
return baseInverter(object, setter, toIteratee(iteratee), {});
|
|
2408
|
-
};
|
|
2409
|
-
}
|
|
2410
|
-
|
|
2411
|
-
module.exports = createInverter;
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
2239
|
/***/ }),
|
|
2415
2240
|
|
|
2416
2241
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createSet.js":
|
|
@@ -3608,42 +3433,6 @@ function identity(value) {
|
|
|
3608
3433
|
module.exports = identity;
|
|
3609
3434
|
|
|
3610
3435
|
|
|
3611
|
-
/***/ }),
|
|
3612
|
-
|
|
3613
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js":
|
|
3614
|
-
/*!**********************************************************************************!*\
|
|
3615
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js ***!
|
|
3616
|
-
\**********************************************************************************/
|
|
3617
|
-
/***/ ((module) => {
|
|
3618
|
-
|
|
3619
|
-
/**
|
|
3620
|
-
* Creates a function that returns `value`.
|
|
3621
|
-
*
|
|
3622
|
-
* @static
|
|
3623
|
-
* @memberOf _
|
|
3624
|
-
* @since 2.4.0
|
|
3625
|
-
* @category Util
|
|
3626
|
-
* @param {*} value The value to return from the new function.
|
|
3627
|
-
* @returns {Function} Returns the new constant function.
|
|
3628
|
-
* @example
|
|
3629
|
-
*
|
|
3630
|
-
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
3631
|
-
*
|
|
3632
|
-
* console.log(objects);
|
|
3633
|
-
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
3634
|
-
*
|
|
3635
|
-
* console.log(objects[0] === objects[1]);
|
|
3636
|
-
* // => true
|
|
3637
|
-
*/
|
|
3638
|
-
function constant(value) {
|
|
3639
|
-
return function() {
|
|
3640
|
-
return value;
|
|
3641
|
-
};
|
|
3642
|
-
}
|
|
3643
|
-
|
|
3644
|
-
module.exports = constant;
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
3436
|
/***/ }),
|
|
3648
3437
|
|
|
3649
3438
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js":
|
|
@@ -3718,49 +3507,6 @@ var defaults = baseRest(function(object, sources) {
|
|
|
3718
3507
|
module.exports = defaults;
|
|
3719
3508
|
|
|
3720
3509
|
|
|
3721
|
-
/***/ }),
|
|
3722
|
-
|
|
3723
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js":
|
|
3724
|
-
/*!************************************************************************************!*\
|
|
3725
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js ***!
|
|
3726
|
-
\************************************************************************************/
|
|
3727
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
3728
|
-
|
|
3729
|
-
var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js"),
|
|
3730
|
-
baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js"),
|
|
3731
|
-
baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
|
|
3732
|
-
isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
|
|
3733
|
-
|
|
3734
|
-
/**
|
|
3735
|
-
* Creates an array of `array` values not included in the other given arrays
|
|
3736
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
3737
|
-
* for equality comparisons. The order and references of result values are
|
|
3738
|
-
* determined by the first array.
|
|
3739
|
-
*
|
|
3740
|
-
* **Note:** Unlike `_.pullAll`, this method returns a new array.
|
|
3741
|
-
*
|
|
3742
|
-
* @static
|
|
3743
|
-
* @memberOf _
|
|
3744
|
-
* @since 0.1.0
|
|
3745
|
-
* @category Array
|
|
3746
|
-
* @param {Array} array The array to inspect.
|
|
3747
|
-
* @param {...Array} [values] The values to exclude.
|
|
3748
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
3749
|
-
* @see _.without, _.xor
|
|
3750
|
-
* @example
|
|
3751
|
-
*
|
|
3752
|
-
* _.difference([2, 1], [2, 3]);
|
|
3753
|
-
* // => [1]
|
|
3754
|
-
*/
|
|
3755
|
-
var difference = baseRest(function(array, values) {
|
|
3756
|
-
return isArrayLikeObject(array)
|
|
3757
|
-
? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
|
|
3758
|
-
: [];
|
|
3759
|
-
});
|
|
3760
|
-
|
|
3761
|
-
module.exports = difference;
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
3510
|
/***/ }),
|
|
3765
3511
|
|
|
3766
3512
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js":
|
|
@@ -4047,58 +3793,6 @@ function identity(value) {
|
|
|
4047
3793
|
module.exports = identity;
|
|
4048
3794
|
|
|
4049
3795
|
|
|
4050
|
-
/***/ }),
|
|
4051
|
-
|
|
4052
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/invert.js":
|
|
4053
|
-
/*!********************************************************************************!*\
|
|
4054
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/invert.js ***!
|
|
4055
|
-
\********************************************************************************/
|
|
4056
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4057
|
-
|
|
4058
|
-
var constant = __webpack_require__(/*! ./constant */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"),
|
|
4059
|
-
createInverter = __webpack_require__(/*! ./_createInverter */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js"),
|
|
4060
|
-
identity = __webpack_require__(/*! ./identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
|
|
4061
|
-
|
|
4062
|
-
/** Used for built-in method references. */
|
|
4063
|
-
var objectProto = Object.prototype;
|
|
4064
|
-
|
|
4065
|
-
/**
|
|
4066
|
-
* Used to resolve the
|
|
4067
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
4068
|
-
* of values.
|
|
4069
|
-
*/
|
|
4070
|
-
var nativeObjectToString = objectProto.toString;
|
|
4071
|
-
|
|
4072
|
-
/**
|
|
4073
|
-
* Creates an object composed of the inverted keys and values of `object`.
|
|
4074
|
-
* If `object` contains duplicate values, subsequent values overwrite
|
|
4075
|
-
* property assignments of previous values.
|
|
4076
|
-
*
|
|
4077
|
-
* @static
|
|
4078
|
-
* @memberOf _
|
|
4079
|
-
* @since 0.7.0
|
|
4080
|
-
* @category Object
|
|
4081
|
-
* @param {Object} object The object to invert.
|
|
4082
|
-
* @returns {Object} Returns the new inverted object.
|
|
4083
|
-
* @example
|
|
4084
|
-
*
|
|
4085
|
-
* var object = { 'a': 1, 'b': 2, 'c': 1 };
|
|
4086
|
-
*
|
|
4087
|
-
* _.invert(object);
|
|
4088
|
-
* // => { '1': 'c', '2': 'b' }
|
|
4089
|
-
*/
|
|
4090
|
-
var invert = createInverter(function(result, value, key) {
|
|
4091
|
-
if (value != null &&
|
|
4092
|
-
typeof value.toString != 'function') {
|
|
4093
|
-
value = nativeObjectToString.call(value);
|
|
4094
|
-
}
|
|
4095
|
-
|
|
4096
|
-
result[value] = key;
|
|
4097
|
-
}, constant(identity));
|
|
4098
|
-
|
|
4099
|
-
module.exports = invert;
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
3796
|
/***/ }),
|
|
4103
3797
|
|
|
4104
3798
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js":
|
|
@@ -4206,49 +3900,6 @@ function isArrayLike(value) {
|
|
|
4206
3900
|
module.exports = isArrayLike;
|
|
4207
3901
|
|
|
4208
3902
|
|
|
4209
|
-
/***/ }),
|
|
4210
|
-
|
|
4211
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js":
|
|
4212
|
-
/*!*******************************************************************************************!*\
|
|
4213
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js ***!
|
|
4214
|
-
\*******************************************************************************************/
|
|
4215
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4216
|
-
|
|
4217
|
-
var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
|
|
4218
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
|
|
4219
|
-
|
|
4220
|
-
/**
|
|
4221
|
-
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
4222
|
-
* is an object.
|
|
4223
|
-
*
|
|
4224
|
-
* @static
|
|
4225
|
-
* @memberOf _
|
|
4226
|
-
* @since 4.0.0
|
|
4227
|
-
* @category Lang
|
|
4228
|
-
* @param {*} value The value to check.
|
|
4229
|
-
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
4230
|
-
* else `false`.
|
|
4231
|
-
* @example
|
|
4232
|
-
*
|
|
4233
|
-
* _.isArrayLikeObject([1, 2, 3]);
|
|
4234
|
-
* // => true
|
|
4235
|
-
*
|
|
4236
|
-
* _.isArrayLikeObject(document.body.children);
|
|
4237
|
-
* // => true
|
|
4238
|
-
*
|
|
4239
|
-
* _.isArrayLikeObject('abc');
|
|
4240
|
-
* // => false
|
|
4241
|
-
*
|
|
4242
|
-
* _.isArrayLikeObject(_.noop);
|
|
4243
|
-
* // => false
|
|
4244
|
-
*/
|
|
4245
|
-
function isArrayLikeObject(value) {
|
|
4246
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
4247
|
-
}
|
|
4248
|
-
|
|
4249
|
-
module.exports = isArrayLikeObject;
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
3903
|
/***/ }),
|
|
4253
3904
|
|
|
4254
3905
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js":
|
|
@@ -5134,29 +4785,36 @@ module.exports = sortedUniq;
|
|
|
5134
4785
|
/*!**********************************************************************************!*\
|
|
5135
4786
|
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toString.js ***!
|
|
5136
4787
|
\**********************************************************************************/
|
|
5137
|
-
/***/ ((module) => {
|
|
4788
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4789
|
+
|
|
4790
|
+
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToString.js");
|
|
5138
4791
|
|
|
5139
4792
|
/**
|
|
5140
|
-
*
|
|
4793
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
4794
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
5141
4795
|
*
|
|
5142
4796
|
* @static
|
|
5143
|
-
* @since 0.1.0
|
|
5144
4797
|
* @memberOf _
|
|
5145
|
-
* @
|
|
5146
|
-
* @
|
|
5147
|
-
* @
|
|
4798
|
+
* @since 4.0.0
|
|
4799
|
+
* @category Lang
|
|
4800
|
+
* @param {*} value The value to convert.
|
|
4801
|
+
* @returns {string} Returns the converted string.
|
|
5148
4802
|
* @example
|
|
5149
4803
|
*
|
|
5150
|
-
*
|
|
4804
|
+
* _.toString(null);
|
|
4805
|
+
* // => ''
|
|
5151
4806
|
*
|
|
5152
|
-
*
|
|
5153
|
-
* // =>
|
|
4807
|
+
* _.toString(-0);
|
|
4808
|
+
* // => '-0'
|
|
4809
|
+
*
|
|
4810
|
+
* _.toString([1, 2, 3]);
|
|
4811
|
+
* // => '1,2,3'
|
|
5154
4812
|
*/
|
|
5155
|
-
function
|
|
5156
|
-
return value;
|
|
4813
|
+
function toString(value) {
|
|
4814
|
+
return value == null ? '' : baseToString(value);
|
|
5157
4815
|
}
|
|
5158
4816
|
|
|
5159
|
-
module.exports =
|
|
4817
|
+
module.exports = toString;
|
|
5160
4818
|
|
|
5161
4819
|
|
|
5162
4820
|
/***/ }),
|
|
@@ -6420,21 +6078,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6420
6078
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
|
|
6421
6079
|
/* 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");
|
|
6422
6080
|
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_1__);
|
|
6423
|
-
/* harmony import */ var
|
|
6424
|
-
/* harmony import */ var
|
|
6425
|
-
/* harmony import */ var
|
|
6426
|
-
/* harmony import */ var
|
|
6427
|
-
/* harmony import */ var
|
|
6428
|
-
/* harmony import */ var
|
|
6429
|
-
/* harmony import */ var
|
|
6430
|
-
/* harmony import */ var
|
|
6431
|
-
/* harmony import */ var
|
|
6432
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
|
6433
|
-
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
6434
|
-
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
|
|
6435
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
6436
|
-
|
|
6437
|
-
|
|
6081
|
+
/* 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");
|
|
6082
|
+
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_2__);
|
|
6083
|
+
/* 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");
|
|
6084
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
|
|
6085
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
6086
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
6087
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
6088
|
+
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
|
|
6089
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
6438
6090
|
|
|
6439
6091
|
|
|
6440
6092
|
|
|
@@ -6457,12 +6109,22 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
6457
6109
|
|
|
6458
6110
|
|
|
6459
6111
|
|
|
6112
|
+
/**
|
|
6113
|
+
* Returns the first argument it receives
|
|
6114
|
+
* @param value The value to return
|
|
6115
|
+
* @returns The value given
|
|
6116
|
+
*/
|
|
6117
|
+
function identity(value) {
|
|
6118
|
+
return value;
|
|
6119
|
+
}
|
|
6460
6120
|
/**
|
|
6461
6121
|
* Returns the axis (x or y) of a particular axis component
|
|
6462
6122
|
* @param {Object} props: the props object.
|
|
6463
6123
|
* @param {Boolean} horizontal: true for horizontal charts
|
|
6464
6124
|
* @returns {String} the dimension appropriate for the axis given its props
|
|
6465
6125
|
*/
|
|
6126
|
+
|
|
6127
|
+
|
|
6466
6128
|
function getAxis(props) {
|
|
6467
6129
|
var dependentAxis = props.dependentAxis;
|
|
6468
6130
|
return dependentAxis ? "y" : "x";
|
|
@@ -6475,14 +6137,14 @@ function getAxis(props) {
|
|
|
6475
6137
|
*/
|
|
6476
6138
|
|
|
6477
6139
|
function findAxisComponents(childComponents, predicate) {
|
|
6478
|
-
var predicateFunction = predicate ||
|
|
6140
|
+
var predicateFunction = predicate || identity;
|
|
6479
6141
|
|
|
6480
6142
|
var findAxes = function (children) {
|
|
6481
6143
|
return children.reduce(function (memo, child) {
|
|
6482
6144
|
if (child.type && child.type.role === "axis" && predicateFunction(child)) {
|
|
6483
6145
|
return memo.concat(child);
|
|
6484
6146
|
} else if (child.props && child.props.children) {
|
|
6485
|
-
return memo.concat(findAxes(
|
|
6147
|
+
return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children)));
|
|
6486
6148
|
}
|
|
6487
6149
|
|
|
6488
6150
|
return memo;
|
|
@@ -6524,7 +6186,7 @@ function getAxisComponentsWithParent(childComponents, type) {
|
|
|
6524
6186
|
if (child.type && child.type.role === "axis" && matchesType(child)) {
|
|
6525
6187
|
return memo.concat(child);
|
|
6526
6188
|
} else if (child.props && child.props.children) {
|
|
6527
|
-
var childAxis = findComponents(
|
|
6189
|
+
var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children));
|
|
6528
6190
|
return childAxis.length > 0 ? memo.concat(child) : memo;
|
|
6529
6191
|
}
|
|
6530
6192
|
|
|
@@ -6542,8 +6204,8 @@ function getOrigin(domain) {
|
|
|
6542
6204
|
};
|
|
6543
6205
|
|
|
6544
6206
|
return {
|
|
6545
|
-
x:
|
|
6546
|
-
y:
|
|
6207
|
+
x: _collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
|
|
6208
|
+
y: _collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
|
|
6547
6209
|
};
|
|
6548
6210
|
}
|
|
6549
6211
|
function getOriginSign(origin, domain) {
|
|
@@ -6551,7 +6213,7 @@ function getOriginSign(origin, domain) {
|
|
|
6551
6213
|
return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
|
|
6552
6214
|
};
|
|
6553
6215
|
|
|
6554
|
-
return
|
|
6216
|
+
return _collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(domain) ? "positive" : getSign();
|
|
6555
6217
|
}
|
|
6556
6218
|
/**
|
|
6557
6219
|
* @param {Object} props: axis component props
|
|
@@ -6574,14 +6236,14 @@ function isVertical(props) {
|
|
|
6574
6236
|
*/
|
|
6575
6237
|
|
|
6576
6238
|
function stringTicks(props) {
|
|
6577
|
-
return props.tickValues !== undefined &&
|
|
6239
|
+
return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(props.tickValues);
|
|
6578
6240
|
}
|
|
6579
6241
|
|
|
6580
6242
|
function getDefaultTickFormat(props) {
|
|
6581
6243
|
var tickValues = props.tickValues;
|
|
6582
6244
|
var axis = getAxis(props);
|
|
6583
6245
|
var stringMap = props.stringMap && props.stringMap[axis];
|
|
6584
|
-
var fallbackFormat = tickValues && !
|
|
6246
|
+
var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(tickValues) ? function (x) {
|
|
6585
6247
|
return x;
|
|
6586
6248
|
} : undefined;
|
|
6587
6249
|
|
|
@@ -6591,7 +6253,7 @@ function getDefaultTickFormat(props) {
|
|
|
6591
6253
|
} : fallbackFormat;
|
|
6592
6254
|
}
|
|
6593
6255
|
|
|
6594
|
-
var invertedStringMap = stringMap &&
|
|
6256
|
+
var invertedStringMap = stringMap && _helpers__WEBPACK_IMPORTED_MODULE_6__.invert(stringMap);
|
|
6595
6257
|
|
|
6596
6258
|
var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(Object.values(stringMap), function (n) {
|
|
6597
6259
|
return n;
|
|
@@ -6611,7 +6273,7 @@ function getStringTicks(props) {
|
|
|
6611
6273
|
var axis = getAxis(props);
|
|
6612
6274
|
var stringMap = props.stringMap && props.stringMap[axis];
|
|
6613
6275
|
var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
|
|
6614
|
-
var ticksFromCategories = categories &&
|
|
6276
|
+
var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_5__.containsOnlyStrings(categories) ? categories.map(function (tick) {
|
|
6615
6277
|
return stringMap[tick];
|
|
6616
6278
|
}) : undefined;
|
|
6617
6279
|
var ticksFromStringMap = stringMap && Object.values(stringMap);
|
|
@@ -6634,7 +6296,7 @@ function getTickArray(props) {
|
|
|
6634
6296
|
return undefined;
|
|
6635
6297
|
}
|
|
6636
6298
|
|
|
6637
|
-
return
|
|
6299
|
+
return _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
|
|
6638
6300
|
return i;
|
|
6639
6301
|
}) : tickFormat;
|
|
6640
6302
|
};
|
|
@@ -6645,10 +6307,10 @@ function getTickArray(props) {
|
|
|
6645
6307
|
ticks = getStringTicks(props);
|
|
6646
6308
|
}
|
|
6647
6309
|
|
|
6648
|
-
if (tickValues &&
|
|
6310
|
+
if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(tickValues)) {
|
|
6649
6311
|
ticks = stringMap ? tickValues.map(function (tick) {
|
|
6650
6312
|
return stringMap[tick];
|
|
6651
|
-
}) :
|
|
6313
|
+
}) : _helpers__WEBPACK_IMPORTED_MODULE_6__.range(1, tickValues.length + 1);
|
|
6652
6314
|
}
|
|
6653
6315
|
|
|
6654
6316
|
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default()(ticks) : getTicksFromFormat();
|
|
@@ -6660,7 +6322,7 @@ function getTickArray(props) {
|
|
|
6660
6322
|
if (arr) {
|
|
6661
6323
|
arr.forEach(function (t, index) {
|
|
6662
6324
|
if (Array.isArray(domain)) {
|
|
6663
|
-
if (t >=
|
|
6325
|
+
if (t >= _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(domain)) {
|
|
6664
6326
|
newTickArray.push({
|
|
6665
6327
|
value: t,
|
|
6666
6328
|
index: index
|
|
@@ -6692,7 +6354,7 @@ function getTickFormat(props, scale) {
|
|
|
6692
6354
|
// by default. This changed the default formatting for some scale types when
|
|
6693
6355
|
// we upgraded to d3-scale@4..
|
|
6694
6356
|
|
|
6695
|
-
var scaleTickFormat = scale.tickFormat &&
|
|
6357
|
+
var scaleTickFormat = scale.tickFormat && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(scale.tickFormat) ? scale.tickFormat() : function (x) {
|
|
6696
6358
|
return x;
|
|
6697
6359
|
};
|
|
6698
6360
|
return defaultTickFormat || scaleTickFormat;
|
|
@@ -6707,10 +6369,9 @@ function getTickFormat(props, scale) {
|
|
|
6707
6369
|
return function (x, index) {
|
|
6708
6370
|
return filteredTickFormat[index];
|
|
6709
6371
|
};
|
|
6710
|
-
} else if (tickFormat &&
|
|
6372
|
+
} else if (tickFormat && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(tickFormat)) {
|
|
6711
6373
|
var applyStringTicks = function (tick, index, ticks) {
|
|
6712
|
-
var invertedStringMap =
|
|
6713
|
-
|
|
6374
|
+
var invertedStringMap = _helpers__WEBPACK_IMPORTED_MODULE_6__.invert(stringMap);
|
|
6714
6375
|
var stringTickArray = ticks.map(function (t) {
|
|
6715
6376
|
return invertedStringMap[t];
|
|
6716
6377
|
});
|
|
@@ -6751,7 +6412,7 @@ function getTicks(props, scale) {
|
|
|
6751
6412
|
|
|
6752
6413
|
if (tickValues) {
|
|
6753
6414
|
return downsampleTicks(tickValues, tickCount);
|
|
6754
|
-
} else if (scale.ticks &&
|
|
6415
|
+
} else if (scale.ticks && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(scale.ticks)) {
|
|
6755
6416
|
// eslint-disable-next-line no-magic-numbers
|
|
6756
6417
|
var defaultTickCount = tickCount || 5;
|
|
6757
6418
|
var scaleTicks = scale.ticks(defaultTickCount);
|
|
@@ -6793,18 +6454,18 @@ function getDomainFromData(props, axis) {
|
|
|
6793
6454
|
return undefined;
|
|
6794
6455
|
}
|
|
6795
6456
|
|
|
6796
|
-
var minDomain =
|
|
6797
|
-
var maxDomain =
|
|
6457
|
+
var minDomain = _domain__WEBPACK_IMPORTED_MODULE_7__.getMinFromProps(props, axis);
|
|
6458
|
+
var maxDomain = _domain__WEBPACK_IMPORTED_MODULE_7__.getMaxFromProps(props, axis);
|
|
6798
6459
|
var tickStrings = stringTicks(props);
|
|
6799
6460
|
var ticks = tickValues.map(function (value) {
|
|
6800
6461
|
return Number(value);
|
|
6801
6462
|
});
|
|
6802
|
-
var defaultMin = tickStrings ? 1 :
|
|
6803
|
-
var defaultMax = tickStrings ? tickValues.length :
|
|
6463
|
+
var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(ticks);
|
|
6464
|
+
var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(ticks);
|
|
6804
6465
|
var min = minDomain !== undefined ? minDomain : defaultMin;
|
|
6805
6466
|
var max = maxDomain !== undefined ? maxDomain : defaultMax;
|
|
6806
|
-
var initialDomain =
|
|
6807
|
-
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ?
|
|
6467
|
+
var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_7__.getDomainFromMinMax(min, max);
|
|
6468
|
+
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? _domain__WEBPACK_IMPORTED_MODULE_7__.getSymmetricDomain(initialDomain, ticks) : initialDomain;
|
|
6808
6469
|
|
|
6809
6470
|
if (isVertical(props) && !polar) {
|
|
6810
6471
|
domain.reverse();
|
|
@@ -6821,7 +6482,7 @@ function getDomain(props, axis) {
|
|
|
6821
6482
|
return undefined;
|
|
6822
6483
|
}
|
|
6823
6484
|
|
|
6824
|
-
return
|
|
6485
|
+
return _domain__WEBPACK_IMPORTED_MODULE_7__.createDomainFunction(getDomainFromData)(props, inherentAxis);
|
|
6825
6486
|
}
|
|
6826
6487
|
function getAxisValue(props, axis) {
|
|
6827
6488
|
if (!props.axisValue) {
|
|
@@ -6829,20 +6490,20 @@ function getAxisValue(props, axis) {
|
|
|
6829
6490
|
}
|
|
6830
6491
|
|
|
6831
6492
|
var scaleAxis = axis === "x" ? "y" : "x";
|
|
6832
|
-
var scale =
|
|
6493
|
+
var scale = lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(props.scale) && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(props.scale[scaleAxis]) ? props.scale[scaleAxis] : undefined;
|
|
6833
6494
|
|
|
6834
6495
|
if (!scale) {
|
|
6835
6496
|
return undefined;
|
|
6836
6497
|
}
|
|
6837
6498
|
|
|
6838
6499
|
var stringMapAxis = axis === "x" ? "y" : "x";
|
|
6839
|
-
var stringMap =
|
|
6500
|
+
var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(props.stringMap) && props.stringMap[stringMapAxis];
|
|
6840
6501
|
var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
|
|
6841
6502
|
return scale(axisValue);
|
|
6842
6503
|
}
|
|
6843
6504
|
function modifyProps(props, fallbackProps) {
|
|
6844
|
-
if (!
|
|
6845
|
-
return
|
|
6505
|
+
if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(props.theme)) {
|
|
6506
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, "axis");
|
|
6846
6507
|
}
|
|
6847
6508
|
|
|
6848
6509
|
var role = "axis";
|
|
@@ -6854,15 +6515,15 @@ function modifyProps(props, fallbackProps) {
|
|
|
6854
6515
|
}
|
|
6855
6516
|
|
|
6856
6517
|
if (role === "axis") {
|
|
6857
|
-
return
|
|
6518
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, "axis");
|
|
6858
6519
|
}
|
|
6859
6520
|
|
|
6860
|
-
var axisTheme =
|
|
6521
|
+
var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.theme[role], props.theme.axis);
|
|
6861
6522
|
|
|
6862
6523
|
var theme = Object.assign({}, props.theme, {
|
|
6863
6524
|
axis: axisTheme
|
|
6864
6525
|
});
|
|
6865
|
-
return
|
|
6526
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(Object.assign({}, props, {
|
|
6866
6527
|
theme: theme
|
|
6867
6528
|
}), fallbackProps, "axis");
|
|
6868
6529
|
}
|
|
@@ -6882,6 +6543,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6882
6543
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
6883
6544
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
6884
6545
|
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
6546
|
+
/* harmony export */ "difference": () => (/* binding */ difference),
|
|
6885
6547
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
6886
6548
|
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
6887
6549
|
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
@@ -6923,6 +6585,22 @@ function containsOnlyStrings(collection) {
|
|
|
6923
6585
|
return typeof value === "string";
|
|
6924
6586
|
});
|
|
6925
6587
|
}
|
|
6588
|
+
/**
|
|
6589
|
+
* Creates an array of array values not included in the other given arrays
|
|
6590
|
+
* @param a The array to inspect
|
|
6591
|
+
* @param b The values to exclude
|
|
6592
|
+
* @returns The new array of filtered values
|
|
6593
|
+
*/
|
|
6594
|
+
|
|
6595
|
+
function difference(a, b) {
|
|
6596
|
+
if (a && b) {
|
|
6597
|
+
return a.filter(function (value) {
|
|
6598
|
+
return !b.includes(value);
|
|
6599
|
+
});
|
|
6600
|
+
}
|
|
6601
|
+
|
|
6602
|
+
return [];
|
|
6603
|
+
}
|
|
6926
6604
|
function isArrayOfArrays(collection) {
|
|
6927
6605
|
return isNonEmptyArray(collection) && collection.every(Array.isArray);
|
|
6928
6606
|
}
|
|
@@ -8410,6 +8088,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8410
8088
|
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
8411
8089
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
8412
8090
|
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
8091
|
+
/* harmony export */ "invert": () => (/* binding */ invert),
|
|
8413
8092
|
/* harmony export */ "isFunction": () => (/* binding */ isFunction),
|
|
8414
8093
|
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
8415
8094
|
/* harmony export */ "isNil": () => (/* binding */ isNil),
|
|
@@ -8460,6 +8139,18 @@ function getPolarRange(props, axis) {
|
|
|
8460
8139
|
return [props.innerRadius || 0, getRadius(props)];
|
|
8461
8140
|
} // Exported Functions
|
|
8462
8141
|
|
|
8142
|
+
/**
|
|
8143
|
+
* Creates an object composed of the inverted keys and values of object.
|
|
8144
|
+
* If object contains duplicate values, subsequent values overwrite property assignments of previous values.
|
|
8145
|
+
*/
|
|
8146
|
+
|
|
8147
|
+
|
|
8148
|
+
function invert(original) {
|
|
8149
|
+
return Object.entries(original).reduce(function (acc, current) {
|
|
8150
|
+
acc[current[1]] = current[0];
|
|
8151
|
+
return acc;
|
|
8152
|
+
}, {});
|
|
8153
|
+
}
|
|
8463
8154
|
/**
|
|
8464
8155
|
* creates an object with some keys excluded
|
|
8465
8156
|
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
@@ -8468,7 +8159,6 @@ function getPolarRange(props, axis) {
|
|
|
8468
8159
|
* @returns {Object} new object with same properties as originalObject
|
|
8469
8160
|
*/
|
|
8470
8161
|
|
|
8471
|
-
|
|
8472
8162
|
function omit(originalObject) {
|
|
8473
8163
|
var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
8474
8164
|
// code based on babel's _objectWithoutProperties
|
|
@@ -10442,11 +10132,11 @@ function getChildStyle(child, index, calculatedProps) {
|
|
|
10442
10132
|
|
|
10443
10133
|
var labelsStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, childStyle.labels, style.labels);
|
|
10444
10134
|
|
|
10445
|
-
return {
|
|
10135
|
+
return _objectSpread(_objectSpread({}, childStyle), {}, {
|
|
10446
10136
|
parent: style.parent,
|
|
10447
10137
|
data: dataStyle,
|
|
10448
10138
|
labels: labelsStyle
|
|
10449
|
-
};
|
|
10139
|
+
});
|
|
10450
10140
|
}
|
|
10451
10141
|
function getStringsFromCategories(childComponents, axis) {
|
|
10452
10142
|
var iteratee = function (child) {
|
|
@@ -10549,24 +10239,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10549
10239
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10550
10240
|
/* harmony export */ "VictorySharedEvents": () => (/* binding */ VictorySharedEvents)
|
|
10551
10241
|
/* harmony export */ });
|
|
10552
|
-
/* harmony import */ var
|
|
10553
|
-
/* harmony import */ var
|
|
10554
|
-
/* harmony import */ var
|
|
10555
|
-
/* harmony import */ var
|
|
10556
|
-
/* harmony import */ var
|
|
10557
|
-
/* harmony import */ var
|
|
10558
|
-
/* harmony import */ var
|
|
10559
|
-
/* harmony import */ var
|
|
10560
|
-
/* harmony import */ var
|
|
10561
|
-
/* harmony import */ var
|
|
10562
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
|
|
10242
|
+
/* 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");
|
|
10243
|
+
/* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__);
|
|
10244
|
+
/* 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");
|
|
10245
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
|
|
10246
|
+
/* 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");
|
|
10247
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
10248
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
10249
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
10250
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
|
|
10251
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/collection.js");
|
|
10563
10252
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
10564
10253
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
|
|
10565
|
-
/* harmony import */ var
|
|
10566
|
-
/* harmony import */ var
|
|
10567
|
-
/* harmony import */ var
|
|
10568
|
-
/* harmony import */ var
|
|
10569
|
-
|
|
10254
|
+
/* 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");
|
|
10255
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
10256
|
+
/* 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");
|
|
10257
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_5__);
|
|
10570
10258
|
|
|
10571
10259
|
|
|
10572
10260
|
|
|
@@ -10633,8 +10321,8 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10633
10321
|
_this.globalEvents = void 0;
|
|
10634
10322
|
_this.prevGlobalEventKeys = void 0;
|
|
10635
10323
|
_this.boundGlobalEvents = void 0;
|
|
10636
|
-
_this.getScopedEvents =
|
|
10637
|
-
_this.getEventState =
|
|
10324
|
+
_this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10325
|
+
_this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEventState.bind(_assertThisInitialized(_this));
|
|
10638
10326
|
_this.state = _this.state || {};
|
|
10639
10327
|
_this.sharedEventsCache = {};
|
|
10640
10328
|
_this.globalEvents = {};
|
|
@@ -10647,7 +10335,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10647
10335
|
_createClass(VictorySharedEvents, [{
|
|
10648
10336
|
key: "shouldComponentUpdate",
|
|
10649
10337
|
value: function shouldComponentUpdate(nextProps) {
|
|
10650
|
-
if (!
|
|
10338
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
10651
10339
|
this.baseProps = this.getBaseProps(nextProps);
|
|
10652
10340
|
var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
|
|
10653
10341
|
this.applyExternalMutations(nextProps, externalMutations);
|
|
@@ -10672,15 +10360,11 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10672
10360
|
var _this3 = this;
|
|
10673
10361
|
|
|
10674
10362
|
var globalEventKeys = Object.keys(this.globalEvents);
|
|
10675
|
-
|
|
10676
|
-
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
10677
|
-
|
|
10363
|
+
var removedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(this.prevGlobalEventKeys, globalEventKeys);
|
|
10678
10364
|
removedGlobalEventKeys.forEach(function (key) {
|
|
10679
10365
|
return _this3.removeGlobalListener(key);
|
|
10680
10366
|
});
|
|
10681
|
-
|
|
10682
|
-
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
10683
|
-
|
|
10367
|
+
var addedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(globalEventKeys, this.prevGlobalEventKeys);
|
|
10684
10368
|
addedGlobalEventKeys.forEach(function (key) {
|
|
10685
10369
|
return _this3.addGlobalListener(key);
|
|
10686
10370
|
});
|
|
@@ -10702,22 +10386,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10702
10386
|
|
|
10703
10387
|
var boundListener = function (event) {
|
|
10704
10388
|
var listener = _this5.globalEvents[key];
|
|
10705
|
-
return listener && listener(
|
|
10389
|
+
return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_6__.emulateReactEvent(event));
|
|
10706
10390
|
};
|
|
10707
10391
|
|
|
10708
10392
|
this.boundGlobalEvents[key] = boundListener;
|
|
10709
|
-
window.addEventListener(
|
|
10393
|
+
window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), boundListener);
|
|
10710
10394
|
}
|
|
10711
10395
|
}, {
|
|
10712
10396
|
key: "removeGlobalListener",
|
|
10713
10397
|
value: function removeGlobalListener(key) {
|
|
10714
|
-
window.removeEventListener(
|
|
10398
|
+
window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
10715
10399
|
}
|
|
10716
10400
|
}, {
|
|
10717
10401
|
key: "getAllEvents",
|
|
10718
10402
|
value: function getAllEvents(props) {
|
|
10719
10403
|
var components = ["container", "groupComponent"];
|
|
10720
|
-
var componentEvents =
|
|
10404
|
+
var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getComponentEvents(props, components);
|
|
10721
10405
|
|
|
10722
10406
|
if (Array.isArray(componentEvents)) {
|
|
10723
10407
|
return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
|
|
@@ -10728,7 +10412,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10728
10412
|
}, {
|
|
10729
10413
|
key: "applyExternalMutations",
|
|
10730
10414
|
value: function applyExternalMutations(props, externalMutations) {
|
|
10731
|
-
if (!
|
|
10415
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
|
|
10732
10416
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
10733
10417
|
return victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
10734
10418
|
}, []);
|
|
@@ -10743,7 +10427,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10743
10427
|
}, {
|
|
10744
10428
|
key: "getExternalMutations",
|
|
10745
10429
|
value: function getExternalMutations(props, baseProps) {
|
|
10746
|
-
return !
|
|
10430
|
+
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;
|
|
10747
10431
|
}
|
|
10748
10432
|
}, {
|
|
10749
10433
|
key: "cacheSharedEvents",
|
|
@@ -10758,7 +10442,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10758
10442
|
sharedEvents = _ref2[0],
|
|
10759
10443
|
prevCacheValues = _ref2[1];
|
|
10760
10444
|
|
|
10761
|
-
if (sharedEvents &&
|
|
10445
|
+
if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(cacheValues, prevCacheValues)) {
|
|
10762
10446
|
return sharedEvents;
|
|
10763
10447
|
}
|
|
10764
10448
|
|
|
@@ -10768,7 +10452,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10768
10452
|
key: "getBaseProps",
|
|
10769
10453
|
value: function getBaseProps(props) {
|
|
10770
10454
|
var container = props.container;
|
|
10771
|
-
var children =
|
|
10455
|
+
var children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(this.props.children);
|
|
10772
10456
|
var childBaseProps = this.getBasePropsFromChildren(children);
|
|
10773
10457
|
var parentBaseProps = container ? container.props : {};
|
|
10774
10458
|
return Object.assign({}, childBaseProps, {
|
|
@@ -10789,7 +10473,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10789
10473
|
};
|
|
10790
10474
|
|
|
10791
10475
|
var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_8__.reduceChildren(childComponents, iteratee);
|
|
10792
|
-
return
|
|
10476
|
+
return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default()(baseProps);
|
|
10793
10477
|
}
|
|
10794
10478
|
}, {
|
|
10795
10479
|
key: "getNewChildren",
|
|
@@ -10802,9 +10486,9 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10802
10486
|
var alterChildren = function (children, childNames) {
|
|
10803
10487
|
return children.reduce(function (memo, child, index) {
|
|
10804
10488
|
if (child.props.children) {
|
|
10805
|
-
var newChildren =
|
|
10489
|
+
var newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children);
|
|
10806
10490
|
var names = childNames.slice(index, index + newChildren.length);
|
|
10807
|
-
var results = /*#__PURE__*/
|
|
10491
|
+
var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, child.props, alterChildren(newChildren, names));
|
|
10808
10492
|
return memo.concat(results);
|
|
10809
10493
|
} else if (childNames[index] !== "parent" && child.type && victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(child.type.getBaseProps)) {
|
|
10810
10494
|
var name = child.props.name || childNames[index];
|
|
@@ -10815,7 +10499,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10815
10499
|
|
|
10816
10500
|
return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
|
|
10817
10501
|
});
|
|
10818
|
-
var sharedEventsCacheValues = [name, baseProps, childEvents,
|
|
10502
|
+
var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default()(_this6.state[name])];
|
|
10819
10503
|
var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
|
|
10820
10504
|
events: childEvents,
|
|
10821
10505
|
// partially apply child name and baseProps,
|
|
@@ -10830,7 +10514,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10830
10514
|
|
|
10831
10515
|
_this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
|
|
10832
10516
|
|
|
10833
|
-
return memo.concat( /*#__PURE__*/
|
|
10517
|
+
return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, Object.assign({
|
|
10834
10518
|
key: "events-".concat(name),
|
|
10835
10519
|
sharedEvents: sharedEvents,
|
|
10836
10520
|
eventKey: eventKey,
|
|
@@ -10843,7 +10527,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10843
10527
|
};
|
|
10844
10528
|
|
|
10845
10529
|
var childNames = Object.keys(baseProps);
|
|
10846
|
-
var childComponents =
|
|
10530
|
+
var childComponents = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
|
|
10847
10531
|
return alterChildren(childComponents, childNames);
|
|
10848
10532
|
}
|
|
10849
10533
|
}, {
|
|
@@ -10866,22 +10550,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10866
10550
|
var container = props.container || props.groupComponent;
|
|
10867
10551
|
var role = container.type && container.type.role;
|
|
10868
10552
|
var containerProps = container.props || {};
|
|
10869
|
-
var boundGetEvents =
|
|
10553
|
+
var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEvents.bind(this);
|
|
10870
10554
|
var parentEvents = sharedEvents && boundGetEvents({
|
|
10871
10555
|
sharedEvents: sharedEvents
|
|
10872
10556
|
}, "parent");
|
|
10873
10557
|
|
|
10874
|
-
var parentProps =
|
|
10558
|
+
var parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
|
|
10875
10559
|
children: children
|
|
10876
10560
|
});
|
|
10877
10561
|
|
|
10878
|
-
var containerEvents =
|
|
10562
|
+
var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
|
|
10879
10563
|
|
|
10880
|
-
this.globalEvents =
|
|
10881
|
-
var localEvents =
|
|
10882
|
-
return role === "container" ? /*#__PURE__*/
|
|
10564
|
+
this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(containerEvents);
|
|
10565
|
+
var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(containerEvents);
|
|
10566
|
+
return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, Object.assign({}, parentProps, {
|
|
10883
10567
|
events: localEvents
|
|
10884
|
-
})) : /*#__PURE__*/
|
|
10568
|
+
})) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, localEvents, children);
|
|
10885
10569
|
}
|
|
10886
10570
|
}, {
|
|
10887
10571
|
key: "render",
|
|
@@ -10892,19 +10576,19 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
10892
10576
|
return this.getContainer(this.props, this.baseProps, events);
|
|
10893
10577
|
}
|
|
10894
10578
|
|
|
10895
|
-
return /*#__PURE__*/
|
|
10579
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(this.props.container, {
|
|
10896
10580
|
children: this.props.children
|
|
10897
10581
|
});
|
|
10898
10582
|
}
|
|
10899
10583
|
}]);
|
|
10900
10584
|
|
|
10901
10585
|
return VictorySharedEvents;
|
|
10902
|
-
}((
|
|
10586
|
+
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
10903
10587
|
VictorySharedEvents.displayName = "VictorySharedEvents";
|
|
10904
10588
|
VictorySharedEvents.role = "shared-event-wrapper";
|
|
10905
10589
|
VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
10906
10590
|
VictorySharedEvents.defaultProps = {
|
|
10907
|
-
groupComponent: /*#__PURE__*/
|
|
10591
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null)
|
|
10908
10592
|
};
|
|
10909
10593
|
|
|
10910
10594
|
/***/ }),
|