victory-stack 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-stack.js +716 -601
- package/dist/victory-stack.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-stack.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-stack.js +2 -1
- package/package.json +7 -7
- package/src/helper-methods.js +15 -16
- package/src/index.d.ts +1 -1
- package/src/victory-stack.js +21 -21
package/dist/victory-stack.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryStack"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryStack"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -21,9 +21,9 @@ 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 */ "useMemoizedProps": () => (/* binding */ useMemoizedProps),
|
|
25
24
|
/* harmony export */ "getChildProps": () => (/* binding */ getChildProps),
|
|
26
|
-
/* harmony export */ "getChildren": () => (/* binding */ getChildren)
|
|
25
|
+
/* harmony export */ "getChildren": () => (/* binding */ getChildren),
|
|
26
|
+
/* harmony export */ "useMemoizedProps": () => (/* binding */ useMemoizedProps)
|
|
27
27
|
/* harmony export */ });
|
|
28
28
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
|
|
29
29
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -346,23 +346,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
346
346
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
347
347
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
348
348
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
|
|
349
|
-
/* harmony import */ var
|
|
350
|
-
/* harmony import */ var
|
|
351
|
-
/* harmony import */ var
|
|
352
|
-
/* harmony import */ var
|
|
353
|
-
/* harmony import */ var
|
|
354
|
-
/* harmony import */ var
|
|
355
|
-
/* harmony import */ var
|
|
356
|
-
/* harmony import */ var
|
|
357
|
-
/* harmony import */ var
|
|
358
|
-
/* harmony import */ var
|
|
349
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
350
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_13__);
|
|
351
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
352
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
353
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/hooks/use-animation-state.js");
|
|
354
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
355
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
356
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/wrapper.js");
|
|
357
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/hooks/use-previous-props.js");
|
|
358
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
359
359
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
360
360
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
361
361
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
|
|
362
|
-
/* harmony import */ var
|
|
363
|
-
/* harmony import */ var
|
|
364
|
-
/* harmony import */ var
|
|
365
|
-
/* harmony import */ var
|
|
362
|
+
/* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/victory-shared-events.js");
|
|
363
|
+
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.js");
|
|
364
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
365
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
366
366
|
|
|
367
367
|
|
|
368
368
|
|
|
@@ -389,13 +389,13 @@ var VictoryStack = function (initialProps) {
|
|
|
389
389
|
// eslint-disable-next-line no-use-before-define
|
|
390
390
|
var role = VictoryStackMemo.role;
|
|
391
391
|
|
|
392
|
-
var _Hooks$useAnimationSt =
|
|
392
|
+
var _Hooks$useAnimationSt = victory_core__WEBPACK_IMPORTED_MODULE_5__.useAnimationState(),
|
|
393
393
|
setAnimationState = _Hooks$useAnimationSt.setAnimationState,
|
|
394
394
|
getAnimationProps = _Hooks$useAnimationSt.getAnimationProps,
|
|
395
395
|
getProps = _Hooks$useAnimationSt.getProps;
|
|
396
396
|
|
|
397
397
|
var props = getProps(initialProps);
|
|
398
|
-
var modifiedProps =
|
|
398
|
+
var modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_6__.modifyProps(props, fallbackProps, role);
|
|
399
399
|
var eventKey = modifiedProps.eventKey,
|
|
400
400
|
containerComponent = modifiedProps.containerComponent,
|
|
401
401
|
standalone = modifiedProps.standalone,
|
|
@@ -407,20 +407,20 @@ var VictoryStack = function (initialProps) {
|
|
|
407
407
|
polar = modifiedProps.polar,
|
|
408
408
|
horizontal = modifiedProps.horizontal,
|
|
409
409
|
name = modifiedProps.name;
|
|
410
|
-
var childComponents =
|
|
411
|
-
var calculatedProps = (0,
|
|
410
|
+
var childComponents = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(modifiedProps.children);
|
|
411
|
+
var calculatedProps = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.useMemoizedProps)(modifiedProps);
|
|
412
412
|
var domain = calculatedProps.domain,
|
|
413
413
|
scale = calculatedProps.scale,
|
|
414
414
|
style = calculatedProps.style,
|
|
415
415
|
origin = calculatedProps.origin;
|
|
416
|
-
var newChildren =
|
|
417
|
-
var children = (0,
|
|
416
|
+
var newChildren = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
417
|
+
var children = (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getChildren)(props, childComponents, calculatedProps);
|
|
418
418
|
var orderedChildren = children.map(function (child, index) {
|
|
419
419
|
var childProps = lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
420
420
|
animate: getAnimationProps(props, child, index, "victory-stack")
|
|
421
421
|
}, child.props);
|
|
422
422
|
|
|
423
|
-
return /*#__PURE__*/
|
|
423
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, childProps);
|
|
424
424
|
});
|
|
425
425
|
/*
|
|
426
426
|
reverse render order for children of `VictoryStack` so that higher children in the stack
|
|
@@ -430,7 +430,7 @@ var VictoryStack = function (initialProps) {
|
|
|
430
430
|
|
|
431
431
|
return orderedChildren.reverse();
|
|
432
432
|
}, [props, childComponents, calculatedProps, getAnimationProps]);
|
|
433
|
-
var containerProps =
|
|
433
|
+
var containerProps = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
434
434
|
if (standalone) {
|
|
435
435
|
return {
|
|
436
436
|
domain: domain,
|
|
@@ -449,23 +449,23 @@ var VictoryStack = function (initialProps) {
|
|
|
449
449
|
|
|
450
450
|
return {};
|
|
451
451
|
}, [standalone, domain, scale, width, height, theme, style, horizontal, polar, origin, name]);
|
|
452
|
-
var userProps =
|
|
453
|
-
return
|
|
452
|
+
var userProps = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
453
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(initialProps);
|
|
454
454
|
}, [initialProps]);
|
|
455
|
-
var container =
|
|
455
|
+
var container = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
456
456
|
if (standalone) {
|
|
457
457
|
var defaultContainerProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, containerComponent.props, containerProps, userProps);
|
|
458
458
|
|
|
459
|
-
return /*#__PURE__*/
|
|
459
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(containerComponent, defaultContainerProps);
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
return /*#__PURE__*/
|
|
462
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(groupComponent, userProps);
|
|
463
463
|
}, [groupComponent, standalone, containerComponent, containerProps, userProps]);
|
|
464
|
-
var events =
|
|
465
|
-
return
|
|
464
|
+
var events = react__WEBPACK_IMPORTED_MODULE_3___default().useMemo(function () {
|
|
465
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_9__.getAllEvents(props);
|
|
466
466
|
}, [props]);
|
|
467
|
-
var previousProps =
|
|
468
|
-
|
|
467
|
+
var previousProps = victory_core__WEBPACK_IMPORTED_MODULE_10__.usePreviousProps(initialProps);
|
|
468
|
+
react__WEBPACK_IMPORTED_MODULE_3___default().useEffect(function () {
|
|
469
469
|
// This is called before dismount to keep state in sync
|
|
470
470
|
return function () {
|
|
471
471
|
if (initialProps.animate) {
|
|
@@ -475,7 +475,7 @@ var VictoryStack = function (initialProps) {
|
|
|
475
475
|
}, [setAnimationState, previousProps, initialProps]);
|
|
476
476
|
|
|
477
477
|
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
|
|
478
|
-
return /*#__PURE__*/
|
|
478
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_shared_events__WEBPACK_IMPORTED_MODULE_11__["default"], {
|
|
479
479
|
container: container,
|
|
480
480
|
eventKey: eventKey,
|
|
481
481
|
events: events,
|
|
@@ -483,40 +483,40 @@ var VictoryStack = function (initialProps) {
|
|
|
483
483
|
}, newChildren);
|
|
484
484
|
}
|
|
485
485
|
|
|
486
|
-
return /*#__PURE__*/
|
|
486
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, container.props, newChildren);
|
|
487
487
|
};
|
|
488
488
|
|
|
489
|
-
VictoryStack.propTypes = _objectSpread(_objectSpread({},
|
|
490
|
-
bins:
|
|
491
|
-
categories:
|
|
492
|
-
x:
|
|
493
|
-
y:
|
|
489
|
+
VictoryStack.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.CommonProps.baseProps), {}, {
|
|
490
|
+
bins: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_14__.nonNegative, prop_types__WEBPACK_IMPORTED_MODULE_13___default().instanceOf(Date)])), victory_core__WEBPACK_IMPORTED_MODULE_14__.nonNegative]),
|
|
491
|
+
categories: 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().shape({
|
|
492
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)),
|
|
493
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().string))
|
|
494
494
|
})]),
|
|
495
|
-
children:
|
|
496
|
-
colorScale:
|
|
497
|
-
fillInMissingData: (
|
|
498
|
-
horizontal: (
|
|
499
|
-
labelComponent: (
|
|
500
|
-
labels:
|
|
501
|
-
style:
|
|
502
|
-
parent: (
|
|
503
|
-
data: (
|
|
504
|
-
labels: (
|
|
495
|
+
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)]),
|
|
496
|
+
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"])]),
|
|
497
|
+
fillInMissingData: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
498
|
+
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().bool),
|
|
499
|
+
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().element),
|
|
500
|
+
labels: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().array)]),
|
|
501
|
+
style: prop_types__WEBPACK_IMPORTED_MODULE_13___default().shape({
|
|
502
|
+
parent: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object),
|
|
503
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object),
|
|
504
|
+
labels: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().object)
|
|
505
505
|
}),
|
|
506
|
-
xOffset: (
|
|
506
|
+
xOffset: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number)
|
|
507
507
|
});
|
|
508
508
|
VictoryStack.defaultProps = {
|
|
509
|
-
containerComponent: /*#__PURE__*/
|
|
510
|
-
groupComponent: /*#__PURE__*/
|
|
509
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_15__.VictoryContainer, null),
|
|
510
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
511
511
|
standalone: true,
|
|
512
|
-
theme: victory_core__WEBPACK_IMPORTED_MODULE_16__
|
|
512
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_16__.VictoryTheme.grayscale,
|
|
513
513
|
fillInMissingData: true
|
|
514
514
|
};
|
|
515
|
-
var VictoryStackMemo = /*#__PURE__*/
|
|
515
|
+
var VictoryStackMemo = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().memo(VictoryStack, (react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()));
|
|
516
516
|
VictoryStackMemo.displayName = "VictoryStack";
|
|
517
517
|
VictoryStackMemo.role = "stack";
|
|
518
518
|
VictoryStackMemo.expectedComponents = ["groupComponent", "containerComponent", "labelComponent"];
|
|
519
|
-
VictoryStackMemo.getChildren =
|
|
519
|
+
VictoryStackMemo.getChildren = _helper_methods__WEBPACK_IMPORTED_MODULE_7__.getChildren;
|
|
520
520
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VictoryStackMemo);
|
|
521
521
|
|
|
522
522
|
/***/ }),
|
|
@@ -6415,7 +6415,7 @@ var printWarning = function() {};
|
|
|
6415
6415
|
if (true) {
|
|
6416
6416
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6417
6417
|
var loggedTypeFailures = {};
|
|
6418
|
-
var has =
|
|
6418
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6419
6419
|
|
|
6420
6420
|
printWarning = function(text) {
|
|
6421
6421
|
var message = 'Warning: ' + text;
|
|
@@ -6427,7 +6427,7 @@ if (true) {
|
|
|
6427
6427
|
// This error was thrown as a convenience so that you can use this stack
|
|
6428
6428
|
// to find the callsite that caused this warning to fire.
|
|
6429
6429
|
throw new Error(message);
|
|
6430
|
-
} catch (x) {}
|
|
6430
|
+
} catch (x) { /**/ }
|
|
6431
6431
|
};
|
|
6432
6432
|
}
|
|
6433
6433
|
|
|
@@ -6456,7 +6456,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
6456
6456
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6457
6457
|
var err = Error(
|
|
6458
6458
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6459
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
6459
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6460
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6460
6461
|
);
|
|
6461
6462
|
err.name = 'Invariant Violation';
|
|
6462
6463
|
throw err;
|
|
@@ -6523,13 +6524,13 @@ module.exports = checkPropTypes;
|
|
|
6523
6524
|
|
|
6524
6525
|
|
|
6525
6526
|
|
|
6526
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6527
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6527
6528
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6528
6529
|
|
|
6529
6530
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6531
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6530
6532
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
6531
6533
|
|
|
6532
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6533
6534
|
var printWarning = function() {};
|
|
6534
6535
|
|
|
6535
6536
|
if (true) {
|
|
@@ -6630,6 +6631,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6630
6631
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6631
6632
|
var ReactPropTypes = {
|
|
6632
6633
|
array: createPrimitiveTypeChecker('array'),
|
|
6634
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6633
6635
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
6634
6636
|
func: createPrimitiveTypeChecker('function'),
|
|
6635
6637
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -6675,8 +6677,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6675
6677
|
* is prohibitively expensive if they are created too often, such as what
|
|
6676
6678
|
* happens in oneOfType() for any type before the one that matched.
|
|
6677
6679
|
*/
|
|
6678
|
-
function PropTypeError(message) {
|
|
6680
|
+
function PropTypeError(message, data) {
|
|
6679
6681
|
this.message = message;
|
|
6682
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
6680
6683
|
this.stack = '';
|
|
6681
6684
|
}
|
|
6682
6685
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -6711,7 +6714,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6711
6714
|
) {
|
|
6712
6715
|
printWarning(
|
|
6713
6716
|
'You are manually calling a React.PropTypes validation ' +
|
|
6714
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
6717
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6715
6718
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6716
6719
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6717
6720
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -6750,7 +6753,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6750
6753
|
// 'of type `object`'.
|
|
6751
6754
|
var preciseType = getPreciseType(propValue);
|
|
6752
6755
|
|
|
6753
|
-
return new PropTypeError(
|
|
6756
|
+
return new PropTypeError(
|
|
6757
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6758
|
+
{expectedType: expectedType}
|
|
6759
|
+
);
|
|
6754
6760
|
}
|
|
6755
6761
|
return null;
|
|
6756
6762
|
}
|
|
@@ -6894,14 +6900,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6894
6900
|
}
|
|
6895
6901
|
|
|
6896
6902
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6903
|
+
var expectedTypes = [];
|
|
6897
6904
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6898
6905
|
var checker = arrayOfTypeCheckers[i];
|
|
6899
|
-
|
|
6906
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6907
|
+
if (checkerResult == null) {
|
|
6900
6908
|
return null;
|
|
6901
6909
|
}
|
|
6910
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6911
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
6912
|
+
}
|
|
6902
6913
|
}
|
|
6903
|
-
|
|
6904
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
6914
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6915
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6905
6916
|
}
|
|
6906
6917
|
return createChainableTypeChecker(validate);
|
|
6907
6918
|
}
|
|
@@ -6916,6 +6927,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6916
6927
|
return createChainableTypeChecker(validate);
|
|
6917
6928
|
}
|
|
6918
6929
|
|
|
6930
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6931
|
+
return new PropTypeError(
|
|
6932
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6933
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6934
|
+
);
|
|
6935
|
+
}
|
|
6936
|
+
|
|
6919
6937
|
function createShapeTypeChecker(shapeTypes) {
|
|
6920
6938
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6921
6939
|
var propValue = props[propName];
|
|
@@ -6925,8 +6943,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6925
6943
|
}
|
|
6926
6944
|
for (var key in shapeTypes) {
|
|
6927
6945
|
var checker = shapeTypes[key];
|
|
6928
|
-
if (
|
|
6929
|
-
|
|
6946
|
+
if (typeof checker !== 'function') {
|
|
6947
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6930
6948
|
}
|
|
6931
6949
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6932
6950
|
if (error) {
|
|
@@ -6945,16 +6963,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6945
6963
|
if (propType !== 'object') {
|
|
6946
6964
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6947
6965
|
}
|
|
6948
|
-
// We need to check all keys in case some are required but missing from
|
|
6949
|
-
// props.
|
|
6966
|
+
// We need to check all keys in case some are required but missing from props.
|
|
6950
6967
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6951
6968
|
for (var key in allKeys) {
|
|
6952
6969
|
var checker = shapeTypes[key];
|
|
6970
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6971
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6972
|
+
}
|
|
6953
6973
|
if (!checker) {
|
|
6954
6974
|
return new PropTypeError(
|
|
6955
6975
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6956
6976
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6957
|
-
'\nValid keys: ' +
|
|
6977
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6958
6978
|
);
|
|
6959
6979
|
}
|
|
6960
6980
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -7123,7 +7143,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7123
7143
|
*/
|
|
7124
7144
|
|
|
7125
7145
|
if (true) {
|
|
7126
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
7146
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
7127
7147
|
|
|
7128
7148
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7129
7149
|
// http://fb.me/prop-types-in-prod
|
|
@@ -7157,115 +7177,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
7157
7177
|
|
|
7158
7178
|
/***/ }),
|
|
7159
7179
|
|
|
7160
|
-
/***/ "../../../node_modules/
|
|
7161
|
-
|
|
7162
|
-
!*** ../../../node_modules/
|
|
7163
|
-
|
|
7180
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
7181
|
+
/*!***************************************************!*\
|
|
7182
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
7183
|
+
\***************************************************/
|
|
7164
7184
|
/***/ ((module) => {
|
|
7165
7185
|
|
|
7166
|
-
|
|
7167
|
-
|
|
7168
|
-
|
|
7169
|
-
var isArray = Array.isArray;
|
|
7170
|
-
var keyList = Object.keys;
|
|
7171
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
7172
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
7173
|
-
|
|
7174
|
-
function equal(a, b) {
|
|
7175
|
-
// fast-deep-equal index.js 2.0.1
|
|
7176
|
-
if (a === b) return true;
|
|
7177
|
-
|
|
7178
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7179
|
-
var arrA = isArray(a)
|
|
7180
|
-
, arrB = isArray(b)
|
|
7181
|
-
, i
|
|
7182
|
-
, length
|
|
7183
|
-
, key;
|
|
7184
|
-
|
|
7185
|
-
if (arrA && arrB) {
|
|
7186
|
-
length = a.length;
|
|
7187
|
-
if (length != b.length) return false;
|
|
7188
|
-
for (i = length; i-- !== 0;)
|
|
7189
|
-
if (!equal(a[i], b[i])) return false;
|
|
7190
|
-
return true;
|
|
7191
|
-
}
|
|
7192
|
-
|
|
7193
|
-
if (arrA != arrB) return false;
|
|
7194
|
-
|
|
7195
|
-
var dateA = a instanceof Date
|
|
7196
|
-
, dateB = b instanceof Date;
|
|
7197
|
-
if (dateA != dateB) return false;
|
|
7198
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
7199
|
-
|
|
7200
|
-
var regexpA = a instanceof RegExp
|
|
7201
|
-
, regexpB = b instanceof RegExp;
|
|
7202
|
-
if (regexpA != regexpB) return false;
|
|
7203
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
7204
|
-
|
|
7205
|
-
var keys = keyList(a);
|
|
7206
|
-
length = keys.length;
|
|
7207
|
-
|
|
7208
|
-
if (length !== keyList(b).length)
|
|
7209
|
-
return false;
|
|
7210
|
-
|
|
7211
|
-
for (i = length; i-- !== 0;)
|
|
7212
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
7213
|
-
// end fast-deep-equal
|
|
7214
|
-
|
|
7215
|
-
// start react-fast-compare
|
|
7216
|
-
// custom handling for DOM elements
|
|
7217
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
7218
|
-
return a === b;
|
|
7219
|
-
|
|
7220
|
-
// custom handling for React
|
|
7221
|
-
for (i = length; i-- !== 0;) {
|
|
7222
|
-
key = keys[i];
|
|
7223
|
-
if (key === '_owner' && a.$$typeof) {
|
|
7224
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
7225
|
-
// _owner contains circular references
|
|
7226
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
7227
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
7228
|
-
continue;
|
|
7229
|
-
} else {
|
|
7230
|
-
// all other properties should be traversed as usual
|
|
7231
|
-
if (!equal(a[key], b[key])) return false;
|
|
7232
|
-
}
|
|
7233
|
-
}
|
|
7234
|
-
// end react-fast-compare
|
|
7235
|
-
|
|
7236
|
-
// fast-deep-equal index.js 2.0.1
|
|
7237
|
-
return true;
|
|
7238
|
-
}
|
|
7239
|
-
|
|
7240
|
-
return a !== a && b !== b;
|
|
7241
|
-
}
|
|
7242
|
-
// end fast-deep-equal
|
|
7243
|
-
|
|
7244
|
-
module.exports = function exportedEqual(a, b) {
|
|
7245
|
-
try {
|
|
7246
|
-
return equal(a, b);
|
|
7247
|
-
} catch (error) {
|
|
7248
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
7249
|
-
// warn on circular references, don't crash
|
|
7250
|
-
// browsers give this different errors name and messages:
|
|
7251
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7252
|
-
// firefox: "InternalError", too much recursion"
|
|
7253
|
-
// edge: "Error", "Out of stack space"
|
|
7254
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
7255
|
-
return false;
|
|
7256
|
-
}
|
|
7257
|
-
// some other error. we should definitely know about these
|
|
7258
|
-
throw error;
|
|
7259
|
-
}
|
|
7260
|
-
};
|
|
7186
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
7261
7187
|
|
|
7262
7188
|
|
|
7263
7189
|
/***/ }),
|
|
7264
7190
|
|
|
7265
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
7266
|
-
|
|
7267
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
7268
|
-
|
|
7191
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
7192
|
+
/*!******************************************************************************************!*\
|
|
7193
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7194
|
+
\******************************************************************************************/
|
|
7269
7195
|
/***/ ((__unused_webpack_module, exports) => {
|
|
7270
7196
|
|
|
7271
7197
|
"use strict";
|
|
@@ -7454,18 +7380,162 @@ exports.typeOf = typeOf;
|
|
|
7454
7380
|
|
|
7455
7381
|
/***/ }),
|
|
7456
7382
|
|
|
7457
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
7458
|
-
|
|
7459
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
7460
|
-
|
|
7383
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
7384
|
+
/*!***********************************************************************!*\
|
|
7385
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
7386
|
+
\***********************************************************************/
|
|
7461
7387
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7462
7388
|
|
|
7463
7389
|
"use strict";
|
|
7464
7390
|
|
|
7465
7391
|
|
|
7466
7392
|
if (false) {} else {
|
|
7467
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
7393
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
7394
|
+
}
|
|
7395
|
+
|
|
7396
|
+
|
|
7397
|
+
/***/ }),
|
|
7398
|
+
|
|
7399
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
7400
|
+
/*!*********************************************************!*\
|
|
7401
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
7402
|
+
\*********************************************************/
|
|
7403
|
+
/***/ ((module) => {
|
|
7404
|
+
|
|
7405
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7406
|
+
|
|
7407
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
7408
|
+
var hasMap = typeof Map === 'function';
|
|
7409
|
+
var hasSet = typeof Set === 'function';
|
|
7410
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7411
|
+
|
|
7412
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7413
|
+
|
|
7414
|
+
function equal(a, b) {
|
|
7415
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7416
|
+
if (a === b) return true;
|
|
7417
|
+
|
|
7418
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7419
|
+
if (a.constructor !== b.constructor) return false;
|
|
7420
|
+
|
|
7421
|
+
var length, i, keys;
|
|
7422
|
+
if (Array.isArray(a)) {
|
|
7423
|
+
length = a.length;
|
|
7424
|
+
if (length != b.length) return false;
|
|
7425
|
+
for (i = length; i-- !== 0;)
|
|
7426
|
+
if (!equal(a[i], b[i])) return false;
|
|
7427
|
+
return true;
|
|
7428
|
+
}
|
|
7429
|
+
|
|
7430
|
+
// START: Modifications:
|
|
7431
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7432
|
+
// to co-exist with es5.
|
|
7433
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7434
|
+
// Basically, take:
|
|
7435
|
+
//
|
|
7436
|
+
// ```js
|
|
7437
|
+
// for (i of a.entries())
|
|
7438
|
+
// if (!b.has(i[0])) return false;
|
|
7439
|
+
// ```
|
|
7440
|
+
//
|
|
7441
|
+
// ... and convert to:
|
|
7442
|
+
//
|
|
7443
|
+
// ```js
|
|
7444
|
+
// it = a.entries();
|
|
7445
|
+
// while (!(i = it.next()).done)
|
|
7446
|
+
// if (!b.has(i.value[0])) return false;
|
|
7447
|
+
// ```
|
|
7448
|
+
//
|
|
7449
|
+
// **Note**: `i` access switches to `i.value`.
|
|
7450
|
+
var it;
|
|
7451
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7452
|
+
if (a.size !== b.size) return false;
|
|
7453
|
+
it = a.entries();
|
|
7454
|
+
while (!(i = it.next()).done)
|
|
7455
|
+
if (!b.has(i.value[0])) return false;
|
|
7456
|
+
it = a.entries();
|
|
7457
|
+
while (!(i = it.next()).done)
|
|
7458
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7459
|
+
return true;
|
|
7460
|
+
}
|
|
7461
|
+
|
|
7462
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7463
|
+
if (a.size !== b.size) return false;
|
|
7464
|
+
it = a.entries();
|
|
7465
|
+
while (!(i = it.next()).done)
|
|
7466
|
+
if (!b.has(i.value[0])) return false;
|
|
7467
|
+
return true;
|
|
7468
|
+
}
|
|
7469
|
+
// END: Modifications
|
|
7470
|
+
|
|
7471
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7472
|
+
length = a.length;
|
|
7473
|
+
if (length != b.length) return false;
|
|
7474
|
+
for (i = length; i-- !== 0;)
|
|
7475
|
+
if (a[i] !== b[i]) return false;
|
|
7476
|
+
return true;
|
|
7477
|
+
}
|
|
7478
|
+
|
|
7479
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7480
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7481
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7482
|
+
|
|
7483
|
+
keys = Object.keys(a);
|
|
7484
|
+
length = keys.length;
|
|
7485
|
+
if (length !== Object.keys(b).length) return false;
|
|
7486
|
+
|
|
7487
|
+
for (i = length; i-- !== 0;)
|
|
7488
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7489
|
+
// END: fast-deep-equal
|
|
7490
|
+
|
|
7491
|
+
// START: react-fast-compare
|
|
7492
|
+
// custom handling for DOM elements
|
|
7493
|
+
if (hasElementType && a instanceof Element) return false;
|
|
7494
|
+
|
|
7495
|
+
// custom handling for React/Preact
|
|
7496
|
+
for (i = length; i-- !== 0;) {
|
|
7497
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7498
|
+
// React-specific: avoid traversing React elements' _owner
|
|
7499
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7500
|
+
// __v = $_original / $_vnode
|
|
7501
|
+
// __o = $_owner
|
|
7502
|
+
// These properties contain circular references and are not needed when
|
|
7503
|
+
// comparing the actual elements (and not their owners)
|
|
7504
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7505
|
+
|
|
7506
|
+
continue;
|
|
7507
|
+
}
|
|
7508
|
+
|
|
7509
|
+
// all other properties should be traversed as usual
|
|
7510
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7511
|
+
}
|
|
7512
|
+
// END: react-fast-compare
|
|
7513
|
+
|
|
7514
|
+
// START: fast-deep-equal
|
|
7515
|
+
return true;
|
|
7516
|
+
}
|
|
7517
|
+
|
|
7518
|
+
return a !== a && b !== b;
|
|
7468
7519
|
}
|
|
7520
|
+
// end fast-deep-equal
|
|
7521
|
+
|
|
7522
|
+
module.exports = function isEqual(a, b) {
|
|
7523
|
+
try {
|
|
7524
|
+
return equal(a, b);
|
|
7525
|
+
} catch (error) {
|
|
7526
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7527
|
+
// warn on circular references, don't crash
|
|
7528
|
+
// browsers give this different errors name and messages:
|
|
7529
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7530
|
+
// firefox: "InternalError", too much recursion"
|
|
7531
|
+
// edge: "Error", "Out of stack space"
|
|
7532
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7533
|
+
return false;
|
|
7534
|
+
}
|
|
7535
|
+
// some other error. we should definitely know about these
|
|
7536
|
+
throw error;
|
|
7537
|
+
}
|
|
7538
|
+
};
|
|
7469
7539
|
|
|
7470
7540
|
|
|
7471
7541
|
/***/ }),
|
|
@@ -7479,7 +7549,7 @@ if (false) {} else {
|
|
|
7479
7549
|
"use strict";
|
|
7480
7550
|
__webpack_require__.r(__webpack_exports__);
|
|
7481
7551
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7482
|
-
/* harmony export */ "
|
|
7552
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
7483
7553
|
/* harmony export */ });
|
|
7484
7554
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7485
7555
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7493,26 +7563,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7493
7563
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
7494
7564
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
7495
7565
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
7496
|
-
/* harmony import */ var
|
|
7497
|
-
/* harmony import */ var
|
|
7566
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7567
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
7498
7568
|
/* 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");
|
|
7499
7569
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7500
|
-
/* harmony import */ var
|
|
7570
|
+
/* 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");
|
|
7501
7571
|
/* 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");
|
|
7502
|
-
/* harmony import */ var
|
|
7503
|
-
/* harmony import */ var
|
|
7572
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7573
|
+
/* 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");
|
|
7504
7574
|
|
|
7505
7575
|
|
|
7506
7576
|
|
|
7507
7577
|
|
|
7508
7578
|
|
|
7509
7579
|
|
|
7510
|
-
function _extends() { _extends = Object.assign
|
|
7580
|
+
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); }
|
|
7511
7581
|
|
|
7512
7582
|
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; }
|
|
7513
7583
|
|
|
7514
7584
|
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; }
|
|
7515
7585
|
|
|
7586
|
+
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; }
|
|
7587
|
+
|
|
7516
7588
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7517
7589
|
|
|
7518
7590
|
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); } }
|
|
@@ -7521,7 +7593,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7521
7593
|
|
|
7522
7594
|
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); }
|
|
7523
7595
|
|
|
7524
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7596
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7525
7597
|
|
|
7526
7598
|
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); }; }
|
|
7527
7599
|
|
|
@@ -7531,10 +7603,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7531
7603
|
|
|
7532
7604
|
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; } }
|
|
7533
7605
|
|
|
7534
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7535
|
-
|
|
7536
|
-
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; }
|
|
7537
|
-
|
|
7606
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7538
7607
|
|
|
7539
7608
|
|
|
7540
7609
|
|
|
@@ -7549,13 +7618,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7549
7618
|
|
|
7550
7619
|
var _super = _createSuper(VictoryContainer);
|
|
7551
7620
|
|
|
7621
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7622
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7552
7623
|
function VictoryContainer(props) {
|
|
7553
7624
|
var _this;
|
|
7554
7625
|
|
|
7555
7626
|
_classCallCheck(this, VictoryContainer);
|
|
7556
7627
|
|
|
7557
7628
|
_this = _super.call(this, props);
|
|
7558
|
-
_this.containerId =
|
|
7629
|
+
_this.containerId = void 0;
|
|
7630
|
+
_this.portalRef = void 0;
|
|
7631
|
+
_this.containerRef = void 0;
|
|
7632
|
+
_this.shouldHandleWheel = void 0;
|
|
7559
7633
|
|
|
7560
7634
|
_this.savePortalRef = function (portal) {
|
|
7561
7635
|
_this.portalRef = portal;
|
|
@@ -7574,18 +7648,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7574
7648
|
return _this.portalRef.portalDeregister(key);
|
|
7575
7649
|
};
|
|
7576
7650
|
|
|
7577
|
-
_this.saveContainerRef =
|
|
7651
|
+
_this.saveContainerRef = function (container) {
|
|
7652
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
7653
|
+
_this.props.containerRef(container);
|
|
7654
|
+
}
|
|
7655
|
+
|
|
7578
7656
|
_this.containerRef = container;
|
|
7579
7657
|
return container;
|
|
7580
7658
|
};
|
|
7581
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
7582
7659
|
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
};
|
|
7587
|
-
}
|
|
7660
|
+
_this.handleWheel = function (e) {
|
|
7661
|
+
return e.preventDefault();
|
|
7662
|
+
};
|
|
7588
7663
|
|
|
7664
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
7665
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
7589
7666
|
return _this;
|
|
7590
7667
|
}
|
|
7591
7668
|
|
|
@@ -7678,7 +7755,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7678
7755
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
7679
7756
|
style: portalSvgStyle
|
|
7680
7757
|
};
|
|
7681
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
7758
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
7682
7759
|
value: {
|
|
7683
7760
|
portalUpdate: this.portalUpdate,
|
|
7684
7761
|
portalRegister: this.portalRegister,
|
|
@@ -7713,8 +7790,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7713
7790
|
tabIndex = _this$props.tabIndex,
|
|
7714
7791
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
7715
7792
|
role = _this$props.role;
|
|
7716
|
-
var style = responsive ? this.props.style :
|
|
7717
|
-
var userProps =
|
|
7793
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
7794
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
7718
7795
|
|
|
7719
7796
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
7720
7797
|
width: width,
|
|
@@ -7733,53 +7810,47 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7733
7810
|
|
|
7734
7811
|
return VictoryContainer;
|
|
7735
7812
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
7736
|
-
|
|
7737
|
-
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
7748
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
7749
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
7813
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
7814
|
+
VictoryContainer.role = "container";
|
|
7815
|
+
VictoryContainer.propTypes = {
|
|
7816
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7817
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7818
|
+
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)]),
|
|
7819
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7820
|
+
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)]),
|
|
7821
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
7822
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7823
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7750
7824
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7751
|
-
name: (
|
|
7752
|
-
origin:
|
|
7825
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7826
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
7753
7827
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7754
7828
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7755
7829
|
}),
|
|
7756
|
-
ouiaId:
|
|
7757
|
-
ouiaSafe: (
|
|
7758
|
-
ouiaType: (
|
|
7759
|
-
polar: (
|
|
7760
|
-
portalComponent: (
|
|
7830
|
+
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)]),
|
|
7831
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7832
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7833
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7834
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
7761
7835
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
7762
|
-
preserveAspectRatio: (
|
|
7763
|
-
responsive: (
|
|
7764
|
-
role: (
|
|
7765
|
-
style: (
|
|
7766
|
-
tabIndex: (
|
|
7767
|
-
theme: (
|
|
7768
|
-
title: (
|
|
7836
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7837
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7838
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7839
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7840
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
7841
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7842
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7769
7843
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7770
|
-
}
|
|
7771
|
-
|
|
7772
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
7844
|
+
};
|
|
7845
|
+
VictoryContainer.defaultProps = {
|
|
7773
7846
|
className: "VictoryContainer",
|
|
7774
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
7847
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
7775
7848
|
portalZIndex: 99,
|
|
7776
7849
|
responsive: true,
|
|
7777
7850
|
role: "img"
|
|
7778
|
-
}
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7851
|
+
};
|
|
7852
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
7853
|
+
//# sourceMappingURL=victory-container.js.map
|
|
7783
7854
|
|
|
7784
7855
|
/***/ }),
|
|
7785
7856
|
|
|
@@ -7792,19 +7863,19 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
7792
7863
|
"use strict";
|
|
7793
7864
|
__webpack_require__.r(__webpack_exports__);
|
|
7794
7865
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7795
|
-
/* harmony export */ "
|
|
7866
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
7796
7867
|
/* harmony export */ });
|
|
7797
7868
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7798
7869
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7799
7870
|
|
|
7871
|
+
|
|
7800
7872
|
/**
|
|
7801
7873
|
* The React context object consumers may use to access the context of the
|
|
7802
7874
|
* portal.
|
|
7803
7875
|
*/
|
|
7804
|
-
|
|
7805
7876
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
7806
7877
|
PortalContext.displayName = "PortalContext";
|
|
7807
|
-
|
|
7878
|
+
//# sourceMappingURL=portal-context.js.map
|
|
7808
7879
|
|
|
7809
7880
|
/***/ }),
|
|
7810
7881
|
|
|
@@ -7817,7 +7888,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
7817
7888
|
"use strict";
|
|
7818
7889
|
__webpack_require__.r(__webpack_exports__);
|
|
7819
7890
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7820
|
-
/* harmony export */ "
|
|
7891
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
7821
7892
|
/* harmony export */ });
|
|
7822
7893
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
7823
7894
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7836,7 +7907,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7836
7907
|
|
|
7837
7908
|
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); }
|
|
7838
7909
|
|
|
7839
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7910
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7840
7911
|
|
|
7841
7912
|
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); }; }
|
|
7842
7913
|
|
|
@@ -7846,10 +7917,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7846
7917
|
|
|
7847
7918
|
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; } }
|
|
7848
7919
|
|
|
7849
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7850
|
-
|
|
7851
|
-
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; }
|
|
7852
|
-
|
|
7920
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7853
7921
|
|
|
7854
7922
|
|
|
7855
7923
|
|
|
@@ -7865,32 +7933,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
7865
7933
|
_classCallCheck(this, Portal);
|
|
7866
7934
|
|
|
7867
7935
|
_this = _super.call(this, props);
|
|
7936
|
+
_this.map = void 0;
|
|
7937
|
+
_this.index = void 0;
|
|
7938
|
+
|
|
7939
|
+
_this.portalRegister = function () {
|
|
7940
|
+
return ++_this.index;
|
|
7941
|
+
};
|
|
7942
|
+
|
|
7943
|
+
_this.portalUpdate = function (key, element) {
|
|
7944
|
+
_this.map[key] = element;
|
|
7945
|
+
|
|
7946
|
+
_this.forceUpdate();
|
|
7947
|
+
};
|
|
7948
|
+
|
|
7949
|
+
_this.portalDeregister = function (key) {
|
|
7950
|
+
delete _this.map[key];
|
|
7951
|
+
|
|
7952
|
+
_this.forceUpdate();
|
|
7953
|
+
};
|
|
7954
|
+
|
|
7868
7955
|
_this.map = {};
|
|
7869
7956
|
_this.index = 1;
|
|
7870
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
7871
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
7872
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
7873
7957
|
return _this;
|
|
7874
7958
|
}
|
|
7875
7959
|
|
|
7876
7960
|
_createClass(Portal, [{
|
|
7877
|
-
key: "portalRegister",
|
|
7878
|
-
value: function portalRegister() {
|
|
7879
|
-
return ++this.index;
|
|
7880
|
-
}
|
|
7881
|
-
}, {
|
|
7882
|
-
key: "portalUpdate",
|
|
7883
|
-
value: function portalUpdate(key, element) {
|
|
7884
|
-
this.map[key] = element;
|
|
7885
|
-
this.forceUpdate();
|
|
7886
|
-
}
|
|
7887
|
-
}, {
|
|
7888
|
-
key: "portalDeregister",
|
|
7889
|
-
value: function portalDeregister(key) {
|
|
7890
|
-
delete this.map[key];
|
|
7891
|
-
this.forceUpdate();
|
|
7892
|
-
}
|
|
7893
|
-
}, {
|
|
7894
7961
|
key: "getChildren",
|
|
7895
7962
|
value: function getChildren() {
|
|
7896
7963
|
var _this2 = this;
|
|
@@ -7912,18 +7979,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
7912
7979
|
|
|
7913
7980
|
return Portal;
|
|
7914
7981
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
_defineProperty(Portal, "propTypes", {
|
|
7982
|
+
Portal.displayName = "Portal";
|
|
7983
|
+
Portal.propTypes = {
|
|
7919
7984
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7920
7985
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
7921
7986
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
7922
7987
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7923
7988
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
7924
|
-
}
|
|
7925
|
-
|
|
7926
|
-
|
|
7989
|
+
};
|
|
7990
|
+
//# sourceMappingURL=portal.js.map
|
|
7927
7991
|
|
|
7928
7992
|
/***/ }),
|
|
7929
7993
|
|
|
@@ -7936,7 +8000,7 @@ _defineProperty(Portal, "propTypes", {
|
|
|
7936
8000
|
"use strict";
|
|
7937
8001
|
__webpack_require__.r(__webpack_exports__);
|
|
7938
8002
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7939
|
-
/* harmony export */ "
|
|
8003
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
7940
8004
|
/* harmony export */ });
|
|
7941
8005
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
7942
8006
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7983,7 +8047,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
7983
8047
|
|
|
7984
8048
|
var strokeLinecap = "round";
|
|
7985
8049
|
var strokeLinejoin = "round";
|
|
7986
|
-
|
|
8050
|
+
var grayscale = {
|
|
7987
8051
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
7988
8052
|
style: {
|
|
7989
8053
|
data: {
|
|
@@ -8198,7 +8262,8 @@ var strokeLinejoin = "round";
|
|
|
8198
8262
|
}
|
|
8199
8263
|
}
|
|
8200
8264
|
}, baseProps)
|
|
8201
|
-
}
|
|
8265
|
+
};
|
|
8266
|
+
//# sourceMappingURL=grayscale.js.map
|
|
8202
8267
|
|
|
8203
8268
|
/***/ }),
|
|
8204
8269
|
|
|
@@ -8211,7 +8276,7 @@ var strokeLinejoin = "round";
|
|
|
8211
8276
|
"use strict";
|
|
8212
8277
|
__webpack_require__.r(__webpack_exports__);
|
|
8213
8278
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8214
|
-
/* harmony export */ "
|
|
8279
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
8215
8280
|
/* harmony export */ });
|
|
8216
8281
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8217
8282
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8268,7 +8333,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
8268
8333
|
var strokeDasharray = "10, 5";
|
|
8269
8334
|
var strokeLinecap = "round";
|
|
8270
8335
|
var strokeLinejoin = "round";
|
|
8271
|
-
|
|
8336
|
+
var material = {
|
|
8272
8337
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
8273
8338
|
style: {
|
|
8274
8339
|
data: {
|
|
@@ -8500,7 +8565,8 @@ var strokeLinejoin = "round";
|
|
|
8500
8565
|
}
|
|
8501
8566
|
}
|
|
8502
8567
|
}, baseProps)
|
|
8503
|
-
}
|
|
8568
|
+
};
|
|
8569
|
+
//# sourceMappingURL=material.js.map
|
|
8504
8570
|
|
|
8505
8571
|
/***/ }),
|
|
8506
8572
|
|
|
@@ -8513,16 +8579,18 @@ var strokeLinejoin = "round";
|
|
|
8513
8579
|
"use strict";
|
|
8514
8580
|
__webpack_require__.r(__webpack_exports__);
|
|
8515
8581
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8516
|
-
/* harmony export */ "
|
|
8582
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
8517
8583
|
/* harmony export */ });
|
|
8518
|
-
/* harmony import */ var
|
|
8519
|
-
/* harmony import */ var
|
|
8584
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
8585
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
8520
8586
|
|
|
8521
8587
|
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
grayscale:
|
|
8525
|
-
|
|
8588
|
+
|
|
8589
|
+
var VictoryTheme = {
|
|
8590
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
8591
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
8592
|
+
};
|
|
8593
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
8526
8594
|
|
|
8527
8595
|
/***/ }),
|
|
8528
8596
|
|
|
@@ -8535,19 +8603,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8535
8603
|
"use strict";
|
|
8536
8604
|
__webpack_require__.r(__webpack_exports__);
|
|
8537
8605
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8538
|
-
/* harmony export */ "getAxis": () => (/* binding */ getAxis),
|
|
8539
8606
|
/* harmony export */ "findAxisComponents": () => (/* binding */ findAxisComponents),
|
|
8607
|
+
/* harmony export */ "getAxis": () => (/* binding */ getAxis),
|
|
8540
8608
|
/* harmony export */ "getAxisComponent": () => (/* binding */ getAxisComponent),
|
|
8541
8609
|
/* harmony export */ "getAxisComponentsWithParent": () => (/* binding */ getAxisComponentsWithParent),
|
|
8610
|
+
/* harmony export */ "getAxisValue": () => (/* binding */ getAxisValue),
|
|
8611
|
+
/* harmony export */ "getDomain": () => (/* binding */ getDomain),
|
|
8542
8612
|
/* harmony export */ "getOrigin": () => (/* binding */ getOrigin),
|
|
8543
8613
|
/* harmony export */ "getOriginSign": () => (/* binding */ getOriginSign),
|
|
8544
|
-
/* harmony export */ "isVertical": () => (/* binding */ isVertical),
|
|
8545
|
-
/* harmony export */ "stringTicks": () => (/* binding */ stringTicks),
|
|
8546
8614
|
/* harmony export */ "getTickFormat": () => (/* binding */ getTickFormat),
|
|
8547
8615
|
/* harmony export */ "getTicks": () => (/* binding */ getTicks),
|
|
8548
|
-
/* harmony export */ "
|
|
8549
|
-
/* harmony export */ "
|
|
8550
|
-
/* harmony export */ "
|
|
8616
|
+
/* harmony export */ "isVertical": () => (/* binding */ isVertical),
|
|
8617
|
+
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
8618
|
+
/* harmony export */ "stringTicks": () => (/* binding */ stringTicks)
|
|
8551
8619
|
/* harmony export */ });
|
|
8552
8620
|
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
8553
8621
|
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8603,7 +8671,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
8603
8671
|
|
|
8604
8672
|
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; }
|
|
8605
8673
|
|
|
8606
|
-
|
|
8674
|
+
|
|
8607
8675
|
|
|
8608
8676
|
|
|
8609
8677
|
|
|
@@ -8614,7 +8682,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8614
8682
|
* @param {Boolean} horizontal: true for horizontal charts
|
|
8615
8683
|
* @returns {String} the dimension appropriate for the axis given its props
|
|
8616
8684
|
*/
|
|
8617
|
-
|
|
8618
8685
|
function getAxis(props) {
|
|
8619
8686
|
var dependentAxis = props.dependentAxis;
|
|
8620
8687
|
return dependentAxis ? "y" : "x";
|
|
@@ -8800,7 +8867,7 @@ function getTickArray(props) {
|
|
|
8800
8867
|
}) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
|
|
8801
8868
|
}
|
|
8802
8869
|
|
|
8803
|
-
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(
|
|
8870
|
+
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
|
|
8804
8871
|
|
|
8805
8872
|
var buildTickArray = function (arr) {
|
|
8806
8873
|
var newTickArray = [];
|
|
@@ -8845,11 +8912,11 @@ function getTickFormat(props, scale) {
|
|
|
8845
8912
|
return defaultTickFormat || scaleTickFormat;
|
|
8846
8913
|
} else if (tickFormat && Array.isArray(tickFormat)) {
|
|
8847
8914
|
var tickArray = getTickArray(props);
|
|
8848
|
-
var tickArrayIndices = tickArray ? tickArray.map(function (v) {
|
|
8915
|
+
var tickArrayIndices = tickArray === null || tickArray === void 0 ? void 0 : tickArray.map(function (v) {
|
|
8849
8916
|
return v.index;
|
|
8850
|
-
})
|
|
8917
|
+
});
|
|
8851
8918
|
var filteredTickFormat = tickFormat.filter(function (t, index) {
|
|
8852
|
-
return tickArrayIndices.includes(index);
|
|
8919
|
+
return tickArrayIndices === null || tickArrayIndices === void 0 ? void 0 : tickArrayIndices.includes(index);
|
|
8853
8920
|
});
|
|
8854
8921
|
return function (x, index) {
|
|
8855
8922
|
return filteredTickFormat[index];
|
|
@@ -8883,7 +8950,8 @@ function downsampleTicks(ticks, tickCount) {
|
|
|
8883
8950
|
});
|
|
8884
8951
|
}
|
|
8885
8952
|
|
|
8886
|
-
function getTicks(props, scale
|
|
8953
|
+
function getTicks(props, scale) {
|
|
8954
|
+
var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
8887
8955
|
var tickCount = props.tickCount;
|
|
8888
8956
|
var tickArray = getTickArray(props);
|
|
8889
8957
|
var tickValues = tickArray ? tickArray.map(function (v) {
|
|
@@ -9006,6 +9074,7 @@ function modifyProps(props, fallbackProps) {
|
|
|
9006
9074
|
theme: theme
|
|
9007
9075
|
}), fallbackProps, "axis");
|
|
9008
9076
|
}
|
|
9077
|
+
//# sourceMappingURL=axis.js.map
|
|
9009
9078
|
|
|
9010
9079
|
/***/ }),
|
|
9011
9080
|
|
|
@@ -9018,14 +9087,14 @@ function modifyProps(props, fallbackProps) {
|
|
|
9018
9087
|
"use strict";
|
|
9019
9088
|
__webpack_require__.r(__webpack_exports__);
|
|
9020
9089
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9021
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
9022
9090
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
9023
9091
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
9024
9092
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
9025
|
-
/* harmony export */ "
|
|
9026
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
9093
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
9027
9094
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
9028
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
9095
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
9096
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
9097
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
9029
9098
|
/* harmony export */ });
|
|
9030
9099
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
9031
9100
|
|
|
@@ -9039,9 +9108,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9039
9108
|
|
|
9040
9109
|
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; }
|
|
9041
9110
|
|
|
9042
|
-
/* eslint-disable func-style */
|
|
9043
|
-
|
|
9044
|
-
/* eslint-disable no-use-before-define */
|
|
9045
9111
|
function isNonEmptyArray(collection) {
|
|
9046
9112
|
return Array.isArray(collection) && collection.length > 0;
|
|
9047
9113
|
}
|
|
@@ -9080,7 +9146,8 @@ function getMaxValue(arr) {
|
|
|
9080
9146
|
}
|
|
9081
9147
|
|
|
9082
9148
|
var array = arr.concat(values);
|
|
9083
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
9149
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9150
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
9084
9151
|
}
|
|
9085
9152
|
function getMinValue(arr) {
|
|
9086
9153
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -9088,8 +9155,10 @@ function getMinValue(arr) {
|
|
|
9088
9155
|
}
|
|
9089
9156
|
|
|
9090
9157
|
var array = arr.concat(values);
|
|
9091
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
9158
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9159
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
9092
9160
|
}
|
|
9161
|
+
//# sourceMappingURL=collection.js.map
|
|
9093
9162
|
|
|
9094
9163
|
/***/ }),
|
|
9095
9164
|
|
|
@@ -9102,9 +9171,7 @@ function getMinValue(arr) {
|
|
|
9102
9171
|
"use strict";
|
|
9103
9172
|
__webpack_require__.r(__webpack_exports__);
|
|
9104
9173
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9105
|
-
/* harmony export */ "
|
|
9106
|
-
/* harmony export */ "baseProps": () => (/* binding */ baseProps),
|
|
9107
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
9174
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
9108
9175
|
/* harmony export */ });
|
|
9109
9176
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9110
9177
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9112,26 +9179,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9112
9179
|
|
|
9113
9180
|
|
|
9114
9181
|
var dataProps = {
|
|
9182
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9115
9183
|
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({
|
|
9116
9184
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
9117
9185
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
9118
9186
|
})]),
|
|
9187
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9119
9188
|
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)]),
|
|
9120
9189
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9121
9190
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9122
9191
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9123
9192
|
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)]),
|
|
9124
9193
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9125
|
-
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))]),
|
|
9194
|
+
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))]),
|
|
9126
9195
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
9127
9196
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9128
9197
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9129
9198
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9130
9199
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9131
9200
|
}),
|
|
9132
|
-
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))]),
|
|
9133
|
-
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))]),
|
|
9134
|
-
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))])
|
|
9201
|
+
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))]),
|
|
9202
|
+
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))]),
|
|
9203
|
+
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))])
|
|
9135
9204
|
};
|
|
9136
9205
|
var baseProps = {
|
|
9137
9206
|
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)]),
|
|
@@ -9140,14 +9209,17 @@ var baseProps = {
|
|
|
9140
9209
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9141
9210
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9142
9211
|
})]),
|
|
9212
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9143
9213
|
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({
|
|
9144
9214
|
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)]),
|
|
9145
9215
|
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)])
|
|
9146
9216
|
})]),
|
|
9217
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9147
9218
|
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({
|
|
9148
9219
|
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)]),
|
|
9149
9220
|
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)])
|
|
9150
9221
|
})]),
|
|
9222
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9151
9223
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9152
9224
|
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))]),
|
|
9153
9225
|
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))])
|
|
@@ -9158,20 +9230,23 @@ var baseProps = {
|
|
|
9158
9230
|
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)]),
|
|
9159
9231
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9160
9232
|
})),
|
|
9233
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9161
9234
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9162
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
9235
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
9163
9236
|
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)]),
|
|
9164
9237
|
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)]),
|
|
9165
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
9238
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
9166
9239
|
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)])
|
|
9167
9240
|
})),
|
|
9168
9241
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9169
9242
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9170
9243
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9244
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9171
9245
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9172
9246
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9173
9247
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
9174
9248
|
}),
|
|
9249
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9175
9250
|
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({
|
|
9176
9251
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9177
9252
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -9180,17 +9255,19 @@ var baseProps = {
|
|
|
9180
9255
|
})]),
|
|
9181
9256
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9182
9257
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9183
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9184
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9258
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
9259
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
9185
9260
|
})]),
|
|
9186
9261
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9187
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
9188
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
9262
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
9263
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
9189
9264
|
})]),
|
|
9265
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9190
9266
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9191
9267
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
9192
9268
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
9193
9269
|
}),
|
|
9270
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9194
9271
|
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({
|
|
9195
9272
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
9196
9273
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -9210,6 +9287,7 @@ var primitiveProps = {
|
|
|
9210
9287
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9211
9288
|
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)]),
|
|
9212
9289
|
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)]),
|
|
9290
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9213
9291
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9214
9292
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9215
9293
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -9225,6 +9303,12 @@ var primitiveProps = {
|
|
|
9225
9303
|
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)]),
|
|
9226
9304
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
9227
9305
|
};
|
|
9306
|
+
var CommonProps = {
|
|
9307
|
+
dataProps: dataProps,
|
|
9308
|
+
baseProps: baseProps,
|
|
9309
|
+
primitiveProps: primitiveProps
|
|
9310
|
+
};
|
|
9311
|
+
//# sourceMappingURL=common-props.js.map
|
|
9228
9312
|
|
|
9229
9313
|
/***/ }),
|
|
9230
9314
|
|
|
@@ -9237,10 +9321,10 @@ var primitiveProps = {
|
|
|
9237
9321
|
"use strict";
|
|
9238
9322
|
__webpack_require__.r(__webpack_exports__);
|
|
9239
9323
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9240
|
-
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
9241
9324
|
/* harmony export */ "createStringMap": () => (/* binding */ createStringMap),
|
|
9242
9325
|
/* harmony export */ "downsample": () => (/* binding */ downsample),
|
|
9243
9326
|
/* harmony export */ "formatData": () => (/* binding */ formatData),
|
|
9327
|
+
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
9244
9328
|
/* harmony export */ "generateData": () => (/* binding */ generateData),
|
|
9245
9329
|
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
9246
9330
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
@@ -9307,8 +9391,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9307
9391
|
|
|
9308
9392
|
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; }
|
|
9309
9393
|
|
|
9310
|
-
/* eslint-disable func-style */
|
|
9311
|
-
|
|
9312
9394
|
/* eslint-disable no-use-before-define */
|
|
9313
9395
|
|
|
9314
9396
|
|
|
@@ -9740,6 +9822,7 @@ function isDataComponent(component) {
|
|
|
9740
9822
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
9741
9823
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
9742
9824
|
}
|
|
9825
|
+
//# sourceMappingURL=data.js.map
|
|
9743
9826
|
|
|
9744
9827
|
/***/ }),
|
|
9745
9828
|
|
|
@@ -9802,8 +9885,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9802
9885
|
|
|
9803
9886
|
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; }
|
|
9804
9887
|
|
|
9805
|
-
/* eslint-disable func-style */
|
|
9806
|
-
|
|
9807
9888
|
/* eslint-disable no-use-before-define */
|
|
9808
9889
|
|
|
9809
9890
|
|
|
@@ -9843,8 +9924,9 @@ function getDomainPadding(props, axis) {
|
|
|
9843
9924
|
}
|
|
9844
9925
|
|
|
9845
9926
|
function getFlatData(dataset, axis) {
|
|
9927
|
+
var axisKey = "_".concat(axis);
|
|
9846
9928
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
9847
|
-
return datum[
|
|
9929
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
9848
9930
|
});
|
|
9849
9931
|
}
|
|
9850
9932
|
|
|
@@ -9909,7 +9991,9 @@ function padDomain(domain, props, axis) {
|
|
|
9909
9991
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
9910
9992
|
// Naive initial padding calculation
|
|
9911
9993
|
var initialPadding = {
|
|
9994
|
+
// @ts-expect-error `max/min` might be dates
|
|
9912
9995
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
9996
|
+
// @ts-expect-error `max/min` might be dates
|
|
9913
9997
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
9914
9998
|
}; // Adjust the domain by the initial padding
|
|
9915
9999
|
|
|
@@ -10194,6 +10278,7 @@ function isDomainComponent(component) {
|
|
|
10194
10278
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
10195
10279
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
10196
10280
|
}
|
|
10281
|
+
//# sourceMappingURL=domain.js.map
|
|
10197
10282
|
|
|
10198
10283
|
/***/ }),
|
|
10199
10284
|
|
|
@@ -10206,18 +10291,18 @@ function isDomainComponent(component) {
|
|
|
10206
10291
|
"use strict";
|
|
10207
10292
|
__webpack_require__.r(__webpack_exports__);
|
|
10208
10293
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10209
|
-
/* harmony export */ "
|
|
10210
|
-
/* harmony export */ "
|
|
10211
|
-
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
10294
|
+
/* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
|
|
10295
|
+
/* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
|
|
10212
10296
|
/* harmony export */ "getEventState": () => (/* binding */ getEventState),
|
|
10213
|
-
/* harmony export */ "
|
|
10214
|
-
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
10297
|
+
/* harmony export */ "getEvents": () => (/* binding */ getEvents),
|
|
10215
10298
|
/* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
|
|
10216
|
-
/* harmony export */ "
|
|
10299
|
+
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
10300
|
+
/* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
|
|
10217
10301
|
/* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
|
|
10218
10302
|
/* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
|
|
10219
|
-
/* harmony export */ "
|
|
10220
|
-
/* harmony export */ "
|
|
10303
|
+
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
10304
|
+
/* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
|
|
10305
|
+
/* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
|
|
10221
10306
|
/* harmony export */ });
|
|
10222
10307
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10223
10308
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10262,15 +10347,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10262
10347
|
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; }
|
|
10263
10348
|
|
|
10264
10349
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
10350
|
+
|
|
10265
10351
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
10266
10352
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
10267
10353
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
10268
10354
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
10269
10355
|
* (i.e. VictoryChart) in the case of shared events
|
|
10270
10356
|
*/
|
|
10271
|
-
// eslint-disable-next-line max-params
|
|
10272
|
-
|
|
10273
|
-
|
|
10357
|
+
// eslint-disable-next-line max-params
|
|
10358
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
10359
|
+
getScopedEvents) {
|
|
10274
10360
|
var _this = this;
|
|
10275
10361
|
|
|
10276
10362
|
// Returns all events that apply to a particular target element
|
|
@@ -10493,24 +10579,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
10493
10579
|
return memo;
|
|
10494
10580
|
}, {});
|
|
10495
10581
|
}
|
|
10496
|
-
/*
|
|
10582
|
+
/*
|
|
10583
|
+
* Returns a partially applied event handler for a specific target element
|
|
10497
10584
|
* This allows event handlers to have access to props controlling each element
|
|
10498
10585
|
*/
|
|
10499
10586
|
|
|
10500
10587
|
function getPartialEvents(events, eventKey, childProps) {
|
|
10501
|
-
|
|
10588
|
+
if (!events) return {};
|
|
10589
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
10502
10590
|
var appliedEvent = function (evt) {
|
|
10503
10591
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
10504
10592
|
};
|
|
10505
10593
|
|
|
10506
10594
|
memo[eventName] = appliedEvent;
|
|
10507
10595
|
return memo;
|
|
10508
|
-
}, {})
|
|
10596
|
+
}, {});
|
|
10509
10597
|
}
|
|
10598
|
+
|
|
10510
10599
|
/* Returns the property of the state object corresponding to event changes for
|
|
10511
10600
|
* a particular element
|
|
10512
10601
|
*/
|
|
10513
|
-
|
|
10602
|
+
// eslint-disable-next-line max-params
|
|
10514
10603
|
function getEventState(eventKey, namespace, childType) {
|
|
10515
10604
|
// Mandatory usage: `getEventState.bind(this)`
|
|
10516
10605
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -10695,6 +10784,7 @@ var emulateReactEvent = function (event) {
|
|
|
10695
10784
|
nativeEvent: event
|
|
10696
10785
|
});
|
|
10697
10786
|
};
|
|
10787
|
+
//# sourceMappingURL=events.js.map
|
|
10698
10788
|
|
|
10699
10789
|
/***/ }),
|
|
10700
10790
|
|
|
@@ -10707,25 +10797,25 @@ var emulateReactEvent = function (event) {
|
|
|
10707
10797
|
"use strict";
|
|
10708
10798
|
__webpack_require__.r(__webpack_exports__);
|
|
10709
10799
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10710
|
-
/* harmony export */ "
|
|
10711
|
-
/* harmony export */ "
|
|
10712
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
10713
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
10714
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
10715
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
10716
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
10800
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
10801
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
10717
10802
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
10718
10803
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
10719
|
-
/* harmony export */ "
|
|
10720
|
-
/* harmony export */ "
|
|
10721
|
-
/* harmony export */ "
|
|
10804
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
10805
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
10806
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
10807
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
10722
10808
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
10809
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
10723
10810
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
10724
|
-
/* harmony export */ "
|
|
10811
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
10812
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
10813
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
10725
10814
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
10726
|
-
/* harmony export */ "
|
|
10815
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
10816
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
10727
10817
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
10728
|
-
/* harmony export */ "
|
|
10818
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
10729
10819
|
/* harmony export */ });
|
|
10730
10820
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10731
10821
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10748,8 +10838,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10748
10838
|
|
|
10749
10839
|
|
|
10750
10840
|
|
|
10751
|
-
/* eslint-disable func-style */
|
|
10752
|
-
|
|
10753
10841
|
/* eslint-disable no-use-before-define */
|
|
10754
10842
|
|
|
10755
10843
|
|
|
@@ -10778,7 +10866,7 @@ function getPolarRange(props, axis) {
|
|
|
10778
10866
|
|
|
10779
10867
|
/**
|
|
10780
10868
|
* creates an object with some keys excluded
|
|
10781
|
-
* replacement for lodash.omit for performance. does not
|
|
10869
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
10782
10870
|
* @param {Object} originalObject: created object will be based on this object
|
|
10783
10871
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
10784
10872
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -10791,6 +10879,7 @@ function omit(originalObject) {
|
|
|
10791
10879
|
var newObject = {};
|
|
10792
10880
|
|
|
10793
10881
|
for (var key in originalObject) {
|
|
10882
|
+
// @ts-expect-error String is not assignable to Key
|
|
10794
10883
|
if (ks.indexOf(key) >= 0) {
|
|
10795
10884
|
continue;
|
|
10796
10885
|
}
|
|
@@ -11023,7 +11112,9 @@ function reduceChildren(children, iteratee) {
|
|
|
11023
11112
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
11024
11113
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
11025
11114
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
11026
|
-
return
|
|
11115
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
11116
|
+
memo.concat(item)
|
|
11117
|
+
);
|
|
11027
11118
|
};
|
|
11028
11119
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
11029
11120
|
|
|
@@ -11067,7 +11158,7 @@ function reduceChildren(children, iteratee) {
|
|
|
11067
11158
|
/**
|
|
11068
11159
|
* @param {Object} props: the props object
|
|
11069
11160
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
11070
|
-
* children or nested children are
|
|
11161
|
+
* children or nested children are horizontal
|
|
11071
11162
|
*/
|
|
11072
11163
|
|
|
11073
11164
|
function isHorizontal(props) {
|
|
@@ -11090,6 +11181,7 @@ function isHorizontal(props) {
|
|
|
11090
11181
|
|
|
11091
11182
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
11092
11183
|
}
|
|
11184
|
+
//# sourceMappingURL=helpers.js.map
|
|
11093
11185
|
|
|
11094
11186
|
/***/ }),
|
|
11095
11187
|
|
|
@@ -11248,6 +11340,7 @@ var useAnimationState = function () {
|
|
|
11248
11340
|
getProps: getProps
|
|
11249
11341
|
};
|
|
11250
11342
|
};
|
|
11343
|
+
//# sourceMappingURL=use-animation-state.js.map
|
|
11251
11344
|
|
|
11252
11345
|
/***/ }),
|
|
11253
11346
|
|
|
@@ -11265,13 +11358,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11265
11358
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
11266
11359
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
11267
11360
|
|
|
11268
|
-
|
|
11361
|
+
function usePreviousProps(props) {
|
|
11269
11362
|
var ref = react__WEBPACK_IMPORTED_MODULE_0___default().useRef();
|
|
11270
11363
|
react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
|
|
11271
11364
|
ref.current = props;
|
|
11272
11365
|
});
|
|
11273
|
-
return ref.current
|
|
11274
|
-
}
|
|
11366
|
+
return ref.current;
|
|
11367
|
+
}
|
|
11368
|
+
//# sourceMappingURL=use-previous-props.js.map
|
|
11275
11369
|
|
|
11276
11370
|
/***/ }),
|
|
11277
11371
|
|
|
@@ -11285,17 +11379,16 @@ var usePreviousProps = function (props) {
|
|
|
11285
11379
|
__webpack_require__.r(__webpack_exports__);
|
|
11286
11380
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11287
11381
|
/* harmony export */ "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
|
|
11288
|
-
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
11289
11382
|
/* harmony export */ "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
|
|
11290
11383
|
/* harmony export */ "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
|
|
11291
|
-
/* harmony export */ "
|
|
11292
|
-
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
11384
|
+
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
11293
11385
|
/* harmony export */ "isImmutable": () => (/* binding */ isImmutable),
|
|
11386
|
+
/* harmony export */ "isIterable": () => (/* binding */ isIterable),
|
|
11294
11387
|
/* harmony export */ "isList": () => (/* binding */ isList),
|
|
11295
11388
|
/* harmony export */ "isMap": () => (/* binding */ isMap),
|
|
11389
|
+
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
11296
11390
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
11297
11391
|
/* harmony export */ });
|
|
11298
|
-
/* eslint-disable func-style */
|
|
11299
11392
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
11300
11393
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
11301
11394
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -11316,15 +11409,16 @@ function isMap(x) {
|
|
|
11316
11409
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
11317
11410
|
}
|
|
11318
11411
|
function shallowToJS(x, whitelist) {
|
|
11319
|
-
return isIterable(x) ? x.reduce(function (
|
|
11412
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
11320
11413
|
if (whitelist && whitelist[key]) {
|
|
11321
11414
|
curr = shallowToJS(curr);
|
|
11322
11415
|
}
|
|
11323
11416
|
|
|
11324
|
-
|
|
11325
|
-
return
|
|
11417
|
+
result[key] = curr;
|
|
11418
|
+
return result;
|
|
11326
11419
|
}, isList(x) ? [] : {}) : x;
|
|
11327
11420
|
}
|
|
11421
|
+
//# sourceMappingURL=immutable.js.map
|
|
11328
11422
|
|
|
11329
11423
|
/***/ }),
|
|
11330
11424
|
|
|
@@ -11343,7 +11437,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11343
11437
|
|
|
11344
11438
|
/* eslint-disable no-console */
|
|
11345
11439
|
// TODO: Use "warning" npm module like React is switching to.
|
|
11346
|
-
// eslint-disable-next-line func-style
|
|
11347
11440
|
function warn(message) {
|
|
11348
11441
|
if (true) {
|
|
11349
11442
|
if (console && console.warn) {
|
|
@@ -11351,6 +11444,7 @@ function warn(message) {
|
|
|
11351
11444
|
}
|
|
11352
11445
|
}
|
|
11353
11446
|
}
|
|
11447
|
+
//# sourceMappingURL=log.js.map
|
|
11354
11448
|
|
|
11355
11449
|
/***/ }),
|
|
11356
11450
|
|
|
@@ -11363,27 +11457,25 @@ function warn(message) {
|
|
|
11363
11457
|
"use strict";
|
|
11364
11458
|
__webpack_require__.r(__webpack_exports__);
|
|
11365
11459
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11366
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
11367
11460
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
11368
|
-
/* harmony export */ "
|
|
11369
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
11370
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
11461
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
11371
11462
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
11372
|
-
/* harmony export */ "
|
|
11463
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
11373
11464
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
11465
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
11374
11466
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
11375
|
-
/* harmony export */ "
|
|
11467
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
11468
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
11469
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
11376
11470
|
/* harmony export */ });
|
|
11377
11471
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
11378
11472
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
11379
11473
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
11380
11474
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
11381
|
-
/* harmony import */ var
|
|
11382
|
-
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
11383
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11475
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11384
11476
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11385
11477
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
11386
|
-
|
|
11478
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
11387
11479
|
|
|
11388
11480
|
|
|
11389
11481
|
|
|
@@ -11391,6 +11483,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11391
11483
|
|
|
11392
11484
|
|
|
11393
11485
|
|
|
11486
|
+
|
|
11487
|
+
|
|
11394
11488
|
/**
|
|
11395
11489
|
* Return a new validator based on `validator` but with the option to chain
|
|
11396
11490
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -11398,30 +11492,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11398
11492
|
* @param {Function} validator Validation function.
|
|
11399
11493
|
* @returns {Function} Validator with `isRequired` option.
|
|
11400
11494
|
*/
|
|
11401
|
-
|
|
11402
11495
|
var makeChainable = function (validator) {
|
|
11403
|
-
|
|
11404
|
-
|
|
11405
|
-
|
|
11496
|
+
var createChainable = function (isRequired) {
|
|
11497
|
+
return function (props, propName, componentName) {
|
|
11498
|
+
var value = props[propName];
|
|
11406
11499
|
|
|
11407
|
-
|
|
11408
|
-
|
|
11409
|
-
|
|
11410
|
-
|
|
11500
|
+
if (value === undefined || value === null) {
|
|
11501
|
+
if (isRequired) {
|
|
11502
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
11503
|
+
}
|
|
11411
11504
|
|
|
11412
|
-
|
|
11413
|
-
|
|
11505
|
+
return null;
|
|
11506
|
+
}
|
|
11414
11507
|
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11508
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
11509
|
+
rest[_key - 3] = arguments[_key];
|
|
11510
|
+
}
|
|
11418
11511
|
|
|
11419
|
-
|
|
11512
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11513
|
+
};
|
|
11420
11514
|
};
|
|
11421
11515
|
|
|
11422
|
-
var chainable =
|
|
11423
|
-
|
|
11424
|
-
|
|
11516
|
+
var chainable = Object.assign(createChainable(false), {
|
|
11517
|
+
isRequired: createChainable(true)
|
|
11518
|
+
});
|
|
11425
11519
|
return chainable;
|
|
11426
11520
|
};
|
|
11427
11521
|
|
|
@@ -11451,7 +11545,7 @@ var getConstructor = function (value) {
|
|
|
11451
11545
|
};
|
|
11452
11546
|
/**
|
|
11453
11547
|
* Get the name of the constructor used to create `value`, using
|
|
11454
|
-
* `Object.
|
|
11548
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
11455
11549
|
* "null" or "undefined", respectively.
|
|
11456
11550
|
* @param {*} value Instance to return the constructor name of.
|
|
11457
11551
|
* @returns {String} Name of the constructor.
|
|
@@ -11481,10 +11575,11 @@ function deprecated(propType, explanation) {
|
|
|
11481
11575
|
var value = props[propName];
|
|
11482
11576
|
|
|
11483
11577
|
if (value !== null && value !== undefined) {
|
|
11484
|
-
|
|
11578
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
11485
11579
|
}
|
|
11486
11580
|
|
|
11487
|
-
|
|
11581
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
11582
|
+
return null;
|
|
11488
11583
|
};
|
|
11489
11584
|
}
|
|
11490
11585
|
/**
|
|
@@ -11503,7 +11598,7 @@ function allOfType(validators) {
|
|
|
11503
11598
|
|
|
11504
11599
|
return validators.reduce(function (result, validator) {
|
|
11505
11600
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11506
|
-
},
|
|
11601
|
+
}, null);
|
|
11507
11602
|
});
|
|
11508
11603
|
}
|
|
11509
11604
|
/**
|
|
@@ -11517,7 +11612,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
11517
11612
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
11518
11613
|
}
|
|
11519
11614
|
|
|
11520
|
-
return
|
|
11615
|
+
return null;
|
|
11521
11616
|
});
|
|
11522
11617
|
/**
|
|
11523
11618
|
* Check that the value is an integer.
|
|
@@ -11530,7 +11625,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
11530
11625
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
11531
11626
|
}
|
|
11532
11627
|
|
|
11533
|
-
return
|
|
11628
|
+
return null;
|
|
11534
11629
|
});
|
|
11535
11630
|
/**
|
|
11536
11631
|
* Check that the value is greater than zero.
|
|
@@ -11543,7 +11638,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
11543
11638
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
11544
11639
|
}
|
|
11545
11640
|
|
|
11546
|
-
return
|
|
11641
|
+
return null;
|
|
11547
11642
|
});
|
|
11548
11643
|
/**
|
|
11549
11644
|
* Check that the value is an Array of two unique values.
|
|
@@ -11556,32 +11651,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
11556
11651
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
11557
11652
|
}
|
|
11558
11653
|
|
|
11559
|
-
return
|
|
11654
|
+
return null;
|
|
11560
11655
|
});
|
|
11561
11656
|
/**
|
|
11562
11657
|
* Check that the value looks like a d3 `scale` function.
|
|
11563
11658
|
*/
|
|
11564
11659
|
|
|
11565
11660
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
11566
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11567
|
-
|
|
11568
|
-
var validScale = function (scl) {
|
|
11569
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
11570
|
-
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);
|
|
11571
|
-
} else if (typeof scl === "string") {
|
|
11572
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
11573
|
-
}
|
|
11574
|
-
|
|
11575
|
-
return false;
|
|
11576
|
-
};
|
|
11577
|
-
|
|
11578
11661
|
var value = props[propName];
|
|
11579
11662
|
|
|
11580
|
-
if (!validScale(value)) {
|
|
11663
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
11581
11664
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
11582
11665
|
}
|
|
11583
11666
|
|
|
11584
|
-
return
|
|
11667
|
+
return null;
|
|
11585
11668
|
});
|
|
11586
11669
|
/**
|
|
11587
11670
|
* Check that an array contains items of the same type.
|
|
@@ -11595,7 +11678,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11595
11678
|
}
|
|
11596
11679
|
|
|
11597
11680
|
if (values.length < 2) {
|
|
11598
|
-
return
|
|
11681
|
+
return null;
|
|
11599
11682
|
}
|
|
11600
11683
|
|
|
11601
11684
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -11610,7 +11693,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11610
11693
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
11611
11694
|
}
|
|
11612
11695
|
|
|
11613
|
-
return
|
|
11696
|
+
return null;
|
|
11614
11697
|
});
|
|
11615
11698
|
/**
|
|
11616
11699
|
* Check that array prop length matches props.data.length
|
|
@@ -11621,7 +11704,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
11621
11704
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
11622
11705
|
}
|
|
11623
11706
|
|
|
11624
|
-
return
|
|
11707
|
+
return null;
|
|
11625
11708
|
});
|
|
11626
11709
|
/**
|
|
11627
11710
|
* Check that the value is a regular expression
|
|
@@ -11632,8 +11715,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
11632
11715
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
11633
11716
|
}
|
|
11634
11717
|
|
|
11635
|
-
return
|
|
11718
|
+
return null;
|
|
11636
11719
|
});
|
|
11720
|
+
//# sourceMappingURL=prop-types.js.map
|
|
11637
11721
|
|
|
11638
11722
|
/***/ }),
|
|
11639
11723
|
|
|
@@ -11646,12 +11730,13 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
11646
11730
|
"use strict";
|
|
11647
11731
|
__webpack_require__.r(__webpack_exports__);
|
|
11648
11732
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11649
|
-
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
11650
11733
|
/* harmony export */ "getBaseScale": () => (/* binding */ getBaseScale),
|
|
11651
11734
|
/* harmony export */ "getDefaultScale": () => (/* binding */ getDefaultScale),
|
|
11735
|
+
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
11652
11736
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
11653
11737
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
11654
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
11738
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
11739
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
11655
11740
|
/* harmony export */ });
|
|
11656
11741
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
11657
11742
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11669,8 +11754,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11669
11754
|
|
|
11670
11755
|
|
|
11671
11756
|
|
|
11672
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11757
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11673
11758
|
|
|
11759
|
+
// Private Functions
|
|
11674
11760
|
function toNewName(scale) {
|
|
11675
11761
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
11676
11762
|
var capitalize = function (s) {
|
|
@@ -11740,7 +11826,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
11740
11826
|
|
|
11741
11827
|
|
|
11742
11828
|
function getScaleFromName(name) {
|
|
11743
|
-
|
|
11829
|
+
if (validScale(name)) {
|
|
11830
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
11831
|
+
|
|
11832
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
11833
|
+
}
|
|
11834
|
+
|
|
11835
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
11744
11836
|
}
|
|
11745
11837
|
function getBaseScale(props, axis) {
|
|
11746
11838
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -11750,7 +11842,7 @@ function getBaseScale(props, axis) {
|
|
|
11750
11842
|
}
|
|
11751
11843
|
|
|
11752
11844
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
11753
|
-
return
|
|
11845
|
+
return getScaleFromName(defaultScale);
|
|
11754
11846
|
}
|
|
11755
11847
|
function getDefaultScale() {
|
|
11756
11848
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -11763,7 +11855,7 @@ function getScaleFromProps(props, axis) {
|
|
|
11763
11855
|
var scale = props.scale[axis] || props.scale;
|
|
11764
11856
|
|
|
11765
11857
|
if (validScale(scale)) {
|
|
11766
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
11858
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
11767
11859
|
}
|
|
11768
11860
|
|
|
11769
11861
|
return undefined;
|
|
@@ -11798,6 +11890,7 @@ function getType(scale) {
|
|
|
11798
11890
|
})[0];
|
|
11799
11891
|
return scaleType ? scaleType.name : undefined;
|
|
11800
11892
|
}
|
|
11893
|
+
//# sourceMappingURL=scale.js.map
|
|
11801
11894
|
|
|
11802
11895
|
/***/ }),
|
|
11803
11896
|
|
|
@@ -11810,11 +11903,9 @@ function getType(scale) {
|
|
|
11810
11903
|
"use strict";
|
|
11811
11904
|
__webpack_require__.r(__webpack_exports__);
|
|
11812
11905
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11813
|
-
/* harmony export */ "
|
|
11814
|
-
/* harmony export */ "
|
|
11906
|
+
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
11907
|
+
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
11815
11908
|
/* harmony export */ });
|
|
11816
|
-
/* eslint-disable func-style */
|
|
11817
|
-
|
|
11818
11909
|
/**
|
|
11819
11910
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
11820
11911
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -11871,6 +11962,7 @@ function getColorScale(name) {
|
|
|
11871
11962
|
};
|
|
11872
11963
|
return name ? scales[name] : scales.grayscale;
|
|
11873
11964
|
}
|
|
11965
|
+
//# sourceMappingURL=style.js.map
|
|
11874
11966
|
|
|
11875
11967
|
/***/ }),
|
|
11876
11968
|
|
|
@@ -11901,6 +11993,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
11901
11993
|
});
|
|
11902
11994
|
TimerContext.displayName = "TimerContext";
|
|
11903
11995
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
11996
|
+
//# sourceMappingURL=timer-context.js.map
|
|
11904
11997
|
|
|
11905
11998
|
/***/ }),
|
|
11906
11999
|
|
|
@@ -11926,11 +12019,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
11926
12019
|
|
|
11927
12020
|
var Timer = /*#__PURE__*/function () {
|
|
11928
12021
|
function Timer() {
|
|
12022
|
+
var _this = this;
|
|
12023
|
+
|
|
11929
12024
|
_classCallCheck(this, Timer);
|
|
11930
12025
|
|
|
12026
|
+
this.shouldAnimate = void 0;
|
|
12027
|
+
this.subscribers = void 0;
|
|
12028
|
+
this.activeSubscriptions = void 0;
|
|
12029
|
+
this.timer = void 0;
|
|
12030
|
+
|
|
12031
|
+
this.loop = function () {
|
|
12032
|
+
_this.subscribers.forEach(function (s) {
|
|
12033
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
12034
|
+
});
|
|
12035
|
+
};
|
|
12036
|
+
|
|
11931
12037
|
this.shouldAnimate = true;
|
|
11932
12038
|
this.subscribers = [];
|
|
11933
|
-
this.loop = this.loop.bind(this);
|
|
11934
12039
|
this.timer = null;
|
|
11935
12040
|
this.activeSubscriptions = 0;
|
|
11936
12041
|
}
|
|
@@ -11945,13 +12050,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
11945
12050
|
value: function resumeAnimation() {
|
|
11946
12051
|
this.shouldAnimate = true;
|
|
11947
12052
|
}
|
|
11948
|
-
}, {
|
|
11949
|
-
key: "loop",
|
|
11950
|
-
value: function loop() {
|
|
11951
|
-
this.subscribers.forEach(function (s) {
|
|
11952
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
11953
|
-
});
|
|
11954
|
-
}
|
|
11955
12053
|
}, {
|
|
11956
12054
|
key: "start",
|
|
11957
12055
|
value: function start() {
|
|
@@ -11998,6 +12096,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
11998
12096
|
}();
|
|
11999
12097
|
|
|
12000
12098
|
|
|
12099
|
+
//# sourceMappingURL=timer.js.map
|
|
12001
12100
|
|
|
12002
12101
|
/***/ }),
|
|
12003
12102
|
|
|
@@ -12088,7 +12187,7 @@ function getChildData(child) {
|
|
|
12088
12187
|
}
|
|
12089
12188
|
/**
|
|
12090
12189
|
* If a parent component has animation enabled, calculate the transitions
|
|
12091
|
-
* for any data of any child component that supports data transitions
|
|
12190
|
+
* for any data of any child component that supports data transitions.
|
|
12092
12191
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
12093
12192
|
* in the first set and not the second, in the second and not the first,
|
|
12094
12193
|
* or both.
|
|
@@ -12217,7 +12316,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
12217
12316
|
|
|
12218
12317
|
if (exitingNodes) {
|
|
12219
12318
|
// After the exit transition occurs, trigger the animations for
|
|
12220
|
-
// nodes that are neither exiting
|
|
12319
|
+
// nodes that are neither exiting nor entering.
|
|
12221
12320
|
animate.onEnd = cb;
|
|
12222
12321
|
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.
|
|
12223
12322
|
|
|
@@ -12287,7 +12386,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
12287
12386
|
* and its index in the parent's children array.
|
|
12288
12387
|
*
|
|
12289
12388
|
* In particular, this will include an `animate` object that is set appropriately
|
|
12290
|
-
* so that each child will be
|
|
12389
|
+
* so that each child will be synchronized for each stage of a transition
|
|
12291
12390
|
* animation. It will also include a transformed `data` object, where each datum
|
|
12292
12391
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
12293
12392
|
* functions.
|
|
@@ -12432,6 +12531,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
12432
12531
|
};
|
|
12433
12532
|
};
|
|
12434
12533
|
}
|
|
12534
|
+
//# sourceMappingURL=transitions.js.map
|
|
12435
12535
|
|
|
12436
12536
|
/***/ }),
|
|
12437
12537
|
|
|
@@ -12444,8 +12544,11 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
12444
12544
|
"use strict";
|
|
12445
12545
|
__webpack_require__.r(__webpack_exports__);
|
|
12446
12546
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12447
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
12547
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
12548
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
12448
12549
|
/* harmony export */ });
|
|
12550
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
12551
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
12449
12552
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12450
12553
|
|
|
12451
12554
|
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."); }
|
|
@@ -12464,16 +12567,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
12464
12567
|
|
|
12465
12568
|
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; }
|
|
12466
12569
|
|
|
12570
|
+
|
|
12467
12571
|
/*
|
|
12468
12572
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
12469
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
12573
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
12470
12574
|
starts with these characters.
|
|
12471
12575
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
12472
12576
|
*/
|
|
12577
|
+
|
|
12473
12578
|
var USER_PROPS_SAFELIST = {
|
|
12474
12579
|
startsWith: ["data-", "aria-"],
|
|
12475
12580
|
exactMatch: []
|
|
12476
12581
|
};
|
|
12582
|
+
|
|
12477
12583
|
/**
|
|
12478
12584
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
12479
12585
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -12482,7 +12588,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
12482
12588
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
12483
12589
|
* otherwise
|
|
12484
12590
|
*/
|
|
12485
|
-
|
|
12486
12591
|
var doesPropStartWith = function (key) {
|
|
12487
12592
|
var startsWith = false;
|
|
12488
12593
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -12556,6 +12661,18 @@ var getSafeUserProps = function (props) {
|
|
|
12556
12661
|
return [key, getValue(value, props)];
|
|
12557
12662
|
}));
|
|
12558
12663
|
};
|
|
12664
|
+
/**
|
|
12665
|
+
* Wraps a component and adds safe user props
|
|
12666
|
+
*
|
|
12667
|
+
* @param {ReactElement} component: parent component
|
|
12668
|
+
* @param {Object} props: props to be filtered
|
|
12669
|
+
* @returns {ReactElement} modified component
|
|
12670
|
+
*/
|
|
12671
|
+
|
|
12672
|
+
var withSafeUserProps = function (component, props) {
|
|
12673
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
12674
|
+
};
|
|
12675
|
+
//# sourceMappingURL=user-props.js.map
|
|
12559
12676
|
|
|
12560
12677
|
/***/ }),
|
|
12561
12678
|
|
|
@@ -12569,22 +12686,22 @@ var getSafeUserProps = function (props) {
|
|
|
12569
12686
|
__webpack_require__.r(__webpack_exports__);
|
|
12570
12687
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12571
12688
|
/* harmony export */ "addBinsToParentPropsIfHistogram": () => (/* binding */ addBinsToParentPropsIfHistogram),
|
|
12572
|
-
/* harmony export */ "
|
|
12689
|
+
/* harmony export */ "getAllEvents": () => (/* binding */ getAllEvents),
|
|
12690
|
+
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
12691
|
+
/* harmony export */ "getCategoryAndAxisStringsFromChildren": () => (/* binding */ getCategoryAndAxisStringsFromChildren),
|
|
12692
|
+
/* harmony export */ "getChildStyle": () => (/* binding */ getChildStyle),
|
|
12693
|
+
/* harmony export */ "getColor": () => (/* binding */ getColor),
|
|
12573
12694
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
12574
|
-
/* harmony export */ "
|
|
12695
|
+
/* harmony export */ "getDataFromChildren": () => (/* binding */ getDataFromChildren),
|
|
12575
12696
|
/* harmony export */ "getDefaultDomainPadding": () => (/* binding */ getDefaultDomainPadding),
|
|
12576
|
-
/* harmony export */ "getDomainFromChildren": () => (/* binding */ getDomainFromChildren),
|
|
12577
12697
|
/* harmony export */ "getDomain": () => (/* binding */ getDomain),
|
|
12698
|
+
/* harmony export */ "getDomainFromChildren": () => (/* binding */ getDomainFromChildren),
|
|
12578
12699
|
/* harmony export */ "getScale": () => (/* binding */ getScale),
|
|
12579
|
-
/* harmony export */ "getAllEvents": () => (/* binding */ getAllEvents),
|
|
12580
|
-
/* harmony export */ "getColor": () => (/* binding */ getColor),
|
|
12581
|
-
/* harmony export */ "getStyle": () => (/* binding */ getStyle),
|
|
12582
|
-
/* harmony export */ "getChildStyle": () => (/* binding */ getChildStyle),
|
|
12583
12700
|
/* harmony export */ "getStringsFromCategories": () => (/* binding */ getStringsFromCategories),
|
|
12584
|
-
/* harmony export */ "getStringsFromData": () => (/* binding */ getStringsFromData),
|
|
12585
|
-
/* harmony export */ "getCategoryAndAxisStringsFromChildren": () => (/* binding */ getCategoryAndAxisStringsFromChildren),
|
|
12586
12701
|
/* harmony export */ "getStringsFromChildren": () => (/* binding */ getStringsFromChildren),
|
|
12587
|
-
/* harmony export */ "
|
|
12702
|
+
/* harmony export */ "getStringsFromData": () => (/* binding */ getStringsFromData),
|
|
12703
|
+
/* harmony export */ "getStyle": () => (/* binding */ getStyle),
|
|
12704
|
+
/* harmony export */ "getWidth": () => (/* binding */ getWidth)
|
|
12588
12705
|
/* harmony export */ });
|
|
12589
12706
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
12590
12707
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12768,7 +12885,7 @@ function getData(props, childComponents) {
|
|
|
12768
12885
|
}
|
|
12769
12886
|
|
|
12770
12887
|
childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
12771
|
-
return getDataFromChildren(childComponents);
|
|
12888
|
+
return getDataFromChildren(props, childComponents);
|
|
12772
12889
|
}
|
|
12773
12890
|
function getWidth(props, groupLength, seriesLength) {
|
|
12774
12891
|
var datasets = props.datasets,
|
|
@@ -12830,7 +12947,7 @@ function getDefaultDomainPadding(props, axis, childComponents) {
|
|
|
12830
12947
|
function getDomainFromChildren(props, axis, childComponents) {
|
|
12831
12948
|
// eslint-disable-line max-statements, complexity, max-len
|
|
12832
12949
|
var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
12833
|
-
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props
|
|
12950
|
+
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props) : undefined;
|
|
12834
12951
|
var polar = props.polar,
|
|
12835
12952
|
startAngle = props.startAngle,
|
|
12836
12953
|
endAngle = props.endAngle,
|
|
@@ -13064,6 +13181,7 @@ function getCategories(props, childComponents, allStrings) {
|
|
|
13064
13181
|
y: yCategories.length > 0 ? yCategories : undefined
|
|
13065
13182
|
};
|
|
13066
13183
|
}
|
|
13184
|
+
//# sourceMappingURL=wrapper.js.map
|
|
13067
13185
|
|
|
13068
13186
|
/***/ }),
|
|
13069
13187
|
|
|
@@ -13094,16 +13212,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13094
13212
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_6__);
|
|
13095
13213
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react */ "react");
|
|
13096
13214
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__);
|
|
13097
|
-
/* harmony import */ var
|
|
13098
|
-
/* harmony import */ var
|
|
13099
|
-
/* harmony import */ var
|
|
13100
|
-
/* harmony import */ var
|
|
13215
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
13216
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_12__);
|
|
13217
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/events.js");
|
|
13218
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
13101
13219
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
13102
13220
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/timer-context.js");
|
|
13103
|
-
/* harmony import */ var
|
|
13104
|
-
/* harmony import */ var
|
|
13105
|
-
/* harmony import */ var
|
|
13106
|
-
/* harmony import */ var
|
|
13221
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
13222
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_8__);
|
|
13223
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! json-stringify-safe */ "../../../node_modules/json-stringify-safe/stringify.js");
|
|
13224
|
+
/* harmony import */ var json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(json_stringify_safe__WEBPACK_IMPORTED_MODULE_9__);
|
|
13107
13225
|
|
|
13108
13226
|
|
|
13109
13227
|
|
|
@@ -13140,7 +13258,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
13140
13258
|
|
|
13141
13259
|
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); }
|
|
13142
13260
|
|
|
13143
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
13261
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
13144
13262
|
|
|
13145
13263
|
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); }; }
|
|
13146
13264
|
|
|
@@ -13150,15 +13268,16 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
13150
13268
|
|
|
13151
13269
|
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; } }
|
|
13152
13270
|
|
|
13153
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13154
|
-
|
|
13155
|
-
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; }
|
|
13156
|
-
|
|
13271
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13157
13272
|
|
|
13158
13273
|
|
|
13159
13274
|
|
|
13160
13275
|
|
|
13161
13276
|
|
|
13277
|
+
// DISCLAIMER:
|
|
13278
|
+
// This file is not currently tested, and it is first on the list of files
|
|
13279
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
13280
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
13162
13281
|
|
|
13163
13282
|
var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
13164
13283
|
_inherits(VictorySharedEvents, _React$Component);
|
|
@@ -13172,8 +13291,8 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13172
13291
|
|
|
13173
13292
|
_this = _super.call(this, props);
|
|
13174
13293
|
_this.state = _this.state || {};
|
|
13175
|
-
_this.getScopedEvents =
|
|
13176
|
-
_this.getEventState =
|
|
13294
|
+
_this.getScopedEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
13295
|
+
_this.getEventState = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEventState.bind(_assertThisInitialized(_this));
|
|
13177
13296
|
_this.baseProps = _this.getBaseProps(props);
|
|
13178
13297
|
_this.sharedEventsCache = {};
|
|
13179
13298
|
_this.globalEvents = {};
|
|
@@ -13185,7 +13304,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13185
13304
|
_createClass(VictorySharedEvents, [{
|
|
13186
13305
|
key: "shouldComponentUpdate",
|
|
13187
13306
|
value: function shouldComponentUpdate(nextProps) {
|
|
13188
|
-
if (!
|
|
13307
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(this.props, nextProps)) {
|
|
13189
13308
|
this.baseProps = this.getBaseProps(nextProps);
|
|
13190
13309
|
var externalMutations = this.getExternalMutations(nextProps, this.baseProps);
|
|
13191
13310
|
this.applyExternalMutations(nextProps, externalMutations);
|
|
@@ -13241,22 +13360,22 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13241
13360
|
|
|
13242
13361
|
var boundListener = function (event) {
|
|
13243
13362
|
var listener = _this5.globalEvents[key];
|
|
13244
|
-
return listener && listener(
|
|
13363
|
+
return listener && listener(victory_core__WEBPACK_IMPORTED_MODULE_10__.emulateReactEvent(event));
|
|
13245
13364
|
};
|
|
13246
13365
|
|
|
13247
13366
|
this.boundGlobalEvents[key] = boundListener;
|
|
13248
|
-
window.addEventListener(
|
|
13367
|
+
window.addEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), boundListener);
|
|
13249
13368
|
}
|
|
13250
13369
|
}, {
|
|
13251
13370
|
key: "removeGlobalListener",
|
|
13252
13371
|
value: function removeGlobalListener(key) {
|
|
13253
|
-
window.removeEventListener(
|
|
13372
|
+
window.removeEventListener(victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
|
|
13254
13373
|
}
|
|
13255
13374
|
}, {
|
|
13256
13375
|
key: "getAllEvents",
|
|
13257
13376
|
value: function getAllEvents(props) {
|
|
13258
13377
|
var components = ["container", "groupComponent"];
|
|
13259
|
-
var componentEvents =
|
|
13378
|
+
var componentEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getComponentEvents(props, components);
|
|
13260
13379
|
|
|
13261
13380
|
if (Array.isArray(componentEvents)) {
|
|
13262
13381
|
return Array.isArray(props.events) ? componentEvents.concat.apply(componentEvents, _toConsumableArray(props.events)) : componentEvents;
|
|
@@ -13283,7 +13402,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13283
13402
|
}, {
|
|
13284
13403
|
key: "getExternalMutations",
|
|
13285
13404
|
value: function getExternalMutations(props, baseProps) {
|
|
13286
|
-
return !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(props.externalEventMutations) ?
|
|
13405
|
+
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;
|
|
13287
13406
|
}
|
|
13288
13407
|
}, {
|
|
13289
13408
|
key: "cacheSharedEvents",
|
|
@@ -13298,7 +13417,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13298
13417
|
sharedEvents = _ref2[0],
|
|
13299
13418
|
prevCacheValues = _ref2[1];
|
|
13300
13419
|
|
|
13301
|
-
if (sharedEvents &&
|
|
13420
|
+
if (sharedEvents && react_fast_compare__WEBPACK_IMPORTED_MODULE_8___default()(cacheValues, prevCacheValues)) {
|
|
13302
13421
|
return sharedEvents;
|
|
13303
13422
|
}
|
|
13304
13423
|
|
|
@@ -13328,7 +13447,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13328
13447
|
}
|
|
13329
13448
|
};
|
|
13330
13449
|
|
|
13331
|
-
var baseProps =
|
|
13450
|
+
var baseProps = victory_core__WEBPACK_IMPORTED_MODULE_11__.reduceChildren(childComponents, iteratee);
|
|
13332
13451
|
return lodash_fromPairs__WEBPACK_IMPORTED_MODULE_2___default()(baseProps);
|
|
13333
13452
|
}
|
|
13334
13453
|
}, {
|
|
@@ -13355,7 +13474,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13355
13474
|
|
|
13356
13475
|
return Array.isArray(event.childName) ? event.childName.indexOf(name) > -1 : event.childName === name || event.childName === "all";
|
|
13357
13476
|
});
|
|
13358
|
-
var sharedEventsCacheValues = [name, baseProps, childEvents,
|
|
13477
|
+
var sharedEventsCacheValues = [name, baseProps, childEvents, json_stringify_safe__WEBPACK_IMPORTED_MODULE_9___default()(_this6.state[name])];
|
|
13359
13478
|
var sharedEvents = _this6.getCachedSharedEvents(name, sharedEventsCacheValues) || {
|
|
13360
13479
|
events: childEvents,
|
|
13361
13480
|
// partially apply child name and baseProps,
|
|
@@ -13407,7 +13526,7 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13407
13526
|
var container = props.container || props.groupComponent;
|
|
13408
13527
|
var role = container.type && container.type.role;
|
|
13409
13528
|
var containerProps = container.props || {};
|
|
13410
|
-
var boundGetEvents =
|
|
13529
|
+
var boundGetEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getEvents.bind(this);
|
|
13411
13530
|
var parentEvents = sharedEvents && boundGetEvents({
|
|
13412
13531
|
sharedEvents: sharedEvents
|
|
13413
13532
|
}, "parent");
|
|
@@ -13416,10 +13535,10 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13416
13535
|
children: children
|
|
13417
13536
|
});
|
|
13418
13537
|
|
|
13419
|
-
var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({},
|
|
13538
|
+
var containerEvents = lodash_defaults__WEBPACK_IMPORTED_MODULE_4___default()({}, victory_core__WEBPACK_IMPORTED_MODULE_10__.getPartialEvents(parentEvents, "parent", parentProps), containerProps.events);
|
|
13420
13539
|
|
|
13421
|
-
this.globalEvents =
|
|
13422
|
-
var localEvents =
|
|
13540
|
+
this.globalEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.getGlobalEvents(containerEvents);
|
|
13541
|
+
var localEvents = victory_core__WEBPACK_IMPORTED_MODULE_10__.omitGlobalEvents(containerEvents);
|
|
13423
13542
|
return role === "container" ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, lodash_assign__WEBPACK_IMPORTED_MODULE_6___default()({}, parentProps, {
|
|
13424
13543
|
events: localEvents
|
|
13425
13544
|
})) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().cloneElement(container, localEvents, children);
|
|
@@ -13442,37 +13561,33 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13442
13561
|
return VictorySharedEvents;
|
|
13443
13562
|
}((react__WEBPACK_IMPORTED_MODULE_7___default().Component));
|
|
13444
13563
|
|
|
13445
|
-
|
|
13446
|
-
|
|
13447
|
-
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
|
|
13451
|
-
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
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)]),
|
|
13457
|
-
target: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)
|
|
13564
|
+
VictorySharedEvents.displayName = "VictorySharedEvents";
|
|
13565
|
+
VictorySharedEvents.role = "shared-event-wrapper";
|
|
13566
|
+
VictorySharedEvents.propTypes = {
|
|
13567
|
+
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)]),
|
|
13568
|
+
container: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node),
|
|
13569
|
+
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)]),
|
|
13570
|
+
events: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({
|
|
13571
|
+
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)]),
|
|
13572
|
+
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().object),
|
|
13573
|
+
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)]),
|
|
13574
|
+
target: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)
|
|
13458
13575
|
})),
|
|
13459
|
-
externalEventMutations:
|
|
13460
|
-
callback: (
|
|
13461
|
-
childName:
|
|
13462
|
-
eventKey:
|
|
13463
|
-
mutation: (
|
|
13464
|
-
target:
|
|
13576
|
+
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_12___default().shape({
|
|
13577
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
|
|
13578
|
+
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)]),
|
|
13579
|
+
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)]),
|
|
13580
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func),
|
|
13581
|
+
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)])
|
|
13465
13582
|
})),
|
|
13466
|
-
groupComponent: (
|
|
13467
|
-
}
|
|
13468
|
-
|
|
13469
|
-
_defineProperty(VictorySharedEvents, "defaultProps", {
|
|
13583
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)
|
|
13584
|
+
};
|
|
13585
|
+
VictorySharedEvents.defaultProps = {
|
|
13470
13586
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().createElement("g", null)
|
|
13471
|
-
}
|
|
13472
|
-
|
|
13473
|
-
_defineProperty(VictorySharedEvents, "contextType", victory_core__WEBPACK_IMPORTED_MODULE_14__["default"]);
|
|
13474
|
-
|
|
13587
|
+
};
|
|
13588
|
+
VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_14__["default"];
|
|
13475
13589
|
|
|
13590
|
+
//# sourceMappingURL=victory-shared-events.js.map
|
|
13476
13591
|
|
|
13477
13592
|
/***/ }),
|
|
13478
13593
|
|
|
@@ -13563,9 +13678,9 @@ function ascending(a, b) {
|
|
|
13563
13678
|
"use strict";
|
|
13564
13679
|
__webpack_require__.r(__webpack_exports__);
|
|
13565
13680
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13566
|
-
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
13567
|
-
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
13568
13681
|
/* harmony export */ "bisectCenter": () => (/* binding */ bisectCenter),
|
|
13682
|
+
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
13683
|
+
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
13569
13684
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13570
13685
|
/* harmony export */ });
|
|
13571
13686
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
@@ -13951,9 +14066,9 @@ function range(start, stop, step) {
|
|
|
13951
14066
|
"use strict";
|
|
13952
14067
|
__webpack_require__.r(__webpack_exports__);
|
|
13953
14068
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13954
|
-
/* harmony export */ "
|
|
14069
|
+
/* harmony export */ "ascendingDefined": () => (/* binding */ ascendingDefined),
|
|
13955
14070
|
/* harmony export */ "compareDefined": () => (/* binding */ compareDefined),
|
|
13956
|
-
/* harmony export */ "
|
|
14071
|
+
/* harmony export */ "default": () => (/* binding */ sort)
|
|
13957
14072
|
/* harmony export */ });
|
|
13958
14073
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
13959
14074
|
/* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permute.js */ "../../victory-vendor/node_modules/d3-array/src/permute.js");
|
|
@@ -14081,14 +14196,14 @@ function tickStep(start, stop, count) {
|
|
|
14081
14196
|
__webpack_require__.r(__webpack_exports__);
|
|
14082
14197
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14083
14198
|
/* harmony export */ "Color": () => (/* binding */ Color),
|
|
14084
|
-
/* harmony export */ "
|
|
14199
|
+
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
14085
14200
|
/* harmony export */ "brighter": () => (/* binding */ brighter),
|
|
14201
|
+
/* harmony export */ "darker": () => (/* binding */ darker),
|
|
14086
14202
|
/* harmony export */ "default": () => (/* binding */ color),
|
|
14087
|
-
/* harmony export */ "
|
|
14088
|
-
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
14089
|
-
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
14203
|
+
/* harmony export */ "hsl": () => (/* binding */ hsl),
|
|
14090
14204
|
/* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
|
|
14091
|
-
/* harmony export */ "
|
|
14205
|
+
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
14206
|
+
/* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert)
|
|
14092
14207
|
/* harmony export */ });
|
|
14093
14208
|
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-vendor/node_modules/d3-color/src/define.js");
|
|
14094
14209
|
|
|
@@ -14526,9 +14641,9 @@ function extend(parent, definition) {
|
|
|
14526
14641
|
"use strict";
|
|
14527
14642
|
__webpack_require__.r(__webpack_exports__);
|
|
14528
14643
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14644
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
14529
14645
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
14530
|
-
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
14531
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
14646
|
+
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
14532
14647
|
/* harmony export */ });
|
|
14533
14648
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-format/src/locale.js");
|
|
14534
14649
|
|
|
@@ -14674,8 +14789,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14674
14789
|
"use strict";
|
|
14675
14790
|
__webpack_require__.r(__webpack_exports__);
|
|
14676
14791
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14677
|
-
/* harmony export */ "
|
|
14678
|
-
/* harmony export */ "
|
|
14792
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
14793
|
+
/* harmony export */ "prefixExponent": () => (/* binding */ prefixExponent)
|
|
14679
14794
|
/* harmony export */ });
|
|
14680
14795
|
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../victory-vendor/node_modules/d3-format/src/formatDecimal.js");
|
|
14681
14796
|
|
|
@@ -14734,8 +14849,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14734
14849
|
"use strict";
|
|
14735
14850
|
__webpack_require__.r(__webpack_exports__);
|
|
14736
14851
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14737
|
-
/* harmony export */ "
|
|
14738
|
-
/* harmony export */ "
|
|
14852
|
+
/* harmony export */ "FormatSpecifier": () => (/* binding */ FormatSpecifier),
|
|
14853
|
+
/* harmony export */ "default": () => (/* binding */ formatSpecifier)
|
|
14739
14854
|
/* harmony export */ });
|
|
14740
14855
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
14741
14856
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
@@ -15217,9 +15332,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15217
15332
|
"use strict";
|
|
15218
15333
|
__webpack_require__.r(__webpack_exports__);
|
|
15219
15334
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15220
|
-
/* harmony export */ "
|
|
15335
|
+
/* harmony export */ "default": () => (/* binding */ nogamma),
|
|
15221
15336
|
/* harmony export */ "gamma": () => (/* binding */ gamma),
|
|
15222
|
-
/* harmony export */ "
|
|
15337
|
+
/* harmony export */ "hue": () => (/* binding */ hue)
|
|
15223
15338
|
/* harmony export */ });
|
|
15224
15339
|
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-vendor/node_modules/d3-interpolate/src/constant.js");
|
|
15225
15340
|
|
|
@@ -15779,10 +15894,10 @@ function constants(x) {
|
|
|
15779
15894
|
"use strict";
|
|
15780
15895
|
__webpack_require__.r(__webpack_exports__);
|
|
15781
15896
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15782
|
-
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
15783
15897
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
15784
|
-
/* harmony export */ "
|
|
15785
|
-
/* harmony export */ "
|
|
15898
|
+
/* harmony export */ "default": () => (/* binding */ continuous),
|
|
15899
|
+
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
15900
|
+
/* harmony export */ "transformer": () => (/* binding */ transformer)
|
|
15786
15901
|
/* harmony export */ });
|
|
15787
15902
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisect.js");
|
|
15788
15903
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -15930,9 +16045,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15930
16045
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15931
16046
|
/* harmony export */ "default": () => (/* binding */ diverging),
|
|
15932
16047
|
/* harmony export */ "divergingLog": () => (/* binding */ divergingLog),
|
|
15933
|
-
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog),
|
|
15934
16048
|
/* harmony export */ "divergingPow": () => (/* binding */ divergingPow),
|
|
15935
|
-
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt)
|
|
16049
|
+
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt),
|
|
16050
|
+
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog)
|
|
15936
16051
|
/* harmony export */ });
|
|
15937
16052
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/piecewise.js");
|
|
15938
16053
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -16107,32 +16222,32 @@ function identity(domain) {
|
|
|
16107
16222
|
__webpack_require__.r(__webpack_exports__);
|
|
16108
16223
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16109
16224
|
/* harmony export */ "scaleBand": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
16110
|
-
/* harmony export */ "
|
|
16225
|
+
/* harmony export */ "scaleDiverging": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
16226
|
+
/* harmony export */ "scaleDivergingLog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingLog),
|
|
16227
|
+
/* harmony export */ "scaleDivergingPow": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingPow),
|
|
16228
|
+
/* harmony export */ "scaleDivergingSqrt": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSqrt),
|
|
16229
|
+
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
16111
16230
|
/* harmony export */ "scaleIdentity": () => (/* reexport safe */ _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
16231
|
+
/* harmony export */ "scaleImplicit": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__.implicit),
|
|
16112
16232
|
/* harmony export */ "scaleLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
16113
16233
|
/* harmony export */ "scaleLog": () => (/* reexport safe */ _log_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
16114
|
-
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
16115
16234
|
/* harmony export */ "scaleOrdinal": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
16116
|
-
/* harmony export */ "
|
|
16235
|
+
/* harmony export */ "scalePoint": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__.point),
|
|
16117
16236
|
/* harmony export */ "scalePow": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
16118
|
-
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
16119
|
-
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
16120
16237
|
/* harmony export */ "scaleQuantile": () => (/* reexport safe */ _quantile_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
16121
16238
|
/* harmony export */ "scaleQuantize": () => (/* reexport safe */ _quantize_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
16122
|
-
/* harmony export */ "
|
|
16123
|
-
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
16124
|
-
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
16239
|
+
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
16125
16240
|
/* harmony export */ "scaleSequential": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
16126
16241
|
/* harmony export */ "scaleSequentialLog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialLog),
|
|
16127
16242
|
/* harmony export */ "scaleSequentialPow": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialPow),
|
|
16243
|
+
/* harmony export */ "scaleSequentialQuantile": () => (/* reexport safe */ _sequentialQuantile_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
16128
16244
|
/* harmony export */ "scaleSequentialSqrt": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSqrt),
|
|
16129
16245
|
/* harmony export */ "scaleSequentialSymlog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSymlog),
|
|
16130
|
-
/* harmony export */ "
|
|
16131
|
-
/* harmony export */ "
|
|
16132
|
-
/* harmony export */ "
|
|
16133
|
-
/* harmony export */ "
|
|
16134
|
-
/* harmony export */ "
|
|
16135
|
-
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
16246
|
+
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
16247
|
+
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
16248
|
+
/* harmony export */ "scaleThreshold": () => (/* reexport safe */ _threshold_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
16249
|
+
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
16250
|
+
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
16136
16251
|
/* harmony export */ "tickFormat": () => (/* reexport safe */ _tickFormat_js__WEBPACK_IMPORTED_MODULE_16__["default"])
|
|
16137
16252
|
/* harmony export */ });
|
|
16138
16253
|
/* harmony import */ var _band_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band.js */ "../../victory-vendor/node_modules/d3-scale/src/band.js");
|
|
@@ -16198,8 +16313,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16198
16313
|
"use strict";
|
|
16199
16314
|
__webpack_require__.r(__webpack_exports__);
|
|
16200
16315
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16201
|
-
/* harmony export */ "
|
|
16202
|
-
/* harmony export */ "
|
|
16316
|
+
/* harmony export */ "initInterpolator": () => (/* binding */ initInterpolator),
|
|
16317
|
+
/* harmony export */ "initRange": () => (/* binding */ initRange)
|
|
16203
16318
|
/* harmony export */ });
|
|
16204
16319
|
function initRange(domain, range) {
|
|
16205
16320
|
switch (arguments.length) {
|
|
@@ -16240,8 +16355,8 @@ function initInterpolator(domain, interpolator) {
|
|
|
16240
16355
|
"use strict";
|
|
16241
16356
|
__webpack_require__.r(__webpack_exports__);
|
|
16242
16357
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16243
|
-
/* harmony export */ "
|
|
16244
|
-
/* harmony export */ "
|
|
16358
|
+
/* harmony export */ "default": () => (/* binding */ linear),
|
|
16359
|
+
/* harmony export */ "linearish": () => (/* binding */ linearish)
|
|
16245
16360
|
/* harmony export */ });
|
|
16246
16361
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
16247
16362
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -16330,8 +16445,8 @@ function linear() {
|
|
|
16330
16445
|
"use strict";
|
|
16331
16446
|
__webpack_require__.r(__webpack_exports__);
|
|
16332
16447
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16333
|
-
/* harmony export */ "
|
|
16334
|
-
/* harmony export */ "
|
|
16448
|
+
/* harmony export */ "default": () => (/* binding */ log),
|
|
16449
|
+
/* harmony export */ "loggish": () => (/* binding */ loggish)
|
|
16335
16450
|
/* harmony export */ });
|
|
16336
16451
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
16337
16452
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../victory-vendor/node_modules/d3-format/src/formatSpecifier.js");
|
|
@@ -16543,8 +16658,8 @@ function number(x) {
|
|
|
16543
16658
|
"use strict";
|
|
16544
16659
|
__webpack_require__.r(__webpack_exports__);
|
|
16545
16660
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16546
|
-
/* harmony export */ "
|
|
16547
|
-
/* harmony export */ "
|
|
16661
|
+
/* harmony export */ "default": () => (/* binding */ ordinal),
|
|
16662
|
+
/* harmony export */ "implicit": () => (/* binding */ implicit)
|
|
16548
16663
|
/* harmony export */ });
|
|
16549
16664
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/internmap/src/index.js");
|
|
16550
16665
|
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init.js */ "../../victory-vendor/node_modules/d3-scale/src/init.js");
|
|
@@ -16607,8 +16722,8 @@ function ordinal() {
|
|
|
16607
16722
|
"use strict";
|
|
16608
16723
|
__webpack_require__.r(__webpack_exports__);
|
|
16609
16724
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16610
|
-
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
16611
16725
|
/* harmony export */ "default": () => (/* binding */ pow),
|
|
16726
|
+
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
16612
16727
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt)
|
|
16613
16728
|
/* harmony export */ });
|
|
16614
16729
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
@@ -16912,9 +17027,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16912
17027
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
16913
17028
|
/* harmony export */ "default": () => (/* binding */ sequential),
|
|
16914
17029
|
/* harmony export */ "sequentialLog": () => (/* binding */ sequentialLog),
|
|
16915
|
-
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog),
|
|
16916
17030
|
/* harmony export */ "sequentialPow": () => (/* binding */ sequentialPow),
|
|
16917
|
-
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt)
|
|
17031
|
+
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt),
|
|
17032
|
+
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog)
|
|
16918
17033
|
/* harmony export */ });
|
|
16919
17034
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
16920
17035
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/round.js");
|
|
@@ -17102,8 +17217,8 @@ function sequentialQuantile() {
|
|
|
17102
17217
|
"use strict";
|
|
17103
17218
|
__webpack_require__.r(__webpack_exports__);
|
|
17104
17219
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17105
|
-
/* harmony export */ "
|
|
17106
|
-
/* harmony export */ "
|
|
17220
|
+
/* harmony export */ "default": () => (/* binding */ symlog),
|
|
17221
|
+
/* harmony export */ "symlogish": () => (/* binding */ symlogish)
|
|
17107
17222
|
/* harmony export */ });
|
|
17108
17223
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
17109
17224
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -17395,11 +17510,11 @@ function utcTime() {
|
|
|
17395
17510
|
"use strict";
|
|
17396
17511
|
__webpack_require__.r(__webpack_exports__);
|
|
17397
17512
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17513
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
17398
17514
|
/* harmony export */ "timeFormat": () => (/* binding */ timeFormat),
|
|
17399
17515
|
/* harmony export */ "timeParse": () => (/* binding */ timeParse),
|
|
17400
17516
|
/* harmony export */ "utcFormat": () => (/* binding */ utcFormat),
|
|
17401
|
-
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
17402
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
17517
|
+
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
17403
17518
|
/* harmony export */ });
|
|
17404
17519
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-time-format/src/locale.js");
|
|
17405
17520
|
|
|
@@ -18149,8 +18264,8 @@ function formatUnixTimestampSeconds(d) {
|
|
|
18149
18264
|
"use strict";
|
|
18150
18265
|
__webpack_require__.r(__webpack_exports__);
|
|
18151
18266
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18152
|
-
/* harmony export */ "
|
|
18153
|
-
/* harmony export */ "
|
|
18267
|
+
/* harmony export */ "days": () => (/* binding */ days),
|
|
18268
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18154
18269
|
/* harmony export */ });
|
|
18155
18270
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
18156
18271
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -18179,12 +18294,12 @@ var days = day.range;
|
|
|
18179
18294
|
"use strict";
|
|
18180
18295
|
__webpack_require__.r(__webpack_exports__);
|
|
18181
18296
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18182
|
-
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
18183
|
-
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
18184
|
-
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
18185
18297
|
/* harmony export */ "durationDay": () => (/* binding */ durationDay),
|
|
18186
|
-
/* harmony export */ "
|
|
18298
|
+
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
18299
|
+
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
18187
18300
|
/* harmony export */ "durationMonth": () => (/* binding */ durationMonth),
|
|
18301
|
+
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
18302
|
+
/* harmony export */ "durationWeek": () => (/* binding */ durationWeek),
|
|
18188
18303
|
/* harmony export */ "durationYear": () => (/* binding */ durationYear)
|
|
18189
18304
|
/* harmony export */ });
|
|
18190
18305
|
const durationSecond = 1000;
|
|
@@ -18466,10 +18581,10 @@ var seconds = second.range;
|
|
|
18466
18581
|
"use strict";
|
|
18467
18582
|
__webpack_require__.r(__webpack_exports__);
|
|
18468
18583
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18469
|
-
/* harmony export */ "
|
|
18470
|
-
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
18584
|
+
/* harmony export */ "timeTickInterval": () => (/* binding */ timeTickInterval),
|
|
18471
18585
|
/* harmony export */ "timeTicks": () => (/* binding */ timeTicks),
|
|
18472
|
-
/* harmony export */ "
|
|
18586
|
+
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
18587
|
+
/* harmony export */ "utcTicks": () => (/* binding */ utcTicks)
|
|
18473
18588
|
/* harmony export */ });
|
|
18474
18589
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisector.js");
|
|
18475
18590
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
@@ -18696,20 +18811,20 @@ var utcMonths = utcMonth.range;
|
|
|
18696
18811
|
"use strict";
|
|
18697
18812
|
__webpack_require__.r(__webpack_exports__);
|
|
18698
18813
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18699
|
-
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
18700
|
-
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
18701
|
-
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
18702
|
-
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
18703
|
-
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
18704
18814
|
/* harmony export */ "utcFriday": () => (/* binding */ utcFriday),
|
|
18815
|
+
/* harmony export */ "utcFridays": () => (/* binding */ utcFridays),
|
|
18816
|
+
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
18817
|
+
/* harmony export */ "utcMondays": () => (/* binding */ utcMondays),
|
|
18705
18818
|
/* harmony export */ "utcSaturday": () => (/* binding */ utcSaturday),
|
|
18819
|
+
/* harmony export */ "utcSaturdays": () => (/* binding */ utcSaturdays),
|
|
18820
|
+
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
18706
18821
|
/* harmony export */ "utcSundays": () => (/* binding */ utcSundays),
|
|
18707
|
-
/* harmony export */ "
|
|
18708
|
-
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
18709
|
-
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays),
|
|
18822
|
+
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
18710
18823
|
/* harmony export */ "utcThursdays": () => (/* binding */ utcThursdays),
|
|
18711
|
-
/* harmony export */ "
|
|
18712
|
-
/* harmony export */ "
|
|
18824
|
+
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
18825
|
+
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
18826
|
+
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
18827
|
+
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays)
|
|
18713
18828
|
/* harmony export */ });
|
|
18714
18829
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
18715
18830
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -18798,20 +18913,20 @@ var utcYears = utcYear.range;
|
|
|
18798
18913
|
"use strict";
|
|
18799
18914
|
__webpack_require__.r(__webpack_exports__);
|
|
18800
18915
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18801
|
-
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
18802
|
-
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
18803
|
-
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
18804
|
-
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
18805
|
-
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
18806
18916
|
/* harmony export */ "friday": () => (/* binding */ friday),
|
|
18917
|
+
/* harmony export */ "fridays": () => (/* binding */ fridays),
|
|
18918
|
+
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
18919
|
+
/* harmony export */ "mondays": () => (/* binding */ mondays),
|
|
18807
18920
|
/* harmony export */ "saturday": () => (/* binding */ saturday),
|
|
18921
|
+
/* harmony export */ "saturdays": () => (/* binding */ saturdays),
|
|
18922
|
+
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
18808
18923
|
/* harmony export */ "sundays": () => (/* binding */ sundays),
|
|
18809
|
-
/* harmony export */ "
|
|
18810
|
-
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
18811
|
-
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays),
|
|
18924
|
+
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
18812
18925
|
/* harmony export */ "thursdays": () => (/* binding */ thursdays),
|
|
18813
|
-
/* harmony export */ "
|
|
18814
|
-
/* harmony export */ "
|
|
18926
|
+
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
18927
|
+
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
18928
|
+
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
18929
|
+
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays)
|
|
18815
18930
|
/* harmony export */ });
|
|
18816
18931
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
18817
18932
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -18900,8 +19015,8 @@ var years = year.range;
|
|
|
18900
19015
|
"use strict";
|
|
18901
19016
|
__webpack_require__.r(__webpack_exports__);
|
|
18902
19017
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18903
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
18904
19018
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
19019
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
18905
19020
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
18906
19021
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
18907
19022
|
/* harmony export */ });
|