victory-polar-axis 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-polar-axis.js +1164 -1035
- package/dist/victory-polar-axis.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-polar-axis.js +23 -31
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/victory-polar-axis.js +23 -30
- package/package.json +5 -5
- package/src/helper-methods.js +27 -27
- package/src/index.d.ts +1 -1
- package/src/victory-polar-axis.js +27 -27
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryPolarAxis"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryPolarAxis"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -20,9 +20,9 @@ return /******/ (() => { // webpackBootstrap
|
|
|
20
20
|
"use strict";
|
|
21
21
|
__webpack_require__.r(__webpack_exports__);
|
|
22
22
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23
|
+
/* harmony export */ "getBaseProps": () => (/* binding */ getBaseProps),
|
|
23
24
|
/* harmony export */ "getScale": () => (/* binding */ getScale),
|
|
24
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles)
|
|
25
|
-
/* harmony export */ "getBaseProps": () => (/* binding */ getBaseProps)
|
|
25
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles)
|
|
26
26
|
/* harmony export */ });
|
|
27
27
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
28
28
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -471,10 +471,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
471
471
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
|
|
472
472
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
473
473
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
474
|
-
/* harmony import */ var
|
|
475
|
-
/* harmony import */ var
|
|
476
|
-
/* harmony import */ var
|
|
477
|
-
/* harmony import */ var
|
|
474
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
475
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
|
|
476
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/axis.js");
|
|
477
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
478
478
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
479
479
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line-segment.js");
|
|
480
480
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
@@ -490,6 +490,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
490
490
|
|
|
491
491
|
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; }
|
|
492
492
|
|
|
493
|
+
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; }
|
|
494
|
+
|
|
493
495
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
494
496
|
|
|
495
497
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -510,7 +512,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
510
512
|
|
|
511
513
|
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); }
|
|
512
514
|
|
|
513
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
515
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
514
516
|
|
|
515
517
|
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); }; }
|
|
516
518
|
|
|
@@ -520,9 +522,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
520
522
|
|
|
521
523
|
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; } }
|
|
522
524
|
|
|
523
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
524
|
-
|
|
525
|
-
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; }
|
|
525
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
526
526
|
|
|
527
527
|
|
|
528
528
|
|
|
@@ -649,7 +649,7 @@ var VictoryPolarAxis = /*#__PURE__*/function (_React$Component) {
|
|
|
649
649
|
key: "render",
|
|
650
650
|
value: function render() {
|
|
651
651
|
var animationWhitelist = VictoryPolarAxis.animationWhitelist;
|
|
652
|
-
var props =
|
|
652
|
+
var props = victory_core__WEBPACK_IMPORTED_MODULE_3__.modifyProps(this.props, fallbackProps);
|
|
653
653
|
|
|
654
654
|
if (this.shouldAnimate()) {
|
|
655
655
|
return this.animateComponent(props, animationWhitelist);
|
|
@@ -663,97 +663,88 @@ var VictoryPolarAxis = /*#__PURE__*/function (_React$Component) {
|
|
|
663
663
|
return VictoryPolarAxis;
|
|
664
664
|
}((react__WEBPACK_IMPORTED_MODULE_2___default().Component));
|
|
665
665
|
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
_defineProperty(VictoryPolarAxis, "role", "axis");
|
|
671
|
-
|
|
672
|
-
_defineProperty(VictoryPolarAxis, "defaultTransitions", {
|
|
666
|
+
VictoryPolarAxis.animationWhitelist = ["style", "domain", "range", "tickCount", "tickValues", "padding", "width", "height"];
|
|
667
|
+
VictoryPolarAxis.displayName = "VictoryAxis";
|
|
668
|
+
VictoryPolarAxis.role = "axis";
|
|
669
|
+
VictoryPolarAxis.defaultTransitions = {
|
|
673
670
|
onExit: {
|
|
674
671
|
duration: 500
|
|
675
672
|
},
|
|
676
673
|
onEnter: {
|
|
677
674
|
duration: 500
|
|
678
675
|
}
|
|
679
|
-
}
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
y: prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string))
|
|
676
|
+
};
|
|
677
|
+
VictoryPolarAxis.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.baseProps), {}, {
|
|
678
|
+
axisAngle: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
679
|
+
axisComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
680
|
+
axisLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
681
|
+
axisValue: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object)]),
|
|
682
|
+
categories: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({
|
|
683
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)),
|
|
684
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_5___default().string))
|
|
689
685
|
})]),
|
|
690
|
-
circularAxisComponent: (
|
|
691
|
-
circularGridComponent: (
|
|
692
|
-
containerComponent: (
|
|
693
|
-
dependentAxis: (
|
|
694
|
-
disableInlineStyles: (
|
|
695
|
-
endAngle: (
|
|
696
|
-
events:
|
|
697
|
-
target:
|
|
698
|
-
eventKey:
|
|
699
|
-
eventHandlers: (
|
|
686
|
+
circularAxisComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
687
|
+
circularGridComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
688
|
+
containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
689
|
+
dependentAxis: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),
|
|
690
|
+
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().bool),
|
|
691
|
+
endAngle: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
692
|
+
events: prop_types__WEBPACK_IMPORTED_MODULE_5___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({
|
|
693
|
+
target: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(["axis", "axisLabel", "grid", "ticks", "tickLabels"]),
|
|
694
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().array), victory_core__WEBPACK_IMPORTED_MODULE_6__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_6__.integer, victory_core__WEBPACK_IMPORTED_MODULE_6__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]),
|
|
695
|
+
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object)
|
|
700
696
|
})),
|
|
701
|
-
gridComponent: (
|
|
697
|
+
gridComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
702
698
|
innerRadius: victory_core__WEBPACK_IMPORTED_MODULE_6__.nonNegative,
|
|
703
|
-
labelPlacement:
|
|
704
|
-
startAngle: (
|
|
705
|
-
stringMap: (
|
|
706
|
-
style:
|
|
707
|
-
parent: (
|
|
708
|
-
axis: (
|
|
709
|
-
axisLabel: (
|
|
710
|
-
grid: (
|
|
711
|
-
ticks: (
|
|
712
|
-
tickLabels: (
|
|
699
|
+
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
700
|
+
startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
701
|
+
stringMap: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
|
|
702
|
+
style: prop_types__WEBPACK_IMPORTED_MODULE_5___default().shape({
|
|
703
|
+
parent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
|
|
704
|
+
axis: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
|
|
705
|
+
axisLabel: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
|
|
706
|
+
grid: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
|
|
707
|
+
ticks: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
|
|
708
|
+
tickLabels: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object)
|
|
713
709
|
}),
|
|
714
|
-
tickComponent: (
|
|
710
|
+
tickComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
715
711
|
tickCount: victory_core__WEBPACK_IMPORTED_MODULE_6__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_6__.integer, victory_core__WEBPACK_IMPORTED_MODULE_6__.greaterThanZero]),
|
|
716
|
-
tickFormat:
|
|
717
|
-
tickLabelComponent: (
|
|
712
|
+
tickFormat: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().func), victory_core__WEBPACK_IMPORTED_MODULE_6__.homogeneousArray]),
|
|
713
|
+
tickLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
718
714
|
tickValues: victory_core__WEBPACK_IMPORTED_MODULE_6__.homogeneousArray
|
|
719
|
-
})
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__["default"], null),
|
|
715
|
+
});
|
|
716
|
+
VictoryPolarAxis.defaultProps = {
|
|
717
|
+
axisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.LineSegment, null),
|
|
718
|
+
axisLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryLabel, null),
|
|
719
|
+
circularAxisComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.Arc, null),
|
|
720
|
+
circularGridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.Arc, null),
|
|
721
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryContainer, null),
|
|
727
722
|
endAngle: 360,
|
|
728
|
-
gridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__
|
|
723
|
+
gridComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.LineSegment, null),
|
|
729
724
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", {
|
|
730
725
|
role: "presentation"
|
|
731
726
|
}),
|
|
732
727
|
labelPlacement: "parallel",
|
|
733
728
|
startAngle: 0,
|
|
734
729
|
standalone: true,
|
|
735
|
-
theme: victory_core__WEBPACK_IMPORTED_MODULE_11__
|
|
736
|
-
tickComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__
|
|
737
|
-
tickLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
_defineProperty(VictoryPolarAxis, "getAxis", victory_core__WEBPACK_IMPORTED_MODULE_4__.getAxis);
|
|
743
|
-
|
|
744
|
-
_defineProperty(VictoryPolarAxis, "getScale", _helper_methods__WEBPACK_IMPORTED_MODULE_12__.getScale);
|
|
730
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_11__.VictoryTheme.grayscale,
|
|
731
|
+
tickComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.LineSegment, null),
|
|
732
|
+
tickLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryLabel, null)
|
|
733
|
+
};
|
|
734
|
+
VictoryPolarAxis.getDomain = victory_core__WEBPACK_IMPORTED_MODULE_3__.getDomain;
|
|
735
|
+
VictoryPolarAxis.getAxis = victory_core__WEBPACK_IMPORTED_MODULE_3__.getAxis;
|
|
736
|
+
VictoryPolarAxis.getScale = _helper_methods__WEBPACK_IMPORTED_MODULE_12__.getScale;
|
|
745
737
|
|
|
746
|
-
|
|
738
|
+
VictoryPolarAxis.getStyles = function (props) {
|
|
747
739
|
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_12__.getStyles)(props, fallbackProps.style);
|
|
748
|
-
}
|
|
740
|
+
};
|
|
749
741
|
|
|
750
|
-
|
|
742
|
+
VictoryPolarAxis.getBaseProps = function (props) {
|
|
751
743
|
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_12__.getBaseProps)(props, fallbackProps);
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
_defineProperty(VictoryPolarAxis, "expectedComponents", ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"]);
|
|
744
|
+
};
|
|
755
745
|
|
|
756
|
-
|
|
746
|
+
VictoryPolarAxis.expectedComponents = ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"];
|
|
747
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__.addEvents)(VictoryPolarAxis, options));
|
|
757
748
|
|
|
758
749
|
/***/ }),
|
|
759
750
|
|
|
@@ -6484,7 +6475,7 @@ var printWarning = function() {};
|
|
|
6484
6475
|
if (true) {
|
|
6485
6476
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6486
6477
|
var loggedTypeFailures = {};
|
|
6487
|
-
var has =
|
|
6478
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6488
6479
|
|
|
6489
6480
|
printWarning = function(text) {
|
|
6490
6481
|
var message = 'Warning: ' + text;
|
|
@@ -6496,7 +6487,7 @@ if (true) {
|
|
|
6496
6487
|
// This error was thrown as a convenience so that you can use this stack
|
|
6497
6488
|
// to find the callsite that caused this warning to fire.
|
|
6498
6489
|
throw new Error(message);
|
|
6499
|
-
} catch (x) {}
|
|
6490
|
+
} catch (x) { /**/ }
|
|
6500
6491
|
};
|
|
6501
6492
|
}
|
|
6502
6493
|
|
|
@@ -6525,7 +6516,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
6525
6516
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6526
6517
|
var err = Error(
|
|
6527
6518
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6528
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
6519
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6520
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6529
6521
|
);
|
|
6530
6522
|
err.name = 'Invariant Violation';
|
|
6531
6523
|
throw err;
|
|
@@ -6592,13 +6584,13 @@ module.exports = checkPropTypes;
|
|
|
6592
6584
|
|
|
6593
6585
|
|
|
6594
6586
|
|
|
6595
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6587
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6596
6588
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6597
6589
|
|
|
6598
6590
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6591
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6599
6592
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
6600
6593
|
|
|
6601
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6602
6594
|
var printWarning = function() {};
|
|
6603
6595
|
|
|
6604
6596
|
if (true) {
|
|
@@ -6699,6 +6691,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6699
6691
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6700
6692
|
var ReactPropTypes = {
|
|
6701
6693
|
array: createPrimitiveTypeChecker('array'),
|
|
6694
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6702
6695
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
6703
6696
|
func: createPrimitiveTypeChecker('function'),
|
|
6704
6697
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -6744,8 +6737,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6744
6737
|
* is prohibitively expensive if they are created too often, such as what
|
|
6745
6738
|
* happens in oneOfType() for any type before the one that matched.
|
|
6746
6739
|
*/
|
|
6747
|
-
function PropTypeError(message) {
|
|
6740
|
+
function PropTypeError(message, data) {
|
|
6748
6741
|
this.message = message;
|
|
6742
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
6749
6743
|
this.stack = '';
|
|
6750
6744
|
}
|
|
6751
6745
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -6780,7 +6774,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6780
6774
|
) {
|
|
6781
6775
|
printWarning(
|
|
6782
6776
|
'You are manually calling a React.PropTypes validation ' +
|
|
6783
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
6777
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6784
6778
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6785
6779
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6786
6780
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -6819,7 +6813,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6819
6813
|
// 'of type `object`'.
|
|
6820
6814
|
var preciseType = getPreciseType(propValue);
|
|
6821
6815
|
|
|
6822
|
-
return new PropTypeError(
|
|
6816
|
+
return new PropTypeError(
|
|
6817
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6818
|
+
{expectedType: expectedType}
|
|
6819
|
+
);
|
|
6823
6820
|
}
|
|
6824
6821
|
return null;
|
|
6825
6822
|
}
|
|
@@ -6963,14 +6960,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6963
6960
|
}
|
|
6964
6961
|
|
|
6965
6962
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6963
|
+
var expectedTypes = [];
|
|
6966
6964
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6967
6965
|
var checker = arrayOfTypeCheckers[i];
|
|
6968
|
-
|
|
6966
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6967
|
+
if (checkerResult == null) {
|
|
6969
6968
|
return null;
|
|
6970
6969
|
}
|
|
6970
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6971
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
6972
|
+
}
|
|
6971
6973
|
}
|
|
6972
|
-
|
|
6973
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
6974
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6975
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6974
6976
|
}
|
|
6975
6977
|
return createChainableTypeChecker(validate);
|
|
6976
6978
|
}
|
|
@@ -6985,6 +6987,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6985
6987
|
return createChainableTypeChecker(validate);
|
|
6986
6988
|
}
|
|
6987
6989
|
|
|
6990
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6991
|
+
return new PropTypeError(
|
|
6992
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6993
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6994
|
+
);
|
|
6995
|
+
}
|
|
6996
|
+
|
|
6988
6997
|
function createShapeTypeChecker(shapeTypes) {
|
|
6989
6998
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6990
6999
|
var propValue = props[propName];
|
|
@@ -6994,8 +7003,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6994
7003
|
}
|
|
6995
7004
|
for (var key in shapeTypes) {
|
|
6996
7005
|
var checker = shapeTypes[key];
|
|
6997
|
-
if (
|
|
6998
|
-
|
|
7006
|
+
if (typeof checker !== 'function') {
|
|
7007
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6999
7008
|
}
|
|
7000
7009
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
7001
7010
|
if (error) {
|
|
@@ -7014,16 +7023,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7014
7023
|
if (propType !== 'object') {
|
|
7015
7024
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
7016
7025
|
}
|
|
7017
|
-
// We need to check all keys in case some are required but missing from
|
|
7018
|
-
// props.
|
|
7026
|
+
// We need to check all keys in case some are required but missing from props.
|
|
7019
7027
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
7020
7028
|
for (var key in allKeys) {
|
|
7021
7029
|
var checker = shapeTypes[key];
|
|
7030
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
7031
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
7032
|
+
}
|
|
7022
7033
|
if (!checker) {
|
|
7023
7034
|
return new PropTypeError(
|
|
7024
7035
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
7025
7036
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
7026
|
-
'\nValid keys: ' +
|
|
7037
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
7027
7038
|
);
|
|
7028
7039
|
}
|
|
7029
7040
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -7192,7 +7203,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7192
7203
|
*/
|
|
7193
7204
|
|
|
7194
7205
|
if (true) {
|
|
7195
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
7206
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
7196
7207
|
|
|
7197
7208
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7198
7209
|
// http://fb.me/prop-types-in-prod
|
|
@@ -7226,115 +7237,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
7226
7237
|
|
|
7227
7238
|
/***/ }),
|
|
7228
7239
|
|
|
7229
|
-
/***/ "../../../node_modules/
|
|
7230
|
-
|
|
7231
|
-
!*** ../../../node_modules/
|
|
7232
|
-
|
|
7240
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
7241
|
+
/*!***************************************************!*\
|
|
7242
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
7243
|
+
\***************************************************/
|
|
7233
7244
|
/***/ ((module) => {
|
|
7234
7245
|
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
var isArray = Array.isArray;
|
|
7239
|
-
var keyList = Object.keys;
|
|
7240
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
7241
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
7242
|
-
|
|
7243
|
-
function equal(a, b) {
|
|
7244
|
-
// fast-deep-equal index.js 2.0.1
|
|
7245
|
-
if (a === b) return true;
|
|
7246
|
-
|
|
7247
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7248
|
-
var arrA = isArray(a)
|
|
7249
|
-
, arrB = isArray(b)
|
|
7250
|
-
, i
|
|
7251
|
-
, length
|
|
7252
|
-
, key;
|
|
7253
|
-
|
|
7254
|
-
if (arrA && arrB) {
|
|
7255
|
-
length = a.length;
|
|
7256
|
-
if (length != b.length) return false;
|
|
7257
|
-
for (i = length; i-- !== 0;)
|
|
7258
|
-
if (!equal(a[i], b[i])) return false;
|
|
7259
|
-
return true;
|
|
7260
|
-
}
|
|
7261
|
-
|
|
7262
|
-
if (arrA != arrB) return false;
|
|
7263
|
-
|
|
7264
|
-
var dateA = a instanceof Date
|
|
7265
|
-
, dateB = b instanceof Date;
|
|
7266
|
-
if (dateA != dateB) return false;
|
|
7267
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
7268
|
-
|
|
7269
|
-
var regexpA = a instanceof RegExp
|
|
7270
|
-
, regexpB = b instanceof RegExp;
|
|
7271
|
-
if (regexpA != regexpB) return false;
|
|
7272
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
7273
|
-
|
|
7274
|
-
var keys = keyList(a);
|
|
7275
|
-
length = keys.length;
|
|
7276
|
-
|
|
7277
|
-
if (length !== keyList(b).length)
|
|
7278
|
-
return false;
|
|
7279
|
-
|
|
7280
|
-
for (i = length; i-- !== 0;)
|
|
7281
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
7282
|
-
// end fast-deep-equal
|
|
7283
|
-
|
|
7284
|
-
// start react-fast-compare
|
|
7285
|
-
// custom handling for DOM elements
|
|
7286
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
7287
|
-
return a === b;
|
|
7288
|
-
|
|
7289
|
-
// custom handling for React
|
|
7290
|
-
for (i = length; i-- !== 0;) {
|
|
7291
|
-
key = keys[i];
|
|
7292
|
-
if (key === '_owner' && a.$$typeof) {
|
|
7293
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
7294
|
-
// _owner contains circular references
|
|
7295
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
7296
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
7297
|
-
continue;
|
|
7298
|
-
} else {
|
|
7299
|
-
// all other properties should be traversed as usual
|
|
7300
|
-
if (!equal(a[key], b[key])) return false;
|
|
7301
|
-
}
|
|
7302
|
-
}
|
|
7303
|
-
// end react-fast-compare
|
|
7304
|
-
|
|
7305
|
-
// fast-deep-equal index.js 2.0.1
|
|
7306
|
-
return true;
|
|
7307
|
-
}
|
|
7308
|
-
|
|
7309
|
-
return a !== a && b !== b;
|
|
7310
|
-
}
|
|
7311
|
-
// end fast-deep-equal
|
|
7312
|
-
|
|
7313
|
-
module.exports = function exportedEqual(a, b) {
|
|
7314
|
-
try {
|
|
7315
|
-
return equal(a, b);
|
|
7316
|
-
} catch (error) {
|
|
7317
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
7318
|
-
// warn on circular references, don't crash
|
|
7319
|
-
// browsers give this different errors name and messages:
|
|
7320
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7321
|
-
// firefox: "InternalError", too much recursion"
|
|
7322
|
-
// edge: "Error", "Out of stack space"
|
|
7323
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
7324
|
-
return false;
|
|
7325
|
-
}
|
|
7326
|
-
// some other error. we should definitely know about these
|
|
7327
|
-
throw error;
|
|
7328
|
-
}
|
|
7329
|
-
};
|
|
7246
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
7330
7247
|
|
|
7331
7248
|
|
|
7332
7249
|
/***/ }),
|
|
7333
7250
|
|
|
7334
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
7335
|
-
|
|
7336
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
7337
|
-
|
|
7251
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
7252
|
+
/*!******************************************************************************************!*\
|
|
7253
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7254
|
+
\******************************************************************************************/
|
|
7338
7255
|
/***/ ((__unused_webpack_module, exports) => {
|
|
7339
7256
|
|
|
7340
7257
|
"use strict";
|
|
@@ -7523,20 +7440,164 @@ exports.typeOf = typeOf;
|
|
|
7523
7440
|
|
|
7524
7441
|
/***/ }),
|
|
7525
7442
|
|
|
7526
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
7527
|
-
|
|
7528
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
7529
|
-
|
|
7443
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
7444
|
+
/*!***********************************************************************!*\
|
|
7445
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
7446
|
+
\***********************************************************************/
|
|
7530
7447
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7531
7448
|
|
|
7532
7449
|
"use strict";
|
|
7533
7450
|
|
|
7534
7451
|
|
|
7535
7452
|
if (false) {} else {
|
|
7536
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
7453
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
7537
7454
|
}
|
|
7538
7455
|
|
|
7539
7456
|
|
|
7457
|
+
/***/ }),
|
|
7458
|
+
|
|
7459
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
7460
|
+
/*!*********************************************************!*\
|
|
7461
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
7462
|
+
\*********************************************************/
|
|
7463
|
+
/***/ ((module) => {
|
|
7464
|
+
|
|
7465
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7466
|
+
|
|
7467
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
7468
|
+
var hasMap = typeof Map === 'function';
|
|
7469
|
+
var hasSet = typeof Set === 'function';
|
|
7470
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7471
|
+
|
|
7472
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7473
|
+
|
|
7474
|
+
function equal(a, b) {
|
|
7475
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7476
|
+
if (a === b) return true;
|
|
7477
|
+
|
|
7478
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7479
|
+
if (a.constructor !== b.constructor) return false;
|
|
7480
|
+
|
|
7481
|
+
var length, i, keys;
|
|
7482
|
+
if (Array.isArray(a)) {
|
|
7483
|
+
length = a.length;
|
|
7484
|
+
if (length != b.length) return false;
|
|
7485
|
+
for (i = length; i-- !== 0;)
|
|
7486
|
+
if (!equal(a[i], b[i])) return false;
|
|
7487
|
+
return true;
|
|
7488
|
+
}
|
|
7489
|
+
|
|
7490
|
+
// START: Modifications:
|
|
7491
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7492
|
+
// to co-exist with es5.
|
|
7493
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7494
|
+
// Basically, take:
|
|
7495
|
+
//
|
|
7496
|
+
// ```js
|
|
7497
|
+
// for (i of a.entries())
|
|
7498
|
+
// if (!b.has(i[0])) return false;
|
|
7499
|
+
// ```
|
|
7500
|
+
//
|
|
7501
|
+
// ... and convert to:
|
|
7502
|
+
//
|
|
7503
|
+
// ```js
|
|
7504
|
+
// it = a.entries();
|
|
7505
|
+
// while (!(i = it.next()).done)
|
|
7506
|
+
// if (!b.has(i.value[0])) return false;
|
|
7507
|
+
// ```
|
|
7508
|
+
//
|
|
7509
|
+
// **Note**: `i` access switches to `i.value`.
|
|
7510
|
+
var it;
|
|
7511
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7512
|
+
if (a.size !== b.size) return false;
|
|
7513
|
+
it = a.entries();
|
|
7514
|
+
while (!(i = it.next()).done)
|
|
7515
|
+
if (!b.has(i.value[0])) return false;
|
|
7516
|
+
it = a.entries();
|
|
7517
|
+
while (!(i = it.next()).done)
|
|
7518
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7519
|
+
return true;
|
|
7520
|
+
}
|
|
7521
|
+
|
|
7522
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7523
|
+
if (a.size !== b.size) return false;
|
|
7524
|
+
it = a.entries();
|
|
7525
|
+
while (!(i = it.next()).done)
|
|
7526
|
+
if (!b.has(i.value[0])) return false;
|
|
7527
|
+
return true;
|
|
7528
|
+
}
|
|
7529
|
+
// END: Modifications
|
|
7530
|
+
|
|
7531
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7532
|
+
length = a.length;
|
|
7533
|
+
if (length != b.length) return false;
|
|
7534
|
+
for (i = length; i-- !== 0;)
|
|
7535
|
+
if (a[i] !== b[i]) return false;
|
|
7536
|
+
return true;
|
|
7537
|
+
}
|
|
7538
|
+
|
|
7539
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7540
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7541
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7542
|
+
|
|
7543
|
+
keys = Object.keys(a);
|
|
7544
|
+
length = keys.length;
|
|
7545
|
+
if (length !== Object.keys(b).length) return false;
|
|
7546
|
+
|
|
7547
|
+
for (i = length; i-- !== 0;)
|
|
7548
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7549
|
+
// END: fast-deep-equal
|
|
7550
|
+
|
|
7551
|
+
// START: react-fast-compare
|
|
7552
|
+
// custom handling for DOM elements
|
|
7553
|
+
if (hasElementType && a instanceof Element) return false;
|
|
7554
|
+
|
|
7555
|
+
// custom handling for React/Preact
|
|
7556
|
+
for (i = length; i-- !== 0;) {
|
|
7557
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7558
|
+
// React-specific: avoid traversing React elements' _owner
|
|
7559
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7560
|
+
// __v = $_original / $_vnode
|
|
7561
|
+
// __o = $_owner
|
|
7562
|
+
// These properties contain circular references and are not needed when
|
|
7563
|
+
// comparing the actual elements (and not their owners)
|
|
7564
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7565
|
+
|
|
7566
|
+
continue;
|
|
7567
|
+
}
|
|
7568
|
+
|
|
7569
|
+
// all other properties should be traversed as usual
|
|
7570
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7571
|
+
}
|
|
7572
|
+
// END: react-fast-compare
|
|
7573
|
+
|
|
7574
|
+
// START: fast-deep-equal
|
|
7575
|
+
return true;
|
|
7576
|
+
}
|
|
7577
|
+
|
|
7578
|
+
return a !== a && b !== b;
|
|
7579
|
+
}
|
|
7580
|
+
// end fast-deep-equal
|
|
7581
|
+
|
|
7582
|
+
module.exports = function isEqual(a, b) {
|
|
7583
|
+
try {
|
|
7584
|
+
return equal(a, b);
|
|
7585
|
+
} catch (error) {
|
|
7586
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7587
|
+
// warn on circular references, don't crash
|
|
7588
|
+
// browsers give this different errors name and messages:
|
|
7589
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7590
|
+
// firefox: "InternalError", too much recursion"
|
|
7591
|
+
// edge: "Error", "Out of stack space"
|
|
7592
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7593
|
+
return false;
|
|
7594
|
+
}
|
|
7595
|
+
// some other error. we should definitely know about these
|
|
7596
|
+
throw error;
|
|
7597
|
+
}
|
|
7598
|
+
};
|
|
7599
|
+
|
|
7600
|
+
|
|
7540
7601
|
/***/ }),
|
|
7541
7602
|
|
|
7542
7603
|
/***/ "../../victory-core/es/victory-animation/util.js":
|
|
@@ -7548,11 +7609,11 @@ if (false) {} else {
|
|
|
7548
7609
|
"use strict";
|
|
7549
7610
|
__webpack_require__.r(__webpack_exports__);
|
|
7550
7611
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7551
|
-
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
7552
|
-
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
7553
7612
|
/* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
|
|
7613
|
+
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
7554
7614
|
/* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
|
|
7555
7615
|
/* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
|
|
7616
|
+
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
7556
7617
|
/* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
|
|
7557
7618
|
/* harmony export */ });
|
|
7558
7619
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
|
|
@@ -7597,7 +7658,7 @@ var isInterpolatable = function (obj) {
|
|
|
7597
7658
|
// component is only going to call the function (in which case it's
|
|
7598
7659
|
// safely interpolatable) or if it's going to access special properties
|
|
7599
7660
|
// (in which case our function generated from `interpolateFunction` will
|
|
7600
|
-
// most likely cause an error. We could check for enumerable properties
|
|
7661
|
+
// most likely cause an error). We could check for enumerable properties
|
|
7601
7662
|
// on the function object here to see if it's a "plain" function, but
|
|
7602
7663
|
// let's just require that components prevent such function props from
|
|
7603
7664
|
// being animated in the first place.
|
|
@@ -7649,7 +7710,7 @@ var interpolateFunction = function (a, b) {
|
|
|
7649
7710
|
}
|
|
7650
7711
|
|
|
7651
7712
|
return function () {
|
|
7652
|
-
/* eslint-disable no-invalid-this */
|
|
7713
|
+
/* eslint-disable no-invalid-this, prefer-rest-params */
|
|
7653
7714
|
var aval = typeof a === "function" ? a.apply(this, arguments) : a;
|
|
7654
7715
|
var bval = typeof b === "function" ? b.apply(this, arguments) : b;
|
|
7655
7716
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
|
|
@@ -7762,15 +7823,18 @@ var victoryInterpolator = function (a, b) {
|
|
|
7762
7823
|
}
|
|
7763
7824
|
|
|
7764
7825
|
if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
|
|
7826
|
+
// @ts-expect-error These generics are tough, but they work :)
|
|
7765
7827
|
return interpolateObject(a, b);
|
|
7766
7828
|
}
|
|
7767
7829
|
|
|
7768
7830
|
if (typeof a === "string" || typeof b === "string") {
|
|
7769
7831
|
return interpolateString(a, b);
|
|
7770
|
-
}
|
|
7832
|
+
} // @ts-expect-error These generics are tough, but they work :)
|
|
7833
|
+
|
|
7771
7834
|
|
|
7772
7835
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
|
|
7773
7836
|
};
|
|
7837
|
+
//# sourceMappingURL=util.js.map
|
|
7774
7838
|
|
|
7775
7839
|
/***/ }),
|
|
7776
7840
|
|
|
@@ -7783,17 +7847,17 @@ var victoryInterpolator = function (a, b) {
|
|
|
7783
7847
|
"use strict";
|
|
7784
7848
|
__webpack_require__.r(__webpack_exports__);
|
|
7785
7849
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7786
|
-
/* harmony export */ "
|
|
7850
|
+
/* harmony export */ "VictoryAnimation": () => (/* binding */ VictoryAnimation)
|
|
7787
7851
|
/* harmony export */ });
|
|
7788
7852
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7789
7853
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7790
|
-
/* harmony import */ var
|
|
7791
|
-
/* harmony import */ var
|
|
7792
|
-
/* harmony import */ var
|
|
7793
|
-
/* harmony import */ var
|
|
7854
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7855
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
7856
|
+
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
7857
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
7794
7858
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
7795
|
-
/* harmony import */ var
|
|
7796
|
-
/* harmony import */ var
|
|
7859
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
7860
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__);
|
|
7797
7861
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
7798
7862
|
|
|
7799
7863
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -7814,7 +7878,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7814
7878
|
|
|
7815
7879
|
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); }
|
|
7816
7880
|
|
|
7817
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7881
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7818
7882
|
|
|
7819
7883
|
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); }; }
|
|
7820
7884
|
|
|
@@ -7824,9 +7888,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7824
7888
|
|
|
7825
7889
|
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; } }
|
|
7826
7890
|
|
|
7827
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7828
|
-
|
|
7829
|
-
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; }
|
|
7891
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7830
7892
|
|
|
7831
7893
|
/*global setTimeout:false */
|
|
7832
7894
|
|
|
@@ -7835,7 +7897,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7835
7897
|
|
|
7836
7898
|
|
|
7837
7899
|
|
|
7838
|
-
|
|
7839
7900
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
7840
7901
|
_inherits(VictoryAnimation, _React$Component);
|
|
7841
7902
|
|
|
@@ -7849,6 +7910,56 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7849
7910
|
_this = _super.call(this, props, context);
|
|
7850
7911
|
/* defaults */
|
|
7851
7912
|
|
|
7913
|
+
_this.interpolator = void 0;
|
|
7914
|
+
_this.queue = void 0;
|
|
7915
|
+
_this.ease = void 0;
|
|
7916
|
+
_this.timer = void 0;
|
|
7917
|
+
_this.loopID = void 0;
|
|
7918
|
+
|
|
7919
|
+
_this.functionToBeRunEachFrame = function (elapsed, duration) {
|
|
7920
|
+
/*
|
|
7921
|
+
step can generate imprecise values, sometimes greater than 1
|
|
7922
|
+
if this happens set the state to 1 and return, cancelling the timer
|
|
7923
|
+
*/
|
|
7924
|
+
duration = duration !== undefined ? duration : _this.props.duration;
|
|
7925
|
+
var step = duration ? elapsed / duration : 1;
|
|
7926
|
+
|
|
7927
|
+
if (step >= 1) {
|
|
7928
|
+
_this.setState({
|
|
7929
|
+
data: _this.interpolator(1),
|
|
7930
|
+
animationInfo: {
|
|
7931
|
+
progress: 1,
|
|
7932
|
+
animating: false,
|
|
7933
|
+
terminating: true
|
|
7934
|
+
}
|
|
7935
|
+
});
|
|
7936
|
+
|
|
7937
|
+
if (_this.loopID) {
|
|
7938
|
+
_this.timer.unsubscribe(_this.loopID);
|
|
7939
|
+
}
|
|
7940
|
+
|
|
7941
|
+
_this.queue.shift();
|
|
7942
|
+
|
|
7943
|
+
_this.traverseQueue();
|
|
7944
|
+
|
|
7945
|
+
return;
|
|
7946
|
+
}
|
|
7947
|
+
/*
|
|
7948
|
+
if we're not at the end of the timer, set the state by passing
|
|
7949
|
+
current step value that's transformed by the ease function to the
|
|
7950
|
+
interpolator, which is cached for performance whenever props are received
|
|
7951
|
+
*/
|
|
7952
|
+
|
|
7953
|
+
|
|
7954
|
+
_this.setState({
|
|
7955
|
+
data: _this.interpolator(_this.ease(step)),
|
|
7956
|
+
animationInfo: {
|
|
7957
|
+
progress: step,
|
|
7958
|
+
animating: step < 1
|
|
7959
|
+
}
|
|
7960
|
+
});
|
|
7961
|
+
};
|
|
7962
|
+
|
|
7852
7963
|
_this.state = {
|
|
7853
7964
|
data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
|
|
7854
7965
|
animationInfo: {
|
|
@@ -7860,13 +7971,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7860
7971
|
_this.queue = Array.isArray(_this.props.data) ? _this.props.data.slice(1) : [];
|
|
7861
7972
|
/* build easing function */
|
|
7862
7973
|
|
|
7863
|
-
_this.ease =
|
|
7864
|
-
/*
|
|
7865
|
-
There is no autobinding of this in ES6 classes
|
|
7866
|
-
so we bind functionToBeRunEachFrame to current instance of victory animation class
|
|
7867
|
-
*/
|
|
7868
|
-
|
|
7869
|
-
_this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
|
|
7974
|
+
_this.ease = victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
|
|
7870
7975
|
_this.timer = _this.context.animationTimer;
|
|
7871
7976
|
return _this;
|
|
7872
7977
|
}
|
|
@@ -7882,7 +7987,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7882
7987
|
}, {
|
|
7883
7988
|
key: "componentDidUpdate",
|
|
7884
7989
|
value: function componentDidUpdate(prevProps) {
|
|
7885
|
-
var equalProps =
|
|
7990
|
+
var equalProps = react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(this.props, prevProps);
|
|
7886
7991
|
|
|
7887
7992
|
if (!equalProps) {
|
|
7888
7993
|
/* If the previous animation didn't finish, force it to complete before starting a new one */
|
|
@@ -7951,7 +8056,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7951
8056
|
var data = this.queue[0];
|
|
7952
8057
|
/* compare cached version to next props */
|
|
7953
8058
|
|
|
7954
|
-
this.interpolator = (0,
|
|
8059
|
+
this.interpolator = (0,_util__WEBPACK_IMPORTED_MODULE_3__.victoryInterpolator)(this.state.data, data);
|
|
7955
8060
|
/* reset step to zero */
|
|
7956
8061
|
|
|
7957
8062
|
if (this.props.delay) {
|
|
@@ -7967,49 +8072,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7967
8072
|
}
|
|
7968
8073
|
/* every frame we... */
|
|
7969
8074
|
|
|
7970
|
-
}, {
|
|
7971
|
-
key: "functionToBeRunEachFrame",
|
|
7972
|
-
value: function functionToBeRunEachFrame(elapsed, duration) {
|
|
7973
|
-
/*
|
|
7974
|
-
step can generate imprecise values, sometimes greater than 1
|
|
7975
|
-
if this happens set the state to 1 and return, cancelling the timer
|
|
7976
|
-
*/
|
|
7977
|
-
duration = duration !== undefined ? duration : this.props.duration;
|
|
7978
|
-
var step = duration ? elapsed / duration : 1;
|
|
7979
|
-
|
|
7980
|
-
if (step >= 1) {
|
|
7981
|
-
this.setState({
|
|
7982
|
-
data: this.interpolator(1),
|
|
7983
|
-
animationInfo: {
|
|
7984
|
-
progress: 1,
|
|
7985
|
-
animating: false,
|
|
7986
|
-
terminating: true
|
|
7987
|
-
}
|
|
7988
|
-
});
|
|
7989
|
-
|
|
7990
|
-
if (this.loopID) {
|
|
7991
|
-
this.timer.unsubscribe(this.loopID);
|
|
7992
|
-
}
|
|
7993
|
-
|
|
7994
|
-
this.queue.shift();
|
|
7995
|
-
this.traverseQueue();
|
|
7996
|
-
return;
|
|
7997
|
-
}
|
|
7998
|
-
/*
|
|
7999
|
-
if we're not at the end of the timer, set the state by passing
|
|
8000
|
-
current step value that's transformed by the ease function to the
|
|
8001
|
-
interpolator, which is cached for performance whenever props are received
|
|
8002
|
-
*/
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
this.setState({
|
|
8006
|
-
data: this.interpolator(this.ease(step)),
|
|
8007
|
-
animationInfo: {
|
|
8008
|
-
progress: step,
|
|
8009
|
-
animating: step < 1
|
|
8010
|
-
}
|
|
8011
|
-
});
|
|
8012
|
-
}
|
|
8013
8075
|
}, {
|
|
8014
8076
|
key: "render",
|
|
8015
8077
|
value: function render() {
|
|
@@ -8019,28 +8081,23 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8019
8081
|
|
|
8020
8082
|
return VictoryAnimation;
|
|
8021
8083
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
8022
|
-
|
|
8023
|
-
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8032
|
-
});
|
|
8033
|
-
|
|
8034
|
-
_defineProperty(VictoryAnimation, "defaultProps", {
|
|
8084
|
+
VictoryAnimation.displayName = "VictoryAnimation";
|
|
8085
|
+
VictoryAnimation.propTypes = {
|
|
8086
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
8087
|
+
data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
|
|
8088
|
+
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8089
|
+
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8090
|
+
easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
|
|
8091
|
+
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
8092
|
+
};
|
|
8093
|
+
VictoryAnimation.defaultProps = {
|
|
8035
8094
|
data: {},
|
|
8036
8095
|
delay: 0,
|
|
8037
8096
|
duration: 1000,
|
|
8038
8097
|
easing: "quadInOut"
|
|
8039
|
-
}
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8098
|
+
};
|
|
8099
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
8100
|
+
//# sourceMappingURL=victory-animation.js.map
|
|
8044
8101
|
|
|
8045
8102
|
/***/ }),
|
|
8046
8103
|
|
|
@@ -8053,7 +8110,7 @@ _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WE
|
|
|
8053
8110
|
"use strict";
|
|
8054
8111
|
__webpack_require__.r(__webpack_exports__);
|
|
8055
8112
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8056
|
-
/* harmony export */ "
|
|
8113
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
8057
8114
|
/* harmony export */ });
|
|
8058
8115
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
8059
8116
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8067,26 +8124,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8067
8124
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
8068
8125
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
8069
8126
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
8070
|
-
/* harmony import */ var
|
|
8071
|
-
/* harmony import */ var
|
|
8127
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8128
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
8072
8129
|
/* 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");
|
|
8073
8130
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
8074
|
-
/* harmony import */ var
|
|
8131
|
+
/* 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");
|
|
8075
8132
|
/* 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");
|
|
8076
|
-
/* harmony import */ var
|
|
8077
|
-
/* harmony import */ var
|
|
8133
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8134
|
+
/* 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");
|
|
8078
8135
|
|
|
8079
8136
|
|
|
8080
8137
|
|
|
8081
8138
|
|
|
8082
8139
|
|
|
8083
8140
|
|
|
8084
|
-
function _extends() { _extends = Object.assign
|
|
8141
|
+
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); }
|
|
8085
8142
|
|
|
8086
8143
|
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; }
|
|
8087
8144
|
|
|
8088
8145
|
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; }
|
|
8089
8146
|
|
|
8147
|
+
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; }
|
|
8148
|
+
|
|
8090
8149
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8091
8150
|
|
|
8092
8151
|
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); } }
|
|
@@ -8095,7 +8154,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8095
8154
|
|
|
8096
8155
|
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); }
|
|
8097
8156
|
|
|
8098
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8157
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8099
8158
|
|
|
8100
8159
|
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); }; }
|
|
8101
8160
|
|
|
@@ -8105,10 +8164,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8105
8164
|
|
|
8106
8165
|
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; } }
|
|
8107
8166
|
|
|
8108
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8109
|
-
|
|
8110
|
-
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; }
|
|
8111
|
-
|
|
8167
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8112
8168
|
|
|
8113
8169
|
|
|
8114
8170
|
|
|
@@ -8123,13 +8179,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8123
8179
|
|
|
8124
8180
|
var _super = _createSuper(VictoryContainer);
|
|
8125
8181
|
|
|
8182
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
8183
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
8126
8184
|
function VictoryContainer(props) {
|
|
8127
8185
|
var _this;
|
|
8128
8186
|
|
|
8129
8187
|
_classCallCheck(this, VictoryContainer);
|
|
8130
8188
|
|
|
8131
8189
|
_this = _super.call(this, props);
|
|
8132
|
-
_this.containerId =
|
|
8190
|
+
_this.containerId = void 0;
|
|
8191
|
+
_this.portalRef = void 0;
|
|
8192
|
+
_this.containerRef = void 0;
|
|
8193
|
+
_this.shouldHandleWheel = void 0;
|
|
8133
8194
|
|
|
8134
8195
|
_this.savePortalRef = function (portal) {
|
|
8135
8196
|
_this.portalRef = portal;
|
|
@@ -8148,18 +8209,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8148
8209
|
return _this.portalRef.portalDeregister(key);
|
|
8149
8210
|
};
|
|
8150
8211
|
|
|
8151
|
-
_this.saveContainerRef =
|
|
8212
|
+
_this.saveContainerRef = function (container) {
|
|
8213
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
8214
|
+
_this.props.containerRef(container);
|
|
8215
|
+
}
|
|
8216
|
+
|
|
8152
8217
|
_this.containerRef = container;
|
|
8153
8218
|
return container;
|
|
8154
8219
|
};
|
|
8155
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
8156
8220
|
|
|
8157
|
-
|
|
8158
|
-
|
|
8159
|
-
|
|
8160
|
-
};
|
|
8161
|
-
}
|
|
8221
|
+
_this.handleWheel = function (e) {
|
|
8222
|
+
return e.preventDefault();
|
|
8223
|
+
};
|
|
8162
8224
|
|
|
8225
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
8226
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
8163
8227
|
return _this;
|
|
8164
8228
|
}
|
|
8165
8229
|
|
|
@@ -8252,7 +8316,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8252
8316
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
8253
8317
|
style: portalSvgStyle
|
|
8254
8318
|
};
|
|
8255
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
8319
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
8256
8320
|
value: {
|
|
8257
8321
|
portalUpdate: this.portalUpdate,
|
|
8258
8322
|
portalRegister: this.portalRegister,
|
|
@@ -8287,8 +8351,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8287
8351
|
tabIndex = _this$props.tabIndex,
|
|
8288
8352
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
8289
8353
|
role = _this$props.role;
|
|
8290
|
-
var style = responsive ? this.props.style :
|
|
8291
|
-
var userProps =
|
|
8354
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
8355
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
8292
8356
|
|
|
8293
8357
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
8294
8358
|
width: width,
|
|
@@ -8307,53 +8371,47 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8307
8371
|
|
|
8308
8372
|
return VictoryContainer;
|
|
8309
8373
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
8322
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
8323
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8374
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
8375
|
+
VictoryContainer.role = "container";
|
|
8376
|
+
VictoryContainer.propTypes = {
|
|
8377
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8378
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8379
|
+
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)]),
|
|
8380
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8381
|
+
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)]),
|
|
8382
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
8383
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8384
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8324
8385
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
8325
|
-
name: (
|
|
8326
|
-
origin:
|
|
8386
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8387
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
8327
8388
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
8328
8389
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
8329
8390
|
}),
|
|
8330
|
-
ouiaId:
|
|
8331
|
-
ouiaSafe: (
|
|
8332
|
-
ouiaType: (
|
|
8333
|
-
polar: (
|
|
8334
|
-
portalComponent: (
|
|
8391
|
+
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)]),
|
|
8392
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8393
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8394
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8395
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
8335
8396
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
8336
|
-
preserveAspectRatio: (
|
|
8337
|
-
responsive: (
|
|
8338
|
-
role: (
|
|
8339
|
-
style: (
|
|
8340
|
-
tabIndex: (
|
|
8341
|
-
theme: (
|
|
8342
|
-
title: (
|
|
8397
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8398
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8399
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8400
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8401
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
8402
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8403
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8343
8404
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
8344
|
-
}
|
|
8345
|
-
|
|
8346
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
8405
|
+
};
|
|
8406
|
+
VictoryContainer.defaultProps = {
|
|
8347
8407
|
className: "VictoryContainer",
|
|
8348
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
8408
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
8349
8409
|
portalZIndex: 99,
|
|
8350
8410
|
responsive: true,
|
|
8351
8411
|
role: "img"
|
|
8352
|
-
}
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8356
|
-
|
|
8412
|
+
};
|
|
8413
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
8414
|
+
//# sourceMappingURL=victory-container.js.map
|
|
8357
8415
|
|
|
8358
8416
|
/***/ }),
|
|
8359
8417
|
|
|
@@ -8366,7 +8424,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
8366
8424
|
"use strict";
|
|
8367
8425
|
__webpack_require__.r(__webpack_exports__);
|
|
8368
8426
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8369
|
-
/* harmony export */ "
|
|
8427
|
+
/* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
|
|
8370
8428
|
/* harmony export */ });
|
|
8371
8429
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
8372
8430
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8374,20 +8432,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8374
8432
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
8375
8433
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8376
8434
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
|
|
8377
|
-
/* harmony import */ var
|
|
8378
|
-
/* harmony import */ var
|
|
8379
|
-
/* harmony import */ var
|
|
8380
|
-
/* harmony import */ var
|
|
8435
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8436
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
|
|
8437
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
8438
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
8381
8439
|
/* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
|
|
8382
|
-
/* harmony import */ var
|
|
8383
|
-
/* harmony import */ var
|
|
8384
|
-
/* harmony import */ var
|
|
8385
|
-
/* harmony import */ var
|
|
8386
|
-
/* harmony import */ var
|
|
8387
|
-
/* harmony import */ var
|
|
8388
|
-
/* harmony import */ var
|
|
8389
|
-
/* harmony import */ var
|
|
8440
|
+
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
8441
|
+
/* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
|
|
8442
|
+
/* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../victory-primitives/tspan */ "../../victory-core/es/victory-primitives/tspan.js");
|
|
8443
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8444
|
+
/* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/label-helpers */ "../../victory-core/es/victory-util/label-helpers.js");
|
|
8445
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8446
|
+
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
8447
|
+
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
8390
8448
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
8449
|
+
/* 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");
|
|
8391
8450
|
|
|
8392
8451
|
|
|
8393
8452
|
|
|
@@ -8422,6 +8481,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8422
8481
|
|
|
8423
8482
|
|
|
8424
8483
|
|
|
8484
|
+
|
|
8425
8485
|
var defaultStyles = {
|
|
8426
8486
|
fill: "#252525",
|
|
8427
8487
|
fontSize: 14,
|
|
@@ -8434,7 +8494,7 @@ var getPosition = function (props, dimension) {
|
|
|
8434
8494
|
return 0;
|
|
8435
8495
|
}
|
|
8436
8496
|
|
|
8437
|
-
var scaledPoint =
|
|
8497
|
+
var scaledPoint = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, props.datum);
|
|
8438
8498
|
return scaledPoint[dimension];
|
|
8439
8499
|
};
|
|
8440
8500
|
|
|
@@ -8451,7 +8511,7 @@ var getFontSize = function (style) {
|
|
|
8451
8511
|
if (!isNaN(fontSize)) {
|
|
8452
8512
|
return fontSize;
|
|
8453
8513
|
} else {
|
|
8454
|
-
|
|
8514
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_5__.warn("fontSize should be expressed as a number of pixels");
|
|
8455
8515
|
return defaultStyles.fontSize;
|
|
8456
8516
|
}
|
|
8457
8517
|
}
|
|
@@ -8472,7 +8532,7 @@ var shouldUseMultilineBackgrounds = function (props) {
|
|
|
8472
8532
|
|
|
8473
8533
|
var getStyles = function (style, props) {
|
|
8474
8534
|
if (props.disableInlineStyles) {
|
|
8475
|
-
var baseStyles =
|
|
8535
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8476
8536
|
return {
|
|
8477
8537
|
// Font size is necessary to calculate the y position of the label
|
|
8478
8538
|
fontSize: getFontSize(baseStyles)
|
|
@@ -8481,7 +8541,7 @@ var getStyles = function (style, props) {
|
|
|
8481
8541
|
|
|
8482
8542
|
var getSingleStyle = function (s) {
|
|
8483
8543
|
s = s ? lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, s, defaultStyles) : defaultStyles;
|
|
8484
|
-
var baseStyles =
|
|
8544
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8485
8545
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, baseStyles, {
|
|
8486
8546
|
fontSize: getFontSize(baseStyles)
|
|
8487
8547
|
});
|
|
@@ -8498,28 +8558,28 @@ var getBackgroundStyles = function (style, props) {
|
|
|
8498
8558
|
}
|
|
8499
8559
|
|
|
8500
8560
|
return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) {
|
|
8501
|
-
return
|
|
8502
|
-
}) :
|
|
8561
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8562
|
+
}) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8503
8563
|
};
|
|
8504
8564
|
|
|
8505
8565
|
var getBackgroundPadding = function (props) {
|
|
8506
8566
|
if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
|
|
8507
8567
|
return props.backgroundPadding.map(function (backgroundPadding) {
|
|
8508
|
-
var padding =
|
|
8509
|
-
return
|
|
8568
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(backgroundPadding, props);
|
|
8569
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8510
8570
|
padding: padding
|
|
8511
8571
|
});
|
|
8512
8572
|
});
|
|
8513
8573
|
} else {
|
|
8514
|
-
var padding =
|
|
8515
|
-
return
|
|
8574
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.backgroundPadding, props);
|
|
8575
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8516
8576
|
padding: padding
|
|
8517
8577
|
});
|
|
8518
8578
|
}
|
|
8519
8579
|
};
|
|
8520
8580
|
|
|
8521
8581
|
var getLineHeight = function (props) {
|
|
8522
|
-
var lineHeight =
|
|
8582
|
+
var lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.lineHeight, props);
|
|
8523
8583
|
|
|
8524
8584
|
if (Array.isArray(lineHeight)) {
|
|
8525
8585
|
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
|
|
@@ -8535,11 +8595,11 @@ var getContent = function (text, props) {
|
|
|
8535
8595
|
|
|
8536
8596
|
if (Array.isArray(text)) {
|
|
8537
8597
|
return text.map(function (line) {
|
|
8538
|
-
return
|
|
8598
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(line, props);
|
|
8539
8599
|
});
|
|
8540
8600
|
}
|
|
8541
8601
|
|
|
8542
|
-
var child =
|
|
8602
|
+
var child = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(text, props);
|
|
8543
8603
|
|
|
8544
8604
|
if (child === undefined || child === null) {
|
|
8545
8605
|
return undefined;
|
|
@@ -8549,10 +8609,10 @@ var getContent = function (text, props) {
|
|
|
8549
8609
|
};
|
|
8550
8610
|
|
|
8551
8611
|
var getDy = function (props, verticalAnchor, lineHeight) {
|
|
8552
|
-
var dy = props.dy ?
|
|
8612
|
+
var dy = props.dy ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dy, props) : 0;
|
|
8553
8613
|
var length = props.inline ? 1 : props.text.length;
|
|
8554
|
-
var capHeight =
|
|
8555
|
-
var anchor = verticalAnchor ?
|
|
8614
|
+
var capHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.capHeight, props);
|
|
8615
|
+
var anchor = verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(verticalAnchor, props) : "middle";
|
|
8556
8616
|
|
|
8557
8617
|
var fontSizes = _toConsumableArray(Array(length).keys()).map(function (i) {
|
|
8558
8618
|
return getSingleValue(props.style, i).fontSize;
|
|
@@ -8580,15 +8640,15 @@ var getDy = function (props, verticalAnchor, lineHeight) {
|
|
|
8580
8640
|
var getTransform = function (props, x, y) {
|
|
8581
8641
|
var polar = props.polar;
|
|
8582
8642
|
var style = getSingleValue(props.style);
|
|
8583
|
-
var defaultAngle = polar ?
|
|
8584
|
-
var baseAngle = style.angle === undefined ?
|
|
8643
|
+
var defaultAngle = polar ? _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(props) : 0;
|
|
8644
|
+
var baseAngle = style.angle === undefined ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.angle, props) : style.angle;
|
|
8585
8645
|
var angle = baseAngle === undefined ? defaultAngle : baseAngle;
|
|
8586
8646
|
var transform = props.transform || style.transform;
|
|
8587
|
-
var transformPart = transform &&
|
|
8647
|
+
var transformPart = transform && _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(transform, props);
|
|
8588
8648
|
var rotatePart = angle && {
|
|
8589
8649
|
rotate: [angle, x, y]
|
|
8590
8650
|
};
|
|
8591
|
-
return transformPart || angle ?
|
|
8651
|
+
return transformPart || angle ? _victory_util_style__WEBPACK_IMPORTED_MODULE_7__.toTransformString(transformPart, rotatePart) : undefined;
|
|
8592
8652
|
};
|
|
8593
8653
|
|
|
8594
8654
|
var getXCoordinate = function (calculatedProps, labelSizeWidth) {
|
|
@@ -8669,7 +8729,7 @@ var getFullBackground = function (calculatedProps, tspanValues) {
|
|
|
8669
8729
|
x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
|
|
8670
8730
|
y: yCoordinate
|
|
8671
8731
|
};
|
|
8672
|
-
return /*#__PURE__*/
|
|
8732
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8673
8733
|
};
|
|
8674
8734
|
|
|
8675
8735
|
var getInlineXOffset = function (calculatedProps, textElements, index) {
|
|
@@ -8751,7 +8811,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
|
|
|
8751
8811
|
x: xCoord - padding.left,
|
|
8752
8812
|
y: yCoord
|
|
8753
8813
|
};
|
|
8754
|
-
return /*#__PURE__*/
|
|
8814
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8755
8815
|
});
|
|
8756
8816
|
};
|
|
8757
8817
|
|
|
@@ -8802,7 +8862,7 @@ var evaluateProps = function (props) {
|
|
|
8802
8862
|
style: style,
|
|
8803
8863
|
backgroundStyle: backgroundStyle
|
|
8804
8864
|
}));
|
|
8805
|
-
var id =
|
|
8865
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
|
|
8806
8866
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
|
|
8807
8867
|
backgroundStyle: backgroundStyle,
|
|
8808
8868
|
backgroundPadding: backgroundPadding,
|
|
@@ -8813,13 +8873,13 @@ var evaluateProps = function (props) {
|
|
|
8813
8873
|
};
|
|
8814
8874
|
|
|
8815
8875
|
var getCalculatedProps = function (props) {
|
|
8816
|
-
var ariaLabel =
|
|
8876
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
|
|
8817
8877
|
var style = getSingleValue(props.style);
|
|
8818
8878
|
var lineHeight = getLineHeight(props);
|
|
8819
|
-
var direction = props.direction ?
|
|
8820
|
-
var textAnchor = props.textAnchor ?
|
|
8821
|
-
var verticalAnchor = props.verticalAnchor ?
|
|
8822
|
-
var dx = props.dx ?
|
|
8879
|
+
var direction = props.direction ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.direction, props) : "inherit";
|
|
8880
|
+
var textAnchor = props.textAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.textAnchor, props) : style.textAnchor || "start";
|
|
8881
|
+
var verticalAnchor = props.verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.verticalAnchor, props) : style.verticalAnchor || "middle";
|
|
8882
|
+
var dx = props.dx ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dx, props) : 0;
|
|
8823
8883
|
var dy = getDy(props, verticalAnchor, lineHeight);
|
|
8824
8884
|
var x = props.x !== undefined ? props.x : getPosition(props, "x");
|
|
8825
8885
|
var y = props.y !== undefined ? props.y : getPosition(props, "y");
|
|
@@ -8858,6 +8918,7 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8858
8918
|
tabIndex = calculatedProps.tabIndex,
|
|
8859
8919
|
tspanComponent = calculatedProps.tspanComponent,
|
|
8860
8920
|
textComponent = calculatedProps.textComponent;
|
|
8921
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(calculatedProps);
|
|
8861
8922
|
|
|
8862
8923
|
var textProps = _objectSpread(_objectSpread({
|
|
8863
8924
|
"aria-label": ariaLabel,
|
|
@@ -8870,10 +8931,10 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8870
8931
|
transform: transform,
|
|
8871
8932
|
className: className,
|
|
8872
8933
|
title: title,
|
|
8873
|
-
desc:
|
|
8874
|
-
tabIndex:
|
|
8934
|
+
desc: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(desc, calculatedProps),
|
|
8935
|
+
tabIndex: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(tabIndex, calculatedProps),
|
|
8875
8936
|
id: id
|
|
8876
|
-
});
|
|
8937
|
+
}, userProps);
|
|
8877
8938
|
|
|
8878
8939
|
var tspans = text.map(function (line, i) {
|
|
8879
8940
|
var currentStyle = tspanValues[i].style;
|
|
@@ -8886,9 +8947,9 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8886
8947
|
style: currentStyle,
|
|
8887
8948
|
children: line
|
|
8888
8949
|
};
|
|
8889
|
-
return /*#__PURE__*/
|
|
8950
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(tspanComponent, tspanProps);
|
|
8890
8951
|
});
|
|
8891
|
-
return /*#__PURE__*/
|
|
8952
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(textComponent, textProps, tspans);
|
|
8892
8953
|
};
|
|
8893
8954
|
|
|
8894
8955
|
var VictoryLabel = function (props) {
|
|
@@ -8913,6 +8974,7 @@ var VictoryLabel = function (props) {
|
|
|
8913
8974
|
fontSize: currentStyle.fontSize || defaultStyles.fontSize,
|
|
8914
8975
|
capHeight: capHeightPx,
|
|
8915
8976
|
text: line,
|
|
8977
|
+
// @ts-expect-error TODO: This looks like a bug:
|
|
8916
8978
|
textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
|
|
8917
8979
|
lineHeight: currentLineHeight,
|
|
8918
8980
|
backgroundPadding: getSingleValue(backgroundPadding, i)
|
|
@@ -8923,71 +8985,75 @@ var VictoryLabel = function (props) {
|
|
|
8923
8985
|
if (props.backgroundStyle) {
|
|
8924
8986
|
var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
|
|
8925
8987
|
var children = [backgroundElement, label];
|
|
8926
|
-
var backgroundWithLabel = /*#__PURE__*/
|
|
8927
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
8988
|
+
var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
|
|
8989
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
|
|
8928
8990
|
}
|
|
8929
8991
|
|
|
8930
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
8992
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
|
|
8931
8993
|
};
|
|
8932
|
-
|
|
8933
8994
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8934
8995
|
VictoryLabel.role = "label";
|
|
8935
8996
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
8936
8997
|
VictoryLabel.propTypes = {
|
|
8937
|
-
active: (
|
|
8938
|
-
angle:
|
|
8939
|
-
ariaLabel:
|
|
8940
|
-
backgroundComponent: (
|
|
8941
|
-
backgroundPadding:
|
|
8942
|
-
backgroundStyle:
|
|
8943
|
-
capHeight:
|
|
8944
|
-
className: (
|
|
8945
|
-
data: (
|
|
8946
|
-
datum: (
|
|
8947
|
-
|
|
8948
|
-
|
|
8949
|
-
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
8998
|
+
active: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8999
|
+
angle: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9000
|
+
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9001
|
+
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9002
|
+
backgroundPadding: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
9003
|
+
backgroundStyle: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
9004
|
+
capHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9005
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
9006
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
9007
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
|
|
9008
|
+
// @ts-expect-error "Function is not assignable to string"
|
|
9009
|
+
desc: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9010
|
+
direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
9011
|
+
dx: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9012
|
+
dy: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9013
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
9014
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9015
|
+
id: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9016
|
+
index: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
9017
|
+
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9018
|
+
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
9019
|
+
lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
9020
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
9021
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
9022
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
8961
9023
|
}),
|
|
8962
|
-
polar: (
|
|
8963
|
-
renderInPortal: (
|
|
8964
|
-
scale:
|
|
8965
|
-
x:
|
|
8966
|
-
y:
|
|
9024
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9025
|
+
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9026
|
+
scale: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
9027
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale,
|
|
9028
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale
|
|
8967
9029
|
}),
|
|
8968
|
-
style:
|
|
8969
|
-
tabIndex:
|
|
8970
|
-
text:
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
9030
|
+
style: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
9031
|
+
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9032
|
+
text: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
9033
|
+
// @ts-expect-error Function is not assignable to string"
|
|
9034
|
+
textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9035
|
+
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9036
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
9037
|
+
transform: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9038
|
+
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9039
|
+
// @ts-expect-error Function is not assignable to string"
|
|
9040
|
+
verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
9041
|
+
// @ts-expect-error Number is not assignable to string
|
|
9042
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
9043
|
+
// @ts-expect-error Number is not assignable to string
|
|
9044
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)])
|
|
8979
9045
|
};
|
|
8980
9046
|
VictoryLabel.defaultProps = {
|
|
8981
|
-
backgroundComponent: /*#__PURE__*/
|
|
8982
|
-
groupComponent: /*#__PURE__*/
|
|
9047
|
+
backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
|
|
9048
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
8983
9049
|
direction: "inherit",
|
|
8984
|
-
textComponent: /*#__PURE__*/
|
|
8985
|
-
tspanComponent: /*#__PURE__*/
|
|
9050
|
+
textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
|
|
9051
|
+
tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
|
|
8986
9052
|
capHeight: 0.71,
|
|
8987
9053
|
// Magic number from d3.
|
|
8988
9054
|
lineHeight: 1
|
|
8989
9055
|
};
|
|
8990
|
-
|
|
9056
|
+
//# sourceMappingURL=victory-label.js.map
|
|
8991
9057
|
|
|
8992
9058
|
/***/ }),
|
|
8993
9059
|
|
|
@@ -9000,19 +9066,19 @@ VictoryLabel.defaultProps = {
|
|
|
9000
9066
|
"use strict";
|
|
9001
9067
|
__webpack_require__.r(__webpack_exports__);
|
|
9002
9068
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9003
|
-
/* harmony export */ "
|
|
9069
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
9004
9070
|
/* harmony export */ });
|
|
9005
9071
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9006
9072
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9007
9073
|
|
|
9074
|
+
|
|
9008
9075
|
/**
|
|
9009
9076
|
* The React context object consumers may use to access the context of the
|
|
9010
9077
|
* portal.
|
|
9011
9078
|
*/
|
|
9012
|
-
|
|
9013
9079
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
9014
9080
|
PortalContext.displayName = "PortalContext";
|
|
9015
|
-
|
|
9081
|
+
//# sourceMappingURL=portal-context.js.map
|
|
9016
9082
|
|
|
9017
9083
|
/***/ }),
|
|
9018
9084
|
|
|
@@ -9025,7 +9091,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
9025
9091
|
"use strict";
|
|
9026
9092
|
__webpack_require__.r(__webpack_exports__);
|
|
9027
9093
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9028
|
-
/* harmony export */ "
|
|
9094
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
9029
9095
|
/* harmony export */ });
|
|
9030
9096
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
9031
9097
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9044,7 +9110,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9044
9110
|
|
|
9045
9111
|
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); }
|
|
9046
9112
|
|
|
9047
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9113
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9048
9114
|
|
|
9049
9115
|
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); }; }
|
|
9050
9116
|
|
|
@@ -9054,10 +9120,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9054
9120
|
|
|
9055
9121
|
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; } }
|
|
9056
9122
|
|
|
9057
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9058
|
-
|
|
9059
|
-
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; }
|
|
9060
|
-
|
|
9123
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9061
9124
|
|
|
9062
9125
|
|
|
9063
9126
|
|
|
@@ -9073,32 +9136,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
9073
9136
|
_classCallCheck(this, Portal);
|
|
9074
9137
|
|
|
9075
9138
|
_this = _super.call(this, props);
|
|
9139
|
+
_this.map = void 0;
|
|
9140
|
+
_this.index = void 0;
|
|
9141
|
+
|
|
9142
|
+
_this.portalRegister = function () {
|
|
9143
|
+
return ++_this.index;
|
|
9144
|
+
};
|
|
9145
|
+
|
|
9146
|
+
_this.portalUpdate = function (key, element) {
|
|
9147
|
+
_this.map[key] = element;
|
|
9148
|
+
|
|
9149
|
+
_this.forceUpdate();
|
|
9150
|
+
};
|
|
9151
|
+
|
|
9152
|
+
_this.portalDeregister = function (key) {
|
|
9153
|
+
delete _this.map[key];
|
|
9154
|
+
|
|
9155
|
+
_this.forceUpdate();
|
|
9156
|
+
};
|
|
9157
|
+
|
|
9076
9158
|
_this.map = {};
|
|
9077
9159
|
_this.index = 1;
|
|
9078
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
9079
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
9080
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
9081
9160
|
return _this;
|
|
9082
9161
|
}
|
|
9083
9162
|
|
|
9084
9163
|
_createClass(Portal, [{
|
|
9085
|
-
key: "portalRegister",
|
|
9086
|
-
value: function portalRegister() {
|
|
9087
|
-
return ++this.index;
|
|
9088
|
-
}
|
|
9089
|
-
}, {
|
|
9090
|
-
key: "portalUpdate",
|
|
9091
|
-
value: function portalUpdate(key, element) {
|
|
9092
|
-
this.map[key] = element;
|
|
9093
|
-
this.forceUpdate();
|
|
9094
|
-
}
|
|
9095
|
-
}, {
|
|
9096
|
-
key: "portalDeregister",
|
|
9097
|
-
value: function portalDeregister(key) {
|
|
9098
|
-
delete this.map[key];
|
|
9099
|
-
this.forceUpdate();
|
|
9100
|
-
}
|
|
9101
|
-
}, {
|
|
9102
9164
|
key: "getChildren",
|
|
9103
9165
|
value: function getChildren() {
|
|
9104
9166
|
var _this2 = this;
|
|
@@ -9120,18 +9182,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
9120
9182
|
|
|
9121
9183
|
return Portal;
|
|
9122
9184
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
_defineProperty(Portal, "propTypes", {
|
|
9185
|
+
Portal.displayName = "Portal";
|
|
9186
|
+
Portal.propTypes = {
|
|
9127
9187
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9128
9188
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
9129
9189
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
9130
9190
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9131
9191
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
9132
|
-
}
|
|
9133
|
-
|
|
9134
|
-
|
|
9192
|
+
};
|
|
9193
|
+
//# sourceMappingURL=portal.js.map
|
|
9135
9194
|
|
|
9136
9195
|
/***/ }),
|
|
9137
9196
|
|
|
@@ -9144,16 +9203,16 @@ _defineProperty(Portal, "propTypes", {
|
|
|
9144
9203
|
"use strict";
|
|
9145
9204
|
__webpack_require__.r(__webpack_exports__);
|
|
9146
9205
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9147
|
-
/* harmony export */ "
|
|
9206
|
+
/* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
|
|
9148
9207
|
/* harmony export */ });
|
|
9149
9208
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
9150
9209
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9151
9210
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9152
9211
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9153
|
-
/* harmony import */ var
|
|
9154
|
-
/* harmony import */ var
|
|
9155
|
-
/* harmony import */ var
|
|
9156
|
-
/* harmony import */ var
|
|
9212
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9213
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9214
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
9215
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9157
9216
|
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
9158
9217
|
|
|
9159
9218
|
|
|
@@ -9165,7 +9224,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9165
9224
|
|
|
9166
9225
|
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); }
|
|
9167
9226
|
|
|
9168
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9227
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9169
9228
|
|
|
9170
9229
|
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); }; }
|
|
9171
9230
|
|
|
@@ -9175,10 +9234,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9175
9234
|
|
|
9176
9235
|
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; } }
|
|
9177
9236
|
|
|
9178
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9179
|
-
|
|
9180
|
-
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; }
|
|
9181
|
-
|
|
9237
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9182
9238
|
|
|
9183
9239
|
|
|
9184
9240
|
|
|
@@ -9191,9 +9247,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9191
9247
|
var _super = _createSuper(VictoryPortal);
|
|
9192
9248
|
|
|
9193
9249
|
function VictoryPortal() {
|
|
9250
|
+
var _this;
|
|
9251
|
+
|
|
9194
9252
|
_classCallCheck(this, VictoryPortal);
|
|
9195
9253
|
|
|
9196
|
-
|
|
9254
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9255
|
+
args[_key] = arguments[_key];
|
|
9256
|
+
}
|
|
9257
|
+
|
|
9258
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9259
|
+
_this.checkedContext = void 0;
|
|
9260
|
+
_this.renderInPlace = void 0;
|
|
9261
|
+
_this.element = void 0;
|
|
9262
|
+
_this.portalKey = void 0;
|
|
9263
|
+
return _this;
|
|
9197
9264
|
}
|
|
9198
9265
|
|
|
9199
9266
|
_createClass(VictoryPortal, [{
|
|
@@ -9202,7 +9269,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9202
9269
|
if (!this.checkedContext) {
|
|
9203
9270
|
if (typeof this.context.portalUpdate !== "function") {
|
|
9204
9271
|
var msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
|
|
9205
|
-
|
|
9272
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_2__.warn(msg);
|
|
9206
9273
|
this.renderInPlace = true;
|
|
9207
9274
|
}
|
|
9208
9275
|
|
|
@@ -9248,7 +9315,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9248
9315
|
standalone: false
|
|
9249
9316
|
} : {};
|
|
9250
9317
|
|
|
9251
|
-
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps,
|
|
9318
|
+
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.omit(this.props, ["children", "groupComponent"]));
|
|
9252
9319
|
|
|
9253
9320
|
var child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
|
|
9254
9321
|
return this.renderPortal(child);
|
|
@@ -9257,23 +9324,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9257
9324
|
|
|
9258
9325
|
return VictoryPortal;
|
|
9259
9326
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9260
|
-
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element)
|
|
9268
|
-
});
|
|
9269
|
-
|
|
9270
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
9327
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
9328
|
+
VictoryPortal.role = "portal";
|
|
9329
|
+
VictoryPortal.propTypes = {
|
|
9330
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
9331
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
9332
|
+
};
|
|
9333
|
+
VictoryPortal.defaultProps = {
|
|
9271
9334
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
9272
|
-
}
|
|
9273
|
-
|
|
9274
|
-
|
|
9275
|
-
|
|
9276
|
-
|
|
9335
|
+
};
|
|
9336
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
9337
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
9277
9338
|
|
|
9278
9339
|
/***/ }),
|
|
9279
9340
|
|
|
@@ -9286,16 +9347,16 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
|
|
|
9286
9347
|
"use strict";
|
|
9287
9348
|
__webpack_require__.r(__webpack_exports__);
|
|
9288
9349
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9289
|
-
/* harmony export */ "
|
|
9350
|
+
/* harmony export */ "Arc": () => (/* binding */ Arc)
|
|
9290
9351
|
/* harmony export */ });
|
|
9291
9352
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9292
9353
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
9293
9354
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9294
9355
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9295
|
-
/* harmony import */ var
|
|
9296
|
-
/* harmony import */ var
|
|
9297
|
-
/* harmony import */ var
|
|
9298
|
-
/* harmony import */ var
|
|
9356
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9357
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9358
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9359
|
+
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
9299
9360
|
/* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js");
|
|
9300
9361
|
|
|
9301
9362
|
|
|
@@ -9321,12 +9382,12 @@ var getArcPath = function (props) {
|
|
|
9321
9382
|
closedPath = props.closedPath; // Always draw the path as two arcs so that complete circles may be rendered.
|
|
9322
9383
|
|
|
9323
9384
|
var halfAngle = Math.abs(endAngle - startAngle) / 2 + startAngle;
|
|
9324
|
-
var x1 = cx + r * Math.cos(
|
|
9325
|
-
var y1 = cy - r * Math.sin(
|
|
9326
|
-
var x2 = cx + r * Math.cos(
|
|
9327
|
-
var y2 = cy - r * Math.sin(
|
|
9328
|
-
var x3 = cx + r * Math.cos(
|
|
9329
|
-
var y3 = cy - r * Math.sin(
|
|
9385
|
+
var x1 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(startAngle));
|
|
9386
|
+
var y1 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(startAngle));
|
|
9387
|
+
var x2 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(halfAngle));
|
|
9388
|
+
var y2 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(halfAngle));
|
|
9389
|
+
var x3 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(endAngle));
|
|
9390
|
+
var y3 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(endAngle));
|
|
9330
9391
|
var largerArcFlag1 = halfAngle - startAngle <= 180 ? 0 : 1;
|
|
9331
9392
|
var largerArcFlag2 = endAngle - halfAngle <= 180 ? 0 : 1;
|
|
9332
9393
|
var arcStart = closedPath ? " M ".concat(cx, ", ").concat(cy, " L ").concat(x1, ", ").concat(y1) : "M ".concat(x1, ", ").concat(y1);
|
|
@@ -9345,14 +9406,14 @@ var evaluateProps = function (props) {
|
|
|
9345
9406
|
* `style`
|
|
9346
9407
|
* `tabIndex`
|
|
9347
9408
|
*/
|
|
9348
|
-
var ariaLabel =
|
|
9349
|
-
var desc =
|
|
9350
|
-
var id =
|
|
9351
|
-
var style =
|
|
9409
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
9410
|
+
var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
9411
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
9412
|
+
var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9352
9413
|
stroke: "black",
|
|
9353
9414
|
fill: "none"
|
|
9354
9415
|
}, props.style), props);
|
|
9355
|
-
var tabIndex =
|
|
9416
|
+
var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
9356
9417
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
9357
9418
|
ariaLabel: ariaLabel,
|
|
9358
9419
|
desc: desc,
|
|
@@ -9377,23 +9438,22 @@ var Arc = function (props) {
|
|
|
9377
9438
|
clipPath: props.clipPath
|
|
9378
9439
|
}));
|
|
9379
9440
|
};
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9385
|
-
|
|
9386
|
-
|
|
9387
|
-
|
|
9388
|
-
|
|
9389
|
-
startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
|
|
9441
|
+
Arc.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
9442
|
+
closedPath: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),
|
|
9443
|
+
cx: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9444
|
+
cy: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9445
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
|
|
9446
|
+
endAngle: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9447
|
+
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9448
|
+
r: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9449
|
+
startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9390
9450
|
});
|
|
9391
9451
|
Arc.defaultProps = {
|
|
9392
|
-
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_5__
|
|
9452
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_5__.Path, null),
|
|
9393
9453
|
role: "presentation",
|
|
9394
9454
|
shapeRendering: "auto"
|
|
9395
9455
|
};
|
|
9396
|
-
|
|
9456
|
+
//# sourceMappingURL=arc.js.map
|
|
9397
9457
|
|
|
9398
9458
|
/***/ }),
|
|
9399
9459
|
|
|
@@ -9406,16 +9466,16 @@ Arc.defaultProps = {
|
|
|
9406
9466
|
"use strict";
|
|
9407
9467
|
__webpack_require__.r(__webpack_exports__);
|
|
9408
9468
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9409
|
-
/* harmony export */ "
|
|
9469
|
+
/* harmony export */ "LineSegment": () => (/* binding */ LineSegment)
|
|
9410
9470
|
/* harmony export */ });
|
|
9411
9471
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9412
9472
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
9413
9473
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9414
9474
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9415
|
-
/* harmony import */ var
|
|
9416
|
-
/* harmony import */ var
|
|
9417
|
-
/* harmony import */ var
|
|
9418
|
-
/* harmony import */ var
|
|
9475
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9476
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9477
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9478
|
+
/* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
|
|
9419
9479
|
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
9420
9480
|
|
|
9421
9481
|
|
|
@@ -9440,13 +9500,13 @@ var evaluateProps = function (props) {
|
|
|
9440
9500
|
* `style`
|
|
9441
9501
|
* `tabIndex`
|
|
9442
9502
|
*/
|
|
9443
|
-
var ariaLabel =
|
|
9444
|
-
var desc =
|
|
9445
|
-
var id =
|
|
9446
|
-
var style =
|
|
9503
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
9504
|
+
var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
9505
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
9506
|
+
var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9447
9507
|
stroke: "black"
|
|
9448
9508
|
}, props.style), props);
|
|
9449
|
-
var tabIndex =
|
|
9509
|
+
var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
9450
9510
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
9451
9511
|
ariaLabel: ariaLabel,
|
|
9452
9512
|
desc: desc,
|
|
@@ -9474,21 +9534,20 @@ var LineSegment = function (props) {
|
|
|
9474
9534
|
clipPath: props.clipPath
|
|
9475
9535
|
}));
|
|
9476
9536
|
};
|
|
9477
|
-
|
|
9478
|
-
|
|
9479
|
-
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
y2: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
|
|
9537
|
+
LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
9538
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
|
|
9539
|
+
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9540
|
+
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9541
|
+
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9542
|
+
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9543
|
+
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9485
9544
|
});
|
|
9486
9545
|
LineSegment.defaultProps = {
|
|
9487
|
-
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_5__
|
|
9546
|
+
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_5__.Line, null),
|
|
9488
9547
|
role: "presentation",
|
|
9489
9548
|
shapeRendering: "auto"
|
|
9490
9549
|
};
|
|
9491
|
-
|
|
9550
|
+
//# sourceMappingURL=line-segment.js.map
|
|
9492
9551
|
|
|
9493
9552
|
/***/ }),
|
|
9494
9553
|
|
|
@@ -9501,33 +9560,37 @@ LineSegment.defaultProps = {
|
|
|
9501
9560
|
"use strict";
|
|
9502
9561
|
__webpack_require__.r(__webpack_exports__);
|
|
9503
9562
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9504
|
-
/* harmony export */ "
|
|
9563
|
+
/* harmony export */ "Line": () => (/* binding */ Line)
|
|
9505
9564
|
/* harmony export */ });
|
|
9506
9565
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9507
9566
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9508
9567
|
var _excluded = ["desc"];
|
|
9509
9568
|
|
|
9510
|
-
function _extends() { _extends = Object.assign
|
|
9569
|
+
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); }
|
|
9511
9570
|
|
|
9512
9571
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9513
9572
|
|
|
9514
9573
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9515
9574
|
|
|
9516
9575
|
|
|
9517
|
-
|
|
9518
9576
|
var Line = function (props) {
|
|
9519
9577
|
// eslint-disable-next-line react/prop-types
|
|
9520
9578
|
var desc = props.desc,
|
|
9521
9579
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9522
9580
|
|
|
9523
|
-
return desc ?
|
|
9581
|
+
return desc ?
|
|
9582
|
+
/*#__PURE__*/
|
|
9583
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9584
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("line", _extends({
|
|
9524
9585
|
vectorEffect: "non-scaling-stroke"
|
|
9525
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9586
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9587
|
+
/*#__PURE__*/
|
|
9588
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9589
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("line", _extends({
|
|
9526
9590
|
vectorEffect: "non-scaling-stroke"
|
|
9527
9591
|
}, rest));
|
|
9528
9592
|
};
|
|
9529
|
-
|
|
9530
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Line);
|
|
9593
|
+
//# sourceMappingURL=line.js.map
|
|
9531
9594
|
|
|
9532
9595
|
/***/ }),
|
|
9533
9596
|
|
|
@@ -9540,7 +9603,7 @@ var Line = function (props) {
|
|
|
9540
9603
|
"use strict";
|
|
9541
9604
|
__webpack_require__.r(__webpack_exports__);
|
|
9542
9605
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9543
|
-
/* harmony export */ "
|
|
9606
|
+
/* harmony export */ "Path": () => (/* binding */ Path)
|
|
9544
9607
|
/* harmony export */ });
|
|
9545
9608
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9546
9609
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9551,16 +9614,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9551
9614
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9552
9615
|
|
|
9553
9616
|
|
|
9554
|
-
|
|
9555
9617
|
var Path = function (props) {
|
|
9556
9618
|
// eslint-disable-next-line react/prop-types
|
|
9557
9619
|
var desc = props.desc,
|
|
9558
9620
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9559
9621
|
|
|
9560
|
-
return desc ?
|
|
9622
|
+
return desc ?
|
|
9623
|
+
/*#__PURE__*/
|
|
9624
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9625
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9626
|
+
/*#__PURE__*/
|
|
9627
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9628
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
9561
9629
|
};
|
|
9562
|
-
|
|
9563
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
|
|
9630
|
+
//# sourceMappingURL=path.js.map
|
|
9564
9631
|
|
|
9565
9632
|
/***/ }),
|
|
9566
9633
|
|
|
@@ -9573,33 +9640,37 @@ var Path = function (props) {
|
|
|
9573
9640
|
"use strict";
|
|
9574
9641
|
__webpack_require__.r(__webpack_exports__);
|
|
9575
9642
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9576
|
-
/* harmony export */ "
|
|
9643
|
+
/* harmony export */ "Rect": () => (/* binding */ Rect)
|
|
9577
9644
|
/* harmony export */ });
|
|
9578
9645
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9579
9646
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9580
9647
|
var _excluded = ["desc"];
|
|
9581
9648
|
|
|
9582
|
-
function _extends() { _extends = Object.assign
|
|
9649
|
+
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); }
|
|
9583
9650
|
|
|
9584
9651
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9585
9652
|
|
|
9586
9653
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9587
9654
|
|
|
9588
9655
|
|
|
9589
|
-
|
|
9590
9656
|
var Rect = function (props) {
|
|
9591
9657
|
// eslint-disable-next-line react/prop-types
|
|
9592
9658
|
var desc = props.desc,
|
|
9593
9659
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9594
9660
|
|
|
9595
|
-
return desc ?
|
|
9661
|
+
return desc ?
|
|
9662
|
+
/*#__PURE__*/
|
|
9663
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9664
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9596
9665
|
vectorEffect: "non-scaling-stroke"
|
|
9597
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9666
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9667
|
+
/*#__PURE__*/
|
|
9668
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9669
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9598
9670
|
vectorEffect: "non-scaling-stroke"
|
|
9599
9671
|
}, rest));
|
|
9600
9672
|
};
|
|
9601
|
-
|
|
9602
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
|
|
9673
|
+
//# sourceMappingURL=rect.js.map
|
|
9603
9674
|
|
|
9604
9675
|
/***/ }),
|
|
9605
9676
|
|
|
@@ -9612,7 +9683,7 @@ var Rect = function (props) {
|
|
|
9612
9683
|
"use strict";
|
|
9613
9684
|
__webpack_require__.r(__webpack_exports__);
|
|
9614
9685
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9615
|
-
/* harmony export */ "
|
|
9686
|
+
/* harmony export */ "Text": () => (/* binding */ Text)
|
|
9616
9687
|
/* harmony export */ });
|
|
9617
9688
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9618
9689
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9626,22 +9697,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
9626
9697
|
|
|
9627
9698
|
|
|
9628
9699
|
|
|
9629
|
-
|
|
9630
9700
|
var Text = function (props) {
|
|
9631
9701
|
var children = props.children,
|
|
9632
9702
|
title = props.title,
|
|
9633
9703
|
desc = props.desc,
|
|
9634
9704
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9635
9705
|
|
|
9636
|
-
return
|
|
9706
|
+
return (
|
|
9707
|
+
/*#__PURE__*/
|
|
9708
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9709
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children)
|
|
9710
|
+
);
|
|
9637
9711
|
};
|
|
9638
|
-
|
|
9639
9712
|
Text.propTypes = {
|
|
9640
9713
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
9641
9714
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
9642
9715
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
9643
9716
|
};
|
|
9644
|
-
|
|
9717
|
+
//# sourceMappingURL=text.js.map
|
|
9645
9718
|
|
|
9646
9719
|
/***/ }),
|
|
9647
9720
|
|
|
@@ -9654,17 +9727,19 @@ Text.propTypes = {
|
|
|
9654
9727
|
"use strict";
|
|
9655
9728
|
__webpack_require__.r(__webpack_exports__);
|
|
9656
9729
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9657
|
-
/* harmony export */ "
|
|
9730
|
+
/* harmony export */ "TSpan": () => (/* binding */ TSpan)
|
|
9658
9731
|
/* harmony export */ });
|
|
9659
9732
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9660
9733
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9661
9734
|
|
|
9662
|
-
|
|
9663
9735
|
var TSpan = function (props) {
|
|
9664
|
-
return
|
|
9736
|
+
return (
|
|
9737
|
+
/*#__PURE__*/
|
|
9738
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9739
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
9740
|
+
);
|
|
9665
9741
|
};
|
|
9666
|
-
|
|
9667
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
|
|
9742
|
+
//# sourceMappingURL=tspan.js.map
|
|
9668
9743
|
|
|
9669
9744
|
/***/ }),
|
|
9670
9745
|
|
|
@@ -9677,7 +9752,7 @@ var TSpan = function (props) {
|
|
|
9677
9752
|
"use strict";
|
|
9678
9753
|
__webpack_require__.r(__webpack_exports__);
|
|
9679
9754
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9680
|
-
/* harmony export */ "
|
|
9755
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
9681
9756
|
/* harmony export */ });
|
|
9682
9757
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9683
9758
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9724,7 +9799,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9724
9799
|
|
|
9725
9800
|
var strokeLinecap = "round";
|
|
9726
9801
|
var strokeLinejoin = "round";
|
|
9727
|
-
|
|
9802
|
+
var grayscale = {
|
|
9728
9803
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9729
9804
|
style: {
|
|
9730
9805
|
data: {
|
|
@@ -9939,7 +10014,8 @@ var strokeLinejoin = "round";
|
|
|
9939
10014
|
}
|
|
9940
10015
|
}
|
|
9941
10016
|
}, baseProps)
|
|
9942
|
-
}
|
|
10017
|
+
};
|
|
10018
|
+
//# sourceMappingURL=grayscale.js.map
|
|
9943
10019
|
|
|
9944
10020
|
/***/ }),
|
|
9945
10021
|
|
|
@@ -9952,7 +10028,7 @@ var strokeLinejoin = "round";
|
|
|
9952
10028
|
"use strict";
|
|
9953
10029
|
__webpack_require__.r(__webpack_exports__);
|
|
9954
10030
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9955
|
-
/* harmony export */ "
|
|
10031
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
9956
10032
|
/* harmony export */ });
|
|
9957
10033
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9958
10034
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10009,7 +10085,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
10009
10085
|
var strokeDasharray = "10, 5";
|
|
10010
10086
|
var strokeLinecap = "round";
|
|
10011
10087
|
var strokeLinejoin = "round";
|
|
10012
|
-
|
|
10088
|
+
var material = {
|
|
10013
10089
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
10014
10090
|
style: {
|
|
10015
10091
|
data: {
|
|
@@ -10241,7 +10317,8 @@ var strokeLinejoin = "round";
|
|
|
10241
10317
|
}
|
|
10242
10318
|
}
|
|
10243
10319
|
}, baseProps)
|
|
10244
|
-
}
|
|
10320
|
+
};
|
|
10321
|
+
//# sourceMappingURL=material.js.map
|
|
10245
10322
|
|
|
10246
10323
|
/***/ }),
|
|
10247
10324
|
|
|
@@ -10254,16 +10331,18 @@ var strokeLinejoin = "round";
|
|
|
10254
10331
|
"use strict";
|
|
10255
10332
|
__webpack_require__.r(__webpack_exports__);
|
|
10256
10333
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10257
|
-
/* harmony export */ "
|
|
10334
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
10258
10335
|
/* harmony export */ });
|
|
10259
|
-
/* harmony import */ var
|
|
10260
|
-
/* harmony import */ var
|
|
10336
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
10337
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
10261
10338
|
|
|
10262
10339
|
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
grayscale:
|
|
10266
|
-
|
|
10340
|
+
|
|
10341
|
+
var VictoryTheme = {
|
|
10342
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
10343
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
10344
|
+
};
|
|
10345
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
10267
10346
|
|
|
10268
10347
|
/***/ }),
|
|
10269
10348
|
|
|
@@ -10276,33 +10355,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10276
10355
|
"use strict";
|
|
10277
10356
|
__webpack_require__.r(__webpack_exports__);
|
|
10278
10357
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10279
|
-
/* harmony export */ "
|
|
10358
|
+
/* harmony export */ "VictoryTransition": () => (/* binding */ VictoryTransition)
|
|
10280
10359
|
/* harmony export */ });
|
|
10281
|
-
/* harmony import */ var
|
|
10282
|
-
/* harmony import */ var
|
|
10283
|
-
/* harmony import */ var
|
|
10284
|
-
/* harmony import */ var
|
|
10285
|
-
/* harmony import */ var
|
|
10286
|
-
/* harmony import */ var
|
|
10287
|
-
/* harmony import */ var
|
|
10288
|
-
/* harmony import */ var
|
|
10289
|
-
/* harmony import */ var
|
|
10290
|
-
/* harmony import */ var
|
|
10291
|
-
/* harmony import */ var
|
|
10292
|
-
/* harmony import */ var
|
|
10293
|
-
/* harmony import */ var
|
|
10294
|
-
/* harmony import */ var
|
|
10295
|
-
/* harmony import */ var
|
|
10296
|
-
/* harmony import */ var
|
|
10297
|
-
/* harmony import */ var
|
|
10298
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10299
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_6__);
|
|
10300
|
-
|
|
10360
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
10361
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
10362
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
10363
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
|
|
10364
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10365
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
10366
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
10367
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
10368
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
10369
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
10370
|
+
/* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
|
|
10371
|
+
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
10372
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10373
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
10374
|
+
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
10375
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10376
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
10301
10377
|
|
|
10302
10378
|
|
|
10303
10379
|
|
|
10304
10380
|
|
|
10305
|
-
function _extends() { _extends = Object.assign
|
|
10381
|
+
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); }
|
|
10306
10382
|
|
|
10307
10383
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10308
10384
|
|
|
@@ -10312,7 +10388,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
10312
10388
|
|
|
10313
10389
|
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); }
|
|
10314
10390
|
|
|
10315
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
10391
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10316
10392
|
|
|
10317
10393
|
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); }; }
|
|
10318
10394
|
|
|
@@ -10322,10 +10398,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10322
10398
|
|
|
10323
10399
|
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; } }
|
|
10324
10400
|
|
|
10325
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10326
|
-
|
|
10327
|
-
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; }
|
|
10328
|
-
|
|
10401
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10329
10402
|
|
|
10330
10403
|
|
|
10331
10404
|
|
|
@@ -10346,6 +10419,9 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10346
10419
|
_classCallCheck(this, VictoryTransition);
|
|
10347
10420
|
|
|
10348
10421
|
_this = _super.call(this, props, context);
|
|
10422
|
+
_this.continuous = void 0;
|
|
10423
|
+
_this.timer = void 0;
|
|
10424
|
+
_this.transitionProps = void 0;
|
|
10349
10425
|
_this.state = {
|
|
10350
10426
|
nodesShouldLoad: false,
|
|
10351
10427
|
nodesDoneLoad: false
|
|
@@ -10353,7 +10429,6 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10353
10429
|
var child = _this.props.children;
|
|
10354
10430
|
var polar = child.props.polar;
|
|
10355
10431
|
_this.continuous = !polar && child.type && child.type.continuous === true;
|
|
10356
|
-
_this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
|
|
10357
10432
|
_this.timer = _this.context.transitionTimer;
|
|
10358
10433
|
return _this;
|
|
10359
10434
|
}
|
|
@@ -10370,7 +10445,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10370
10445
|
value: function shouldComponentUpdate(nextProps) {
|
|
10371
10446
|
var _this2 = this;
|
|
10372
10447
|
|
|
10373
|
-
if (!
|
|
10448
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
10374
10449
|
this.timer.bypassAnimation();
|
|
10375
10450
|
this.setState(this.getTransitionState(this.props, nextProps), function () {
|
|
10376
10451
|
return _this2.timer.resumeAnimation();
|
|
@@ -10399,10 +10474,10 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10399
10474
|
nextProps: nextProps
|
|
10400
10475
|
};
|
|
10401
10476
|
} else {
|
|
10402
|
-
var oldChildren =
|
|
10403
|
-
var nextChildren =
|
|
10477
|
+
var oldChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
|
|
10478
|
+
var nextChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(nextProps.children);
|
|
10404
10479
|
|
|
10405
|
-
var _Transitions$getIniti =
|
|
10480
|
+
var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getInitialTransitionState(oldChildren, nextChildren),
|
|
10406
10481
|
nodesWillExit = _Transitions$getIniti.nodesWillExit,
|
|
10407
10482
|
nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
|
|
10408
10483
|
childrenTransitions = _Transitions$getIniti.childrenTransitions,
|
|
@@ -10423,18 +10498,18 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10423
10498
|
value: function getDomainFromChildren(props, axis) {
|
|
10424
10499
|
var getChildDomains = function (children) {
|
|
10425
10500
|
return children.reduce(function (memo, child) {
|
|
10426
|
-
if (child.type &&
|
|
10501
|
+
if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getDomain)) {
|
|
10427
10502
|
var childDomain = child.props && child.type.getDomain(child.props, axis);
|
|
10428
10503
|
return childDomain ? memo.concat(childDomain) : memo;
|
|
10429
10504
|
} else if (child.props && child.props.children) {
|
|
10430
|
-
return memo.concat(getChildDomains(
|
|
10505
|
+
return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children)));
|
|
10431
10506
|
}
|
|
10432
10507
|
|
|
10433
10508
|
return memo;
|
|
10434
10509
|
}, []);
|
|
10435
10510
|
};
|
|
10436
10511
|
|
|
10437
|
-
var child =
|
|
10512
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
10438
10513
|
var childProps = child.props || {};
|
|
10439
10514
|
var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
|
|
10440
10515
|
|
|
@@ -10442,7 +10517,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10442
10517
|
return domain;
|
|
10443
10518
|
} else {
|
|
10444
10519
|
var childDomains = getChildDomains([child]);
|
|
10445
|
-
return childDomains.length === 0 ? [0, 1] : [
|
|
10520
|
+
return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMaxValue(childDomains)];
|
|
10446
10521
|
}
|
|
10447
10522
|
}
|
|
10448
10523
|
}, {
|
|
@@ -10457,10 +10532,12 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10457
10532
|
}, {
|
|
10458
10533
|
key: "pickDomainProps",
|
|
10459
10534
|
value: function pickDomainProps(props) {
|
|
10460
|
-
var
|
|
10535
|
+
var _props$animate;
|
|
10536
|
+
|
|
10537
|
+
var parentState = (_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.parentState;
|
|
10461
10538
|
|
|
10462
10539
|
if (parentState && parentState.nodesWillExit) {
|
|
10463
|
-
return this.
|
|
10540
|
+
return this.continuous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
|
|
10464
10541
|
}
|
|
10465
10542
|
|
|
10466
10543
|
return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
|
|
@@ -10469,7 +10546,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10469
10546
|
key: "getClipWidth",
|
|
10470
10547
|
value: function getClipWidth(props, child) {
|
|
10471
10548
|
var getDefaultClipWidth = function () {
|
|
10472
|
-
var range =
|
|
10549
|
+
var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(child.props, "x");
|
|
10473
10550
|
return range ? Math.abs(range[1] - range[0]) : props.width;
|
|
10474
10551
|
};
|
|
10475
10552
|
|
|
@@ -10479,13 +10556,14 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10479
10556
|
}, {
|
|
10480
10557
|
key: "render",
|
|
10481
10558
|
value: function render() {
|
|
10482
|
-
var
|
|
10559
|
+
var _this$props$animate,
|
|
10560
|
+
_this3 = this;
|
|
10483
10561
|
|
|
10484
10562
|
var props = this.pickProps();
|
|
10485
|
-
var getTransitionProps =
|
|
10563
|
+
var getTransitionProps = (_this$props$animate = this.props.animate) !== null && _this$props$animate !== void 0 && _this$props$animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, function (newState) {
|
|
10486
10564
|
return _this3.setState(newState);
|
|
10487
10565
|
});
|
|
10488
|
-
var child =
|
|
10566
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
10489
10567
|
var transitionProps = getTransitionProps(child);
|
|
10490
10568
|
this.transitionProps = transitionProps;
|
|
10491
10569
|
var domain = {
|
|
@@ -10494,29 +10572,29 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10494
10572
|
};
|
|
10495
10573
|
var clipWidth = this.getClipWidth(props, child);
|
|
10496
10574
|
|
|
10497
|
-
var combinedProps =
|
|
10575
|
+
var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10498
10576
|
domain: domain,
|
|
10499
10577
|
clipWidth: clipWidth
|
|
10500
10578
|
}, transitionProps, child.props);
|
|
10501
10579
|
|
|
10502
10580
|
var animationWhitelist = props.animationWhitelist || [];
|
|
10503
10581
|
var whitelist = animationWhitelist.concat(["clipWidth"]);
|
|
10504
|
-
var propsToAnimate = whitelist.length ?
|
|
10505
|
-
return /*#__PURE__*/
|
|
10582
|
+
var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
|
|
10583
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
|
|
10506
10584
|
data: propsToAnimate
|
|
10507
10585
|
}), function (newProps) {
|
|
10508
10586
|
if (child.props.groupComponent) {
|
|
10509
|
-
var groupComponent = _this3.continuous ? /*#__PURE__*/
|
|
10587
|
+
var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child.props.groupComponent, {
|
|
10510
10588
|
clipWidth: newProps.clipWidth || 0
|
|
10511
10589
|
}) : child.props.groupComponent;
|
|
10512
|
-
return /*#__PURE__*/
|
|
10590
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10513
10591
|
animate: null,
|
|
10514
10592
|
animating: true,
|
|
10515
10593
|
groupComponent: groupComponent
|
|
10516
10594
|
}, newProps, combinedProps));
|
|
10517
10595
|
}
|
|
10518
10596
|
|
|
10519
|
-
return /*#__PURE__*/
|
|
10597
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10520
10598
|
animate: null,
|
|
10521
10599
|
animating: true
|
|
10522
10600
|
}, newProps, combinedProps));
|
|
@@ -10525,19 +10603,15 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10525
10603
|
}]);
|
|
10526
10604
|
|
|
10527
10605
|
return VictoryTransition;
|
|
10528
|
-
}((
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
_defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]);
|
|
10539
|
-
|
|
10540
|
-
|
|
10606
|
+
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
10607
|
+
VictoryTransition.displayName = "VictoryTransition";
|
|
10608
|
+
VictoryTransition.propTypes = {
|
|
10609
|
+
animate: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)]),
|
|
10610
|
+
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
10611
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
10612
|
+
};
|
|
10613
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
10614
|
+
//# sourceMappingURL=victory-transition.js.map
|
|
10541
10615
|
|
|
10542
10616
|
/***/ }),
|
|
10543
10617
|
|
|
@@ -10550,33 +10624,32 @@ _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__W
|
|
|
10550
10624
|
"use strict";
|
|
10551
10625
|
__webpack_require__.r(__webpack_exports__);
|
|
10552
10626
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10553
|
-
/* harmony export */ "
|
|
10627
|
+
/* harmony export */ "addEvents": () => (/* binding */ addEvents)
|
|
10554
10628
|
/* harmony export */ });
|
|
10555
|
-
/* harmony import */ var
|
|
10556
|
-
/* harmony import */ var
|
|
10557
|
-
/* harmony import */ var
|
|
10558
|
-
/* harmony import */ var
|
|
10559
|
-
/* harmony import */ var
|
|
10560
|
-
/* harmony import */ var
|
|
10561
|
-
/* harmony import */ var
|
|
10562
|
-
/* harmony import */ var
|
|
10563
|
-
/* harmony import */ var
|
|
10564
|
-
/* harmony import */ var
|
|
10565
|
-
/* harmony import */ var
|
|
10566
|
-
/* harmony import */ var
|
|
10567
|
-
/* harmony import */ var
|
|
10568
|
-
/* harmony import */ var
|
|
10569
|
-
/* harmony import */ var
|
|
10570
|
-
/* harmony import */ var
|
|
10571
|
-
/* harmony import */ var
|
|
10572
|
-
/* harmony import */ var
|
|
10629
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
10630
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
10631
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
10632
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
10633
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10634
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
|
|
10635
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
|
|
10636
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
|
|
10637
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
10638
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
|
|
10639
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
10640
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
|
|
10641
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
|
|
10642
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
|
|
10643
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10644
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
|
|
10645
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
10646
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
|
|
10573
10647
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
|
|
10574
10648
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
|
10575
10649
|
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
10576
10650
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10577
10651
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_10__);
|
|
10578
10652
|
/* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js");
|
|
10579
|
-
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
10580
10653
|
|
|
10581
10654
|
|
|
10582
10655
|
|
|
@@ -10607,7 +10680,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
10607
10680
|
|
|
10608
10681
|
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); }
|
|
10609
10682
|
|
|
10610
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
10683
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10611
10684
|
|
|
10612
10685
|
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); }; }
|
|
10613
10686
|
|
|
@@ -10617,7 +10690,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10617
10690
|
|
|
10618
10691
|
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; } }
|
|
10619
10692
|
|
|
10620
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10693
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10621
10694
|
|
|
10622
10695
|
/*global window:false */
|
|
10623
10696
|
|
|
@@ -10625,9 +10698,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10625
10698
|
|
|
10626
10699
|
|
|
10627
10700
|
|
|
10628
|
-
|
|
10701
|
+
// DISCLAIMER:
|
|
10702
|
+
// This file is not currently tested, and it is first on the list of files
|
|
10703
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
10704
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
10629
10705
|
var datumHasXandY = function (datum) {
|
|
10630
|
-
return !
|
|
10706
|
+
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
|
|
10631
10707
|
}; // used for checking state changes. Expected components can be passed in via options
|
|
10632
10708
|
|
|
10633
10709
|
|
|
@@ -10639,44 +10715,45 @@ var defaultComponents = [{
|
|
|
10639
10715
|
}, {
|
|
10640
10716
|
name: "labels"
|
|
10641
10717
|
}];
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10718
|
+
function addEvents(WrappedComponent) {
|
|
10719
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10720
|
+
|
|
10721
|
+
// @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
|
|
10722
|
+
var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
|
|
10723
|
+
_inherits(AddEventsMixin, _WrappedComponent);
|
|
10645
10724
|
|
|
10646
|
-
var _super = _createSuper(
|
|
10725
|
+
var _super = _createSuper(AddEventsMixin);
|
|
10647
10726
|
|
|
10648
|
-
function
|
|
10727
|
+
function AddEventsMixin(props) {
|
|
10649
10728
|
var _this;
|
|
10650
10729
|
|
|
10651
|
-
_classCallCheck(this,
|
|
10730
|
+
_classCallCheck(this, AddEventsMixin);
|
|
10652
10731
|
|
|
10653
10732
|
_this = _super.call(this, props);
|
|
10654
|
-
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10655
|
-
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
10656
10733
|
_this.state = {};
|
|
10734
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
10735
|
+
_this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10657
10736
|
|
|
10658
10737
|
_this.getEvents = function (p, target, eventKey) {
|
|
10659
|
-
return
|
|
10738
|
+
return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
|
|
10660
10739
|
};
|
|
10661
10740
|
|
|
10662
|
-
_this.
|
|
10663
|
-
|
|
10664
|
-
var calculatedValues = _this.getCalculatedValues(props);
|
|
10665
|
-
|
|
10666
|
-
_this.cacheValues(calculatedValues);
|
|
10667
|
-
|
|
10668
|
-
_this.externalMutations = _this.getExternalMutations(props);
|
|
10669
|
-
_this.calculatedState = _this.getStateChanges(props);
|
|
10741
|
+
_this.externalMutations = _this.getExternalMutations(_this.props);
|
|
10742
|
+
_this.calculatedState = _this.getStateChanges(_this.props);
|
|
10670
10743
|
_this.globalEvents = {};
|
|
10671
10744
|
_this.prevGlobalEventKeys = [];
|
|
10672
10745
|
_this.boundGlobalEvents = {};
|
|
10746
|
+
|
|
10747
|
+
_this.cacheValues(_this.getCalculatedValues(props));
|
|
10748
|
+
|
|
10673
10749
|
return _this;
|
|
10674
10750
|
}
|
|
10675
10751
|
|
|
10676
|
-
_createClass(
|
|
10752
|
+
_createClass(AddEventsMixin, [{
|
|
10677
10753
|
key: "shouldComponentUpdate",
|
|
10678
10754
|
value: function shouldComponentUpdate(nextProps) {
|
|
10679
|
-
var externalMutations = this.getExternalMutations(nextProps);
|
|
10755
|
+
var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
|
|
10756
|
+
|
|
10680
10757
|
var animating = this.props.animating || this.props.animate;
|
|
10681
10758
|
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
10682
10759
|
|
|
@@ -10706,7 +10783,7 @@ var defaultComponents = [{
|
|
|
10706
10783
|
value: function componentDidMount() {
|
|
10707
10784
|
var _this2 = this;
|
|
10708
10785
|
|
|
10709
|
-
var globalEventKeys =
|
|
10786
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10710
10787
|
|
|
10711
10788
|
globalEventKeys.forEach(function (key) {
|
|
10712
10789
|
return _this2.addGlobalListener(key);
|
|
@@ -10721,15 +10798,15 @@ var defaultComponents = [{
|
|
|
10721
10798
|
var calculatedState = this.getStateChanges(prevProps);
|
|
10722
10799
|
this.calculatedState = calculatedState;
|
|
10723
10800
|
|
|
10724
|
-
var globalEventKeys =
|
|
10801
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10725
10802
|
|
|
10726
|
-
var removedGlobalEventKeys =
|
|
10803
|
+
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
10727
10804
|
|
|
10728
10805
|
removedGlobalEventKeys.forEach(function (key) {
|
|
10729
10806
|
return _this3.removeGlobalListener(key);
|
|
10730
10807
|
});
|
|
10731
10808
|
|
|
10732
|
-
var addedGlobalEventKeys =
|
|
10809
|
+
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
10733
10810
|
|
|
10734
10811
|
addedGlobalEventKeys.forEach(function (key) {
|
|
10735
10812
|
return _this3.addGlobalListener(key);
|
|
@@ -10775,12 +10852,11 @@ var defaultComponents = [{
|
|
|
10775
10852
|
}
|
|
10776
10853
|
|
|
10777
10854
|
var getState = function (key, type) {
|
|
10778
|
-
var result =
|
|
10855
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
10779
10856
|
|
|
10780
|
-
return
|
|
10857
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
|
|
10781
10858
|
};
|
|
10782
10859
|
|
|
10783
|
-
options = options || {};
|
|
10784
10860
|
var components = options.components || defaultComponents;
|
|
10785
10861
|
var stateChanges = components.map(function (component) {
|
|
10786
10862
|
if (!props.standalone && component.name === "parent") {
|
|
@@ -10797,9 +10873,9 @@ var defaultComponents = [{
|
|
|
10797
10873
|
}, {
|
|
10798
10874
|
key: "applyExternalMutations",
|
|
10799
10875
|
value: function applyExternalMutations(props, externalMutations) {
|
|
10800
|
-
if (!
|
|
10876
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
|
|
10801
10877
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
10802
|
-
memo =
|
|
10878
|
+
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
10803
10879
|
return memo;
|
|
10804
10880
|
}, []);
|
|
10805
10881
|
var compiledCallbacks = callbacks.length ? function () {
|
|
@@ -10816,12 +10892,12 @@ var defaultComponents = [{
|
|
|
10816
10892
|
var sharedEvents = props.sharedEvents;
|
|
10817
10893
|
var components = WrappedComponent.expectedComponents;
|
|
10818
10894
|
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
10819
|
-
var getSharedEventState = sharedEvents &&
|
|
10895
|
+
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
10820
10896
|
return undefined;
|
|
10821
10897
|
};
|
|
10822
10898
|
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
10823
10899
|
|
|
10824
|
-
var dataKeys =
|
|
10900
|
+
var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
|
|
10825
10901
|
return key !== "parent";
|
|
10826
10902
|
});
|
|
10827
10903
|
|
|
@@ -10841,32 +10917,32 @@ var defaultComponents = [{
|
|
|
10841
10917
|
value: function getExternalMutations(props) {
|
|
10842
10918
|
var sharedEvents = props.sharedEvents,
|
|
10843
10919
|
externalEventMutations = props.externalEventMutations;
|
|
10844
|
-
return
|
|
10920
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
10845
10921
|
}
|
|
10846
10922
|
}, {
|
|
10847
10923
|
key: "cacheValues",
|
|
10848
10924
|
value: function cacheValues(obj) {
|
|
10849
10925
|
var _this7 = this;
|
|
10850
10926
|
|
|
10851
|
-
|
|
10927
|
+
lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
|
|
10852
10928
|
_this7[key] = obj[key];
|
|
10853
10929
|
});
|
|
10854
10930
|
}
|
|
10855
10931
|
}, {
|
|
10856
10932
|
key: "getBaseProps",
|
|
10857
10933
|
value: function getBaseProps(props, getSharedEventState) {
|
|
10858
|
-
getSharedEventState = getSharedEventState || this.getSharedEventState;
|
|
10934
|
+
getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
|
|
10859
10935
|
var sharedParentState = getSharedEventState("parent", "parent");
|
|
10860
10936
|
var parentState = this.getEventState("parent", "parent");
|
|
10861
10937
|
|
|
10862
|
-
var baseParentProps =
|
|
10938
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
|
|
10863
10939
|
|
|
10864
10940
|
var parentPropsList = baseParentProps.parentControlledProps;
|
|
10865
|
-
var parentProps = parentPropsList ?
|
|
10941
|
+
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
|
|
10866
10942
|
|
|
10867
|
-
var modifiedProps =
|
|
10943
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
|
|
10868
10944
|
|
|
10869
|
-
return
|
|
10945
|
+
return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
10870
10946
|
}
|
|
10871
10947
|
}, {
|
|
10872
10948
|
key: "getAllEvents",
|
|
@@ -10894,21 +10970,21 @@ var defaultComponents = [{
|
|
|
10894
10970
|
if (this.hasEvents) {
|
|
10895
10971
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
10896
10972
|
|
|
10897
|
-
var componentProps =
|
|
10973
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10898
10974
|
index: index,
|
|
10899
10975
|
key: id
|
|
10900
10976
|
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
10901
10977
|
id: id
|
|
10902
10978
|
});
|
|
10903
10979
|
|
|
10904
|
-
var events =
|
|
10980
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
10905
10981
|
|
|
10906
|
-
return
|
|
10982
|
+
return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
|
|
10907
10983
|
events: events
|
|
10908
10984
|
});
|
|
10909
10985
|
}
|
|
10910
10986
|
|
|
10911
|
-
return
|
|
10987
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10912
10988
|
index: index,
|
|
10913
10989
|
key: id
|
|
10914
10990
|
}, component.props, baseProps, {
|
|
@@ -10931,11 +11007,14 @@ var defaultComponents = [{
|
|
|
10931
11007
|
}, {
|
|
10932
11008
|
key: "animateComponent",
|
|
10933
11009
|
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
10934
|
-
var
|
|
10935
|
-
|
|
11010
|
+
var _props$animate;
|
|
11011
|
+
|
|
11012
|
+
var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
|
|
11013
|
+
var Comp = this.constructor;
|
|
11014
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
|
|
10936
11015
|
animate: props.animate,
|
|
10937
11016
|
animationWhitelist: animationWhitelist
|
|
10938
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(
|
|
11017
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
|
|
10939
11018
|
} // Used by `VictoryLine` and `VictoryArea`
|
|
10940
11019
|
|
|
10941
11020
|
}, {
|
|
@@ -10947,7 +11026,7 @@ var defaultComponents = [{
|
|
|
10947
11026
|
labelComponent = props.labelComponent,
|
|
10948
11027
|
groupComponent = props.groupComponent;
|
|
10949
11028
|
|
|
10950
|
-
var dataKeys =
|
|
11029
|
+
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
|
|
10951
11030
|
|
|
10952
11031
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
10953
11032
|
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
@@ -10971,7 +11050,6 @@ var defaultComponents = [{
|
|
|
10971
11050
|
var dataComponent = props.dataComponent,
|
|
10972
11051
|
labelComponent = props.labelComponent,
|
|
10973
11052
|
groupComponent = props.groupComponent;
|
|
10974
|
-
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__.getSafeUserProps(props);
|
|
10975
11053
|
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
10976
11054
|
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
10977
11055
|
|
|
@@ -10991,14 +11069,16 @@ var defaultComponents = [{
|
|
|
10991
11069
|
return undefined;
|
|
10992
11070
|
}).filter(Boolean);
|
|
10993
11071
|
var children = [].concat(_toConsumableArray(dataComponents), _toConsumableArray(labelComponents));
|
|
10994
|
-
|
|
10995
|
-
return this.renderContainer(group, children);
|
|
11072
|
+
return this.renderContainer(groupComponent, children);
|
|
10996
11073
|
}
|
|
10997
11074
|
}]);
|
|
10998
11075
|
|
|
10999
|
-
return
|
|
11076
|
+
return AddEventsMixin;
|
|
11000
11077
|
}(WrappedComponent);
|
|
11001
|
-
|
|
11078
|
+
|
|
11079
|
+
return AddEventsMixin;
|
|
11080
|
+
}
|
|
11081
|
+
//# sourceMappingURL=add-events.js.map
|
|
11002
11082
|
|
|
11003
11083
|
/***/ }),
|
|
11004
11084
|
|
|
@@ -11011,19 +11091,19 @@ var defaultComponents = [{
|
|
|
11011
11091
|
"use strict";
|
|
11012
11092
|
__webpack_require__.r(__webpack_exports__);
|
|
11013
11093
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11014
|
-
/* harmony export */ "getAxis": () => (/* binding */ getAxis),
|
|
11015
11094
|
/* harmony export */ "findAxisComponents": () => (/* binding */ findAxisComponents),
|
|
11095
|
+
/* harmony export */ "getAxis": () => (/* binding */ getAxis),
|
|
11016
11096
|
/* harmony export */ "getAxisComponent": () => (/* binding */ getAxisComponent),
|
|
11017
11097
|
/* harmony export */ "getAxisComponentsWithParent": () => (/* binding */ getAxisComponentsWithParent),
|
|
11098
|
+
/* harmony export */ "getAxisValue": () => (/* binding */ getAxisValue),
|
|
11099
|
+
/* harmony export */ "getDomain": () => (/* binding */ getDomain),
|
|
11018
11100
|
/* harmony export */ "getOrigin": () => (/* binding */ getOrigin),
|
|
11019
11101
|
/* harmony export */ "getOriginSign": () => (/* binding */ getOriginSign),
|
|
11020
|
-
/* harmony export */ "isVertical": () => (/* binding */ isVertical),
|
|
11021
|
-
/* harmony export */ "stringTicks": () => (/* binding */ stringTicks),
|
|
11022
11102
|
/* harmony export */ "getTickFormat": () => (/* binding */ getTickFormat),
|
|
11023
11103
|
/* harmony export */ "getTicks": () => (/* binding */ getTicks),
|
|
11024
|
-
/* harmony export */ "
|
|
11025
|
-
/* harmony export */ "
|
|
11026
|
-
/* harmony export */ "
|
|
11104
|
+
/* harmony export */ "isVertical": () => (/* binding */ isVertical),
|
|
11105
|
+
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
11106
|
+
/* harmony export */ "stringTicks": () => (/* binding */ stringTicks)
|
|
11027
11107
|
/* harmony export */ });
|
|
11028
11108
|
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
11029
11109
|
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11079,7 +11159,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11079
11159
|
|
|
11080
11160
|
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; }
|
|
11081
11161
|
|
|
11082
|
-
|
|
11162
|
+
|
|
11083
11163
|
|
|
11084
11164
|
|
|
11085
11165
|
|
|
@@ -11090,7 +11170,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
11090
11170
|
* @param {Boolean} horizontal: true for horizontal charts
|
|
11091
11171
|
* @returns {String} the dimension appropriate for the axis given its props
|
|
11092
11172
|
*/
|
|
11093
|
-
|
|
11094
11173
|
function getAxis(props) {
|
|
11095
11174
|
var dependentAxis = props.dependentAxis;
|
|
11096
11175
|
return dependentAxis ? "y" : "x";
|
|
@@ -11276,7 +11355,7 @@ function getTickArray(props) {
|
|
|
11276
11355
|
}) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
|
|
11277
11356
|
}
|
|
11278
11357
|
|
|
11279
|
-
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(
|
|
11358
|
+
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
|
|
11280
11359
|
|
|
11281
11360
|
var buildTickArray = function (arr) {
|
|
11282
11361
|
var newTickArray = [];
|
|
@@ -11321,11 +11400,11 @@ function getTickFormat(props, scale) {
|
|
|
11321
11400
|
return defaultTickFormat || scaleTickFormat;
|
|
11322
11401
|
} else if (tickFormat && Array.isArray(tickFormat)) {
|
|
11323
11402
|
var tickArray = getTickArray(props);
|
|
11324
|
-
var tickArrayIndices = tickArray ? tickArray.map(function (v) {
|
|
11403
|
+
var tickArrayIndices = tickArray === null || tickArray === void 0 ? void 0 : tickArray.map(function (v) {
|
|
11325
11404
|
return v.index;
|
|
11326
|
-
})
|
|
11405
|
+
});
|
|
11327
11406
|
var filteredTickFormat = tickFormat.filter(function (t, index) {
|
|
11328
|
-
return tickArrayIndices.includes(index);
|
|
11407
|
+
return tickArrayIndices === null || tickArrayIndices === void 0 ? void 0 : tickArrayIndices.includes(index);
|
|
11329
11408
|
});
|
|
11330
11409
|
return function (x, index) {
|
|
11331
11410
|
return filteredTickFormat[index];
|
|
@@ -11359,7 +11438,8 @@ function downsampleTicks(ticks, tickCount) {
|
|
|
11359
11438
|
});
|
|
11360
11439
|
}
|
|
11361
11440
|
|
|
11362
|
-
function getTicks(props, scale
|
|
11441
|
+
function getTicks(props, scale) {
|
|
11442
|
+
var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
11363
11443
|
var tickCount = props.tickCount;
|
|
11364
11444
|
var tickArray = getTickArray(props);
|
|
11365
11445
|
var tickValues = tickArray ? tickArray.map(function (v) {
|
|
@@ -11482,6 +11562,7 @@ function modifyProps(props, fallbackProps) {
|
|
|
11482
11562
|
theme: theme
|
|
11483
11563
|
}), fallbackProps, "axis");
|
|
11484
11564
|
}
|
|
11565
|
+
//# sourceMappingURL=axis.js.map
|
|
11485
11566
|
|
|
11486
11567
|
/***/ }),
|
|
11487
11568
|
|
|
@@ -11494,14 +11575,14 @@ function modifyProps(props, fallbackProps) {
|
|
|
11494
11575
|
"use strict";
|
|
11495
11576
|
__webpack_require__.r(__webpack_exports__);
|
|
11496
11577
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11497
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
11498
11578
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
11499
11579
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
11500
11580
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
11501
|
-
/* harmony export */ "
|
|
11502
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
11581
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
11503
11582
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
11504
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
11583
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
11584
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
11585
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
11505
11586
|
/* harmony export */ });
|
|
11506
11587
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
11507
11588
|
|
|
@@ -11515,9 +11596,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11515
11596
|
|
|
11516
11597
|
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; }
|
|
11517
11598
|
|
|
11518
|
-
/* eslint-disable func-style */
|
|
11519
|
-
|
|
11520
|
-
/* eslint-disable no-use-before-define */
|
|
11521
11599
|
function isNonEmptyArray(collection) {
|
|
11522
11600
|
return Array.isArray(collection) && collection.length > 0;
|
|
11523
11601
|
}
|
|
@@ -11556,7 +11634,8 @@ function getMaxValue(arr) {
|
|
|
11556
11634
|
}
|
|
11557
11635
|
|
|
11558
11636
|
var array = arr.concat(values);
|
|
11559
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
11637
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
11638
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
11560
11639
|
}
|
|
11561
11640
|
function getMinValue(arr) {
|
|
11562
11641
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -11564,8 +11643,10 @@ function getMinValue(arr) {
|
|
|
11564
11643
|
}
|
|
11565
11644
|
|
|
11566
11645
|
var array = arr.concat(values);
|
|
11567
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
11646
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
11647
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
11568
11648
|
}
|
|
11649
|
+
//# sourceMappingURL=collection.js.map
|
|
11569
11650
|
|
|
11570
11651
|
/***/ }),
|
|
11571
11652
|
|
|
@@ -11578,9 +11659,7 @@ function getMinValue(arr) {
|
|
|
11578
11659
|
"use strict";
|
|
11579
11660
|
__webpack_require__.r(__webpack_exports__);
|
|
11580
11661
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11581
|
-
/* harmony export */ "
|
|
11582
|
-
/* harmony export */ "baseProps": () => (/* binding */ baseProps),
|
|
11583
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
11662
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
11584
11663
|
/* harmony export */ });
|
|
11585
11664
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11586
11665
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11588,26 +11667,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11588
11667
|
|
|
11589
11668
|
|
|
11590
11669
|
var dataProps = {
|
|
11670
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11591
11671
|
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({
|
|
11592
11672
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
11593
11673
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
11594
11674
|
})]),
|
|
11675
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11595
11676
|
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)]),
|
|
11596
11677
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11597
11678
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11598
11679
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11599
11680
|
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)]),
|
|
11600
11681
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11601
|
-
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))]),
|
|
11682
|
+
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))]),
|
|
11602
11683
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
11603
11684
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11604
11685
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11605
11686
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11606
11687
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11607
11688
|
}),
|
|
11608
|
-
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))]),
|
|
11609
|
-
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))]),
|
|
11610
|
-
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))])
|
|
11689
|
+
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))]),
|
|
11690
|
+
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))]),
|
|
11691
|
+
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))])
|
|
11611
11692
|
};
|
|
11612
11693
|
var baseProps = {
|
|
11613
11694
|
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)]),
|
|
@@ -11616,14 +11697,17 @@ var baseProps = {
|
|
|
11616
11697
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
11617
11698
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
11618
11699
|
})]),
|
|
11700
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11619
11701
|
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({
|
|
11620
11702
|
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)]),
|
|
11621
11703
|
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)])
|
|
11622
11704
|
})]),
|
|
11705
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11623
11706
|
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({
|
|
11624
11707
|
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)]),
|
|
11625
11708
|
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)])
|
|
11626
11709
|
})]),
|
|
11710
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11627
11711
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11628
11712
|
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))]),
|
|
11629
11713
|
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))])
|
|
@@ -11634,20 +11718,23 @@ var baseProps = {
|
|
|
11634
11718
|
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)]),
|
|
11635
11719
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11636
11720
|
})),
|
|
11721
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11637
11722
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11638
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
11723
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11639
11724
|
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)]),
|
|
11640
11725
|
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)]),
|
|
11641
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
11726
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11642
11727
|
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)])
|
|
11643
11728
|
})),
|
|
11644
11729
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11645
11730
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11646
11731
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
11732
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11647
11733
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11648
11734
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11649
11735
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
11650
11736
|
}),
|
|
11737
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11651
11738
|
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({
|
|
11652
11739
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11653
11740
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -11656,17 +11743,19 @@ var baseProps = {
|
|
|
11656
11743
|
})]),
|
|
11657
11744
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11658
11745
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11659
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
11660
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
11746
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
11747
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
11661
11748
|
})]),
|
|
11662
11749
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11663
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
11664
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
11750
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
11751
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
11665
11752
|
})]),
|
|
11753
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11666
11754
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11667
11755
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
11668
11756
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
11669
11757
|
}),
|
|
11758
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11670
11759
|
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({
|
|
11671
11760
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
11672
11761
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -11686,6 +11775,7 @@ var primitiveProps = {
|
|
|
11686
11775
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11687
11776
|
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)]),
|
|
11688
11777
|
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)]),
|
|
11778
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11689
11779
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11690
11780
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11691
11781
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -11701,6 +11791,12 @@ var primitiveProps = {
|
|
|
11701
11791
|
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)]),
|
|
11702
11792
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
11703
11793
|
};
|
|
11794
|
+
var CommonProps = {
|
|
11795
|
+
dataProps: dataProps,
|
|
11796
|
+
baseProps: baseProps,
|
|
11797
|
+
primitiveProps: primitiveProps
|
|
11798
|
+
};
|
|
11799
|
+
//# sourceMappingURL=common-props.js.map
|
|
11704
11800
|
|
|
11705
11801
|
/***/ }),
|
|
11706
11802
|
|
|
@@ -11713,10 +11809,10 @@ var primitiveProps = {
|
|
|
11713
11809
|
"use strict";
|
|
11714
11810
|
__webpack_require__.r(__webpack_exports__);
|
|
11715
11811
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11716
|
-
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
11717
11812
|
/* harmony export */ "createStringMap": () => (/* binding */ createStringMap),
|
|
11718
11813
|
/* harmony export */ "downsample": () => (/* binding */ downsample),
|
|
11719
11814
|
/* harmony export */ "formatData": () => (/* binding */ formatData),
|
|
11815
|
+
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
11720
11816
|
/* harmony export */ "generateData": () => (/* binding */ generateData),
|
|
11721
11817
|
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
11722
11818
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
@@ -11783,8 +11879,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11783
11879
|
|
|
11784
11880
|
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; }
|
|
11785
11881
|
|
|
11786
|
-
/* eslint-disable func-style */
|
|
11787
|
-
|
|
11788
11882
|
/* eslint-disable no-use-before-define */
|
|
11789
11883
|
|
|
11790
11884
|
|
|
@@ -12216,6 +12310,7 @@ function isDataComponent(component) {
|
|
|
12216
12310
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
12217
12311
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
12218
12312
|
}
|
|
12313
|
+
//# sourceMappingURL=data.js.map
|
|
12219
12314
|
|
|
12220
12315
|
/***/ }),
|
|
12221
12316
|
|
|
@@ -12278,8 +12373,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
12278
12373
|
|
|
12279
12374
|
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; }
|
|
12280
12375
|
|
|
12281
|
-
/* eslint-disable func-style */
|
|
12282
|
-
|
|
12283
12376
|
/* eslint-disable no-use-before-define */
|
|
12284
12377
|
|
|
12285
12378
|
|
|
@@ -12319,8 +12412,9 @@ function getDomainPadding(props, axis) {
|
|
|
12319
12412
|
}
|
|
12320
12413
|
|
|
12321
12414
|
function getFlatData(dataset, axis) {
|
|
12415
|
+
var axisKey = "_".concat(axis);
|
|
12322
12416
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
12323
|
-
return datum[
|
|
12417
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
12324
12418
|
});
|
|
12325
12419
|
}
|
|
12326
12420
|
|
|
@@ -12385,7 +12479,9 @@ function padDomain(domain, props, axis) {
|
|
|
12385
12479
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
12386
12480
|
// Naive initial padding calculation
|
|
12387
12481
|
var initialPadding = {
|
|
12482
|
+
// @ts-expect-error `max/min` might be dates
|
|
12388
12483
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
12484
|
+
// @ts-expect-error `max/min` might be dates
|
|
12389
12485
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
12390
12486
|
}; // Adjust the domain by the initial padding
|
|
12391
12487
|
|
|
@@ -12670,6 +12766,7 @@ function isDomainComponent(component) {
|
|
|
12670
12766
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
12671
12767
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
12672
12768
|
}
|
|
12769
|
+
//# sourceMappingURL=domain.js.map
|
|
12673
12770
|
|
|
12674
12771
|
/***/ }),
|
|
12675
12772
|
|
|
@@ -12682,18 +12779,18 @@ function isDomainComponent(component) {
|
|
|
12682
12779
|
"use strict";
|
|
12683
12780
|
__webpack_require__.r(__webpack_exports__);
|
|
12684
12781
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12685
|
-
/* harmony export */ "
|
|
12686
|
-
/* harmony export */ "
|
|
12687
|
-
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
12782
|
+
/* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
|
|
12783
|
+
/* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
|
|
12688
12784
|
/* harmony export */ "getEventState": () => (/* binding */ getEventState),
|
|
12689
|
-
/* harmony export */ "
|
|
12690
|
-
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
12785
|
+
/* harmony export */ "getEvents": () => (/* binding */ getEvents),
|
|
12691
12786
|
/* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
|
|
12692
|
-
/* harmony export */ "
|
|
12787
|
+
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
12788
|
+
/* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
|
|
12693
12789
|
/* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
|
|
12694
12790
|
/* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
|
|
12695
|
-
/* harmony export */ "
|
|
12696
|
-
/* harmony export */ "
|
|
12791
|
+
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
12792
|
+
/* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
|
|
12793
|
+
/* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
|
|
12697
12794
|
/* harmony export */ });
|
|
12698
12795
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
12699
12796
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12738,15 +12835,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
12738
12835
|
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; }
|
|
12739
12836
|
|
|
12740
12837
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
12838
|
+
|
|
12741
12839
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
12742
12840
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
12743
12841
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
12744
12842
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
12745
12843
|
* (i.e. VictoryChart) in the case of shared events
|
|
12746
12844
|
*/
|
|
12747
|
-
// eslint-disable-next-line max-params
|
|
12748
|
-
|
|
12749
|
-
|
|
12845
|
+
// eslint-disable-next-line max-params
|
|
12846
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
12847
|
+
getScopedEvents) {
|
|
12750
12848
|
var _this = this;
|
|
12751
12849
|
|
|
12752
12850
|
// Returns all events that apply to a particular target element
|
|
@@ -12969,24 +13067,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
12969
13067
|
return memo;
|
|
12970
13068
|
}, {});
|
|
12971
13069
|
}
|
|
12972
|
-
/*
|
|
13070
|
+
/*
|
|
13071
|
+
* Returns a partially applied event handler for a specific target element
|
|
12973
13072
|
* This allows event handlers to have access to props controlling each element
|
|
12974
13073
|
*/
|
|
12975
13074
|
|
|
12976
13075
|
function getPartialEvents(events, eventKey, childProps) {
|
|
12977
|
-
|
|
13076
|
+
if (!events) return {};
|
|
13077
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
12978
13078
|
var appliedEvent = function (evt) {
|
|
12979
13079
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
12980
13080
|
};
|
|
12981
13081
|
|
|
12982
13082
|
memo[eventName] = appliedEvent;
|
|
12983
13083
|
return memo;
|
|
12984
|
-
}, {})
|
|
13084
|
+
}, {});
|
|
12985
13085
|
}
|
|
13086
|
+
|
|
12986
13087
|
/* Returns the property of the state object corresponding to event changes for
|
|
12987
13088
|
* a particular element
|
|
12988
13089
|
*/
|
|
12989
|
-
|
|
13090
|
+
// eslint-disable-next-line max-params
|
|
12990
13091
|
function getEventState(eventKey, namespace, childType) {
|
|
12991
13092
|
// Mandatory usage: `getEventState.bind(this)`
|
|
12992
13093
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -13171,6 +13272,7 @@ var emulateReactEvent = function (event) {
|
|
|
13171
13272
|
nativeEvent: event
|
|
13172
13273
|
});
|
|
13173
13274
|
};
|
|
13275
|
+
//# sourceMappingURL=events.js.map
|
|
13174
13276
|
|
|
13175
13277
|
/***/ }),
|
|
13176
13278
|
|
|
@@ -13183,25 +13285,25 @@ var emulateReactEvent = function (event) {
|
|
|
13183
13285
|
"use strict";
|
|
13184
13286
|
__webpack_require__.r(__webpack_exports__);
|
|
13185
13287
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13186
|
-
/* harmony export */ "
|
|
13187
|
-
/* harmony export */ "
|
|
13188
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
13189
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
13190
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
13191
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
13192
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
13288
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
13289
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
13193
13290
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
13194
13291
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
13195
|
-
/* harmony export */ "
|
|
13196
|
-
/* harmony export */ "
|
|
13197
|
-
/* harmony export */ "
|
|
13292
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
13293
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
13294
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
13295
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
13198
13296
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
13297
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
13199
13298
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
13200
|
-
/* harmony export */ "
|
|
13299
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
13300
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
13301
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
13201
13302
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
13202
|
-
/* harmony export */ "
|
|
13303
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
13304
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
13203
13305
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
13204
|
-
/* harmony export */ "
|
|
13306
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
13205
13307
|
/* harmony export */ });
|
|
13206
13308
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
13207
13309
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -13224,8 +13326,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13224
13326
|
|
|
13225
13327
|
|
|
13226
13328
|
|
|
13227
|
-
/* eslint-disable func-style */
|
|
13228
|
-
|
|
13229
13329
|
/* eslint-disable no-use-before-define */
|
|
13230
13330
|
|
|
13231
13331
|
|
|
@@ -13254,7 +13354,7 @@ function getPolarRange(props, axis) {
|
|
|
13254
13354
|
|
|
13255
13355
|
/**
|
|
13256
13356
|
* creates an object with some keys excluded
|
|
13257
|
-
* replacement for lodash.omit for performance. does not
|
|
13357
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
13258
13358
|
* @param {Object} originalObject: created object will be based on this object
|
|
13259
13359
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
13260
13360
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -13267,6 +13367,7 @@ function omit(originalObject) {
|
|
|
13267
13367
|
var newObject = {};
|
|
13268
13368
|
|
|
13269
13369
|
for (var key in originalObject) {
|
|
13370
|
+
// @ts-expect-error String is not assignable to Key
|
|
13270
13371
|
if (ks.indexOf(key) >= 0) {
|
|
13271
13372
|
continue;
|
|
13272
13373
|
}
|
|
@@ -13499,7 +13600,9 @@ function reduceChildren(children, iteratee) {
|
|
|
13499
13600
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
13500
13601
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
13501
13602
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
13502
|
-
return
|
|
13603
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
13604
|
+
memo.concat(item)
|
|
13605
|
+
);
|
|
13503
13606
|
};
|
|
13504
13607
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
13505
13608
|
|
|
@@ -13543,7 +13646,7 @@ function reduceChildren(children, iteratee) {
|
|
|
13543
13646
|
/**
|
|
13544
13647
|
* @param {Object} props: the props object
|
|
13545
13648
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
13546
|
-
* children or nested children are
|
|
13649
|
+
* children or nested children are horizontal
|
|
13547
13650
|
*/
|
|
13548
13651
|
|
|
13549
13652
|
function isHorizontal(props) {
|
|
@@ -13566,6 +13669,7 @@ function isHorizontal(props) {
|
|
|
13566
13669
|
|
|
13567
13670
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
13568
13671
|
}
|
|
13672
|
+
//# sourceMappingURL=helpers.js.map
|
|
13569
13673
|
|
|
13570
13674
|
/***/ }),
|
|
13571
13675
|
|
|
@@ -13579,17 +13683,16 @@ function isHorizontal(props) {
|
|
|
13579
13683
|
__webpack_require__.r(__webpack_exports__);
|
|
13580
13684
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13581
13685
|
/* harmony export */ "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
|
|
13582
|
-
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
13583
13686
|
/* harmony export */ "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
|
|
13584
13687
|
/* harmony export */ "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
|
|
13585
|
-
/* harmony export */ "
|
|
13586
|
-
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
13688
|
+
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
13587
13689
|
/* harmony export */ "isImmutable": () => (/* binding */ isImmutable),
|
|
13690
|
+
/* harmony export */ "isIterable": () => (/* binding */ isIterable),
|
|
13588
13691
|
/* harmony export */ "isList": () => (/* binding */ isList),
|
|
13589
13692
|
/* harmony export */ "isMap": () => (/* binding */ isMap),
|
|
13693
|
+
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
13590
13694
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
13591
13695
|
/* harmony export */ });
|
|
13592
|
-
/* eslint-disable func-style */
|
|
13593
13696
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
13594
13697
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
13595
13698
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -13610,15 +13713,16 @@ function isMap(x) {
|
|
|
13610
13713
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
13611
13714
|
}
|
|
13612
13715
|
function shallowToJS(x, whitelist) {
|
|
13613
|
-
return isIterable(x) ? x.reduce(function (
|
|
13716
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
13614
13717
|
if (whitelist && whitelist[key]) {
|
|
13615
13718
|
curr = shallowToJS(curr);
|
|
13616
13719
|
}
|
|
13617
13720
|
|
|
13618
|
-
|
|
13619
|
-
return
|
|
13721
|
+
result[key] = curr;
|
|
13722
|
+
return result;
|
|
13620
13723
|
}, isList(x) ? [] : {}) : x;
|
|
13621
13724
|
}
|
|
13725
|
+
//# sourceMappingURL=immutable.js.map
|
|
13622
13726
|
|
|
13623
13727
|
/***/ }),
|
|
13624
13728
|
|
|
@@ -13631,20 +13735,18 @@ function shallowToJS(x, whitelist) {
|
|
|
13631
13735
|
"use strict";
|
|
13632
13736
|
__webpack_require__.r(__webpack_exports__);
|
|
13633
13737
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13634
|
-
/* harmony export */ "
|
|
13738
|
+
/* harmony export */ "getDegrees": () => (/* binding */ getDegrees),
|
|
13739
|
+
/* harmony export */ "getPolarAngle": () => (/* binding */ getPolarAngle),
|
|
13635
13740
|
/* harmony export */ "getPolarTextAnchor": () => (/* binding */ getPolarTextAnchor),
|
|
13636
13741
|
/* harmony export */ "getPolarVerticalAnchor": () => (/* binding */ getPolarVerticalAnchor),
|
|
13637
|
-
/* harmony export */ "
|
|
13638
|
-
/* harmony export */ "
|
|
13639
|
-
/* harmony export */ "getProps": () => (/* binding */ getProps)
|
|
13742
|
+
/* harmony export */ "getProps": () => (/* binding */ getProps),
|
|
13743
|
+
/* harmony export */ "getText": () => (/* binding */ getText)
|
|
13640
13744
|
/* harmony export */ });
|
|
13641
13745
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
13642
13746
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
13643
13747
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
13644
13748
|
|
|
13645
13749
|
|
|
13646
|
-
/* eslint-disable func-style */
|
|
13647
|
-
|
|
13648
13750
|
/* eslint-disable no-use-before-define */
|
|
13649
13751
|
|
|
13650
13752
|
|
|
@@ -13878,6 +13980,7 @@ function getProps(props, index) {
|
|
|
13878
13980
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
13879
13981
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
13880
13982
|
}
|
|
13983
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
13881
13984
|
|
|
13882
13985
|
/***/ }),
|
|
13883
13986
|
|
|
@@ -13896,7 +13999,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13896
13999
|
|
|
13897
14000
|
/* eslint-disable no-console */
|
|
13898
14001
|
// TODO: Use "warning" npm module like React is switching to.
|
|
13899
|
-
// eslint-disable-next-line func-style
|
|
13900
14002
|
function warn(message) {
|
|
13901
14003
|
if (true) {
|
|
13902
14004
|
if (console && console.warn) {
|
|
@@ -13904,6 +14006,7 @@ function warn(message) {
|
|
|
13904
14006
|
}
|
|
13905
14007
|
}
|
|
13906
14008
|
}
|
|
14009
|
+
//# sourceMappingURL=log.js.map
|
|
13907
14010
|
|
|
13908
14011
|
/***/ }),
|
|
13909
14012
|
|
|
@@ -13916,27 +14019,25 @@ function warn(message) {
|
|
|
13916
14019
|
"use strict";
|
|
13917
14020
|
__webpack_require__.r(__webpack_exports__);
|
|
13918
14021
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13919
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
13920
14022
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
13921
|
-
/* harmony export */ "
|
|
13922
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
13923
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
14023
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
13924
14024
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
13925
|
-
/* harmony export */ "
|
|
14025
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
13926
14026
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
14027
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
13927
14028
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
13928
|
-
/* harmony export */ "
|
|
14029
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
14030
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
14031
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
13929
14032
|
/* harmony export */ });
|
|
13930
14033
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
13931
14034
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
13932
14035
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
13933
14036
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
13934
|
-
/* harmony import */ var
|
|
13935
|
-
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
13936
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
14037
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
13937
14038
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
13938
14039
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
13939
|
-
|
|
14040
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
13940
14041
|
|
|
13941
14042
|
|
|
13942
14043
|
|
|
@@ -13944,6 +14045,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13944
14045
|
|
|
13945
14046
|
|
|
13946
14047
|
|
|
14048
|
+
|
|
14049
|
+
|
|
13947
14050
|
/**
|
|
13948
14051
|
* Return a new validator based on `validator` but with the option to chain
|
|
13949
14052
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -13951,30 +14054,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13951
14054
|
* @param {Function} validator Validation function.
|
|
13952
14055
|
* @returns {Function} Validator with `isRequired` option.
|
|
13953
14056
|
*/
|
|
13954
|
-
|
|
13955
14057
|
var makeChainable = function (validator) {
|
|
13956
|
-
|
|
13957
|
-
|
|
13958
|
-
|
|
14058
|
+
var createChainable = function (isRequired) {
|
|
14059
|
+
return function (props, propName, componentName) {
|
|
14060
|
+
var value = props[propName];
|
|
13959
14061
|
|
|
13960
|
-
|
|
13961
|
-
|
|
13962
|
-
|
|
13963
|
-
|
|
14062
|
+
if (value === undefined || value === null) {
|
|
14063
|
+
if (isRequired) {
|
|
14064
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
14065
|
+
}
|
|
13964
14066
|
|
|
13965
|
-
|
|
13966
|
-
|
|
14067
|
+
return null;
|
|
14068
|
+
}
|
|
13967
14069
|
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
14070
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
14071
|
+
rest[_key - 3] = arguments[_key];
|
|
14072
|
+
}
|
|
13971
14073
|
|
|
13972
|
-
|
|
14074
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
14075
|
+
};
|
|
13973
14076
|
};
|
|
13974
14077
|
|
|
13975
|
-
var chainable =
|
|
13976
|
-
|
|
13977
|
-
|
|
14078
|
+
var chainable = Object.assign(createChainable(false), {
|
|
14079
|
+
isRequired: createChainable(true)
|
|
14080
|
+
});
|
|
13978
14081
|
return chainable;
|
|
13979
14082
|
};
|
|
13980
14083
|
|
|
@@ -14004,7 +14107,7 @@ var getConstructor = function (value) {
|
|
|
14004
14107
|
};
|
|
14005
14108
|
/**
|
|
14006
14109
|
* Get the name of the constructor used to create `value`, using
|
|
14007
|
-
* `Object.
|
|
14110
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
14008
14111
|
* "null" or "undefined", respectively.
|
|
14009
14112
|
* @param {*} value Instance to return the constructor name of.
|
|
14010
14113
|
* @returns {String} Name of the constructor.
|
|
@@ -14034,10 +14137,11 @@ function deprecated(propType, explanation) {
|
|
|
14034
14137
|
var value = props[propName];
|
|
14035
14138
|
|
|
14036
14139
|
if (value !== null && value !== undefined) {
|
|
14037
|
-
|
|
14140
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
14038
14141
|
}
|
|
14039
14142
|
|
|
14040
|
-
|
|
14143
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
14144
|
+
return null;
|
|
14041
14145
|
};
|
|
14042
14146
|
}
|
|
14043
14147
|
/**
|
|
@@ -14056,7 +14160,7 @@ function allOfType(validators) {
|
|
|
14056
14160
|
|
|
14057
14161
|
return validators.reduce(function (result, validator) {
|
|
14058
14162
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
14059
|
-
},
|
|
14163
|
+
}, null);
|
|
14060
14164
|
});
|
|
14061
14165
|
}
|
|
14062
14166
|
/**
|
|
@@ -14070,7 +14174,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
14070
14174
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
14071
14175
|
}
|
|
14072
14176
|
|
|
14073
|
-
return
|
|
14177
|
+
return null;
|
|
14074
14178
|
});
|
|
14075
14179
|
/**
|
|
14076
14180
|
* Check that the value is an integer.
|
|
@@ -14083,7 +14187,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
14083
14187
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
14084
14188
|
}
|
|
14085
14189
|
|
|
14086
|
-
return
|
|
14190
|
+
return null;
|
|
14087
14191
|
});
|
|
14088
14192
|
/**
|
|
14089
14193
|
* Check that the value is greater than zero.
|
|
@@ -14096,7 +14200,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
14096
14200
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
14097
14201
|
}
|
|
14098
14202
|
|
|
14099
|
-
return
|
|
14203
|
+
return null;
|
|
14100
14204
|
});
|
|
14101
14205
|
/**
|
|
14102
14206
|
* Check that the value is an Array of two unique values.
|
|
@@ -14109,32 +14213,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
14109
14213
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
14110
14214
|
}
|
|
14111
14215
|
|
|
14112
|
-
return
|
|
14216
|
+
return null;
|
|
14113
14217
|
});
|
|
14114
14218
|
/**
|
|
14115
14219
|
* Check that the value looks like a d3 `scale` function.
|
|
14116
14220
|
*/
|
|
14117
14221
|
|
|
14118
14222
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
14119
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
14120
|
-
|
|
14121
|
-
var validScale = function (scl) {
|
|
14122
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
14123
|
-
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);
|
|
14124
|
-
} else if (typeof scl === "string") {
|
|
14125
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
14126
|
-
}
|
|
14127
|
-
|
|
14128
|
-
return false;
|
|
14129
|
-
};
|
|
14130
|
-
|
|
14131
14223
|
var value = props[propName];
|
|
14132
14224
|
|
|
14133
|
-
if (!validScale(value)) {
|
|
14225
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
14134
14226
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
14135
14227
|
}
|
|
14136
14228
|
|
|
14137
|
-
return
|
|
14229
|
+
return null;
|
|
14138
14230
|
});
|
|
14139
14231
|
/**
|
|
14140
14232
|
* Check that an array contains items of the same type.
|
|
@@ -14148,7 +14240,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
14148
14240
|
}
|
|
14149
14241
|
|
|
14150
14242
|
if (values.length < 2) {
|
|
14151
|
-
return
|
|
14243
|
+
return null;
|
|
14152
14244
|
}
|
|
14153
14245
|
|
|
14154
14246
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -14163,7 +14255,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
14163
14255
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
14164
14256
|
}
|
|
14165
14257
|
|
|
14166
|
-
return
|
|
14258
|
+
return null;
|
|
14167
14259
|
});
|
|
14168
14260
|
/**
|
|
14169
14261
|
* Check that array prop length matches props.data.length
|
|
@@ -14174,7 +14266,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
14174
14266
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
14175
14267
|
}
|
|
14176
14268
|
|
|
14177
|
-
return
|
|
14269
|
+
return null;
|
|
14178
14270
|
});
|
|
14179
14271
|
/**
|
|
14180
14272
|
* Check that the value is a regular expression
|
|
@@ -14185,8 +14277,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
14185
14277
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
14186
14278
|
}
|
|
14187
14279
|
|
|
14188
|
-
return
|
|
14280
|
+
return null;
|
|
14189
14281
|
});
|
|
14282
|
+
//# sourceMappingURL=prop-types.js.map
|
|
14190
14283
|
|
|
14191
14284
|
/***/ }),
|
|
14192
14285
|
|
|
@@ -14199,12 +14292,13 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
14199
14292
|
"use strict";
|
|
14200
14293
|
__webpack_require__.r(__webpack_exports__);
|
|
14201
14294
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14202
|
-
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
14203
14295
|
/* harmony export */ "getBaseScale": () => (/* binding */ getBaseScale),
|
|
14204
14296
|
/* harmony export */ "getDefaultScale": () => (/* binding */ getDefaultScale),
|
|
14297
|
+
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
14205
14298
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
14206
14299
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
14207
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
14300
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
14301
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
14208
14302
|
/* harmony export */ });
|
|
14209
14303
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
14210
14304
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -14222,8 +14316,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14222
14316
|
|
|
14223
14317
|
|
|
14224
14318
|
|
|
14225
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
14319
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
14226
14320
|
|
|
14321
|
+
// Private Functions
|
|
14227
14322
|
function toNewName(scale) {
|
|
14228
14323
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
14229
14324
|
var capitalize = function (s) {
|
|
@@ -14293,7 +14388,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
14293
14388
|
|
|
14294
14389
|
|
|
14295
14390
|
function getScaleFromName(name) {
|
|
14296
|
-
|
|
14391
|
+
if (validScale(name)) {
|
|
14392
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
14393
|
+
|
|
14394
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
14395
|
+
}
|
|
14396
|
+
|
|
14397
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
14297
14398
|
}
|
|
14298
14399
|
function getBaseScale(props, axis) {
|
|
14299
14400
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -14303,7 +14404,7 @@ function getBaseScale(props, axis) {
|
|
|
14303
14404
|
}
|
|
14304
14405
|
|
|
14305
14406
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
14306
|
-
return
|
|
14407
|
+
return getScaleFromName(defaultScale);
|
|
14307
14408
|
}
|
|
14308
14409
|
function getDefaultScale() {
|
|
14309
14410
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -14316,7 +14417,7 @@ function getScaleFromProps(props, axis) {
|
|
|
14316
14417
|
var scale = props.scale[axis] || props.scale;
|
|
14317
14418
|
|
|
14318
14419
|
if (validScale(scale)) {
|
|
14319
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
14420
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
14320
14421
|
}
|
|
14321
14422
|
|
|
14322
14423
|
return undefined;
|
|
@@ -14351,6 +14452,7 @@ function getType(scale) {
|
|
|
14351
14452
|
})[0];
|
|
14352
14453
|
return scaleType ? scaleType.name : undefined;
|
|
14353
14454
|
}
|
|
14455
|
+
//# sourceMappingURL=scale.js.map
|
|
14354
14456
|
|
|
14355
14457
|
/***/ }),
|
|
14356
14458
|
|
|
@@ -14363,11 +14465,9 @@ function getType(scale) {
|
|
|
14363
14465
|
"use strict";
|
|
14364
14466
|
__webpack_require__.r(__webpack_exports__);
|
|
14365
14467
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14366
|
-
/* harmony export */ "
|
|
14367
|
-
/* harmony export */ "
|
|
14468
|
+
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
14469
|
+
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
14368
14470
|
/* harmony export */ });
|
|
14369
|
-
/* eslint-disable func-style */
|
|
14370
|
-
|
|
14371
14471
|
/**
|
|
14372
14472
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
14373
14473
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -14424,6 +14524,7 @@ function getColorScale(name) {
|
|
|
14424
14524
|
};
|
|
14425
14525
|
return name ? scales[name] : scales.grayscale;
|
|
14426
14526
|
}
|
|
14527
|
+
//# sourceMappingURL=style.js.map
|
|
14427
14528
|
|
|
14428
14529
|
/***/ }),
|
|
14429
14530
|
|
|
@@ -14436,9 +14537,9 @@ function getColorScale(name) {
|
|
|
14436
14537
|
"use strict";
|
|
14437
14538
|
__webpack_require__.r(__webpack_exports__);
|
|
14438
14539
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14439
|
-
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels),
|
|
14440
14540
|
/* harmony export */ "_approximateTextSizeInternal": () => (/* binding */ _approximateTextSizeInternal),
|
|
14441
|
-
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize)
|
|
14541
|
+
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize),
|
|
14542
|
+
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels)
|
|
14442
14543
|
/* harmony export */ });
|
|
14443
14544
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
14444
14545
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -14628,8 +14729,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
14628
14729
|
|
|
14629
14730
|
|
|
14630
14731
|
var convertLengthToPixels = function (length, fontSize) {
|
|
14631
|
-
var
|
|
14632
|
-
|
|
14732
|
+
var _length$match;
|
|
14733
|
+
|
|
14734
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
14735
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
14633
14736
|
var result;
|
|
14634
14737
|
|
|
14635
14738
|
if (!attribute) {
|
|
@@ -14695,9 +14798,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
14695
14798
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
14696
14799
|
return total + lineStyle.lineHeight * height;
|
|
14697
14800
|
}, 0);
|
|
14698
|
-
};
|
|
14699
|
-
|
|
14801
|
+
};
|
|
14700
14802
|
|
|
14803
|
+
// Stubbable implementation.
|
|
14701
14804
|
var _approximateTextSizeInternal = {
|
|
14702
14805
|
impl: function (text, style) {
|
|
14703
14806
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -14716,7 +14819,7 @@ var _approximateTextSizeInternal = {
|
|
|
14716
14819
|
};
|
|
14717
14820
|
/**
|
|
14718
14821
|
* Predict text size by font params.
|
|
14719
|
-
* @param {string} text Content for width calculation.
|
|
14822
|
+
* @param {string|string[]} text Content for width calculation.
|
|
14720
14823
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
14721
14824
|
* @param {string} style.fontFamily Text fontFamily.
|
|
14722
14825
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -14729,6 +14832,7 @@ var _approximateTextSizeInternal = {
|
|
|
14729
14832
|
var approximateTextSize = function (text, style) {
|
|
14730
14833
|
return _approximateTextSizeInternal.impl(text, style);
|
|
14731
14834
|
};
|
|
14835
|
+
//# sourceMappingURL=textsize.js.map
|
|
14732
14836
|
|
|
14733
14837
|
/***/ }),
|
|
14734
14838
|
|
|
@@ -14759,6 +14863,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
14759
14863
|
});
|
|
14760
14864
|
TimerContext.displayName = "TimerContext";
|
|
14761
14865
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
14866
|
+
//# sourceMappingURL=timer-context.js.map
|
|
14762
14867
|
|
|
14763
14868
|
/***/ }),
|
|
14764
14869
|
|
|
@@ -14784,11 +14889,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
14784
14889
|
|
|
14785
14890
|
var Timer = /*#__PURE__*/function () {
|
|
14786
14891
|
function Timer() {
|
|
14892
|
+
var _this = this;
|
|
14893
|
+
|
|
14787
14894
|
_classCallCheck(this, Timer);
|
|
14788
14895
|
|
|
14896
|
+
this.shouldAnimate = void 0;
|
|
14897
|
+
this.subscribers = void 0;
|
|
14898
|
+
this.activeSubscriptions = void 0;
|
|
14899
|
+
this.timer = void 0;
|
|
14900
|
+
|
|
14901
|
+
this.loop = function () {
|
|
14902
|
+
_this.subscribers.forEach(function (s) {
|
|
14903
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
14904
|
+
});
|
|
14905
|
+
};
|
|
14906
|
+
|
|
14789
14907
|
this.shouldAnimate = true;
|
|
14790
14908
|
this.subscribers = [];
|
|
14791
|
-
this.loop = this.loop.bind(this);
|
|
14792
14909
|
this.timer = null;
|
|
14793
14910
|
this.activeSubscriptions = 0;
|
|
14794
14911
|
}
|
|
@@ -14803,13 +14920,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
14803
14920
|
value: function resumeAnimation() {
|
|
14804
14921
|
this.shouldAnimate = true;
|
|
14805
14922
|
}
|
|
14806
|
-
}, {
|
|
14807
|
-
key: "loop",
|
|
14808
|
-
value: function loop() {
|
|
14809
|
-
this.subscribers.forEach(function (s) {
|
|
14810
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
14811
|
-
});
|
|
14812
|
-
}
|
|
14813
14923
|
}, {
|
|
14814
14924
|
key: "start",
|
|
14815
14925
|
value: function start() {
|
|
@@ -14856,6 +14966,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
14856
14966
|
}();
|
|
14857
14967
|
|
|
14858
14968
|
|
|
14969
|
+
//# sourceMappingURL=timer.js.map
|
|
14859
14970
|
|
|
14860
14971
|
/***/ }),
|
|
14861
14972
|
|
|
@@ -14946,7 +15057,7 @@ function getChildData(child) {
|
|
|
14946
15057
|
}
|
|
14947
15058
|
/**
|
|
14948
15059
|
* If a parent component has animation enabled, calculate the transitions
|
|
14949
|
-
* for any data of any child component that supports data transitions
|
|
15060
|
+
* for any data of any child component that supports data transitions.
|
|
14950
15061
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
14951
15062
|
* in the first set and not the second, in the second and not the first,
|
|
14952
15063
|
* or both.
|
|
@@ -15075,7 +15186,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
15075
15186
|
|
|
15076
15187
|
if (exitingNodes) {
|
|
15077
15188
|
// After the exit transition occurs, trigger the animations for
|
|
15078
|
-
// nodes that are neither exiting
|
|
15189
|
+
// nodes that are neither exiting nor entering.
|
|
15079
15190
|
animate.onEnd = cb;
|
|
15080
15191
|
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.
|
|
15081
15192
|
|
|
@@ -15145,7 +15256,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
15145
15256
|
* and its index in the parent's children array.
|
|
15146
15257
|
*
|
|
15147
15258
|
* In particular, this will include an `animate` object that is set appropriately
|
|
15148
|
-
* so that each child will be
|
|
15259
|
+
* so that each child will be synchronized for each stage of a transition
|
|
15149
15260
|
* animation. It will also include a transformed `data` object, where each datum
|
|
15150
15261
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
15151
15262
|
* functions.
|
|
@@ -15290,6 +15401,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
15290
15401
|
};
|
|
15291
15402
|
};
|
|
15292
15403
|
}
|
|
15404
|
+
//# sourceMappingURL=transitions.js.map
|
|
15293
15405
|
|
|
15294
15406
|
/***/ }),
|
|
15295
15407
|
|
|
@@ -15302,8 +15414,11 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
15302
15414
|
"use strict";
|
|
15303
15415
|
__webpack_require__.r(__webpack_exports__);
|
|
15304
15416
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15305
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
15417
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
15418
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
15306
15419
|
/* harmony export */ });
|
|
15420
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15421
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
15307
15422
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15308
15423
|
|
|
15309
15424
|
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."); }
|
|
@@ -15322,16 +15437,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
15322
15437
|
|
|
15323
15438
|
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; }
|
|
15324
15439
|
|
|
15440
|
+
|
|
15325
15441
|
/*
|
|
15326
15442
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
15327
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
15443
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
15328
15444
|
starts with these characters.
|
|
15329
15445
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
15330
15446
|
*/
|
|
15447
|
+
|
|
15331
15448
|
var USER_PROPS_SAFELIST = {
|
|
15332
15449
|
startsWith: ["data-", "aria-"],
|
|
15333
15450
|
exactMatch: []
|
|
15334
15451
|
};
|
|
15452
|
+
|
|
15335
15453
|
/**
|
|
15336
15454
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
15337
15455
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -15340,7 +15458,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
15340
15458
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
15341
15459
|
* otherwise
|
|
15342
15460
|
*/
|
|
15343
|
-
|
|
15344
15461
|
var doesPropStartWith = function (key) {
|
|
15345
15462
|
var startsWith = false;
|
|
15346
15463
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -15414,6 +15531,18 @@ var getSafeUserProps = function (props) {
|
|
|
15414
15531
|
return [key, getValue(value, props)];
|
|
15415
15532
|
}));
|
|
15416
15533
|
};
|
|
15534
|
+
/**
|
|
15535
|
+
* Wraps a component and adds safe user props
|
|
15536
|
+
*
|
|
15537
|
+
* @param {ReactElement} component: parent component
|
|
15538
|
+
* @param {Object} props: props to be filtered
|
|
15539
|
+
* @returns {ReactElement} modified component
|
|
15540
|
+
*/
|
|
15541
|
+
|
|
15542
|
+
var withSafeUserProps = function (component, props) {
|
|
15543
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
15544
|
+
};
|
|
15545
|
+
//# sourceMappingURL=user-props.js.map
|
|
15417
15546
|
|
|
15418
15547
|
/***/ }),
|
|
15419
15548
|
|
|
@@ -15562,9 +15691,9 @@ function ascending(a, b) {
|
|
|
15562
15691
|
"use strict";
|
|
15563
15692
|
__webpack_require__.r(__webpack_exports__);
|
|
15564
15693
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15565
|
-
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
15566
|
-
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
15567
15694
|
/* harmony export */ "bisectCenter": () => (/* binding */ bisectCenter),
|
|
15695
|
+
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
15696
|
+
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
15568
15697
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15569
15698
|
/* harmony export */ });
|
|
15570
15699
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
@@ -15950,9 +16079,9 @@ function range(start, stop, step) {
|
|
|
15950
16079
|
"use strict";
|
|
15951
16080
|
__webpack_require__.r(__webpack_exports__);
|
|
15952
16081
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15953
|
-
/* harmony export */ "
|
|
16082
|
+
/* harmony export */ "ascendingDefined": () => (/* binding */ ascendingDefined),
|
|
15954
16083
|
/* harmony export */ "compareDefined": () => (/* binding */ compareDefined),
|
|
15955
|
-
/* harmony export */ "
|
|
16084
|
+
/* harmony export */ "default": () => (/* binding */ sort)
|
|
15956
16085
|
/* harmony export */ });
|
|
15957
16086
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
15958
16087
|
/* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permute.js */ "../../victory-vendor/node_modules/d3-array/src/permute.js");
|
|
@@ -16080,14 +16209,14 @@ function tickStep(start, stop, count) {
|
|
|
16080
16209
|
__webpack_require__.r(__webpack_exports__);
|
|
16081
16210
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16082
16211
|
/* harmony export */ "Color": () => (/* binding */ Color),
|
|
16083
|
-
/* harmony export */ "
|
|
16212
|
+
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
16084
16213
|
/* harmony export */ "brighter": () => (/* binding */ brighter),
|
|
16214
|
+
/* harmony export */ "darker": () => (/* binding */ darker),
|
|
16085
16215
|
/* harmony export */ "default": () => (/* binding */ color),
|
|
16086
|
-
/* harmony export */ "
|
|
16087
|
-
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
16088
|
-
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
16216
|
+
/* harmony export */ "hsl": () => (/* binding */ hsl),
|
|
16089
16217
|
/* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
|
|
16090
|
-
/* harmony export */ "
|
|
16218
|
+
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
16219
|
+
/* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert)
|
|
16091
16220
|
/* harmony export */ });
|
|
16092
16221
|
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-vendor/node_modules/d3-color/src/define.js");
|
|
16093
16222
|
|
|
@@ -16526,8 +16655,8 @@ function extend(parent, definition) {
|
|
|
16526
16655
|
__webpack_require__.r(__webpack_exports__);
|
|
16527
16656
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16528
16657
|
/* harmony export */ "backIn": () => (/* binding */ backIn),
|
|
16529
|
-
/* harmony export */ "
|
|
16530
|
-
/* harmony export */ "
|
|
16658
|
+
/* harmony export */ "backInOut": () => (/* binding */ backInOut),
|
|
16659
|
+
/* harmony export */ "backOut": () => (/* binding */ backOut)
|
|
16531
16660
|
/* harmony export */ });
|
|
16532
16661
|
var overshoot = 1.70158;
|
|
16533
16662
|
|
|
@@ -16580,8 +16709,8 @@ var backInOut = (function custom(s) {
|
|
|
16580
16709
|
__webpack_require__.r(__webpack_exports__);
|
|
16581
16710
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16582
16711
|
/* harmony export */ "bounceIn": () => (/* binding */ bounceIn),
|
|
16583
|
-
/* harmony export */ "
|
|
16584
|
-
/* harmony export */ "
|
|
16712
|
+
/* harmony export */ "bounceInOut": () => (/* binding */ bounceInOut),
|
|
16713
|
+
/* harmony export */ "bounceOut": () => (/* binding */ bounceOut)
|
|
16585
16714
|
/* harmony export */ });
|
|
16586
16715
|
var b1 = 4 / 11,
|
|
16587
16716
|
b2 = 6 / 11,
|
|
@@ -16619,8 +16748,8 @@ function bounceInOut(t) {
|
|
|
16619
16748
|
__webpack_require__.r(__webpack_exports__);
|
|
16620
16749
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16621
16750
|
/* harmony export */ "circleIn": () => (/* binding */ circleIn),
|
|
16622
|
-
/* harmony export */ "
|
|
16623
|
-
/* harmony export */ "
|
|
16751
|
+
/* harmony export */ "circleInOut": () => (/* binding */ circleInOut),
|
|
16752
|
+
/* harmony export */ "circleOut": () => (/* binding */ circleOut)
|
|
16624
16753
|
/* harmony export */ });
|
|
16625
16754
|
function circleIn(t) {
|
|
16626
16755
|
return 1 - Math.sqrt(1 - t * t);
|
|
@@ -16647,8 +16776,8 @@ function circleInOut(t) {
|
|
|
16647
16776
|
__webpack_require__.r(__webpack_exports__);
|
|
16648
16777
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16649
16778
|
/* harmony export */ "cubicIn": () => (/* binding */ cubicIn),
|
|
16650
|
-
/* harmony export */ "
|
|
16651
|
-
/* harmony export */ "
|
|
16779
|
+
/* harmony export */ "cubicInOut": () => (/* binding */ cubicInOut),
|
|
16780
|
+
/* harmony export */ "cubicOut": () => (/* binding */ cubicOut)
|
|
16652
16781
|
/* harmony export */ });
|
|
16653
16782
|
function cubicIn(t) {
|
|
16654
16783
|
return t * t * t;
|
|
@@ -16675,8 +16804,8 @@ function cubicInOut(t) {
|
|
|
16675
16804
|
__webpack_require__.r(__webpack_exports__);
|
|
16676
16805
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16677
16806
|
/* harmony export */ "elasticIn": () => (/* binding */ elasticIn),
|
|
16678
|
-
/* harmony export */ "
|
|
16679
|
-
/* harmony export */ "
|
|
16807
|
+
/* harmony export */ "elasticInOut": () => (/* binding */ elasticInOut),
|
|
16808
|
+
/* harmony export */ "elasticOut": () => (/* binding */ elasticOut)
|
|
16680
16809
|
/* harmony export */ });
|
|
16681
16810
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16682
16811
|
|
|
@@ -16739,8 +16868,8 @@ var elasticInOut = (function custom(a, p) {
|
|
|
16739
16868
|
__webpack_require__.r(__webpack_exports__);
|
|
16740
16869
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16741
16870
|
/* harmony export */ "expIn": () => (/* binding */ expIn),
|
|
16742
|
-
/* harmony export */ "
|
|
16743
|
-
/* harmony export */ "
|
|
16871
|
+
/* harmony export */ "expInOut": () => (/* binding */ expInOut),
|
|
16872
|
+
/* harmony export */ "expOut": () => (/* binding */ expOut)
|
|
16744
16873
|
/* harmony export */ });
|
|
16745
16874
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16746
16875
|
|
|
@@ -16769,43 +16898,43 @@ function expInOut(t) {
|
|
|
16769
16898
|
"use strict";
|
|
16770
16899
|
__webpack_require__.r(__webpack_exports__);
|
|
16771
16900
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16772
|
-
/* harmony export */ "
|
|
16773
|
-
/* harmony export */ "
|
|
16774
|
-
/* harmony export */ "
|
|
16775
|
-
/* harmony export */ "
|
|
16776
|
-
/* harmony export */ "
|
|
16901
|
+
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16902
|
+
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16903
|
+
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16904
|
+
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16905
|
+
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16906
|
+
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16907
|
+
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16908
|
+
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16909
|
+
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16910
|
+
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16911
|
+
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16912
|
+
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16777
16913
|
/* harmony export */ "easeCubic": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16778
16914
|
/* harmony export */ "easeCubicIn": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicIn),
|
|
16779
|
-
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16780
16915
|
/* harmony export */ "easeCubicInOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16916
|
+
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16917
|
+
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16918
|
+
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16919
|
+
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut),
|
|
16920
|
+
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16921
|
+
/* harmony export */ "easeExp": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16922
|
+
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16923
|
+
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16924
|
+
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16925
|
+
/* harmony export */ "easeLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_0__.linear),
|
|
16781
16926
|
/* harmony export */ "easePoly": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
16782
16927
|
/* harmony export */ "easePolyIn": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyIn),
|
|
16783
|
-
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
16784
16928
|
/* harmony export */ "easePolyInOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
16929
|
+
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
16930
|
+
/* harmony export */ "easeQuad": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
16931
|
+
/* harmony export */ "easeQuadIn": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadIn),
|
|
16932
|
+
/* harmony export */ "easeQuadInOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
16933
|
+
/* harmony export */ "easeQuadOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadOut),
|
|
16785
16934
|
/* harmony export */ "easeSin": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16786
16935
|
/* harmony export */ "easeSinIn": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinIn),
|
|
16787
|
-
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut),
|
|
16788
16936
|
/* harmony export */ "easeSinInOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16789
|
-
/* harmony export */ "
|
|
16790
|
-
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16791
|
-
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16792
|
-
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16793
|
-
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16794
|
-
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16795
|
-
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16796
|
-
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16797
|
-
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16798
|
-
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16799
|
-
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16800
|
-
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16801
|
-
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16802
|
-
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16803
|
-
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16804
|
-
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16805
|
-
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16806
|
-
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16807
|
-
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16808
|
-
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut)
|
|
16937
|
+
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut)
|
|
16809
16938
|
/* harmony export */ });
|
|
16810
16939
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-ease/src/linear.js");
|
|
16811
16940
|
/* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad.js */ "../../victory-vendor/node_modules/d3-ease/src/quad.js");
|
|
@@ -16885,8 +17014,8 @@ function tpmt(x) {
|
|
|
16885
17014
|
__webpack_require__.r(__webpack_exports__);
|
|
16886
17015
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16887
17016
|
/* harmony export */ "polyIn": () => (/* binding */ polyIn),
|
|
16888
|
-
/* harmony export */ "
|
|
16889
|
-
/* harmony export */ "
|
|
17017
|
+
/* harmony export */ "polyInOut": () => (/* binding */ polyInOut),
|
|
17018
|
+
/* harmony export */ "polyOut": () => (/* binding */ polyOut)
|
|
16890
17019
|
/* harmony export */ });
|
|
16891
17020
|
var exponent = 3;
|
|
16892
17021
|
|
|
@@ -16939,8 +17068,8 @@ var polyInOut = (function custom(e) {
|
|
|
16939
17068
|
__webpack_require__.r(__webpack_exports__);
|
|
16940
17069
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16941
17070
|
/* harmony export */ "quadIn": () => (/* binding */ quadIn),
|
|
16942
|
-
/* harmony export */ "
|
|
16943
|
-
/* harmony export */ "
|
|
17071
|
+
/* harmony export */ "quadInOut": () => (/* binding */ quadInOut),
|
|
17072
|
+
/* harmony export */ "quadOut": () => (/* binding */ quadOut)
|
|
16944
17073
|
/* harmony export */ });
|
|
16945
17074
|
function quadIn(t) {
|
|
16946
17075
|
return t * t;
|
|
@@ -16967,8 +17096,8 @@ function quadInOut(t) {
|
|
|
16967
17096
|
__webpack_require__.r(__webpack_exports__);
|
|
16968
17097
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16969
17098
|
/* harmony export */ "sinIn": () => (/* binding */ sinIn),
|
|
16970
|
-
/* harmony export */ "
|
|
16971
|
-
/* harmony export */ "
|
|
17099
|
+
/* harmony export */ "sinInOut": () => (/* binding */ sinInOut),
|
|
17100
|
+
/* harmony export */ "sinOut": () => (/* binding */ sinOut)
|
|
16972
17101
|
/* harmony export */ });
|
|
16973
17102
|
var pi = Math.PI,
|
|
16974
17103
|
halfPi = pi / 2;
|
|
@@ -16997,9 +17126,9 @@ function sinInOut(t) {
|
|
|
16997
17126
|
"use strict";
|
|
16998
17127
|
__webpack_require__.r(__webpack_exports__);
|
|
16999
17128
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17129
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
17000
17130
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
17001
|
-
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
17002
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
17131
|
+
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
17003
17132
|
/* harmony export */ });
|
|
17004
17133
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-format/src/locale.js");
|
|
17005
17134
|
|
|
@@ -17145,8 +17274,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17145
17274
|
"use strict";
|
|
17146
17275
|
__webpack_require__.r(__webpack_exports__);
|
|
17147
17276
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17148
|
-
/* harmony export */ "
|
|
17149
|
-
/* harmony export */ "
|
|
17277
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
17278
|
+
/* harmony export */ "prefixExponent": () => (/* binding */ prefixExponent)
|
|
17150
17279
|
/* harmony export */ });
|
|
17151
17280
|
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../victory-vendor/node_modules/d3-format/src/formatDecimal.js");
|
|
17152
17281
|
|
|
@@ -17205,8 +17334,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17205
17334
|
"use strict";
|
|
17206
17335
|
__webpack_require__.r(__webpack_exports__);
|
|
17207
17336
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17208
|
-
/* harmony export */ "
|
|
17209
|
-
/* harmony export */ "
|
|
17337
|
+
/* harmony export */ "FormatSpecifier": () => (/* binding */ FormatSpecifier),
|
|
17338
|
+
/* harmony export */ "default": () => (/* binding */ formatSpecifier)
|
|
17210
17339
|
/* harmony export */ });
|
|
17211
17340
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
17212
17341
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
@@ -17688,9 +17817,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17688
17817
|
"use strict";
|
|
17689
17818
|
__webpack_require__.r(__webpack_exports__);
|
|
17690
17819
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17691
|
-
/* harmony export */ "
|
|
17820
|
+
/* harmony export */ "default": () => (/* binding */ nogamma),
|
|
17692
17821
|
/* harmony export */ "gamma": () => (/* binding */ gamma),
|
|
17693
|
-
/* harmony export */ "
|
|
17822
|
+
/* harmony export */ "hue": () => (/* binding */ hue)
|
|
17694
17823
|
/* harmony export */ });
|
|
17695
17824
|
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-vendor/node_modules/d3-interpolate/src/constant.js");
|
|
17696
17825
|
|
|
@@ -18250,10 +18379,10 @@ function constants(x) {
|
|
|
18250
18379
|
"use strict";
|
|
18251
18380
|
__webpack_require__.r(__webpack_exports__);
|
|
18252
18381
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18253
|
-
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
18254
18382
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
18255
|
-
/* harmony export */ "
|
|
18256
|
-
/* harmony export */ "
|
|
18383
|
+
/* harmony export */ "default": () => (/* binding */ continuous),
|
|
18384
|
+
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
18385
|
+
/* harmony export */ "transformer": () => (/* binding */ transformer)
|
|
18257
18386
|
/* harmony export */ });
|
|
18258
18387
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisect.js");
|
|
18259
18388
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -18401,9 +18530,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18401
18530
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18402
18531
|
/* harmony export */ "default": () => (/* binding */ diverging),
|
|
18403
18532
|
/* harmony export */ "divergingLog": () => (/* binding */ divergingLog),
|
|
18404
|
-
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog),
|
|
18405
18533
|
/* harmony export */ "divergingPow": () => (/* binding */ divergingPow),
|
|
18406
|
-
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt)
|
|
18534
|
+
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt),
|
|
18535
|
+
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog)
|
|
18407
18536
|
/* harmony export */ });
|
|
18408
18537
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/piecewise.js");
|
|
18409
18538
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -18578,32 +18707,32 @@ function identity(domain) {
|
|
|
18578
18707
|
__webpack_require__.r(__webpack_exports__);
|
|
18579
18708
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18580
18709
|
/* harmony export */ "scaleBand": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
18581
|
-
/* harmony export */ "
|
|
18710
|
+
/* harmony export */ "scaleDiverging": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
18711
|
+
/* harmony export */ "scaleDivergingLog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingLog),
|
|
18712
|
+
/* harmony export */ "scaleDivergingPow": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingPow),
|
|
18713
|
+
/* harmony export */ "scaleDivergingSqrt": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSqrt),
|
|
18714
|
+
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18582
18715
|
/* harmony export */ "scaleIdentity": () => (/* reexport safe */ _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
18716
|
+
/* harmony export */ "scaleImplicit": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__.implicit),
|
|
18583
18717
|
/* harmony export */ "scaleLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
18584
18718
|
/* harmony export */ "scaleLog": () => (/* reexport safe */ _log_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
18585
|
-
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18586
18719
|
/* harmony export */ "scaleOrdinal": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
18587
|
-
/* harmony export */ "
|
|
18720
|
+
/* harmony export */ "scalePoint": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__.point),
|
|
18588
18721
|
/* harmony export */ "scalePow": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
18589
|
-
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18590
|
-
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18591
18722
|
/* harmony export */ "scaleQuantile": () => (/* reexport safe */ _quantile_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
18592
18723
|
/* harmony export */ "scaleQuantize": () => (/* reexport safe */ _quantize_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
18593
|
-
/* harmony export */ "
|
|
18594
|
-
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18595
|
-
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18724
|
+
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18596
18725
|
/* harmony export */ "scaleSequential": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
18597
18726
|
/* harmony export */ "scaleSequentialLog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialLog),
|
|
18598
18727
|
/* harmony export */ "scaleSequentialPow": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialPow),
|
|
18728
|
+
/* harmony export */ "scaleSequentialQuantile": () => (/* reexport safe */ _sequentialQuantile_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
18599
18729
|
/* harmony export */ "scaleSequentialSqrt": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSqrt),
|
|
18600
18730
|
/* harmony export */ "scaleSequentialSymlog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSymlog),
|
|
18601
|
-
/* harmony export */ "
|
|
18602
|
-
/* harmony export */ "
|
|
18603
|
-
/* harmony export */ "
|
|
18604
|
-
/* harmony export */ "
|
|
18605
|
-
/* harmony export */ "
|
|
18606
|
-
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18731
|
+
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18732
|
+
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18733
|
+
/* harmony export */ "scaleThreshold": () => (/* reexport safe */ _threshold_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
18734
|
+
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18735
|
+
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18607
18736
|
/* harmony export */ "tickFormat": () => (/* reexport safe */ _tickFormat_js__WEBPACK_IMPORTED_MODULE_16__["default"])
|
|
18608
18737
|
/* harmony export */ });
|
|
18609
18738
|
/* harmony import */ var _band_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band.js */ "../../victory-vendor/node_modules/d3-scale/src/band.js");
|
|
@@ -18669,8 +18798,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18669
18798
|
"use strict";
|
|
18670
18799
|
__webpack_require__.r(__webpack_exports__);
|
|
18671
18800
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18672
|
-
/* harmony export */ "
|
|
18673
|
-
/* harmony export */ "
|
|
18801
|
+
/* harmony export */ "initInterpolator": () => (/* binding */ initInterpolator),
|
|
18802
|
+
/* harmony export */ "initRange": () => (/* binding */ initRange)
|
|
18674
18803
|
/* harmony export */ });
|
|
18675
18804
|
function initRange(domain, range) {
|
|
18676
18805
|
switch (arguments.length) {
|
|
@@ -18711,8 +18840,8 @@ function initInterpolator(domain, interpolator) {
|
|
|
18711
18840
|
"use strict";
|
|
18712
18841
|
__webpack_require__.r(__webpack_exports__);
|
|
18713
18842
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18714
|
-
/* harmony export */ "
|
|
18715
|
-
/* harmony export */ "
|
|
18843
|
+
/* harmony export */ "default": () => (/* binding */ linear),
|
|
18844
|
+
/* harmony export */ "linearish": () => (/* binding */ linearish)
|
|
18716
18845
|
/* harmony export */ });
|
|
18717
18846
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
18718
18847
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -18801,8 +18930,8 @@ function linear() {
|
|
|
18801
18930
|
"use strict";
|
|
18802
18931
|
__webpack_require__.r(__webpack_exports__);
|
|
18803
18932
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18804
|
-
/* harmony export */ "
|
|
18805
|
-
/* harmony export */ "
|
|
18933
|
+
/* harmony export */ "default": () => (/* binding */ log),
|
|
18934
|
+
/* harmony export */ "loggish": () => (/* binding */ loggish)
|
|
18806
18935
|
/* harmony export */ });
|
|
18807
18936
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
18808
18937
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../victory-vendor/node_modules/d3-format/src/formatSpecifier.js");
|
|
@@ -19014,8 +19143,8 @@ function number(x) {
|
|
|
19014
19143
|
"use strict";
|
|
19015
19144
|
__webpack_require__.r(__webpack_exports__);
|
|
19016
19145
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19017
|
-
/* harmony export */ "
|
|
19018
|
-
/* harmony export */ "
|
|
19146
|
+
/* harmony export */ "default": () => (/* binding */ ordinal),
|
|
19147
|
+
/* harmony export */ "implicit": () => (/* binding */ implicit)
|
|
19019
19148
|
/* harmony export */ });
|
|
19020
19149
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/internmap/src/index.js");
|
|
19021
19150
|
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init.js */ "../../victory-vendor/node_modules/d3-scale/src/init.js");
|
|
@@ -19078,8 +19207,8 @@ function ordinal() {
|
|
|
19078
19207
|
"use strict";
|
|
19079
19208
|
__webpack_require__.r(__webpack_exports__);
|
|
19080
19209
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19081
|
-
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
19082
19210
|
/* harmony export */ "default": () => (/* binding */ pow),
|
|
19211
|
+
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
19083
19212
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt)
|
|
19084
19213
|
/* harmony export */ });
|
|
19085
19214
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
@@ -19383,9 +19512,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19383
19512
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
19384
19513
|
/* harmony export */ "default": () => (/* binding */ sequential),
|
|
19385
19514
|
/* harmony export */ "sequentialLog": () => (/* binding */ sequentialLog),
|
|
19386
|
-
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog),
|
|
19387
19515
|
/* harmony export */ "sequentialPow": () => (/* binding */ sequentialPow),
|
|
19388
|
-
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt)
|
|
19516
|
+
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt),
|
|
19517
|
+
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog)
|
|
19389
19518
|
/* harmony export */ });
|
|
19390
19519
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
19391
19520
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/round.js");
|
|
@@ -19573,8 +19702,8 @@ function sequentialQuantile() {
|
|
|
19573
19702
|
"use strict";
|
|
19574
19703
|
__webpack_require__.r(__webpack_exports__);
|
|
19575
19704
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19576
|
-
/* harmony export */ "
|
|
19577
|
-
/* harmony export */ "
|
|
19705
|
+
/* harmony export */ "default": () => (/* binding */ symlog),
|
|
19706
|
+
/* harmony export */ "symlogish": () => (/* binding */ symlogish)
|
|
19578
19707
|
/* harmony export */ });
|
|
19579
19708
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
19580
19709
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -19866,11 +19995,11 @@ function utcTime() {
|
|
|
19866
19995
|
"use strict";
|
|
19867
19996
|
__webpack_require__.r(__webpack_exports__);
|
|
19868
19997
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19998
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
19869
19999
|
/* harmony export */ "timeFormat": () => (/* binding */ timeFormat),
|
|
19870
20000
|
/* harmony export */ "timeParse": () => (/* binding */ timeParse),
|
|
19871
20001
|
/* harmony export */ "utcFormat": () => (/* binding */ utcFormat),
|
|
19872
|
-
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
19873
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
20002
|
+
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
19874
20003
|
/* harmony export */ });
|
|
19875
20004
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-time-format/src/locale.js");
|
|
19876
20005
|
|
|
@@ -20620,8 +20749,8 @@ function formatUnixTimestampSeconds(d) {
|
|
|
20620
20749
|
"use strict";
|
|
20621
20750
|
__webpack_require__.r(__webpack_exports__);
|
|
20622
20751
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20623
|
-
/* harmony export */ "
|
|
20624
|
-
/* harmony export */ "
|
|
20752
|
+
/* harmony export */ "days": () => (/* binding */ days),
|
|
20753
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20625
20754
|
/* harmony export */ });
|
|
20626
20755
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
20627
20756
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -20650,12 +20779,12 @@ var days = day.range;
|
|
|
20650
20779
|
"use strict";
|
|
20651
20780
|
__webpack_require__.r(__webpack_exports__);
|
|
20652
20781
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20653
|
-
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
20654
|
-
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
20655
|
-
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
20656
20782
|
/* harmony export */ "durationDay": () => (/* binding */ durationDay),
|
|
20657
|
-
/* harmony export */ "
|
|
20783
|
+
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
20784
|
+
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
20658
20785
|
/* harmony export */ "durationMonth": () => (/* binding */ durationMonth),
|
|
20786
|
+
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
20787
|
+
/* harmony export */ "durationWeek": () => (/* binding */ durationWeek),
|
|
20659
20788
|
/* harmony export */ "durationYear": () => (/* binding */ durationYear)
|
|
20660
20789
|
/* harmony export */ });
|
|
20661
20790
|
const durationSecond = 1000;
|
|
@@ -20937,10 +21066,10 @@ var seconds = second.range;
|
|
|
20937
21066
|
"use strict";
|
|
20938
21067
|
__webpack_require__.r(__webpack_exports__);
|
|
20939
21068
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20940
|
-
/* harmony export */ "
|
|
20941
|
-
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
21069
|
+
/* harmony export */ "timeTickInterval": () => (/* binding */ timeTickInterval),
|
|
20942
21070
|
/* harmony export */ "timeTicks": () => (/* binding */ timeTicks),
|
|
20943
|
-
/* harmony export */ "
|
|
21071
|
+
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
21072
|
+
/* harmony export */ "utcTicks": () => (/* binding */ utcTicks)
|
|
20944
21073
|
/* harmony export */ });
|
|
20945
21074
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisector.js");
|
|
20946
21075
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
@@ -21167,20 +21296,20 @@ var utcMonths = utcMonth.range;
|
|
|
21167
21296
|
"use strict";
|
|
21168
21297
|
__webpack_require__.r(__webpack_exports__);
|
|
21169
21298
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21170
|
-
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
21171
|
-
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
21172
|
-
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
21173
|
-
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
21174
|
-
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
21175
21299
|
/* harmony export */ "utcFriday": () => (/* binding */ utcFriday),
|
|
21300
|
+
/* harmony export */ "utcFridays": () => (/* binding */ utcFridays),
|
|
21301
|
+
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
21302
|
+
/* harmony export */ "utcMondays": () => (/* binding */ utcMondays),
|
|
21176
21303
|
/* harmony export */ "utcSaturday": () => (/* binding */ utcSaturday),
|
|
21304
|
+
/* harmony export */ "utcSaturdays": () => (/* binding */ utcSaturdays),
|
|
21305
|
+
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
21177
21306
|
/* harmony export */ "utcSundays": () => (/* binding */ utcSundays),
|
|
21178
|
-
/* harmony export */ "
|
|
21179
|
-
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
21180
|
-
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays),
|
|
21307
|
+
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
21181
21308
|
/* harmony export */ "utcThursdays": () => (/* binding */ utcThursdays),
|
|
21182
|
-
/* harmony export */ "
|
|
21183
|
-
/* harmony export */ "
|
|
21309
|
+
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
21310
|
+
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
21311
|
+
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
21312
|
+
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays)
|
|
21184
21313
|
/* harmony export */ });
|
|
21185
21314
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
21186
21315
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21269,20 +21398,20 @@ var utcYears = utcYear.range;
|
|
|
21269
21398
|
"use strict";
|
|
21270
21399
|
__webpack_require__.r(__webpack_exports__);
|
|
21271
21400
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21272
|
-
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
21273
|
-
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
21274
|
-
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
21275
|
-
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
21276
|
-
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
21277
21401
|
/* harmony export */ "friday": () => (/* binding */ friday),
|
|
21402
|
+
/* harmony export */ "fridays": () => (/* binding */ fridays),
|
|
21403
|
+
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
21404
|
+
/* harmony export */ "mondays": () => (/* binding */ mondays),
|
|
21278
21405
|
/* harmony export */ "saturday": () => (/* binding */ saturday),
|
|
21406
|
+
/* harmony export */ "saturdays": () => (/* binding */ saturdays),
|
|
21407
|
+
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
21279
21408
|
/* harmony export */ "sundays": () => (/* binding */ sundays),
|
|
21280
|
-
/* harmony export */ "
|
|
21281
|
-
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
21282
|
-
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays),
|
|
21409
|
+
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
21283
21410
|
/* harmony export */ "thursdays": () => (/* binding */ thursdays),
|
|
21284
|
-
/* harmony export */ "
|
|
21285
|
-
/* harmony export */ "
|
|
21411
|
+
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
21412
|
+
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
21413
|
+
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
21414
|
+
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays)
|
|
21286
21415
|
/* harmony export */ });
|
|
21287
21416
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
21288
21417
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21371,8 +21500,8 @@ var years = year.range;
|
|
|
21371
21500
|
"use strict";
|
|
21372
21501
|
__webpack_require__.r(__webpack_exports__);
|
|
21373
21502
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21374
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
21375
21503
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
21504
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
21376
21505
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
21377
21506
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
21378
21507
|
/* harmony export */ });
|