victory 37.0.2 → 37.0.3-next.0
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 +34 -0
- package/dist/victory.js +1237 -1421
- package/dist/victory.min.js +1 -1
- package/es/index.d.ts +27 -27
- package/lib/index.d.ts +27 -27
- package/package.json +28 -31
package/dist/victory.js
CHANGED
|
@@ -1995,33 +1995,6 @@ function serializer(replacer, cycleReplacer) {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
|
|
1997
1997
|
|
|
1998
|
-
/***/ }),
|
|
1999
|
-
|
|
2000
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_LodashWrapper.js":
|
|
2001
|
-
/*!****************************************************************************************!*\
|
|
2002
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_LodashWrapper.js ***!
|
|
2003
|
-
\****************************************************************************************/
|
|
2004
|
-
/***/ (function(module) {
|
|
2005
|
-
|
|
2006
|
-
/**
|
|
2007
|
-
* This method returns `undefined`.
|
|
2008
|
-
*
|
|
2009
|
-
* @static
|
|
2010
|
-
* @memberOf _
|
|
2011
|
-
* @since 2.3.0
|
|
2012
|
-
* @category Util
|
|
2013
|
-
* @example
|
|
2014
|
-
*
|
|
2015
|
-
* _.times(2, _.noop);
|
|
2016
|
-
* // => [undefined, undefined]
|
|
2017
|
-
*/
|
|
2018
|
-
function noop() {
|
|
2019
|
-
// No operation performed.
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
module.exports = noop;
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
1998
|
/***/ }),
|
|
2026
1999
|
|
|
2027
2000
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js":
|
|
@@ -4147,94 +4120,6 @@ function createBaseFor(fromRight) {
|
|
|
4147
4120
|
module.exports = createBaseFor;
|
|
4148
4121
|
|
|
4149
4122
|
|
|
4150
|
-
/***/ }),
|
|
4151
|
-
|
|
4152
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFlow.js":
|
|
4153
|
-
/*!*************************************************************************************!*\
|
|
4154
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFlow.js ***!
|
|
4155
|
-
\*************************************************************************************/
|
|
4156
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4157
|
-
|
|
4158
|
-
var LodashWrapper = __webpack_require__(/*! ./_LodashWrapper */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_LodashWrapper.js"),
|
|
4159
|
-
flatRest = __webpack_require__(/*! ./_flatRest */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_flatRest.js"),
|
|
4160
|
-
getData = __webpack_require__(/*! ./_getData */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getData.js"),
|
|
4161
|
-
getFuncName = __webpack_require__(/*! ./_getFuncName */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getFuncName.js"),
|
|
4162
|
-
isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isArray.js"),
|
|
4163
|
-
isLaziable = __webpack_require__(/*! ./_isLaziable */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isLaziable.js");
|
|
4164
|
-
|
|
4165
|
-
/** Error message constants. */
|
|
4166
|
-
var FUNC_ERROR_TEXT = 'Expected a function';
|
|
4167
|
-
|
|
4168
|
-
/** Used to compose bitmasks for function metadata. */
|
|
4169
|
-
var WRAP_CURRY_FLAG = 8,
|
|
4170
|
-
WRAP_PARTIAL_FLAG = 32,
|
|
4171
|
-
WRAP_ARY_FLAG = 128,
|
|
4172
|
-
WRAP_REARG_FLAG = 256;
|
|
4173
|
-
|
|
4174
|
-
/**
|
|
4175
|
-
* Creates a `_.flow` or `_.flowRight` function.
|
|
4176
|
-
*
|
|
4177
|
-
* @private
|
|
4178
|
-
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
4179
|
-
* @returns {Function} Returns the new flow function.
|
|
4180
|
-
*/
|
|
4181
|
-
function createFlow(fromRight) {
|
|
4182
|
-
return flatRest(function(funcs) {
|
|
4183
|
-
var length = funcs.length,
|
|
4184
|
-
index = length,
|
|
4185
|
-
prereq = LodashWrapper.prototype.thru;
|
|
4186
|
-
|
|
4187
|
-
if (fromRight) {
|
|
4188
|
-
funcs.reverse();
|
|
4189
|
-
}
|
|
4190
|
-
while (index--) {
|
|
4191
|
-
var func = funcs[index];
|
|
4192
|
-
if (typeof func != 'function') {
|
|
4193
|
-
throw new TypeError(FUNC_ERROR_TEXT);
|
|
4194
|
-
}
|
|
4195
|
-
if (prereq && !wrapper && getFuncName(func) == 'wrapper') {
|
|
4196
|
-
var wrapper = new LodashWrapper([], true);
|
|
4197
|
-
}
|
|
4198
|
-
}
|
|
4199
|
-
index = wrapper ? index : length;
|
|
4200
|
-
while (++index < length) {
|
|
4201
|
-
func = funcs[index];
|
|
4202
|
-
|
|
4203
|
-
var funcName = getFuncName(func),
|
|
4204
|
-
data = funcName == 'wrapper' ? getData(func) : undefined;
|
|
4205
|
-
|
|
4206
|
-
if (data && isLaziable(data[0]) &&
|
|
4207
|
-
data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&
|
|
4208
|
-
!data[4].length && data[9] == 1
|
|
4209
|
-
) {
|
|
4210
|
-
wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
|
|
4211
|
-
} else {
|
|
4212
|
-
wrapper = (func.length == 1 && isLaziable(func))
|
|
4213
|
-
? wrapper[funcName]()
|
|
4214
|
-
: wrapper.thru(func);
|
|
4215
|
-
}
|
|
4216
|
-
}
|
|
4217
|
-
return function() {
|
|
4218
|
-
var args = arguments,
|
|
4219
|
-
value = args[0];
|
|
4220
|
-
|
|
4221
|
-
if (wrapper && args.length == 1 && isArray(value)) {
|
|
4222
|
-
return wrapper.plant(value).value();
|
|
4223
|
-
}
|
|
4224
|
-
var index = 0,
|
|
4225
|
-
result = length ? funcs[index].apply(this, args) : value;
|
|
4226
|
-
|
|
4227
|
-
while (++index < length) {
|
|
4228
|
-
result = funcs[index].call(this, result);
|
|
4229
|
-
}
|
|
4230
|
-
return result;
|
|
4231
|
-
};
|
|
4232
|
-
});
|
|
4233
|
-
}
|
|
4234
|
-
|
|
4235
|
-
module.exports = createFlow;
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
4123
|
/***/ }),
|
|
4239
4124
|
|
|
4240
4125
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createRange.js":
|
|
@@ -4690,61 +4575,6 @@ function nativeKeysIn(object) {
|
|
|
4690
4575
|
module.exports = nativeKeysIn;
|
|
4691
4576
|
|
|
4692
4577
|
|
|
4693
|
-
/***/ }),
|
|
4694
|
-
|
|
4695
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getData.js":
|
|
4696
|
-
/*!**********************************************************************************!*\
|
|
4697
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getData.js ***!
|
|
4698
|
-
\**********************************************************************************/
|
|
4699
|
-
/***/ (function(module) {
|
|
4700
|
-
|
|
4701
|
-
/**
|
|
4702
|
-
* This method returns `undefined`.
|
|
4703
|
-
*
|
|
4704
|
-
* @static
|
|
4705
|
-
* @memberOf _
|
|
4706
|
-
* @since 2.3.0
|
|
4707
|
-
* @category Util
|
|
4708
|
-
* @example
|
|
4709
|
-
*
|
|
4710
|
-
* _.times(2, _.noop);
|
|
4711
|
-
* // => [undefined, undefined]
|
|
4712
|
-
*/
|
|
4713
|
-
function noop() {
|
|
4714
|
-
// No operation performed.
|
|
4715
|
-
}
|
|
4716
|
-
|
|
4717
|
-
module.exports = noop;
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
/***/ }),
|
|
4721
|
-
|
|
4722
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getFuncName.js":
|
|
4723
|
-
/*!**************************************************************************************!*\
|
|
4724
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getFuncName.js ***!
|
|
4725
|
-
\**************************************************************************************/
|
|
4726
|
-
/***/ (function(module) {
|
|
4727
|
-
|
|
4728
|
-
/**
|
|
4729
|
-
* This method returns an empty string.
|
|
4730
|
-
*
|
|
4731
|
-
* @static
|
|
4732
|
-
* @memberOf _
|
|
4733
|
-
* @since 4.13.0
|
|
4734
|
-
* @category Util
|
|
4735
|
-
* @returns {string} Returns the empty string.
|
|
4736
|
-
* @example
|
|
4737
|
-
*
|
|
4738
|
-
* _.times(2, _.stubString);
|
|
4739
|
-
* // => ['', '']
|
|
4740
|
-
*/
|
|
4741
|
-
function stubString() {
|
|
4742
|
-
return '';
|
|
4743
|
-
}
|
|
4744
|
-
|
|
4745
|
-
module.exports = stubString;
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
4578
|
/***/ }),
|
|
4749
4579
|
|
|
4750
4580
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMatchData.js":
|
|
@@ -5031,34 +4861,6 @@ function isKey(value, object) {
|
|
|
5031
4861
|
module.exports = isKey;
|
|
5032
4862
|
|
|
5033
4863
|
|
|
5034
|
-
/***/ }),
|
|
5035
|
-
|
|
5036
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isLaziable.js":
|
|
5037
|
-
/*!*************************************************************************************!*\
|
|
5038
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isLaziable.js ***!
|
|
5039
|
-
\*************************************************************************************/
|
|
5040
|
-
/***/ (function(module) {
|
|
5041
|
-
|
|
5042
|
-
/**
|
|
5043
|
-
* This method returns `false`.
|
|
5044
|
-
*
|
|
5045
|
-
* @static
|
|
5046
|
-
* @memberOf _
|
|
5047
|
-
* @since 4.13.0
|
|
5048
|
-
* @category Util
|
|
5049
|
-
* @returns {boolean} Returns `false`.
|
|
5050
|
-
* @example
|
|
5051
|
-
*
|
|
5052
|
-
* _.times(2, _.stubFalse);
|
|
5053
|
-
* // => [false, false]
|
|
5054
|
-
*/
|
|
5055
|
-
function stubFalse() {
|
|
5056
|
-
return false;
|
|
5057
|
-
}
|
|
5058
|
-
|
|
5059
|
-
module.exports = stubFalse;
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
4864
|
/***/ }),
|
|
5063
4865
|
|
|
5064
4866
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isPrototype.js":
|
|
@@ -6150,43 +5952,6 @@ function flatten(array) {
|
|
|
6150
5952
|
module.exports = flatten;
|
|
6151
5953
|
|
|
6152
5954
|
|
|
6153
|
-
/***/ }),
|
|
6154
|
-
|
|
6155
|
-
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flow.js":
|
|
6156
|
-
/*!******************************************************************************!*\
|
|
6157
|
-
!*** ../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/flow.js ***!
|
|
6158
|
-
\******************************************************************************/
|
|
6159
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6160
|
-
|
|
6161
|
-
var createFlow = __webpack_require__(/*! ./_createFlow */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_createFlow.js");
|
|
6162
|
-
|
|
6163
|
-
/**
|
|
6164
|
-
* Creates a function that returns the result of invoking the given functions
|
|
6165
|
-
* with the `this` binding of the created function, where each successive
|
|
6166
|
-
* invocation is supplied the return value of the previous.
|
|
6167
|
-
*
|
|
6168
|
-
* @static
|
|
6169
|
-
* @memberOf _
|
|
6170
|
-
* @since 3.0.0
|
|
6171
|
-
* @category Util
|
|
6172
|
-
* @param {...(Function|Function[])} [funcs] The functions to invoke.
|
|
6173
|
-
* @returns {Function} Returns the new composite function.
|
|
6174
|
-
* @see _.flowRight
|
|
6175
|
-
* @example
|
|
6176
|
-
*
|
|
6177
|
-
* function square(n) {
|
|
6178
|
-
* return n * n;
|
|
6179
|
-
* }
|
|
6180
|
-
*
|
|
6181
|
-
* var addSquare = _.flow([_.add, square]);
|
|
6182
|
-
* addSquare(1, 2);
|
|
6183
|
-
* // => 9
|
|
6184
|
-
*/
|
|
6185
|
-
var flow = createFlow();
|
|
6186
|
-
|
|
6187
|
-
module.exports = flow;
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
5955
|
/***/ }),
|
|
6191
5956
|
|
|
6192
5957
|
/***/ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forOwn.js":
|
|
@@ -11770,8 +11535,9 @@ const BrushHelpers = {
|
|
|
11770
11535
|
__webpack_require__.r(__webpack_exports__);
|
|
11771
11536
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11772
11537
|
/* harmony export */ "BrushHelpers": function() { return /* reexport safe */ _brush_helpers__WEBPACK_IMPORTED_MODULE_1__.BrushHelpers; },
|
|
11538
|
+
/* harmony export */ "VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__.VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS; },
|
|
11773
11539
|
/* harmony export */ "VictoryBrushContainer": function() { return /* reexport safe */ _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__.VictoryBrushContainer; },
|
|
11774
|
-
/* harmony export */ "
|
|
11540
|
+
/* harmony export */ "useVictoryBrushContainer": function() { return /* reexport safe */ _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__.useVictoryBrushContainer; }
|
|
11775
11541
|
/* harmony export */ });
|
|
11776
11542
|
/* harmony import */ var _victory_brush_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-brush-container */ "../../victory-brush-container/es/victory-brush-container.js");
|
|
11777
11543
|
/* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./brush-helpers */ "../../victory-brush-container/es/brush-helpers.js");
|
|
@@ -11789,17 +11555,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11789
11555
|
"use strict";
|
|
11790
11556
|
__webpack_require__.r(__webpack_exports__);
|
|
11791
11557
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11558
|
+
/* harmony export */ "VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS": function() { return /* binding */ VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS; },
|
|
11792
11559
|
/* harmony export */ "VictoryBrushContainer": function() { return /* binding */ VictoryBrushContainer; },
|
|
11793
|
-
/* harmony export */ "
|
|
11560
|
+
/* harmony export */ "useVictoryBrushContainer": function() { return /* binding */ useVictoryBrushContainer; }
|
|
11794
11561
|
/* harmony export */ });
|
|
11795
11562
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
11796
11563
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
11797
11564
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
11798
11565
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
11799
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
11800
|
-
/* harmony import */ var
|
|
11801
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
11802
|
-
/* harmony import */ var
|
|
11566
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/rect.js");
|
|
11567
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/selection.js");
|
|
11568
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
11569
|
+
/* harmony import */ var _brush_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./brush-helpers */ "../../victory-brush-container/es/brush-helpers.js");
|
|
11803
11570
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
|
|
11804
11571
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_2__);
|
|
11805
11572
|
|
|
@@ -11807,172 +11574,176 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11807
11574
|
|
|
11808
11575
|
|
|
11809
11576
|
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11577
|
+
const VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS = {
|
|
11578
|
+
allowDrag: true,
|
|
11579
|
+
allowDraw: true,
|
|
11580
|
+
allowResize: true,
|
|
11581
|
+
brushComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
|
|
11582
|
+
brushStyle: {
|
|
11583
|
+
stroke: "transparent",
|
|
11584
|
+
fill: "black",
|
|
11585
|
+
fillOpacity: 0.1
|
|
11586
|
+
},
|
|
11587
|
+
handleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
|
|
11588
|
+
handleStyle: {
|
|
11589
|
+
stroke: "transparent",
|
|
11590
|
+
fill: "transparent"
|
|
11591
|
+
},
|
|
11592
|
+
handleWidth: 8,
|
|
11593
|
+
mouseMoveThreshold: 0
|
|
11594
|
+
};
|
|
11595
|
+
const useVictoryBrushContainer = initialProps => {
|
|
11596
|
+
const props = {
|
|
11597
|
+
...VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS,
|
|
11598
|
+
...initialProps
|
|
11599
|
+
};
|
|
11600
|
+
const {
|
|
11601
|
+
children
|
|
11602
|
+
} = props;
|
|
11603
|
+
const getSelectBox = coordinates => {
|
|
11604
|
+
const {
|
|
11605
|
+
x,
|
|
11606
|
+
y
|
|
11607
|
+
} = coordinates;
|
|
11608
|
+
const {
|
|
11609
|
+
brushStyle,
|
|
11610
|
+
brushComponent,
|
|
11611
|
+
name
|
|
11612
|
+
} = props;
|
|
11613
|
+
const brushComponentStyle = brushComponent.props && brushComponent.props.style;
|
|
11614
|
+
const cursor = !props.allowDrag && !props.allowResize ? "auto" : "move";
|
|
11615
|
+
return x[0] !== x[1] && y[0] !== y[1] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(brushComponent, {
|
|
11616
|
+
key: `${name}-brush`,
|
|
11617
|
+
width: Math.abs(x[1] - x[0]) || 1,
|
|
11618
|
+
height: Math.abs(y[1] - y[0]) || 1,
|
|
11619
|
+
x: Math.min(x[0], x[1]),
|
|
11620
|
+
y: Math.min(y[0], y[1]),
|
|
11621
|
+
cursor,
|
|
11622
|
+
style: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, brushComponentStyle, brushStyle)
|
|
11623
|
+
}) : null;
|
|
11624
|
+
};
|
|
11625
|
+
const getCursorPointers = () => {
|
|
11626
|
+
const cursors = {
|
|
11627
|
+
yProps: "ns-resize",
|
|
11628
|
+
xProps: "ew-resize"
|
|
11832
11629
|
};
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
},
|
|
11840
|
-
onTouchStart: (evt, targetProps) => {
|
|
11841
|
-
return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onMouseDown(evt, targetProps);
|
|
11842
|
-
},
|
|
11843
|
-
onGlobalMouseMove: (evt, targetProps) => {
|
|
11844
|
-
return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseMove(evt, targetProps);
|
|
11845
|
-
},
|
|
11846
|
-
onGlobalTouchMove: (evt, targetProps) => {
|
|
11847
|
-
return props.disable || !targetProps.isPanning && !targetProps.isSelecting ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseMove(evt, targetProps);
|
|
11848
|
-
},
|
|
11849
|
-
onGlobalMouseUp: (evt, targetProps) => {
|
|
11850
|
-
return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseUp(evt, targetProps);
|
|
11851
|
-
},
|
|
11852
|
-
onGlobalTouchEnd: (evt, targetProps) => {
|
|
11853
|
-
return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseUp(evt, targetProps);
|
|
11854
|
-
},
|
|
11855
|
-
onGlobalTouchCancel: (evt, targetProps) => {
|
|
11856
|
-
return props.disable ? {} : _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.onGlobalMouseUp(evt, targetProps);
|
|
11857
|
-
}
|
|
11858
|
-
}
|
|
11859
|
-
}];
|
|
11860
|
-
}
|
|
11861
|
-
getSelectBox(props, coordinates) {
|
|
11862
|
-
const {
|
|
11863
|
-
x,
|
|
11864
|
-
y
|
|
11865
|
-
} = coordinates;
|
|
11866
|
-
const {
|
|
11867
|
-
brushStyle,
|
|
11868
|
-
brushComponent,
|
|
11869
|
-
name
|
|
11870
|
-
} = props;
|
|
11871
|
-
const brushComponentStyle = brushComponent.props && brushComponent.props.style;
|
|
11872
|
-
const cursor = !props.allowDrag && !props.allowResize ? "auto" : "move";
|
|
11873
|
-
return x[0] !== x[1] && y[0] !== y[1] ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(brushComponent, {
|
|
11874
|
-
key: `${name}-brush`,
|
|
11875
|
-
width: Math.abs(x[1] - x[0]) || 1,
|
|
11876
|
-
height: Math.abs(y[1] - y[0]) || 1,
|
|
11877
|
-
x: Math.min(x[0], x[1]),
|
|
11878
|
-
y: Math.min(y[0], y[1]),
|
|
11879
|
-
cursor,
|
|
11880
|
-
style: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, brushComponentStyle, brushStyle)
|
|
11881
|
-
}) : null;
|
|
11882
|
-
}
|
|
11883
|
-
getCursorPointers(props) {
|
|
11884
|
-
const cursors = {
|
|
11885
|
-
yProps: "ns-resize",
|
|
11886
|
-
xProps: "ew-resize"
|
|
11887
|
-
};
|
|
11888
|
-
if (!props.allowResize && props.allowDrag) {
|
|
11889
|
-
cursors.xProps = "move";
|
|
11890
|
-
cursors.yProps = "move";
|
|
11891
|
-
} else if (!props.allowResize && !props.allowDrag) {
|
|
11892
|
-
cursors.xProps = "auto";
|
|
11893
|
-
cursors.yProps = "auto";
|
|
11894
|
-
}
|
|
11895
|
-
return cursors;
|
|
11896
|
-
}
|
|
11897
|
-
getHandles(props, domain) {
|
|
11898
|
-
const {
|
|
11899
|
-
handleWidth,
|
|
11900
|
-
handleStyle,
|
|
11901
|
-
handleComponent,
|
|
11902
|
-
name
|
|
11903
|
-
} = props;
|
|
11904
|
-
const domainBox = _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.getDomainBox(props, domain);
|
|
11905
|
-
const {
|
|
11906
|
-
x1,
|
|
11907
|
-
x2,
|
|
11908
|
-
y1,
|
|
11909
|
-
y2
|
|
11910
|
-
} = domainBox;
|
|
11911
|
-
const {
|
|
11912
|
-
top,
|
|
11913
|
-
bottom,
|
|
11914
|
-
left,
|
|
11915
|
-
right
|
|
11916
|
-
} = _brush_helpers__WEBPACK_IMPORTED_MODULE_5__.BrushHelpers.getHandles(props, domainBox);
|
|
11917
|
-
const width = Math.abs(x2 - x1) || 1;
|
|
11918
|
-
const height = Math.abs(y2 - y1) || 1;
|
|
11919
|
-
const handleComponentStyle = handleComponent.props && handleComponent.props.style || {};
|
|
11920
|
-
const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, handleComponentStyle, handleStyle);
|
|
11921
|
-
const cursors = this.getCursorPointers(props);
|
|
11922
|
-
const yProps = {
|
|
11923
|
-
style,
|
|
11924
|
-
width,
|
|
11925
|
-
height: handleWidth,
|
|
11926
|
-
cursor: cursors.yProps
|
|
11927
|
-
};
|
|
11928
|
-
const xProps = {
|
|
11929
|
-
style,
|
|
11930
|
-
width: handleWidth,
|
|
11931
|
-
height,
|
|
11932
|
-
cursor: cursors.xProps
|
|
11933
|
-
};
|
|
11934
|
-
const handleProps = {
|
|
11935
|
-
top: top && Object.assign({
|
|
11936
|
-
x: top.x1,
|
|
11937
|
-
y: top.y1
|
|
11938
|
-
}, yProps),
|
|
11939
|
-
bottom: bottom && Object.assign({
|
|
11940
|
-
x: bottom.x1,
|
|
11941
|
-
y: bottom.y1
|
|
11942
|
-
}, yProps),
|
|
11943
|
-
left: left && Object.assign({
|
|
11944
|
-
y: left.y1,
|
|
11945
|
-
x: left.x1
|
|
11946
|
-
}, xProps),
|
|
11947
|
-
right: right && Object.assign({
|
|
11948
|
-
y: right.y1,
|
|
11949
|
-
x: right.x1
|
|
11950
|
-
}, xProps)
|
|
11951
|
-
};
|
|
11952
|
-
const handles = ["top", "bottom", "left", "right"].reduce((memo, curr) => handleProps[curr] ? memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(handleComponent, Object.assign({
|
|
11953
|
-
key: `${name}-handle-${curr}`
|
|
11954
|
-
}, handleProps[curr]))) : memo, []);
|
|
11955
|
-
return handles.length ? handles : null;
|
|
11956
|
-
}
|
|
11957
|
-
getRect(props) {
|
|
11958
|
-
const {
|
|
11959
|
-
currentDomain,
|
|
11960
|
-
cachedBrushDomain
|
|
11961
|
-
} = props;
|
|
11962
|
-
const brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.brushDomain, props.domain);
|
|
11963
|
-
const domain = react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default()(brushDomain, cachedBrushDomain) ? lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, currentDomain, brushDomain) : brushDomain;
|
|
11964
|
-
const coordinates = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomainCoordinates(props, domain);
|
|
11965
|
-
const selectBox = this.getSelectBox(props, coordinates);
|
|
11966
|
-
return selectBox ? [selectBox, this.getHandles(props, domain)] : [];
|
|
11967
|
-
}
|
|
11968
|
-
|
|
11969
|
-
// Overrides method in VictoryContainer
|
|
11970
|
-
getChildren(props) {
|
|
11971
|
-
return [...react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(props.children), ...this.getRect(props)];
|
|
11630
|
+
if (!props.allowResize && props.allowDrag) {
|
|
11631
|
+
cursors.xProps = "move";
|
|
11632
|
+
cursors.yProps = "move";
|
|
11633
|
+
} else if (!props.allowResize && !props.allowDrag) {
|
|
11634
|
+
cursors.xProps = "auto";
|
|
11635
|
+
cursors.yProps = "auto";
|
|
11972
11636
|
}
|
|
11637
|
+
return cursors;
|
|
11973
11638
|
};
|
|
11974
|
-
|
|
11975
|
-
const
|
|
11639
|
+
const getHandles = domain => {
|
|
11640
|
+
const {
|
|
11641
|
+
handleWidth,
|
|
11642
|
+
handleStyle,
|
|
11643
|
+
handleComponent,
|
|
11644
|
+
name
|
|
11645
|
+
} = props;
|
|
11646
|
+
const domainBox = _brush_helpers__WEBPACK_IMPORTED_MODULE_4__.BrushHelpers.getDomainBox(props, domain);
|
|
11647
|
+
const {
|
|
11648
|
+
x1,
|
|
11649
|
+
x2,
|
|
11650
|
+
y1,
|
|
11651
|
+
y2
|
|
11652
|
+
} = domainBox;
|
|
11653
|
+
const {
|
|
11654
|
+
top,
|
|
11655
|
+
bottom,
|
|
11656
|
+
left,
|
|
11657
|
+
right
|
|
11658
|
+
} = _brush_helpers__WEBPACK_IMPORTED_MODULE_4__.BrushHelpers.getHandles(props, domainBox);
|
|
11659
|
+
const width = Math.abs(x2 - x1) || 1;
|
|
11660
|
+
const height = Math.abs(y2 - y1) || 1;
|
|
11661
|
+
const handleComponentStyle = handleComponent.props && handleComponent.props.style || {};
|
|
11662
|
+
const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, handleComponentStyle, handleStyle);
|
|
11663
|
+
const cursors = getCursorPointers();
|
|
11664
|
+
const yProps = {
|
|
11665
|
+
style,
|
|
11666
|
+
width,
|
|
11667
|
+
height: handleWidth,
|
|
11668
|
+
cursor: cursors.yProps
|
|
11669
|
+
};
|
|
11670
|
+
const xProps = {
|
|
11671
|
+
style,
|
|
11672
|
+
width: handleWidth,
|
|
11673
|
+
height,
|
|
11674
|
+
cursor: cursors.xProps
|
|
11675
|
+
};
|
|
11676
|
+
const handleProps = {
|
|
11677
|
+
top: top && Object.assign({
|
|
11678
|
+
x: top.x1,
|
|
11679
|
+
y: top.y1
|
|
11680
|
+
}, yProps),
|
|
11681
|
+
bottom: bottom && Object.assign({
|
|
11682
|
+
x: bottom.x1,
|
|
11683
|
+
y: bottom.y1
|
|
11684
|
+
}, yProps),
|
|
11685
|
+
left: left && Object.assign({
|
|
11686
|
+
y: left.y1,
|
|
11687
|
+
x: left.x1
|
|
11688
|
+
}, xProps),
|
|
11689
|
+
right: right && Object.assign({
|
|
11690
|
+
y: right.y1,
|
|
11691
|
+
x: right.x1
|
|
11692
|
+
}, xProps)
|
|
11693
|
+
};
|
|
11694
|
+
const handles = ["top", "bottom", "left", "right"].reduce((memo, curr) => handleProps[curr] ? memo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(handleComponent, Object.assign({
|
|
11695
|
+
key: `${name}-handle-${curr}`
|
|
11696
|
+
}, handleProps[curr]))) : memo, []);
|
|
11697
|
+
return handles.length ? handles : null;
|
|
11698
|
+
};
|
|
11699
|
+
const getRect = () => {
|
|
11700
|
+
const {
|
|
11701
|
+
currentDomain,
|
|
11702
|
+
cachedBrushDomain
|
|
11703
|
+
} = props;
|
|
11704
|
+
const brushDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.brushDomain, props.domain);
|
|
11705
|
+
const domain = react_fast_compare__WEBPACK_IMPORTED_MODULE_2___default()(brushDomain, cachedBrushDomain) ? lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, currentDomain, brushDomain) : brushDomain;
|
|
11706
|
+
const coordinates = victory_core__WEBPACK_IMPORTED_MODULE_5__.getDomainCoordinates(props, domain);
|
|
11707
|
+
const selectBox = getSelectBox(coordinates);
|
|
11708
|
+
return selectBox ? [selectBox, getHandles(domain)] : [];
|
|
11709
|
+
};
|
|
11710
|
+
return {
|
|
11711
|
+
props,
|
|
11712
|
+
children: [...react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(children), ...getRect()]
|
|
11713
|
+
};
|
|
11714
|
+
};
|
|
11715
|
+
const VictoryBrushContainer = initialProps => {
|
|
11716
|
+
const {
|
|
11717
|
+
props,
|
|
11718
|
+
children
|
|
11719
|
+
} = useVictoryBrushContainer(initialProps);
|
|
11720
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer, props, children);
|
|
11721
|
+
};
|
|
11722
|
+
VictoryBrushContainer.role = "container";
|
|
11723
|
+
VictoryBrushContainer.defaultEvents = initialProps => {
|
|
11724
|
+
const props = {
|
|
11725
|
+
...VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS,
|
|
11726
|
+
...initialProps
|
|
11727
|
+
};
|
|
11728
|
+
const createEventHandler = (handler, isDisabled) =>
|
|
11729
|
+
// eslint-disable-next-line max-params
|
|
11730
|
+
(event, targetProps, eventKey, context) => props.disable || isDisabled?.(targetProps) ? {} : handler(event, {
|
|
11731
|
+
...props,
|
|
11732
|
+
...targetProps
|
|
11733
|
+
}, eventKey, context);
|
|
11734
|
+
return [{
|
|
11735
|
+
target: "parent",
|
|
11736
|
+
eventHandlers: {
|
|
11737
|
+
onMouseDown: createEventHandler(_brush_helpers__WEBPACK_IMPORTED_MODULE_4__.BrushHelpers.onMouseDown),
|
|
11738
|
+
onTouchStart: createEventHandler(_brush_helpers__WEBPACK_IMPORTED_MODULE_4__.BrushHelpers.onMouseDown),
|
|
11739
|
+
onGlobalMouseMove: createEventHandler(_brush_helpers__WEBPACK_IMPORTED_MODULE_4__.BrushHelpers.onGlobalMouseMove, targetProps => !targetProps.isPanning && !targetProps.isSelecting),
|
|
11740
|
+
onGlobalTouchMove: createEventHandler(_brush_helpers__WEBPACK_IMPORTED_MODULE_4__.BrushHelpers.onGlobalMouseMove, targetProps => !targetProps.isPanning && !targetProps.isSelecting),
|
|
11741
|
+
onGlobalMouseUp: createEventHandler(_brush_helpers__WEBPACK_IMPORTED_MODULE_4__.BrushHelpers.onGlobalMouseUp),
|
|
11742
|
+
onGlobalTouchEnd: createEventHandler(_brush_helpers__WEBPACK_IMPORTED_MODULE_4__.BrushHelpers.onGlobalMouseUp),
|
|
11743
|
+
onGlobalTouchCancel: createEventHandler(_brush_helpers__WEBPACK_IMPORTED_MODULE_4__.BrushHelpers.onGlobalMouseUp)
|
|
11744
|
+
}
|
|
11745
|
+
}];
|
|
11746
|
+
};
|
|
11976
11747
|
|
|
11977
11748
|
/***/ }),
|
|
11978
11749
|
|
|
@@ -14186,53 +13957,58 @@ VictoryChart.expectedComponents = ["groupComponent", "containerComponent"];
|
|
|
14186
13957
|
"use strict";
|
|
14187
13958
|
__webpack_require__.r(__webpack_exports__);
|
|
14188
13959
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14189
|
-
/* harmony export */ "Arc": function() { return /* reexport safe */
|
|
14190
|
-
/* harmony export */ "Axis": function() { return /* reexport safe */
|
|
14191
|
-
/* harmony export */ "Background": function() { return /* reexport safe */
|
|
14192
|
-
/* harmony export */ "Border": function() { return /* reexport safe */
|
|
14193
|
-
/* harmony export */ "Box": function() { return /* reexport safe */
|
|
14194
|
-
/* harmony export */ "Circle": function() { return /* reexport safe */
|
|
14195
|
-
/* harmony export */ "ClipPath": function() { return /* reexport safe */
|
|
14196
|
-
/* harmony export */ "Collection": function() { return /* reexport safe */
|
|
14197
|
-
/* harmony export */ "Data": function() { return /* reexport safe */
|
|
14198
|
-
/* harmony export */ "DefaultTransitions": function() { return /* reexport safe */
|
|
14199
|
-
/* harmony export */ "Domain": function() { return /* reexport safe */
|
|
14200
|
-
/* harmony export */ "Events": function() { return /* reexport safe */
|
|
14201
|
-
/* harmony export */ "Helpers": function() { return /* reexport safe */
|
|
14202
|
-
/* harmony export */ "Hooks": function() { return /* reexport safe */
|
|
14203
|
-
/* harmony export */ "Immutable": function() { return /* reexport safe */
|
|
14204
|
-
/* harmony export */ "LabelHelpers": function() { return /* reexport safe */
|
|
14205
|
-
/* harmony export */ "Line": function() { return /* reexport safe */
|
|
14206
|
-
/* harmony export */ "LineHelpers": function() { return /* reexport safe */
|
|
14207
|
-
/* harmony export */ "LineSegment": function() { return /* reexport safe */
|
|
14208
|
-
/* harmony export */ "Log": function() { return /* reexport safe */
|
|
14209
|
-
/* harmony export */ "Path": function() { return /* reexport safe */
|
|
14210
|
-
/* harmony export */ "Point": function() { return /* reexport safe */
|
|
14211
|
-
/* harmony export */ "PointPathHelpers": function() { return /* reexport safe */
|
|
13960
|
+
/* harmony export */ "Arc": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Arc; },
|
|
13961
|
+
/* harmony export */ "Axis": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Axis; },
|
|
13962
|
+
/* harmony export */ "Background": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Background; },
|
|
13963
|
+
/* harmony export */ "Border": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Border; },
|
|
13964
|
+
/* harmony export */ "Box": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_12__.Border; },
|
|
13965
|
+
/* harmony export */ "Circle": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Circle; },
|
|
13966
|
+
/* harmony export */ "ClipPath": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.ClipPath; },
|
|
13967
|
+
/* harmony export */ "Collection": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Collection; },
|
|
13968
|
+
/* harmony export */ "Data": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Data; },
|
|
13969
|
+
/* harmony export */ "DefaultTransitions": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.DefaultTransitions; },
|
|
13970
|
+
/* harmony export */ "Domain": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Domain; },
|
|
13971
|
+
/* harmony export */ "Events": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Events; },
|
|
13972
|
+
/* harmony export */ "Helpers": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Helpers; },
|
|
13973
|
+
/* harmony export */ "Hooks": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Hooks; },
|
|
13974
|
+
/* harmony export */ "Immutable": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Immutable; },
|
|
13975
|
+
/* harmony export */ "LabelHelpers": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.LabelHelpers; },
|
|
13976
|
+
/* harmony export */ "Line": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Line; },
|
|
13977
|
+
/* harmony export */ "LineHelpers": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.LineHelpers; },
|
|
13978
|
+
/* harmony export */ "LineSegment": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.LineSegment; },
|
|
13979
|
+
/* harmony export */ "Log": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Log; },
|
|
13980
|
+
/* harmony export */ "Path": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Path; },
|
|
13981
|
+
/* harmony export */ "Point": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Point; },
|
|
13982
|
+
/* harmony export */ "PointPathHelpers": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.PointPathHelpers; },
|
|
14212
13983
|
/* harmony export */ "Portal": function() { return /* reexport safe */ _victory_portal_portal__WEBPACK_IMPORTED_MODULE_7__.Portal; },
|
|
14213
|
-
/* harmony export */ "PortalContext": function() { return /* reexport safe */
|
|
14214
|
-
/* harmony export */ "
|
|
14215
|
-
/* harmony export */ "
|
|
14216
|
-
/* harmony export */ "
|
|
14217
|
-
/* harmony export */ "
|
|
14218
|
-
/* harmony export */ "
|
|
14219
|
-
/* harmony export */ "
|
|
14220
|
-
/* harmony export */ "
|
|
14221
|
-
/* harmony export */ "
|
|
14222
|
-
/* harmony export */ "
|
|
14223
|
-
/* harmony export */ "
|
|
14224
|
-
/* harmony export */ "
|
|
13984
|
+
/* harmony export */ "PortalContext": function() { return /* reexport safe */ _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_9__.PortalContext; },
|
|
13985
|
+
/* harmony export */ "PortalOutlet": function() { return /* reexport safe */ _victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_10__.PortalOutlet; },
|
|
13986
|
+
/* harmony export */ "PortalProvider": function() { return /* reexport safe */ _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_9__.PortalProvider; },
|
|
13987
|
+
/* harmony export */ "Rect": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Rect; },
|
|
13988
|
+
/* harmony export */ "Scale": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Scale; },
|
|
13989
|
+
/* harmony export */ "Selection": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Selection; },
|
|
13990
|
+
/* harmony export */ "Style": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Style; },
|
|
13991
|
+
/* harmony export */ "TSpan": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.TSpan; },
|
|
13992
|
+
/* harmony export */ "Text": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Text; },
|
|
13993
|
+
/* harmony export */ "TextSize": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.TextSize; },
|
|
13994
|
+
/* harmony export */ "Timer": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Timer; },
|
|
13995
|
+
/* harmony export */ "TimerContext": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.TimerContext; },
|
|
13996
|
+
/* harmony export */ "Transitions": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Transitions; },
|
|
13997
|
+
/* harmony export */ "UserProps": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.UserProps; },
|
|
14225
13998
|
/* harmony export */ "VictoryAccessibleGroup": function() { return /* reexport safe */ _victory_accessible_group_victory_accessible_group__WEBPACK_IMPORTED_MODULE_0__.VictoryAccessibleGroup; },
|
|
14226
13999
|
/* harmony export */ "VictoryAnimation": function() { return /* reexport safe */ _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_1__.VictoryAnimation; },
|
|
14227
14000
|
/* harmony export */ "VictoryClipContainer": function() { return /* reexport safe */ _victory_clip_container_victory_clip_container__WEBPACK_IMPORTED_MODULE_5__.VictoryClipContainer; },
|
|
14228
14001
|
/* harmony export */ "VictoryContainer": function() { return /* reexport safe */ _victory_container_victory_container__WEBPACK_IMPORTED_MODULE_2__.VictoryContainer; },
|
|
14229
14002
|
/* harmony export */ "VictoryLabel": function() { return /* reexport safe */ _victory_label_victory_label__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel; },
|
|
14230
|
-
/* harmony export */ "VictoryPortal": function() { return /* reexport safe */
|
|
14003
|
+
/* harmony export */ "VictoryPortal": function() { return /* reexport safe */ _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_8__.VictoryPortal; },
|
|
14231
14004
|
/* harmony export */ "VictoryTheme": function() { return /* reexport safe */ _victory_theme_victory_theme__WEBPACK_IMPORTED_MODULE_6__.VictoryTheme; },
|
|
14232
14005
|
/* harmony export */ "VictoryTransition": function() { return /* reexport safe */ _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_4__.VictoryTransition; },
|
|
14233
|
-
/* harmony export */ "Whisker": function() { return /* reexport safe */
|
|
14234
|
-
/* harmony export */ "Wrapper": function() { return /* reexport safe */
|
|
14235
|
-
/* harmony export */ "addEvents": function() { return /* reexport safe */
|
|
14006
|
+
/* harmony export */ "Whisker": function() { return /* reexport safe */ _victory_primitives__WEBPACK_IMPORTED_MODULE_11__.Whisker; },
|
|
14007
|
+
/* harmony export */ "Wrapper": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.Wrapper; },
|
|
14008
|
+
/* harmony export */ "addEvents": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.addEvents; },
|
|
14009
|
+
/* harmony export */ "mergeRefs": function() { return /* reexport safe */ _victory_util__WEBPACK_IMPORTED_MODULE_13__.mergeRefs; },
|
|
14010
|
+
/* harmony export */ "usePortalContext": function() { return /* reexport safe */ _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_9__.usePortalContext; },
|
|
14011
|
+
/* harmony export */ "useVictoryContainer": function() { return /* reexport safe */ _victory_container_victory_container__WEBPACK_IMPORTED_MODULE_2__.useVictoryContainer; }
|
|
14236
14012
|
/* harmony export */ });
|
|
14237
14013
|
/* harmony import */ var _victory_accessible_group_victory_accessible_group__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-accessible-group/victory-accessible-group */ "../../victory-core/es/victory-accessible-group/victory-accessible-group.js");
|
|
14238
14014
|
/* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
|
|
@@ -14242,11 +14018,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14242
14018
|
/* harmony import */ var _victory_clip_container_victory_clip_container__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./victory-clip-container/victory-clip-container */ "../../victory-core/es/victory-clip-container/victory-clip-container.js");
|
|
14243
14019
|
/* harmony import */ var _victory_theme_victory_theme__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./victory-theme/victory-theme */ "../../victory-core/es/victory-theme/victory-theme.js");
|
|
14244
14020
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
14245
|
-
/* harmony import */ var
|
|
14246
|
-
/* harmony import */ var
|
|
14247
|
-
/* harmony import */ var
|
|
14248
|
-
/* harmony import */ var _victory_primitives__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./victory-primitives */ "../../victory-core/es/victory-primitives/
|
|
14249
|
-
/* harmony import */ var
|
|
14021
|
+
/* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
|
|
14022
|
+
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
14023
|
+
/* harmony import */ var _victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./victory-portal/portal-outlet */ "../../victory-core/es/victory-portal/portal-outlet.js");
|
|
14024
|
+
/* harmony import */ var _victory_primitives__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./victory-primitives */ "../../victory-core/es/victory-primitives/index.js");
|
|
14025
|
+
/* harmony import */ var _victory_primitives__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./victory-primitives */ "../../victory-core/es/victory-primitives/border.js");
|
|
14026
|
+
/* harmony import */ var _victory_util__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./victory-util */ "../../victory-core/es/victory-util/index.js");
|
|
14027
|
+
|
|
14250
14028
|
|
|
14251
14029
|
|
|
14252
14030
|
|
|
@@ -14881,23 +14659,18 @@ class VictoryClipContainer extends (react__WEBPACK_IMPORTED_MODULE_3___default()
|
|
|
14881
14659
|
"use strict";
|
|
14882
14660
|
__webpack_require__.r(__webpack_exports__);
|
|
14883
14661
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14884
|
-
/* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; }
|
|
14662
|
+
/* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; },
|
|
14663
|
+
/* harmony export */ "useVictoryContainer": function() { return /* binding */ useVictoryContainer; }
|
|
14885
14664
|
/* harmony export */ });
|
|
14886
|
-
/* harmony import */ var
|
|
14887
|
-
/* harmony import */ var
|
|
14888
|
-
/* harmony import */ var
|
|
14889
|
-
/* harmony import */ var
|
|
14890
|
-
/* harmony import */ var
|
|
14891
|
-
/* harmony import */ var
|
|
14892
|
-
/* harmony import */ var
|
|
14893
|
-
/* harmony import */ var
|
|
14894
|
-
/* harmony import */ var
|
|
14895
|
-
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
14896
|
-
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
14897
|
-
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
14898
|
-
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
14899
|
-
|
|
14900
|
-
|
|
14665
|
+
/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
|
|
14666
|
+
/* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
|
|
14667
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
14668
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
14669
|
+
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
14670
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
14671
|
+
/* harmony import */ var _victory_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util */ "../../victory-core/es/victory-util/merge-refs.js");
|
|
14672
|
+
/* harmony import */ var _victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-outlet */ "../../victory-core/es/victory-portal/portal-outlet.js");
|
|
14673
|
+
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
14901
14674
|
|
|
14902
14675
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14903
14676
|
|
|
@@ -14906,175 +14679,149 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
14906
14679
|
|
|
14907
14680
|
|
|
14908
14681
|
|
|
14909
|
-
|
|
14910
|
-
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
|
|
14914
|
-
|
|
14915
|
-
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14920
|
-
|
|
14921
|
-
// @ts-expect-error Ref will be initialized on mount
|
|
14922
|
-
|
|
14923
|
-
// @ts-expect-error Ref will be initialized on mount
|
|
14924
|
-
|
|
14925
|
-
constructor(props) {
|
|
14926
|
-
super(props);
|
|
14927
|
-
this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-") : props.containerId;
|
|
14928
|
-
this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
14929
|
-
}
|
|
14930
|
-
savePortalRef = portal => {
|
|
14931
|
-
this.portalRef = portal;
|
|
14932
|
-
return portal;
|
|
14682
|
+
const defaultProps = {
|
|
14683
|
+
className: "VictoryContainer",
|
|
14684
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
|
|
14685
|
+
portalZIndex: 99,
|
|
14686
|
+
responsive: true,
|
|
14687
|
+
role: "img"
|
|
14688
|
+
};
|
|
14689
|
+
function useVictoryContainer(initialProps) {
|
|
14690
|
+
const props = {
|
|
14691
|
+
...defaultProps,
|
|
14692
|
+
...initialProps
|
|
14933
14693
|
};
|
|
14934
|
-
|
|
14935
|
-
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14694
|
+
const {
|
|
14695
|
+
title,
|
|
14696
|
+
desc,
|
|
14697
|
+
width,
|
|
14698
|
+
height,
|
|
14699
|
+
responsive
|
|
14700
|
+
} = props;
|
|
14701
|
+
const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
|
|
14702
|
+
|
|
14703
|
+
// Generated ID stored in ref because it needs to persist across renders
|
|
14704
|
+
const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-container-"));
|
|
14705
|
+
const containerId = props.containerId ?? generatedId.current;
|
|
14706
|
+
const getIdForElement = elName => `${containerId}-${elName}`;
|
|
14707
|
+
const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
|
|
14708
|
+
const dimensions = responsive ? {
|
|
14709
|
+
width: "100%",
|
|
14710
|
+
height: "100%"
|
|
14711
|
+
} : {
|
|
14712
|
+
width,
|
|
14713
|
+
height
|
|
14943
14714
|
};
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14947
|
-
|
|
14948
|
-
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
14954
|
-
|
|
14955
|
-
|
|
14956
|
-
|
|
14957
|
-
|
|
14958
|
-
|
|
14959
|
-
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
14973
|
-
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
|
|
14979
|
-
|
|
14980
|
-
|
|
14981
|
-
|
|
14982
|
-
|
|
14983
|
-
|
|
14984
|
-
|
|
14985
|
-
|
|
14986
|
-
|
|
14987
|
-
|
|
14988
|
-
|
|
14989
|
-
|
|
14990
|
-
|
|
14991
|
-
|
|
14992
|
-
|
|
14993
|
-
|
|
14994
|
-
|
|
14995
|
-
const
|
|
14996
|
-
|
|
14997
|
-
|
|
14998
|
-
|
|
14999
|
-
} : {
|
|
15000
|
-
width,
|
|
15001
|
-
height
|
|
14715
|
+
const viewBox = responsive ? `0 0 ${width} ${height}` : undefined;
|
|
14716
|
+
const preserveAspectRatio = responsive ? props.preserveAspectRatio : undefined;
|
|
14717
|
+
const ariaLabelledBy = [title && getIdForElement("title"), props["aria-labelledby"]].filter(Boolean).join(" ") || undefined;
|
|
14718
|
+
const ariaDescribedBy = [desc && getIdForElement("desc"), props["aria-describedby"]].filter(Boolean).join(" ") || undefined;
|
|
14719
|
+
const titleId = getIdForElement("title");
|
|
14720
|
+
const descId = getIdForElement("desc");
|
|
14721
|
+
return {
|
|
14722
|
+
...props,
|
|
14723
|
+
titleId,
|
|
14724
|
+
descId,
|
|
14725
|
+
dimensions,
|
|
14726
|
+
viewBox,
|
|
14727
|
+
preserveAspectRatio,
|
|
14728
|
+
ariaLabelledBy,
|
|
14729
|
+
ariaDescribedBy,
|
|
14730
|
+
userProps,
|
|
14731
|
+
localContainerRef
|
|
14732
|
+
};
|
|
14733
|
+
}
|
|
14734
|
+
const VictoryContainer = initialProps => {
|
|
14735
|
+
const {
|
|
14736
|
+
role,
|
|
14737
|
+
title,
|
|
14738
|
+
desc,
|
|
14739
|
+
children,
|
|
14740
|
+
className,
|
|
14741
|
+
portalZIndex,
|
|
14742
|
+
portalComponent,
|
|
14743
|
+
width,
|
|
14744
|
+
height,
|
|
14745
|
+
style,
|
|
14746
|
+
tabIndex,
|
|
14747
|
+
responsive,
|
|
14748
|
+
events,
|
|
14749
|
+
ouiaId,
|
|
14750
|
+
ouiaSafe,
|
|
14751
|
+
ouiaType,
|
|
14752
|
+
dimensions,
|
|
14753
|
+
ariaDescribedBy,
|
|
14754
|
+
ariaLabelledBy,
|
|
14755
|
+
viewBox,
|
|
14756
|
+
preserveAspectRatio,
|
|
14757
|
+
userProps,
|
|
14758
|
+
titleId,
|
|
14759
|
+
descId,
|
|
14760
|
+
containerRef,
|
|
14761
|
+
localContainerRef
|
|
14762
|
+
} = useVictoryContainer(initialProps);
|
|
14763
|
+
react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
|
|
14764
|
+
if (!events?.onWheel) return;
|
|
14765
|
+
const handleWheel = e => e.preventDefault();
|
|
14766
|
+
const container = localContainerRef?.current;
|
|
14767
|
+
container?.addEventListener("wheel", handleWheel);
|
|
14768
|
+
return () => {
|
|
14769
|
+
container?.removeEventListener("wheel", handleWheel);
|
|
15002
14770
|
};
|
|
15003
|
-
|
|
14771
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
14772
|
+
}, []);
|
|
14773
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_4__.PortalProvider, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
14774
|
+
className: className,
|
|
14775
|
+
style: {
|
|
14776
|
+
...style,
|
|
14777
|
+
width: responsive ? style?.width : dimensions.width,
|
|
14778
|
+
height: responsive ? style?.height : dimensions.height,
|
|
15004
14779
|
pointerEvents: "none",
|
|
15005
14780
|
touchAction: "none",
|
|
15006
14781
|
position: "relative"
|
|
15007
|
-
},
|
|
15008
|
-
|
|
14782
|
+
},
|
|
14783
|
+
"data-ouia-component-id": ouiaId,
|
|
14784
|
+
"data-ouia-component-type": ouiaType,
|
|
14785
|
+
"data-ouia-safe": ouiaSafe,
|
|
14786
|
+
ref: (0,_victory_util__WEBPACK_IMPORTED_MODULE_5__.mergeRefs)([localContainerRef, containerRef])
|
|
14787
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("svg", _extends({
|
|
14788
|
+
width: width,
|
|
14789
|
+
height: height,
|
|
14790
|
+
tabIndex: tabIndex,
|
|
14791
|
+
role: role,
|
|
14792
|
+
"aria-labelledby": ariaLabelledBy,
|
|
14793
|
+
"aria-describedby": ariaDescribedBy,
|
|
14794
|
+
viewBox: viewBox,
|
|
14795
|
+
preserveAspectRatio: preserveAspectRatio,
|
|
14796
|
+
style: {
|
|
14797
|
+
...dimensions,
|
|
14798
|
+
pointerEvents: "all"
|
|
14799
|
+
}
|
|
14800
|
+
}, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("title", {
|
|
14801
|
+
id: titleId
|
|
14802
|
+
}, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("desc", {
|
|
14803
|
+
id: descId
|
|
14804
|
+
}, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
|
|
14805
|
+
style: {
|
|
14806
|
+
...dimensions,
|
|
15009
14807
|
zIndex: portalZIndex,
|
|
15010
14808
|
position: "absolute",
|
|
15011
14809
|
top: 0,
|
|
15012
14810
|
left: 0
|
|
15013
|
-
}
|
|
15014
|
-
|
|
15015
|
-
|
|
15016
|
-
|
|
15017
|
-
|
|
14811
|
+
}
|
|
14812
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
|
|
14813
|
+
as: portalComponent,
|
|
14814
|
+
width: width,
|
|
14815
|
+
height: height,
|
|
14816
|
+
viewBox: viewBox,
|
|
14817
|
+
preserveAspectRatio: preserveAspectRatio,
|
|
14818
|
+
style: {
|
|
14819
|
+
...dimensions,
|
|
15018
14820
|
overflow: "visible"
|
|
15019
|
-
}
|
|
15020
|
-
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
viewBox: svgProps.viewBox,
|
|
15024
|
-
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
15025
|
-
style: portalSvgStyle
|
|
15026
|
-
};
|
|
15027
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_7__.PortalContext.Provider, {
|
|
15028
|
-
value: {
|
|
15029
|
-
portalUpdate: this.portalUpdate,
|
|
15030
|
-
portalRegister: this.portalRegister,
|
|
15031
|
-
portalDeregister: this.portalDeregister
|
|
15032
|
-
}
|
|
15033
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", _extends({
|
|
15034
|
-
style: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style, divStyle),
|
|
15035
|
-
className: className,
|
|
15036
|
-
ref: this.saveContainerRef
|
|
15037
|
-
}, this.getOUIAProps(props)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("svg", _extends({}, svgProps, {
|
|
15038
|
-
style: svgStyle
|
|
15039
|
-
}), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("title", {
|
|
15040
|
-
id: this.getIdForElement("title")
|
|
15041
|
-
}, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("desc", {
|
|
15042
|
-
id: this.getIdForElement("desc")
|
|
15043
|
-
}, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("div", {
|
|
15044
|
-
style: portalDivStyle
|
|
15045
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(portalComponent, {
|
|
15046
|
-
...portalProps,
|
|
15047
|
-
ref: this.savePortalRef
|
|
15048
|
-
}))));
|
|
15049
|
-
}
|
|
15050
|
-
render() {
|
|
15051
|
-
const {
|
|
15052
|
-
width,
|
|
15053
|
-
height,
|
|
15054
|
-
responsive,
|
|
15055
|
-
events,
|
|
15056
|
-
title,
|
|
15057
|
-
desc,
|
|
15058
|
-
tabIndex,
|
|
15059
|
-
preserveAspectRatio,
|
|
15060
|
-
role
|
|
15061
|
-
} = this.props;
|
|
15062
|
-
const style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__.omit(this.props.style, ["height", "width"]);
|
|
15063
|
-
const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
15064
|
-
const svgProps = Object.assign({
|
|
15065
|
-
width,
|
|
15066
|
-
height,
|
|
15067
|
-
tabIndex,
|
|
15068
|
-
role,
|
|
15069
|
-
"aria-labelledby": [title && this.getIdForElement("title"), this.props["aria-labelledby"]].filter(Boolean).join(" ") || undefined,
|
|
15070
|
-
"aria-describedby": [desc && this.getIdForElement("desc"), this.props["aria-describedby"]].filter(Boolean).join(" ") || undefined,
|
|
15071
|
-
viewBox: responsive ? `0 0 ${width} ${height}` : undefined,
|
|
15072
|
-
preserveAspectRatio: responsive ? preserveAspectRatio : undefined,
|
|
15073
|
-
...userProps
|
|
15074
|
-
}, events);
|
|
15075
|
-
return this.renderContainer(this.props, svgProps, style);
|
|
15076
|
-
}
|
|
15077
|
-
}
|
|
14821
|
+
}
|
|
14822
|
+
}))));
|
|
14823
|
+
};
|
|
14824
|
+
VictoryContainer.role = "container";
|
|
15078
14825
|
|
|
15079
14826
|
/***/ }),
|
|
15080
14827
|
|
|
@@ -15587,17 +15334,83 @@ VictoryLabel.defaultStyles = defaultStyles;
|
|
|
15587
15334
|
"use strict";
|
|
15588
15335
|
__webpack_require__.r(__webpack_exports__);
|
|
15589
15336
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15590
|
-
/* harmony export */ "PortalContext": function() { return /* binding */ PortalContext; }
|
|
15337
|
+
/* harmony export */ "PortalContext": function() { return /* binding */ PortalContext; },
|
|
15338
|
+
/* harmony export */ "PortalProvider": function() { return /* binding */ PortalProvider; },
|
|
15339
|
+
/* harmony export */ "usePortalContext": function() { return /* binding */ usePortalContext; }
|
|
15591
15340
|
/* harmony export */ });
|
|
15592
15341
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15593
15342
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15594
15343
|
|
|
15595
|
-
|
|
15596
|
-
* The React context object consumers may use to access the context of the
|
|
15597
|
-
* portal.
|
|
15598
|
-
*/
|
|
15599
|
-
const PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
15344
|
+
const PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext(undefined);
|
|
15600
15345
|
PortalContext.displayName = "PortalContext";
|
|
15346
|
+
const usePortalContext = () => {
|
|
15347
|
+
const context = react__WEBPACK_IMPORTED_MODULE_0___default().useContext(PortalContext);
|
|
15348
|
+
if (!context) {
|
|
15349
|
+
throw new Error("`usePortalContext` must be used within a `<PortalProvider />`");
|
|
15350
|
+
}
|
|
15351
|
+
return context;
|
|
15352
|
+
};
|
|
15353
|
+
const PortalProvider = _ref => {
|
|
15354
|
+
let {
|
|
15355
|
+
children
|
|
15356
|
+
} = _ref;
|
|
15357
|
+
const [portalChildren, setPortalChildren] = react__WEBPACK_IMPORTED_MODULE_0___default().useState(new Map());
|
|
15358
|
+
const addChild = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback((id, element) => {
|
|
15359
|
+
setPortalChildren(prevChildren => {
|
|
15360
|
+
const nextChildren = new Map(prevChildren);
|
|
15361
|
+
nextChildren.set(id, element);
|
|
15362
|
+
return nextChildren;
|
|
15363
|
+
});
|
|
15364
|
+
}, [setPortalChildren]);
|
|
15365
|
+
const removeChild = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback(id => {
|
|
15366
|
+
setPortalChildren(prevChildren => {
|
|
15367
|
+
const nextChildren = new Map(prevChildren);
|
|
15368
|
+
nextChildren.delete(id);
|
|
15369
|
+
return nextChildren;
|
|
15370
|
+
});
|
|
15371
|
+
}, [setPortalChildren]);
|
|
15372
|
+
const contextValue = react__WEBPACK_IMPORTED_MODULE_0___default().useMemo(() => ({
|
|
15373
|
+
addChild,
|
|
15374
|
+
removeChild,
|
|
15375
|
+
children: portalChildren
|
|
15376
|
+
}), [addChild, removeChild, portalChildren]);
|
|
15377
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(PortalContext.Provider, {
|
|
15378
|
+
value: contextValue
|
|
15379
|
+
}, children);
|
|
15380
|
+
};
|
|
15381
|
+
|
|
15382
|
+
/***/ }),
|
|
15383
|
+
|
|
15384
|
+
/***/ "../../victory-core/es/victory-portal/portal-outlet.js":
|
|
15385
|
+
/*!*************************************************************!*\
|
|
15386
|
+
!*** ../../victory-core/es/victory-portal/portal-outlet.js ***!
|
|
15387
|
+
\*************************************************************/
|
|
15388
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
15389
|
+
|
|
15390
|
+
"use strict";
|
|
15391
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15392
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15393
|
+
/* harmony export */ "PortalOutlet": function() { return /* binding */ PortalOutlet; }
|
|
15394
|
+
/* harmony export */ });
|
|
15395
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15396
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15397
|
+
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
15398
|
+
|
|
15399
|
+
|
|
15400
|
+
const PortalOutlet = _ref => {
|
|
15401
|
+
let {
|
|
15402
|
+
as: portalComponent,
|
|
15403
|
+
...props
|
|
15404
|
+
} = _ref;
|
|
15405
|
+
const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_1__.usePortalContext)();
|
|
15406
|
+
const children = Array.from(portalContext.children.entries()).map(_ref2 => {
|
|
15407
|
+
let [key, node] = _ref2;
|
|
15408
|
+
return !node.key ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(node, {
|
|
15409
|
+
key
|
|
15410
|
+
}) : node;
|
|
15411
|
+
});
|
|
15412
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(portalComponent, props, children);
|
|
15413
|
+
};
|
|
15601
15414
|
|
|
15602
15415
|
/***/ }),
|
|
15603
15416
|
|
|
@@ -15614,39 +15427,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15614
15427
|
/* harmony export */ });
|
|
15615
15428
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15616
15429
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15430
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15617
15431
|
|
|
15618
|
-
|
|
15619
|
-
|
|
15620
|
-
|
|
15621
|
-
|
|
15622
|
-
|
|
15623
|
-
this.index = 1;
|
|
15624
|
-
}
|
|
15625
|
-
portalRegister = () => {
|
|
15626
|
-
return ++this.index;
|
|
15627
|
-
};
|
|
15628
|
-
portalUpdate = (key, element) => {
|
|
15629
|
-
this.map[key] = element;
|
|
15630
|
-
this.forceUpdate();
|
|
15631
|
-
};
|
|
15632
|
-
portalDeregister = key => {
|
|
15633
|
-
delete this.map[key];
|
|
15634
|
-
this.forceUpdate();
|
|
15635
|
-
};
|
|
15636
|
-
getChildren() {
|
|
15637
|
-
return Object.keys(this.map).map(key => {
|
|
15638
|
-
const el = this.map[key];
|
|
15639
|
-
return el ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(el, {
|
|
15640
|
-
key
|
|
15641
|
-
}) : el;
|
|
15642
|
-
});
|
|
15643
|
-
}
|
|
15644
|
-
|
|
15645
|
-
// Overridden in victory-core-native
|
|
15646
|
-
render() {
|
|
15647
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", this.props, this.getChildren());
|
|
15648
|
-
}
|
|
15649
|
-
}
|
|
15432
|
+
const Portal = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardRef((props, ref) => {
|
|
15433
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({
|
|
15434
|
+
ref: ref
|
|
15435
|
+
}, props));
|
|
15436
|
+
});
|
|
15650
15437
|
|
|
15651
15438
|
/***/ }),
|
|
15652
15439
|
|
|
@@ -15673,59 +15460,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15673
15460
|
|
|
15674
15461
|
|
|
15675
15462
|
|
|
15676
|
-
|
|
15677
|
-
|
|
15678
|
-
|
|
15679
|
-
|
|
15680
|
-
|
|
15463
|
+
const defaultProps = {
|
|
15464
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
15465
|
+
};
|
|
15466
|
+
const VictoryPortal = initialProps => {
|
|
15467
|
+
const props = {
|
|
15468
|
+
...defaultProps,
|
|
15469
|
+
...initialProps
|
|
15681
15470
|
};
|
|
15682
|
-
|
|
15683
|
-
|
|
15684
|
-
|
|
15685
|
-
|
|
15686
|
-
|
|
15687
|
-
_victory_util_log__WEBPACK_IMPORTED_MODULE_3__.warn(msg);
|
|
15688
|
-
this.renderInPlace = true;
|
|
15689
|
-
}
|
|
15690
|
-
this.checkedContext = true;
|
|
15691
|
-
}
|
|
15692
|
-
this.forceUpdate();
|
|
15471
|
+
const id = react__WEBPACK_IMPORTED_MODULE_1___default().useId();
|
|
15472
|
+
const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_2__.usePortalContext)();
|
|
15473
|
+
if (!portalContext) {
|
|
15474
|
+
const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
|
|
15475
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_3__.warn(msg);
|
|
15693
15476
|
}
|
|
15694
|
-
|
|
15695
|
-
|
|
15696
|
-
this.portalKey = this.portalKey || this.context.portalRegister();
|
|
15697
|
-
this.context.portalUpdate(this.portalKey, this.element);
|
|
15698
|
-
}
|
|
15699
|
-
}
|
|
15700
|
-
componentWillUnmount() {
|
|
15701
|
-
if (this.context && this.context.portalDeregister) {
|
|
15702
|
-
this.context.portalDeregister(this.portalKey);
|
|
15703
|
-
}
|
|
15704
|
-
}
|
|
15705
|
-
|
|
15706
|
-
// Overridden in victory-core-native
|
|
15707
|
-
renderPortal(child) {
|
|
15708
|
-
if (this.renderInPlace) {
|
|
15709
|
-
return child;
|
|
15710
|
-
}
|
|
15711
|
-
this.element = child;
|
|
15712
|
-
return null;
|
|
15713
|
-
}
|
|
15714
|
-
render() {
|
|
15715
|
-
const children = Array.isArray(this.props.children) ? this.props.children[0] : this.props.children;
|
|
15477
|
+
react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
|
|
15478
|
+
const children = Array.isArray(props.children) ? props.children[0] : props.children;
|
|
15716
15479
|
const {
|
|
15717
15480
|
groupComponent
|
|
15718
|
-
} =
|
|
15481
|
+
} = props;
|
|
15719
15482
|
const childProps = children && children.props || {};
|
|
15720
15483
|
const standardProps = childProps.groupComponent ? {
|
|
15721
15484
|
groupComponent,
|
|
15722
15485
|
standalone: false
|
|
15723
15486
|
} : {};
|
|
15724
|
-
const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.omit(
|
|
15487
|
+
const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.omit(props, ["children", "groupComponent"]));
|
|
15725
15488
|
const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
|
|
15726
|
-
|
|
15727
|
-
|
|
15728
|
-
}
|
|
15489
|
+
portalContext.addChild(id, child);
|
|
15490
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
15491
|
+
}, [props.children]);
|
|
15492
|
+
react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
|
|
15493
|
+
return () => portalContext.removeChild(id);
|
|
15494
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
15495
|
+
}, []);
|
|
15496
|
+
return null;
|
|
15497
|
+
};
|
|
15498
|
+
VictoryPortal.role = "portal";
|
|
15729
15499
|
|
|
15730
15500
|
/***/ }),
|
|
15731
15501
|
|
|
@@ -20106,53 +19876,56 @@ function shallowToJS(x, whitelist) {
|
|
|
20106
19876
|
"use strict";
|
|
20107
19877
|
__webpack_require__.r(__webpack_exports__);
|
|
20108
19878
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20109
|
-
/* harmony export */ "Axis": function() { return /* reexport module object */
|
|
20110
|
-
/* harmony export */ "Collection": function() { return /* reexport module object */
|
|
20111
|
-
/* harmony export */ "Data": function() { return /* reexport module object */
|
|
20112
|
-
/* harmony export */ "DefaultTransitions": function() { return /* reexport module object */
|
|
20113
|
-
/* harmony export */ "Domain": function() { return /* reexport module object */
|
|
20114
|
-
/* harmony export */ "Events": function() { return /* reexport module object */
|
|
20115
|
-
/* harmony export */ "Helpers": function() { return /* reexport module object */
|
|
20116
|
-
/* harmony export */ "Hooks": function() { return /* reexport module object */
|
|
20117
|
-
/* harmony export */ "Immutable": function() { return /* reexport module object */
|
|
20118
|
-
/* harmony export */ "LabelHelpers": function() { return /* reexport module object */
|
|
20119
|
-
/* harmony export */ "LineHelpers": function() { return /* reexport module object */
|
|
20120
|
-
/* harmony export */ "Log": function() { return /* reexport module object */
|
|
20121
|
-
/* harmony export */ "PointPathHelpers": function() { return /* reexport module object */
|
|
20122
|
-
/* harmony export */ "Scale": function() { return /* reexport module object */
|
|
20123
|
-
/* harmony export */ "Selection": function() { return /* reexport module object */
|
|
20124
|
-
/* harmony export */ "Style": function() { return /* reexport module object */
|
|
20125
|
-
/* harmony export */ "TextSize": function() { return /* reexport module object */
|
|
20126
|
-
/* harmony export */ "Timer": function() { return /* reexport safe */
|
|
20127
|
-
/* harmony export */ "TimerContext": function() { return /* reexport safe */
|
|
20128
|
-
/* harmony export */ "Transitions": function() { return /* reexport module object */
|
|
20129
|
-
/* harmony export */ "UserProps": function() { return /* reexport module object */
|
|
20130
|
-
/* harmony export */ "Wrapper": function() { return /* reexport module object */
|
|
20131
|
-
/* harmony export */ "addEvents": function() { return /* reexport safe */ _add_events__WEBPACK_IMPORTED_MODULE_0__.addEvents; }
|
|
19879
|
+
/* harmony export */ "Axis": function() { return /* reexport module object */ _axis__WEBPACK_IMPORTED_MODULE_2__; },
|
|
19880
|
+
/* harmony export */ "Collection": function() { return /* reexport module object */ _collection__WEBPACK_IMPORTED_MODULE_3__; },
|
|
19881
|
+
/* harmony export */ "Data": function() { return /* reexport module object */ _data__WEBPACK_IMPORTED_MODULE_4__; },
|
|
19882
|
+
/* harmony export */ "DefaultTransitions": function() { return /* reexport module object */ _default_transitions__WEBPACK_IMPORTED_MODULE_5__; },
|
|
19883
|
+
/* harmony export */ "Domain": function() { return /* reexport module object */ _domain__WEBPACK_IMPORTED_MODULE_6__; },
|
|
19884
|
+
/* harmony export */ "Events": function() { return /* reexport module object */ _events__WEBPACK_IMPORTED_MODULE_7__; },
|
|
19885
|
+
/* harmony export */ "Helpers": function() { return /* reexport module object */ _helpers__WEBPACK_IMPORTED_MODULE_8__; },
|
|
19886
|
+
/* harmony export */ "Hooks": function() { return /* reexport module object */ _hooks__WEBPACK_IMPORTED_MODULE_9__; },
|
|
19887
|
+
/* harmony export */ "Immutable": function() { return /* reexport module object */ _immutable__WEBPACK_IMPORTED_MODULE_10__; },
|
|
19888
|
+
/* harmony export */ "LabelHelpers": function() { return /* reexport module object */ _label_helpers__WEBPACK_IMPORTED_MODULE_11__; },
|
|
19889
|
+
/* harmony export */ "LineHelpers": function() { return /* reexport module object */ _line_helpers__WEBPACK_IMPORTED_MODULE_12__; },
|
|
19890
|
+
/* harmony export */ "Log": function() { return /* reexport module object */ _log__WEBPACK_IMPORTED_MODULE_13__; },
|
|
19891
|
+
/* harmony export */ "PointPathHelpers": function() { return /* reexport module object */ _point_path_helpers__WEBPACK_IMPORTED_MODULE_14__; },
|
|
19892
|
+
/* harmony export */ "Scale": function() { return /* reexport module object */ _scale__WEBPACK_IMPORTED_MODULE_15__; },
|
|
19893
|
+
/* harmony export */ "Selection": function() { return /* reexport module object */ _selection__WEBPACK_IMPORTED_MODULE_16__; },
|
|
19894
|
+
/* harmony export */ "Style": function() { return /* reexport module object */ _style__WEBPACK_IMPORTED_MODULE_17__; },
|
|
19895
|
+
/* harmony export */ "TextSize": function() { return /* reexport module object */ _textsize__WEBPACK_IMPORTED_MODULE_18__; },
|
|
19896
|
+
/* harmony export */ "Timer": function() { return /* reexport safe */ _timer__WEBPACK_IMPORTED_MODULE_19__["default"]; },
|
|
19897
|
+
/* harmony export */ "TimerContext": function() { return /* reexport safe */ _timer_context__WEBPACK_IMPORTED_MODULE_20__["default"]; },
|
|
19898
|
+
/* harmony export */ "Transitions": function() { return /* reexport module object */ _transitions__WEBPACK_IMPORTED_MODULE_21__; },
|
|
19899
|
+
/* harmony export */ "UserProps": function() { return /* reexport module object */ _user_props__WEBPACK_IMPORTED_MODULE_22__; },
|
|
19900
|
+
/* harmony export */ "Wrapper": function() { return /* reexport module object */ _wrapper__WEBPACK_IMPORTED_MODULE_23__; },
|
|
19901
|
+
/* harmony export */ "addEvents": function() { return /* reexport safe */ _add_events__WEBPACK_IMPORTED_MODULE_0__.addEvents; },
|
|
19902
|
+
/* harmony export */ "mergeRefs": function() { return /* reexport safe */ _merge_refs__WEBPACK_IMPORTED_MODULE_1__.mergeRefs; }
|
|
20132
19903
|
/* harmony export */ });
|
|
20133
19904
|
/* harmony import */ var _add_events__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./add-events */ "../../victory-core/es/victory-util/add-events.js");
|
|
20134
|
-
/* harmony import */ var
|
|
20135
|
-
/* harmony import */ var
|
|
20136
|
-
/* harmony import */ var
|
|
20137
|
-
/* harmony import */ var
|
|
20138
|
-
/* harmony import */ var
|
|
20139
|
-
/* harmony import */ var
|
|
20140
|
-
/* harmony import */ var
|
|
20141
|
-
/* harmony import */ var
|
|
20142
|
-
/* harmony import */ var
|
|
20143
|
-
/* harmony import */ var
|
|
20144
|
-
/* harmony import */ var
|
|
20145
|
-
/* harmony import */ var
|
|
20146
|
-
/* harmony import */ var
|
|
20147
|
-
/* harmony import */ var
|
|
20148
|
-
/* harmony import */ var
|
|
20149
|
-
/* harmony import */ var
|
|
20150
|
-
/* harmony import */ var
|
|
20151
|
-
/* harmony import */ var
|
|
20152
|
-
/* harmony import */ var
|
|
20153
|
-
/* harmony import */ var
|
|
20154
|
-
/* harmony import */ var
|
|
20155
|
-
/* harmony import */ var
|
|
19905
|
+
/* harmony import */ var _merge_refs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./merge-refs */ "../../victory-core/es/victory-util/merge-refs.js");
|
|
19906
|
+
/* harmony import */ var _axis__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./axis */ "../../victory-core/es/victory-util/axis.js");
|
|
19907
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
19908
|
+
/* harmony import */ var _data__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./data */ "../../victory-core/es/victory-util/data.js");
|
|
19909
|
+
/* harmony import */ var _default_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./default-transitions */ "../../victory-core/es/victory-util/default-transitions.js");
|
|
19910
|
+
/* harmony import */ var _domain__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./domain */ "../../victory-core/es/victory-util/domain.js");
|
|
19911
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
19912
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
19913
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./hooks */ "../../victory-core/es/victory-util/hooks/index.js");
|
|
19914
|
+
/* harmony import */ var _immutable__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./immutable */ "../../victory-core/es/victory-util/immutable.js");
|
|
19915
|
+
/* harmony import */ var _label_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./label-helpers */ "../../victory-core/es/victory-util/label-helpers.js");
|
|
19916
|
+
/* harmony import */ var _line_helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./line-helpers */ "../../victory-core/es/victory-util/line-helpers.js");
|
|
19917
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
19918
|
+
/* harmony import */ var _point_path_helpers__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./point-path-helpers */ "../../victory-core/es/victory-util/point-path-helpers.js");
|
|
19919
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
19920
|
+
/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./selection */ "../../victory-core/es/victory-util/selection.js");
|
|
19921
|
+
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./style */ "../../victory-core/es/victory-util/style.js");
|
|
19922
|
+
/* harmony import */ var _textsize__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
19923
|
+
/* harmony import */ var _timer__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./timer */ "../../victory-core/es/victory-util/timer.js");
|
|
19924
|
+
/* harmony import */ var _timer_context__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
19925
|
+
/* harmony import */ var _transitions__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
19926
|
+
/* harmony import */ var _user_props__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
19927
|
+
/* harmony import */ var _wrapper__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./wrapper */ "../../victory-core/es/victory-util/wrapper.js");
|
|
19928
|
+
|
|
20156
19929
|
|
|
20157
19930
|
|
|
20158
19931
|
|
|
@@ -20545,6 +20318,44 @@ function warn(message) {
|
|
|
20545
20318
|
|
|
20546
20319
|
/***/ }),
|
|
20547
20320
|
|
|
20321
|
+
/***/ "../../victory-core/es/victory-util/merge-refs.js":
|
|
20322
|
+
/*!********************************************************!*\
|
|
20323
|
+
!*** ../../victory-core/es/victory-util/merge-refs.js ***!
|
|
20324
|
+
\********************************************************/
|
|
20325
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
20326
|
+
|
|
20327
|
+
"use strict";
|
|
20328
|
+
__webpack_require__.r(__webpack_exports__);
|
|
20329
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20330
|
+
/* harmony export */ "mergeRefs": function() { return /* binding */ mergeRefs; }
|
|
20331
|
+
/* harmony export */ });
|
|
20332
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
20333
|
+
|
|
20334
|
+
/**
|
|
20335
|
+
* Used to merge multiple React refs into a single callback ref.
|
|
20336
|
+
*
|
|
20337
|
+
* @example
|
|
20338
|
+
* ```tsx
|
|
20339
|
+
* <div ref={mergeRefs([ref, forwardedRef])} />
|
|
20340
|
+
* ```
|
|
20341
|
+
*/
|
|
20342
|
+
function mergeRefs(refs) {
|
|
20343
|
+
return value => {
|
|
20344
|
+
refs.forEach(ref => {
|
|
20345
|
+
// If the ref is a function, it's a callback ref and we call it with the value.
|
|
20346
|
+
if (_helpers__WEBPACK_IMPORTED_MODULE_0__.isFunction(ref)) {
|
|
20347
|
+
ref(value);
|
|
20348
|
+
} else if (ref !== null && ref !== undefined) {
|
|
20349
|
+
// If the ref is an object (not null and not undefined), it's an object ref.
|
|
20350
|
+
// We assign the value to its 'current' property.
|
|
20351
|
+
ref.current = value;
|
|
20352
|
+
}
|
|
20353
|
+
});
|
|
20354
|
+
};
|
|
20355
|
+
}
|
|
20356
|
+
|
|
20357
|
+
/***/ }),
|
|
20358
|
+
|
|
20548
20359
|
/***/ "../../victory-core/es/victory-util/point-path-helpers.js":
|
|
20549
20360
|
/*!****************************************************************!*\
|
|
20550
20361
|
!*** ../../victory-core/es/victory-util/point-path-helpers.js ***!
|
|
@@ -22391,28 +22202,25 @@ function getCategories(props, childComponents, allStrings) {
|
|
|
22391
22202
|
"use strict";
|
|
22392
22203
|
__webpack_require__.r(__webpack_exports__);
|
|
22393
22204
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22394
|
-
/* harmony export */ "combineContainerMixins": function() { return /* binding */ combineContainerMixins; },
|
|
22395
22205
|
/* harmony export */ "createContainer": function() { return /* binding */ createContainer; },
|
|
22396
22206
|
/* harmony export */ "makeCreateContainerFunction": function() { return /* binding */ makeCreateContainerFunction; }
|
|
22397
22207
|
/* harmony export */ });
|
|
22398
|
-
/* harmony import */ var
|
|
22399
|
-
/* harmony import */ var
|
|
22400
|
-
/* harmony import */ var
|
|
22401
|
-
/* harmony import */ var
|
|
22402
|
-
/* harmony import */ var
|
|
22403
|
-
/* harmony import */ var
|
|
22404
|
-
/* harmony import */ var
|
|
22405
|
-
/* harmony import */ var
|
|
22406
|
-
/* harmony import */ var
|
|
22407
|
-
/* harmony import */ var
|
|
22408
|
-
/* harmony import */ var
|
|
22409
|
-
/* harmony import */ var
|
|
22410
|
-
/* harmony import */ var
|
|
22411
|
-
/* harmony import */ var
|
|
22412
|
-
/* harmony import */ var
|
|
22413
|
-
/* harmony import */ var
|
|
22414
|
-
/* harmony import */ var victory_brush_container__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-brush-container */ "../../victory-brush-container/es/victory-brush-container.js");
|
|
22415
|
-
/* harmony import */ var victory_cursor_container__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-cursor-container */ "../../victory-cursor-container/es/victory-cursor-container.js");
|
|
22208
|
+
/* harmony import */ var lodash_toPairs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/toPairs */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toPairs.js");
|
|
22209
|
+
/* harmony import */ var lodash_toPairs__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_toPairs__WEBPACK_IMPORTED_MODULE_0__);
|
|
22210
|
+
/* 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");
|
|
22211
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
|
|
22212
|
+
/* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js");
|
|
22213
|
+
/* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_2__);
|
|
22214
|
+
/* harmony import */ var lodash_forOwn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/forOwn */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/forOwn.js");
|
|
22215
|
+
/* harmony import */ var lodash_forOwn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_forOwn__WEBPACK_IMPORTED_MODULE_3__);
|
|
22216
|
+
/* harmony import */ var victory_zoom_container__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-zoom-container */ "../../victory-zoom-container/es/victory-zoom-container.js");
|
|
22217
|
+
/* harmony import */ var victory_selection_container__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-selection-container */ "../../victory-selection-container/es/victory-selection-container.js");
|
|
22218
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ "react");
|
|
22219
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_4__);
|
|
22220
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
22221
|
+
/* harmony import */ var victory_voronoi_container__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-voronoi-container */ "../../victory-voronoi-container/es/victory-voronoi-container.js");
|
|
22222
|
+
/* harmony import */ var victory_cursor_container__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-cursor-container */ "../../victory-cursor-container/es/victory-cursor-container.js");
|
|
22223
|
+
/* harmony import */ var victory_brush_container__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-brush-container */ "../../victory-brush-container/es/victory-brush-container.js");
|
|
22416
22224
|
|
|
22417
22225
|
|
|
22418
22226
|
|
|
@@ -22436,7 +22244,7 @@ const combineEventHandlers = eventHandlersArray => {
|
|
|
22436
22244
|
// takes an array of event handler objects and produces one eventHandlers object
|
|
22437
22245
|
// creates a custom combinedHandler() for events with multiple conflicting handlers
|
|
22438
22246
|
return eventHandlersArray.reduce((localHandlers, finalHandlers) => {
|
|
22439
|
-
|
|
22247
|
+
lodash_forOwn__WEBPACK_IMPORTED_MODULE_3___default()(localHandlers, (localHandler, eventName) => {
|
|
22440
22248
|
const existingHandler = finalHandlers[eventName];
|
|
22441
22249
|
if (existingHandler) {
|
|
22442
22250
|
// create new handler for event that concats the existing handler's mutations with new ones
|
|
@@ -22457,11 +22265,11 @@ const combineEventHandlers = eventHandlersArray => {
|
|
|
22457
22265
|
const combineDefaultEvents = defaultEvents => {
|
|
22458
22266
|
// takes a defaultEvents array and returns one equal or lesser length,
|
|
22459
22267
|
// by combining any events that have the same target
|
|
22460
|
-
const eventsByTarget =
|
|
22461
|
-
const events =
|
|
22268
|
+
const eventsByTarget = lodash_groupBy__WEBPACK_IMPORTED_MODULE_2___default()(defaultEvents, "target");
|
|
22269
|
+
const events = lodash_toPairs__WEBPACK_IMPORTED_MODULE_0___default()(eventsByTarget).map(_ref => {
|
|
22462
22270
|
let [target, eventsArray] = _ref;
|
|
22463
22271
|
const newEventsArray = eventsArray.filter(Boolean);
|
|
22464
|
-
return
|
|
22272
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(newEventsArray) ? null : {
|
|
22465
22273
|
target,
|
|
22466
22274
|
eventHandlers: combineEventHandlers(eventsArray.map(event => event.eventHandlers))
|
|
22467
22275
|
// note: does not currently handle eventKey or childName
|
|
@@ -22469,68 +22277,58 @@ const combineDefaultEvents = defaultEvents => {
|
|
|
22469
22277
|
});
|
|
22470
22278
|
return events.filter(Boolean);
|
|
22471
22279
|
};
|
|
22472
|
-
|
|
22473
|
-
|
|
22474
|
-
|
|
22475
|
-
|
|
22476
|
-
|
|
22477
|
-
|
|
22478
|
-
|
|
22479
|
-
|
|
22480
|
-
|
|
22481
|
-
|
|
22482
|
-
|
|
22483
|
-
|
|
22484
|
-
|
|
22485
|
-
|
|
22486
|
-
|
|
22487
|
-
|
|
22488
|
-
|
|
22489
|
-
|
|
22490
|
-
|
|
22491
|
-
|
|
22492
|
-
|
|
22493
|
-
|
|
22494
|
-
|
|
22495
|
-
|
|
22496
|
-
|
|
22497
|
-
|
|
22498
|
-
|
|
22499
|
-
|
|
22500
|
-
|
|
22501
|
-
|
|
22502
|
-
|
|
22503
|
-
|
|
22504
|
-
|
|
22505
|
-
|
|
22506
|
-
|
|
22507
|
-
};
|
|
22508
|
-
const
|
|
22509
|
-
|
|
22510
|
-
|
|
22511
|
-
|
|
22512
|
-
|
|
22513
|
-
|
|
22514
|
-
|
|
22515
|
-
|
|
22516
|
-
|
|
22517
|
-
|
|
22518
|
-
|
|
22519
|
-
|
|
22520
|
-
|
|
22521
|
-
|
|
22522
|
-
|
|
22523
|
-
|
|
22524
|
-
}
|
|
22525
|
-
return combineContainerMixins([...firstMixins, ...secondMixins], Container);
|
|
22526
|
-
};
|
|
22527
|
-
const createContainer = makeCreateContainerFunction({
|
|
22528
|
-
zoom: [victory_zoom_container__WEBPACK_IMPORTED_MODULE_7__.zoomContainerMixin],
|
|
22529
|
-
voronoi: [victory_voronoi_container__WEBPACK_IMPORTED_MODULE_8__.voronoiContainerMixin],
|
|
22530
|
-
selection: [victory_selection_container__WEBPACK_IMPORTED_MODULE_9__.selectionContainerMixin],
|
|
22531
|
-
cursor: [victory_cursor_container__WEBPACK_IMPORTED_MODULE_10__.cursorContainerMixin],
|
|
22532
|
-
brush: [victory_brush_container__WEBPACK_IMPORTED_MODULE_11__.brushContainerMixin]
|
|
22533
|
-
}, victory_core__WEBPACK_IMPORTED_MODULE_12__.VictoryContainer);
|
|
22280
|
+
/**
|
|
22281
|
+
* Container hooks are used to provide the container logic to the container components through props and a modified children object
|
|
22282
|
+
* - These hooks contain shared logic for both web and Victory Native containers.
|
|
22283
|
+
* - In this utility, we call multiple of these hooks with the props returned by the previous to combine the container logic.
|
|
22284
|
+
*/
|
|
22285
|
+
const CONTAINER_HOOKS = {
|
|
22286
|
+
zoom: victory_zoom_container__WEBPACK_IMPORTED_MODULE_5__.useVictoryZoomContainer,
|
|
22287
|
+
selection: victory_selection_container__WEBPACK_IMPORTED_MODULE_6__.useVictorySelectionContainer,
|
|
22288
|
+
brush: victory_brush_container__WEBPACK_IMPORTED_MODULE_7__.useVictoryBrushContainer,
|
|
22289
|
+
cursor: victory_cursor_container__WEBPACK_IMPORTED_MODULE_8__.useVictoryCursorContainer,
|
|
22290
|
+
voronoi: victory_voronoi_container__WEBPACK_IMPORTED_MODULE_9__.useVictoryVoronoiContainer
|
|
22291
|
+
};
|
|
22292
|
+
|
|
22293
|
+
/**
|
|
22294
|
+
* Container hooks are wrappers that return a VictoryContainer with the props provided by their respective hooks, and the modified children.
|
|
22295
|
+
* - These containers are specific to the web. Victory Native has its own container components.
|
|
22296
|
+
* - For this utility, we only need the container components to extract the defaultEvents.
|
|
22297
|
+
*/
|
|
22298
|
+
const CONTAINER_COMPONENTS_WEB = {
|
|
22299
|
+
zoom: victory_zoom_container__WEBPACK_IMPORTED_MODULE_5__.VictoryZoomContainer,
|
|
22300
|
+
selection: victory_selection_container__WEBPACK_IMPORTED_MODULE_6__.VictorySelectionContainer,
|
|
22301
|
+
brush: victory_brush_container__WEBPACK_IMPORTED_MODULE_7__.VictoryBrushContainer,
|
|
22302
|
+
cursor: victory_cursor_container__WEBPACK_IMPORTED_MODULE_8__.VictoryCursorContainer,
|
|
22303
|
+
voronoi: victory_voronoi_container__WEBPACK_IMPORTED_MODULE_9__.VictoryVoronoiContainer
|
|
22304
|
+
};
|
|
22305
|
+
function makeCreateContainerFunction(containerComponents, VictoryContainerBase) {
|
|
22306
|
+
return function combineContainers(containerA, containerB) {
|
|
22307
|
+
const ContainerA = containerComponents[containerA];
|
|
22308
|
+
const ContainerB = containerComponents[containerB];
|
|
22309
|
+
const useContainerA = CONTAINER_HOOKS[containerA];
|
|
22310
|
+
const useContainerB = CONTAINER_HOOKS[containerB];
|
|
22311
|
+
const CombinedContainer = props => {
|
|
22312
|
+
const {
|
|
22313
|
+
children: childrenA,
|
|
22314
|
+
props: propsA
|
|
22315
|
+
} = useContainerA(props);
|
|
22316
|
+
const {
|
|
22317
|
+
children: combinedChildren,
|
|
22318
|
+
props: combinedProps
|
|
22319
|
+
} = useContainerB({
|
|
22320
|
+
...propsA,
|
|
22321
|
+
children: childrenA
|
|
22322
|
+
});
|
|
22323
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(VictoryContainerBase, combinedProps, combinedChildren);
|
|
22324
|
+
};
|
|
22325
|
+
CombinedContainer.displayName = `Victory${containerA}${containerB}Container`;
|
|
22326
|
+
CombinedContainer.role = "container";
|
|
22327
|
+
CombinedContainer.defaultEvents = props => combineDefaultEvents([...ContainerA.defaultEvents(props), ...ContainerB.defaultEvents(props)]);
|
|
22328
|
+
return CombinedContainer;
|
|
22329
|
+
};
|
|
22330
|
+
}
|
|
22331
|
+
const createContainer = makeCreateContainerFunction(CONTAINER_COMPONENTS_WEB, victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryContainer);
|
|
22534
22332
|
|
|
22535
22333
|
/***/ }),
|
|
22536
22334
|
|
|
@@ -22543,7 +22341,6 @@ const createContainer = makeCreateContainerFunction({
|
|
|
22543
22341
|
"use strict";
|
|
22544
22342
|
__webpack_require__.r(__webpack_exports__);
|
|
22545
22343
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22546
|
-
/* harmony export */ "combineContainerMixins": function() { return /* reexport safe */ _create_container__WEBPACK_IMPORTED_MODULE_0__.combineContainerMixins; },
|
|
22547
22344
|
/* harmony export */ "createContainer": function() { return /* reexport safe */ _create_container__WEBPACK_IMPORTED_MODULE_0__.createContainer; },
|
|
22548
22345
|
/* harmony export */ "makeCreateContainerFunction": function() { return /* reexport safe */ _create_container__WEBPACK_IMPORTED_MODULE_0__.makeCreateContainerFunction; }
|
|
22549
22346
|
/* harmony export */ });
|
|
@@ -22681,8 +22478,9 @@ const CursorHelpers = new CursorHelpersClass();
|
|
|
22681
22478
|
__webpack_require__.r(__webpack_exports__);
|
|
22682
22479
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22683
22480
|
/* harmony export */ "CursorHelpers": function() { return /* reexport safe */ _cursor_helpers__WEBPACK_IMPORTED_MODULE_0__.CursorHelpers; },
|
|
22481
|
+
/* harmony export */ "VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ _victory_cursor_container__WEBPACK_IMPORTED_MODULE_1__.VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS; },
|
|
22684
22482
|
/* harmony export */ "VictoryCursorContainer": function() { return /* reexport safe */ _victory_cursor_container__WEBPACK_IMPORTED_MODULE_1__.VictoryCursorContainer; },
|
|
22685
|
-
/* harmony export */ "
|
|
22483
|
+
/* harmony export */ "useVictoryCursorContainer": function() { return /* reexport safe */ _victory_cursor_container__WEBPACK_IMPORTED_MODULE_1__.useVictoryCursorContainer; }
|
|
22686
22484
|
/* harmony export */ });
|
|
22687
22485
|
/* harmony import */ var _cursor_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./cursor-helpers */ "../../victory-cursor-container/es/cursor-helpers.js");
|
|
22688
22486
|
/* harmony import */ var _victory_cursor_container__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./victory-cursor-container */ "../../victory-cursor-container/es/victory-cursor-container.js");
|
|
@@ -22700,8 +22498,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22700
22498
|
"use strict";
|
|
22701
22499
|
__webpack_require__.r(__webpack_exports__);
|
|
22702
22500
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22501
|
+
/* harmony export */ "VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS": function() { return /* binding */ VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS; },
|
|
22703
22502
|
/* harmony export */ "VictoryCursorContainer": function() { return /* binding */ VictoryCursorContainer; },
|
|
22704
|
-
/* harmony export */ "
|
|
22503
|
+
/* harmony export */ "useVictoryCursorContainer": function() { return /* binding */ useVictoryCursorContainer; }
|
|
22705
22504
|
/* harmony export */ });
|
|
22706
22505
|
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
|
|
22707
22506
|
/* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -22709,164 +22508,179 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22709
22508
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
22710
22509
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
22711
22510
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
22712
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
22713
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
22714
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
22715
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
22511
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
22512
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line-segment.js");
|
|
22513
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
22514
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
22716
22515
|
/* harmony import */ var _cursor_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./cursor-helpers */ "../../victory-cursor-container/es/cursor-helpers.js");
|
|
22717
22516
|
|
|
22718
22517
|
|
|
22518
|
+
/* eslint-disable complexity */
|
|
22719
22519
|
|
|
22720
22520
|
|
|
22721
22521
|
|
|
22722
|
-
|
|
22723
|
-
|
|
22724
|
-
|
|
22725
|
-
|
|
22726
|
-
|
|
22727
|
-
|
|
22728
|
-
|
|
22729
|
-
|
|
22730
|
-
|
|
22731
|
-
|
|
22732
|
-
|
|
22733
|
-
|
|
22734
|
-
|
|
22735
|
-
|
|
22736
|
-
|
|
22737
|
-
|
|
22738
|
-
|
|
22739
|
-
|
|
22740
|
-
|
|
22741
|
-
|
|
22742
|
-
|
|
22743
|
-
|
|
22744
|
-
|
|
22745
|
-
|
|
22746
|
-
|
|
22747
|
-
},
|
|
22748
|
-
onTouchMove: (evt, targetProps) => {
|
|
22749
|
-
return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_6__.CursorHelpers.onMouseMove(evt, targetProps);
|
|
22750
|
-
}
|
|
22751
|
-
}
|
|
22752
|
-
}];
|
|
22522
|
+
const VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS = {
|
|
22523
|
+
cursorLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.VictoryLabel, null),
|
|
22524
|
+
cursorLabelOffset: {
|
|
22525
|
+
x: 5,
|
|
22526
|
+
y: -10
|
|
22527
|
+
},
|
|
22528
|
+
cursorComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.LineSegment, null)
|
|
22529
|
+
};
|
|
22530
|
+
const useVictoryCursorContainer = initialProps => {
|
|
22531
|
+
const props = {
|
|
22532
|
+
...VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS,
|
|
22533
|
+
...initialProps
|
|
22534
|
+
};
|
|
22535
|
+
const {
|
|
22536
|
+
children
|
|
22537
|
+
} = props;
|
|
22538
|
+
const getCursorPosition = () => {
|
|
22539
|
+
const {
|
|
22540
|
+
cursorValue,
|
|
22541
|
+
defaultCursorValue,
|
|
22542
|
+
domain,
|
|
22543
|
+
cursorDimension
|
|
22544
|
+
} = props;
|
|
22545
|
+
if (cursorValue) {
|
|
22546
|
+
return cursorValue;
|
|
22753
22547
|
}
|
|
22754
|
-
|
|
22755
|
-
|
|
22756
|
-
|
|
22757
|
-
|
|
22758
|
-
|
|
22759
|
-
cursorDimension
|
|
22760
|
-
} = props;
|
|
22761
|
-
if (cursorValue) {
|
|
22762
|
-
return cursorValue;
|
|
22763
|
-
}
|
|
22764
|
-
if (typeof defaultCursorValue === "number") {
|
|
22765
|
-
return {
|
|
22766
|
-
x: (domain.x[0] + domain.x[1]) / 2,
|
|
22767
|
-
y: (domain.y[0] + domain.y[1]) / 2,
|
|
22548
|
+
if (typeof defaultCursorValue === "number") {
|
|
22549
|
+
return {
|
|
22550
|
+
x: (domain.x[0] + domain.x[1]) / 2,
|
|
22551
|
+
y: (domain.y[0] + domain.y[1]) / 2,
|
|
22552
|
+
...(cursorDimension ? {
|
|
22768
22553
|
[cursorDimension]: defaultCursorValue
|
|
22769
|
-
}
|
|
22770
|
-
}
|
|
22771
|
-
return defaultCursorValue;
|
|
22554
|
+
} : {})
|
|
22555
|
+
};
|
|
22772
22556
|
}
|
|
22773
|
-
|
|
22774
|
-
|
|
22775
|
-
|
|
22776
|
-
|
|
22777
|
-
|
|
22778
|
-
|
|
22779
|
-
|
|
22780
|
-
|
|
22781
|
-
|
|
22782
|
-
|
|
22783
|
-
|
|
22557
|
+
return defaultCursorValue;
|
|
22558
|
+
};
|
|
22559
|
+
const getCursorLabelOffset = () => {
|
|
22560
|
+
const {
|
|
22561
|
+
cursorLabelOffset
|
|
22562
|
+
} = props;
|
|
22563
|
+
if (typeof cursorLabelOffset === "number") {
|
|
22564
|
+
return {
|
|
22565
|
+
x: cursorLabelOffset,
|
|
22566
|
+
y: cursorLabelOffset
|
|
22567
|
+
};
|
|
22784
22568
|
}
|
|
22785
|
-
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
|
|
22790
|
-
return
|
|
22791
|
-
}
|
|
22792
|
-
return
|
|
22569
|
+
return cursorLabelOffset;
|
|
22570
|
+
};
|
|
22571
|
+
const getPadding = () => {
|
|
22572
|
+
if (props.padding === undefined) {
|
|
22573
|
+
const child = Array.isArray(props.children) ? props.children.find(c => {
|
|
22574
|
+
return lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default()(c.props) && c.props.padding !== undefined;
|
|
22575
|
+
}) : props.children;
|
|
22576
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_5__.getPadding(child?.props);
|
|
22793
22577
|
}
|
|
22794
|
-
|
|
22795
|
-
|
|
22796
|
-
|
|
22797
|
-
|
|
22798
|
-
|
|
22799
|
-
|
|
22800
|
-
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
22805
|
-
|
|
22806
|
-
|
|
22807
|
-
|
|
22808
|
-
|
|
22809
|
-
|
|
22810
|
-
|
|
22811
|
-
|
|
22812
|
-
|
|
22813
|
-
|
|
22814
|
-
const padding = this.getPadding(props);
|
|
22815
|
-
const cursorCoordinates = {
|
|
22816
|
-
x: horizontal ? scale.y(cursorValue.y) : scale.x(cursorValue.x),
|
|
22817
|
-
y: horizontal ? scale.x(cursorValue.x) : scale.y(cursorValue.y)
|
|
22818
|
-
};
|
|
22819
|
-
if (cursorLabel) {
|
|
22820
|
-
let labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
|
|
22821
|
-
active: true
|
|
22822
|
-
}, cursorLabelComponent.props, {
|
|
22823
|
-
x: cursorCoordinates.x + cursorLabelOffset.x,
|
|
22824
|
-
y: cursorCoordinates.y + cursorLabelOffset.y,
|
|
22825
|
-
datum: cursorValue,
|
|
22826
|
-
active: true,
|
|
22827
|
-
key: `${name}-cursor-label`
|
|
22828
|
-
});
|
|
22829
|
-
if (victory_core__WEBPACK_IMPORTED_MODULE_7__.isTooltip(cursorLabelComponent)) {
|
|
22830
|
-
const tooltipTheme = theme && theme.tooltip || {};
|
|
22831
|
-
labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labelProps, tooltipTheme);
|
|
22832
|
-
}
|
|
22833
|
-
newElements.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cursorLabelComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labelProps, {
|
|
22834
|
-
text: victory_core__WEBPACK_IMPORTED_MODULE_7__.evaluateProp(cursorLabel, labelProps)
|
|
22835
|
-
})));
|
|
22836
|
-
}
|
|
22837
|
-
const cursorStyle = Object.assign({
|
|
22838
|
-
stroke: "black"
|
|
22839
|
-
}, cursorComponent.props.style);
|
|
22840
|
-
if (cursorDimension === "x" || cursorDimension === undefined) {
|
|
22841
|
-
newElements.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cursorComponent, {
|
|
22842
|
-
key: `${name}-x-cursor`,
|
|
22843
|
-
x1: cursorCoordinates.x,
|
|
22844
|
-
x2: cursorCoordinates.x,
|
|
22845
|
-
y1: padding.top,
|
|
22846
|
-
y2: height - padding.bottom,
|
|
22847
|
-
style: cursorStyle
|
|
22848
|
-
}));
|
|
22849
|
-
}
|
|
22850
|
-
if (cursorDimension === "y" || cursorDimension === undefined) {
|
|
22851
|
-
newElements.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cursorComponent, {
|
|
22852
|
-
key: `${name}-y-cursor`,
|
|
22853
|
-
x1: padding.left,
|
|
22854
|
-
x2: width - padding.right,
|
|
22855
|
-
y1: cursorCoordinates.y,
|
|
22856
|
-
y2: cursorCoordinates.y,
|
|
22857
|
-
style: cursorStyle
|
|
22858
|
-
}));
|
|
22859
|
-
}
|
|
22860
|
-
return newElements;
|
|
22578
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_5__.getPadding(props);
|
|
22579
|
+
};
|
|
22580
|
+
const getCursorElements = () => {
|
|
22581
|
+
// eslint-disable-line max-statements
|
|
22582
|
+
const {
|
|
22583
|
+
scale,
|
|
22584
|
+
cursorLabelComponent,
|
|
22585
|
+
cursorLabel,
|
|
22586
|
+
cursorComponent,
|
|
22587
|
+
width,
|
|
22588
|
+
height,
|
|
22589
|
+
name,
|
|
22590
|
+
horizontal,
|
|
22591
|
+
theme
|
|
22592
|
+
} = props;
|
|
22593
|
+
const cursorDimension = _cursor_helpers__WEBPACK_IMPORTED_MODULE_6__.CursorHelpers.getDimension(props);
|
|
22594
|
+
const cursorValue = getCursorPosition();
|
|
22595
|
+
const cursorLabelOffset = getCursorLabelOffset();
|
|
22596
|
+
if (!cursorValue) {
|
|
22597
|
+
return [];
|
|
22861
22598
|
}
|
|
22862
|
-
|
|
22863
|
-
|
|
22864
|
-
|
|
22865
|
-
|
|
22599
|
+
const newElements = [];
|
|
22600
|
+
const padding = getPadding();
|
|
22601
|
+
const cursorCoordinates = scale && "x" in scale && "y" in scale && typeof scale.y === "function" && typeof scale.x === "function" ? {
|
|
22602
|
+
x: horizontal ? scale.y(cursorValue.y) : scale.x(cursorValue.x),
|
|
22603
|
+
y: horizontal ? scale.x(cursorValue.x) : scale.y(cursorValue.y)
|
|
22604
|
+
} : {
|
|
22605
|
+
x: cursorValue.x,
|
|
22606
|
+
y: cursorValue.y
|
|
22607
|
+
};
|
|
22608
|
+
if (cursorLabel) {
|
|
22609
|
+
let labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
|
|
22610
|
+
active: true
|
|
22611
|
+
}, cursorLabelComponent.props, {
|
|
22612
|
+
x: cursorCoordinates.x + cursorLabelOffset.x,
|
|
22613
|
+
y: cursorCoordinates.y + cursorLabelOffset.y,
|
|
22614
|
+
datum: cursorValue,
|
|
22615
|
+
active: true,
|
|
22616
|
+
key: `${name}-cursor-label`
|
|
22617
|
+
});
|
|
22618
|
+
if (victory_core__WEBPACK_IMPORTED_MODULE_5__.isTooltip(cursorLabelComponent)) {
|
|
22619
|
+
const tooltipTheme = theme && theme.tooltip || {};
|
|
22620
|
+
labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labelProps, tooltipTheme);
|
|
22621
|
+
}
|
|
22622
|
+
newElements.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cursorLabelComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labelProps, {
|
|
22623
|
+
text: victory_core__WEBPACK_IMPORTED_MODULE_5__.evaluateProp(cursorLabel, labelProps)
|
|
22624
|
+
})));
|
|
22866
22625
|
}
|
|
22626
|
+
const cursorStyle = Object.assign({
|
|
22627
|
+
stroke: "black"
|
|
22628
|
+
}, cursorComponent.props.style);
|
|
22629
|
+
if (cursorDimension === "x" || cursorDimension === undefined) {
|
|
22630
|
+
newElements.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cursorComponent, {
|
|
22631
|
+
key: `${name}-x-cursor`,
|
|
22632
|
+
x1: cursorCoordinates.x,
|
|
22633
|
+
x2: cursorCoordinates.x,
|
|
22634
|
+
y1: padding.top,
|
|
22635
|
+
y2: (typeof height === "number" ? height : 0) - padding.bottom,
|
|
22636
|
+
style: cursorStyle
|
|
22637
|
+
}));
|
|
22638
|
+
}
|
|
22639
|
+
if (cursorDimension === "y" || cursorDimension === undefined) {
|
|
22640
|
+
newElements.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(cursorComponent, {
|
|
22641
|
+
key: `${name}-y-cursor`,
|
|
22642
|
+
x1: padding.left,
|
|
22643
|
+
x2: (typeof width === "number" ? width : 0) - padding.right,
|
|
22644
|
+
y1: cursorCoordinates.y,
|
|
22645
|
+
y2: cursorCoordinates.y,
|
|
22646
|
+
style: cursorStyle
|
|
22647
|
+
}));
|
|
22648
|
+
}
|
|
22649
|
+
return newElements;
|
|
22867
22650
|
};
|
|
22868
|
-
|
|
22869
|
-
|
|
22651
|
+
return {
|
|
22652
|
+
props,
|
|
22653
|
+
children: [...react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(children), ...getCursorElements()]
|
|
22654
|
+
};
|
|
22655
|
+
};
|
|
22656
|
+
const VictoryCursorContainer = initialProps => {
|
|
22657
|
+
const {
|
|
22658
|
+
props,
|
|
22659
|
+
children
|
|
22660
|
+
} = useVictoryCursorContainer(initialProps);
|
|
22661
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryContainer, props, children);
|
|
22662
|
+
};
|
|
22663
|
+
VictoryCursorContainer.role = "container";
|
|
22664
|
+
VictoryCursorContainer.defaultEvents = initialProps => {
|
|
22665
|
+
const props = {
|
|
22666
|
+
...VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS,
|
|
22667
|
+
...initialProps
|
|
22668
|
+
};
|
|
22669
|
+
const createEventHandler = (handler, disabled) =>
|
|
22670
|
+
// eslint-disable-next-line max-params
|
|
22671
|
+
(event, targetProps, eventKey, context) => disabled || props.disable ? {} : handler(event, {
|
|
22672
|
+
...props,
|
|
22673
|
+
...targetProps
|
|
22674
|
+
}, eventKey, context);
|
|
22675
|
+
return [{
|
|
22676
|
+
target: "parent",
|
|
22677
|
+
eventHandlers: {
|
|
22678
|
+
onMouseLeave: createEventHandler(_cursor_helpers__WEBPACK_IMPORTED_MODULE_6__.CursorHelpers.onMouseLeave),
|
|
22679
|
+
onMouseMove: createEventHandler(_cursor_helpers__WEBPACK_IMPORTED_MODULE_6__.CursorHelpers.onMouseMove),
|
|
22680
|
+
onTouchMove: createEventHandler(_cursor_helpers__WEBPACK_IMPORTED_MODULE_6__.CursorHelpers.onMouseMove)
|
|
22681
|
+
}
|
|
22682
|
+
}];
|
|
22683
|
+
};
|
|
22870
22684
|
|
|
22871
22685
|
/***/ }),
|
|
22872
22686
|
|
|
@@ -26618,8 +26432,9 @@ const VictoryScatter = (0,victory_core__WEBPACK_IMPORTED_MODULE_11__.addEvents)(
|
|
|
26618
26432
|
__webpack_require__.r(__webpack_exports__);
|
|
26619
26433
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26620
26434
|
/* harmony export */ "SelectionHelpers": function() { return /* reexport safe */ _selection_helpers__WEBPACK_IMPORTED_MODULE_1__.SelectionHelpers; },
|
|
26435
|
+
/* harmony export */ "VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ _victory_selection_container__WEBPACK_IMPORTED_MODULE_0__.VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS; },
|
|
26621
26436
|
/* harmony export */ "VictorySelectionContainer": function() { return /* reexport safe */ _victory_selection_container__WEBPACK_IMPORTED_MODULE_0__.VictorySelectionContainer; },
|
|
26622
|
-
/* harmony export */ "
|
|
26437
|
+
/* harmony export */ "useVictorySelectionContainer": function() { return /* reexport safe */ _victory_selection_container__WEBPACK_IMPORTED_MODULE_0__.useVictorySelectionContainer; }
|
|
26623
26438
|
/* harmony export */ });
|
|
26624
26439
|
/* harmony import */ var _victory_selection_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-selection-container */ "../../victory-selection-container/es/victory-selection-container.js");
|
|
26625
26440
|
/* harmony import */ var _selection_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./selection-helpers */ "../../victory-selection-container/es/selection-helpers.js");
|
|
@@ -26880,88 +26695,91 @@ const SelectionHelpers = new SelectionHelpersClass();
|
|
|
26880
26695
|
"use strict";
|
|
26881
26696
|
__webpack_require__.r(__webpack_exports__);
|
|
26882
26697
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26698
|
+
/* harmony export */ "VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS": function() { return /* binding */ VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS; },
|
|
26883
26699
|
/* harmony export */ "VictorySelectionContainer": function() { return /* binding */ VictorySelectionContainer; },
|
|
26884
|
-
/* harmony export */ "
|
|
26700
|
+
/* harmony export */ "useVictorySelectionContainer": function() { return /* binding */ useVictorySelectionContainer; }
|
|
26885
26701
|
/* harmony export */ });
|
|
26886
26702
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
26887
26703
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
26888
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
26889
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
26704
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/rect.js");
|
|
26705
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
26890
26706
|
/* harmony import */ var _selection_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./selection-helpers */ "../../victory-selection-container/es/selection-helpers.js");
|
|
26891
26707
|
|
|
26892
26708
|
|
|
26893
26709
|
|
|
26894
|
-
|
|
26895
|
-
|
|
26896
|
-
|
|
26897
|
-
|
|
26898
|
-
|
|
26899
|
-
|
|
26900
|
-
|
|
26901
|
-
|
|
26902
|
-
|
|
26903
|
-
|
|
26904
|
-
|
|
26905
|
-
|
|
26906
|
-
|
|
26907
|
-
|
|
26908
|
-
};
|
|
26909
|
-
static defaultEvents(props) {
|
|
26910
|
-
return [{
|
|
26911
|
-
target: "parent",
|
|
26912
|
-
eventHandlers: {
|
|
26913
|
-
onMouseDown: (evt, targetProps) => {
|
|
26914
|
-
return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseDown(evt, targetProps);
|
|
26915
|
-
},
|
|
26916
|
-
onTouchStart: (evt, targetProps) => {
|
|
26917
|
-
return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseDown(evt, targetProps);
|
|
26918
|
-
},
|
|
26919
|
-
onMouseMove: (evt, targetProps) => {
|
|
26920
|
-
return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseMove(evt, targetProps);
|
|
26921
|
-
},
|
|
26922
|
-
onTouchMove: (evt, targetProps) => {
|
|
26923
|
-
return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseMove(evt, targetProps);
|
|
26924
|
-
},
|
|
26925
|
-
onMouseUp: (evt, targetProps) => {
|
|
26926
|
-
return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseUp(evt, targetProps);
|
|
26927
|
-
},
|
|
26928
|
-
onTouchEnd: (evt, targetProps) => {
|
|
26929
|
-
return props.disable ? {} : _selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseUp(evt, targetProps);
|
|
26930
|
-
}
|
|
26931
|
-
}
|
|
26932
|
-
}];
|
|
26933
|
-
}
|
|
26934
|
-
getRect(props) {
|
|
26935
|
-
const {
|
|
26936
|
-
x1,
|
|
26937
|
-
x2,
|
|
26938
|
-
y1,
|
|
26939
|
-
y2,
|
|
26940
|
-
selectionStyle,
|
|
26941
|
-
selectionComponent,
|
|
26942
|
-
name
|
|
26943
|
-
} = props;
|
|
26944
|
-
const width = Math.abs(x2 - x1) || 1;
|
|
26945
|
-
const height = Math.abs(y2 - y1) || 1;
|
|
26946
|
-
const x = Math.min(x1, x2);
|
|
26947
|
-
const y = Math.min(y1, y2);
|
|
26948
|
-
return y2 && x2 && x1 && y1 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(selectionComponent, {
|
|
26949
|
-
key: `${name}-selection`,
|
|
26950
|
-
x,
|
|
26951
|
-
y,
|
|
26952
|
-
width,
|
|
26953
|
-
height,
|
|
26954
|
-
style: selectionStyle
|
|
26955
|
-
}) : null;
|
|
26956
|
-
}
|
|
26957
|
-
|
|
26958
|
-
// Overrides method in VictoryContainer
|
|
26959
|
-
getChildren(props) {
|
|
26960
|
-
return [...react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children), this.getRect(props)];
|
|
26961
|
-
}
|
|
26710
|
+
const VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS = {
|
|
26711
|
+
activateSelectedData: true,
|
|
26712
|
+
allowSelection: true,
|
|
26713
|
+
selectionComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_1__.Rect, null),
|
|
26714
|
+
selectionStyle: {
|
|
26715
|
+
stroke: "transparent",
|
|
26716
|
+
fill: "black",
|
|
26717
|
+
fillOpacity: 0.1
|
|
26718
|
+
}
|
|
26719
|
+
};
|
|
26720
|
+
const useVictorySelectionContainer = initialProps => {
|
|
26721
|
+
const props = {
|
|
26722
|
+
...VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS,
|
|
26723
|
+
...initialProps
|
|
26962
26724
|
};
|
|
26963
|
-
|
|
26964
|
-
|
|
26725
|
+
const {
|
|
26726
|
+
x1,
|
|
26727
|
+
x2,
|
|
26728
|
+
y1,
|
|
26729
|
+
y2,
|
|
26730
|
+
selectionStyle,
|
|
26731
|
+
selectionComponent,
|
|
26732
|
+
children,
|
|
26733
|
+
name
|
|
26734
|
+
} = props;
|
|
26735
|
+
const width = Math.abs(x2 - x1) || 1;
|
|
26736
|
+
const height = Math.abs(y2 - y1) || 1;
|
|
26737
|
+
const x = Math.min(x1, x2);
|
|
26738
|
+
const y = Math.min(y1, y2);
|
|
26739
|
+
const shouldRenderRect = y1 && y2 && x1 && x2;
|
|
26740
|
+
return {
|
|
26741
|
+
props,
|
|
26742
|
+
children: [children, shouldRenderRect && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(selectionComponent, {
|
|
26743
|
+
key: `${name}-selection`,
|
|
26744
|
+
x,
|
|
26745
|
+
y,
|
|
26746
|
+
width,
|
|
26747
|
+
height,
|
|
26748
|
+
style: selectionStyle
|
|
26749
|
+
})]
|
|
26750
|
+
};
|
|
26751
|
+
};
|
|
26752
|
+
const VictorySelectionContainer = initialProps => {
|
|
26753
|
+
const {
|
|
26754
|
+
props,
|
|
26755
|
+
children
|
|
26756
|
+
} = useVictorySelectionContainer(initialProps);
|
|
26757
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.VictoryContainer, props, children);
|
|
26758
|
+
};
|
|
26759
|
+
VictorySelectionContainer.role = "container";
|
|
26760
|
+
VictorySelectionContainer.defaultEvents = initialProps => {
|
|
26761
|
+
const props = {
|
|
26762
|
+
...VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS,
|
|
26763
|
+
...initialProps
|
|
26764
|
+
};
|
|
26765
|
+
const createEventHandler = (handler, disabled) =>
|
|
26766
|
+
// eslint-disable-next-line max-params
|
|
26767
|
+
(event, targetProps, eventKey, context) => disabled || props.disable ? {} : handler(event, {
|
|
26768
|
+
...props,
|
|
26769
|
+
...targetProps
|
|
26770
|
+
}, eventKey, context);
|
|
26771
|
+
return [{
|
|
26772
|
+
target: "parent",
|
|
26773
|
+
eventHandlers: {
|
|
26774
|
+
onMouseDown: createEventHandler(_selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseDown),
|
|
26775
|
+
onTouchStart: createEventHandler(_selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseDown),
|
|
26776
|
+
onMouseMove: createEventHandler(_selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseMove),
|
|
26777
|
+
onTouchMove: createEventHandler(_selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseMove),
|
|
26778
|
+
onMouseUp: createEventHandler(_selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseUp),
|
|
26779
|
+
onTouchEnd: createEventHandler(_selection_helpers__WEBPACK_IMPORTED_MODULE_3__.SelectionHelpers.onMouseUp)
|
|
26780
|
+
}
|
|
26781
|
+
}];
|
|
26782
|
+
};
|
|
26965
26783
|
|
|
26966
26784
|
/***/ }),
|
|
26967
26785
|
|
|
@@ -28318,7 +28136,7 @@ class VictoryTooltip extends (react__WEBPACK_IMPORTED_MODULE_4___default().Compo
|
|
|
28318
28136
|
renderInPortal
|
|
28319
28137
|
} = props;
|
|
28320
28138
|
if (!active) {
|
|
28321
|
-
return
|
|
28139
|
+
return null;
|
|
28322
28140
|
}
|
|
28323
28141
|
const evaluatedProps = this.getEvaluatedProps(props);
|
|
28324
28142
|
const {
|
|
@@ -28710,9 +28528,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28710
28528
|
"use strict";
|
|
28711
28529
|
__webpack_require__.r(__webpack_exports__);
|
|
28712
28530
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28531
|
+
/* harmony export */ "VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__.VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS; },
|
|
28713
28532
|
/* harmony export */ "VictoryVoronoiContainer": function() { return /* reexport safe */ _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__.VictoryVoronoiContainer; },
|
|
28714
28533
|
/* harmony export */ "VoronoiHelpers": function() { return /* reexport safe */ _voronoi_helpers__WEBPACK_IMPORTED_MODULE_1__.VoronoiHelpers; },
|
|
28715
|
-
/* harmony export */ "
|
|
28534
|
+
/* harmony export */ "useVictoryVoronoiContainer": function() { return /* reexport safe */ _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__.useVictoryVoronoiContainer; }
|
|
28716
28535
|
/* harmony export */ });
|
|
28717
28536
|
/* harmony import */ var _victory_voronoi_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-voronoi-container */ "../../victory-voronoi-container/es/victory-voronoi-container.js");
|
|
28718
28537
|
/* harmony import */ var _voronoi_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./voronoi-helpers */ "../../victory-voronoi-container/es/voronoi-helpers.js");
|
|
@@ -28730,8 +28549,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28730
28549
|
"use strict";
|
|
28731
28550
|
__webpack_require__.r(__webpack_exports__);
|
|
28732
28551
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28552
|
+
/* harmony export */ "VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS": function() { return /* binding */ VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS; },
|
|
28733
28553
|
/* harmony export */ "VictoryVoronoiContainer": function() { return /* binding */ VictoryVoronoiContainer; },
|
|
28734
|
-
/* harmony export */ "
|
|
28554
|
+
/* harmony export */ "useVictoryVoronoiContainer": function() { return /* binding */ useVictoryVoronoiContainer; }
|
|
28735
28555
|
/* harmony export */ });
|
|
28736
28556
|
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
|
|
28737
28557
|
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -28739,10 +28559,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28739
28559
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
28740
28560
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
28741
28561
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
28742
|
-
/* harmony import */ var
|
|
28743
|
-
/* harmony import */ var
|
|
28744
|
-
/* harmony import */ var
|
|
28745
|
-
/* harmony import */ var
|
|
28562
|
+
/* harmony import */ var victory_tooltip__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-tooltip */ "../../victory-tooltip/es/victory-tooltip.js");
|
|
28563
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
28564
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
28565
|
+
/* harmony import */ var _voronoi_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./voronoi-helpers */ "../../victory-voronoi-container/es/voronoi-helpers.js");
|
|
28746
28566
|
|
|
28747
28567
|
|
|
28748
28568
|
/* eslint-disable react/no-multi-comp */
|
|
@@ -28750,204 +28570,214 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28750
28570
|
|
|
28751
28571
|
|
|
28752
28572
|
|
|
28753
|
-
|
|
28754
|
-
|
|
28755
|
-
|
|
28756
|
-
|
|
28757
|
-
|
|
28758
|
-
|
|
28759
|
-
|
|
28760
|
-
|
|
28761
|
-
|
|
28762
|
-
|
|
28763
|
-
|
|
28764
|
-
|
|
28765
|
-
|
|
28766
|
-
|
|
28767
|
-
|
|
28768
|
-
|
|
28769
|
-
|
|
28770
|
-
|
|
28771
|
-
|
|
28772
|
-
|
|
28773
|
-
|
|
28774
|
-
|
|
28775
|
-
|
|
28776
|
-
|
|
28777
|
-
|
|
28778
|
-
return props.disable ? {} : _voronoi_helpers__WEBPACK_IMPORTED_MODULE_5__.VoronoiHelpers.onMouseMove(evt, targetProps);
|
|
28779
|
-
}
|
|
28780
|
-
}
|
|
28781
|
-
}, {
|
|
28782
|
-
target: "data",
|
|
28783
|
-
eventHandlers: props.disable ? {} : {
|
|
28784
|
-
onMouseOver: () => null,
|
|
28785
|
-
onMouseOut: () => null,
|
|
28786
|
-
onMouseMove: () => null
|
|
28787
|
-
}
|
|
28788
|
-
}];
|
|
28789
|
-
}
|
|
28790
|
-
getDimension(props) {
|
|
28791
|
-
const {
|
|
28792
|
-
horizontal,
|
|
28793
|
-
voronoiDimension
|
|
28794
|
-
} = props;
|
|
28795
|
-
if (!horizontal || !voronoiDimension) {
|
|
28796
|
-
return voronoiDimension;
|
|
28797
|
-
}
|
|
28798
|
-
return voronoiDimension === "x" ? "y" : "x";
|
|
28799
|
-
}
|
|
28800
|
-
getPoint(point) {
|
|
28801
|
-
const whitelist = ["_x", "_x1", "_x0", "_y", "_y1", "_y0"];
|
|
28802
|
-
return lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(point, whitelist);
|
|
28573
|
+
const VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS = {
|
|
28574
|
+
activateData: true,
|
|
28575
|
+
activateLabels: true,
|
|
28576
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_tooltip__WEBPACK_IMPORTED_MODULE_3__.VictoryTooltip, null),
|
|
28577
|
+
voronoiPadding: 5
|
|
28578
|
+
};
|
|
28579
|
+
const getPoint = point => {
|
|
28580
|
+
const whitelist = ["_x", "_x1", "_x0", "_y", "_y1", "_y0"];
|
|
28581
|
+
return lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(point, whitelist);
|
|
28582
|
+
};
|
|
28583
|
+
const useVictoryVoronoiContainer = initialProps => {
|
|
28584
|
+
const props = {
|
|
28585
|
+
...VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS,
|
|
28586
|
+
...initialProps
|
|
28587
|
+
};
|
|
28588
|
+
const {
|
|
28589
|
+
children
|
|
28590
|
+
} = props;
|
|
28591
|
+
const getDimension = () => {
|
|
28592
|
+
const {
|
|
28593
|
+
horizontal,
|
|
28594
|
+
voronoiDimension
|
|
28595
|
+
} = props;
|
|
28596
|
+
if (!horizontal || !voronoiDimension) {
|
|
28597
|
+
return voronoiDimension;
|
|
28803
28598
|
}
|
|
28804
|
-
|
|
28805
|
-
|
|
28806
|
-
|
|
28807
|
-
|
|
28808
|
-
|
|
28809
|
-
|
|
28810
|
-
|
|
28811
|
-
|
|
28812
|
-
|
|
28813
|
-
|
|
28814
|
-
|
|
28815
|
-
|
|
28816
|
-
center: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labelProps.center, center)
|
|
28817
|
-
};
|
|
28818
|
-
}
|
|
28819
|
-
const x = voronoiDimension === "y" ? mousePosition.x : basePosition.x;
|
|
28820
|
-
const y = voronoiDimension === "x" ? mousePosition.y : basePosition.y;
|
|
28821
|
-
center = mouseFollowTooltips ? mousePosition : {
|
|
28822
|
-
x,
|
|
28823
|
-
y
|
|
28824
|
-
};
|
|
28599
|
+
return voronoiDimension === "x" ? "y" : "x";
|
|
28600
|
+
};
|
|
28601
|
+
const getLabelPosition = (labelProps, points) => {
|
|
28602
|
+
const {
|
|
28603
|
+
mousePosition,
|
|
28604
|
+
mouseFollowTooltips
|
|
28605
|
+
} = props;
|
|
28606
|
+
const voronoiDimension = getDimension();
|
|
28607
|
+
const point = getPoint(points[0]);
|
|
28608
|
+
const basePosition = victory_core__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, point);
|
|
28609
|
+
let center = mouseFollowTooltips ? mousePosition : undefined;
|
|
28610
|
+
if (!voronoiDimension || points.length < 2) {
|
|
28825
28611
|
return {
|
|
28826
|
-
|
|
28827
|
-
y,
|
|
28612
|
+
...basePosition,
|
|
28828
28613
|
center: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labelProps.center, center)
|
|
28829
28614
|
};
|
|
28830
28615
|
}
|
|
28831
|
-
|
|
28832
|
-
|
|
28833
|
-
|
|
28834
|
-
|
|
28835
|
-
|
|
28836
|
-
|
|
28837
|
-
|
|
28838
|
-
|
|
28839
|
-
|
|
28840
|
-
|
|
28841
|
-
|
|
28842
|
-
|
|
28843
|
-
|
|
28844
|
-
|
|
28845
|
-
|
|
28846
|
-
|
|
28847
|
-
|
|
28848
|
-
|
|
28849
|
-
|
|
28850
|
-
|
|
28851
|
-
|
|
28852
|
-
|
|
28853
|
-
|
|
28854
|
-
getDefaultLabelProps(props, points) {
|
|
28855
|
-
const {
|
|
28856
|
-
voronoiDimension,
|
|
28857
|
-
horizontal,
|
|
28858
|
-
mouseFollowTooltips
|
|
28859
|
-
} = props;
|
|
28860
|
-
const point = this.getPoint(points[0]);
|
|
28861
|
-
const multiPoint = voronoiDimension && points.length > 1;
|
|
28862
|
-
const y = point._y1 !== undefined ? point._y1 : point._y;
|
|
28863
|
-
const defaultHorizontalOrientation = y < 0 ? "left" : "right";
|
|
28864
|
-
const defaultOrientation = y < 0 ? "bottom" : "top";
|
|
28865
|
-
const labelOrientation = horizontal ? defaultHorizontalOrientation : defaultOrientation;
|
|
28866
|
-
const orientation = mouseFollowTooltips ? undefined : labelOrientation;
|
|
28867
|
-
return {
|
|
28868
|
-
orientation,
|
|
28869
|
-
pointerLength: multiPoint ? 0 : undefined,
|
|
28870
|
-
constrainToVisibleArea: multiPoint || mouseFollowTooltips ? true : undefined
|
|
28871
|
-
};
|
|
28872
|
-
}
|
|
28873
|
-
getLabelProps(props, points) {
|
|
28874
|
-
const {
|
|
28875
|
-
labels,
|
|
28876
|
-
scale,
|
|
28877
|
-
labelComponent,
|
|
28878
|
-
theme,
|
|
28879
|
-
width,
|
|
28880
|
-
height
|
|
28881
|
-
} = props;
|
|
28882
|
-
const componentProps = labelComponent.props || {};
|
|
28883
|
-
const text = points.reduce((memo, datum) => {
|
|
28884
|
-
const labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, componentProps, {
|
|
28885
|
-
datum,
|
|
28886
|
-
active: true
|
|
28887
|
-
});
|
|
28888
|
-
const t = victory_core__WEBPACK_IMPORTED_MODULE_6__.isFunction(labels) ? labels(labelProps) : null;
|
|
28889
|
-
if (t === null || t === undefined) {
|
|
28890
|
-
return memo;
|
|
28891
|
-
}
|
|
28892
|
-
return memo.concat(`${t}`.split("\n"));
|
|
28893
|
-
}, []);
|
|
28894
|
-
|
|
28895
|
-
// remove properties from first point to make datum
|
|
28896
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
28897
|
-
const {
|
|
28898
|
-
childName,
|
|
28899
|
-
eventKey,
|
|
28900
|
-
style,
|
|
28901
|
-
continuous,
|
|
28902
|
-
...datum
|
|
28903
|
-
} = points[0];
|
|
28904
|
-
const name = props.name === childName ? childName : `${props.name}-${childName}`;
|
|
28905
|
-
const labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
|
|
28906
|
-
key: `${name}-${eventKey}-voronoi-tooltip`,
|
|
28907
|
-
id: `${name}-${eventKey}-voronoi-tooltip`,
|
|
28908
|
-
active: true,
|
|
28909
|
-
renderInPortal: false,
|
|
28910
|
-
activePoints: points,
|
|
28616
|
+
const x = voronoiDimension === "y" ? mousePosition.x : basePosition.x;
|
|
28617
|
+
const y = voronoiDimension === "x" ? mousePosition.y : basePosition.y;
|
|
28618
|
+
center = mouseFollowTooltips ? mousePosition : {
|
|
28619
|
+
x,
|
|
28620
|
+
y
|
|
28621
|
+
};
|
|
28622
|
+
return {
|
|
28623
|
+
x,
|
|
28624
|
+
y,
|
|
28625
|
+
center: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labelProps.center, center)
|
|
28626
|
+
};
|
|
28627
|
+
};
|
|
28628
|
+
const getStyle = (points, type) => {
|
|
28629
|
+
const {
|
|
28630
|
+
labels,
|
|
28631
|
+
labelComponent,
|
|
28632
|
+
theme
|
|
28633
|
+
} = props;
|
|
28634
|
+
const componentProps = labelComponent.props || {};
|
|
28635
|
+
const themeStyles = theme && theme.voronoi && theme.voronoi.style ? theme.voronoi.style : {};
|
|
28636
|
+
const componentStyleArray = type === "flyout" ? componentProps.flyoutStyle : componentProps.style;
|
|
28637
|
+
return points.reduce((memo, datum, index) => {
|
|
28638
|
+
const labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, componentProps, {
|
|
28911
28639
|
datum,
|
|
28912
|
-
|
|
28913
|
-
|
|
28914
|
-
|
|
28915
|
-
|
|
28916
|
-
|
|
28917
|
-
|
|
28918
|
-
|
|
28919
|
-
|
|
28920
|
-
|
|
28921
|
-
|
|
28922
|
-
|
|
28923
|
-
|
|
28924
|
-
|
|
28925
|
-
|
|
28926
|
-
|
|
28927
|
-
|
|
28928
|
-
|
|
28929
|
-
|
|
28930
|
-
|
|
28931
|
-
|
|
28932
|
-
|
|
28933
|
-
|
|
28934
|
-
|
|
28935
|
-
|
|
28936
|
-
|
|
28937
|
-
|
|
28938
|
-
|
|
28939
|
-
|
|
28640
|
+
active: true
|
|
28641
|
+
});
|
|
28642
|
+
const text = victory_core__WEBPACK_IMPORTED_MODULE_4__.isFunction(labels) ? labels(labelProps) : undefined;
|
|
28643
|
+
const textArray = text !== undefined ? `${text}`.split("\n") : [];
|
|
28644
|
+
const baseStyle = datum.style && datum.style[type] || {};
|
|
28645
|
+
const componentStyle = Array.isArray(componentStyleArray) ? componentStyleArray[index] : componentStyleArray;
|
|
28646
|
+
const style = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, componentStyle, baseStyle, themeStyles[type]), labelProps);
|
|
28647
|
+
const styleArray = textArray.length ? textArray.map(() => style) : [style];
|
|
28648
|
+
return memo.concat(styleArray);
|
|
28649
|
+
}, []);
|
|
28650
|
+
};
|
|
28651
|
+
const getDefaultLabelProps = points => {
|
|
28652
|
+
const {
|
|
28653
|
+
voronoiDimension,
|
|
28654
|
+
horizontal,
|
|
28655
|
+
mouseFollowTooltips
|
|
28656
|
+
} = props;
|
|
28657
|
+
const point = getPoint(points[0]);
|
|
28658
|
+
const multiPoint = voronoiDimension && points.length > 1;
|
|
28659
|
+
const y = point._y1 !== undefined ? point._y1 : point._y;
|
|
28660
|
+
const defaultHorizontalOrientation = y < 0 ? "left" : "right";
|
|
28661
|
+
const defaultOrientation = y < 0 ? "bottom" : "top";
|
|
28662
|
+
const labelOrientation = horizontal ? defaultHorizontalOrientation : defaultOrientation;
|
|
28663
|
+
const orientation = mouseFollowTooltips ? undefined : labelOrientation;
|
|
28664
|
+
return {
|
|
28665
|
+
orientation,
|
|
28666
|
+
pointerLength: multiPoint ? 0 : undefined,
|
|
28667
|
+
constrainToVisibleArea: multiPoint || mouseFollowTooltips ? true : undefined
|
|
28668
|
+
};
|
|
28669
|
+
};
|
|
28670
|
+
const getLabelProps = points => {
|
|
28671
|
+
const {
|
|
28672
|
+
labels,
|
|
28673
|
+
scale,
|
|
28674
|
+
labelComponent,
|
|
28675
|
+
theme,
|
|
28676
|
+
width,
|
|
28677
|
+
height
|
|
28678
|
+
} = props;
|
|
28679
|
+
const componentProps = labelComponent.props || {};
|
|
28680
|
+
const text = points.reduce((memo, datum) => {
|
|
28681
|
+
const labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, componentProps, {
|
|
28682
|
+
datum,
|
|
28683
|
+
active: true
|
|
28684
|
+
});
|
|
28685
|
+
const t = victory_core__WEBPACK_IMPORTED_MODULE_4__.isFunction(labels) ? labels(labelProps) : null;
|
|
28686
|
+
if (t === null || t === undefined) {
|
|
28687
|
+
return memo;
|
|
28940
28688
|
}
|
|
28689
|
+
return memo.concat(`${t}`.split("\n"));
|
|
28690
|
+
}, []);
|
|
28691
|
+
|
|
28692
|
+
// remove properties from first point to make datum
|
|
28693
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
28694
|
+
const {
|
|
28695
|
+
childName,
|
|
28696
|
+
eventKey,
|
|
28697
|
+
style,
|
|
28698
|
+
continuous,
|
|
28699
|
+
...datum
|
|
28700
|
+
} = points[0];
|
|
28701
|
+
const name = props.name === childName ? childName : `${props.name}-${childName}`;
|
|
28702
|
+
const labelProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
|
|
28703
|
+
key: `${name}-${eventKey}-voronoi-tooltip`,
|
|
28704
|
+
id: `${name}-${eventKey}-voronoi-tooltip`,
|
|
28705
|
+
active: true,
|
|
28706
|
+
renderInPortal: false,
|
|
28707
|
+
activePoints: points,
|
|
28708
|
+
datum,
|
|
28709
|
+
scale,
|
|
28710
|
+
theme
|
|
28711
|
+
}, componentProps, {
|
|
28712
|
+
text,
|
|
28713
|
+
width,
|
|
28714
|
+
height,
|
|
28715
|
+
style: getStyle(points, "labels"),
|
|
28716
|
+
flyoutStyle: getStyle(points, "flyout")[0]
|
|
28717
|
+
}, getDefaultLabelProps(points));
|
|
28718
|
+
const labelPosition = getLabelPosition(labelProps, points);
|
|
28719
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labelPosition, labelProps);
|
|
28720
|
+
};
|
|
28721
|
+
const getTooltip = () => {
|
|
28722
|
+
const {
|
|
28723
|
+
labels,
|
|
28724
|
+
activePoints,
|
|
28725
|
+
labelComponent
|
|
28726
|
+
} = props;
|
|
28727
|
+
if (!labels) {
|
|
28941
28728
|
return null;
|
|
28942
28729
|
}
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
28946
|
-
|
|
28730
|
+
if (Array.isArray(activePoints) && activePoints.length) {
|
|
28731
|
+
const labelProps = getLabelProps(activePoints);
|
|
28732
|
+
const {
|
|
28733
|
+
text
|
|
28734
|
+
} = labelProps;
|
|
28735
|
+
const showLabel = Array.isArray(text) ? text.filter(Boolean).length : text;
|
|
28736
|
+
return showLabel ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(labelComponent, labelProps) : null;
|
|
28947
28737
|
}
|
|
28738
|
+
return null;
|
|
28948
28739
|
};
|
|
28949
|
-
|
|
28950
|
-
|
|
28740
|
+
return {
|
|
28741
|
+
props,
|
|
28742
|
+
children: [...react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(children), getTooltip()]
|
|
28743
|
+
};
|
|
28744
|
+
};
|
|
28745
|
+
const VictoryVoronoiContainer = initialProps => {
|
|
28746
|
+
const {
|
|
28747
|
+
props,
|
|
28748
|
+
children
|
|
28749
|
+
} = useVictoryVoronoiContainer(initialProps);
|
|
28750
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer, props, children);
|
|
28751
|
+
};
|
|
28752
|
+
VictoryVoronoiContainer.role = "container";
|
|
28753
|
+
VictoryVoronoiContainer.defaultEvents = initialProps => {
|
|
28754
|
+
const props = {
|
|
28755
|
+
...VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS,
|
|
28756
|
+
...initialProps
|
|
28757
|
+
};
|
|
28758
|
+
const createEventHandler = (handler, disabled) =>
|
|
28759
|
+
// eslint-disable-next-line max-params
|
|
28760
|
+
(event, targetProps, eventKey, context) => disabled || props.disable ? {} : handler(event, {
|
|
28761
|
+
...props,
|
|
28762
|
+
...targetProps
|
|
28763
|
+
}, eventKey, context);
|
|
28764
|
+
return [{
|
|
28765
|
+
target: "parent",
|
|
28766
|
+
eventHandlers: {
|
|
28767
|
+
onMouseLeave: createEventHandler(_voronoi_helpers__WEBPACK_IMPORTED_MODULE_6__.VoronoiHelpers.onMouseLeave),
|
|
28768
|
+
onTouchCancel: createEventHandler(_voronoi_helpers__WEBPACK_IMPORTED_MODULE_6__.VoronoiHelpers.onMouseLeave),
|
|
28769
|
+
onMouseMove: createEventHandler(_voronoi_helpers__WEBPACK_IMPORTED_MODULE_6__.VoronoiHelpers.onMouseMove),
|
|
28770
|
+
onTouchMove: createEventHandler(_voronoi_helpers__WEBPACK_IMPORTED_MODULE_6__.VoronoiHelpers.onMouseMove)
|
|
28771
|
+
}
|
|
28772
|
+
}, {
|
|
28773
|
+
target: "data",
|
|
28774
|
+
eventHandlers: props.disable ? {} : {
|
|
28775
|
+
onMouseOver: () => null,
|
|
28776
|
+
onMouseOut: () => null,
|
|
28777
|
+
onMouseMove: () => null
|
|
28778
|
+
}
|
|
28779
|
+
}];
|
|
28780
|
+
};
|
|
28951
28781
|
|
|
28952
28782
|
/***/ }),
|
|
28953
28783
|
|
|
@@ -29585,9 +29415,10 @@ const Voronoi = initialProps => {
|
|
|
29585
29415
|
__webpack_require__.r(__webpack_exports__);
|
|
29586
29416
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29587
29417
|
/* harmony export */ "RawZoomHelpers": function() { return /* reexport safe */ _zoom_helpers__WEBPACK_IMPORTED_MODULE_1__.RawZoomHelpers; },
|
|
29418
|
+
/* harmony export */ "VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ _victory_zoom_container__WEBPACK_IMPORTED_MODULE_0__.VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS; },
|
|
29588
29419
|
/* harmony export */ "VictoryZoomContainer": function() { return /* reexport safe */ _victory_zoom_container__WEBPACK_IMPORTED_MODULE_0__.VictoryZoomContainer; },
|
|
29589
29420
|
/* harmony export */ "ZoomHelpers": function() { return /* reexport safe */ _zoom_helpers__WEBPACK_IMPORTED_MODULE_1__.ZoomHelpers; },
|
|
29590
|
-
/* harmony export */ "
|
|
29421
|
+
/* harmony export */ "useVictoryZoomContainer": function() { return /* reexport safe */ _victory_zoom_container__WEBPACK_IMPORTED_MODULE_0__.useVictoryZoomContainer; }
|
|
29591
29422
|
/* harmony export */ });
|
|
29592
29423
|
/* harmony import */ var _victory_zoom_container__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-zoom-container */ "../../victory-zoom-container/es/victory-zoom-container.js");
|
|
29593
29424
|
/* harmony import */ var _zoom_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./zoom-helpers */ "../../victory-zoom-container/es/zoom-helpers.js");
|
|
@@ -29605,85 +29436,120 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29605
29436
|
"use strict";
|
|
29606
29437
|
__webpack_require__.r(__webpack_exports__);
|
|
29607
29438
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29439
|
+
/* harmony export */ "VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS": function() { return /* binding */ VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS; },
|
|
29608
29440
|
/* harmony export */ "VictoryZoomContainer": function() { return /* binding */ VictoryZoomContainer; },
|
|
29609
|
-
/* harmony export */ "
|
|
29441
|
+
/* harmony export */ "useVictoryZoomContainer": function() { return /* binding */ useVictoryZoomContainer; }
|
|
29610
29442
|
/* harmony export */ });
|
|
29611
29443
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
29612
29444
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
29613
29445
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
29614
29446
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
29615
29447
|
/* harmony import */ var _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./zoom-helpers */ "../../victory-zoom-container/es/zoom-helpers.js");
|
|
29616
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
29617
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
29618
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-
|
|
29619
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
29448
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-clip-container/victory-clip-container.js");
|
|
29449
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/data.js");
|
|
29450
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
29620
29451
|
|
|
29621
29452
|
|
|
29622
29453
|
|
|
29623
29454
|
|
|
29624
29455
|
const DEFAULT_DOWNSAMPLE = 150;
|
|
29625
|
-
|
|
29626
|
-
|
|
29627
|
-
|
|
29628
|
-
|
|
29629
|
-
|
|
29630
|
-
|
|
29631
|
-
|
|
29632
|
-
|
|
29633
|
-
|
|
29634
|
-
|
|
29456
|
+
const VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS = {
|
|
29457
|
+
clipContainerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_2__.VictoryClipContainer, null),
|
|
29458
|
+
allowPan: true,
|
|
29459
|
+
allowZoom: true,
|
|
29460
|
+
zoomActive: false
|
|
29461
|
+
};
|
|
29462
|
+
const useVictoryZoomContainer = initialProps => {
|
|
29463
|
+
const props = {
|
|
29464
|
+
...VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS,
|
|
29465
|
+
...initialProps
|
|
29466
|
+
};
|
|
29467
|
+
const {
|
|
29468
|
+
children,
|
|
29469
|
+
currentDomain,
|
|
29470
|
+
zoomActive,
|
|
29471
|
+
allowZoom,
|
|
29472
|
+
downsample,
|
|
29473
|
+
scale,
|
|
29474
|
+
clipContainerComponent,
|
|
29475
|
+
polar,
|
|
29476
|
+
origin,
|
|
29477
|
+
horizontal
|
|
29478
|
+
} = props;
|
|
29479
|
+
const downsampleZoomData = (child, domain) => {
|
|
29480
|
+
const getData = childProps => {
|
|
29481
|
+
const {
|
|
29482
|
+
data,
|
|
29483
|
+
x,
|
|
29484
|
+
y
|
|
29485
|
+
} = childProps;
|
|
29486
|
+
const defaultGetData = child.type && typeof child.type.getData === "function" ? child.type.getData : () => undefined;
|
|
29487
|
+
// skip costly data formatting if x and y accessors are not present
|
|
29488
|
+
return Array.isArray(data) && !x && !y ? data : defaultGetData(childProps);
|
|
29635
29489
|
};
|
|
29636
|
-
|
|
29637
|
-
|
|
29638
|
-
|
|
29639
|
-
|
|
29640
|
-
|
|
29641
|
-
return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseDown(evt, targetProps);
|
|
29642
|
-
},
|
|
29643
|
-
onTouchStart: (evt, targetProps) => {
|
|
29644
|
-
return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseDown(evt, targetProps);
|
|
29645
|
-
},
|
|
29646
|
-
onMouseUp: (evt, targetProps) => {
|
|
29647
|
-
return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseUp(evt, targetProps);
|
|
29648
|
-
},
|
|
29649
|
-
onTouchEnd: (evt, targetProps) => {
|
|
29650
|
-
return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseUp(evt, targetProps);
|
|
29651
|
-
},
|
|
29652
|
-
onMouseLeave: (evt, targetProps) => {
|
|
29653
|
-
return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseLeave(evt, targetProps);
|
|
29654
|
-
},
|
|
29655
|
-
onTouchCancel: (evt, targetProps) => {
|
|
29656
|
-
return props.disable ? {} : _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseLeave(evt, targetProps);
|
|
29657
|
-
},
|
|
29658
|
-
// eslint-disable-next-line max-params
|
|
29659
|
-
onMouseMove: (evt, targetProps, eventKey, ctx) => {
|
|
29660
|
-
if (props.disable) {
|
|
29661
|
-
return {};
|
|
29662
|
-
}
|
|
29663
|
-
return _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseMove(evt, targetProps, eventKey, ctx);
|
|
29664
|
-
},
|
|
29665
|
-
// eslint-disable-next-line max-params
|
|
29666
|
-
onTouchMove: (evt, targetProps, eventKey, ctx) => {
|
|
29667
|
-
if (props.disable) {
|
|
29668
|
-
return {};
|
|
29669
|
-
}
|
|
29670
|
-
evt.preventDefault();
|
|
29671
|
-
return _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseMove(evt, targetProps, eventKey, ctx);
|
|
29672
|
-
},
|
|
29673
|
-
...(props.disable || !props.allowZoom ? {} : {
|
|
29674
|
-
onWheel: _zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onWheel
|
|
29675
|
-
})
|
|
29676
|
-
}
|
|
29677
|
-
}];
|
|
29490
|
+
const data = getData(child.props);
|
|
29491
|
+
|
|
29492
|
+
// return undefined if downsample is not run, then default() will replace with child.props.data
|
|
29493
|
+
if (!downsample || !domain || !data) {
|
|
29494
|
+
return undefined;
|
|
29678
29495
|
}
|
|
29679
|
-
|
|
29680
|
-
|
|
29681
|
-
|
|
29682
|
-
|
|
29683
|
-
|
|
29684
|
-
|
|
29685
|
-
|
|
29686
|
-
|
|
29496
|
+
const maxPoints = downsample === true ? DEFAULT_DOWNSAMPLE : downsample;
|
|
29497
|
+
const dimension = props.zoomDimension || "x";
|
|
29498
|
+
|
|
29499
|
+
// important: assumes data is ordered by dimension
|
|
29500
|
+
// get the start and end of the data that is in the current visible domain
|
|
29501
|
+
let startIndex = data.findIndex(d => d[dimension] >= domain[dimension][0]);
|
|
29502
|
+
let endIndex = data.findIndex(d => d[dimension] > domain[dimension][1]);
|
|
29503
|
+
// pick one more point (if available) at each end so that VictoryLine, VictoryArea connect
|
|
29504
|
+
if (startIndex !== 0) {
|
|
29505
|
+
startIndex -= 1;
|
|
29506
|
+
}
|
|
29507
|
+
if (endIndex !== -1) {
|
|
29508
|
+
endIndex += 1;
|
|
29509
|
+
}
|
|
29510
|
+
const visibleData = data.slice(startIndex, endIndex);
|
|
29511
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_3__.downsample(visibleData, maxPoints, startIndex);
|
|
29512
|
+
};
|
|
29513
|
+
const modifiedChildren = react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(children).map(child => {
|
|
29514
|
+
const role = child.type && child.type.role;
|
|
29515
|
+
const isDataComponent = victory_core__WEBPACK_IMPORTED_MODULE_3__.isDataComponent(child);
|
|
29516
|
+
const originalDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.originalDomain, props.domain);
|
|
29517
|
+
const zoomDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.zoomDomain, props.domain);
|
|
29518
|
+
const cachedZoomDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.cachedZoomDomain, props.domain);
|
|
29519
|
+
let domain;
|
|
29520
|
+
if (!_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.checkDomainEquality(zoomDomain, cachedZoomDomain)) {
|
|
29521
|
+
// if zoomDomain has been changed, use it
|
|
29522
|
+
domain = zoomDomain;
|
|
29523
|
+
} else if (allowZoom && !zoomActive) {
|
|
29524
|
+
// if user has zoomed all the way out, use the child domain
|
|
29525
|
+
domain = child.props.domain;
|
|
29526
|
+
} else {
|
|
29527
|
+
// default: use currentDomain, set by the event handlers
|
|
29528
|
+
domain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, currentDomain, originalDomain);
|
|
29529
|
+
}
|
|
29530
|
+
let newDomain = props.polar ? {
|
|
29531
|
+
x: originalDomain.x,
|
|
29532
|
+
y: [0, domain.y[1]]
|
|
29533
|
+
} : domain;
|
|
29534
|
+
if (newDomain && props.zoomDimension) {
|
|
29535
|
+
// if zooming is restricted to a dimension, don't squash changes to zoomDomain in other dim
|
|
29536
|
+
newDomain = {
|
|
29537
|
+
...zoomDomain,
|
|
29538
|
+
[props.zoomDimension]: newDomain[props.zoomDimension]
|
|
29539
|
+
};
|
|
29540
|
+
}
|
|
29541
|
+
|
|
29542
|
+
// don't downsample stacked data
|
|
29543
|
+
const childProps = isDataComponent && role !== "stack" ? {
|
|
29544
|
+
domain: newDomain,
|
|
29545
|
+
data: downsampleZoomData(child, newDomain)
|
|
29546
|
+
} : {
|
|
29547
|
+
domain: newDomain
|
|
29548
|
+
};
|
|
29549
|
+
const newChild = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(childProps, child.props));
|
|
29550
|
+
|
|
29551
|
+
// Clip data components
|
|
29552
|
+
if (victory_core__WEBPACK_IMPORTED_MODULE_3__.isDataComponent(newChild)) {
|
|
29687
29553
|
const rangeX = horizontal ? scale.y.range() : scale.x.range();
|
|
29688
29554
|
const rangeY = horizontal ? scale.x.range() : scale.y.range();
|
|
29689
29555
|
const plottableWidth = Math.abs(rangeX[0] - rangeX[1]);
|
|
@@ -29699,110 +29565,51 @@ function zoomContainerMixin(Base) {
|
|
|
29699
29565
|
radius: polar ? radius : undefined,
|
|
29700
29566
|
...clipContainerComponent.props
|
|
29701
29567
|
});
|
|
29702
|
-
return react__WEBPACK_IMPORTED_MODULE_1___default().
|
|
29703
|
-
|
|
29704
|
-
return child;
|
|
29705
|
-
}
|
|
29706
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(child, {
|
|
29707
|
-
groupComponent
|
|
29708
|
-
});
|
|
29709
|
-
});
|
|
29710
|
-
}
|
|
29711
|
-
modifyPolarDomain(domain, originalDomain) {
|
|
29712
|
-
// Only zoom the radius of polar charts. Zooming angles is very confusing
|
|
29713
|
-
return {
|
|
29714
|
-
x: originalDomain.x,
|
|
29715
|
-
y: [0, domain.y[1]]
|
|
29716
|
-
};
|
|
29717
|
-
}
|
|
29718
|
-
downsampleZoomData(props, child, domain) {
|
|
29719
|
-
const {
|
|
29720
|
-
downsample
|
|
29721
|
-
} = props;
|
|
29722
|
-
const getData = childProps => {
|
|
29723
|
-
const {
|
|
29724
|
-
data,
|
|
29725
|
-
x,
|
|
29726
|
-
y
|
|
29727
|
-
} = childProps;
|
|
29728
|
-
const defaultGetData = child.type && victory_core__WEBPACK_IMPORTED_MODULE_6__.isFunction(child.type.getData) ? child.type.getData : () => undefined;
|
|
29729
|
-
// skip costly data formatting if x and y accessors are not present
|
|
29730
|
-
return Array.isArray(data) && !x && !y ? data : defaultGetData(childProps);
|
|
29731
|
-
};
|
|
29732
|
-
const data = getData(child.props);
|
|
29733
|
-
|
|
29734
|
-
// return undefined if downsample is not run, then default() will replace with child.props.data
|
|
29735
|
-
if (!downsample || !domain || !data) {
|
|
29736
|
-
return undefined;
|
|
29737
|
-
}
|
|
29738
|
-
const maxPoints = downsample === true ? DEFAULT_DOWNSAMPLE : downsample;
|
|
29739
|
-
const dimension = props.zoomDimension || "x";
|
|
29740
|
-
|
|
29741
|
-
// important: assumes data is ordered by dimension
|
|
29742
|
-
// get the start and end of the data that is in the current visible domain
|
|
29743
|
-
let startIndex = data.findIndex(d => d[dimension] >= domain[dimension][0]);
|
|
29744
|
-
let endIndex = data.findIndex(d => d[dimension] > domain[dimension][1]);
|
|
29745
|
-
// pick one more point (if available) at each end so that VictoryLine, VictoryArea connect
|
|
29746
|
-
if (startIndex !== 0) {
|
|
29747
|
-
startIndex -= 1;
|
|
29748
|
-
}
|
|
29749
|
-
if (endIndex !== -1) {
|
|
29750
|
-
endIndex += 1;
|
|
29751
|
-
}
|
|
29752
|
-
const visibleData = data.slice(startIndex, endIndex);
|
|
29753
|
-
return victory_core__WEBPACK_IMPORTED_MODULE_5__.downsample(visibleData, maxPoints, startIndex);
|
|
29754
|
-
}
|
|
29755
|
-
modifyChildren(props) {
|
|
29756
|
-
const childComponents = react__WEBPACK_IMPORTED_MODULE_1___default().Children.toArray(props.children);
|
|
29757
|
-
return childComponents.map(child => {
|
|
29758
|
-
const role = child.type && child.type.role;
|
|
29759
|
-
const isDataComponent = victory_core__WEBPACK_IMPORTED_MODULE_5__.isDataComponent(child);
|
|
29760
|
-
const {
|
|
29761
|
-
currentDomain,
|
|
29762
|
-
zoomActive,
|
|
29763
|
-
allowZoom
|
|
29764
|
-
} = props;
|
|
29765
|
-
const originalDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.originalDomain, props.domain);
|
|
29766
|
-
const zoomDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.zoomDomain, props.domain);
|
|
29767
|
-
const cachedZoomDomain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props.cachedZoomDomain, props.domain);
|
|
29768
|
-
let domain;
|
|
29769
|
-
if (!_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.checkDomainEquality(zoomDomain, cachedZoomDomain)) {
|
|
29770
|
-
// if zoomDomain has been changed, use it
|
|
29771
|
-
domain = zoomDomain;
|
|
29772
|
-
} else if (allowZoom && !zoomActive) {
|
|
29773
|
-
// if user has zoomed all the way out, use the child domain
|
|
29774
|
-
domain = child.props.domain;
|
|
29775
|
-
} else {
|
|
29776
|
-
// default: use currentDomain, set by the event handlers
|
|
29777
|
-
domain = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, currentDomain, originalDomain);
|
|
29778
|
-
}
|
|
29779
|
-
let newDomain = props.polar ? this.modifyPolarDomain(domain, originalDomain) : domain;
|
|
29780
|
-
if (newDomain && props.zoomDimension) {
|
|
29781
|
-
// if zooming is restricted to a dimension, don't squash changes to zoomDomain in other dim
|
|
29782
|
-
newDomain = {
|
|
29783
|
-
...zoomDomain,
|
|
29784
|
-
[props.zoomDimension]: newDomain[props.zoomDimension]
|
|
29785
|
-
};
|
|
29786
|
-
}
|
|
29787
|
-
// don't downsample stacked data
|
|
29788
|
-
const newProps = isDataComponent && role !== "stack" ? {
|
|
29789
|
-
domain: newDomain,
|
|
29790
|
-
data: this.downsampleZoomData(props, child, newDomain)
|
|
29791
|
-
} : {
|
|
29792
|
-
domain: newDomain
|
|
29793
|
-
};
|
|
29794
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(newProps, child.props));
|
|
29568
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(newChild, {
|
|
29569
|
+
groupComponent
|
|
29795
29570
|
});
|
|
29796
29571
|
}
|
|
29797
|
-
|
|
29798
|
-
|
|
29799
|
-
|
|
29800
|
-
|
|
29801
|
-
|
|
29802
|
-
}
|
|
29572
|
+
return newChild;
|
|
29573
|
+
});
|
|
29574
|
+
return {
|
|
29575
|
+
props,
|
|
29576
|
+
children: modifiedChildren
|
|
29803
29577
|
};
|
|
29804
|
-
}
|
|
29805
|
-
const VictoryZoomContainer =
|
|
29578
|
+
};
|
|
29579
|
+
const VictoryZoomContainer = initialProps => {
|
|
29580
|
+
const {
|
|
29581
|
+
props,
|
|
29582
|
+
children
|
|
29583
|
+
} = useVictoryZoomContainer(initialProps);
|
|
29584
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer, props, children);
|
|
29585
|
+
};
|
|
29586
|
+
VictoryZoomContainer.role = "container";
|
|
29587
|
+
VictoryZoomContainer.defaultEvents = initialProps => {
|
|
29588
|
+
const props = {
|
|
29589
|
+
...VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS,
|
|
29590
|
+
...initialProps
|
|
29591
|
+
};
|
|
29592
|
+
const createEventHandler = (handler, disabled) =>
|
|
29593
|
+
// eslint-disable-next-line max-params
|
|
29594
|
+
(event, targetProps, eventKey, context) => disabled || props.disable ? {} : handler(event, {
|
|
29595
|
+
...props,
|
|
29596
|
+
...targetProps
|
|
29597
|
+
}, eventKey, context);
|
|
29598
|
+
return [{
|
|
29599
|
+
target: "parent",
|
|
29600
|
+
eventHandlers: {
|
|
29601
|
+
onMouseDown: createEventHandler(_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseDown),
|
|
29602
|
+
onTouchStart: createEventHandler(_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseDown),
|
|
29603
|
+
onMouseUp: createEventHandler(_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseUp),
|
|
29604
|
+
onTouchEnd: createEventHandler(_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseUp),
|
|
29605
|
+
onMouseLeave: createEventHandler(_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseLeave),
|
|
29606
|
+
onTouchCancel: createEventHandler(_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseLeave),
|
|
29607
|
+
onMouseMove: createEventHandler(_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseMove),
|
|
29608
|
+
onTouchMove: createEventHandler(_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onMouseMove),
|
|
29609
|
+
onWheel: createEventHandler(_zoom_helpers__WEBPACK_IMPORTED_MODULE_4__.ZoomHelpers.onWheel, !props.allowZoom)
|
|
29610
|
+
}
|
|
29611
|
+
}];
|
|
29612
|
+
};
|
|
29806
29613
|
|
|
29807
29614
|
/***/ }),
|
|
29808
29615
|
|
|
@@ -42367,6 +42174,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42367
42174
|
/* harmony export */ "PointPathHelpers": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.PointPathHelpers; },
|
|
42368
42175
|
/* harmony export */ "Portal": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.Portal; },
|
|
42369
42176
|
/* harmony export */ "PortalContext": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.PortalContext; },
|
|
42177
|
+
/* harmony export */ "PortalOutlet": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.PortalOutlet; },
|
|
42178
|
+
/* harmony export */ "PortalProvider": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.PortalProvider; },
|
|
42370
42179
|
/* harmony export */ "RawZoomHelpers": function() { return /* reexport safe */ victory_zoom_container__WEBPACK_IMPORTED_MODULE_26__.RawZoomHelpers; },
|
|
42371
42180
|
/* harmony export */ "Rect": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.Rect; },
|
|
42372
42181
|
/* harmony export */ "Scale": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.Scale; },
|
|
@@ -42381,6 +42190,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42381
42190
|
/* harmony export */ "TimerContext": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.TimerContext; },
|
|
42382
42191
|
/* harmony export */ "Transitions": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.Transitions; },
|
|
42383
42192
|
/* harmony export */ "UserProps": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.UserProps; },
|
|
42193
|
+
/* harmony export */ "VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ victory_brush_container__WEBPACK_IMPORTED_MODULE_4__.VICTORY_BRUSH_CONTAINER_DEFAULT_PROPS; },
|
|
42194
|
+
/* harmony export */ "VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ victory_cursor_container__WEBPACK_IMPORTED_MODULE_11__.VICTORY_CURSOR_CONTAINER_DEFAULT_PROPS; },
|
|
42195
|
+
/* harmony export */ "VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ victory_selection_container__WEBPACK_IMPORTED_MODULE_20__.VICTORY_SELECTION_CONTAINER_DEFAULT_PROPS; },
|
|
42196
|
+
/* harmony export */ "VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ victory_voronoi_container__WEBPACK_IMPORTED_MODULE_25__.VICTORY_VORONOI_CONTAINER_DEFAULT_PROPS; },
|
|
42197
|
+
/* harmony export */ "VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS": function() { return /* reexport safe */ victory_zoom_container__WEBPACK_IMPORTED_MODULE_26__.VICTORY_ZOOM_CONTAINER_DEFAULT_PROPS; },
|
|
42384
42198
|
/* harmony export */ "VictoryAccessibleGroup": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryAccessibleGroup; },
|
|
42385
42199
|
/* harmony export */ "VictoryAnimation": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryAnimation; },
|
|
42386
42200
|
/* harmony export */ "VictoryArea": function() { return /* reexport safe */ victory_area__WEBPACK_IMPORTED_MODULE_0__.VictoryArea; },
|
|
@@ -42419,10 +42233,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42419
42233
|
/* harmony export */ "Wrapper": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.Wrapper; },
|
|
42420
42234
|
/* harmony export */ "ZoomHelpers": function() { return /* reexport safe */ victory_zoom_container__WEBPACK_IMPORTED_MODULE_26__.ZoomHelpers; },
|
|
42421
42235
|
/* harmony export */ "addEvents": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.addEvents; },
|
|
42422
|
-
/* harmony export */ "brushContainerMixin": function() { return /* reexport safe */ victory_brush_container__WEBPACK_IMPORTED_MODULE_4__.brushContainerMixin; },
|
|
42423
|
-
/* harmony export */ "combineContainerMixins": function() { return /* reexport safe */ victory_create_container__WEBPACK_IMPORTED_MODULE_10__.combineContainerMixins; },
|
|
42424
42236
|
/* harmony export */ "createContainer": function() { return /* reexport safe */ victory_create_container__WEBPACK_IMPORTED_MODULE_10__.createContainer; },
|
|
42425
|
-
/* harmony export */ "cursorContainerMixin": function() { return /* reexport safe */ victory_cursor_container__WEBPACK_IMPORTED_MODULE_11__.cursorContainerMixin; },
|
|
42426
42237
|
/* harmony export */ "getBarPath": function() { return /* reexport safe */ victory_bar__WEBPACK_IMPORTED_MODULE_2__.getBarPath; },
|
|
42427
42238
|
/* harmony export */ "getBarPosition": function() { return /* reexport safe */ victory_bar__WEBPACK_IMPORTED_MODULE_2__.getBarPosition; },
|
|
42428
42239
|
/* harmony export */ "getBarWidth": function() { return /* reexport safe */ victory_bar__WEBPACK_IMPORTED_MODULE_2__.getBarWidth; },
|
|
@@ -42434,10 +42245,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42434
42245
|
/* harmony export */ "getVerticalBarPath": function() { return /* reexport safe */ victory_bar__WEBPACK_IMPORTED_MODULE_2__.getVerticalBarPath; },
|
|
42435
42246
|
/* harmony export */ "getVerticalPolarBarPath": function() { return /* reexport safe */ victory_bar__WEBPACK_IMPORTED_MODULE_2__.getVerticalPolarBarPath; },
|
|
42436
42247
|
/* harmony export */ "makeCreateContainerFunction": function() { return /* reexport safe */ victory_create_container__WEBPACK_IMPORTED_MODULE_10__.makeCreateContainerFunction; },
|
|
42437
|
-
/* harmony export */ "
|
|
42248
|
+
/* harmony export */ "mergeRefs": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.mergeRefs; },
|
|
42438
42249
|
/* harmony export */ "useCanvasContext": function() { return /* reexport safe */ victory_canvas__WEBPACK_IMPORTED_MODULE_7__.useCanvasContext; },
|
|
42439
|
-
/* harmony export */ "
|
|
42440
|
-
/* harmony export */ "
|
|
42250
|
+
/* harmony export */ "usePortalContext": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.usePortalContext; },
|
|
42251
|
+
/* harmony export */ "useVictoryBrushContainer": function() { return /* reexport safe */ victory_brush_container__WEBPACK_IMPORTED_MODULE_4__.useVictoryBrushContainer; },
|
|
42252
|
+
/* harmony export */ "useVictoryContainer": function() { return /* reexport safe */ victory_core__WEBPACK_IMPORTED_MODULE_9__.useVictoryContainer; },
|
|
42253
|
+
/* harmony export */ "useVictoryCursorContainer": function() { return /* reexport safe */ victory_cursor_container__WEBPACK_IMPORTED_MODULE_11__.useVictoryCursorContainer; },
|
|
42254
|
+
/* harmony export */ "useVictorySelectionContainer": function() { return /* reexport safe */ victory_selection_container__WEBPACK_IMPORTED_MODULE_20__.useVictorySelectionContainer; },
|
|
42255
|
+
/* harmony export */ "useVictoryVoronoiContainer": function() { return /* reexport safe */ victory_voronoi_container__WEBPACK_IMPORTED_MODULE_25__.useVictoryVoronoiContainer; },
|
|
42256
|
+
/* harmony export */ "useVictoryZoomContainer": function() { return /* reexport safe */ victory_zoom_container__WEBPACK_IMPORTED_MODULE_26__.useVictoryZoomContainer; }
|
|
42441
42257
|
/* harmony export */ });
|
|
42442
42258
|
/* harmony import */ var victory_area__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! victory-area */ "../../victory-area/es/index.js");
|
|
42443
42259
|
/* harmony import */ var victory_axis__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-axis */ "../../victory-axis/es/index.js");
|