victory-group 36.4.0 → 36.5.1
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/dist/victory-group.js +706 -591
- package/dist/victory-group.min.js +1 -1
- package/es/helper-methods.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -1
- package/es/victory-group.js +2 -1
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/victory-group.js +2 -1
- package/package.json +7 -7
- package/src/helper-methods.js +13 -14
- package/src/index.d.ts +1 -1
- package/src/victory-group.js +15 -15
package/dist/victory-group.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryGroup"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryGroup"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -21,8 +21,8 @@ return /******/ (() => { // webpackBootstrap
|
|
|
21
21
|
__webpack_require__.r(__webpack_exports__);
|
|
22
22
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23
23
|
/* harmony export */ "getCalculatedProps": () => (/* binding */ getCalculatedProps),
|
|
24
|
-
/* harmony export */ "
|
|
25
|
-
/* harmony export */ "
|
|
24
|
+
/* harmony export */ "getChildren": () => (/* binding */ getChildren),
|
|
25
|
+
/* harmony export */ "useMemoizedProps": () => (/* binding */ useMemoizedProps)
|
|
26
26
|
/* harmony export */ });
|
|
27
27
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
28
28
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -300,22 +300,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
300
300
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
301
301
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
302
302
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
|
|
303
|
-
/* harmony import */ var
|
|
304
|
-
/* harmony import */ var
|
|
305
|
-
/* harmony import */ var
|
|
306
|
-
/* harmony import */ var
|
|
307
|
-
/* harmony import */ var
|
|
308
|
-
/* harmony import */ var
|
|
309
|
-
/* harmony import */ var
|
|
310
|
-
/* harmony import */ var
|
|
311
|
-
/* harmony import */ var
|
|
312
|
-
/* harmony import */ var
|
|
303
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
304
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
|
|
305
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
306
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
307
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/hooks/use-animation-state.js");
|
|
308
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
309
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
310
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/wrapper.js");
|
|
311
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/hooks/use-previous-props.js");
|
|
312
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
313
313
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
314
314
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
|
|
315
|
-
/* harmony import */ var
|
|
316
|
-
/* harmony import */ var
|
|
317
|
-
/* harmony import */ var
|
|
318
|
-
/* harmony import */ var
|
|
315
|
+
/* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/victory-shared-events.js");
|
|
316
|
+
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.js");
|
|
317
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
318
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
319
319
|
|
|
320
320
|
|
|
321
321
|
|
|
@@ -343,13 +343,13 @@ var VictoryGroup = function (initialProps) {
|
|
|
343
343
|
// eslint-disable-next-line no-use-before-define
|
|
344
344
|
var role = VictoryGroupMemo.role;
|
|
345
345
|
|
|
346
|
-
var _Hooks$useAnimationSt =
|
|
346
|
+
var _Hooks$useAnimationSt = victory_core__WEBPACK_IMPORTED_MODULE_5__.useAnimationState(),
|
|
347
347
|
getAnimationProps = _Hooks$useAnimationSt.getAnimationProps,
|
|
348
348
|
setAnimationState = _Hooks$useAnimationSt.setAnimationState,
|
|
349
349
|
getProps = _Hooks$useAnimationSt.getProps;
|
|
350
350
|
|
|
351
351
|
var props = getProps(initialProps);
|
|
352
|
-
var modifiedProps =
|
|
352
|
+
var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, role);
|
|
353
353
|
var eventKey = modifiedProps.eventKey,
|
|
354
354
|
containerComponent = modifiedProps.containerComponent,
|
|
355
355
|
standalone = modifiedProps.standalone,
|
|
@@ -361,23 +361,23 @@ var VictoryGroup = function (initialProps) {
|
|
|
361
361
|
polar = modifiedProps.polar,
|
|
362
362
|
horizontal = modifiedProps.horizontal,
|
|
363
363
|
name = modifiedProps.name;
|
|
364
|
-
var childComponents =
|
|
365
|
-
var calculatedProps = (0,
|
|
364
|
+
var childComponents = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(modifiedProps.children);
|
|
365
|
+
var calculatedProps = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.useMemoizedProps)(modifiedProps);
|
|
366
366
|
var domain = calculatedProps.domain,
|
|
367
367
|
scale = calculatedProps.scale,
|
|
368
368
|
style = calculatedProps.style,
|
|
369
369
|
origin = calculatedProps.origin;
|
|
370
|
-
var newChildren =
|
|
371
|
-
var children = (0,
|
|
370
|
+
var newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
371
|
+
var children = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getChildren)(props, childComponents, calculatedProps);
|
|
372
372
|
return children.map(function (child, index) {
|
|
373
373
|
var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
374
374
|
animate: getAnimationProps(props, child, index, "victory-group")
|
|
375
375
|
}, child.props);
|
|
376
376
|
|
|
377
|
-
return /*#__PURE__*/
|
|
377
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, childProps);
|
|
378
378
|
});
|
|
379
379
|
}, [props, childComponents, calculatedProps, getAnimationProps]);
|
|
380
|
-
var containerProps =
|
|
380
|
+
var containerProps = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
381
381
|
if (standalone) {
|
|
382
382
|
return {
|
|
383
383
|
domain: domain,
|
|
@@ -396,23 +396,23 @@ var VictoryGroup = function (initialProps) {
|
|
|
396
396
|
|
|
397
397
|
return {};
|
|
398
398
|
}, [standalone, domain, scale, width, height, theme, style, horizontal, polar, origin, name]);
|
|
399
|
-
var userProps =
|
|
400
|
-
return
|
|
399
|
+
var userProps = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
400
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(initialProps);
|
|
401
401
|
}, [initialProps]);
|
|
402
|
-
var container =
|
|
402
|
+
var container = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
403
403
|
if (standalone) {
|
|
404
404
|
var defaultContainerProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, containerComponent.props, containerProps, userProps);
|
|
405
405
|
|
|
406
|
-
return /*#__PURE__*/
|
|
406
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(containerComponent, defaultContainerProps);
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
return /*#__PURE__*/
|
|
409
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(groupComponent, userProps);
|
|
410
410
|
}, [groupComponent, standalone, containerComponent, containerProps, userProps]);
|
|
411
|
-
var events =
|
|
412
|
-
return
|
|
411
|
+
var events = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
412
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_9__.getAllEvents(props);
|
|
413
413
|
}, [props]);
|
|
414
|
-
var previousProps =
|
|
415
|
-
|
|
414
|
+
var previousProps = victory_core__WEBPACK_IMPORTED_MODULE_10__.usePreviousProps(initialProps);
|
|
415
|
+
react__WEBPACK_IMPORTED_MODULE_3___default().useEffect(function () {
|
|
416
416
|
// This is called before dismount to keep state in sync
|
|
417
417
|
return function () {
|
|
418
418
|
if (initialProps.animate) {
|
|
@@ -422,7 +422,7 @@ var VictoryGroup = function (initialProps) {
|
|
|
422
422
|
}, [setAnimationState, previousProps, initialProps, props]);
|
|
423
423
|
|
|
424
424
|
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
|
|
425
|
-
return /*#__PURE__*/
|
|
425
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_shared_events__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
|
426
426
|
container: container,
|
|
427
427
|
eventKey: eventKey,
|
|
428
428
|
events: events,
|
|
@@ -430,31 +430,31 @@ var VictoryGroup = function (initialProps) {
|
|
|
430
430
|
}, newChildren);
|
|
431
431
|
}
|
|
432
432
|
|
|
433
|
-
return /*#__PURE__*/
|
|
433
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, container.props, newChildren);
|
|
434
434
|
};
|
|
435
435
|
|
|
436
|
-
VictoryGroup.propTypes = _objectSpread(_objectSpread(_objectSpread({},
|
|
437
|
-
children:
|
|
438
|
-
color:
|
|
439
|
-
colorScale:
|
|
440
|
-
horizontal: (
|
|
441
|
-
offset: (
|
|
436
|
+
VictoryGroup.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_12__.CommonProps.dataProps), {}, {
|
|
437
|
+
children: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node)]),
|
|
438
|
+
color: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
439
|
+
colorScale: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),
|
|
440
|
+
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
441
|
+
offset: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number)
|
|
442
442
|
});
|
|
443
443
|
VictoryGroup.defaultProps = {
|
|
444
|
-
containerComponent: /*#__PURE__*/
|
|
445
|
-
groupComponent: /*#__PURE__*/
|
|
444
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_14__.VictoryContainer, null),
|
|
445
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
446
446
|
samples: 50,
|
|
447
447
|
sortOrder: "ascending",
|
|
448
448
|
standalone: true,
|
|
449
|
-
theme: victory_core__WEBPACK_IMPORTED_MODULE_15__
|
|
449
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_15__.VictoryTheme.grayscale
|
|
450
450
|
}; // We need to attatch the static properties to the memoized version, or else
|
|
451
451
|
// VictoryChart will not be able to get this component's role type
|
|
452
452
|
|
|
453
|
-
var VictoryGroupMemo = /*#__PURE__*/
|
|
453
|
+
var VictoryGroupMemo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().memo(VictoryGroup, (react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
454
454
|
VictoryGroupMemo.displayName = "VictoryGroup";
|
|
455
455
|
VictoryGroupMemo.role = "group";
|
|
456
456
|
VictoryGroupMemo.expectedComponents = ["groupComponent", "containerComponent", "labelComponent"];
|
|
457
|
-
VictoryGroupMemo.getChildren =
|
|
457
|
+
VictoryGroupMemo.getChildren = _helper_methods__WEBPACK_IMPORTED_MODULE_7__.getChildren;
|
|
458
458
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VictoryGroupMemo);
|
|
459
459
|
|
|
460
460
|
/***/ }),
|
|
@@ -6407,7 +6407,7 @@ var printWarning = function() {};
|
|
|
6407
6407
|
if (true) {
|
|
6408
6408
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6409
6409
|
var loggedTypeFailures = {};
|
|
6410
|
-
var has =
|
|
6410
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6411
6411
|
|
|
6412
6412
|
printWarning = function(text) {
|
|
6413
6413
|
var message = 'Warning: ' + text;
|
|
@@ -6419,7 +6419,7 @@ if (true) {
|
|
|
6419
6419
|
// This error was thrown as a convenience so that you can use this stack
|
|
6420
6420
|
// to find the callsite that caused this warning to fire.
|
|
6421
6421
|
throw new Error(message);
|
|
6422
|
-
} catch (x) {}
|
|
6422
|
+
} catch (x) { /**/ }
|
|
6423
6423
|
};
|
|
6424
6424
|
}
|
|
6425
6425
|
|
|
@@ -6448,7 +6448,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
6448
6448
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6449
6449
|
var err = Error(
|
|
6450
6450
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6451
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
6451
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6452
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6452
6453
|
);
|
|
6453
6454
|
err.name = 'Invariant Violation';
|
|
6454
6455
|
throw err;
|
|
@@ -6515,13 +6516,13 @@ module.exports = checkPropTypes;
|
|
|
6515
6516
|
|
|
6516
6517
|
|
|
6517
6518
|
|
|
6518
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6519
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6519
6520
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6520
6521
|
|
|
6521
6522
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6523
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6522
6524
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
6523
6525
|
|
|
6524
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6525
6526
|
var printWarning = function() {};
|
|
6526
6527
|
|
|
6527
6528
|
if (true) {
|
|
@@ -6622,6 +6623,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6622
6623
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6623
6624
|
var ReactPropTypes = {
|
|
6624
6625
|
array: createPrimitiveTypeChecker('array'),
|
|
6626
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6625
6627
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
6626
6628
|
func: createPrimitiveTypeChecker('function'),
|
|
6627
6629
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -6667,8 +6669,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6667
6669
|
* is prohibitively expensive if they are created too often, such as what
|
|
6668
6670
|
* happens in oneOfType() for any type before the one that matched.
|
|
6669
6671
|
*/
|
|
6670
|
-
function PropTypeError(message) {
|
|
6672
|
+
function PropTypeError(message, data) {
|
|
6671
6673
|
this.message = message;
|
|
6674
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
6672
6675
|
this.stack = '';
|
|
6673
6676
|
}
|
|
6674
6677
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -6703,7 +6706,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6703
6706
|
) {
|
|
6704
6707
|
printWarning(
|
|
6705
6708
|
'You are manually calling a React.PropTypes validation ' +
|
|
6706
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
6709
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6707
6710
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6708
6711
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6709
6712
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -6742,7 +6745,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6742
6745
|
// 'of type `object`'.
|
|
6743
6746
|
var preciseType = getPreciseType(propValue);
|
|
6744
6747
|
|
|
6745
|
-
return new PropTypeError(
|
|
6748
|
+
return new PropTypeError(
|
|
6749
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6750
|
+
{expectedType: expectedType}
|
|
6751
|
+
);
|
|
6746
6752
|
}
|
|
6747
6753
|
return null;
|
|
6748
6754
|
}
|
|
@@ -6886,14 +6892,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6886
6892
|
}
|
|
6887
6893
|
|
|
6888
6894
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6895
|
+
var expectedTypes = [];
|
|
6889
6896
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6890
6897
|
var checker = arrayOfTypeCheckers[i];
|
|
6891
|
-
|
|
6898
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6899
|
+
if (checkerResult == null) {
|
|
6892
6900
|
return null;
|
|
6893
6901
|
}
|
|
6902
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6903
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
6904
|
+
}
|
|
6894
6905
|
}
|
|
6895
|
-
|
|
6896
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
6906
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6907
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6897
6908
|
}
|
|
6898
6909
|
return createChainableTypeChecker(validate);
|
|
6899
6910
|
}
|
|
@@ -6908,6 +6919,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6908
6919
|
return createChainableTypeChecker(validate);
|
|
6909
6920
|
}
|
|
6910
6921
|
|
|
6922
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6923
|
+
return new PropTypeError(
|
|
6924
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6925
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6926
|
+
);
|
|
6927
|
+
}
|
|
6928
|
+
|
|
6911
6929
|
function createShapeTypeChecker(shapeTypes) {
|
|
6912
6930
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6913
6931
|
var propValue = props[propName];
|
|
@@ -6917,8 +6935,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6917
6935
|
}
|
|
6918
6936
|
for (var key in shapeTypes) {
|
|
6919
6937
|
var checker = shapeTypes[key];
|
|
6920
|
-
if (
|
|
6921
|
-
|
|
6938
|
+
if (typeof checker !== 'function') {
|
|
6939
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6922
6940
|
}
|
|
6923
6941
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6924
6942
|
if (error) {
|
|
@@ -6937,16 +6955,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6937
6955
|
if (propType !== 'object') {
|
|
6938
6956
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6939
6957
|
}
|
|
6940
|
-
// We need to check all keys in case some are required but missing from
|
|
6941
|
-
// props.
|
|
6958
|
+
// We need to check all keys in case some are required but missing from props.
|
|
6942
6959
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6943
6960
|
for (var key in allKeys) {
|
|
6944
6961
|
var checker = shapeTypes[key];
|
|
6962
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6963
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6964
|
+
}
|
|
6945
6965
|
if (!checker) {
|
|
6946
6966
|
return new PropTypeError(
|
|
6947
6967
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6948
6968
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6949
|
-
'\nValid keys: ' +
|
|
6969
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6950
6970
|
);
|
|
6951
6971
|
}
|
|
6952
6972
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -7115,7 +7135,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7115
7135
|
*/
|
|
7116
7136
|
|
|
7117
7137
|
if (true) {
|
|
7118
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
7138
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
7119
7139
|
|
|
7120
7140
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7121
7141
|
// http://fb.me/prop-types-in-prod
|
|
@@ -7149,115 +7169,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
7149
7169
|
|
|
7150
7170
|
/***/ }),
|
|
7151
7171
|
|
|
7152
|
-
/***/ "../../../node_modules/
|
|
7153
|
-
|
|
7154
|
-
!*** ../../../node_modules/
|
|
7155
|
-
|
|
7172
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
7173
|
+
/*!***************************************************!*\
|
|
7174
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
7175
|
+
\***************************************************/
|
|
7156
7176
|
/***/ ((module) => {
|
|
7157
7177
|
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
var isArray = Array.isArray;
|
|
7162
|
-
var keyList = Object.keys;
|
|
7163
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
7164
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
7165
|
-
|
|
7166
|
-
function equal(a, b) {
|
|
7167
|
-
// fast-deep-equal index.js 2.0.1
|
|
7168
|
-
if (a === b) return true;
|
|
7169
|
-
|
|
7170
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7171
|
-
var arrA = isArray(a)
|
|
7172
|
-
, arrB = isArray(b)
|
|
7173
|
-
, i
|
|
7174
|
-
, length
|
|
7175
|
-
, key;
|
|
7176
|
-
|
|
7177
|
-
if (arrA && arrB) {
|
|
7178
|
-
length = a.length;
|
|
7179
|
-
if (length != b.length) return false;
|
|
7180
|
-
for (i = length; i-- !== 0;)
|
|
7181
|
-
if (!equal(a[i], b[i])) return false;
|
|
7182
|
-
return true;
|
|
7183
|
-
}
|
|
7184
|
-
|
|
7185
|
-
if (arrA != arrB) return false;
|
|
7186
|
-
|
|
7187
|
-
var dateA = a instanceof Date
|
|
7188
|
-
, dateB = b instanceof Date;
|
|
7189
|
-
if (dateA != dateB) return false;
|
|
7190
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
7191
|
-
|
|
7192
|
-
var regexpA = a instanceof RegExp
|
|
7193
|
-
, regexpB = b instanceof RegExp;
|
|
7194
|
-
if (regexpA != regexpB) return false;
|
|
7195
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
7196
|
-
|
|
7197
|
-
var keys = keyList(a);
|
|
7198
|
-
length = keys.length;
|
|
7199
|
-
|
|
7200
|
-
if (length !== keyList(b).length)
|
|
7201
|
-
return false;
|
|
7202
|
-
|
|
7203
|
-
for (i = length; i-- !== 0;)
|
|
7204
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
7205
|
-
// end fast-deep-equal
|
|
7206
|
-
|
|
7207
|
-
// start react-fast-compare
|
|
7208
|
-
// custom handling for DOM elements
|
|
7209
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
7210
|
-
return a === b;
|
|
7211
|
-
|
|
7212
|
-
// custom handling for React
|
|
7213
|
-
for (i = length; i-- !== 0;) {
|
|
7214
|
-
key = keys[i];
|
|
7215
|
-
if (key === '_owner' && a.$$typeof) {
|
|
7216
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
7217
|
-
// _owner contains circular references
|
|
7218
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
7219
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
7220
|
-
continue;
|
|
7221
|
-
} else {
|
|
7222
|
-
// all other properties should be traversed as usual
|
|
7223
|
-
if (!equal(a[key], b[key])) return false;
|
|
7224
|
-
}
|
|
7225
|
-
}
|
|
7226
|
-
// end react-fast-compare
|
|
7227
|
-
|
|
7228
|
-
// fast-deep-equal index.js 2.0.1
|
|
7229
|
-
return true;
|
|
7230
|
-
}
|
|
7231
|
-
|
|
7232
|
-
return a !== a && b !== b;
|
|
7233
|
-
}
|
|
7234
|
-
// end fast-deep-equal
|
|
7235
|
-
|
|
7236
|
-
module.exports = function exportedEqual(a, b) {
|
|
7237
|
-
try {
|
|
7238
|
-
return equal(a, b);
|
|
7239
|
-
} catch (error) {
|
|
7240
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
7241
|
-
// warn on circular references, don't crash
|
|
7242
|
-
// browsers give this different errors name and messages:
|
|
7243
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7244
|
-
// firefox: "InternalError", too much recursion"
|
|
7245
|
-
// edge: "Error", "Out of stack space"
|
|
7246
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
7247
|
-
return false;
|
|
7248
|
-
}
|
|
7249
|
-
// some other error. we should definitely know about these
|
|
7250
|
-
throw error;
|
|
7251
|
-
}
|
|
7252
|
-
};
|
|
7178
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
7253
7179
|
|
|
7254
7180
|
|
|
7255
7181
|
/***/ }),
|
|
7256
7182
|
|
|
7257
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
7258
|
-
|
|
7259
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
7260
|
-
|
|
7183
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
7184
|
+
/*!******************************************************************************************!*\
|
|
7185
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7186
|
+
\******************************************************************************************/
|
|
7261
7187
|
/***/ ((__unused_webpack_module, exports) => {
|
|
7262
7188
|
|
|
7263
7189
|
"use strict";
|
|
@@ -7446,20 +7372,164 @@ exports.typeOf = typeOf;
|
|
|
7446
7372
|
|
|
7447
7373
|
/***/ }),
|
|
7448
7374
|
|
|
7449
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
7450
|
-
|
|
7451
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
7452
|
-
|
|
7375
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
7376
|
+
/*!***********************************************************************!*\
|
|
7377
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
7378
|
+
\***********************************************************************/
|
|
7453
7379
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7454
7380
|
|
|
7455
7381
|
"use strict";
|
|
7456
7382
|
|
|
7457
7383
|
|
|
7458
7384
|
if (false) {} else {
|
|
7459
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
7385
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
7460
7386
|
}
|
|
7461
7387
|
|
|
7462
7388
|
|
|
7389
|
+
/***/ }),
|
|
7390
|
+
|
|
7391
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
7392
|
+
/*!*********************************************************!*\
|
|
7393
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
7394
|
+
\*********************************************************/
|
|
7395
|
+
/***/ ((module) => {
|
|
7396
|
+
|
|
7397
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7398
|
+
|
|
7399
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
7400
|
+
var hasMap = typeof Map === 'function';
|
|
7401
|
+
var hasSet = typeof Set === 'function';
|
|
7402
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7403
|
+
|
|
7404
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7405
|
+
|
|
7406
|
+
function equal(a, b) {
|
|
7407
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7408
|
+
if (a === b) return true;
|
|
7409
|
+
|
|
7410
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7411
|
+
if (a.constructor !== b.constructor) return false;
|
|
7412
|
+
|
|
7413
|
+
var length, i, keys;
|
|
7414
|
+
if (Array.isArray(a)) {
|
|
7415
|
+
length = a.length;
|
|
7416
|
+
if (length != b.length) return false;
|
|
7417
|
+
for (i = length; i-- !== 0;)
|
|
7418
|
+
if (!equal(a[i], b[i])) return false;
|
|
7419
|
+
return true;
|
|
7420
|
+
}
|
|
7421
|
+
|
|
7422
|
+
// START: Modifications:
|
|
7423
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7424
|
+
// to co-exist with es5.
|
|
7425
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7426
|
+
// Basically, take:
|
|
7427
|
+
//
|
|
7428
|
+
// ```js
|
|
7429
|
+
// for (i of a.entries())
|
|
7430
|
+
// if (!b.has(i[0])) return false;
|
|
7431
|
+
// ```
|
|
7432
|
+
//
|
|
7433
|
+
// ... and convert to:
|
|
7434
|
+
//
|
|
7435
|
+
// ```js
|
|
7436
|
+
// it = a.entries();
|
|
7437
|
+
// while (!(i = it.next()).done)
|
|
7438
|
+
// if (!b.has(i.value[0])) return false;
|
|
7439
|
+
// ```
|
|
7440
|
+
//
|
|
7441
|
+
// **Note**: `i` access switches to `i.value`.
|
|
7442
|
+
var it;
|
|
7443
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7444
|
+
if (a.size !== b.size) return false;
|
|
7445
|
+
it = a.entries();
|
|
7446
|
+
while (!(i = it.next()).done)
|
|
7447
|
+
if (!b.has(i.value[0])) return false;
|
|
7448
|
+
it = a.entries();
|
|
7449
|
+
while (!(i = it.next()).done)
|
|
7450
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7451
|
+
return true;
|
|
7452
|
+
}
|
|
7453
|
+
|
|
7454
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7455
|
+
if (a.size !== b.size) return false;
|
|
7456
|
+
it = a.entries();
|
|
7457
|
+
while (!(i = it.next()).done)
|
|
7458
|
+
if (!b.has(i.value[0])) return false;
|
|
7459
|
+
return true;
|
|
7460
|
+
}
|
|
7461
|
+
// END: Modifications
|
|
7462
|
+
|
|
7463
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7464
|
+
length = a.length;
|
|
7465
|
+
if (length != b.length) return false;
|
|
7466
|
+
for (i = length; i-- !== 0;)
|
|
7467
|
+
if (a[i] !== b[i]) return false;
|
|
7468
|
+
return true;
|
|
7469
|
+
}
|
|
7470
|
+
|
|
7471
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7472
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7473
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7474
|
+
|
|
7475
|
+
keys = Object.keys(a);
|
|
7476
|
+
length = keys.length;
|
|
7477
|
+
if (length !== Object.keys(b).length) return false;
|
|
7478
|
+
|
|
7479
|
+
for (i = length; i-- !== 0;)
|
|
7480
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7481
|
+
// END: fast-deep-equal
|
|
7482
|
+
|
|
7483
|
+
// START: react-fast-compare
|
|
7484
|
+
// custom handling for DOM elements
|
|
7485
|
+
if (hasElementType && a instanceof Element) return false;
|
|
7486
|
+
|
|
7487
|
+
// custom handling for React/Preact
|
|
7488
|
+
for (i = length; i-- !== 0;) {
|
|
7489
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7490
|
+
// React-specific: avoid traversing React elements' _owner
|
|
7491
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7492
|
+
// __v = $_original / $_vnode
|
|
7493
|
+
// __o = $_owner
|
|
7494
|
+
// These properties contain circular references and are not needed when
|
|
7495
|
+
// comparing the actual elements (and not their owners)
|
|
7496
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7497
|
+
|
|
7498
|
+
continue;
|
|
7499
|
+
}
|
|
7500
|
+
|
|
7501
|
+
// all other properties should be traversed as usual
|
|
7502
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7503
|
+
}
|
|
7504
|
+
// END: react-fast-compare
|
|
7505
|
+
|
|
7506
|
+
// START: fast-deep-equal
|
|
7507
|
+
return true;
|
|
7508
|
+
}
|
|
7509
|
+
|
|
7510
|
+
return a !== a && b !== b;
|
|
7511
|
+
}
|
|
7512
|
+
// end fast-deep-equal
|
|
7513
|
+
|
|
7514
|
+
module.exports = function isEqual(a, b) {
|
|
7515
|
+
try {
|
|
7516
|
+
return equal(a, b);
|
|
7517
|
+
} catch (error) {
|
|
7518
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7519
|
+
// warn on circular references, don't crash
|
|
7520
|
+
// browsers give this different errors name and messages:
|
|
7521
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7522
|
+
// firefox: "InternalError", too much recursion"
|
|
7523
|
+
// edge: "Error", "Out of stack space"
|
|
7524
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7525
|
+
return false;
|
|
7526
|
+
}
|
|
7527
|
+
// some other error. we should definitely know about these
|
|
7528
|
+
throw error;
|
|
7529
|
+
}
|
|
7530
|
+
};
|
|
7531
|
+
|
|
7532
|
+
|
|
7463
7533
|
/***/ }),
|
|
7464
7534
|
|
|
7465
7535
|
/***/ "../../victory-core/es/victory-container/victory-container.js":
|
|
@@ -7471,7 +7541,7 @@ if (false) {} else {
|
|
|
7471
7541
|
"use strict";
|
|
7472
7542
|
__webpack_require__.r(__webpack_exports__);
|
|
7473
7543
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7474
|
-
/* harmony export */ "
|
|
7544
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
7475
7545
|
/* harmony export */ });
|
|
7476
7546
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7477
7547
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7485,26 +7555,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7485
7555
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
7486
7556
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
7487
7557
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
7488
|
-
/* harmony import */ var
|
|
7489
|
-
/* harmony import */ var
|
|
7558
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7559
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
7490
7560
|
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
7491
7561
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7492
|
-
/* harmony import */ var
|
|
7562
|
+
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
7493
7563
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
7494
|
-
/* harmony import */ var
|
|
7495
|
-
/* harmony import */ var
|
|
7564
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7565
|
+
/* 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");
|
|
7496
7566
|
|
|
7497
7567
|
|
|
7498
7568
|
|
|
7499
7569
|
|
|
7500
7570
|
|
|
7501
7571
|
|
|
7502
|
-
function _extends() { _extends = Object.assign
|
|
7572
|
+
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); }
|
|
7503
7573
|
|
|
7504
7574
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7505
7575
|
|
|
7506
7576
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7507
7577
|
|
|
7578
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7579
|
+
|
|
7508
7580
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7509
7581
|
|
|
7510
7582
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -7513,7 +7585,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7513
7585
|
|
|
7514
7586
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
7515
7587
|
|
|
7516
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7588
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7517
7589
|
|
|
7518
7590
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7519
7591
|
|
|
@@ -7523,10 +7595,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7523
7595
|
|
|
7524
7596
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7525
7597
|
|
|
7526
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7527
|
-
|
|
7528
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7529
|
-
|
|
7598
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7530
7599
|
|
|
7531
7600
|
|
|
7532
7601
|
|
|
@@ -7541,13 +7610,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7541
7610
|
|
|
7542
7611
|
var _super = _createSuper(VictoryContainer);
|
|
7543
7612
|
|
|
7613
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7614
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7544
7615
|
function VictoryContainer(props) {
|
|
7545
7616
|
var _this;
|
|
7546
7617
|
|
|
7547
7618
|
_classCallCheck(this, VictoryContainer);
|
|
7548
7619
|
|
|
7549
7620
|
_this = _super.call(this, props);
|
|
7550
|
-
_this.containerId =
|
|
7621
|
+
_this.containerId = void 0;
|
|
7622
|
+
_this.portalRef = void 0;
|
|
7623
|
+
_this.containerRef = void 0;
|
|
7624
|
+
_this.shouldHandleWheel = void 0;
|
|
7551
7625
|
|
|
7552
7626
|
_this.savePortalRef = function (portal) {
|
|
7553
7627
|
_this.portalRef = portal;
|
|
@@ -7566,18 +7640,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7566
7640
|
return _this.portalRef.portalDeregister(key);
|
|
7567
7641
|
};
|
|
7568
7642
|
|
|
7569
|
-
_this.saveContainerRef =
|
|
7643
|
+
_this.saveContainerRef = function (container) {
|
|
7644
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
7645
|
+
_this.props.containerRef(container);
|
|
7646
|
+
}
|
|
7647
|
+
|
|
7570
7648
|
_this.containerRef = container;
|
|
7571
7649
|
return container;
|
|
7572
7650
|
};
|
|
7573
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
7574
7651
|
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
};
|
|
7579
|
-
}
|
|
7652
|
+
_this.handleWheel = function (e) {
|
|
7653
|
+
return e.preventDefault();
|
|
7654
|
+
};
|
|
7580
7655
|
|
|
7656
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
7657
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
7581
7658
|
return _this;
|
|
7582
7659
|
}
|
|
7583
7660
|
|
|
@@ -7670,7 +7747,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7670
7747
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
7671
7748
|
style: portalSvgStyle
|
|
7672
7749
|
};
|
|
7673
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
7750
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
7674
7751
|
value: {
|
|
7675
7752
|
portalUpdate: this.portalUpdate,
|
|
7676
7753
|
portalRegister: this.portalRegister,
|
|
@@ -7705,8 +7782,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7705
7782
|
tabIndex = _this$props.tabIndex,
|
|
7706
7783
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
7707
7784
|
role = _this$props.role;
|
|
7708
|
-
var style = responsive ? this.props.style :
|
|
7709
|
-
var userProps =
|
|
7785
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
7786
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
7710
7787
|
|
|
7711
7788
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
7712
7789
|
width: width,
|
|
@@ -7725,53 +7802,47 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7725
7802
|
|
|
7726
7803
|
return VictoryContainer;
|
|
7727
7804
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
7728
|
-
|
|
7729
|
-
|
|
7730
|
-
|
|
7731
|
-
|
|
7732
|
-
|
|
7733
|
-
|
|
7734
|
-
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
7740
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
7741
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
7805
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
7806
|
+
VictoryContainer.role = "container";
|
|
7807
|
+
VictoryContainer.propTypes = {
|
|
7808
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7809
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7810
|
+
children: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)]),
|
|
7811
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7812
|
+
containerId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
7813
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
7814
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7815
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7742
7816
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7743
|
-
name: (
|
|
7744
|
-
origin:
|
|
7817
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7818
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
7745
7819
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7746
7820
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7747
7821
|
}),
|
|
7748
|
-
ouiaId:
|
|
7749
|
-
ouiaSafe: (
|
|
7750
|
-
ouiaType: (
|
|
7751
|
-
polar: (
|
|
7752
|
-
portalComponent: (
|
|
7822
|
+
ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
7823
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7824
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7825
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7826
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
7753
7827
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
7754
|
-
preserveAspectRatio: (
|
|
7755
|
-
responsive: (
|
|
7756
|
-
role: (
|
|
7757
|
-
style: (
|
|
7758
|
-
tabIndex: (
|
|
7759
|
-
theme: (
|
|
7760
|
-
title: (
|
|
7828
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7829
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7830
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7831
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7832
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
7833
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7834
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7761
7835
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7762
|
-
}
|
|
7763
|
-
|
|
7764
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
7836
|
+
};
|
|
7837
|
+
VictoryContainer.defaultProps = {
|
|
7765
7838
|
className: "VictoryContainer",
|
|
7766
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
7839
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
7767
7840
|
portalZIndex: 99,
|
|
7768
7841
|
responsive: true,
|
|
7769
7842
|
role: "img"
|
|
7770
|
-
}
|
|
7771
|
-
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7843
|
+
};
|
|
7844
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
7845
|
+
//# sourceMappingURL=victory-container.js.map
|
|
7775
7846
|
|
|
7776
7847
|
/***/ }),
|
|
7777
7848
|
|
|
@@ -7784,19 +7855,19 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
7784
7855
|
"use strict";
|
|
7785
7856
|
__webpack_require__.r(__webpack_exports__);
|
|
7786
7857
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7787
|
-
/* harmony export */ "
|
|
7858
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
7788
7859
|
/* harmony export */ });
|
|
7789
7860
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7790
7861
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7791
7862
|
|
|
7863
|
+
|
|
7792
7864
|
/**
|
|
7793
7865
|
* The React context object consumers may use to access the context of the
|
|
7794
7866
|
* portal.
|
|
7795
7867
|
*/
|
|
7796
|
-
|
|
7797
7868
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
7798
7869
|
PortalContext.displayName = "PortalContext";
|
|
7799
|
-
|
|
7870
|
+
//# sourceMappingURL=portal-context.js.map
|
|
7800
7871
|
|
|
7801
7872
|
/***/ }),
|
|
7802
7873
|
|
|
@@ -7809,7 +7880,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
7809
7880
|
"use strict";
|
|
7810
7881
|
__webpack_require__.r(__webpack_exports__);
|
|
7811
7882
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7812
|
-
/* harmony export */ "
|
|
7883
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
7813
7884
|
/* harmony export */ });
|
|
7814
7885
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
7815
7886
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7828,7 +7899,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7828
7899
|
|
|
7829
7900
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
7830
7901
|
|
|
7831
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7902
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7832
7903
|
|
|
7833
7904
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7834
7905
|
|
|
@@ -7838,10 +7909,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7838
7909
|
|
|
7839
7910
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7840
7911
|
|
|
7841
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7842
|
-
|
|
7843
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7844
|
-
|
|
7912
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7845
7913
|
|
|
7846
7914
|
|
|
7847
7915
|
|
|
@@ -7857,32 +7925,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
7857
7925
|
_classCallCheck(this, Portal);
|
|
7858
7926
|
|
|
7859
7927
|
_this = _super.call(this, props);
|
|
7928
|
+
_this.map = void 0;
|
|
7929
|
+
_this.index = void 0;
|
|
7930
|
+
|
|
7931
|
+
_this.portalRegister = function () {
|
|
7932
|
+
return ++_this.index;
|
|
7933
|
+
};
|
|
7934
|
+
|
|
7935
|
+
_this.portalUpdate = function (key, element) {
|
|
7936
|
+
_this.map[key] = element;
|
|
7937
|
+
|
|
7938
|
+
_this.forceUpdate();
|
|
7939
|
+
};
|
|
7940
|
+
|
|
7941
|
+
_this.portalDeregister = function (key) {
|
|
7942
|
+
delete _this.map[key];
|
|
7943
|
+
|
|
7944
|
+
_this.forceUpdate();
|
|
7945
|
+
};
|
|
7946
|
+
|
|
7860
7947
|
_this.map = {};
|
|
7861
7948
|
_this.index = 1;
|
|
7862
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
7863
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
7864
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
7865
7949
|
return _this;
|
|
7866
7950
|
}
|
|
7867
7951
|
|
|
7868
7952
|
_createClass(Portal, [{
|
|
7869
|
-
key: "portalRegister",
|
|
7870
|
-
value: function portalRegister() {
|
|
7871
|
-
return ++this.index;
|
|
7872
|
-
}
|
|
7873
|
-
}, {
|
|
7874
|
-
key: "portalUpdate",
|
|
7875
|
-
value: function portalUpdate(key, element) {
|
|
7876
|
-
this.map[key] = element;
|
|
7877
|
-
this.forceUpdate();
|
|
7878
|
-
}
|
|
7879
|
-
}, {
|
|
7880
|
-
key: "portalDeregister",
|
|
7881
|
-
value: function portalDeregister(key) {
|
|
7882
|
-
delete this.map[key];
|
|
7883
|
-
this.forceUpdate();
|
|
7884
|
-
}
|
|
7885
|
-
}, {
|
|
7886
7953
|
key: "getChildren",
|
|
7887
7954
|
value: function getChildren() {
|
|
7888
7955
|
var _this2 = this;
|
|
@@ -7904,18 +7971,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
7904
7971
|
|
|
7905
7972
|
return Portal;
|
|
7906
7973
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
_defineProperty(Portal, "propTypes", {
|
|
7974
|
+
Portal.displayName = "Portal";
|
|
7975
|
+
Portal.propTypes = {
|
|
7911
7976
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7912
7977
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
7913
7978
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
7914
7979
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7915
7980
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
7916
|
-
}
|
|
7917
|
-
|
|
7918
|
-
|
|
7981
|
+
};
|
|
7982
|
+
//# sourceMappingURL=portal.js.map
|
|
7919
7983
|
|
|
7920
7984
|
/***/ }),
|
|
7921
7985
|
|
|
@@ -7928,7 +7992,7 @@ _defineProperty(Portal, "propTypes", {
|
|
|
7928
7992
|
"use strict";
|
|
7929
7993
|
__webpack_require__.r(__webpack_exports__);
|
|
7930
7994
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7931
|
-
/* harmony export */ "
|
|
7995
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
7932
7996
|
/* harmony export */ });
|
|
7933
7997
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
7934
7998
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7975,7 +8039,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
7975
8039
|
|
|
7976
8040
|
var strokeLinecap = "round";
|
|
7977
8041
|
var strokeLinejoin = "round";
|
|
7978
|
-
|
|
8042
|
+
var grayscale = {
|
|
7979
8043
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
7980
8044
|
style: {
|
|
7981
8045
|
data: {
|
|
@@ -8190,7 +8254,8 @@ var strokeLinejoin = "round";
|
|
|
8190
8254
|
}
|
|
8191
8255
|
}
|
|
8192
8256
|
}, baseProps)
|
|
8193
|
-
}
|
|
8257
|
+
};
|
|
8258
|
+
//# sourceMappingURL=grayscale.js.map
|
|
8194
8259
|
|
|
8195
8260
|
/***/ }),
|
|
8196
8261
|
|
|
@@ -8203,7 +8268,7 @@ var strokeLinejoin = "round";
|
|
|
8203
8268
|
"use strict";
|
|
8204
8269
|
__webpack_require__.r(__webpack_exports__);
|
|
8205
8270
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8206
|
-
/* harmony export */ "
|
|
8271
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
8207
8272
|
/* harmony export */ });
|
|
8208
8273
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8209
8274
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8260,7 +8325,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
8260
8325
|
var strokeDasharray = "10, 5";
|
|
8261
8326
|
var strokeLinecap = "round";
|
|
8262
8327
|
var strokeLinejoin = "round";
|
|
8263
|
-
|
|
8328
|
+
var material = {
|
|
8264
8329
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
8265
8330
|
style: {
|
|
8266
8331
|
data: {
|
|
@@ -8492,7 +8557,8 @@ var strokeLinejoin = "round";
|
|
|
8492
8557
|
}
|
|
8493
8558
|
}
|
|
8494
8559
|
}, baseProps)
|
|
8495
|
-
}
|
|
8560
|
+
};
|
|
8561
|
+
//# sourceMappingURL=material.js.map
|
|
8496
8562
|
|
|
8497
8563
|
/***/ }),
|
|
8498
8564
|
|
|
@@ -8505,16 +8571,18 @@ var strokeLinejoin = "round";
|
|
|
8505
8571
|
"use strict";
|
|
8506
8572
|
__webpack_require__.r(__webpack_exports__);
|
|
8507
8573
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8508
|
-
/* harmony export */ "
|
|
8574
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
8509
8575
|
/* harmony export */ });
|
|
8510
|
-
/* harmony import */ var
|
|
8511
|
-
/* harmony import */ var
|
|
8576
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
8577
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
8512
8578
|
|
|
8513
8579
|
|
|
8514
|
-
|
|
8515
|
-
|
|
8516
|
-
grayscale:
|
|
8517
|
-
|
|
8580
|
+
|
|
8581
|
+
var VictoryTheme = {
|
|
8582
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
8583
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
8584
|
+
};
|
|
8585
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
8518
8586
|
|
|
8519
8587
|
/***/ }),
|
|
8520
8588
|
|
|
@@ -8527,19 +8595,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8527
8595
|
"use strict";
|
|
8528
8596
|
__webpack_require__.r(__webpack_exports__);
|
|
8529
8597
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8530
|
-
/* harmony export */ "getAxis": () => (/* binding */ getAxis),
|
|
8531
8598
|
/* harmony export */ "findAxisComponents": () => (/* binding */ findAxisComponents),
|
|
8599
|
+
/* harmony export */ "getAxis": () => (/* binding */ getAxis),
|
|
8532
8600
|
/* harmony export */ "getAxisComponent": () => (/* binding */ getAxisComponent),
|
|
8533
8601
|
/* harmony export */ "getAxisComponentsWithParent": () => (/* binding */ getAxisComponentsWithParent),
|
|
8602
|
+
/* harmony export */ "getAxisValue": () => (/* binding */ getAxisValue),
|
|
8603
|
+
/* harmony export */ "getDomain": () => (/* binding */ getDomain),
|
|
8534
8604
|
/* harmony export */ "getOrigin": () => (/* binding */ getOrigin),
|
|
8535
8605
|
/* harmony export */ "getOriginSign": () => (/* binding */ getOriginSign),
|
|
8536
|
-
/* harmony export */ "isVertical": () => (/* binding */ isVertical),
|
|
8537
|
-
/* harmony export */ "stringTicks": () => (/* binding */ stringTicks),
|
|
8538
8606
|
/* harmony export */ "getTickFormat": () => (/* binding */ getTickFormat),
|
|
8539
8607
|
/* harmony export */ "getTicks": () => (/* binding */ getTicks),
|
|
8540
|
-
/* harmony export */ "
|
|
8541
|
-
/* harmony export */ "
|
|
8542
|
-
/* harmony export */ "
|
|
8608
|
+
/* harmony export */ "isVertical": () => (/* binding */ isVertical),
|
|
8609
|
+
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
8610
|
+
/* harmony export */ "stringTicks": () => (/* binding */ stringTicks)
|
|
8543
8611
|
/* harmony export */ });
|
|
8544
8612
|
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
8545
8613
|
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8595,7 +8663,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
8595
8663
|
|
|
8596
8664
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
8597
8665
|
|
|
8598
|
-
|
|
8666
|
+
|
|
8599
8667
|
|
|
8600
8668
|
|
|
8601
8669
|
|
|
@@ -8606,7 +8674,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8606
8674
|
* @param {Boolean} horizontal: true for horizontal charts
|
|
8607
8675
|
* @returns {String} the dimension appropriate for the axis given its props
|
|
8608
8676
|
*/
|
|
8609
|
-
|
|
8610
8677
|
function getAxis(props) {
|
|
8611
8678
|
var dependentAxis = props.dependentAxis;
|
|
8612
8679
|
return dependentAxis ? "y" : "x";
|
|
@@ -8792,7 +8859,7 @@ function getTickArray(props) {
|
|
|
8792
8859
|
}) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
|
|
8793
8860
|
}
|
|
8794
8861
|
|
|
8795
|
-
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(
|
|
8862
|
+
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
|
|
8796
8863
|
|
|
8797
8864
|
var buildTickArray = function (arr) {
|
|
8798
8865
|
var newTickArray = [];
|
|
@@ -8837,11 +8904,11 @@ function getTickFormat(props, scale) {
|
|
|
8837
8904
|
return defaultTickFormat || scaleTickFormat;
|
|
8838
8905
|
} else if (tickFormat && Array.isArray(tickFormat)) {
|
|
8839
8906
|
var tickArray = getTickArray(props);
|
|
8840
|
-
var tickArrayIndices = tickArray ? tickArray.map(function (v) {
|
|
8907
|
+
var tickArrayIndices = tickArray === null || tickArray === void 0 ? void 0 : tickArray.map(function (v) {
|
|
8841
8908
|
return v.index;
|
|
8842
|
-
})
|
|
8909
|
+
});
|
|
8843
8910
|
var filteredTickFormat = tickFormat.filter(function (t, index) {
|
|
8844
|
-
return tickArrayIndices.includes(index);
|
|
8911
|
+
return tickArrayIndices === null || tickArrayIndices === void 0 ? void 0 : tickArrayIndices.includes(index);
|
|
8845
8912
|
});
|
|
8846
8913
|
return function (x, index) {
|
|
8847
8914
|
return filteredTickFormat[index];
|
|
@@ -8875,7 +8942,8 @@ function downsampleTicks(ticks, tickCount) {
|
|
|
8875
8942
|
});
|
|
8876
8943
|
}
|
|
8877
8944
|
|
|
8878
|
-
function getTicks(props, scale
|
|
8945
|
+
function getTicks(props, scale) {
|
|
8946
|
+
var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
8879
8947
|
var tickCount = props.tickCount;
|
|
8880
8948
|
var tickArray = getTickArray(props);
|
|
8881
8949
|
var tickValues = tickArray ? tickArray.map(function (v) {
|
|
@@ -8998,6 +9066,7 @@ function modifyProps(props, fallbackProps) {
|
|
|
8998
9066
|
theme: theme
|
|
8999
9067
|
}), fallbackProps, "axis");
|
|
9000
9068
|
}
|
|
9069
|
+
//# sourceMappingURL=axis.js.map
|
|
9001
9070
|
|
|
9002
9071
|
/***/ }),
|
|
9003
9072
|
|
|
@@ -9010,14 +9079,14 @@ function modifyProps(props, fallbackProps) {
|
|
|
9010
9079
|
"use strict";
|
|
9011
9080
|
__webpack_require__.r(__webpack_exports__);
|
|
9012
9081
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9013
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
9014
9082
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
9015
9083
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
9016
9084
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
9017
|
-
/* harmony export */ "
|
|
9018
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
9085
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
9019
9086
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
9020
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
9087
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
9088
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
9089
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
9021
9090
|
/* harmony export */ });
|
|
9022
9091
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
9023
9092
|
|
|
@@ -9031,9 +9100,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9031
9100
|
|
|
9032
9101
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
9033
9102
|
|
|
9034
|
-
/* eslint-disable func-style */
|
|
9035
|
-
|
|
9036
|
-
/* eslint-disable no-use-before-define */
|
|
9037
9103
|
function isNonEmptyArray(collection) {
|
|
9038
9104
|
return Array.isArray(collection) && collection.length > 0;
|
|
9039
9105
|
}
|
|
@@ -9072,7 +9138,8 @@ function getMaxValue(arr) {
|
|
|
9072
9138
|
}
|
|
9073
9139
|
|
|
9074
9140
|
var array = arr.concat(values);
|
|
9075
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
9141
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9142
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
9076
9143
|
}
|
|
9077
9144
|
function getMinValue(arr) {
|
|
9078
9145
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -9080,8 +9147,10 @@ function getMinValue(arr) {
|
|
|
9080
9147
|
}
|
|
9081
9148
|
|
|
9082
9149
|
var array = arr.concat(values);
|
|
9083
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
9150
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9151
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
9084
9152
|
}
|
|
9153
|
+
//# sourceMappingURL=collection.js.map
|
|
9085
9154
|
|
|
9086
9155
|
/***/ }),
|
|
9087
9156
|
|
|
@@ -9094,9 +9163,7 @@ function getMinValue(arr) {
|
|
|
9094
9163
|
"use strict";
|
|
9095
9164
|
__webpack_require__.r(__webpack_exports__);
|
|
9096
9165
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9097
|
-
/* harmony export */ "
|
|
9098
|
-
/* harmony export */ "baseProps": () => (/* binding */ baseProps),
|
|
9099
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
9166
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
9100
9167
|
/* harmony export */ });
|
|
9101
9168
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9102
9169
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9104,26 +9171,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9104
9171
|
|
|
9105
9172
|
|
|
9106
9173
|
var dataProps = {
|
|
9174
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9107
9175
|
categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9108
9176
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
9109
9177
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
9110
9178
|
})]),
|
|
9179
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9111
9180
|
data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
9112
9181
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9113
9182
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9114
9183
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9115
9184
|
labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
9116
9185
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9117
|
-
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
|
|
9186
|
+
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
9118
9187
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
9119
9188
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9120
9189
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9121
9190
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9122
9191
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9123
9192
|
}),
|
|
9124
|
-
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
|
|
9125
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
|
|
9126
|
-
y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))])
|
|
9193
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
9194
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
|
|
9195
|
+
y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
|
|
9127
9196
|
};
|
|
9128
9197
|
var baseProps = {
|
|
9129
9198
|
animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
|
|
@@ -9132,14 +9201,17 @@ var baseProps = {
|
|
|
9132
9201
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9133
9202
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9134
9203
|
})]),
|
|
9204
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9135
9205
|
maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9136
9206
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
9137
9207
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
9138
9208
|
})]),
|
|
9209
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9139
9210
|
minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9140
9211
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
|
|
9141
9212
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
|
|
9142
9213
|
})]),
|
|
9214
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9143
9215
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9144
9216
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
|
|
9145
9217
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
|
|
@@ -9150,20 +9222,23 @@ var baseProps = {
|
|
|
9150
9222
|
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
9151
9223
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9152
9224
|
})),
|
|
9225
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9153
9226
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9154
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
9227
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
9155
9228
|
childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
|
|
9156
9229
|
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
9157
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
9230
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
9158
9231
|
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)])
|
|
9159
9232
|
})),
|
|
9160
9233
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9161
9234
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9162
9235
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9236
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9163
9237
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9164
9238
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9165
9239
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
9166
9240
|
}),
|
|
9241
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9167
9242
|
padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9168
9243
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9169
9244
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -9172,17 +9247,19 @@ var baseProps = {
|
|
|
9172
9247
|
})]),
|
|
9173
9248
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9174
9249
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9175
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9176
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9250
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
9251
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
9177
9252
|
})]),
|
|
9178
9253
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9179
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
9180
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
9254
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
9255
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
9181
9256
|
})]),
|
|
9257
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9182
9258
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9183
9259
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
9184
9260
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
9185
9261
|
}),
|
|
9262
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9186
9263
|
singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9187
9264
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
9188
9265
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -9202,6 +9279,7 @@ var primitiveProps = {
|
|
|
9202
9279
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9203
9280
|
id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
9204
9281
|
index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
|
|
9282
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9205
9283
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9206
9284
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9207
9285
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -9217,6 +9295,12 @@ var primitiveProps = {
|
|
|
9217
9295
|
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
|
|
9218
9296
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
9219
9297
|
};
|
|
9298
|
+
var CommonProps = {
|
|
9299
|
+
dataProps: dataProps,
|
|
9300
|
+
baseProps: baseProps,
|
|
9301
|
+
primitiveProps: primitiveProps
|
|
9302
|
+
};
|
|
9303
|
+
//# sourceMappingURL=common-props.js.map
|
|
9220
9304
|
|
|
9221
9305
|
/***/ }),
|
|
9222
9306
|
|
|
@@ -9229,10 +9313,10 @@ var primitiveProps = {
|
|
|
9229
9313
|
"use strict";
|
|
9230
9314
|
__webpack_require__.r(__webpack_exports__);
|
|
9231
9315
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9232
|
-
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
9233
9316
|
/* harmony export */ "createStringMap": () => (/* binding */ createStringMap),
|
|
9234
9317
|
/* harmony export */ "downsample": () => (/* binding */ downsample),
|
|
9235
9318
|
/* harmony export */ "formatData": () => (/* binding */ formatData),
|
|
9319
|
+
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
9236
9320
|
/* harmony export */ "generateData": () => (/* binding */ generateData),
|
|
9237
9321
|
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
9238
9322
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
@@ -9299,8 +9383,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9299
9383
|
|
|
9300
9384
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
9301
9385
|
|
|
9302
|
-
/* eslint-disable func-style */
|
|
9303
|
-
|
|
9304
9386
|
/* eslint-disable no-use-before-define */
|
|
9305
9387
|
|
|
9306
9388
|
|
|
@@ -9732,6 +9814,7 @@ function isDataComponent(component) {
|
|
|
9732
9814
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
9733
9815
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
9734
9816
|
}
|
|
9817
|
+
//# sourceMappingURL=data.js.map
|
|
9735
9818
|
|
|
9736
9819
|
/***/ }),
|
|
9737
9820
|
|
|
@@ -9794,8 +9877,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9794
9877
|
|
|
9795
9878
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
9796
9879
|
|
|
9797
|
-
/* eslint-disable func-style */
|
|
9798
|
-
|
|
9799
9880
|
/* eslint-disable no-use-before-define */
|
|
9800
9881
|
|
|
9801
9882
|
|
|
@@ -9835,8 +9916,9 @@ function getDomainPadding(props, axis) {
|
|
|
9835
9916
|
}
|
|
9836
9917
|
|
|
9837
9918
|
function getFlatData(dataset, axis) {
|
|
9919
|
+
var axisKey = "_".concat(axis);
|
|
9838
9920
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
9839
|
-
return datum[
|
|
9921
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
9840
9922
|
});
|
|
9841
9923
|
}
|
|
9842
9924
|
|
|
@@ -9901,7 +9983,9 @@ function padDomain(domain, props, axis) {
|
|
|
9901
9983
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
9902
9984
|
// Naive initial padding calculation
|
|
9903
9985
|
var initialPadding = {
|
|
9986
|
+
// @ts-expect-error `max/min` might be dates
|
|
9904
9987
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
9988
|
+
// @ts-expect-error `max/min` might be dates
|
|
9905
9989
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
9906
9990
|
}; // Adjust the domain by the initial padding
|
|
9907
9991
|
|
|
@@ -10186,6 +10270,7 @@ function isDomainComponent(component) {
|
|
|
10186
10270
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
10187
10271
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
10188
10272
|
}
|
|
10273
|
+
//# sourceMappingURL=domain.js.map
|
|
10189
10274
|
|
|
10190
10275
|
/***/ }),
|
|
10191
10276
|
|
|
@@ -10198,18 +10283,18 @@ function isDomainComponent(component) {
|
|
|
10198
10283
|
"use strict";
|
|
10199
10284
|
__webpack_require__.r(__webpack_exports__);
|
|
10200
10285
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10201
|
-
/* harmony export */ "
|
|
10202
|
-
/* harmony export */ "
|
|
10203
|
-
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
10286
|
+
/* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
|
|
10287
|
+
/* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
|
|
10204
10288
|
/* harmony export */ "getEventState": () => (/* binding */ getEventState),
|
|
10205
|
-
/* harmony export */ "
|
|
10206
|
-
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
10289
|
+
/* harmony export */ "getEvents": () => (/* binding */ getEvents),
|
|
10207
10290
|
/* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
|
|
10208
|
-
/* harmony export */ "
|
|
10291
|
+
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
10292
|
+
/* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
|
|
10209
10293
|
/* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
|
|
10210
10294
|
/* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
|
|
10211
|
-
/* harmony export */ "
|
|
10212
|
-
/* harmony export */ "
|
|
10295
|
+
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
10296
|
+
/* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
|
|
10297
|
+
/* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
|
|
10213
10298
|
/* harmony export */ });
|
|
10214
10299
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10215
10300
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10254,15 +10339,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10254
10339
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
10255
10340
|
|
|
10256
10341
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
10342
|
+
|
|
10257
10343
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
10258
10344
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
10259
10345
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
10260
10346
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
10261
10347
|
* (i.e. VictoryChart) in the case of shared events
|
|
10262
10348
|
*/
|
|
10263
|
-
// eslint-disable-next-line max-params
|
|
10264
|
-
|
|
10265
|
-
|
|
10349
|
+
// eslint-disable-next-line max-params
|
|
10350
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
10351
|
+
getScopedEvents) {
|
|
10266
10352
|
var _this = this;
|
|
10267
10353
|
|
|
10268
10354
|
// Returns all events that apply to a particular target element
|
|
@@ -10485,24 +10571,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
10485
10571
|
return memo;
|
|
10486
10572
|
}, {});
|
|
10487
10573
|
}
|
|
10488
|
-
/*
|
|
10574
|
+
/*
|
|
10575
|
+
* Returns a partially applied event handler for a specific target element
|
|
10489
10576
|
* This allows event handlers to have access to props controlling each element
|
|
10490
10577
|
*/
|
|
10491
10578
|
|
|
10492
10579
|
function getPartialEvents(events, eventKey, childProps) {
|
|
10493
|
-
|
|
10580
|
+
if (!events) return {};
|
|
10581
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
10494
10582
|
var appliedEvent = function (evt) {
|
|
10495
10583
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
10496
10584
|
};
|
|
10497
10585
|
|
|
10498
10586
|
memo[eventName] = appliedEvent;
|
|
10499
10587
|
return memo;
|
|
10500
|
-
}, {})
|
|
10588
|
+
}, {});
|
|
10501
10589
|
}
|
|
10590
|
+
|
|
10502
10591
|
/* Returns the property of the state object corresponding to event changes for
|
|
10503
10592
|
* a particular element
|
|
10504
10593
|
*/
|
|
10505
|
-
|
|
10594
|
+
// eslint-disable-next-line max-params
|
|
10506
10595
|
function getEventState(eventKey, namespace, childType) {
|
|
10507
10596
|
// Mandatory usage: `getEventState.bind(this)`
|
|
10508
10597
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -10687,6 +10776,7 @@ var emulateReactEvent = function (event) {
|
|
|
10687
10776
|
nativeEvent: event
|
|
10688
10777
|
});
|
|
10689
10778
|
};
|
|
10779
|
+
//# sourceMappingURL=events.js.map
|
|
10690
10780
|
|
|
10691
10781
|
/***/ }),
|
|
10692
10782
|
|
|
@@ -10699,25 +10789,25 @@ var emulateReactEvent = function (event) {
|
|
|
10699
10789
|
"use strict";
|
|
10700
10790
|
__webpack_require__.r(__webpack_exports__);
|
|
10701
10791
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10702
|
-
/* harmony export */ "
|
|
10703
|
-
/* harmony export */ "
|
|
10704
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
10705
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
10706
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
10707
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
10708
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
10792
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
10793
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
10709
10794
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
10710
10795
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
10711
|
-
/* harmony export */ "
|
|
10712
|
-
/* harmony export */ "
|
|
10713
|
-
/* harmony export */ "
|
|
10796
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
10797
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
10798
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
10799
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
10714
10800
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
10801
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
10715
10802
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
10716
|
-
/* harmony export */ "
|
|
10803
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
10804
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
10805
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
10717
10806
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
10718
|
-
/* harmony export */ "
|
|
10807
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
10808
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
10719
10809
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
10720
|
-
/* harmony export */ "
|
|
10810
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
10721
10811
|
/* harmony export */ });
|
|
10722
10812
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10723
10813
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10740,8 +10830,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10740
10830
|
|
|
10741
10831
|
|
|
10742
10832
|
|
|
10743
|
-
/* eslint-disable func-style */
|
|
10744
|
-
|
|
10745
10833
|
/* eslint-disable no-use-before-define */
|
|
10746
10834
|
|
|
10747
10835
|
|
|
@@ -10770,7 +10858,7 @@ function getPolarRange(props, axis) {
|
|
|
10770
10858
|
|
|
10771
10859
|
/**
|
|
10772
10860
|
* creates an object with some keys excluded
|
|
10773
|
-
* replacement for lodash.omit for performance. does not
|
|
10861
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
10774
10862
|
* @param {Object} originalObject: created object will be based on this object
|
|
10775
10863
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
10776
10864
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -10783,6 +10871,7 @@ function omit(originalObject) {
|
|
|
10783
10871
|
var newObject = {};
|
|
10784
10872
|
|
|
10785
10873
|
for (var key in originalObject) {
|
|
10874
|
+
// @ts-expect-error String is not assignable to Key
|
|
10786
10875
|
if (ks.indexOf(key) >= 0) {
|
|
10787
10876
|
continue;
|
|
10788
10877
|
}
|
|
@@ -11015,7 +11104,9 @@ function reduceChildren(children, iteratee) {
|
|
|
11015
11104
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
11016
11105
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
11017
11106
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
11018
|
-
return
|
|
11107
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
11108
|
+
memo.concat(item)
|
|
11109
|
+
);
|
|
11019
11110
|
};
|
|
11020
11111
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
11021
11112
|
|
|
@@ -11059,7 +11150,7 @@ function reduceChildren(children, iteratee) {
|
|
|
11059
11150
|
/**
|
|
11060
11151
|
* @param {Object} props: the props object
|
|
11061
11152
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
11062
|
-
* children or nested children are
|
|
11153
|
+
* children or nested children are horizontal
|
|
11063
11154
|
*/
|
|
11064
11155
|
|
|
11065
11156
|
function isHorizontal(props) {
|
|
@@ -11082,6 +11173,7 @@ function isHorizontal(props) {
|
|
|
11082
11173
|
|
|
11083
11174
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
11084
11175
|
}
|
|
11176
|
+
//# sourceMappingURL=helpers.js.map
|
|
11085
11177
|
|
|
11086
11178
|
/***/ }),
|
|
11087
11179
|
|
|
@@ -11240,6 +11332,7 @@ var useAnimationState = function () {
|
|
|
11240
11332
|
getProps: getProps
|
|
11241
11333
|
};
|
|
11242
11334
|
};
|
|
11335
|
+
//# sourceMappingURL=use-animation-state.js.map
|
|
11243
11336
|
|
|
11244
11337
|
/***/ }),
|
|
11245
11338
|
|
|
@@ -11257,13 +11350,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11257
11350
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
11258
11351
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
11259
11352
|
|
|
11260
|
-
|
|
11353
|
+
function usePreviousProps(props) {
|
|
11261
11354
|
var ref = react__WEBPACK_IMPORTED_MODULE_0___default().useRef();
|
|
11262
11355
|
react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
|
|
11263
11356
|
ref.current = props;
|
|
11264
11357
|
});
|
|
11265
|
-
return ref.current
|
|
11266
|
-
}
|
|
11358
|
+
return ref.current;
|
|
11359
|
+
}
|
|
11360
|
+
//# sourceMappingURL=use-previous-props.js.map
|
|
11267
11361
|
|
|
11268
11362
|
/***/ }),
|
|
11269
11363
|
|
|
@@ -11277,17 +11371,16 @@ var usePreviousProps = function (props) {
|
|
|
11277
11371
|
__webpack_require__.r(__webpack_exports__);
|
|
11278
11372
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11279
11373
|
/* harmony export */ "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
|
|
11280
|
-
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
11281
11374
|
/* harmony export */ "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
|
|
11282
11375
|
/* harmony export */ "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
|
|
11283
|
-
/* harmony export */ "
|
|
11284
|
-
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
11376
|
+
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
11285
11377
|
/* harmony export */ "isImmutable": () => (/* binding */ isImmutable),
|
|
11378
|
+
/* harmony export */ "isIterable": () => (/* binding */ isIterable),
|
|
11286
11379
|
/* harmony export */ "isList": () => (/* binding */ isList),
|
|
11287
11380
|
/* harmony export */ "isMap": () => (/* binding */ isMap),
|
|
11381
|
+
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
11288
11382
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
11289
11383
|
/* harmony export */ });
|
|
11290
|
-
/* eslint-disable func-style */
|
|
11291
11384
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
11292
11385
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
11293
11386
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -11308,15 +11401,16 @@ function isMap(x) {
|
|
|
11308
11401
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
11309
11402
|
}
|
|
11310
11403
|
function shallowToJS(x, whitelist) {
|
|
11311
|
-
return isIterable(x) ? x.reduce(function (
|
|
11404
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
11312
11405
|
if (whitelist && whitelist[key]) {
|
|
11313
11406
|
curr = shallowToJS(curr);
|
|
11314
11407
|
}
|
|
11315
11408
|
|
|
11316
|
-
|
|
11317
|
-
return
|
|
11409
|
+
result[key] = curr;
|
|
11410
|
+
return result;
|
|
11318
11411
|
}, isList(x) ? [] : {}) : x;
|
|
11319
11412
|
}
|
|
11413
|
+
//# sourceMappingURL=immutable.js.map
|
|
11320
11414
|
|
|
11321
11415
|
/***/ }),
|
|
11322
11416
|
|
|
@@ -11335,7 +11429,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11335
11429
|
|
|
11336
11430
|
/* eslint-disable no-console */
|
|
11337
11431
|
// TODO: Use "warning" npm module like React is switching to.
|
|
11338
|
-
// eslint-disable-next-line func-style
|
|
11339
11432
|
function warn(message) {
|
|
11340
11433
|
if (true) {
|
|
11341
11434
|
if (console && console.warn) {
|
|
@@ -11343,6 +11436,7 @@ function warn(message) {
|
|
|
11343
11436
|
}
|
|
11344
11437
|
}
|
|
11345
11438
|
}
|
|
11439
|
+
//# sourceMappingURL=log.js.map
|
|
11346
11440
|
|
|
11347
11441
|
/***/ }),
|
|
11348
11442
|
|
|
@@ -11355,27 +11449,25 @@ function warn(message) {
|
|
|
11355
11449
|
"use strict";
|
|
11356
11450
|
__webpack_require__.r(__webpack_exports__);
|
|
11357
11451
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11358
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
11359
11452
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
11360
|
-
/* harmony export */ "
|
|
11361
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
11362
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
11453
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
11363
11454
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
11364
|
-
/* harmony export */ "
|
|
11455
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
11365
11456
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
11457
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
11366
11458
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
11367
|
-
/* harmony export */ "
|
|
11459
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
11460
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
11461
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
11368
11462
|
/* harmony export */ });
|
|
11369
11463
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
11370
11464
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
11371
11465
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
11372
11466
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
11373
|
-
/* harmony import */ var
|
|
11374
|
-
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
11375
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11467
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11376
11468
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11377
11469
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
11378
|
-
|
|
11470
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
11379
11471
|
|
|
11380
11472
|
|
|
11381
11473
|
|
|
@@ -11383,6 +11475,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11383
11475
|
|
|
11384
11476
|
|
|
11385
11477
|
|
|
11478
|
+
|
|
11479
|
+
|
|
11386
11480
|
/**
|
|
11387
11481
|
* Return a new validator based on `validator` but with the option to chain
|
|
11388
11482
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -11390,30 +11484,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11390
11484
|
* @param {Function} validator Validation function.
|
|
11391
11485
|
* @returns {Function} Validator with `isRequired` option.
|
|
11392
11486
|
*/
|
|
11393
|
-
|
|
11394
11487
|
var makeChainable = function (validator) {
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11488
|
+
var createChainable = function (isRequired) {
|
|
11489
|
+
return function (props, propName, componentName) {
|
|
11490
|
+
var value = props[propName];
|
|
11398
11491
|
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11492
|
+
if (value === undefined || value === null) {
|
|
11493
|
+
if (isRequired) {
|
|
11494
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
11495
|
+
}
|
|
11403
11496
|
|
|
11404
|
-
|
|
11405
|
-
|
|
11497
|
+
return null;
|
|
11498
|
+
}
|
|
11406
11499
|
|
|
11407
|
-
|
|
11408
|
-
|
|
11409
|
-
|
|
11500
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
11501
|
+
rest[_key - 3] = arguments[_key];
|
|
11502
|
+
}
|
|
11410
11503
|
|
|
11411
|
-
|
|
11504
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11505
|
+
};
|
|
11412
11506
|
};
|
|
11413
11507
|
|
|
11414
|
-
var chainable =
|
|
11415
|
-
|
|
11416
|
-
|
|
11508
|
+
var chainable = Object.assign(createChainable(false), {
|
|
11509
|
+
isRequired: createChainable(true)
|
|
11510
|
+
});
|
|
11417
11511
|
return chainable;
|
|
11418
11512
|
};
|
|
11419
11513
|
|
|
@@ -11443,7 +11537,7 @@ var getConstructor = function (value) {
|
|
|
11443
11537
|
};
|
|
11444
11538
|
/**
|
|
11445
11539
|
* Get the name of the constructor used to create `value`, using
|
|
11446
|
-
* `Object.
|
|
11540
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
11447
11541
|
* "null" or "undefined", respectively.
|
|
11448
11542
|
* @param {*} value Instance to return the constructor name of.
|
|
11449
11543
|
* @returns {String} Name of the constructor.
|
|
@@ -11473,10 +11567,11 @@ function deprecated(propType, explanation) {
|
|
|
11473
11567
|
var value = props[propName];
|
|
11474
11568
|
|
|
11475
11569
|
if (value !== null && value !== undefined) {
|
|
11476
|
-
|
|
11570
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
11477
11571
|
}
|
|
11478
11572
|
|
|
11479
|
-
|
|
11573
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
11574
|
+
return null;
|
|
11480
11575
|
};
|
|
11481
11576
|
}
|
|
11482
11577
|
/**
|
|
@@ -11495,7 +11590,7 @@ function allOfType(validators) {
|
|
|
11495
11590
|
|
|
11496
11591
|
return validators.reduce(function (result, validator) {
|
|
11497
11592
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11498
|
-
},
|
|
11593
|
+
}, null);
|
|
11499
11594
|
});
|
|
11500
11595
|
}
|
|
11501
11596
|
/**
|
|
@@ -11509,7 +11604,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
11509
11604
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
11510
11605
|
}
|
|
11511
11606
|
|
|
11512
|
-
return
|
|
11607
|
+
return null;
|
|
11513
11608
|
});
|
|
11514
11609
|
/**
|
|
11515
11610
|
* Check that the value is an integer.
|
|
@@ -11522,7 +11617,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
11522
11617
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
11523
11618
|
}
|
|
11524
11619
|
|
|
11525
|
-
return
|
|
11620
|
+
return null;
|
|
11526
11621
|
});
|
|
11527
11622
|
/**
|
|
11528
11623
|
* Check that the value is greater than zero.
|
|
@@ -11535,7 +11630,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
11535
11630
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
11536
11631
|
}
|
|
11537
11632
|
|
|
11538
|
-
return
|
|
11633
|
+
return null;
|
|
11539
11634
|
});
|
|
11540
11635
|
/**
|
|
11541
11636
|
* Check that the value is an Array of two unique values.
|
|
@@ -11548,32 +11643,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
11548
11643
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
11549
11644
|
}
|
|
11550
11645
|
|
|
11551
|
-
return
|
|
11646
|
+
return null;
|
|
11552
11647
|
});
|
|
11553
11648
|
/**
|
|
11554
11649
|
* Check that the value looks like a d3 `scale` function.
|
|
11555
11650
|
*/
|
|
11556
11651
|
|
|
11557
11652
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
11558
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11559
|
-
|
|
11560
|
-
var validScale = function (scl) {
|
|
11561
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
11562
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
|
|
11563
|
-
} else if (typeof scl === "string") {
|
|
11564
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
11565
|
-
}
|
|
11566
|
-
|
|
11567
|
-
return false;
|
|
11568
|
-
};
|
|
11569
|
-
|
|
11570
11653
|
var value = props[propName];
|
|
11571
11654
|
|
|
11572
|
-
if (!validScale(value)) {
|
|
11655
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
11573
11656
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
11574
11657
|
}
|
|
11575
11658
|
|
|
11576
|
-
return
|
|
11659
|
+
return null;
|
|
11577
11660
|
});
|
|
11578
11661
|
/**
|
|
11579
11662
|
* Check that an array contains items of the same type.
|
|
@@ -11587,7 +11670,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11587
11670
|
}
|
|
11588
11671
|
|
|
11589
11672
|
if (values.length < 2) {
|
|
11590
|
-
return
|
|
11673
|
+
return null;
|
|
11591
11674
|
}
|
|
11592
11675
|
|
|
11593
11676
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -11602,7 +11685,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11602
11685
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
11603
11686
|
}
|
|
11604
11687
|
|
|
11605
|
-
return
|
|
11688
|
+
return null;
|
|
11606
11689
|
});
|
|
11607
11690
|
/**
|
|
11608
11691
|
* Check that array prop length matches props.data.length
|
|
@@ -11613,7 +11696,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
11613
11696
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
11614
11697
|
}
|
|
11615
11698
|
|
|
11616
|
-
return
|
|
11699
|
+
return null;
|
|
11617
11700
|
});
|
|
11618
11701
|
/**
|
|
11619
11702
|
* Check that the value is a regular expression
|
|
@@ -11624,8 +11707,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
11624
11707
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
11625
11708
|
}
|
|
11626
11709
|
|
|
11627
|
-
return
|
|
11710
|
+
return null;
|
|
11628
11711
|
});
|
|
11712
|
+
//# sourceMappingURL=prop-types.js.map
|
|
11629
11713
|
|
|
11630
11714
|
/***/ }),
|
|
11631
11715
|
|
|
@@ -11638,12 +11722,13 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
11638
11722
|
"use strict";
|
|
11639
11723
|
__webpack_require__.r(__webpack_exports__);
|
|
11640
11724
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11641
|
-
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
11642
11725
|
/* harmony export */ "getBaseScale": () => (/* binding */ getBaseScale),
|
|
11643
11726
|
/* harmony export */ "getDefaultScale": () => (/* binding */ getDefaultScale),
|
|
11727
|
+
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
11644
11728
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
11645
11729
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
11646
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
11730
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
11731
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
11647
11732
|
/* harmony export */ });
|
|
11648
11733
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
11649
11734
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11661,8 +11746,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11661
11746
|
|
|
11662
11747
|
|
|
11663
11748
|
|
|
11664
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11749
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11665
11750
|
|
|
11751
|
+
// Private Functions
|
|
11666
11752
|
function toNewName(scale) {
|
|
11667
11753
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
11668
11754
|
var capitalize = function (s) {
|
|
@@ -11732,7 +11818,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
11732
11818
|
|
|
11733
11819
|
|
|
11734
11820
|
function getScaleFromName(name) {
|
|
11735
|
-
|
|
11821
|
+
if (validScale(name)) {
|
|
11822
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
11823
|
+
|
|
11824
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
11825
|
+
}
|
|
11826
|
+
|
|
11827
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
11736
11828
|
}
|
|
11737
11829
|
function getBaseScale(props, axis) {
|
|
11738
11830
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -11742,7 +11834,7 @@ function getBaseScale(props, axis) {
|
|
|
11742
11834
|
}
|
|
11743
11835
|
|
|
11744
11836
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
11745
|
-
return
|
|
11837
|
+
return getScaleFromName(defaultScale);
|
|
11746
11838
|
}
|
|
11747
11839
|
function getDefaultScale() {
|
|
11748
11840
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -11755,7 +11847,7 @@ function getScaleFromProps(props, axis) {
|
|
|
11755
11847
|
var scale = props.scale[axis] || props.scale;
|
|
11756
11848
|
|
|
11757
11849
|
if (validScale(scale)) {
|
|
11758
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
11850
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
11759
11851
|
}
|
|
11760
11852
|
|
|
11761
11853
|
return undefined;
|
|
@@ -11790,6 +11882,7 @@ function getType(scale) {
|
|
|
11790
11882
|
})[0];
|
|
11791
11883
|
return scaleType ? scaleType.name : undefined;
|
|
11792
11884
|
}
|
|
11885
|
+
//# sourceMappingURL=scale.js.map
|
|
11793
11886
|
|
|
11794
11887
|
/***/ }),
|
|
11795
11888
|
|
|
@@ -11802,11 +11895,9 @@ function getType(scale) {
|
|
|
11802
11895
|
"use strict";
|
|
11803
11896
|
__webpack_require__.r(__webpack_exports__);
|
|
11804
11897
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11805
|
-
/* harmony export */ "
|
|
11806
|
-
/* harmony export */ "
|
|
11898
|
+
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
11899
|
+
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
11807
11900
|
/* harmony export */ });
|
|
11808
|
-
/* eslint-disable func-style */
|
|
11809
|
-
|
|
11810
11901
|
/**
|
|
11811
11902
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
11812
11903
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -11863,6 +11954,7 @@ function getColorScale(name) {
|
|
|
11863
11954
|
};
|
|
11864
11955
|
return name ? scales[name] : scales.grayscale;
|
|
11865
11956
|
}
|
|
11957
|
+
//# sourceMappingURL=style.js.map
|
|
11866
11958
|
|
|
11867
11959
|
/***/ }),
|
|
11868
11960
|
|
|
@@ -11893,6 +11985,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
11893
11985
|
});
|
|
11894
11986
|
TimerContext.displayName = "TimerContext";
|
|
11895
11987
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
11988
|
+
//# sourceMappingURL=timer-context.js.map
|
|
11896
11989
|
|
|
11897
11990
|
/***/ }),
|
|
11898
11991
|
|
|
@@ -11918,11 +12011,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
11918
12011
|
|
|
11919
12012
|
var Timer = /*#__PURE__*/function () {
|
|
11920
12013
|
function Timer() {
|
|
12014
|
+
var _this = this;
|
|
12015
|
+
|
|
11921
12016
|
_classCallCheck(this, Timer);
|
|
11922
12017
|
|
|
12018
|
+
this.shouldAnimate = void 0;
|
|
12019
|
+
this.subscribers = void 0;
|
|
12020
|
+
this.activeSubscriptions = void 0;
|
|
12021
|
+
this.timer = void 0;
|
|
12022
|
+
|
|
12023
|
+
this.loop = function () {
|
|
12024
|
+
_this.subscribers.forEach(function (s) {
|
|
12025
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
12026
|
+
});
|
|
12027
|
+
};
|
|
12028
|
+
|
|
11923
12029
|
this.shouldAnimate = true;
|
|
11924
12030
|
this.subscribers = [];
|
|
11925
|
-
this.loop = this.loop.bind(this);
|
|
11926
12031
|
this.timer = null;
|
|
11927
12032
|
this.activeSubscriptions = 0;
|
|
11928
12033
|
}
|
|
@@ -11937,13 +12042,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
11937
12042
|
value: function resumeAnimation() {
|
|
11938
12043
|
this.shouldAnimate = true;
|
|
11939
12044
|
}
|
|
11940
|
-
}, {
|
|
11941
|
-
key: "loop",
|
|
11942
|
-
value: function loop() {
|
|
11943
|
-
this.subscribers.forEach(function (s) {
|
|
11944
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
11945
|
-
});
|
|
11946
|
-
}
|
|
11947
12045
|
}, {
|
|
11948
12046
|
key: "start",
|
|
11949
12047
|
value: function start() {
|
|
@@ -11990,6 +12088,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
11990
12088
|
}();
|
|
11991
12089
|
|
|
11992
12090
|
|
|
12091
|
+
//# sourceMappingURL=timer.js.map
|
|
11993
12092
|
|
|
11994
12093
|
/***/ }),
|
|
11995
12094
|
|
|
@@ -12080,7 +12179,7 @@ function getChildData(child) {
|
|
|
12080
12179
|
}
|
|
12081
12180
|
/**
|
|
12082
12181
|
* If a parent component has animation enabled, calculate the transitions
|
|
12083
|
-
* for any data of any child component that supports data transitions
|
|
12182
|
+
* for any data of any child component that supports data transitions.
|
|
12084
12183
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
12085
12184
|
* in the first set and not the second, in the second and not the first,
|
|
12086
12185
|
* or both.
|
|
@@ -12209,7 +12308,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
12209
12308
|
|
|
12210
12309
|
if (exitingNodes) {
|
|
12211
12310
|
// After the exit transition occurs, trigger the animations for
|
|
12212
|
-
// nodes that are neither exiting
|
|
12311
|
+
// nodes that are neither exiting nor entering.
|
|
12213
12312
|
animate.onEnd = cb;
|
|
12214
12313
|
var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.
|
|
12215
12314
|
|
|
@@ -12279,7 +12378,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
12279
12378
|
* and its index in the parent's children array.
|
|
12280
12379
|
*
|
|
12281
12380
|
* In particular, this will include an `animate` object that is set appropriately
|
|
12282
|
-
* so that each child will be
|
|
12381
|
+
* so that each child will be synchronized for each stage of a transition
|
|
12283
12382
|
* animation. It will also include a transformed `data` object, where each datum
|
|
12284
12383
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
12285
12384
|
* functions.
|
|
@@ -12424,6 +12523,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
12424
12523
|
};
|
|
12425
12524
|
};
|
|
12426
12525
|
}
|
|
12526
|
+
//# sourceMappingURL=transitions.js.map
|
|
12427
12527
|
|
|
12428
12528
|
/***/ }),
|
|
12429
12529
|
|
|
@@ -12436,8 +12536,11 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
12436
12536
|
"use strict";
|
|
12437
12537
|
__webpack_require__.r(__webpack_exports__);
|
|
12438
12538
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12439
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
12539
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
12540
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
12440
12541
|
/* harmony export */ });
|
|
12542
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12543
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12441
12544
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12442
12545
|
|
|
12443
12546
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -12456,16 +12559,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12456
12559
|
|
|
12457
12560
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12458
12561
|
|
|
12562
|
+
|
|
12459
12563
|
/*
|
|
12460
12564
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
12461
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
12565
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
12462
12566
|
starts with these characters.
|
|
12463
12567
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
12464
12568
|
*/
|
|
12569
|
+
|
|
12465
12570
|
var USER_PROPS_SAFELIST = {
|
|
12466
12571
|
startsWith: ["data-", "aria-"],
|
|
12467
12572
|
exactMatch: []
|
|
12468
12573
|
};
|
|
12574
|
+
|
|
12469
12575
|
/**
|
|
12470
12576
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
12471
12577
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -12474,7 +12580,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
12474
12580
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
12475
12581
|
* otherwise
|
|
12476
12582
|
*/
|
|
12477
|
-
|
|
12478
12583
|
var doesPropStartWith = function (key) {
|
|
12479
12584
|
var startsWith = false;
|
|
12480
12585
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -12548,6 +12653,18 @@ var getSafeUserProps = function (props) {
|
|
|
12548
12653
|
return [key, getValue(value, props)];
|
|
12549
12654
|
}));
|
|
12550
12655
|
};
|
|
12656
|
+
/**
|
|
12657
|
+
* Wraps a component and adds safe user props
|
|
12658
|
+
*
|
|
12659
|
+
* @param {ReactElement} component: parent component
|
|
12660
|
+
* @param {Object} props: props to be filtered
|
|
12661
|
+
* @returns {ReactElement} modified component
|
|
12662
|
+
*/
|
|
12663
|
+
|
|
12664
|
+
var withSafeUserProps = function (component, props) {
|
|
12665
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
12666
|
+
};
|
|
12667
|
+
//# sourceMappingURL=user-props.js.map
|
|
12551
12668
|
|
|
12552
12669
|
/***/ }),
|
|
12553
12670
|
|
|
@@ -12561,22 +12678,22 @@ var getSafeUserProps = function (props) {
|
|
|
12561
12678
|
__webpack_require__.r(__webpack_exports__);
|
|
12562
12679
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12563
12680
|
/* harmony export */ "addBinsToParentPropsIfHistogram": () => (/* binding */ addBinsToParentPropsIfHistogram),
|
|
12564
|
-
/* harmony export */ "
|
|
12681
|
+
/* harmony export */ "getAllEvents": () => (/* binding */ getAllEvents),
|
|
12682
|
+
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
12683
|
+
/* harmony export */ "getCategoryAndAxisStringsFromChildren": () => (/* binding */ getCategoryAndAxisStringsFromChildren),
|
|
12684
|
+
/* harmony export */ "getChildStyle": () => (/* binding */ getChildStyle),
|
|
12685
|
+
/* harmony export */ "getColor": () => (/* binding */ getColor),
|
|
12565
12686
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
12566
|
-
/* harmony export */ "
|
|
12687
|
+
/* harmony export */ "getDataFromChildren": () => (/* binding */ getDataFromChildren),
|
|
12567
12688
|
/* harmony export */ "getDefaultDomainPadding": () => (/* binding */ getDefaultDomainPadding),
|
|
12568
|
-
/* harmony export */ "getDomainFromChildren": () => (/* binding */ getDomainFromChildren),
|
|
12569
12689
|
/* harmony export */ "getDomain": () => (/* binding */ getDomain),
|
|
12690
|
+
/* harmony export */ "getDomainFromChildren": () => (/* binding */ getDomainFromChildren),
|
|
12570
12691
|
/* harmony export */ "getScale": () => (/* binding */ getScale),
|
|
12571
|
-
/* harmony export */ "getAllEvents": () => (/* binding */ getAllEvents),
|
|
12572
|
-
/* harmony export */ "getColor": () => (/* binding */ getColor),
|
|
12573
|
-
/* harmony export */ "getStyle": () => (/* binding */ getStyle),
|
|
12574
|
-
/* harmony export */ "getChildStyle": () => (/* binding */ getChildStyle),
|
|
12575
12692
|
/* harmony export */ "getStringsFromCategories": () => (/* binding */ getStringsFromCategories),
|
|
12576
|
-
/* harmony export */ "getStringsFromData": () => (/* binding */ getStringsFromData),
|
|
12577
|
-
/* harmony export */ "getCategoryAndAxisStringsFromChildren": () => (/* binding */ getCategoryAndAxisStringsFromChildren),
|
|
12578
12693
|
/* harmony export */ "getStringsFromChildren": () => (/* binding */ getStringsFromChildren),
|
|
12579
|
-
/* harmony export */ "
|
|
12694
|
+
/* harmony export */ "getStringsFromData": () => (/* binding */ getStringsFromData),
|
|
12695
|
+
/* harmony export */ "getStyle": () => (/* binding */ getStyle),
|
|
12696
|
+
/* harmony export */ "getWidth": () => (/* binding */ getWidth)
|
|
12580
12697
|
/* harmony export */ });
|
|
12581
12698
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
12582
12699
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12760,7 +12877,7 @@ function getData(props, childComponents) {
|
|
|
12760
12877
|
}
|
|
12761
12878
|
|
|
12762
12879
|
childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
12763
|
-
return getDataFromChildren(childComponents);
|
|
12880
|
+
return getDataFromChildren(props, childComponents);
|
|
12764
12881
|
}
|
|
12765
12882
|
function getWidth(props, groupLength, seriesLength) {
|
|
12766
12883
|
var datasets = props.datasets,
|
|
@@ -12822,7 +12939,7 @@ function getDefaultDomainPadding(props, axis, childComponents) {
|
|
|
12822
12939
|
function getDomainFromChildren(props, axis, childComponents) {
|
|
12823
12940
|
// eslint-disable-line max-statements, complexity, max-len
|
|
12824
12941
|
var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
12825
|
-
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props
|
|
12942
|
+
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props) : undefined;
|
|
12826
12943
|
var polar = props.polar,
|
|
12827
12944
|
startAngle = props.startAngle,
|
|
12828
12945
|
endAngle = props.endAngle,
|
|
@@ -13056,6 +13173,7 @@ function getCategories(props, childComponents, allStrings) {
|
|
|
13056
13173
|
y: yCategories.length > 0 ? yCategories : undefined
|
|
13057
13174
|
};
|
|
13058
13175
|
}
|
|
13176
|
+
//# sourceMappingURL=wrapper.js.map
|
|
13059
13177
|
|
|
13060
13178
|
/***/ }),
|
|
13061
13179
|
|
|
@@ -13086,16 +13204,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13086
13204
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_6__);
|
|
13087
13205
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react");
|
|
13088
13206
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
13089
|
-
/* harmony import */ var
|
|
13090
|
-
/* harmony import */ var
|
|
13091
|
-
/* harmony import */ var
|
|
13092
|
-
/* harmony import */ var
|
|
13207
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
13208
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
|
|
13209
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
|
|
13210
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
13093
13211
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
13094
13212
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
|
|
13095
|
-
/* harmony import */ var
|
|
13096
|
-
/* harmony import */ var
|
|
13097
|
-
/* harmony import */ var
|
|
13098
|
-
/* harmony import */ var
|
|
13213
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
13214
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_8__);
|
|
13215
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/json-stringify-safe/stringify.js");
|
|
13216
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__);
|
|
13099
13217
|
|
|
13100
13218
|
|
|
13101
13219
|
|
|
@@ -13132,7 +13250,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
13132
13250
|
|
|
13133
13251
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
13134
13252
|
|
|
13135
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
13253
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
13136
13254
|
|
|
13137
13255
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13138
13256
|
|
|
@@ -13142,15 +13260,16 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
13142
13260
|
|
|
13143
13261
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13144
13262
|
|
|
13145
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13146
|
-
|
|
13147
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13148
|
-
|
|
13263
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13149
13264
|
|
|
13150
13265
|
|
|
13151
13266
|
|
|
13152
13267
|
|
|
13153
13268
|
|
|
13269
|
+
// DISCLAIMER:
|
|
13270
|
+
// This file is not currently tested, and it is first on the list of files
|
|
13271
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
13272
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
13154
13273
|
|
|
13155
13274
|
var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
13156
13275
|
_inherits(VictorySharedEvents, _React$Component);
|
|
@@ -13164,8 +13283,8 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13164
13283
|
|
|
13165
13284
|
_this = _super.call(this, props);
|
|
13166
13285
|
_this.state = _this.state || {};
|
|
13167
|
-
_this.getScopedEvents =
|
|
13168
|
-
_this.getEventState =
|
|
13286
|
+
_this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
13287
|
+
_this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEventState.bind(_assertThisInitialized(_this));
|
|
13169
13288
|
_this.baseProps = _this.getBaseProps(props);
|
|
13170
13289
|
_this.sharedEventsCache = {};
|
|
13171
13290
|
_this.globalEvents = {};
|
|
@@ -13177,7 +13296,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13177
13296
|
_createClass(VictorySharedEvents, [{
|
|
13178
13297
|
key: "shouldComponentUpdate",
|
|
13179
13298
|
value: function shouldComponentUpdate(nextProps) {
|
|
13180
|
-
if (!
|
|
13299
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(this.props, nextProps)) {
|
|
13181
13300
|
this.baseProps = this.getBaseProps(nextProps);
|
|
13182
13301
|
var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
|
|
13183
13302
|
this.applyExternalMutations(nextProps, externalMutations);
|
|
@@ -13233,22 +13352,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13233
13352
|
|
|
13234
13353
|
var boundListener = function (event) {
|
|
13235
13354
|
var listener = _this5.globalEvents[key];
|
|
13236
|
-
return listener && listener(
|
|
13355
|
+
return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_10__.emulateReactEvent(event));
|
|
13237
13356
|
};
|
|
13238
13357
|
|
|
13239
13358
|
this.boundGlobalEvents[key] = boundListener;
|
|
13240
|
-
window.addEventListener(
|
|
13359
|
+
window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), boundListener);
|
|
13241
13360
|
}
|
|
13242
13361
|
}, {
|
|
13243
13362
|
key: "removeGlobalListener",
|
|
13244
13363
|
value: function removeGlobalListener(key) {
|
|
13245
|
-
window.removeEventListener(
|
|
13364
|
+
window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
13246
13365
|
}
|
|
13247
13366
|
}, {
|
|
13248
13367
|
key: "getAllEvents",
|
|
13249
13368
|
value: function getAllEvents(props) {
|
|
13250
13369
|
var components = ["container", "groupComponent"];
|
|
13251
|
-
var componentEvents =
|
|
13370
|
+
var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getComponentEvents(props, components);
|
|
13252
13371
|
|
|
13253
13372
|
if (Array.isArray(componentEvents)) {
|
|
13254
13373
|
return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
|
|
@@ -13275,7 +13394,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13275
13394
|
}, {
|
|
13276
13395
|
key: "getExternalMutations",
|
|
13277
13396
|
value: function getExternalMutations(props, baseProps) {
|
|
13278
|
-
return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(props.externalEventMutations) ?
|
|
13397
|
+
return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(props.externalEventMutations) ? victory_core__WEBPACK_IMPORTED_MODULE_10__.getExternalMutationsWithChildren(props.externalEventMutations, baseProps, this.state, lodash_keys__WEBPACK_IMPORTED_MODULE_1___default()(baseProps)) : undefined;
|
|
13279
13398
|
}
|
|
13280
13399
|
}, {
|
|
13281
13400
|
key: "cacheSharedEvents",
|
|
@@ -13290,7 +13409,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13290
13409
|
sharedEvents = _ref2[0],
|
|
13291
13410
|
prevCacheValues = _ref2[1];
|
|
13292
13411
|
|
|
13293
|
-
if (sharedEvents &&
|
|
13412
|
+
if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(cacheValues, prevCacheValues)) {
|
|
13294
13413
|
return sharedEvents;
|
|
13295
13414
|
}
|
|
13296
13415
|
|
|
@@ -13320,7 +13439,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13320
13439
|
}
|
|
13321
13440
|
};
|
|
13322
13441
|
|
|
13323
|
-
var baseProps =
|
|
13442
|
+
var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_11__.reduceChildren(childComponents, iteratee);
|
|
13324
13443
|
return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2___default()(baseProps);
|
|
13325
13444
|
}
|
|
13326
13445
|
}, {
|
|
@@ -13347,7 +13466,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13347
13466
|
|
|
13348
13467
|
return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
|
|
13349
13468
|
});
|
|
13350
|
-
var sharedEventsCacheValues = [name, baseProps, childEvents,
|
|
13469
|
+
var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default()(_this6.state[name])];
|
|
13351
13470
|
var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
|
|
13352
13471
|
events: childEvents,
|
|
13353
13472
|
// partially apply child name and baseProps,
|
|
@@ -13399,7 +13518,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13399
13518
|
var container = props.container || props.groupComponent;
|
|
13400
13519
|
var role = container.type && container.type.role;
|
|
13401
13520
|
var containerProps = container.props || {};
|
|
13402
|
-
var boundGetEvents =
|
|
13521
|
+
var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEvents.bind(this);
|
|
13403
13522
|
var parentEvents = sharedEvents && boundGetEvents({
|
|
13404
13523
|
sharedEvents: sharedEvents
|
|
13405
13524
|
}, "parent");
|
|
@@ -13408,10 +13527,10 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13408
13527
|
children: children
|
|
13409
13528
|
});
|
|
13410
13529
|
|
|
13411
|
-
var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({},
|
|
13530
|
+
var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_10__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
|
|
13412
13531
|
|
|
13413
|
-
this.globalEvents =
|
|
13414
|
-
var localEvents =
|
|
13532
|
+
this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEvents(containerEvents);
|
|
13533
|
+
var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.omitGlobalEvents(containerEvents);
|
|
13415
13534
|
return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, parentProps, {
|
|
13416
13535
|
events: localEvents
|
|
13417
13536
|
})) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, localEvents, children);
|
|
@@ -13434,37 +13553,33 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13434
13553
|
return VictorySharedEvents;
|
|
13435
13554
|
}((react__WEBPACK_IMPORTED_MODULE_7___default().Component));
|
|
13436
13555
|
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
|
|
13443
|
-
|
|
13444
|
-
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]),
|
|
13449
|
-
target: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)
|
|
13556
|
+
VictorySharedEvents.displayName = "VictorySharedEvents";
|
|
13557
|
+
VictorySharedEvents.role = "shared-event-wrapper";
|
|
13558
|
+
VictorySharedEvents.propTypes = {
|
|
13559
|
+
children: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)]),
|
|
13560
|
+
container: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node),
|
|
13561
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
|
|
13562
|
+
events: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({
|
|
13563
|
+
childName: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)]),
|
|
13564
|
+
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object),
|
|
13565
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
|
|
13566
|
+
target: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)
|
|
13450
13567
|
})),
|
|
13451
|
-
externalEventMutations:
|
|
13452
|
-
callback: (
|
|
13453
|
-
childName:
|
|
13454
|
-
eventKey:
|
|
13455
|
-
mutation: (
|
|
13456
|
-
target:
|
|
13568
|
+
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({
|
|
13569
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
|
|
13570
|
+
childName: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)]),
|
|
13571
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
|
|
13572
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
|
|
13573
|
+
target: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)])
|
|
13457
13574
|
})),
|
|
13458
|
-
groupComponent: (
|
|
13459
|
-
}
|
|
13460
|
-
|
|
13461
|
-
_defineProperty(VictorySharedEvents, "defaultProps", {
|
|
13575
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)
|
|
13576
|
+
};
|
|
13577
|
+
VictorySharedEvents.defaultProps = {
|
|
13462
13578
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().createElement("g", null)
|
|
13463
|
-
}
|
|
13464
|
-
|
|
13465
|
-
_defineProperty(VictorySharedEvents, "contextType", victory_core__WEBPACK_IMPORTED_MODULE_14__["default"]);
|
|
13466
|
-
|
|
13579
|
+
};
|
|
13580
|
+
VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_14__["default"];
|
|
13467
13581
|
|
|
13582
|
+
//# sourceMappingURL=victory-shared-events.js.map
|
|
13468
13583
|
|
|
13469
13584
|
/***/ }),
|
|
13470
13585
|
|
|
@@ -13555,9 +13670,9 @@ function ascending(a, b) {
|
|
|
13555
13670
|
"use strict";
|
|
13556
13671
|
__webpack_require__.r(__webpack_exports__);
|
|
13557
13672
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13558
|
-
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
13559
|
-
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
13560
13673
|
/* harmony export */ "bisectCenter": () => (/* binding */ bisectCenter),
|
|
13674
|
+
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
13675
|
+
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
13561
13676
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13562
13677
|
/* harmony export */ });
|
|
13563
13678
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
@@ -13943,9 +14058,9 @@ function range(start, stop, step) {
|
|
|
13943
14058
|
"use strict";
|
|
13944
14059
|
__webpack_require__.r(__webpack_exports__);
|
|
13945
14060
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13946
|
-
/* harmony export */ "
|
|
14061
|
+
/* harmony export */ "ascendingDefined": () => (/* binding */ ascendingDefined),
|
|
13947
14062
|
/* harmony export */ "compareDefined": () => (/* binding */ compareDefined),
|
|
13948
|
-
/* harmony export */ "
|
|
14063
|
+
/* harmony export */ "default": () => (/* binding */ sort)
|
|
13949
14064
|
/* harmony export */ });
|
|
13950
14065
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
13951
14066
|
/* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permute.js */ "../../victory-vendor/node_modules/d3-array/src/permute.js");
|
|
@@ -14073,14 +14188,14 @@ function tickStep(start, stop, count) {
|
|
|
14073
14188
|
__webpack_require__.r(__webpack_exports__);
|
|
14074
14189
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14075
14190
|
/* harmony export */ "Color": () => (/* binding */ Color),
|
|
14076
|
-
/* harmony export */ "
|
|
14191
|
+
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
14077
14192
|
/* harmony export */ "brighter": () => (/* binding */ brighter),
|
|
14193
|
+
/* harmony export */ "darker": () => (/* binding */ darker),
|
|
14078
14194
|
/* harmony export */ "default": () => (/* binding */ color),
|
|
14079
|
-
/* harmony export */ "
|
|
14080
|
-
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
14081
|
-
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
14195
|
+
/* harmony export */ "hsl": () => (/* binding */ hsl),
|
|
14082
14196
|
/* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
|
|
14083
|
-
/* harmony export */ "
|
|
14197
|
+
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
14198
|
+
/* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert)
|
|
14084
14199
|
/* harmony export */ });
|
|
14085
14200
|
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-vendor/node_modules/d3-color/src/define.js");
|
|
14086
14201
|
|
|
@@ -14518,9 +14633,9 @@ function extend(parent, definition) {
|
|
|
14518
14633
|
"use strict";
|
|
14519
14634
|
__webpack_require__.r(__webpack_exports__);
|
|
14520
14635
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14636
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
14521
14637
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
14522
|
-
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
14523
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
14638
|
+
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
14524
14639
|
/* harmony export */ });
|
|
14525
14640
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-format/src/locale.js");
|
|
14526
14641
|
|
|
@@ -14666,8 +14781,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14666
14781
|
"use strict";
|
|
14667
14782
|
__webpack_require__.r(__webpack_exports__);
|
|
14668
14783
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14669
|
-
/* harmony export */ "
|
|
14670
|
-
/* harmony export */ "
|
|
14784
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
14785
|
+
/* harmony export */ "prefixExponent": () => (/* binding */ prefixExponent)
|
|
14671
14786
|
/* harmony export */ });
|
|
14672
14787
|
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../victory-vendor/node_modules/d3-format/src/formatDecimal.js");
|
|
14673
14788
|
|
|
@@ -14726,8 +14841,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14726
14841
|
"use strict";
|
|
14727
14842
|
__webpack_require__.r(__webpack_exports__);
|
|
14728
14843
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14729
|
-
/* harmony export */ "
|
|
14730
|
-
/* harmony export */ "
|
|
14844
|
+
/* harmony export */ "FormatSpecifier": () => (/* binding */ FormatSpecifier),
|
|
14845
|
+
/* harmony export */ "default": () => (/* binding */ formatSpecifier)
|
|
14731
14846
|
/* harmony export */ });
|
|
14732
14847
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
14733
14848
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
@@ -15209,9 +15324,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15209
15324
|
"use strict";
|
|
15210
15325
|
__webpack_require__.r(__webpack_exports__);
|
|
15211
15326
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15212
|
-
/* harmony export */ "
|
|
15327
|
+
/* harmony export */ "default": () => (/* binding */ nogamma),
|
|
15213
15328
|
/* harmony export */ "gamma": () => (/* binding */ gamma),
|
|
15214
|
-
/* harmony export */ "
|
|
15329
|
+
/* harmony export */ "hue": () => (/* binding */ hue)
|
|
15215
15330
|
/* harmony export */ });
|
|
15216
15331
|
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-vendor/node_modules/d3-interpolate/src/constant.js");
|
|
15217
15332
|
|
|
@@ -15771,10 +15886,10 @@ function constants(x) {
|
|
|
15771
15886
|
"use strict";
|
|
15772
15887
|
__webpack_require__.r(__webpack_exports__);
|
|
15773
15888
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15774
|
-
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
15775
15889
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
15776
|
-
/* harmony export */ "
|
|
15777
|
-
/* harmony export */ "
|
|
15890
|
+
/* harmony export */ "default": () => (/* binding */ continuous),
|
|
15891
|
+
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
15892
|
+
/* harmony export */ "transformer": () => (/* binding */ transformer)
|
|
15778
15893
|
/* harmony export */ });
|
|
15779
15894
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisect.js");
|
|
15780
15895
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -15922,9 +16037,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15922
16037
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15923
16038
|
/* harmony export */ "default": () => (/* binding */ diverging),
|
|
15924
16039
|
/* harmony export */ "divergingLog": () => (/* binding */ divergingLog),
|
|
15925
|
-
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog),
|
|
15926
16040
|
/* harmony export */ "divergingPow": () => (/* binding */ divergingPow),
|
|
15927
|
-
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt)
|
|
16041
|
+
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt),
|
|
16042
|
+
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog)
|
|
15928
16043
|
/* harmony export */ });
|
|
15929
16044
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/piecewise.js");
|
|
15930
16045
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -16099,32 +16214,32 @@ function identity(domain) {
|
|
|
16099
16214
|
__webpack_require__.r(__webpack_exports__);
|
|
16100
16215
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16101
16216
|
/* harmony export */ "scaleBand": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
16102
|
-
/* harmony export */ "
|
|
16217
|
+
/* harmony export */ "scaleDiverging": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
16218
|
+
/* harmony export */ "scaleDivergingLog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingLog),
|
|
16219
|
+
/* harmony export */ "scaleDivergingPow": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingPow),
|
|
16220
|
+
/* harmony export */ "scaleDivergingSqrt": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSqrt),
|
|
16221
|
+
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
16103
16222
|
/* harmony export */ "scaleIdentity": () => (/* reexport safe */ _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
16223
|
+
/* harmony export */ "scaleImplicit": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__.implicit),
|
|
16104
16224
|
/* harmony export */ "scaleLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
16105
16225
|
/* harmony export */ "scaleLog": () => (/* reexport safe */ _log_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
16106
|
-
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
16107
16226
|
/* harmony export */ "scaleOrdinal": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
16108
|
-
/* harmony export */ "
|
|
16227
|
+
/* harmony export */ "scalePoint": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__.point),
|
|
16109
16228
|
/* harmony export */ "scalePow": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
16110
|
-
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
16111
|
-
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
16112
16229
|
/* harmony export */ "scaleQuantile": () => (/* reexport safe */ _quantile_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
16113
16230
|
/* harmony export */ "scaleQuantize": () => (/* reexport safe */ _quantize_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
16114
|
-
/* harmony export */ "
|
|
16115
|
-
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
16116
|
-
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
16231
|
+
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
16117
16232
|
/* harmony export */ "scaleSequential": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
16118
16233
|
/* harmony export */ "scaleSequentialLog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialLog),
|
|
16119
16234
|
/* harmony export */ "scaleSequentialPow": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialPow),
|
|
16235
|
+
/* harmony export */ "scaleSequentialQuantile": () => (/* reexport safe */ _sequentialQuantile_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
16120
16236
|
/* harmony export */ "scaleSequentialSqrt": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSqrt),
|
|
16121
16237
|
/* harmony export */ "scaleSequentialSymlog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSymlog),
|
|
16122
|
-
/* harmony export */ "
|
|
16123
|
-
/* harmony export */ "
|
|
16124
|
-
/* harmony export */ "
|
|
16125
|
-
/* harmony export */ "
|
|
16126
|
-
/* harmony export */ "
|
|
16127
|
-
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
16238
|
+
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
16239
|
+
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
16240
|
+
/* harmony export */ "scaleThreshold": () => (/* reexport safe */ _threshold_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
16241
|
+
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
16242
|
+
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
16128
16243
|
/* harmony export */ "tickFormat": () => (/* reexport safe */ _tickFormat_js__WEBPACK_IMPORTED_MODULE_16__["default"])
|
|
16129
16244
|
/* harmony export */ });
|
|
16130
16245
|
/* harmony import */ var _band_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band.js */ "../../victory-vendor/node_modules/d3-scale/src/band.js");
|
|
@@ -16190,8 +16305,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16190
16305
|
"use strict";
|
|
16191
16306
|
__webpack_require__.r(__webpack_exports__);
|
|
16192
16307
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16193
|
-
/* harmony export */ "
|
|
16194
|
-
/* harmony export */ "
|
|
16308
|
+
/* harmony export */ "initInterpolator": () => (/* binding */ initInterpolator),
|
|
16309
|
+
/* harmony export */ "initRange": () => (/* binding */ initRange)
|
|
16195
16310
|
/* harmony export */ });
|
|
16196
16311
|
function initRange(domain, range) {
|
|
16197
16312
|
switch (arguments.length) {
|
|
@@ -16232,8 +16347,8 @@ function initInterpolator(domain, interpolator) {
|
|
|
16232
16347
|
"use strict";
|
|
16233
16348
|
__webpack_require__.r(__webpack_exports__);
|
|
16234
16349
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16235
|
-
/* harmony export */ "
|
|
16236
|
-
/* harmony export */ "
|
|
16350
|
+
/* harmony export */ "default": () => (/* binding */ linear),
|
|
16351
|
+
/* harmony export */ "linearish": () => (/* binding */ linearish)
|
|
16237
16352
|
/* harmony export */ });
|
|
16238
16353
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
16239
16354
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -16322,8 +16437,8 @@ function linear() {
|
|
|
16322
16437
|
"use strict";
|
|
16323
16438
|
__webpack_require__.r(__webpack_exports__);
|
|
16324
16439
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16325
|
-
/* harmony export */ "
|
|
16326
|
-
/* harmony export */ "
|
|
16440
|
+
/* harmony export */ "default": () => (/* binding */ log),
|
|
16441
|
+
/* harmony export */ "loggish": () => (/* binding */ loggish)
|
|
16327
16442
|
/* harmony export */ });
|
|
16328
16443
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
16329
16444
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../victory-vendor/node_modules/d3-format/src/formatSpecifier.js");
|
|
@@ -16535,8 +16650,8 @@ function number(x) {
|
|
|
16535
16650
|
"use strict";
|
|
16536
16651
|
__webpack_require__.r(__webpack_exports__);
|
|
16537
16652
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16538
|
-
/* harmony export */ "
|
|
16539
|
-
/* harmony export */ "
|
|
16653
|
+
/* harmony export */ "default": () => (/* binding */ ordinal),
|
|
16654
|
+
/* harmony export */ "implicit": () => (/* binding */ implicit)
|
|
16540
16655
|
/* harmony export */ });
|
|
16541
16656
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/internmap/src/index.js");
|
|
16542
16657
|
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init.js */ "../../victory-vendor/node_modules/d3-scale/src/init.js");
|
|
@@ -16599,8 +16714,8 @@ function ordinal() {
|
|
|
16599
16714
|
"use strict";
|
|
16600
16715
|
__webpack_require__.r(__webpack_exports__);
|
|
16601
16716
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16602
|
-
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
16603
16717
|
/* harmony export */ "default": () => (/* binding */ pow),
|
|
16718
|
+
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
16604
16719
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt)
|
|
16605
16720
|
/* harmony export */ });
|
|
16606
16721
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
@@ -16904,9 +17019,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16904
17019
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
16905
17020
|
/* harmony export */ "default": () => (/* binding */ sequential),
|
|
16906
17021
|
/* harmony export */ "sequentialLog": () => (/* binding */ sequentialLog),
|
|
16907
|
-
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog),
|
|
16908
17022
|
/* harmony export */ "sequentialPow": () => (/* binding */ sequentialPow),
|
|
16909
|
-
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt)
|
|
17023
|
+
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt),
|
|
17024
|
+
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog)
|
|
16910
17025
|
/* harmony export */ });
|
|
16911
17026
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
16912
17027
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/round.js");
|
|
@@ -17094,8 +17209,8 @@ function sequentialQuantile() {
|
|
|
17094
17209
|
"use strict";
|
|
17095
17210
|
__webpack_require__.r(__webpack_exports__);
|
|
17096
17211
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17097
|
-
/* harmony export */ "
|
|
17098
|
-
/* harmony export */ "
|
|
17212
|
+
/* harmony export */ "default": () => (/* binding */ symlog),
|
|
17213
|
+
/* harmony export */ "symlogish": () => (/* binding */ symlogish)
|
|
17099
17214
|
/* harmony export */ });
|
|
17100
17215
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
17101
17216
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -17387,11 +17502,11 @@ function utcTime() {
|
|
|
17387
17502
|
"use strict";
|
|
17388
17503
|
__webpack_require__.r(__webpack_exports__);
|
|
17389
17504
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17505
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
17390
17506
|
/* harmony export */ "timeFormat": () => (/* binding */ timeFormat),
|
|
17391
17507
|
/* harmony export */ "timeParse": () => (/* binding */ timeParse),
|
|
17392
17508
|
/* harmony export */ "utcFormat": () => (/* binding */ utcFormat),
|
|
17393
|
-
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
17394
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
17509
|
+
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
17395
17510
|
/* harmony export */ });
|
|
17396
17511
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-time-format/src/locale.js");
|
|
17397
17512
|
|
|
@@ -18141,8 +18256,8 @@ function formatUnixTimestampSeconds(d) {
|
|
|
18141
18256
|
"use strict";
|
|
18142
18257
|
__webpack_require__.r(__webpack_exports__);
|
|
18143
18258
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18144
|
-
/* harmony export */ "
|
|
18145
|
-
/* harmony export */ "
|
|
18259
|
+
/* harmony export */ "days": () => (/* binding */ days),
|
|
18260
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18146
18261
|
/* harmony export */ });
|
|
18147
18262
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
18148
18263
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -18171,12 +18286,12 @@ var days = day.range;
|
|
|
18171
18286
|
"use strict";
|
|
18172
18287
|
__webpack_require__.r(__webpack_exports__);
|
|
18173
18288
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18174
|
-
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
18175
|
-
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
18176
|
-
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
18177
18289
|
/* harmony export */ "durationDay": () => (/* binding */ durationDay),
|
|
18178
|
-
/* harmony export */ "
|
|
18290
|
+
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
18291
|
+
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
18179
18292
|
/* harmony export */ "durationMonth": () => (/* binding */ durationMonth),
|
|
18293
|
+
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
18294
|
+
/* harmony export */ "durationWeek": () => (/* binding */ durationWeek),
|
|
18180
18295
|
/* harmony export */ "durationYear": () => (/* binding */ durationYear)
|
|
18181
18296
|
/* harmony export */ });
|
|
18182
18297
|
const durationSecond = 1000;
|
|
@@ -18458,10 +18573,10 @@ var seconds = second.range;
|
|
|
18458
18573
|
"use strict";
|
|
18459
18574
|
__webpack_require__.r(__webpack_exports__);
|
|
18460
18575
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18461
|
-
/* harmony export */ "
|
|
18462
|
-
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
18576
|
+
/* harmony export */ "timeTickInterval": () => (/* binding */ timeTickInterval),
|
|
18463
18577
|
/* harmony export */ "timeTicks": () => (/* binding */ timeTicks),
|
|
18464
|
-
/* harmony export */ "
|
|
18578
|
+
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
18579
|
+
/* harmony export */ "utcTicks": () => (/* binding */ utcTicks)
|
|
18465
18580
|
/* harmony export */ });
|
|
18466
18581
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisector.js");
|
|
18467
18582
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
@@ -18688,20 +18803,20 @@ var utcMonths = utcMonth.range;
|
|
|
18688
18803
|
"use strict";
|
|
18689
18804
|
__webpack_require__.r(__webpack_exports__);
|
|
18690
18805
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18691
|
-
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
18692
|
-
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
18693
|
-
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
18694
|
-
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
18695
|
-
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
18696
18806
|
/* harmony export */ "utcFriday": () => (/* binding */ utcFriday),
|
|
18807
|
+
/* harmony export */ "utcFridays": () => (/* binding */ utcFridays),
|
|
18808
|
+
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
18809
|
+
/* harmony export */ "utcMondays": () => (/* binding */ utcMondays),
|
|
18697
18810
|
/* harmony export */ "utcSaturday": () => (/* binding */ utcSaturday),
|
|
18811
|
+
/* harmony export */ "utcSaturdays": () => (/* binding */ utcSaturdays),
|
|
18812
|
+
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
18698
18813
|
/* harmony export */ "utcSundays": () => (/* binding */ utcSundays),
|
|
18699
|
-
/* harmony export */ "
|
|
18700
|
-
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
18701
|
-
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays),
|
|
18814
|
+
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
18702
18815
|
/* harmony export */ "utcThursdays": () => (/* binding */ utcThursdays),
|
|
18703
|
-
/* harmony export */ "
|
|
18704
|
-
/* harmony export */ "
|
|
18816
|
+
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
18817
|
+
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
18818
|
+
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
18819
|
+
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays)
|
|
18705
18820
|
/* harmony export */ });
|
|
18706
18821
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
18707
18822
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -18790,20 +18905,20 @@ var utcYears = utcYear.range;
|
|
|
18790
18905
|
"use strict";
|
|
18791
18906
|
__webpack_require__.r(__webpack_exports__);
|
|
18792
18907
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18793
|
-
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
18794
|
-
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
18795
|
-
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
18796
|
-
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
18797
|
-
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
18798
18908
|
/* harmony export */ "friday": () => (/* binding */ friday),
|
|
18909
|
+
/* harmony export */ "fridays": () => (/* binding */ fridays),
|
|
18910
|
+
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
18911
|
+
/* harmony export */ "mondays": () => (/* binding */ mondays),
|
|
18799
18912
|
/* harmony export */ "saturday": () => (/* binding */ saturday),
|
|
18913
|
+
/* harmony export */ "saturdays": () => (/* binding */ saturdays),
|
|
18914
|
+
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
18800
18915
|
/* harmony export */ "sundays": () => (/* binding */ sundays),
|
|
18801
|
-
/* harmony export */ "
|
|
18802
|
-
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
18803
|
-
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays),
|
|
18916
|
+
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
18804
18917
|
/* harmony export */ "thursdays": () => (/* binding */ thursdays),
|
|
18805
|
-
/* harmony export */ "
|
|
18806
|
-
/* harmony export */ "
|
|
18918
|
+
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
18919
|
+
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
18920
|
+
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
18921
|
+
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays)
|
|
18807
18922
|
/* harmony export */ });
|
|
18808
18923
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
18809
18924
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -18892,8 +19007,8 @@ var years = year.range;
|
|
|
18892
19007
|
"use strict";
|
|
18893
19008
|
__webpack_require__.r(__webpack_exports__);
|
|
18894
19009
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18895
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
18896
19010
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
19011
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
18897
19012
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
18898
19013
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
18899
19014
|
/* harmony export */ });
|