victory 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 -41
- package/README.md +2 -2
- package/dist/victory.js +246 -627
- package/dist/victory.min.js +1 -1
- package/es/index.d.ts +27 -27
- package/lib/index.d.ts +27 -27
- package/package.json +32 -29
package/dist/victory.js
CHANGED
|
@@ -2560,83 +2560,6 @@ function baseDelay(func, wait, args) {
|
|
|
2560
2560
|
module.exports = baseDelay;
|
|
2561
2561
|
|
|
2562
2562
|
|
|
2563
|
-
/***/ }),
|
|
2564
|
-
|
|
2565
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js":
|
|
2566
|
-
/*!*****************************************************************************************!*\
|
|
2567
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js ***!
|
|
2568
|
-
\*****************************************************************************************/
|
|
2569
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2570
|
-
|
|
2571
|
-
var SetCache = __webpack_require__(/*! ./_SetCache */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_SetCache.js"),
|
|
2572
|
-
arrayIncludes = __webpack_require__(/*! ./_arrayIncludes */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludes.js"),
|
|
2573
|
-
arrayIncludesWith = __webpack_require__(/*! ./_arrayIncludesWith */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayIncludesWith.js"),
|
|
2574
|
-
arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_arrayMap.js"),
|
|
2575
|
-
baseUnary = __webpack_require__(/*! ./_baseUnary */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseUnary.js"),
|
|
2576
|
-
cacheHas = __webpack_require__(/*! ./_cacheHas */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_cacheHas.js");
|
|
2577
|
-
|
|
2578
|
-
/** Used as the size to enable large array optimizations. */
|
|
2579
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
2580
|
-
|
|
2581
|
-
/**
|
|
2582
|
-
* The base implementation of methods like `_.difference` without support
|
|
2583
|
-
* for excluding multiple arrays or iteratee shorthands.
|
|
2584
|
-
*
|
|
2585
|
-
* @private
|
|
2586
|
-
* @param {Array} array The array to inspect.
|
|
2587
|
-
* @param {Array} values The values to exclude.
|
|
2588
|
-
* @param {Function} [iteratee] The iteratee invoked per element.
|
|
2589
|
-
* @param {Function} [comparator] The comparator invoked per element.
|
|
2590
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
2591
|
-
*/
|
|
2592
|
-
function baseDifference(array, values, iteratee, comparator) {
|
|
2593
|
-
var index = -1,
|
|
2594
|
-
includes = arrayIncludes,
|
|
2595
|
-
isCommon = true,
|
|
2596
|
-
length = array.length,
|
|
2597
|
-
result = [],
|
|
2598
|
-
valuesLength = values.length;
|
|
2599
|
-
|
|
2600
|
-
if (!length) {
|
|
2601
|
-
return result;
|
|
2602
|
-
}
|
|
2603
|
-
if (iteratee) {
|
|
2604
|
-
values = arrayMap(values, baseUnary(iteratee));
|
|
2605
|
-
}
|
|
2606
|
-
if (comparator) {
|
|
2607
|
-
includes = arrayIncludesWith;
|
|
2608
|
-
isCommon = false;
|
|
2609
|
-
}
|
|
2610
|
-
else if (values.length >= LARGE_ARRAY_SIZE) {
|
|
2611
|
-
includes = cacheHas;
|
|
2612
|
-
isCommon = false;
|
|
2613
|
-
values = new SetCache(values);
|
|
2614
|
-
}
|
|
2615
|
-
outer:
|
|
2616
|
-
while (++index < length) {
|
|
2617
|
-
var value = array[index],
|
|
2618
|
-
computed = iteratee == null ? value : iteratee(value);
|
|
2619
|
-
|
|
2620
|
-
value = (comparator || value !== 0) ? value : 0;
|
|
2621
|
-
if (isCommon && computed === computed) {
|
|
2622
|
-
var valuesIndex = valuesLength;
|
|
2623
|
-
while (valuesIndex--) {
|
|
2624
|
-
if (values[valuesIndex] === computed) {
|
|
2625
|
-
continue outer;
|
|
2626
|
-
}
|
|
2627
|
-
}
|
|
2628
|
-
result.push(value);
|
|
2629
|
-
}
|
|
2630
|
-
else if (!includes(values, computed, comparator)) {
|
|
2631
|
-
result.push(value);
|
|
2632
|
-
}
|
|
2633
|
-
}
|
|
2634
|
-
return result;
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
module.exports = baseDifference;
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
2563
|
/***/ }),
|
|
2641
2564
|
|
|
2642
2565
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js":
|
|
@@ -2859,37 +2782,6 @@ function strictIndexOf(array, value, fromIndex) {
|
|
|
2859
2782
|
module.exports = strictIndexOf;
|
|
2860
2783
|
|
|
2861
2784
|
|
|
2862
|
-
/***/ }),
|
|
2863
|
-
|
|
2864
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseInverter.js":
|
|
2865
|
-
/*!***************************************************************************************!*\
|
|
2866
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseInverter.js ***!
|
|
2867
|
-
\***************************************************************************************/
|
|
2868
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2869
|
-
|
|
2870
|
-
var baseForOwn = __webpack_require__(/*! ./_baseForOwn */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseForOwn.js");
|
|
2871
|
-
|
|
2872
|
-
/**
|
|
2873
|
-
* The base implementation of `_.invert` and `_.invertBy` which inverts
|
|
2874
|
-
* `object` with values transformed by `iteratee` and set by `setter`.
|
|
2875
|
-
*
|
|
2876
|
-
* @private
|
|
2877
|
-
* @param {Object} object The object to iterate over.
|
|
2878
|
-
* @param {Function} setter The function to set `accumulator` values.
|
|
2879
|
-
* @param {Function} iteratee The iteratee to transform values.
|
|
2880
|
-
* @param {Object} accumulator The initial inverted object.
|
|
2881
|
-
* @returns {Function} Returns `accumulator`.
|
|
2882
|
-
*/
|
|
2883
|
-
function baseInverter(object, setter, iteratee, accumulator) {
|
|
2884
|
-
baseForOwn(object, function(value, key, object) {
|
|
2885
|
-
setter(accumulator, iteratee(value), key, object);
|
|
2886
|
-
});
|
|
2887
|
-
return accumulator;
|
|
2888
|
-
}
|
|
2889
|
-
|
|
2890
|
-
module.exports = baseInverter;
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
2785
|
/***/ }),
|
|
2894
2786
|
|
|
2895
2787
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsDate.js":
|
|
@@ -3687,40 +3579,6 @@ function baseSortedUniq(array, iteratee) {
|
|
|
3687
3579
|
module.exports = baseSortedUniq;
|
|
3688
3580
|
|
|
3689
3581
|
|
|
3690
|
-
/***/ }),
|
|
3691
|
-
|
|
3692
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSum.js":
|
|
3693
|
-
/*!**********************************************************************************!*\
|
|
3694
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSum.js ***!
|
|
3695
|
-
\**********************************************************************************/
|
|
3696
|
-
/***/ ((module) => {
|
|
3697
|
-
|
|
3698
|
-
/**
|
|
3699
|
-
* The base implementation of `_.sum` and `_.sumBy` without support for
|
|
3700
|
-
* iteratee shorthands.
|
|
3701
|
-
*
|
|
3702
|
-
* @private
|
|
3703
|
-
* @param {Array} array The array to iterate over.
|
|
3704
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
3705
|
-
* @returns {number} Returns the sum.
|
|
3706
|
-
*/
|
|
3707
|
-
function baseSum(array, iteratee) {
|
|
3708
|
-
var result,
|
|
3709
|
-
index = -1,
|
|
3710
|
-
length = array.length;
|
|
3711
|
-
|
|
3712
|
-
while (++index < length) {
|
|
3713
|
-
var current = iteratee(array[index]);
|
|
3714
|
-
if (current !== undefined) {
|
|
3715
|
-
result = result === undefined ? current : (result + current);
|
|
3716
|
-
}
|
|
3717
|
-
}
|
|
3718
|
-
return result;
|
|
3719
|
-
}
|
|
3720
|
-
|
|
3721
|
-
module.exports = baseSum;
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
3582
|
/***/ }),
|
|
3725
3583
|
|
|
3726
3584
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseToPairs.js":
|
|
@@ -4378,33 +4236,6 @@ function createFlow(fromRight) {
|
|
|
4378
4236
|
module.exports = createFlow;
|
|
4379
4237
|
|
|
4380
4238
|
|
|
4381
|
-
/***/ }),
|
|
4382
|
-
|
|
4383
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js":
|
|
4384
|
-
/*!*****************************************************************************************!*\
|
|
4385
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js ***!
|
|
4386
|
-
\*****************************************************************************************/
|
|
4387
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
4388
|
-
|
|
4389
|
-
var baseInverter = __webpack_require__(/*! ./_baseInverter */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseInverter.js");
|
|
4390
|
-
|
|
4391
|
-
/**
|
|
4392
|
-
* Creates a function like `_.invertBy`.
|
|
4393
|
-
*
|
|
4394
|
-
* @private
|
|
4395
|
-
* @param {Function} setter The function to set accumulator values.
|
|
4396
|
-
* @param {Function} toIteratee The function to resolve iteratees.
|
|
4397
|
-
* @returns {Function} Returns the new inverter function.
|
|
4398
|
-
*/
|
|
4399
|
-
function createInverter(setter, toIteratee) {
|
|
4400
|
-
return function(object, iteratee) {
|
|
4401
|
-
return baseInverter(object, setter, toIteratee(iteratee), {});
|
|
4402
|
-
};
|
|
4403
|
-
}
|
|
4404
|
-
|
|
4405
|
-
module.exports = createInverter;
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
4239
|
/***/ }),
|
|
4409
4240
|
|
|
4410
4241
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js":
|
|
@@ -5928,42 +5759,6 @@ var assign = createAssigner(function(object, source) {
|
|
|
5928
5759
|
module.exports = assign;
|
|
5929
5760
|
|
|
5930
5761
|
|
|
5931
|
-
/***/ }),
|
|
5932
|
-
|
|
5933
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js":
|
|
5934
|
-
/*!**********************************************************************************!*\
|
|
5935
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js ***!
|
|
5936
|
-
\**********************************************************************************/
|
|
5937
|
-
/***/ ((module) => {
|
|
5938
|
-
|
|
5939
|
-
/**
|
|
5940
|
-
* Creates a function that returns `value`.
|
|
5941
|
-
*
|
|
5942
|
-
* @static
|
|
5943
|
-
* @memberOf _
|
|
5944
|
-
* @since 2.4.0
|
|
5945
|
-
* @category Util
|
|
5946
|
-
* @param {*} value The value to return from the new function.
|
|
5947
|
-
* @returns {Function} Returns the new constant function.
|
|
5948
|
-
* @example
|
|
5949
|
-
*
|
|
5950
|
-
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
5951
|
-
*
|
|
5952
|
-
* console.log(objects);
|
|
5953
|
-
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
5954
|
-
*
|
|
5955
|
-
* console.log(objects[0] === objects[1]);
|
|
5956
|
-
* // => true
|
|
5957
|
-
*/
|
|
5958
|
-
function constant(value) {
|
|
5959
|
-
return function() {
|
|
5960
|
-
return value;
|
|
5961
|
-
};
|
|
5962
|
-
}
|
|
5963
|
-
|
|
5964
|
-
module.exports = constant;
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
5762
|
/***/ }),
|
|
5968
5763
|
|
|
5969
5764
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js":
|
|
@@ -6277,49 +6072,6 @@ var delay = baseRest(function(func, wait, args) {
|
|
|
6277
6072
|
module.exports = delay;
|
|
6278
6073
|
|
|
6279
6074
|
|
|
6280
|
-
/***/ }),
|
|
6281
|
-
|
|
6282
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js":
|
|
6283
|
-
/*!************************************************************************************!*\
|
|
6284
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/difference.js ***!
|
|
6285
|
-
\************************************************************************************/
|
|
6286
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6287
|
-
|
|
6288
|
-
var baseDifference = __webpack_require__(/*! ./_baseDifference */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseDifference.js"),
|
|
6289
|
-
baseFlatten = __webpack_require__(/*! ./_baseFlatten */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseFlatten.js"),
|
|
6290
|
-
baseRest = __webpack_require__(/*! ./_baseRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseRest.js"),
|
|
6291
|
-
isArrayLikeObject = __webpack_require__(/*! ./isArrayLikeObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js");
|
|
6292
|
-
|
|
6293
|
-
/**
|
|
6294
|
-
* Creates an array of `array` values not included in the other given arrays
|
|
6295
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
6296
|
-
* for equality comparisons. The order and references of result values are
|
|
6297
|
-
* determined by the first array.
|
|
6298
|
-
*
|
|
6299
|
-
* **Note:** Unlike `_.pullAll`, this method returns a new array.
|
|
6300
|
-
*
|
|
6301
|
-
* @static
|
|
6302
|
-
* @memberOf _
|
|
6303
|
-
* @since 0.1.0
|
|
6304
|
-
* @category Array
|
|
6305
|
-
* @param {Array} array The array to inspect.
|
|
6306
|
-
* @param {...Array} [values] The values to exclude.
|
|
6307
|
-
* @returns {Array} Returns the new array of filtered values.
|
|
6308
|
-
* @see _.without, _.xor
|
|
6309
|
-
* @example
|
|
6310
|
-
*
|
|
6311
|
-
* _.difference([2, 1], [2, 3]);
|
|
6312
|
-
* // => [1]
|
|
6313
|
-
*/
|
|
6314
|
-
var difference = baseRest(function(array, values) {
|
|
6315
|
-
return isArrayLikeObject(array)
|
|
6316
|
-
? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))
|
|
6317
|
-
: [];
|
|
6318
|
-
});
|
|
6319
|
-
|
|
6320
|
-
module.exports = difference;
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
6075
|
/***/ }),
|
|
6324
6076
|
|
|
6325
6077
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js":
|
|
@@ -6689,58 +6441,6 @@ function identity(value) {
|
|
|
6689
6441
|
module.exports = identity;
|
|
6690
6442
|
|
|
6691
6443
|
|
|
6692
|
-
/***/ }),
|
|
6693
|
-
|
|
6694
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/invert.js":
|
|
6695
|
-
/*!********************************************************************************!*\
|
|
6696
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/invert.js ***!
|
|
6697
|
-
\********************************************************************************/
|
|
6698
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6699
|
-
|
|
6700
|
-
var constant = __webpack_require__(/*! ./constant */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/constant.js"),
|
|
6701
|
-
createInverter = __webpack_require__(/*! ./_createInverter */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createInverter.js"),
|
|
6702
|
-
identity = __webpack_require__(/*! ./identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
|
|
6703
|
-
|
|
6704
|
-
/** Used for built-in method references. */
|
|
6705
|
-
var objectProto = Object.prototype;
|
|
6706
|
-
|
|
6707
|
-
/**
|
|
6708
|
-
* Used to resolve the
|
|
6709
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
6710
|
-
* of values.
|
|
6711
|
-
*/
|
|
6712
|
-
var nativeObjectToString = objectProto.toString;
|
|
6713
|
-
|
|
6714
|
-
/**
|
|
6715
|
-
* Creates an object composed of the inverted keys and values of `object`.
|
|
6716
|
-
* If `object` contains duplicate values, subsequent values overwrite
|
|
6717
|
-
* property assignments of previous values.
|
|
6718
|
-
*
|
|
6719
|
-
* @static
|
|
6720
|
-
* @memberOf _
|
|
6721
|
-
* @since 0.7.0
|
|
6722
|
-
* @category Object
|
|
6723
|
-
* @param {Object} object The object to invert.
|
|
6724
|
-
* @returns {Object} Returns the new inverted object.
|
|
6725
|
-
* @example
|
|
6726
|
-
*
|
|
6727
|
-
* var object = { 'a': 1, 'b': 2, 'c': 1 };
|
|
6728
|
-
*
|
|
6729
|
-
* _.invert(object);
|
|
6730
|
-
* // => { '1': 'c', '2': 'b' }
|
|
6731
|
-
*/
|
|
6732
|
-
var invert = createInverter(function(result, value, key) {
|
|
6733
|
-
if (value != null &&
|
|
6734
|
-
typeof value.toString != 'function') {
|
|
6735
|
-
value = nativeObjectToString.call(value);
|
|
6736
|
-
}
|
|
6737
|
-
|
|
6738
|
-
result[value] = key;
|
|
6739
|
-
}, constant(identity));
|
|
6740
|
-
|
|
6741
|
-
module.exports = invert;
|
|
6742
|
-
|
|
6743
|
-
|
|
6744
6444
|
/***/ }),
|
|
6745
6445
|
|
|
6746
6446
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArguments.js":
|
|
@@ -6848,49 +6548,6 @@ function isArrayLike(value) {
|
|
|
6848
6548
|
module.exports = isArrayLike;
|
|
6849
6549
|
|
|
6850
6550
|
|
|
6851
|
-
/***/ }),
|
|
6852
|
-
|
|
6853
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js":
|
|
6854
|
-
/*!*******************************************************************************************!*\
|
|
6855
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLikeObject.js ***!
|
|
6856
|
-
\*******************************************************************************************/
|
|
6857
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6858
|
-
|
|
6859
|
-
var isArrayLike = __webpack_require__(/*! ./isArrayLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArrayLike.js"),
|
|
6860
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
|
|
6861
|
-
|
|
6862
|
-
/**
|
|
6863
|
-
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
6864
|
-
* is an object.
|
|
6865
|
-
*
|
|
6866
|
-
* @static
|
|
6867
|
-
* @memberOf _
|
|
6868
|
-
* @since 4.0.0
|
|
6869
|
-
* @category Lang
|
|
6870
|
-
* @param {*} value The value to check.
|
|
6871
|
-
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
6872
|
-
* else `false`.
|
|
6873
|
-
* @example
|
|
6874
|
-
*
|
|
6875
|
-
* _.isArrayLikeObject([1, 2, 3]);
|
|
6876
|
-
* // => true
|
|
6877
|
-
*
|
|
6878
|
-
* _.isArrayLikeObject(document.body.children);
|
|
6879
|
-
* // => true
|
|
6880
|
-
*
|
|
6881
|
-
* _.isArrayLikeObject('abc');
|
|
6882
|
-
* // => false
|
|
6883
|
-
*
|
|
6884
|
-
* _.isArrayLikeObject(_.noop);
|
|
6885
|
-
* // => false
|
|
6886
|
-
*/
|
|
6887
|
-
function isArrayLikeObject(value) {
|
|
6888
|
-
return isObjectLike(value) && isArrayLike(value);
|
|
6889
|
-
}
|
|
6890
|
-
|
|
6891
|
-
module.exports = isArrayLikeObject;
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
6551
|
/***/ }),
|
|
6895
6552
|
|
|
6896
6553
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isBuffer.js":
|
|
@@ -7369,46 +7026,6 @@ var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;
|
|
|
7369
7026
|
module.exports = isRegExp;
|
|
7370
7027
|
|
|
7371
7028
|
|
|
7372
|
-
/***/ }),
|
|
7373
|
-
|
|
7374
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js":
|
|
7375
|
-
/*!**********************************************************************************!*\
|
|
7376
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isString.js ***!
|
|
7377
|
-
\**********************************************************************************/
|
|
7378
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7379
|
-
|
|
7380
|
-
var baseGetTag = __webpack_require__(/*! ./_baseGetTag */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"),
|
|
7381
|
-
isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),
|
|
7382
|
-
isObjectLike = __webpack_require__(/*! ./isObjectLike */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js");
|
|
7383
|
-
|
|
7384
|
-
/** `Object#toString` result references. */
|
|
7385
|
-
var stringTag = '[object String]';
|
|
7386
|
-
|
|
7387
|
-
/**
|
|
7388
|
-
* Checks if `value` is classified as a `String` primitive or object.
|
|
7389
|
-
*
|
|
7390
|
-
* @static
|
|
7391
|
-
* @since 0.1.0
|
|
7392
|
-
* @memberOf _
|
|
7393
|
-
* @category Lang
|
|
7394
|
-
* @param {*} value The value to check.
|
|
7395
|
-
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
7396
|
-
* @example
|
|
7397
|
-
*
|
|
7398
|
-
* _.isString('abc');
|
|
7399
|
-
* // => true
|
|
7400
|
-
*
|
|
7401
|
-
* _.isString(1);
|
|
7402
|
-
* // => false
|
|
7403
|
-
*/
|
|
7404
|
-
function isString(value) {
|
|
7405
|
-
return typeof value == 'string' ||
|
|
7406
|
-
(!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
|
|
7407
|
-
}
|
|
7408
|
-
|
|
7409
|
-
module.exports = isString;
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
7029
|
/***/ }),
|
|
7413
7030
|
|
|
7414
7031
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js":
|
|
@@ -8019,40 +7636,6 @@ function sortedUniq(array) {
|
|
|
8019
7636
|
module.exports = sortedUniq;
|
|
8020
7637
|
|
|
8021
7638
|
|
|
8022
|
-
/***/ }),
|
|
8023
|
-
|
|
8024
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sum.js":
|
|
8025
|
-
/*!*****************************************************************************!*\
|
|
8026
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/sum.js ***!
|
|
8027
|
-
\*****************************************************************************/
|
|
8028
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
8029
|
-
|
|
8030
|
-
var baseSum = __webpack_require__(/*! ./_baseSum */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseSum.js"),
|
|
8031
|
-
identity = __webpack_require__(/*! ./identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
|
|
8032
|
-
|
|
8033
|
-
/**
|
|
8034
|
-
* Computes the sum of the values in `array`.
|
|
8035
|
-
*
|
|
8036
|
-
* @static
|
|
8037
|
-
* @memberOf _
|
|
8038
|
-
* @since 3.4.0
|
|
8039
|
-
* @category Math
|
|
8040
|
-
* @param {Array} array The array to iterate over.
|
|
8041
|
-
* @returns {number} Returns the sum.
|
|
8042
|
-
* @example
|
|
8043
|
-
*
|
|
8044
|
-
* _.sum([4, 2, 8, 6]);
|
|
8045
|
-
* // => 20
|
|
8046
|
-
*/
|
|
8047
|
-
function sum(array) {
|
|
8048
|
-
return (array && array.length)
|
|
8049
|
-
? baseSum(array, identity)
|
|
8050
|
-
: 0;
|
|
8051
|
-
}
|
|
8052
|
-
|
|
8053
|
-
module.exports = sum;
|
|
8054
|
-
|
|
8055
|
-
|
|
8056
7639
|
/***/ }),
|
|
8057
7640
|
|
|
8058
7641
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/throttle.js":
|
|
@@ -18981,18 +18564,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18981
18564
|
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
18982
18565
|
/* 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");
|
|
18983
18566
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
|
|
18984
|
-
/* harmony import */ var
|
|
18985
|
-
/* harmony import */ var
|
|
18986
|
-
/* harmony import */ var
|
|
18987
|
-
/* harmony import */ var
|
|
18988
|
-
/* harmony import */ var
|
|
18989
|
-
/* harmony import */ var
|
|
18990
|
-
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
18991
|
-
/* 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");
|
|
18992
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_5__);
|
|
18567
|
+
/* 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");
|
|
18568
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
18569
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
18570
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
18571
|
+
/* 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");
|
|
18572
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
18993
18573
|
/* 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");
|
|
18994
|
-
/* harmony import */ var
|
|
18995
|
-
|
|
18574
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
18575
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
18576
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
18996
18577
|
|
|
18997
18578
|
|
|
18998
18579
|
|
|
@@ -19033,13 +18614,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
19033
18614
|
|
|
19034
18615
|
|
|
19035
18616
|
|
|
18617
|
+
|
|
19036
18618
|
// DISCLAIMER:
|
|
19037
18619
|
// This file is not currently tested, and it is first on the list of files
|
|
19038
18620
|
// to refactor in our current refactoring effort. Please do not make changes
|
|
19039
18621
|
// to this file without manual testing and/or refactoring and adding tests.
|
|
19040
18622
|
|
|
19041
18623
|
var datumHasXandY = function (datum) {
|
|
19042
|
-
return !(0,
|
|
18624
|
+
return !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isNil)(datum._x) && !(0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isNil)(datum._y);
|
|
19043
18625
|
}; // used for checking state changes. Expected components can be passed in via options
|
|
19044
18626
|
|
|
19045
18627
|
|
|
@@ -19067,11 +18649,11 @@ function addEvents(WrappedComponent) {
|
|
|
19067
18649
|
|
|
19068
18650
|
_this = _super.call(this, props);
|
|
19069
18651
|
_this.state = {};
|
|
19070
|
-
_this.getEventState =
|
|
19071
|
-
_this.getScopedEvents =
|
|
18652
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_6__.getEventState.bind(_assertThisInitialized(_this));
|
|
18653
|
+
_this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
19072
18654
|
|
|
19073
18655
|
_this.getEvents = function (p, target, eventKey) {
|
|
19074
|
-
return
|
|
18656
|
+
return _events__WEBPACK_IMPORTED_MODULE_6__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
|
|
19075
18657
|
};
|
|
19076
18658
|
|
|
19077
18659
|
_this.externalMutations = _this.getExternalMutations(_this.props);
|
|
@@ -19091,7 +18673,7 @@ function addEvents(WrappedComponent) {
|
|
|
19091
18673
|
var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
|
|
19092
18674
|
|
|
19093
18675
|
var animating = this.props.animating || this.props.animate;
|
|
19094
|
-
var newMutation = !
|
|
18676
|
+
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(externalMutations, this.externalMutations);
|
|
19095
18677
|
|
|
19096
18678
|
if (animating || newMutation) {
|
|
19097
18679
|
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
@@ -19102,12 +18684,12 @@ function addEvents(WrappedComponent) {
|
|
|
19102
18684
|
|
|
19103
18685
|
var calculatedState = this.getStateChanges(nextProps);
|
|
19104
18686
|
|
|
19105
|
-
if (!
|
|
18687
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.calculatedState, calculatedState)) {
|
|
19106
18688
|
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
19107
18689
|
return true;
|
|
19108
18690
|
}
|
|
19109
18691
|
|
|
19110
|
-
if (!
|
|
18692
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
19111
18693
|
this.cacheValues(this.getCalculatedValues(nextProps));
|
|
19112
18694
|
return true;
|
|
19113
18695
|
}
|
|
@@ -19133,15 +18715,11 @@ function addEvents(WrappedComponent) {
|
|
|
19133
18715
|
var calculatedState = this.getStateChanges(prevProps);
|
|
19134
18716
|
this.calculatedState = calculatedState;
|
|
19135
18717
|
var globalEventKeys = Object.keys(this.globalEvents);
|
|
19136
|
-
|
|
19137
|
-
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_2___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
19138
|
-
|
|
18718
|
+
var removedGlobalEventKeys = (0,_collection__WEBPACK_IMPORTED_MODULE_7__.difference)(this.prevGlobalEventKeys, globalEventKeys);
|
|
19139
18719
|
removedGlobalEventKeys.forEach(function (key) {
|
|
19140
18720
|
return _this3.removeGlobalListener(key);
|
|
19141
18721
|
});
|
|
19142
|
-
|
|
19143
|
-
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_2___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
19144
|
-
|
|
18722
|
+
var addedGlobalEventKeys = (0,_collection__WEBPACK_IMPORTED_MODULE_7__.difference)(globalEventKeys, this.prevGlobalEventKeys);
|
|
19145
18723
|
addedGlobalEventKeys.forEach(function (key) {
|
|
19146
18724
|
return _this3.addGlobalListener(key);
|
|
19147
18725
|
});
|
|
@@ -19163,16 +18741,16 @@ function addEvents(WrappedComponent) {
|
|
|
19163
18741
|
|
|
19164
18742
|
var boundListener = function (event) {
|
|
19165
18743
|
var listener = _this5.globalEvents[key];
|
|
19166
|
-
return listener && listener(
|
|
18744
|
+
return listener && listener(_events__WEBPACK_IMPORTED_MODULE_6__.emulateReactEvent(event));
|
|
19167
18745
|
};
|
|
19168
18746
|
|
|
19169
18747
|
this.boundGlobalEvents[key] = boundListener;
|
|
19170
|
-
window.addEventListener(
|
|
18748
|
+
window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), boundListener);
|
|
19171
18749
|
}
|
|
19172
18750
|
}, {
|
|
19173
18751
|
key: "removeGlobalListener",
|
|
19174
18752
|
value: function removeGlobalListener(key) {
|
|
19175
|
-
window.removeEventListener(
|
|
18753
|
+
window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
19176
18754
|
} // compile all state changes from own and parent state. Order doesn't matter, as any state
|
|
19177
18755
|
// state change should trigger a re-render
|
|
19178
18756
|
|
|
@@ -19186,7 +18764,7 @@ function addEvents(WrappedComponent) {
|
|
|
19186
18764
|
}
|
|
19187
18765
|
|
|
19188
18766
|
var getState = function (key, type) {
|
|
19189
|
-
var result =
|
|
18767
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
19190
18768
|
|
|
19191
18769
|
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
|
|
19192
18770
|
};
|
|
@@ -19209,7 +18787,7 @@ function addEvents(WrappedComponent) {
|
|
|
19209
18787
|
value: function applyExternalMutations(props, externalMutations) {
|
|
19210
18788
|
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
|
|
19211
18789
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
19212
|
-
return (0,
|
|
18790
|
+
return (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
19213
18791
|
}, []);
|
|
19214
18792
|
var compiledCallbacks = callbacks.length ? function () {
|
|
19215
18793
|
callbacks.forEach(function (c) {
|
|
@@ -19224,8 +18802,8 @@ function addEvents(WrappedComponent) {
|
|
|
19224
18802
|
value: function getCalculatedValues(props) {
|
|
19225
18803
|
var sharedEvents = props.sharedEvents;
|
|
19226
18804
|
var components = WrappedComponent.expectedComponents;
|
|
19227
|
-
var componentEvents =
|
|
19228
|
-
var getSharedEventState = sharedEvents && (0,
|
|
18805
|
+
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getComponentEvents(props, components);
|
|
18806
|
+
var getSharedEventState = sharedEvents && (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
19229
18807
|
return undefined;
|
|
19230
18808
|
};
|
|
19231
18809
|
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
@@ -19248,7 +18826,7 @@ function addEvents(WrappedComponent) {
|
|
|
19248
18826
|
value: function getExternalMutations(props) {
|
|
19249
18827
|
var sharedEvents = props.sharedEvents,
|
|
19250
18828
|
externalEventMutations = props.externalEventMutations;
|
|
19251
|
-
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined :
|
|
18829
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
19252
18830
|
}
|
|
19253
18831
|
}, {
|
|
19254
18832
|
key: "cacheValues",
|
|
@@ -19266,12 +18844,12 @@ function addEvents(WrappedComponent) {
|
|
|
19266
18844
|
var sharedParentState = getSharedEventStateFunction("parent", "parent");
|
|
19267
18845
|
var parentState = this.getEventState("parent", "parent");
|
|
19268
18846
|
|
|
19269
|
-
var baseParentProps =
|
|
18847
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
|
|
19270
18848
|
|
|
19271
18849
|
var parentPropsList = baseParentProps.parentControlledProps;
|
|
19272
18850
|
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
|
|
19273
18851
|
|
|
19274
|
-
var modifiedProps =
|
|
18852
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
|
|
19275
18853
|
|
|
19276
18854
|
return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
19277
18855
|
}
|
|
@@ -19303,21 +18881,21 @@ function addEvents(WrappedComponent) {
|
|
|
19303
18881
|
if (this.hasEvents) {
|
|
19304
18882
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
19305
18883
|
|
|
19306
|
-
var componentProps =
|
|
18884
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
19307
18885
|
index: index,
|
|
19308
18886
|
key: id
|
|
19309
18887
|
}, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
|
|
19310
18888
|
id: id
|
|
19311
18889
|
});
|
|
19312
18890
|
|
|
19313
|
-
var events =
|
|
18891
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
19314
18892
|
|
|
19315
18893
|
return Object.assign({}, componentProps, {
|
|
19316
18894
|
events: events
|
|
19317
18895
|
});
|
|
19318
18896
|
}
|
|
19319
18897
|
|
|
19320
|
-
return
|
|
18898
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
19321
18899
|
index: index,
|
|
19322
18900
|
key: id
|
|
19323
18901
|
}, currentProps, baseProps, {
|
|
@@ -19331,11 +18909,11 @@ function addEvents(WrappedComponent) {
|
|
|
19331
18909
|
var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
|
|
19332
18910
|
|
|
19333
18911
|
if (parentProps.events) {
|
|
19334
|
-
this.globalEvents =
|
|
19335
|
-
parentProps.events =
|
|
18912
|
+
this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
|
|
18913
|
+
parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
|
|
19336
18914
|
}
|
|
19337
18915
|
|
|
19338
|
-
return /*#__PURE__*/
|
|
18916
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
|
|
19339
18917
|
}
|
|
19340
18918
|
}, {
|
|
19341
18919
|
key: "animateComponent",
|
|
@@ -19344,10 +18922,10 @@ function addEvents(WrappedComponent) {
|
|
|
19344
18922
|
|
|
19345
18923
|
var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
|
|
19346
18924
|
var Comp = this.constructor;
|
|
19347
|
-
return /*#__PURE__*/
|
|
18925
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
|
|
19348
18926
|
animate: props.animate,
|
|
19349
18927
|
animationWhitelist: animationWhitelist
|
|
19350
|
-
}, /*#__PURE__*/
|
|
18928
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
|
|
19351
18929
|
} // Used by `VictoryLine` and `VictoryArea`
|
|
19352
18930
|
|
|
19353
18931
|
}, {
|
|
@@ -19367,13 +18945,13 @@ function addEvents(WrappedComponent) {
|
|
|
19367
18945
|
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
19368
18946
|
|
|
19369
18947
|
if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
|
|
19370
|
-
newMemo = newMemo.concat( /*#__PURE__*/
|
|
18948
|
+
newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
|
|
19371
18949
|
}
|
|
19372
18950
|
|
|
19373
18951
|
return newMemo;
|
|
19374
18952
|
}, []);
|
|
19375
18953
|
var dataProps = this.getComponentProps(dataComponent, "data", "all");
|
|
19376
|
-
var children = [/*#__PURE__*/
|
|
18954
|
+
var children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
|
|
19377
18955
|
return this.renderContainer(groupComponent, children);
|
|
19378
18956
|
}
|
|
19379
18957
|
}, {
|
|
@@ -19389,7 +18967,7 @@ function addEvents(WrappedComponent) {
|
|
|
19389
18967
|
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
19390
18968
|
|
|
19391
18969
|
if (shouldRenderDatum(dataProps.datum)) {
|
|
19392
|
-
validDataComponents.push( /*#__PURE__*/
|
|
18970
|
+
validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
|
|
19393
18971
|
}
|
|
19394
18972
|
|
|
19395
18973
|
return validDataComponents;
|
|
@@ -19398,7 +18976,7 @@ function addEvents(WrappedComponent) {
|
|
|
19398
18976
|
var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
|
|
19399
18977
|
|
|
19400
18978
|
if (labelProps.text !== undefined && labelProps.text !== null) {
|
|
19401
|
-
return /*#__PURE__*/
|
|
18979
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
|
|
19402
18980
|
}
|
|
19403
18981
|
|
|
19404
18982
|
return undefined;
|
|
@@ -19443,21 +19021,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19443
19021
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
|
|
19444
19022
|
/* 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");
|
|
19445
19023
|
/* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_1__);
|
|
19446
|
-
/* harmony import */ var
|
|
19447
|
-
/* harmony import */ var
|
|
19448
|
-
/* harmony import */ var
|
|
19449
|
-
/* harmony import */ var
|
|
19450
|
-
/* harmony import */ var
|
|
19451
|
-
/* harmony import */ var
|
|
19452
|
-
/* harmony import */ var
|
|
19453
|
-
/* harmony import */ var
|
|
19454
|
-
/* harmony import */ var
|
|
19455
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
|
19456
|
-
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
19457
|
-
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
|
|
19458
|
-
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
19459
|
-
|
|
19460
|
-
|
|
19024
|
+
/* 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");
|
|
19025
|
+
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_2__);
|
|
19026
|
+
/* 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");
|
|
19027
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_3__);
|
|
19028
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
19029
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
19030
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
19031
|
+
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
|
|
19032
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
19461
19033
|
|
|
19462
19034
|
|
|
19463
19035
|
|
|
@@ -19480,12 +19052,22 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
19480
19052
|
|
|
19481
19053
|
|
|
19482
19054
|
|
|
19055
|
+
/**
|
|
19056
|
+
* Returns the first argument it receives
|
|
19057
|
+
* @param value The value to return
|
|
19058
|
+
* @returns The value given
|
|
19059
|
+
*/
|
|
19060
|
+
function identity(value) {
|
|
19061
|
+
return value;
|
|
19062
|
+
}
|
|
19483
19063
|
/**
|
|
19484
19064
|
* Returns the axis (x or y) of a particular axis component
|
|
19485
19065
|
* @param {Object} props: the props object.
|
|
19486
19066
|
* @param {Boolean} horizontal: true for horizontal charts
|
|
19487
19067
|
* @returns {String} the dimension appropriate for the axis given its props
|
|
19488
19068
|
*/
|
|
19069
|
+
|
|
19070
|
+
|
|
19489
19071
|
function getAxis(props) {
|
|
19490
19072
|
var dependentAxis = props.dependentAxis;
|
|
19491
19073
|
return dependentAxis ? "y" : "x";
|
|
@@ -19498,14 +19080,14 @@ function getAxis(props) {
|
|
|
19498
19080
|
*/
|
|
19499
19081
|
|
|
19500
19082
|
function findAxisComponents(childComponents, predicate) {
|
|
19501
|
-
var predicateFunction = predicate ||
|
|
19083
|
+
var predicateFunction = predicate || identity;
|
|
19502
19084
|
|
|
19503
19085
|
var findAxes = function (children) {
|
|
19504
19086
|
return children.reduce(function (memo, child) {
|
|
19505
19087
|
if (child.type && child.type.role === "axis" && predicateFunction(child)) {
|
|
19506
19088
|
return memo.concat(child);
|
|
19507
19089
|
} else if (child.props && child.props.children) {
|
|
19508
|
-
return memo.concat(findAxes(
|
|
19090
|
+
return memo.concat(findAxes(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children)));
|
|
19509
19091
|
}
|
|
19510
19092
|
|
|
19511
19093
|
return memo;
|
|
@@ -19547,7 +19129,7 @@ function getAxisComponentsWithParent(childComponents, type) {
|
|
|
19547
19129
|
if (child.type && child.type.role === "axis" && matchesType(child)) {
|
|
19548
19130
|
return memo.concat(child);
|
|
19549
19131
|
} else if (child.props && child.props.children) {
|
|
19550
|
-
var childAxis = findComponents(
|
|
19132
|
+
var childAxis = findComponents(react__WEBPACK_IMPORTED_MODULE_4___default().Children.toArray(child.props.children));
|
|
19551
19133
|
return childAxis.length > 0 ? memo.concat(child) : memo;
|
|
19552
19134
|
}
|
|
19553
19135
|
|
|
@@ -19565,8 +19147,8 @@ function getOrigin(domain) {
|
|
|
19565
19147
|
};
|
|
19566
19148
|
|
|
19567
19149
|
return {
|
|
19568
|
-
x:
|
|
19569
|
-
y:
|
|
19150
|
+
x: _collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(domain.x) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.x))) : getSingleOrigin(domain.x),
|
|
19151
|
+
y: _collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(domain.y) ? new Date(Math.min.apply(Math, _toConsumableArray(domain.y))) : getSingleOrigin(domain.y)
|
|
19570
19152
|
};
|
|
19571
19153
|
}
|
|
19572
19154
|
function getOriginSign(origin, domain) {
|
|
@@ -19574,7 +19156,7 @@ function getOriginSign(origin, domain) {
|
|
|
19574
19156
|
return origin <= 0 && Math.max.apply(Math, _toConsumableArray(domain)) <= 0 ? "negative" : "positive";
|
|
19575
19157
|
};
|
|
19576
19158
|
|
|
19577
|
-
return
|
|
19159
|
+
return _collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(domain) ? "positive" : getSign();
|
|
19578
19160
|
}
|
|
19579
19161
|
/**
|
|
19580
19162
|
* @param {Object} props: axis component props
|
|
@@ -19597,14 +19179,14 @@ function isVertical(props) {
|
|
|
19597
19179
|
*/
|
|
19598
19180
|
|
|
19599
19181
|
function stringTicks(props) {
|
|
19600
|
-
return props.tickValues !== undefined &&
|
|
19182
|
+
return props.tickValues !== undefined && _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(props.tickValues);
|
|
19601
19183
|
}
|
|
19602
19184
|
|
|
19603
19185
|
function getDefaultTickFormat(props) {
|
|
19604
19186
|
var tickValues = props.tickValues;
|
|
19605
19187
|
var axis = getAxis(props);
|
|
19606
19188
|
var stringMap = props.stringMap && props.stringMap[axis];
|
|
19607
|
-
var fallbackFormat = tickValues && !
|
|
19189
|
+
var fallbackFormat = tickValues && !_collection__WEBPACK_IMPORTED_MODULE_5__.containsDates(tickValues) ? function (x) {
|
|
19608
19190
|
return x;
|
|
19609
19191
|
} : undefined;
|
|
19610
19192
|
|
|
@@ -19614,7 +19196,7 @@ function getDefaultTickFormat(props) {
|
|
|
19614
19196
|
} : fallbackFormat;
|
|
19615
19197
|
}
|
|
19616
19198
|
|
|
19617
|
-
var invertedStringMap = stringMap &&
|
|
19199
|
+
var invertedStringMap = stringMap && _helpers__WEBPACK_IMPORTED_MODULE_6__.invert(stringMap);
|
|
19618
19200
|
|
|
19619
19201
|
var tickValueArray = lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(Object.values(stringMap), function (n) {
|
|
19620
19202
|
return n;
|
|
@@ -19634,7 +19216,7 @@ function getStringTicks(props) {
|
|
|
19634
19216
|
var axis = getAxis(props);
|
|
19635
19217
|
var stringMap = props.stringMap && props.stringMap[axis];
|
|
19636
19218
|
var categories = Array.isArray(props.categories) ? props.categories : props.categories && props.categories[axis];
|
|
19637
|
-
var ticksFromCategories = categories &&
|
|
19219
|
+
var ticksFromCategories = categories && _collection__WEBPACK_IMPORTED_MODULE_5__.containsOnlyStrings(categories) ? categories.map(function (tick) {
|
|
19638
19220
|
return stringMap[tick];
|
|
19639
19221
|
}) : undefined;
|
|
19640
19222
|
var ticksFromStringMap = stringMap && Object.values(stringMap);
|
|
@@ -19657,7 +19239,7 @@ function getTickArray(props) {
|
|
|
19657
19239
|
return undefined;
|
|
19658
19240
|
}
|
|
19659
19241
|
|
|
19660
|
-
return
|
|
19242
|
+
return _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(tickFormat) ? tickFormat.map(function (t, i) {
|
|
19661
19243
|
return i;
|
|
19662
19244
|
}) : tickFormat;
|
|
19663
19245
|
};
|
|
@@ -19668,10 +19250,10 @@ function getTickArray(props) {
|
|
|
19668
19250
|
ticks = getStringTicks(props);
|
|
19669
19251
|
}
|
|
19670
19252
|
|
|
19671
|
-
if (tickValues &&
|
|
19253
|
+
if (tickValues && _collection__WEBPACK_IMPORTED_MODULE_5__.containsStrings(tickValues)) {
|
|
19672
19254
|
ticks = stringMap ? tickValues.map(function (tick) {
|
|
19673
19255
|
return stringMap[tick];
|
|
19674
|
-
}) :
|
|
19256
|
+
}) : _helpers__WEBPACK_IMPORTED_MODULE_6__.range(1, tickValues.length + 1);
|
|
19675
19257
|
}
|
|
19676
19258
|
|
|
19677
19259
|
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_1___default()(ticks) : getTicksFromFormat();
|
|
@@ -19683,7 +19265,7 @@ function getTickArray(props) {
|
|
|
19683
19265
|
if (arr) {
|
|
19684
19266
|
arr.forEach(function (t, index) {
|
|
19685
19267
|
if (Array.isArray(domain)) {
|
|
19686
|
-
if (t >=
|
|
19268
|
+
if (t >= _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(domain) && t <= _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(domain)) {
|
|
19687
19269
|
newTickArray.push({
|
|
19688
19270
|
value: t,
|
|
19689
19271
|
index: index
|
|
@@ -19715,7 +19297,7 @@ function getTickFormat(props, scale) {
|
|
|
19715
19297
|
// by default. This changed the default formatting for some scale types when
|
|
19716
19298
|
// we upgraded to d3-scale@4..
|
|
19717
19299
|
|
|
19718
|
-
var scaleTickFormat = scale.tickFormat &&
|
|
19300
|
+
var scaleTickFormat = scale.tickFormat && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(scale.tickFormat) ? scale.tickFormat() : function (x) {
|
|
19719
19301
|
return x;
|
|
19720
19302
|
};
|
|
19721
19303
|
return defaultTickFormat || scaleTickFormat;
|
|
@@ -19730,10 +19312,9 @@ function getTickFormat(props, scale) {
|
|
|
19730
19312
|
return function (x, index) {
|
|
19731
19313
|
return filteredTickFormat[index];
|
|
19732
19314
|
};
|
|
19733
|
-
} else if (tickFormat &&
|
|
19315
|
+
} else if (tickFormat && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(tickFormat)) {
|
|
19734
19316
|
var applyStringTicks = function (tick, index, ticks) {
|
|
19735
|
-
var invertedStringMap =
|
|
19736
|
-
|
|
19317
|
+
var invertedStringMap = _helpers__WEBPACK_IMPORTED_MODULE_6__.invert(stringMap);
|
|
19737
19318
|
var stringTickArray = ticks.map(function (t) {
|
|
19738
19319
|
return invertedStringMap[t];
|
|
19739
19320
|
});
|
|
@@ -19774,7 +19355,7 @@ function getTicks(props, scale) {
|
|
|
19774
19355
|
|
|
19775
19356
|
if (tickValues) {
|
|
19776
19357
|
return downsampleTicks(tickValues, tickCount);
|
|
19777
|
-
} else if (scale.ticks &&
|
|
19358
|
+
} else if (scale.ticks && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(scale.ticks)) {
|
|
19778
19359
|
// eslint-disable-next-line no-magic-numbers
|
|
19779
19360
|
var defaultTickCount = tickCount || 5;
|
|
19780
19361
|
var scaleTicks = scale.ticks(defaultTickCount);
|
|
@@ -19816,18 +19397,18 @@ function getDomainFromData(props, axis) {
|
|
|
19816
19397
|
return undefined;
|
|
19817
19398
|
}
|
|
19818
19399
|
|
|
19819
|
-
var minDomain =
|
|
19820
|
-
var maxDomain =
|
|
19400
|
+
var minDomain = _domain__WEBPACK_IMPORTED_MODULE_7__.getMinFromProps(props, axis);
|
|
19401
|
+
var maxDomain = _domain__WEBPACK_IMPORTED_MODULE_7__.getMaxFromProps(props, axis);
|
|
19821
19402
|
var tickStrings = stringTicks(props);
|
|
19822
19403
|
var ticks = tickValues.map(function (value) {
|
|
19823
19404
|
return Number(value);
|
|
19824
19405
|
});
|
|
19825
|
-
var defaultMin = tickStrings ? 1 :
|
|
19826
|
-
var defaultMax = tickStrings ? tickValues.length :
|
|
19406
|
+
var defaultMin = tickStrings ? 1 : _collection__WEBPACK_IMPORTED_MODULE_5__.getMinValue(ticks);
|
|
19407
|
+
var defaultMax = tickStrings ? tickValues.length : _collection__WEBPACK_IMPORTED_MODULE_5__.getMaxValue(ticks);
|
|
19827
19408
|
var min = minDomain !== undefined ? minDomain : defaultMin;
|
|
19828
19409
|
var max = maxDomain !== undefined ? maxDomain : defaultMax;
|
|
19829
|
-
var initialDomain =
|
|
19830
|
-
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ?
|
|
19410
|
+
var initialDomain = _domain__WEBPACK_IMPORTED_MODULE_7__.getDomainFromMinMax(min, max);
|
|
19411
|
+
var domain = polar && axis === "x" && Math.abs(startAngle - endAngle) === 360 ? _domain__WEBPACK_IMPORTED_MODULE_7__.getSymmetricDomain(initialDomain, ticks) : initialDomain;
|
|
19831
19412
|
|
|
19832
19413
|
if (isVertical(props) && !polar) {
|
|
19833
19414
|
domain.reverse();
|
|
@@ -19844,7 +19425,7 @@ function getDomain(props, axis) {
|
|
|
19844
19425
|
return undefined;
|
|
19845
19426
|
}
|
|
19846
19427
|
|
|
19847
|
-
return
|
|
19428
|
+
return _domain__WEBPACK_IMPORTED_MODULE_7__.createDomainFunction(getDomainFromData)(props, inherentAxis);
|
|
19848
19429
|
}
|
|
19849
19430
|
function getAxisValue(props, axis) {
|
|
19850
19431
|
if (!props.axisValue) {
|
|
@@ -19852,20 +19433,20 @@ function getAxisValue(props, axis) {
|
|
|
19852
19433
|
}
|
|
19853
19434
|
|
|
19854
19435
|
var scaleAxis = axis === "x" ? "y" : "x";
|
|
19855
|
-
var scale =
|
|
19436
|
+
var scale = lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(props.scale) && _helpers__WEBPACK_IMPORTED_MODULE_6__.isFunction(props.scale[scaleAxis]) ? props.scale[scaleAxis] : undefined;
|
|
19856
19437
|
|
|
19857
19438
|
if (!scale) {
|
|
19858
19439
|
return undefined;
|
|
19859
19440
|
}
|
|
19860
19441
|
|
|
19861
19442
|
var stringMapAxis = axis === "x" ? "y" : "x";
|
|
19862
|
-
var stringMap =
|
|
19443
|
+
var stringMap = lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(props.stringMap) && props.stringMap[stringMapAxis];
|
|
19863
19444
|
var axisValue = stringMap && typeof props.axisValue === "string" ? stringMap[props.axisValue] : props.axisValue;
|
|
19864
19445
|
return scale(axisValue);
|
|
19865
19446
|
}
|
|
19866
19447
|
function modifyProps(props, fallbackProps) {
|
|
19867
|
-
if (!
|
|
19868
|
-
return
|
|
19448
|
+
if (!lodash_isObject__WEBPACK_IMPORTED_MODULE_2___default()(props.theme)) {
|
|
19449
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, "axis");
|
|
19869
19450
|
}
|
|
19870
19451
|
|
|
19871
19452
|
var role = "axis";
|
|
@@ -19877,15 +19458,15 @@ function modifyProps(props, fallbackProps) {
|
|
|
19877
19458
|
}
|
|
19878
19459
|
|
|
19879
19460
|
if (role === "axis") {
|
|
19880
|
-
return
|
|
19461
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, "axis");
|
|
19881
19462
|
}
|
|
19882
19463
|
|
|
19883
|
-
var axisTheme =
|
|
19464
|
+
var axisTheme = lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, props.theme[role], props.theme.axis);
|
|
19884
19465
|
|
|
19885
19466
|
var theme = Object.assign({}, props.theme, {
|
|
19886
19467
|
axis: axisTheme
|
|
19887
19468
|
});
|
|
19888
|
-
return
|
|
19469
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_6__.modifyProps(Object.assign({}, props, {
|
|
19889
19470
|
theme: theme
|
|
19890
19471
|
}), fallbackProps, "axis");
|
|
19891
19472
|
}
|
|
@@ -19905,6 +19486,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19905
19486
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
19906
19487
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
19907
19488
|
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
19489
|
+
/* harmony export */ "difference": () => (/* binding */ difference),
|
|
19908
19490
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
19909
19491
|
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
19910
19492
|
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
@@ -19946,6 +19528,22 @@ function containsOnlyStrings(collection) {
|
|
|
19946
19528
|
return typeof value === "string";
|
|
19947
19529
|
});
|
|
19948
19530
|
}
|
|
19531
|
+
/**
|
|
19532
|
+
* Creates an array of array values not included in the other given arrays
|
|
19533
|
+
* @param a The array to inspect
|
|
19534
|
+
* @param b The values to exclude
|
|
19535
|
+
* @returns The new array of filtered values
|
|
19536
|
+
*/
|
|
19537
|
+
|
|
19538
|
+
function difference(a, b) {
|
|
19539
|
+
if (a && b) {
|
|
19540
|
+
return a.filter(function (value) {
|
|
19541
|
+
return !b.includes(value);
|
|
19542
|
+
});
|
|
19543
|
+
}
|
|
19544
|
+
|
|
19545
|
+
return [];
|
|
19546
|
+
}
|
|
19949
19547
|
function isArrayOfArrays(collection) {
|
|
19950
19548
|
return isNonEmptyArray(collection) && collection.every(Array.isArray);
|
|
19951
19549
|
}
|
|
@@ -21555,6 +21153,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21555
21153
|
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
21556
21154
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
21557
21155
|
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
21156
|
+
/* harmony export */ "invert": () => (/* binding */ invert),
|
|
21558
21157
|
/* harmony export */ "isFunction": () => (/* binding */ isFunction),
|
|
21559
21158
|
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
21560
21159
|
/* harmony export */ "isNil": () => (/* binding */ isNil),
|
|
@@ -21605,6 +21204,18 @@ function getPolarRange(props, axis) {
|
|
|
21605
21204
|
return [props.innerRadius || 0, getRadius(props)];
|
|
21606
21205
|
} // Exported Functions
|
|
21607
21206
|
|
|
21207
|
+
/**
|
|
21208
|
+
* Creates an object composed of the inverted keys and values of object.
|
|
21209
|
+
* If object contains duplicate values, subsequent values overwrite property assignments of previous values.
|
|
21210
|
+
*/
|
|
21211
|
+
|
|
21212
|
+
|
|
21213
|
+
function invert(original) {
|
|
21214
|
+
return Object.entries(original).reduce(function (acc, current) {
|
|
21215
|
+
acc[current[1]] = current[0];
|
|
21216
|
+
return acc;
|
|
21217
|
+
}, {});
|
|
21218
|
+
}
|
|
21608
21219
|
/**
|
|
21609
21220
|
* creates an object with some keys excluded
|
|
21610
21221
|
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
@@ -21613,7 +21224,6 @@ function getPolarRange(props, axis) {
|
|
|
21613
21224
|
* @returns {Object} new object with same properties as originalObject
|
|
21614
21225
|
*/
|
|
21615
21226
|
|
|
21616
|
-
|
|
21617
21227
|
function omit(originalObject) {
|
|
21618
21228
|
var ks = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
21619
21229
|
// code based on babel's _objectWithoutProperties
|
|
@@ -24671,11 +24281,11 @@ function getChildStyle(child, index, calculatedProps) {
|
|
|
24671
24281
|
|
|
24672
24282
|
var labelsStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, childStyle.labels, style.labels);
|
|
24673
24283
|
|
|
24674
|
-
return {
|
|
24284
|
+
return _objectSpread(_objectSpread({}, childStyle), {}, {
|
|
24675
24285
|
parent: style.parent,
|
|
24676
24286
|
data: dataStyle,
|
|
24677
24287
|
labels: labelsStyle
|
|
24678
|
-
};
|
|
24288
|
+
});
|
|
24679
24289
|
}
|
|
24680
24290
|
function getStringsFromCategories(childComponents, axis) {
|
|
24681
24291
|
var iteratee = function (child) {
|
|
@@ -26967,16 +26577,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26967
26577
|
/* harmony export */ });
|
|
26968
26578
|
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js");
|
|
26969
26579
|
/* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__);
|
|
26970
|
-
/* harmony import */ var
|
|
26971
|
-
/* harmony import */ var
|
|
26972
|
-
/* harmony import */ var
|
|
26973
|
-
/* harmony import */ var
|
|
26974
|
-
/* harmony import */ var
|
|
26975
|
-
/* harmony import */ var
|
|
26976
|
-
/* harmony import */ var
|
|
26977
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
26978
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/textsize.js");
|
|
26979
|
-
|
|
26580
|
+
/* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js");
|
|
26581
|
+
/* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__);
|
|
26582
|
+
/* 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");
|
|
26583
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
26584
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/style.js");
|
|
26585
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
26586
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/textsize.js");
|
|
26980
26587
|
|
|
26981
26588
|
|
|
26982
26589
|
|
|
@@ -27003,16 +26610,16 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
27003
26610
|
|
|
27004
26611
|
var getColorScale = function (props) {
|
|
27005
26612
|
var colorScale = props.colorScale;
|
|
27006
|
-
return typeof colorScale === "string" ?
|
|
26613
|
+
return typeof colorScale === "string" ? victory_core__WEBPACK_IMPORTED_MODULE_3__.getColorScale(colorScale) : colorScale || [];
|
|
27007
26614
|
};
|
|
27008
26615
|
|
|
27009
26616
|
var getLabelStyles = function (props) {
|
|
27010
26617
|
var data = props.data,
|
|
27011
26618
|
style = props.style;
|
|
27012
26619
|
return data.map(function (datum, index) {
|
|
27013
|
-
var baseLabelStyles =
|
|
26620
|
+
var baseLabelStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, datum.labels, style.labels);
|
|
27014
26621
|
|
|
27015
|
-
return
|
|
26622
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(baseLabelStyles, {
|
|
27016
26623
|
datum: datum,
|
|
27017
26624
|
index: index,
|
|
27018
26625
|
data: data
|
|
@@ -27028,11 +26635,11 @@ var getStyles = function (props) {
|
|
|
27028
26635
|
width: "100%"
|
|
27029
26636
|
};
|
|
27030
26637
|
return {
|
|
27031
|
-
parent:
|
|
27032
|
-
data:
|
|
27033
|
-
labels:
|
|
27034
|
-
border:
|
|
27035
|
-
title:
|
|
26638
|
+
parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(style.parent, styleObject.parent, parentStyleProps),
|
|
26639
|
+
data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.data, styleObject.data),
|
|
26640
|
+
labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.labels, styleObject.labels),
|
|
26641
|
+
border: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.border, styleObject.border),
|
|
26642
|
+
title: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.title, styleObject.title)
|
|
27036
26643
|
};
|
|
27037
26644
|
};
|
|
27038
26645
|
|
|
@@ -27043,7 +26650,7 @@ var getCalculatedValues = function (props) {
|
|
|
27043
26650
|
var style = getStyles(props, defaultStyles);
|
|
27044
26651
|
var colorScale = getColorScale(props);
|
|
27045
26652
|
var isHorizontal = orientation === "horizontal";
|
|
27046
|
-
var borderPadding =
|
|
26653
|
+
var borderPadding = victory_core__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
27047
26654
|
padding: props.borderPadding
|
|
27048
26655
|
});
|
|
27049
26656
|
return Object.assign({}, props, {
|
|
@@ -27090,7 +26697,7 @@ var groupData = function (props) {
|
|
|
27090
26697
|
size: size,
|
|
27091
26698
|
symbolSpacer: symbolSpacer,
|
|
27092
26699
|
fontSize: fontSize,
|
|
27093
|
-
textSize:
|
|
26700
|
+
textSize: victory_core__WEBPACK_IMPORTED_MODULE_5__.approximateTextSize(datum.name, labelStyles[index]),
|
|
27094
26701
|
column: getColumn(props, index),
|
|
27095
26702
|
row: getRow(props, index)
|
|
27096
26703
|
});
|
|
@@ -27101,7 +26708,7 @@ var getColumnWidths = function (props, data) {
|
|
|
27101
26708
|
var gutter = props.gutter || {};
|
|
27102
26709
|
var gutterWidth = typeof gutter === "object" ? (gutter.left || 0) + (gutter.right || 0) : gutter || 0;
|
|
27103
26710
|
|
|
27104
|
-
var dataByColumn =
|
|
26711
|
+
var dataByColumn = lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default()(data, "column");
|
|
27105
26712
|
|
|
27106
26713
|
var columns = Object.keys(dataByColumn);
|
|
27107
26714
|
return columns.reduce(function (memo, curr, index) {
|
|
@@ -27117,7 +26724,7 @@ var getRowHeights = function (props, data) {
|
|
|
27117
26724
|
var gutter = props.rowGutter || {};
|
|
27118
26725
|
var gutterHeight = typeof gutter === "object" ? (gutter.top || 0) + (gutter.bottom || 0) : gutter || 0;
|
|
27119
26726
|
|
|
27120
|
-
var dataByRow =
|
|
26727
|
+
var dataByRow = lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default()(data, "row");
|
|
27121
26728
|
|
|
27122
26729
|
return Object.keys(dataByRow).reduce(function (memo, curr, index) {
|
|
27123
26730
|
var rows = dataByRow[curr];
|
|
@@ -27131,7 +26738,7 @@ var getRowHeights = function (props, data) {
|
|
|
27131
26738
|
|
|
27132
26739
|
var getTitleDimensions = function (props) {
|
|
27133
26740
|
var style = props.style && props.style.title || {};
|
|
27134
|
-
var textSize =
|
|
26741
|
+
var textSize = victory_core__WEBPACK_IMPORTED_MODULE_5__.approximateTextSize(props.title, style);
|
|
27135
26742
|
var padding = style.padding || 0;
|
|
27136
26743
|
return {
|
|
27137
26744
|
height: textSize.height + 2 * padding || 0,
|
|
@@ -27177,8 +26784,8 @@ var getTitleStyle = function (props) {
|
|
|
27177
26784
|
var componentStyle = titleComponent.props && titleComponent.props.style || {};
|
|
27178
26785
|
var anchors = getAnchors(titleOrientation, centerTitle);
|
|
27179
26786
|
return Array.isArray(componentStyle) ? componentStyle.map(function (obj) {
|
|
27180
|
-
return
|
|
27181
|
-
}) :
|
|
26787
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, obj, baseStyle, anchors);
|
|
26788
|
+
}) : lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, componentStyle, baseStyle, anchors);
|
|
27182
26789
|
}; // eslint-disable-next-line complexity
|
|
27183
26790
|
|
|
27184
26791
|
|
|
@@ -27232,7 +26839,7 @@ var getBorderProps = function (props, contentHeight, contentWidth) {
|
|
|
27232
26839
|
};
|
|
27233
26840
|
|
|
27234
26841
|
var getDimensions = function (initialProps, fallbackProps) {
|
|
27235
|
-
var modifiedProps =
|
|
26842
|
+
var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_4__.modifyProps(initialProps, fallbackProps, "legend");
|
|
27236
26843
|
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
|
|
27237
26844
|
var title = props.title,
|
|
27238
26845
|
titleOrientation = props.titleOrientation;
|
|
@@ -27244,12 +26851,12 @@ var getDimensions = function (initialProps, fallbackProps) {
|
|
|
27244
26851
|
width: 0
|
|
27245
26852
|
};
|
|
27246
26853
|
return {
|
|
27247
|
-
height: titleOrientation === "left" || titleOrientation === "right" ? Math.max(
|
|
27248
|
-
width: titleOrientation === "left" || titleOrientation === "right" ?
|
|
26854
|
+
height: titleOrientation === "left" || titleOrientation === "right" ? Math.max(sum(rowHeights), titleDimensions.height) : sum(rowHeights) + titleDimensions.height,
|
|
26855
|
+
width: titleOrientation === "left" || titleOrientation === "right" ? sum(columnWidths) + titleDimensions.width : Math.max(sum(columnWidths), titleDimensions.width)
|
|
27249
26856
|
};
|
|
27250
26857
|
};
|
|
27251
26858
|
var getBaseProps = function (initialProps, fallbackProps) {
|
|
27252
|
-
var modifiedProps =
|
|
26859
|
+
var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_4__.modifyProps(initialProps, fallbackProps, "legend");
|
|
27253
26860
|
var props = Object.assign({}, modifiedProps, getCalculatedValues(modifiedProps));
|
|
27254
26861
|
var data = props.data,
|
|
27255
26862
|
standalone = props.standalone,
|
|
@@ -27309,11 +26916,11 @@ var getBaseProps = function (initialProps, fallbackProps) {
|
|
|
27309
26916
|
return groupedData.reduce(function (childProps, datum, i) {
|
|
27310
26917
|
var color = colorScale[i % colorScale.length];
|
|
27311
26918
|
|
|
27312
|
-
var dataStyle =
|
|
26919
|
+
var dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, datum.symbol, style.data, {
|
|
27313
26920
|
fill: color
|
|
27314
26921
|
});
|
|
27315
26922
|
|
|
27316
|
-
var eventKey = !
|
|
26923
|
+
var eventKey = !victory_core__WEBPACK_IMPORTED_MODULE_4__.isNil(datum.eventKey) ? datum.eventKey : i;
|
|
27317
26924
|
var offset = getOffset(datum, rowHeights, columnWidths);
|
|
27318
26925
|
var originY = y + borderPadding.top + datum.symbolSpacer;
|
|
27319
26926
|
var originX = x + borderPadding.left + datum.symbolSpacer;
|
|
@@ -27342,6 +26949,25 @@ var getBaseProps = function (initialProps, fallbackProps) {
|
|
|
27342
26949
|
return childProps;
|
|
27343
26950
|
}, initialChildProps);
|
|
27344
26951
|
};
|
|
26952
|
+
/**
|
|
26953
|
+
* Computes the sum of the values in `array`.
|
|
26954
|
+
* @param {Array} array The array to iterate over.
|
|
26955
|
+
* @returns {number} Returns the sum.
|
|
26956
|
+
*/
|
|
26957
|
+
|
|
26958
|
+
function sum(array) {
|
|
26959
|
+
if (array && array.length) {
|
|
26960
|
+
var value = 0;
|
|
26961
|
+
|
|
26962
|
+
for (var i = 0; i < array.length; i++) {
|
|
26963
|
+
value += array[i];
|
|
26964
|
+
}
|
|
26965
|
+
|
|
26966
|
+
return value;
|
|
26967
|
+
}
|
|
26968
|
+
|
|
26969
|
+
return 0;
|
|
26970
|
+
}
|
|
27345
26971
|
|
|
27346
26972
|
/***/ }),
|
|
27347
26973
|
|
|
@@ -30187,24 +29813,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30187
29813
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
30188
29814
|
/* harmony export */ "VictorySharedEvents": () => (/* binding */ VictorySharedEvents)
|
|
30189
29815
|
/* harmony export */ });
|
|
30190
|
-
/* harmony import */ var
|
|
30191
|
-
/* harmony import */ var
|
|
30192
|
-
/* harmony import */ var
|
|
30193
|
-
/* harmony import */ var
|
|
30194
|
-
/* harmony import */ var
|
|
30195
|
-
/* harmony import */ var
|
|
30196
|
-
/* harmony import */ var
|
|
30197
|
-
/* harmony import */ var
|
|
30198
|
-
/* harmony import */ var
|
|
30199
|
-
/* harmony import */ var
|
|
30200
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
|
|
29816
|
+
/* 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");
|
|
29817
|
+
/* harmony import */ var lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0__);
|
|
29818
|
+
/* 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");
|
|
29819
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
|
|
29820
|
+
/* 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");
|
|
29821
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
29822
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
29823
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
29824
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
|
|
29825
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/collection.js");
|
|
30201
29826
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
30202
29827
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
|
|
30203
|
-
/* harmony import */ var
|
|
30204
|
-
/* harmony import */ var
|
|
30205
|
-
/* harmony import */ var
|
|
30206
|
-
/* harmony import */ var
|
|
30207
|
-
|
|
29828
|
+
/* 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");
|
|
29829
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
29830
|
+
/* 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");
|
|
29831
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_5__);
|
|
30208
29832
|
|
|
30209
29833
|
|
|
30210
29834
|
|
|
@@ -30271,8 +29895,8 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30271
29895
|
_this.globalEvents = void 0;
|
|
30272
29896
|
_this.prevGlobalEventKeys = void 0;
|
|
30273
29897
|
_this.boundGlobalEvents = void 0;
|
|
30274
|
-
_this.getScopedEvents =
|
|
30275
|
-
_this.getEventState =
|
|
29898
|
+
_this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
29899
|
+
_this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEventState.bind(_assertThisInitialized(_this));
|
|
30276
29900
|
_this.state = _this.state || {};
|
|
30277
29901
|
_this.sharedEventsCache = {};
|
|
30278
29902
|
_this.globalEvents = {};
|
|
@@ -30285,7 +29909,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30285
29909
|
_createClass(VictorySharedEvents, [{
|
|
30286
29910
|
key: "shouldComponentUpdate",
|
|
30287
29911
|
value: function shouldComponentUpdate(nextProps) {
|
|
30288
|
-
if (!
|
|
29912
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
30289
29913
|
this.baseProps = this.getBaseProps(nextProps);
|
|
30290
29914
|
var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
|
|
30291
29915
|
this.applyExternalMutations(nextProps, externalMutations);
|
|
@@ -30310,15 +29934,11 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30310
29934
|
var _this3 = this;
|
|
30311
29935
|
|
|
30312
29936
|
var globalEventKeys = Object.keys(this.globalEvents);
|
|
30313
|
-
|
|
30314
|
-
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
30315
|
-
|
|
29937
|
+
var removedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(this.prevGlobalEventKeys, globalEventKeys);
|
|
30316
29938
|
removedGlobalEventKeys.forEach(function (key) {
|
|
30317
29939
|
return _this3.removeGlobalListener(key);
|
|
30318
29940
|
});
|
|
30319
|
-
|
|
30320
|
-
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
30321
|
-
|
|
29941
|
+
var addedGlobalEventKeys = victory_core__WEBPACK_IMPORTED_MODULE_7__.difference(globalEventKeys, this.prevGlobalEventKeys);
|
|
30322
29942
|
addedGlobalEventKeys.forEach(function (key) {
|
|
30323
29943
|
return _this3.addGlobalListener(key);
|
|
30324
29944
|
});
|
|
@@ -30340,22 +29960,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30340
29960
|
|
|
30341
29961
|
var boundListener = function (event) {
|
|
30342
29962
|
var listener = _this5.globalEvents[key];
|
|
30343
|
-
return listener && listener(
|
|
29963
|
+
return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_6__.emulateReactEvent(event));
|
|
30344
29964
|
};
|
|
30345
29965
|
|
|
30346
29966
|
this.boundGlobalEvents[key] = boundListener;
|
|
30347
|
-
window.addEventListener(
|
|
29967
|
+
window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), boundListener);
|
|
30348
29968
|
}
|
|
30349
29969
|
}, {
|
|
30350
29970
|
key: "removeGlobalListener",
|
|
30351
29971
|
value: function removeGlobalListener(key) {
|
|
30352
|
-
window.removeEventListener(
|
|
29972
|
+
window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
30353
29973
|
}
|
|
30354
29974
|
}, {
|
|
30355
29975
|
key: "getAllEvents",
|
|
30356
29976
|
value: function getAllEvents(props) {
|
|
30357
29977
|
var components = ["container", "groupComponent"];
|
|
30358
|
-
var componentEvents =
|
|
29978
|
+
var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getComponentEvents(props, components);
|
|
30359
29979
|
|
|
30360
29980
|
if (Array.isArray(componentEvents)) {
|
|
30361
29981
|
return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
|
|
@@ -30366,7 +29986,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30366
29986
|
}, {
|
|
30367
29987
|
key: "applyExternalMutations",
|
|
30368
29988
|
value: function applyExternalMutations(props, externalMutations) {
|
|
30369
|
-
if (!
|
|
29989
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
|
|
30370
29990
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
30371
29991
|
return victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
30372
29992
|
}, []);
|
|
@@ -30381,7 +30001,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30381
30001
|
}, {
|
|
30382
30002
|
key: "getExternalMutations",
|
|
30383
30003
|
value: function getExternalMutations(props, baseProps) {
|
|
30384
|
-
return !
|
|
30004
|
+
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;
|
|
30385
30005
|
}
|
|
30386
30006
|
}, {
|
|
30387
30007
|
key: "cacheSharedEvents",
|
|
@@ -30396,7 +30016,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30396
30016
|
sharedEvents = _ref2[0],
|
|
30397
30017
|
prevCacheValues = _ref2[1];
|
|
30398
30018
|
|
|
30399
|
-
if (sharedEvents &&
|
|
30019
|
+
if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(cacheValues, prevCacheValues)) {
|
|
30400
30020
|
return sharedEvents;
|
|
30401
30021
|
}
|
|
30402
30022
|
|
|
@@ -30406,7 +30026,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30406
30026
|
key: "getBaseProps",
|
|
30407
30027
|
value: function getBaseProps(props) {
|
|
30408
30028
|
var container = props.container;
|
|
30409
|
-
var children =
|
|
30029
|
+
var children = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(this.props.children);
|
|
30410
30030
|
var childBaseProps = this.getBasePropsFromChildren(children);
|
|
30411
30031
|
var parentBaseProps = container ? container.props : {};
|
|
30412
30032
|
return Object.assign({}, childBaseProps, {
|
|
@@ -30427,7 +30047,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30427
30047
|
};
|
|
30428
30048
|
|
|
30429
30049
|
var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_8__.reduceChildren(childComponents, iteratee);
|
|
30430
|
-
return
|
|
30050
|
+
return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_0___default()(baseProps);
|
|
30431
30051
|
}
|
|
30432
30052
|
}, {
|
|
30433
30053
|
key: "getNewChildren",
|
|
@@ -30440,9 +30060,9 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30440
30060
|
var alterChildren = function (children, childNames) {
|
|
30441
30061
|
return children.reduce(function (memo, child, index) {
|
|
30442
30062
|
if (child.props.children) {
|
|
30443
|
-
var newChildren =
|
|
30063
|
+
var newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children);
|
|
30444
30064
|
var names = childNames.slice(index, index + newChildren.length);
|
|
30445
|
-
var results = /*#__PURE__*/
|
|
30065
|
+
var results = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, child.props, alterChildren(newChildren, names));
|
|
30446
30066
|
return memo.concat(results);
|
|
30447
30067
|
} else if (childNames[index] !== "parent" && child.type && victory_core__WEBPACK_IMPORTED_MODULE_8__.isFunction(child.type.getBaseProps)) {
|
|
30448
30068
|
var name = child.props.name || childNames[index];
|
|
@@ -30453,7 +30073,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30453
30073
|
|
|
30454
30074
|
return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
|
|
30455
30075
|
});
|
|
30456
|
-
var sharedEventsCacheValues = [name, baseProps, childEvents,
|
|
30076
|
+
var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_5___default()(_this6.state[name])];
|
|
30457
30077
|
var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
|
|
30458
30078
|
events: childEvents,
|
|
30459
30079
|
// partially apply child name and baseProps,
|
|
@@ -30468,7 +30088,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30468
30088
|
|
|
30469
30089
|
_this6.cacheSharedEvents(name, sharedEvents, sharedEventsCacheValues);
|
|
30470
30090
|
|
|
30471
|
-
return memo.concat( /*#__PURE__*/
|
|
30091
|
+
return memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, Object.assign({
|
|
30472
30092
|
key: "events-".concat(name),
|
|
30473
30093
|
sharedEvents: sharedEvents,
|
|
30474
30094
|
eventKey: eventKey,
|
|
@@ -30481,7 +30101,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30481
30101
|
};
|
|
30482
30102
|
|
|
30483
30103
|
var childNames = Object.keys(baseProps);
|
|
30484
|
-
var childComponents =
|
|
30104
|
+
var childComponents = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
|
|
30485
30105
|
return alterChildren(childComponents, childNames);
|
|
30486
30106
|
}
|
|
30487
30107
|
}, {
|
|
@@ -30504,22 +30124,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30504
30124
|
var container = props.container || props.groupComponent;
|
|
30505
30125
|
var role = container.type && container.type.role;
|
|
30506
30126
|
var containerProps = container.props || {};
|
|
30507
|
-
var boundGetEvents =
|
|
30127
|
+
var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getEvents.bind(this);
|
|
30508
30128
|
var parentEvents = sharedEvents && boundGetEvents({
|
|
30509
30129
|
sharedEvents: sharedEvents
|
|
30510
30130
|
}, "parent");
|
|
30511
30131
|
|
|
30512
|
-
var parentProps =
|
|
30132
|
+
var parentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState("parent", "parent"), containerProps, baseProps.parent, {
|
|
30513
30133
|
children: children
|
|
30514
30134
|
});
|
|
30515
30135
|
|
|
30516
|
-
var containerEvents =
|
|
30136
|
+
var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
|
|
30517
30137
|
|
|
30518
|
-
this.globalEvents =
|
|
30519
|
-
var localEvents =
|
|
30520
|
-
return role === "container" ? /*#__PURE__*/
|
|
30138
|
+
this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(containerEvents);
|
|
30139
|
+
var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(containerEvents);
|
|
30140
|
+
return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, Object.assign({}, parentProps, {
|
|
30521
30141
|
events: localEvents
|
|
30522
|
-
})) : /*#__PURE__*/
|
|
30142
|
+
})) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, localEvents, children);
|
|
30523
30143
|
}
|
|
30524
30144
|
}, {
|
|
30525
30145
|
key: "render",
|
|
@@ -30530,19 +30150,19 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
30530
30150
|
return this.getContainer(this.props, this.baseProps, events);
|
|
30531
30151
|
}
|
|
30532
30152
|
|
|
30533
|
-
return /*#__PURE__*/
|
|
30153
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(this.props.container, {
|
|
30534
30154
|
children: this.props.children
|
|
30535
30155
|
});
|
|
30536
30156
|
}
|
|
30537
30157
|
}]);
|
|
30538
30158
|
|
|
30539
30159
|
return VictorySharedEvents;
|
|
30540
|
-
}((
|
|
30160
|
+
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
30541
30161
|
VictorySharedEvents.displayName = "VictorySharedEvents";
|
|
30542
30162
|
VictorySharedEvents.role = "shared-event-wrapper";
|
|
30543
30163
|
VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_9__["default"];
|
|
30544
30164
|
VictorySharedEvents.defaultProps = {
|
|
30545
|
-
groupComponent: /*#__PURE__*/
|
|
30165
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null)
|
|
30546
30166
|
};
|
|
30547
30167
|
|
|
30548
30168
|
/***/ }),
|
|
@@ -32521,20 +32141,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32521
32141
|
/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_0__);
|
|
32522
32142
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isRegExp.js");
|
|
32523
32143
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_1__);
|
|
32524
|
-
/* harmony import */ var
|
|
32525
|
-
/* harmony import */ var
|
|
32526
|
-
/* harmony import */ var
|
|
32527
|
-
/* harmony import */ var
|
|
32528
|
-
/* harmony import */ var
|
|
32529
|
-
/* harmony import */ var
|
|
32530
|
-
/* harmony import */ var
|
|
32531
|
-
/* harmony import */ var
|
|
32532
|
-
/* harmony import */ var
|
|
32533
|
-
/* harmony import */ var
|
|
32534
|
-
/* harmony import */ var
|
|
32535
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "react");
|
|
32536
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
|
|
32537
|
-
|
|
32144
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
|
|
32145
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
|
|
32146
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/selection.js");
|
|
32147
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
32148
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/collection.js");
|
|
32149
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/data.js");
|
|
32150
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
32151
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
|
|
32152
|
+
/* harmony import */ var delaunay_find_lib_index_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! delaunay-find/lib/index.js */ "../../../node_modules/.pnpm/delaunay-find@0.0.6/node_modules/delaunay-find/lib/index.js");
|
|
32153
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
32154
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
32538
32155
|
|
|
32539
32156
|
|
|
32540
32157
|
|
|
@@ -32585,8 +32202,8 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32585
32202
|
this.handleMouseMove = function (evt, targetProps) {
|
|
32586
32203
|
// eslint-disable-line max-statements
|
|
32587
32204
|
var activePoints = targetProps.activePoints || [];
|
|
32588
|
-
var parentSVG = targetProps.parentSVG ||
|
|
32589
|
-
var mousePosition =
|
|
32205
|
+
var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_6__.getParentSVG(evt);
|
|
32206
|
+
var mousePosition = victory_core__WEBPACK_IMPORTED_MODULE_6__.getSVGEventCoordinates(evt, parentSVG);
|
|
32590
32207
|
|
|
32591
32208
|
if (!_this.withinBounds(targetProps, mousePosition)) {
|
|
32592
32209
|
var _this$getParentMutati2;
|
|
@@ -32607,7 +32224,7 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32607
32224
|
|
|
32608
32225
|
var parentMutations = _this.getParentMutation(points, mousePosition, parentSVG, index);
|
|
32609
32226
|
|
|
32610
|
-
if (activePoints.length &&
|
|
32227
|
+
if (activePoints.length && react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default()(points, activePoints)) {
|
|
32611
32228
|
return parentMutations;
|
|
32612
32229
|
}
|
|
32613
32230
|
|
|
@@ -32638,7 +32255,7 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32638
32255
|
polar = props.polar,
|
|
32639
32256
|
origin = props.origin,
|
|
32640
32257
|
scale = props.scale;
|
|
32641
|
-
var padding =
|
|
32258
|
+
var padding = victory_core__WEBPACK_IMPORTED_MODULE_7__.getPadding(props, "voronoiPadding");
|
|
32642
32259
|
var x = point.x,
|
|
32643
32260
|
y = point.y;
|
|
32644
32261
|
|
|
@@ -32654,16 +32271,16 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32654
32271
|
key: "getDatasets",
|
|
32655
32272
|
value: function getDatasets(props) {
|
|
32656
32273
|
var minDomain = {
|
|
32657
|
-
x:
|
|
32658
|
-
y:
|
|
32274
|
+
x: victory_core__WEBPACK_IMPORTED_MODULE_8__.getMinValue(props.domain.x),
|
|
32275
|
+
y: victory_core__WEBPACK_IMPORTED_MODULE_8__.getMinValue(props.domain.y)
|
|
32659
32276
|
};
|
|
32660
|
-
var children =
|
|
32277
|
+
var children = react__WEBPACK_IMPORTED_MODULE_5___default().Children.toArray(props.children);
|
|
32661
32278
|
|
|
32662
32279
|
var addMeta = function (data, name, child) {
|
|
32663
32280
|
var continuous = child && child.type && child.type.continuous;
|
|
32664
32281
|
var style = child ? child.props && child.props.style : props.style;
|
|
32665
32282
|
return data.map(function (datum, index) {
|
|
32666
|
-
var _Helpers$getPoint =
|
|
32283
|
+
var _Helpers$getPoint = victory_core__WEBPACK_IMPORTED_MODULE_7__.getPoint(datum),
|
|
32667
32284
|
x = _Helpers$getPoint.x,
|
|
32668
32285
|
y = _Helpers$getPoint.y,
|
|
32669
32286
|
y0 = _Helpers$getPoint.y0,
|
|
@@ -32687,7 +32304,7 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32687
32304
|
}
|
|
32688
32305
|
|
|
32689
32306
|
var getData = function (childProps) {
|
|
32690
|
-
var data =
|
|
32307
|
+
var data = victory_core__WEBPACK_IMPORTED_MODULE_9__.getData(childProps);
|
|
32691
32308
|
return Array.isArray(data) && data.length > 0 ? data : undefined;
|
|
32692
32309
|
};
|
|
32693
32310
|
|
|
@@ -32695,22 +32312,24 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32695
32312
|
var childProps = child.props || {};
|
|
32696
32313
|
var name = childProps.name || childName;
|
|
32697
32314
|
var blacklist = props.voronoiBlacklist || [];
|
|
32698
|
-
var blacklistStr = blacklist.filter((
|
|
32315
|
+
var blacklistStr = blacklist.filter(function (value) {
|
|
32316
|
+
return !!value && typeof value.valueOf() === "string";
|
|
32317
|
+
});
|
|
32699
32318
|
var blacklistRegExp = blacklist.filter((lodash_isRegExp__WEBPACK_IMPORTED_MODULE_1___default()));
|
|
32700
32319
|
var isRegExpMatch = blacklistRegExp.some(function (regExp) {
|
|
32701
32320
|
return regExp.test(name);
|
|
32702
32321
|
});
|
|
32703
32322
|
|
|
32704
|
-
if (!
|
|
32323
|
+
if (!victory_core__WEBPACK_IMPORTED_MODULE_9__.isDataComponent(child) || blacklistStr.includes(name) || isRegExpMatch) {
|
|
32705
32324
|
return null;
|
|
32706
32325
|
}
|
|
32707
32326
|
|
|
32708
|
-
var getChildData = child.type &&
|
|
32327
|
+
var getChildData = child.type && victory_core__WEBPACK_IMPORTED_MODULE_7__.isFunction(child.type.getData) ? child.type.getData : getData;
|
|
32709
32328
|
var childData = getChildData(child.props);
|
|
32710
32329
|
return childData ? addMeta(childData, name, child) : null;
|
|
32711
32330
|
};
|
|
32712
32331
|
|
|
32713
|
-
return
|
|
32332
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_7__.reduceChildren(children, iteratee, props);
|
|
32714
32333
|
}
|
|
32715
32334
|
}, {
|
|
32716
32335
|
key: "findPoints",
|
|
@@ -32740,13 +32359,13 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32740
32359
|
value: function getVoronoiPoints(props, mousePosition) {
|
|
32741
32360
|
var datasets = this.getDatasets(props);
|
|
32742
32361
|
var scaledData = datasets.map(function (d) {
|
|
32743
|
-
var _Helpers$scalePoint =
|
|
32362
|
+
var _Helpers$scalePoint = victory_core__WEBPACK_IMPORTED_MODULE_7__.scalePoint(props, d),
|
|
32744
32363
|
x = _Helpers$scalePoint.x,
|
|
32745
32364
|
y = _Helpers$scalePoint.y;
|
|
32746
32365
|
|
|
32747
32366
|
return [x, y];
|
|
32748
32367
|
});
|
|
32749
|
-
var delaunay =
|
|
32368
|
+
var delaunay = delaunay_find_lib_index_js__WEBPACK_IMPORTED_MODULE_4__["default"].from(scaledData);
|
|
32750
32369
|
var index = delaunay.find(mousePosition.x, mousePosition.y);
|
|
32751
32370
|
var withinRadius = this.withinRadius(scaledData[index], mousePosition, props.radius);
|
|
32752
32371
|
var points = withinRadius ? this.findPoints(datasets, datasets[index]) : [];
|
|
@@ -32771,7 +32390,7 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32771
32390
|
var defaultTarget = activateData ? ["data"] : [];
|
|
32772
32391
|
var targets = labels && !activateLabels ? defaultTarget : defaultTarget.concat("labels");
|
|
32773
32392
|
|
|
32774
|
-
if (
|
|
32393
|
+
if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(targets)) {
|
|
32775
32394
|
return [];
|
|
32776
32395
|
}
|
|
32777
32396
|
|
|
@@ -32805,7 +32424,7 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32805
32424
|
var defaultTarget = activateData ? ["data"] : [];
|
|
32806
32425
|
var targets = labels && !activateLabels ? defaultTarget : defaultTarget.concat("labels");
|
|
32807
32426
|
|
|
32808
|
-
if (
|
|
32427
|
+
if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(targets)) {
|
|
32809
32428
|
return [];
|
|
32810
32429
|
}
|
|
32811
32430
|
|
|
@@ -32841,14 +32460,14 @@ var VoronoiHelpersClass = /*#__PURE__*/function () {
|
|
|
32841
32460
|
}, {
|
|
32842
32461
|
key: "onActivated",
|
|
32843
32462
|
value: function onActivated(props, points) {
|
|
32844
|
-
if (
|
|
32463
|
+
if (victory_core__WEBPACK_IMPORTED_MODULE_7__.isFunction(props.onActivated)) {
|
|
32845
32464
|
props.onActivated(points, props);
|
|
32846
32465
|
}
|
|
32847
32466
|
}
|
|
32848
32467
|
}, {
|
|
32849
32468
|
key: "onDeactivated",
|
|
32850
32469
|
value: function onDeactivated(props, points) {
|
|
32851
|
-
if (
|
|
32470
|
+
if (victory_core__WEBPACK_IMPORTED_MODULE_7__.isFunction(props.onDeactivated)) {
|
|
32852
32471
|
props.onDeactivated(points, props);
|
|
32853
32472
|
}
|
|
32854
32473
|
}
|