victory-box-plot 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-box-plot.js +1262 -1084
- package/dist/victory-box-plot.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-box-plot.js +21 -28
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/victory-box-plot.js +21 -29
- package/package.json +6 -6
- package/src/helper-methods.js +32 -32
- package/src/index.d.ts +1 -1
- package/src/victory-box-plot.js +41 -43
package/dist/victory-box-plot.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryBoxPlot"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryBoxPlot"] = 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 */ "getData": () => (/* binding */ getData),
|
|
24
|
-
/* harmony export */ "getDomain": () => (/* binding */ getDomain)
|
|
25
|
-
/* harmony export */ "getBaseProps": () => (/* binding */ getBaseProps)
|
|
25
|
+
/* harmony export */ "getDomain": () => (/* binding */ getDomain)
|
|
26
26
|
/* harmony export */ });
|
|
27
27
|
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
|
|
28
28
|
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -603,12 +603,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
603
603
|
/* harmony import */ var lodash_flatten__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_flatten__WEBPACK_IMPORTED_MODULE_1__);
|
|
604
604
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
605
605
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
606
|
-
/* harmony import */ var
|
|
607
|
-
/* harmony import */ var
|
|
608
|
-
/* harmony import */ var
|
|
609
|
-
/* harmony import */ var
|
|
610
|
-
/* harmony import */ var
|
|
611
|
-
/* harmony import */ var
|
|
606
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
607
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
|
|
608
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
609
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
610
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/default-transitions.js");
|
|
611
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
612
612
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
613
613
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
614
614
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/border.js");
|
|
@@ -625,6 +625,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
625
625
|
|
|
626
626
|
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; }
|
|
627
627
|
|
|
628
|
+
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; }
|
|
629
|
+
|
|
628
630
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
629
631
|
|
|
630
632
|
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."); }
|
|
@@ -645,7 +647,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
645
647
|
|
|
646
648
|
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); }
|
|
647
649
|
|
|
648
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
650
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
649
651
|
|
|
650
652
|
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); }; }
|
|
651
653
|
|
|
@@ -655,9 +657,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
655
657
|
|
|
656
658
|
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; } }
|
|
657
659
|
|
|
658
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
659
|
-
|
|
660
|
-
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; }
|
|
660
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
661
661
|
|
|
662
662
|
|
|
663
663
|
|
|
@@ -786,119 +786,111 @@ var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
|
|
|
786
786
|
value: function render() {
|
|
787
787
|
var animationWhitelist = VictoryBoxPlot.animationWhitelist,
|
|
788
788
|
role = VictoryBoxPlot.role;
|
|
789
|
-
var props =
|
|
789
|
+
var props = victory_core__WEBPACK_IMPORTED_MODULE_3__.modifyProps(this.props, fallbackProps, role);
|
|
790
790
|
|
|
791
791
|
if (this.shouldAnimate()) {
|
|
792
792
|
return this.animateComponent(props, animationWhitelist);
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
var children = this.renderBoxPlot(props);
|
|
796
|
-
var
|
|
797
|
-
return
|
|
796
|
+
var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
|
|
797
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_4__.withSafeUserProps(component, props);
|
|
798
798
|
}
|
|
799
799
|
}]);
|
|
800
800
|
|
|
801
801
|
return VictoryBoxPlot;
|
|
802
802
|
}((react__WEBPACK_IMPORTED_MODULE_2___default().Component));
|
|
803
803
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
events: prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({
|
|
815
|
-
target: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]),
|
|
816
|
-
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().array), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string)]),
|
|
817
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object)
|
|
804
|
+
VictoryBoxPlot.animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
|
|
805
|
+
VictoryBoxPlot.displayName = "VictoryBoxPlot";
|
|
806
|
+
VictoryBoxPlot.role = "boxplot";
|
|
807
|
+
VictoryBoxPlot.defaultTransitions = victory_core__WEBPACK_IMPORTED_MODULE_5__.discreteTransitions();
|
|
808
|
+
VictoryBoxPlot.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.dataProps), {}, {
|
|
809
|
+
boxWidth: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number),
|
|
810
|
+
events: prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({
|
|
811
|
+
target: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["max", "maxLabels", "median", "medianLabels", "min", "minLabels", "q1", "q1Labels", "q3", "q3Labels", "parent"]),
|
|
812
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string)]),
|
|
813
|
+
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object)
|
|
818
814
|
})),
|
|
819
|
-
horizontal: (
|
|
820
|
-
labelOrientation:
|
|
821
|
-
q1:
|
|
822
|
-
q3:
|
|
823
|
-
min:
|
|
824
|
-
max:
|
|
825
|
-
median:
|
|
815
|
+
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
|
|
816
|
+
labelOrientation: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]), prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({
|
|
817
|
+
q1: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]),
|
|
818
|
+
q3: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]),
|
|
819
|
+
min: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]),
|
|
820
|
+
max: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"]),
|
|
821
|
+
median: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["top", "bottom", "left", "right"])
|
|
826
822
|
})]),
|
|
827
|
-
labels: (
|
|
828
|
-
max:
|
|
829
|
-
maxComponent: (
|
|
830
|
-
maxLabelComponent: (
|
|
831
|
-
maxLabels:
|
|
832
|
-
median:
|
|
833
|
-
medianComponent: (
|
|
834
|
-
medianLabelComponent: (
|
|
835
|
-
medianLabels:
|
|
836
|
-
min:
|
|
837
|
-
minComponent: (
|
|
838
|
-
minLabelComponent: (
|
|
839
|
-
minLabels:
|
|
840
|
-
q1:
|
|
841
|
-
q1Component: (
|
|
842
|
-
q1LabelComponent: (
|
|
843
|
-
q1Labels:
|
|
844
|
-
q3:
|
|
845
|
-
q3Component: (
|
|
846
|
-
q3LabelComponent: (
|
|
847
|
-
q3Labels:
|
|
848
|
-
style:
|
|
849
|
-
boxes: (
|
|
850
|
-
labels: (
|
|
851
|
-
parent: (
|
|
852
|
-
max: (
|
|
853
|
-
maxLabels: (
|
|
854
|
-
median: (
|
|
855
|
-
medianLabels: (
|
|
856
|
-
min: (
|
|
857
|
-
minLabels: (
|
|
858
|
-
q1: (
|
|
859
|
-
q1Labels: (
|
|
860
|
-
q3: (
|
|
861
|
-
q3Labels: (
|
|
862
|
-
whiskers: (
|
|
823
|
+
labels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool),
|
|
824
|
+
max: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
825
|
+
maxComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
826
|
+
maxLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
827
|
+
maxLabels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
828
|
+
median: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
829
|
+
medianComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
830
|
+
medianLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
831
|
+
medianLabels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
832
|
+
min: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
833
|
+
minComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
834
|
+
minLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
835
|
+
minLabels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
836
|
+
q1: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
837
|
+
q1Component: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
838
|
+
q1LabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
839
|
+
q1Labels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
840
|
+
q3: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), victory_core__WEBPACK_IMPORTED_MODULE_8__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_8__.integer, victory_core__WEBPACK_IMPORTED_MODULE_8__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().string), prop_types__WEBPACK_IMPORTED_MODULE_7___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_7___default().string))]),
|
|
841
|
+
q3Component: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
842
|
+
q3LabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
843
|
+
q3Labels: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().bool)]),
|
|
844
|
+
style: prop_types__WEBPACK_IMPORTED_MODULE_7___default().shape({
|
|
845
|
+
boxes: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
846
|
+
labels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
847
|
+
parent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
848
|
+
max: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
849
|
+
maxLabels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
850
|
+
median: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
851
|
+
medianLabels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
852
|
+
min: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
853
|
+
minLabels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
854
|
+
q1: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
855
|
+
q1Labels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
856
|
+
q3: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
857
|
+
q3Labels: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
858
|
+
whiskers: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object)
|
|
863
859
|
}),
|
|
864
|
-
whiskerWidth: (
|
|
865
|
-
})
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__["default"], null),
|
|
860
|
+
whiskerWidth: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().number)
|
|
861
|
+
});
|
|
862
|
+
VictoryBoxPlot.defaultProps = {
|
|
863
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryContainer, null),
|
|
869
864
|
data: defaultData,
|
|
870
|
-
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__
|
|
865
|
+
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.Border, null),
|
|
871
866
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", {
|
|
872
867
|
role: "presentation"
|
|
873
868
|
}),
|
|
874
|
-
maxComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_11__
|
|
875
|
-
maxLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__
|
|
876
|
-
medianComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__
|
|
877
|
-
medianLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__
|
|
878
|
-
minComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_11__
|
|
879
|
-
minLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__
|
|
880
|
-
q1Component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__
|
|
881
|
-
q1LabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__
|
|
882
|
-
q3Component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__
|
|
883
|
-
q3LabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__
|
|
869
|
+
maxComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_11__.Whisker, null),
|
|
870
|
+
maxLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__.VictoryLabel, null),
|
|
871
|
+
medianComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__.LineSegment, null),
|
|
872
|
+
medianLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__.VictoryLabel, null),
|
|
873
|
+
minComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_11__.Whisker, null),
|
|
874
|
+
minLabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__.VictoryLabel, null),
|
|
875
|
+
q1Component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.Border, null),
|
|
876
|
+
q1LabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__.VictoryLabel, null),
|
|
877
|
+
q3Component: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.Border, null),
|
|
878
|
+
q3LabelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_12__.VictoryLabel, null),
|
|
884
879
|
samples: 50,
|
|
885
880
|
sortKey: "x",
|
|
886
881
|
sortOrder: "ascending",
|
|
887
882
|
standalone: true,
|
|
888
|
-
theme: victory_core__WEBPACK_IMPORTED_MODULE_14__
|
|
889
|
-
}
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
_defineProperty(VictoryBoxPlot, "getData", _helper_methods__WEBPACK_IMPORTED_MODULE_15__.getData);
|
|
883
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_14__.VictoryTheme.grayscale
|
|
884
|
+
};
|
|
885
|
+
VictoryBoxPlot.getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_15__.getDomain;
|
|
886
|
+
VictoryBoxPlot.getData = _helper_methods__WEBPACK_IMPORTED_MODULE_15__.getData;
|
|
894
887
|
|
|
895
|
-
|
|
888
|
+
VictoryBoxPlot.getBaseProps = function (props) {
|
|
896
889
|
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_15__.getBaseProps)(props, fallbackProps);
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
_defineProperty(VictoryBoxPlot, "expectedComponents", ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"]);
|
|
890
|
+
};
|
|
900
891
|
|
|
901
|
-
|
|
892
|
+
VictoryBoxPlot.expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
|
|
893
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_16__.addEvents)(VictoryBoxPlot, options));
|
|
902
894
|
|
|
903
895
|
/***/ }),
|
|
904
896
|
|
|
@@ -2442,6 +2434,53 @@ function baseSortedUniq(array, iteratee) {
|
|
|
2442
2434
|
module.exports = baseSortedUniq;
|
|
2443
2435
|
|
|
2444
2436
|
|
|
2437
|
+
/***/ }),
|
|
2438
|
+
|
|
2439
|
+
/***/ "../../../node_modules/lodash/_baseToString.js":
|
|
2440
|
+
/*!*****************************************************!*\
|
|
2441
|
+
!*** ../../../node_modules/lodash/_baseToString.js ***!
|
|
2442
|
+
\*****************************************************/
|
|
2443
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2444
|
+
|
|
2445
|
+
var Symbol = __webpack_require__(/*! ./_Symbol */ "../../../node_modules/lodash/_Symbol.js"),
|
|
2446
|
+
arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"),
|
|
2447
|
+
isArray = __webpack_require__(/*! ./isArray */ "../../../node_modules/lodash/isArray.js"),
|
|
2448
|
+
isSymbol = __webpack_require__(/*! ./isSymbol */ "../../../node_modules/lodash/isSymbol.js");
|
|
2449
|
+
|
|
2450
|
+
/** Used as references for various `Number` constants. */
|
|
2451
|
+
var INFINITY = 1 / 0;
|
|
2452
|
+
|
|
2453
|
+
/** Used to convert symbols to primitives and strings. */
|
|
2454
|
+
var symbolProto = Symbol ? Symbol.prototype : undefined,
|
|
2455
|
+
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
2456
|
+
|
|
2457
|
+
/**
|
|
2458
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
2459
|
+
* values to empty strings.
|
|
2460
|
+
*
|
|
2461
|
+
* @private
|
|
2462
|
+
* @param {*} value The value to process.
|
|
2463
|
+
* @returns {string} Returns the string.
|
|
2464
|
+
*/
|
|
2465
|
+
function baseToString(value) {
|
|
2466
|
+
// Exit early for strings to avoid a performance hit in some environments.
|
|
2467
|
+
if (typeof value == 'string') {
|
|
2468
|
+
return value;
|
|
2469
|
+
}
|
|
2470
|
+
if (isArray(value)) {
|
|
2471
|
+
// Recursively convert values (susceptible to call stack limits).
|
|
2472
|
+
return arrayMap(value, baseToString) + '';
|
|
2473
|
+
}
|
|
2474
|
+
if (isSymbol(value)) {
|
|
2475
|
+
return symbolToString ? symbolToString.call(value) : '';
|
|
2476
|
+
}
|
|
2477
|
+
var result = (value + '');
|
|
2478
|
+
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
2479
|
+
}
|
|
2480
|
+
|
|
2481
|
+
module.exports = baseToString;
|
|
2482
|
+
|
|
2483
|
+
|
|
2445
2484
|
/***/ }),
|
|
2446
2485
|
|
|
2447
2486
|
/***/ "../../../node_modules/lodash/_baseTrim.js":
|
|
@@ -6209,29 +6248,36 @@ module.exports = toNumber;
|
|
|
6209
6248
|
/*!************************************************!*\
|
|
6210
6249
|
!*** ../../../node_modules/lodash/toString.js ***!
|
|
6211
6250
|
\************************************************/
|
|
6212
|
-
/***/ ((module) => {
|
|
6251
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6252
|
+
|
|
6253
|
+
var baseToString = __webpack_require__(/*! ./_baseToString */ "../../../node_modules/lodash/_baseToString.js");
|
|
6213
6254
|
|
|
6214
6255
|
/**
|
|
6215
|
-
*
|
|
6256
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
6257
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
6216
6258
|
*
|
|
6217
6259
|
* @static
|
|
6218
|
-
* @since 0.1.0
|
|
6219
6260
|
* @memberOf _
|
|
6220
|
-
* @
|
|
6221
|
-
* @
|
|
6222
|
-
* @
|
|
6261
|
+
* @since 4.0.0
|
|
6262
|
+
* @category Lang
|
|
6263
|
+
* @param {*} value The value to convert.
|
|
6264
|
+
* @returns {string} Returns the converted string.
|
|
6223
6265
|
* @example
|
|
6224
6266
|
*
|
|
6225
|
-
*
|
|
6267
|
+
* _.toString(null);
|
|
6268
|
+
* // => ''
|
|
6226
6269
|
*
|
|
6227
|
-
*
|
|
6228
|
-
* // =>
|
|
6270
|
+
* _.toString(-0);
|
|
6271
|
+
* // => '-0'
|
|
6272
|
+
*
|
|
6273
|
+
* _.toString([1, 2, 3]);
|
|
6274
|
+
* // => '1,2,3'
|
|
6229
6275
|
*/
|
|
6230
|
-
function
|
|
6231
|
-
return value;
|
|
6276
|
+
function toString(value) {
|
|
6277
|
+
return value == null ? '' : baseToString(value);
|
|
6232
6278
|
}
|
|
6233
6279
|
|
|
6234
|
-
module.exports =
|
|
6280
|
+
module.exports = toString;
|
|
6235
6281
|
|
|
6236
6282
|
|
|
6237
6283
|
/***/ }),
|
|
@@ -6472,7 +6518,7 @@ var printWarning = function() {};
|
|
|
6472
6518
|
if (true) {
|
|
6473
6519
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6474
6520
|
var loggedTypeFailures = {};
|
|
6475
|
-
var has =
|
|
6521
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6476
6522
|
|
|
6477
6523
|
printWarning = function(text) {
|
|
6478
6524
|
var message = 'Warning: ' + text;
|
|
@@ -6484,7 +6530,7 @@ if (true) {
|
|
|
6484
6530
|
// This error was thrown as a convenience so that you can use this stack
|
|
6485
6531
|
// to find the callsite that caused this warning to fire.
|
|
6486
6532
|
throw new Error(message);
|
|
6487
|
-
} catch (x) {}
|
|
6533
|
+
} catch (x) { /**/ }
|
|
6488
6534
|
};
|
|
6489
6535
|
}
|
|
6490
6536
|
|
|
@@ -6513,7 +6559,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
6513
6559
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6514
6560
|
var err = Error(
|
|
6515
6561
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6516
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
6562
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6563
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6517
6564
|
);
|
|
6518
6565
|
err.name = 'Invariant Violation';
|
|
6519
6566
|
throw err;
|
|
@@ -6580,13 +6627,13 @@ module.exports = checkPropTypes;
|
|
|
6580
6627
|
|
|
6581
6628
|
|
|
6582
6629
|
|
|
6583
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6630
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6584
6631
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6585
6632
|
|
|
6586
6633
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6634
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6587
6635
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
6588
6636
|
|
|
6589
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6590
6637
|
var printWarning = function() {};
|
|
6591
6638
|
|
|
6592
6639
|
if (true) {
|
|
@@ -6687,6 +6734,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6687
6734
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6688
6735
|
var ReactPropTypes = {
|
|
6689
6736
|
array: createPrimitiveTypeChecker('array'),
|
|
6737
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6690
6738
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
6691
6739
|
func: createPrimitiveTypeChecker('function'),
|
|
6692
6740
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -6732,8 +6780,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6732
6780
|
* is prohibitively expensive if they are created too often, such as what
|
|
6733
6781
|
* happens in oneOfType() for any type before the one that matched.
|
|
6734
6782
|
*/
|
|
6735
|
-
function PropTypeError(message) {
|
|
6783
|
+
function PropTypeError(message, data) {
|
|
6736
6784
|
this.message = message;
|
|
6785
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
6737
6786
|
this.stack = '';
|
|
6738
6787
|
}
|
|
6739
6788
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -6768,7 +6817,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6768
6817
|
) {
|
|
6769
6818
|
printWarning(
|
|
6770
6819
|
'You are manually calling a React.PropTypes validation ' +
|
|
6771
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
6820
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6772
6821
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6773
6822
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6774
6823
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -6807,7 +6856,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6807
6856
|
// 'of type `object`'.
|
|
6808
6857
|
var preciseType = getPreciseType(propValue);
|
|
6809
6858
|
|
|
6810
|
-
return new PropTypeError(
|
|
6859
|
+
return new PropTypeError(
|
|
6860
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6861
|
+
{expectedType: expectedType}
|
|
6862
|
+
);
|
|
6811
6863
|
}
|
|
6812
6864
|
return null;
|
|
6813
6865
|
}
|
|
@@ -6951,14 +7003,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6951
7003
|
}
|
|
6952
7004
|
|
|
6953
7005
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7006
|
+
var expectedTypes = [];
|
|
6954
7007
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6955
7008
|
var checker = arrayOfTypeCheckers[i];
|
|
6956
|
-
|
|
7009
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
7010
|
+
if (checkerResult == null) {
|
|
6957
7011
|
return null;
|
|
6958
7012
|
}
|
|
7013
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
7014
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
7015
|
+
}
|
|
6959
7016
|
}
|
|
6960
|
-
|
|
6961
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
7017
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
7018
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6962
7019
|
}
|
|
6963
7020
|
return createChainableTypeChecker(validate);
|
|
6964
7021
|
}
|
|
@@ -6973,6 +7030,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6973
7030
|
return createChainableTypeChecker(validate);
|
|
6974
7031
|
}
|
|
6975
7032
|
|
|
7033
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
7034
|
+
return new PropTypeError(
|
|
7035
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
7036
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
7037
|
+
);
|
|
7038
|
+
}
|
|
7039
|
+
|
|
6976
7040
|
function createShapeTypeChecker(shapeTypes) {
|
|
6977
7041
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6978
7042
|
var propValue = props[propName];
|
|
@@ -6982,8 +7046,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6982
7046
|
}
|
|
6983
7047
|
for (var key in shapeTypes) {
|
|
6984
7048
|
var checker = shapeTypes[key];
|
|
6985
|
-
if (
|
|
6986
|
-
|
|
7049
|
+
if (typeof checker !== 'function') {
|
|
7050
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6987
7051
|
}
|
|
6988
7052
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6989
7053
|
if (error) {
|
|
@@ -7002,16 +7066,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7002
7066
|
if (propType !== 'object') {
|
|
7003
7067
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
7004
7068
|
}
|
|
7005
|
-
// We need to check all keys in case some are required but missing from
|
|
7006
|
-
// props.
|
|
7069
|
+
// We need to check all keys in case some are required but missing from props.
|
|
7007
7070
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
7008
7071
|
for (var key in allKeys) {
|
|
7009
7072
|
var checker = shapeTypes[key];
|
|
7073
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
7074
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
7075
|
+
}
|
|
7010
7076
|
if (!checker) {
|
|
7011
7077
|
return new PropTypeError(
|
|
7012
7078
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
7013
7079
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
7014
|
-
'\nValid keys: ' +
|
|
7080
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
7015
7081
|
);
|
|
7016
7082
|
}
|
|
7017
7083
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -7180,7 +7246,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7180
7246
|
*/
|
|
7181
7247
|
|
|
7182
7248
|
if (true) {
|
|
7183
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
7249
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
7184
7250
|
|
|
7185
7251
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7186
7252
|
// http://fb.me/prop-types-in-prod
|
|
@@ -7214,115 +7280,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
7214
7280
|
|
|
7215
7281
|
/***/ }),
|
|
7216
7282
|
|
|
7217
|
-
/***/ "../../../node_modules/
|
|
7218
|
-
|
|
7219
|
-
!*** ../../../node_modules/
|
|
7220
|
-
|
|
7283
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
7284
|
+
/*!***************************************************!*\
|
|
7285
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
7286
|
+
\***************************************************/
|
|
7221
7287
|
/***/ ((module) => {
|
|
7222
7288
|
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
var isArray = Array.isArray;
|
|
7227
|
-
var keyList = Object.keys;
|
|
7228
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
7229
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
7230
|
-
|
|
7231
|
-
function equal(a, b) {
|
|
7232
|
-
// fast-deep-equal index.js 2.0.1
|
|
7233
|
-
if (a === b) return true;
|
|
7234
|
-
|
|
7235
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7236
|
-
var arrA = isArray(a)
|
|
7237
|
-
, arrB = isArray(b)
|
|
7238
|
-
, i
|
|
7239
|
-
, length
|
|
7240
|
-
, key;
|
|
7241
|
-
|
|
7242
|
-
if (arrA && arrB) {
|
|
7243
|
-
length = a.length;
|
|
7244
|
-
if (length != b.length) return false;
|
|
7245
|
-
for (i = length; i-- !== 0;)
|
|
7246
|
-
if (!equal(a[i], b[i])) return false;
|
|
7247
|
-
return true;
|
|
7248
|
-
}
|
|
7249
|
-
|
|
7250
|
-
if (arrA != arrB) return false;
|
|
7251
|
-
|
|
7252
|
-
var dateA = a instanceof Date
|
|
7253
|
-
, dateB = b instanceof Date;
|
|
7254
|
-
if (dateA != dateB) return false;
|
|
7255
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
7256
|
-
|
|
7257
|
-
var regexpA = a instanceof RegExp
|
|
7258
|
-
, regexpB = b instanceof RegExp;
|
|
7259
|
-
if (regexpA != regexpB) return false;
|
|
7260
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
7261
|
-
|
|
7262
|
-
var keys = keyList(a);
|
|
7263
|
-
length = keys.length;
|
|
7264
|
-
|
|
7265
|
-
if (length !== keyList(b).length)
|
|
7266
|
-
return false;
|
|
7267
|
-
|
|
7268
|
-
for (i = length; i-- !== 0;)
|
|
7269
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
7270
|
-
// end fast-deep-equal
|
|
7271
|
-
|
|
7272
|
-
// start react-fast-compare
|
|
7273
|
-
// custom handling for DOM elements
|
|
7274
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
7275
|
-
return a === b;
|
|
7276
|
-
|
|
7277
|
-
// custom handling for React
|
|
7278
|
-
for (i = length; i-- !== 0;) {
|
|
7279
|
-
key = keys[i];
|
|
7280
|
-
if (key === '_owner' && a.$$typeof) {
|
|
7281
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
7282
|
-
// _owner contains circular references
|
|
7283
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
7284
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
7285
|
-
continue;
|
|
7286
|
-
} else {
|
|
7287
|
-
// all other properties should be traversed as usual
|
|
7288
|
-
if (!equal(a[key], b[key])) return false;
|
|
7289
|
-
}
|
|
7290
|
-
}
|
|
7291
|
-
// end react-fast-compare
|
|
7292
|
-
|
|
7293
|
-
// fast-deep-equal index.js 2.0.1
|
|
7294
|
-
return true;
|
|
7295
|
-
}
|
|
7296
|
-
|
|
7297
|
-
return a !== a && b !== b;
|
|
7298
|
-
}
|
|
7299
|
-
// end fast-deep-equal
|
|
7300
|
-
|
|
7301
|
-
module.exports = function exportedEqual(a, b) {
|
|
7302
|
-
try {
|
|
7303
|
-
return equal(a, b);
|
|
7304
|
-
} catch (error) {
|
|
7305
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
7306
|
-
// warn on circular references, don't crash
|
|
7307
|
-
// browsers give this different errors name and messages:
|
|
7308
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7309
|
-
// firefox: "InternalError", too much recursion"
|
|
7310
|
-
// edge: "Error", "Out of stack space"
|
|
7311
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
7312
|
-
return false;
|
|
7313
|
-
}
|
|
7314
|
-
// some other error. we should definitely know about these
|
|
7315
|
-
throw error;
|
|
7316
|
-
}
|
|
7317
|
-
};
|
|
7289
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
7318
7290
|
|
|
7319
7291
|
|
|
7320
7292
|
/***/ }),
|
|
7321
7293
|
|
|
7322
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
7323
|
-
|
|
7324
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
7325
|
-
|
|
7294
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
7295
|
+
/*!******************************************************************************************!*\
|
|
7296
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7297
|
+
\******************************************************************************************/
|
|
7326
7298
|
/***/ ((__unused_webpack_module, exports) => {
|
|
7327
7299
|
|
|
7328
7300
|
"use strict";
|
|
@@ -7511,18 +7483,162 @@ exports.typeOf = typeOf;
|
|
|
7511
7483
|
|
|
7512
7484
|
/***/ }),
|
|
7513
7485
|
|
|
7514
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
7515
|
-
|
|
7516
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
7517
|
-
|
|
7486
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
7487
|
+
/*!***********************************************************************!*\
|
|
7488
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
7489
|
+
\***********************************************************************/
|
|
7518
7490
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7519
7491
|
|
|
7520
7492
|
"use strict";
|
|
7521
7493
|
|
|
7522
7494
|
|
|
7523
7495
|
if (false) {} else {
|
|
7524
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
7496
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
7497
|
+
}
|
|
7498
|
+
|
|
7499
|
+
|
|
7500
|
+
/***/ }),
|
|
7501
|
+
|
|
7502
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
7503
|
+
/*!*********************************************************!*\
|
|
7504
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
7505
|
+
\*********************************************************/
|
|
7506
|
+
/***/ ((module) => {
|
|
7507
|
+
|
|
7508
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7509
|
+
|
|
7510
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
7511
|
+
var hasMap = typeof Map === 'function';
|
|
7512
|
+
var hasSet = typeof Set === 'function';
|
|
7513
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7514
|
+
|
|
7515
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7516
|
+
|
|
7517
|
+
function equal(a, b) {
|
|
7518
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7519
|
+
if (a === b) return true;
|
|
7520
|
+
|
|
7521
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7522
|
+
if (a.constructor !== b.constructor) return false;
|
|
7523
|
+
|
|
7524
|
+
var length, i, keys;
|
|
7525
|
+
if (Array.isArray(a)) {
|
|
7526
|
+
length = a.length;
|
|
7527
|
+
if (length != b.length) return false;
|
|
7528
|
+
for (i = length; i-- !== 0;)
|
|
7529
|
+
if (!equal(a[i], b[i])) return false;
|
|
7530
|
+
return true;
|
|
7531
|
+
}
|
|
7532
|
+
|
|
7533
|
+
// START: Modifications:
|
|
7534
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7535
|
+
// to co-exist with es5.
|
|
7536
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7537
|
+
// Basically, take:
|
|
7538
|
+
//
|
|
7539
|
+
// ```js
|
|
7540
|
+
// for (i of a.entries())
|
|
7541
|
+
// if (!b.has(i[0])) return false;
|
|
7542
|
+
// ```
|
|
7543
|
+
//
|
|
7544
|
+
// ... and convert to:
|
|
7545
|
+
//
|
|
7546
|
+
// ```js
|
|
7547
|
+
// it = a.entries();
|
|
7548
|
+
// while (!(i = it.next()).done)
|
|
7549
|
+
// if (!b.has(i.value[0])) return false;
|
|
7550
|
+
// ```
|
|
7551
|
+
//
|
|
7552
|
+
// **Note**: `i` access switches to `i.value`.
|
|
7553
|
+
var it;
|
|
7554
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7555
|
+
if (a.size !== b.size) return false;
|
|
7556
|
+
it = a.entries();
|
|
7557
|
+
while (!(i = it.next()).done)
|
|
7558
|
+
if (!b.has(i.value[0])) return false;
|
|
7559
|
+
it = a.entries();
|
|
7560
|
+
while (!(i = it.next()).done)
|
|
7561
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7562
|
+
return true;
|
|
7563
|
+
}
|
|
7564
|
+
|
|
7565
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7566
|
+
if (a.size !== b.size) return false;
|
|
7567
|
+
it = a.entries();
|
|
7568
|
+
while (!(i = it.next()).done)
|
|
7569
|
+
if (!b.has(i.value[0])) return false;
|
|
7570
|
+
return true;
|
|
7571
|
+
}
|
|
7572
|
+
// END: Modifications
|
|
7573
|
+
|
|
7574
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7575
|
+
length = a.length;
|
|
7576
|
+
if (length != b.length) return false;
|
|
7577
|
+
for (i = length; i-- !== 0;)
|
|
7578
|
+
if (a[i] !== b[i]) return false;
|
|
7579
|
+
return true;
|
|
7580
|
+
}
|
|
7581
|
+
|
|
7582
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7583
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7584
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7585
|
+
|
|
7586
|
+
keys = Object.keys(a);
|
|
7587
|
+
length = keys.length;
|
|
7588
|
+
if (length !== Object.keys(b).length) return false;
|
|
7589
|
+
|
|
7590
|
+
for (i = length; i-- !== 0;)
|
|
7591
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7592
|
+
// END: fast-deep-equal
|
|
7593
|
+
|
|
7594
|
+
// START: react-fast-compare
|
|
7595
|
+
// custom handling for DOM elements
|
|
7596
|
+
if (hasElementType && a instanceof Element) return false;
|
|
7597
|
+
|
|
7598
|
+
// custom handling for React/Preact
|
|
7599
|
+
for (i = length; i-- !== 0;) {
|
|
7600
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7601
|
+
// React-specific: avoid traversing React elements' _owner
|
|
7602
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7603
|
+
// __v = $_original / $_vnode
|
|
7604
|
+
// __o = $_owner
|
|
7605
|
+
// These properties contain circular references and are not needed when
|
|
7606
|
+
// comparing the actual elements (and not their owners)
|
|
7607
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7608
|
+
|
|
7609
|
+
continue;
|
|
7610
|
+
}
|
|
7611
|
+
|
|
7612
|
+
// all other properties should be traversed as usual
|
|
7613
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7614
|
+
}
|
|
7615
|
+
// END: react-fast-compare
|
|
7616
|
+
|
|
7617
|
+
// START: fast-deep-equal
|
|
7618
|
+
return true;
|
|
7619
|
+
}
|
|
7620
|
+
|
|
7621
|
+
return a !== a && b !== b;
|
|
7525
7622
|
}
|
|
7623
|
+
// end fast-deep-equal
|
|
7624
|
+
|
|
7625
|
+
module.exports = function isEqual(a, b) {
|
|
7626
|
+
try {
|
|
7627
|
+
return equal(a, b);
|
|
7628
|
+
} catch (error) {
|
|
7629
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7630
|
+
// warn on circular references, don't crash
|
|
7631
|
+
// browsers give this different errors name and messages:
|
|
7632
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7633
|
+
// firefox: "InternalError", too much recursion"
|
|
7634
|
+
// edge: "Error", "Out of stack space"
|
|
7635
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7636
|
+
return false;
|
|
7637
|
+
}
|
|
7638
|
+
// some other error. we should definitely know about these
|
|
7639
|
+
throw error;
|
|
7640
|
+
}
|
|
7641
|
+
};
|
|
7526
7642
|
|
|
7527
7643
|
|
|
7528
7644
|
/***/ }),
|
|
@@ -7536,11 +7652,11 @@ if (false) {} else {
|
|
|
7536
7652
|
"use strict";
|
|
7537
7653
|
__webpack_require__.r(__webpack_exports__);
|
|
7538
7654
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7539
|
-
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
7540
|
-
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
7541
7655
|
/* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
|
|
7656
|
+
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
7542
7657
|
/* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
|
|
7543
7658
|
/* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
|
|
7659
|
+
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
7544
7660
|
/* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
|
|
7545
7661
|
/* harmony export */ });
|
|
7546
7662
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
|
|
@@ -7585,7 +7701,7 @@ var isInterpolatable = function (obj) {
|
|
|
7585
7701
|
// component is only going to call the function (in which case it's
|
|
7586
7702
|
// safely interpolatable) or if it's going to access special properties
|
|
7587
7703
|
// (in which case our function generated from `interpolateFunction` will
|
|
7588
|
-
// most likely cause an error. We could check for enumerable properties
|
|
7704
|
+
// most likely cause an error). We could check for enumerable properties
|
|
7589
7705
|
// on the function object here to see if it's a "plain" function, but
|
|
7590
7706
|
// let's just require that components prevent such function props from
|
|
7591
7707
|
// being animated in the first place.
|
|
@@ -7637,7 +7753,7 @@ var interpolateFunction = function (a, b) {
|
|
|
7637
7753
|
}
|
|
7638
7754
|
|
|
7639
7755
|
return function () {
|
|
7640
|
-
/* eslint-disable no-invalid-this */
|
|
7756
|
+
/* eslint-disable no-invalid-this, prefer-rest-params */
|
|
7641
7757
|
var aval = typeof a === "function" ? a.apply(this, arguments) : a;
|
|
7642
7758
|
var bval = typeof b === "function" ? b.apply(this, arguments) : b;
|
|
7643
7759
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
|
|
@@ -7750,15 +7866,18 @@ var victoryInterpolator = function (a, b) {
|
|
|
7750
7866
|
}
|
|
7751
7867
|
|
|
7752
7868
|
if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
|
|
7869
|
+
// @ts-expect-error These generics are tough, but they work :)
|
|
7753
7870
|
return interpolateObject(a, b);
|
|
7754
7871
|
}
|
|
7755
7872
|
|
|
7756
7873
|
if (typeof a === "string" || typeof b === "string") {
|
|
7757
7874
|
return interpolateString(a, b);
|
|
7758
|
-
}
|
|
7875
|
+
} // @ts-expect-error These generics are tough, but they work :)
|
|
7876
|
+
|
|
7759
7877
|
|
|
7760
7878
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
|
|
7761
7879
|
};
|
|
7880
|
+
//# sourceMappingURL=util.js.map
|
|
7762
7881
|
|
|
7763
7882
|
/***/ }),
|
|
7764
7883
|
|
|
@@ -7771,17 +7890,17 @@ var victoryInterpolator = function (a, b) {
|
|
|
7771
7890
|
"use strict";
|
|
7772
7891
|
__webpack_require__.r(__webpack_exports__);
|
|
7773
7892
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7774
|
-
/* harmony export */ "
|
|
7893
|
+
/* harmony export */ "VictoryAnimation": () => (/* binding */ VictoryAnimation)
|
|
7775
7894
|
/* harmony export */ });
|
|
7776
7895
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7777
7896
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7778
|
-
/* harmony import */ var
|
|
7779
|
-
/* harmony import */ var
|
|
7780
|
-
/* harmony import */ var
|
|
7781
|
-
/* harmony import */ var
|
|
7897
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7898
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
7899
|
+
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
7900
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
7782
7901
|
/* 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");
|
|
7783
|
-
/* harmony import */ var
|
|
7784
|
-
/* harmony import */ var
|
|
7902
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
7903
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__);
|
|
7785
7904
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
7786
7905
|
|
|
7787
7906
|
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."); }
|
|
@@ -7802,7 +7921,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7802
7921
|
|
|
7803
7922
|
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); }
|
|
7804
7923
|
|
|
7805
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7924
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7806
7925
|
|
|
7807
7926
|
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); }; }
|
|
7808
7927
|
|
|
@@ -7812,9 +7931,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7812
7931
|
|
|
7813
7932
|
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; } }
|
|
7814
7933
|
|
|
7815
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7816
|
-
|
|
7817
|
-
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; }
|
|
7934
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7818
7935
|
|
|
7819
7936
|
/*global setTimeout:false */
|
|
7820
7937
|
|
|
@@ -7823,7 +7940,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7823
7940
|
|
|
7824
7941
|
|
|
7825
7942
|
|
|
7826
|
-
|
|
7827
7943
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
7828
7944
|
_inherits(VictoryAnimation, _React$Component);
|
|
7829
7945
|
|
|
@@ -7837,31 +7953,75 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7837
7953
|
_this = _super.call(this, props, context);
|
|
7838
7954
|
/* defaults */
|
|
7839
7955
|
|
|
7840
|
-
_this.
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7845
|
-
}
|
|
7846
|
-
};
|
|
7847
|
-
_this.interpolator = null;
|
|
7848
|
-
_this.queue = Array.isArray(_this.props.data) ? _this.props.data.slice(1) : [];
|
|
7849
|
-
/* build easing function */
|
|
7956
|
+
_this.interpolator = void 0;
|
|
7957
|
+
_this.queue = void 0;
|
|
7958
|
+
_this.ease = void 0;
|
|
7959
|
+
_this.timer = void 0;
|
|
7960
|
+
_this.loopID = void 0;
|
|
7850
7961
|
|
|
7851
|
-
_this.
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
7855
|
-
|
|
7962
|
+
_this.functionToBeRunEachFrame = function (elapsed, duration) {
|
|
7963
|
+
/*
|
|
7964
|
+
step can generate imprecise values, sometimes greater than 1
|
|
7965
|
+
if this happens set the state to 1 and return, cancelling the timer
|
|
7966
|
+
*/
|
|
7967
|
+
duration = duration !== undefined ? duration : _this.props.duration;
|
|
7968
|
+
var step = duration ? elapsed / duration : 1;
|
|
7856
7969
|
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7970
|
+
if (step >= 1) {
|
|
7971
|
+
_this.setState({
|
|
7972
|
+
data: _this.interpolator(1),
|
|
7973
|
+
animationInfo: {
|
|
7974
|
+
progress: 1,
|
|
7975
|
+
animating: false,
|
|
7976
|
+
terminating: true
|
|
7977
|
+
}
|
|
7978
|
+
});
|
|
7861
7979
|
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7980
|
+
if (_this.loopID) {
|
|
7981
|
+
_this.timer.unsubscribe(_this.loopID);
|
|
7982
|
+
}
|
|
7983
|
+
|
|
7984
|
+
_this.queue.shift();
|
|
7985
|
+
|
|
7986
|
+
_this.traverseQueue();
|
|
7987
|
+
|
|
7988
|
+
return;
|
|
7989
|
+
}
|
|
7990
|
+
/*
|
|
7991
|
+
if we're not at the end of the timer, set the state by passing
|
|
7992
|
+
current step value that's transformed by the ease function to the
|
|
7993
|
+
interpolator, which is cached for performance whenever props are received
|
|
7994
|
+
*/
|
|
7995
|
+
|
|
7996
|
+
|
|
7997
|
+
_this.setState({
|
|
7998
|
+
data: _this.interpolator(_this.ease(step)),
|
|
7999
|
+
animationInfo: {
|
|
8000
|
+
progress: step,
|
|
8001
|
+
animating: step < 1
|
|
8002
|
+
}
|
|
8003
|
+
});
|
|
8004
|
+
};
|
|
8005
|
+
|
|
8006
|
+
_this.state = {
|
|
8007
|
+
data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
|
|
8008
|
+
animationInfo: {
|
|
8009
|
+
progress: 0,
|
|
8010
|
+
animating: false
|
|
8011
|
+
}
|
|
8012
|
+
};
|
|
8013
|
+
_this.interpolator = null;
|
|
8014
|
+
_this.queue = Array.isArray(_this.props.data) ? _this.props.data.slice(1) : [];
|
|
8015
|
+
/* build easing function */
|
|
8016
|
+
|
|
8017
|
+
_this.ease = victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
|
|
8018
|
+
_this.timer = _this.context.animationTimer;
|
|
8019
|
+
return _this;
|
|
8020
|
+
}
|
|
8021
|
+
|
|
8022
|
+
_createClass(VictoryAnimation, [{
|
|
8023
|
+
key: "componentDidMount",
|
|
8024
|
+
value: function componentDidMount() {
|
|
7865
8025
|
// Length check prevents us from triggering `onEnd` in `traverseQueue`.
|
|
7866
8026
|
if (this.queue.length) {
|
|
7867
8027
|
this.traverseQueue();
|
|
@@ -7870,7 +8030,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7870
8030
|
}, {
|
|
7871
8031
|
key: "componentDidUpdate",
|
|
7872
8032
|
value: function componentDidUpdate(prevProps) {
|
|
7873
|
-
var equalProps =
|
|
8033
|
+
var equalProps = react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(this.props, prevProps);
|
|
7874
8034
|
|
|
7875
8035
|
if (!equalProps) {
|
|
7876
8036
|
/* If the previous animation didn't finish, force it to complete before starting a new one */
|
|
@@ -7939,7 +8099,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7939
8099
|
var data = this.queue[0];
|
|
7940
8100
|
/* compare cached version to next props */
|
|
7941
8101
|
|
|
7942
|
-
this.interpolator = (0,
|
|
8102
|
+
this.interpolator = (0,_util__WEBPACK_IMPORTED_MODULE_3__.victoryInterpolator)(this.state.data, data);
|
|
7943
8103
|
/* reset step to zero */
|
|
7944
8104
|
|
|
7945
8105
|
if (this.props.delay) {
|
|
@@ -7955,49 +8115,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7955
8115
|
}
|
|
7956
8116
|
/* every frame we... */
|
|
7957
8117
|
|
|
7958
|
-
}, {
|
|
7959
|
-
key: "functionToBeRunEachFrame",
|
|
7960
|
-
value: function functionToBeRunEachFrame(elapsed, duration) {
|
|
7961
|
-
/*
|
|
7962
|
-
step can generate imprecise values, sometimes greater than 1
|
|
7963
|
-
if this happens set the state to 1 and return, cancelling the timer
|
|
7964
|
-
*/
|
|
7965
|
-
duration = duration !== undefined ? duration : this.props.duration;
|
|
7966
|
-
var step = duration ? elapsed / duration : 1;
|
|
7967
|
-
|
|
7968
|
-
if (step >= 1) {
|
|
7969
|
-
this.setState({
|
|
7970
|
-
data: this.interpolator(1),
|
|
7971
|
-
animationInfo: {
|
|
7972
|
-
progress: 1,
|
|
7973
|
-
animating: false,
|
|
7974
|
-
terminating: true
|
|
7975
|
-
}
|
|
7976
|
-
});
|
|
7977
|
-
|
|
7978
|
-
if (this.loopID) {
|
|
7979
|
-
this.timer.unsubscribe(this.loopID);
|
|
7980
|
-
}
|
|
7981
|
-
|
|
7982
|
-
this.queue.shift();
|
|
7983
|
-
this.traverseQueue();
|
|
7984
|
-
return;
|
|
7985
|
-
}
|
|
7986
|
-
/*
|
|
7987
|
-
if we're not at the end of the timer, set the state by passing
|
|
7988
|
-
current step value that's transformed by the ease function to the
|
|
7989
|
-
interpolator, which is cached for performance whenever props are received
|
|
7990
|
-
*/
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
this.setState({
|
|
7994
|
-
data: this.interpolator(this.ease(step)),
|
|
7995
|
-
animationInfo: {
|
|
7996
|
-
progress: step,
|
|
7997
|
-
animating: step < 1
|
|
7998
|
-
}
|
|
7999
|
-
});
|
|
8000
|
-
}
|
|
8001
8118
|
}, {
|
|
8002
8119
|
key: "render",
|
|
8003
8120
|
value: function render() {
|
|
@@ -8007,28 +8124,23 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8007
8124
|
|
|
8008
8125
|
return VictoryAnimation;
|
|
8009
8126
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
8010
|
-
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
});
|
|
8021
|
-
|
|
8022
|
-
_defineProperty(VictoryAnimation, "defaultProps", {
|
|
8127
|
+
VictoryAnimation.displayName = "VictoryAnimation";
|
|
8128
|
+
VictoryAnimation.propTypes = {
|
|
8129
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
8130
|
+
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)]),
|
|
8131
|
+
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8132
|
+
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8133
|
+
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"]),
|
|
8134
|
+
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
8135
|
+
};
|
|
8136
|
+
VictoryAnimation.defaultProps = {
|
|
8023
8137
|
data: {},
|
|
8024
8138
|
delay: 0,
|
|
8025
8139
|
duration: 1000,
|
|
8026
8140
|
easing: "quadInOut"
|
|
8027
|
-
}
|
|
8028
|
-
|
|
8029
|
-
|
|
8030
|
-
|
|
8031
|
-
|
|
8141
|
+
};
|
|
8142
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
8143
|
+
//# sourceMappingURL=victory-animation.js.map
|
|
8032
8144
|
|
|
8033
8145
|
/***/ }),
|
|
8034
8146
|
|
|
@@ -8041,7 +8153,7 @@ _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WE
|
|
|
8041
8153
|
"use strict";
|
|
8042
8154
|
__webpack_require__.r(__webpack_exports__);
|
|
8043
8155
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8044
|
-
/* harmony export */ "
|
|
8156
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
8045
8157
|
/* harmony export */ });
|
|
8046
8158
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
8047
8159
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8055,26 +8167,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8055
8167
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
8056
8168
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
8057
8169
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
8058
|
-
/* harmony import */ var
|
|
8059
|
-
/* harmony import */ var
|
|
8170
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8171
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
8060
8172
|
/* 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");
|
|
8061
8173
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
8062
|
-
/* harmony import */ var
|
|
8174
|
+
/* 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");
|
|
8063
8175
|
/* 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");
|
|
8064
|
-
/* harmony import */ var
|
|
8065
|
-
/* harmony import */ var
|
|
8176
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8177
|
+
/* 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");
|
|
8066
8178
|
|
|
8067
8179
|
|
|
8068
8180
|
|
|
8069
8181
|
|
|
8070
8182
|
|
|
8071
8183
|
|
|
8072
|
-
function _extends() { _extends = Object.assign
|
|
8184
|
+
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); }
|
|
8073
8185
|
|
|
8074
8186
|
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; }
|
|
8075
8187
|
|
|
8076
8188
|
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; }
|
|
8077
8189
|
|
|
8190
|
+
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; }
|
|
8191
|
+
|
|
8078
8192
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8079
8193
|
|
|
8080
8194
|
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); } }
|
|
@@ -8083,7 +8197,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8083
8197
|
|
|
8084
8198
|
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); }
|
|
8085
8199
|
|
|
8086
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8200
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8087
8201
|
|
|
8088
8202
|
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); }; }
|
|
8089
8203
|
|
|
@@ -8093,10 +8207,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8093
8207
|
|
|
8094
8208
|
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; } }
|
|
8095
8209
|
|
|
8096
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8097
|
-
|
|
8098
|
-
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; }
|
|
8099
|
-
|
|
8210
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8100
8211
|
|
|
8101
8212
|
|
|
8102
8213
|
|
|
@@ -8111,13 +8222,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8111
8222
|
|
|
8112
8223
|
var _super = _createSuper(VictoryContainer);
|
|
8113
8224
|
|
|
8225
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
8226
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
8114
8227
|
function VictoryContainer(props) {
|
|
8115
8228
|
var _this;
|
|
8116
8229
|
|
|
8117
8230
|
_classCallCheck(this, VictoryContainer);
|
|
8118
8231
|
|
|
8119
8232
|
_this = _super.call(this, props);
|
|
8120
|
-
_this.containerId =
|
|
8233
|
+
_this.containerId = void 0;
|
|
8234
|
+
_this.portalRef = void 0;
|
|
8235
|
+
_this.containerRef = void 0;
|
|
8236
|
+
_this.shouldHandleWheel = void 0;
|
|
8121
8237
|
|
|
8122
8238
|
_this.savePortalRef = function (portal) {
|
|
8123
8239
|
_this.portalRef = portal;
|
|
@@ -8136,18 +8252,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8136
8252
|
return _this.portalRef.portalDeregister(key);
|
|
8137
8253
|
};
|
|
8138
8254
|
|
|
8139
|
-
_this.saveContainerRef =
|
|
8255
|
+
_this.saveContainerRef = function (container) {
|
|
8256
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
8257
|
+
_this.props.containerRef(container);
|
|
8258
|
+
}
|
|
8259
|
+
|
|
8140
8260
|
_this.containerRef = container;
|
|
8141
8261
|
return container;
|
|
8142
8262
|
};
|
|
8143
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
8144
8263
|
|
|
8145
|
-
|
|
8146
|
-
|
|
8147
|
-
|
|
8148
|
-
};
|
|
8149
|
-
}
|
|
8264
|
+
_this.handleWheel = function (e) {
|
|
8265
|
+
return e.preventDefault();
|
|
8266
|
+
};
|
|
8150
8267
|
|
|
8268
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
8269
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
8151
8270
|
return _this;
|
|
8152
8271
|
}
|
|
8153
8272
|
|
|
@@ -8240,7 +8359,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8240
8359
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
8241
8360
|
style: portalSvgStyle
|
|
8242
8361
|
};
|
|
8243
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
8362
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
8244
8363
|
value: {
|
|
8245
8364
|
portalUpdate: this.portalUpdate,
|
|
8246
8365
|
portalRegister: this.portalRegister,
|
|
@@ -8275,8 +8394,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8275
8394
|
tabIndex = _this$props.tabIndex,
|
|
8276
8395
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
8277
8396
|
role = _this$props.role;
|
|
8278
|
-
var style = responsive ? this.props.style :
|
|
8279
|
-
var userProps =
|
|
8397
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
8398
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
8280
8399
|
|
|
8281
8400
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
8282
8401
|
width: width,
|
|
@@ -8295,53 +8414,47 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8295
8414
|
|
|
8296
8415
|
return VictoryContainer;
|
|
8297
8416
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
8308
|
-
|
|
8309
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
8310
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
8311
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8417
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
8418
|
+
VictoryContainer.role = "container";
|
|
8419
|
+
VictoryContainer.propTypes = {
|
|
8420
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8421
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8422
|
+
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)]),
|
|
8423
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8424
|
+
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)]),
|
|
8425
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
8426
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8427
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8312
8428
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
8313
|
-
name: (
|
|
8314
|
-
origin:
|
|
8429
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8430
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
8315
8431
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
8316
8432
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
8317
8433
|
}),
|
|
8318
|
-
ouiaId:
|
|
8319
|
-
ouiaSafe: (
|
|
8320
|
-
ouiaType: (
|
|
8321
|
-
polar: (
|
|
8322
|
-
portalComponent: (
|
|
8434
|
+
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)]),
|
|
8435
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8436
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8437
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8438
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
8323
8439
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
8324
|
-
preserveAspectRatio: (
|
|
8325
|
-
responsive: (
|
|
8326
|
-
role: (
|
|
8327
|
-
style: (
|
|
8328
|
-
tabIndex: (
|
|
8329
|
-
theme: (
|
|
8330
|
-
title: (
|
|
8440
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8441
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8442
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8443
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8444
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
8445
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8446
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8331
8447
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
8332
|
-
}
|
|
8333
|
-
|
|
8334
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
8448
|
+
};
|
|
8449
|
+
VictoryContainer.defaultProps = {
|
|
8335
8450
|
className: "VictoryContainer",
|
|
8336
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
8451
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
8337
8452
|
portalZIndex: 99,
|
|
8338
8453
|
responsive: true,
|
|
8339
8454
|
role: "img"
|
|
8340
|
-
}
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8455
|
+
};
|
|
8456
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
8457
|
+
//# sourceMappingURL=victory-container.js.map
|
|
8345
8458
|
|
|
8346
8459
|
/***/ }),
|
|
8347
8460
|
|
|
@@ -8354,7 +8467,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
8354
8467
|
"use strict";
|
|
8355
8468
|
__webpack_require__.r(__webpack_exports__);
|
|
8356
8469
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8357
|
-
/* harmony export */ "
|
|
8470
|
+
/* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
|
|
8358
8471
|
/* harmony export */ });
|
|
8359
8472
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
8360
8473
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8362,20 +8475,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8362
8475
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
8363
8476
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8364
8477
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
|
|
8365
|
-
/* harmony import */ var
|
|
8366
|
-
/* harmony import */ var
|
|
8367
|
-
/* harmony import */ var
|
|
8368
|
-
/* harmony import */ var
|
|
8478
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8479
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
|
|
8480
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
8481
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
8369
8482
|
/* 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");
|
|
8370
|
-
/* harmony import */ var
|
|
8371
|
-
/* harmony import */ var
|
|
8372
|
-
/* harmony import */ var
|
|
8373
|
-
/* harmony import */ var
|
|
8374
|
-
/* harmony import */ var
|
|
8375
|
-
/* harmony import */ var
|
|
8376
|
-
/* harmony import */ var
|
|
8377
|
-
/* harmony import */ var
|
|
8483
|
+
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
8484
|
+
/* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
|
|
8485
|
+
/* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../victory-primitives/tspan */ "../../victory-core/es/victory-primitives/tspan.js");
|
|
8486
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8487
|
+
/* 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");
|
|
8488
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8489
|
+
/* 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");
|
|
8490
|
+
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
8378
8491
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
8492
|
+
/* 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");
|
|
8379
8493
|
|
|
8380
8494
|
|
|
8381
8495
|
|
|
@@ -8410,6 +8524,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8410
8524
|
|
|
8411
8525
|
|
|
8412
8526
|
|
|
8527
|
+
|
|
8413
8528
|
var defaultStyles = {
|
|
8414
8529
|
fill: "#252525",
|
|
8415
8530
|
fontSize: 14,
|
|
@@ -8422,7 +8537,7 @@ var getPosition = function (props, dimension) {
|
|
|
8422
8537
|
return 0;
|
|
8423
8538
|
}
|
|
8424
8539
|
|
|
8425
|
-
var scaledPoint =
|
|
8540
|
+
var scaledPoint = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, props.datum);
|
|
8426
8541
|
return scaledPoint[dimension];
|
|
8427
8542
|
};
|
|
8428
8543
|
|
|
@@ -8439,7 +8554,7 @@ var getFontSize = function (style) {
|
|
|
8439
8554
|
if (!isNaN(fontSize)) {
|
|
8440
8555
|
return fontSize;
|
|
8441
8556
|
} else {
|
|
8442
|
-
|
|
8557
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_5__.warn("fontSize should be expressed as a number of pixels");
|
|
8443
8558
|
return defaultStyles.fontSize;
|
|
8444
8559
|
}
|
|
8445
8560
|
}
|
|
@@ -8460,7 +8575,7 @@ var shouldUseMultilineBackgrounds = function (props) {
|
|
|
8460
8575
|
|
|
8461
8576
|
var getStyles = function (style, props) {
|
|
8462
8577
|
if (props.disableInlineStyles) {
|
|
8463
|
-
var baseStyles =
|
|
8578
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8464
8579
|
return {
|
|
8465
8580
|
// Font size is necessary to calculate the y position of the label
|
|
8466
8581
|
fontSize: getFontSize(baseStyles)
|
|
@@ -8469,7 +8584,7 @@ var getStyles = function (style, props) {
|
|
|
8469
8584
|
|
|
8470
8585
|
var getSingleStyle = function (s) {
|
|
8471
8586
|
s = s ? lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, s, defaultStyles) : defaultStyles;
|
|
8472
|
-
var baseStyles =
|
|
8587
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8473
8588
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, baseStyles, {
|
|
8474
8589
|
fontSize: getFontSize(baseStyles)
|
|
8475
8590
|
});
|
|
@@ -8486,28 +8601,28 @@ var getBackgroundStyles = function (style, props) {
|
|
|
8486
8601
|
}
|
|
8487
8602
|
|
|
8488
8603
|
return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) {
|
|
8489
|
-
return
|
|
8490
|
-
}) :
|
|
8604
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8605
|
+
}) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8491
8606
|
};
|
|
8492
8607
|
|
|
8493
8608
|
var getBackgroundPadding = function (props) {
|
|
8494
8609
|
if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
|
|
8495
8610
|
return props.backgroundPadding.map(function (backgroundPadding) {
|
|
8496
|
-
var padding =
|
|
8497
|
-
return
|
|
8611
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(backgroundPadding, props);
|
|
8612
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8498
8613
|
padding: padding
|
|
8499
8614
|
});
|
|
8500
8615
|
});
|
|
8501
8616
|
} else {
|
|
8502
|
-
var padding =
|
|
8503
|
-
return
|
|
8617
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.backgroundPadding, props);
|
|
8618
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8504
8619
|
padding: padding
|
|
8505
8620
|
});
|
|
8506
8621
|
}
|
|
8507
8622
|
};
|
|
8508
8623
|
|
|
8509
8624
|
var getLineHeight = function (props) {
|
|
8510
|
-
var lineHeight =
|
|
8625
|
+
var lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.lineHeight, props);
|
|
8511
8626
|
|
|
8512
8627
|
if (Array.isArray(lineHeight)) {
|
|
8513
8628
|
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
|
|
@@ -8523,11 +8638,11 @@ var getContent = function (text, props) {
|
|
|
8523
8638
|
|
|
8524
8639
|
if (Array.isArray(text)) {
|
|
8525
8640
|
return text.map(function (line) {
|
|
8526
|
-
return
|
|
8641
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(line, props);
|
|
8527
8642
|
});
|
|
8528
8643
|
}
|
|
8529
8644
|
|
|
8530
|
-
var child =
|
|
8645
|
+
var child = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(text, props);
|
|
8531
8646
|
|
|
8532
8647
|
if (child === undefined || child === null) {
|
|
8533
8648
|
return undefined;
|
|
@@ -8537,10 +8652,10 @@ var getContent = function (text, props) {
|
|
|
8537
8652
|
};
|
|
8538
8653
|
|
|
8539
8654
|
var getDy = function (props, verticalAnchor, lineHeight) {
|
|
8540
|
-
var dy = props.dy ?
|
|
8655
|
+
var dy = props.dy ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dy, props) : 0;
|
|
8541
8656
|
var length = props.inline ? 1 : props.text.length;
|
|
8542
|
-
var capHeight =
|
|
8543
|
-
var anchor = verticalAnchor ?
|
|
8657
|
+
var capHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.capHeight, props);
|
|
8658
|
+
var anchor = verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(verticalAnchor, props) : "middle";
|
|
8544
8659
|
|
|
8545
8660
|
var fontSizes = _toConsumableArray(Array(length).keys()).map(function (i) {
|
|
8546
8661
|
return getSingleValue(props.style, i).fontSize;
|
|
@@ -8568,15 +8683,15 @@ var getDy = function (props, verticalAnchor, lineHeight) {
|
|
|
8568
8683
|
var getTransform = function (props, x, y) {
|
|
8569
8684
|
var polar = props.polar;
|
|
8570
8685
|
var style = getSingleValue(props.style);
|
|
8571
|
-
var defaultAngle = polar ?
|
|
8572
|
-
var baseAngle = style.angle === undefined ?
|
|
8686
|
+
var defaultAngle = polar ? _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(props) : 0;
|
|
8687
|
+
var baseAngle = style.angle === undefined ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.angle, props) : style.angle;
|
|
8573
8688
|
var angle = baseAngle === undefined ? defaultAngle : baseAngle;
|
|
8574
8689
|
var transform = props.transform || style.transform;
|
|
8575
|
-
var transformPart = transform &&
|
|
8690
|
+
var transformPart = transform && _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(transform, props);
|
|
8576
8691
|
var rotatePart = angle && {
|
|
8577
8692
|
rotate: [angle, x, y]
|
|
8578
8693
|
};
|
|
8579
|
-
return transformPart || angle ?
|
|
8694
|
+
return transformPart || angle ? _victory_util_style__WEBPACK_IMPORTED_MODULE_7__.toTransformString(transformPart, rotatePart) : undefined;
|
|
8580
8695
|
};
|
|
8581
8696
|
|
|
8582
8697
|
var getXCoordinate = function (calculatedProps, labelSizeWidth) {
|
|
@@ -8657,7 +8772,7 @@ var getFullBackground = function (calculatedProps, tspanValues) {
|
|
|
8657
8772
|
x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
|
|
8658
8773
|
y: yCoordinate
|
|
8659
8774
|
};
|
|
8660
|
-
return /*#__PURE__*/
|
|
8775
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8661
8776
|
};
|
|
8662
8777
|
|
|
8663
8778
|
var getInlineXOffset = function (calculatedProps, textElements, index) {
|
|
@@ -8739,7 +8854,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
|
|
|
8739
8854
|
x: xCoord - padding.left,
|
|
8740
8855
|
y: yCoord
|
|
8741
8856
|
};
|
|
8742
|
-
return /*#__PURE__*/
|
|
8857
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8743
8858
|
});
|
|
8744
8859
|
};
|
|
8745
8860
|
|
|
@@ -8790,7 +8905,7 @@ var evaluateProps = function (props) {
|
|
|
8790
8905
|
style: style,
|
|
8791
8906
|
backgroundStyle: backgroundStyle
|
|
8792
8907
|
}));
|
|
8793
|
-
var id =
|
|
8908
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
|
|
8794
8909
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
|
|
8795
8910
|
backgroundStyle: backgroundStyle,
|
|
8796
8911
|
backgroundPadding: backgroundPadding,
|
|
@@ -8801,13 +8916,13 @@ var evaluateProps = function (props) {
|
|
|
8801
8916
|
};
|
|
8802
8917
|
|
|
8803
8918
|
var getCalculatedProps = function (props) {
|
|
8804
|
-
var ariaLabel =
|
|
8919
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
|
|
8805
8920
|
var style = getSingleValue(props.style);
|
|
8806
8921
|
var lineHeight = getLineHeight(props);
|
|
8807
|
-
var direction = props.direction ?
|
|
8808
|
-
var textAnchor = props.textAnchor ?
|
|
8809
|
-
var verticalAnchor = props.verticalAnchor ?
|
|
8810
|
-
var dx = props.dx ?
|
|
8922
|
+
var direction = props.direction ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.direction, props) : "inherit";
|
|
8923
|
+
var textAnchor = props.textAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.textAnchor, props) : style.textAnchor || "start";
|
|
8924
|
+
var verticalAnchor = props.verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.verticalAnchor, props) : style.verticalAnchor || "middle";
|
|
8925
|
+
var dx = props.dx ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dx, props) : 0;
|
|
8811
8926
|
var dy = getDy(props, verticalAnchor, lineHeight);
|
|
8812
8927
|
var x = props.x !== undefined ? props.x : getPosition(props, "x");
|
|
8813
8928
|
var y = props.y !== undefined ? props.y : getPosition(props, "y");
|
|
@@ -8846,6 +8961,7 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8846
8961
|
tabIndex = calculatedProps.tabIndex,
|
|
8847
8962
|
tspanComponent = calculatedProps.tspanComponent,
|
|
8848
8963
|
textComponent = calculatedProps.textComponent;
|
|
8964
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(calculatedProps);
|
|
8849
8965
|
|
|
8850
8966
|
var textProps = _objectSpread(_objectSpread({
|
|
8851
8967
|
"aria-label": ariaLabel,
|
|
@@ -8858,10 +8974,10 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8858
8974
|
transform: transform,
|
|
8859
8975
|
className: className,
|
|
8860
8976
|
title: title,
|
|
8861
|
-
desc:
|
|
8862
|
-
tabIndex:
|
|
8977
|
+
desc: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(desc, calculatedProps),
|
|
8978
|
+
tabIndex: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(tabIndex, calculatedProps),
|
|
8863
8979
|
id: id
|
|
8864
|
-
});
|
|
8980
|
+
}, userProps);
|
|
8865
8981
|
|
|
8866
8982
|
var tspans = text.map(function (line, i) {
|
|
8867
8983
|
var currentStyle = tspanValues[i].style;
|
|
@@ -8874,9 +8990,9 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8874
8990
|
style: currentStyle,
|
|
8875
8991
|
children: line
|
|
8876
8992
|
};
|
|
8877
|
-
return /*#__PURE__*/
|
|
8993
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(tspanComponent, tspanProps);
|
|
8878
8994
|
});
|
|
8879
|
-
return /*#__PURE__*/
|
|
8995
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(textComponent, textProps, tspans);
|
|
8880
8996
|
};
|
|
8881
8997
|
|
|
8882
8998
|
var VictoryLabel = function (props) {
|
|
@@ -8901,6 +9017,7 @@ var VictoryLabel = function (props) {
|
|
|
8901
9017
|
fontSize: currentStyle.fontSize || defaultStyles.fontSize,
|
|
8902
9018
|
capHeight: capHeightPx,
|
|
8903
9019
|
text: line,
|
|
9020
|
+
// @ts-expect-error TODO: This looks like a bug:
|
|
8904
9021
|
textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
|
|
8905
9022
|
lineHeight: currentLineHeight,
|
|
8906
9023
|
backgroundPadding: getSingleValue(backgroundPadding, i)
|
|
@@ -8911,71 +9028,75 @@ var VictoryLabel = function (props) {
|
|
|
8911
9028
|
if (props.backgroundStyle) {
|
|
8912
9029
|
var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
|
|
8913
9030
|
var children = [backgroundElement, label];
|
|
8914
|
-
var backgroundWithLabel = /*#__PURE__*/
|
|
8915
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
9031
|
+
var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
|
|
9032
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
|
|
8916
9033
|
}
|
|
8917
9034
|
|
|
8918
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
9035
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
|
|
8919
9036
|
};
|
|
8920
|
-
|
|
8921
9037
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8922
9038
|
VictoryLabel.role = "label";
|
|
8923
9039
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
8924
9040
|
VictoryLabel.propTypes = {
|
|
8925
|
-
active: (
|
|
8926
|
-
angle:
|
|
8927
|
-
ariaLabel:
|
|
8928
|
-
backgroundComponent: (
|
|
8929
|
-
backgroundPadding:
|
|
8930
|
-
backgroundStyle:
|
|
8931
|
-
capHeight:
|
|
8932
|
-
className: (
|
|
8933
|
-
data: (
|
|
8934
|
-
datum: (
|
|
8935
|
-
|
|
8936
|
-
|
|
8937
|
-
|
|
8938
|
-
|
|
8939
|
-
|
|
8940
|
-
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
8945
|
-
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
9041
|
+
active: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9042
|
+
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)]),
|
|
9043
|
+
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)]),
|
|
9044
|
+
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9045
|
+
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)]),
|
|
9046
|
+
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)]),
|
|
9047
|
+
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)]),
|
|
9048
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
9049
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
9050
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
|
|
9051
|
+
// @ts-expect-error "Function is not assignable to string"
|
|
9052
|
+
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)]),
|
|
9053
|
+
direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
9054
|
+
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)]),
|
|
9055
|
+
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)]),
|
|
9056
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
9057
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9058
|
+
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)]),
|
|
9059
|
+
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)]),
|
|
9060
|
+
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9061
|
+
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
9062
|
+
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)]),
|
|
9063
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
9064
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
9065
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
8949
9066
|
}),
|
|
8950
|
-
polar: (
|
|
8951
|
-
renderInPortal: (
|
|
8952
|
-
scale:
|
|
8953
|
-
x:
|
|
8954
|
-
y:
|
|
9067
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9068
|
+
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9069
|
+
scale: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
9070
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale,
|
|
9071
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale
|
|
8955
9072
|
}),
|
|
8956
|
-
style:
|
|
8957
|
-
tabIndex:
|
|
8958
|
-
text:
|
|
8959
|
-
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
9073
|
+
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)]),
|
|
9074
|
+
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)]),
|
|
9075
|
+
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)]),
|
|
9076
|
+
// @ts-expect-error Function is not assignable to string"
|
|
9077
|
+
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)]),
|
|
9078
|
+
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9079
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
9080
|
+
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)]),
|
|
9081
|
+
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9082
|
+
// @ts-expect-error Function is not assignable to string"
|
|
9083
|
+
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)]),
|
|
9084
|
+
// @ts-expect-error Number is not assignable to string
|
|
9085
|
+
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)]),
|
|
9086
|
+
// @ts-expect-error Number is not assignable to string
|
|
9087
|
+
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)])
|
|
8967
9088
|
};
|
|
8968
9089
|
VictoryLabel.defaultProps = {
|
|
8969
|
-
backgroundComponent: /*#__PURE__*/
|
|
8970
|
-
groupComponent: /*#__PURE__*/
|
|
9090
|
+
backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
|
|
9091
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
8971
9092
|
direction: "inherit",
|
|
8972
|
-
textComponent: /*#__PURE__*/
|
|
8973
|
-
tspanComponent: /*#__PURE__*/
|
|
9093
|
+
textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
|
|
9094
|
+
tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
|
|
8974
9095
|
capHeight: 0.71,
|
|
8975
9096
|
// Magic number from d3.
|
|
8976
9097
|
lineHeight: 1
|
|
8977
9098
|
};
|
|
8978
|
-
|
|
9099
|
+
//# sourceMappingURL=victory-label.js.map
|
|
8979
9100
|
|
|
8980
9101
|
/***/ }),
|
|
8981
9102
|
|
|
@@ -8988,19 +9109,19 @@ VictoryLabel.defaultProps = {
|
|
|
8988
9109
|
"use strict";
|
|
8989
9110
|
__webpack_require__.r(__webpack_exports__);
|
|
8990
9111
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8991
|
-
/* harmony export */ "
|
|
9112
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
8992
9113
|
/* harmony export */ });
|
|
8993
9114
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8994
9115
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8995
9116
|
|
|
9117
|
+
|
|
8996
9118
|
/**
|
|
8997
9119
|
* The React context object consumers may use to access the context of the
|
|
8998
9120
|
* portal.
|
|
8999
9121
|
*/
|
|
9000
|
-
|
|
9001
9122
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
9002
9123
|
PortalContext.displayName = "PortalContext";
|
|
9003
|
-
|
|
9124
|
+
//# sourceMappingURL=portal-context.js.map
|
|
9004
9125
|
|
|
9005
9126
|
/***/ }),
|
|
9006
9127
|
|
|
@@ -9013,7 +9134,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
9013
9134
|
"use strict";
|
|
9014
9135
|
__webpack_require__.r(__webpack_exports__);
|
|
9015
9136
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9016
|
-
/* harmony export */ "
|
|
9137
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
9017
9138
|
/* harmony export */ });
|
|
9018
9139
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
9019
9140
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9032,7 +9153,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9032
9153
|
|
|
9033
9154
|
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); }
|
|
9034
9155
|
|
|
9035
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9156
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9036
9157
|
|
|
9037
9158
|
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); }; }
|
|
9038
9159
|
|
|
@@ -9042,10 +9163,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9042
9163
|
|
|
9043
9164
|
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; } }
|
|
9044
9165
|
|
|
9045
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9046
|
-
|
|
9047
|
-
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; }
|
|
9048
|
-
|
|
9166
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9049
9167
|
|
|
9050
9168
|
|
|
9051
9169
|
|
|
@@ -9061,32 +9179,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
9061
9179
|
_classCallCheck(this, Portal);
|
|
9062
9180
|
|
|
9063
9181
|
_this = _super.call(this, props);
|
|
9182
|
+
_this.map = void 0;
|
|
9183
|
+
_this.index = void 0;
|
|
9184
|
+
|
|
9185
|
+
_this.portalRegister = function () {
|
|
9186
|
+
return ++_this.index;
|
|
9187
|
+
};
|
|
9188
|
+
|
|
9189
|
+
_this.portalUpdate = function (key, element) {
|
|
9190
|
+
_this.map[key] = element;
|
|
9191
|
+
|
|
9192
|
+
_this.forceUpdate();
|
|
9193
|
+
};
|
|
9194
|
+
|
|
9195
|
+
_this.portalDeregister = function (key) {
|
|
9196
|
+
delete _this.map[key];
|
|
9197
|
+
|
|
9198
|
+
_this.forceUpdate();
|
|
9199
|
+
};
|
|
9200
|
+
|
|
9064
9201
|
_this.map = {};
|
|
9065
9202
|
_this.index = 1;
|
|
9066
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
9067
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
9068
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
9069
9203
|
return _this;
|
|
9070
9204
|
}
|
|
9071
9205
|
|
|
9072
9206
|
_createClass(Portal, [{
|
|
9073
|
-
key: "portalRegister",
|
|
9074
|
-
value: function portalRegister() {
|
|
9075
|
-
return ++this.index;
|
|
9076
|
-
}
|
|
9077
|
-
}, {
|
|
9078
|
-
key: "portalUpdate",
|
|
9079
|
-
value: function portalUpdate(key, element) {
|
|
9080
|
-
this.map[key] = element;
|
|
9081
|
-
this.forceUpdate();
|
|
9082
|
-
}
|
|
9083
|
-
}, {
|
|
9084
|
-
key: "portalDeregister",
|
|
9085
|
-
value: function portalDeregister(key) {
|
|
9086
|
-
delete this.map[key];
|
|
9087
|
-
this.forceUpdate();
|
|
9088
|
-
}
|
|
9089
|
-
}, {
|
|
9090
9207
|
key: "getChildren",
|
|
9091
9208
|
value: function getChildren() {
|
|
9092
9209
|
var _this2 = this;
|
|
@@ -9108,18 +9225,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
9108
9225
|
|
|
9109
9226
|
return Portal;
|
|
9110
9227
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
_defineProperty(Portal, "propTypes", {
|
|
9228
|
+
Portal.displayName = "Portal";
|
|
9229
|
+
Portal.propTypes = {
|
|
9115
9230
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9116
9231
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
9117
9232
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
9118
9233
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9119
9234
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
9120
|
-
}
|
|
9121
|
-
|
|
9122
|
-
|
|
9235
|
+
};
|
|
9236
|
+
//# sourceMappingURL=portal.js.map
|
|
9123
9237
|
|
|
9124
9238
|
/***/ }),
|
|
9125
9239
|
|
|
@@ -9132,16 +9246,16 @@ _defineProperty(Portal, "propTypes", {
|
|
|
9132
9246
|
"use strict";
|
|
9133
9247
|
__webpack_require__.r(__webpack_exports__);
|
|
9134
9248
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9135
|
-
/* harmony export */ "
|
|
9249
|
+
/* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
|
|
9136
9250
|
/* harmony export */ });
|
|
9137
9251
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
9138
9252
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9139
9253
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9140
9254
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9141
|
-
/* harmony import */ var
|
|
9142
|
-
/* harmony import */ var
|
|
9143
|
-
/* harmony import */ var
|
|
9144
|
-
/* harmony import */ var
|
|
9255
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9256
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9257
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
9258
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9145
9259
|
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
9146
9260
|
|
|
9147
9261
|
|
|
@@ -9153,7 +9267,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9153
9267
|
|
|
9154
9268
|
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); }
|
|
9155
9269
|
|
|
9156
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9270
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9157
9271
|
|
|
9158
9272
|
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); }; }
|
|
9159
9273
|
|
|
@@ -9163,10 +9277,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9163
9277
|
|
|
9164
9278
|
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; } }
|
|
9165
9279
|
|
|
9166
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9167
|
-
|
|
9168
|
-
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; }
|
|
9169
|
-
|
|
9280
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9170
9281
|
|
|
9171
9282
|
|
|
9172
9283
|
|
|
@@ -9179,9 +9290,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9179
9290
|
var _super = _createSuper(VictoryPortal);
|
|
9180
9291
|
|
|
9181
9292
|
function VictoryPortal() {
|
|
9293
|
+
var _this;
|
|
9294
|
+
|
|
9182
9295
|
_classCallCheck(this, VictoryPortal);
|
|
9183
9296
|
|
|
9184
|
-
|
|
9297
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9298
|
+
args[_key] = arguments[_key];
|
|
9299
|
+
}
|
|
9300
|
+
|
|
9301
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9302
|
+
_this.checkedContext = void 0;
|
|
9303
|
+
_this.renderInPlace = void 0;
|
|
9304
|
+
_this.element = void 0;
|
|
9305
|
+
_this.portalKey = void 0;
|
|
9306
|
+
return _this;
|
|
9185
9307
|
}
|
|
9186
9308
|
|
|
9187
9309
|
_createClass(VictoryPortal, [{
|
|
@@ -9190,7 +9312,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9190
9312
|
if (!this.checkedContext) {
|
|
9191
9313
|
if (typeof this.context.portalUpdate !== "function") {
|
|
9192
9314
|
var msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
|
|
9193
|
-
|
|
9315
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_2__.warn(msg);
|
|
9194
9316
|
this.renderInPlace = true;
|
|
9195
9317
|
}
|
|
9196
9318
|
|
|
@@ -9236,7 +9358,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9236
9358
|
standalone: false
|
|
9237
9359
|
} : {};
|
|
9238
9360
|
|
|
9239
|
-
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps,
|
|
9361
|
+
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.omit(this.props, ["children", "groupComponent"]));
|
|
9240
9362
|
|
|
9241
9363
|
var child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
|
|
9242
9364
|
return this.renderPortal(child);
|
|
@@ -9245,23 +9367,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9245
9367
|
|
|
9246
9368
|
return VictoryPortal;
|
|
9247
9369
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9255
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element)
|
|
9256
|
-
});
|
|
9257
|
-
|
|
9258
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
9370
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
9371
|
+
VictoryPortal.role = "portal";
|
|
9372
|
+
VictoryPortal.propTypes = {
|
|
9373
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
9374
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
9375
|
+
};
|
|
9376
|
+
VictoryPortal.defaultProps = {
|
|
9259
9377
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
9260
|
-
}
|
|
9261
|
-
|
|
9262
|
-
|
|
9263
|
-
|
|
9264
|
-
|
|
9378
|
+
};
|
|
9379
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
9380
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
9265
9381
|
|
|
9266
9382
|
/***/ }),
|
|
9267
9383
|
|
|
@@ -9274,16 +9390,16 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
|
|
|
9274
9390
|
"use strict";
|
|
9275
9391
|
__webpack_require__.r(__webpack_exports__);
|
|
9276
9392
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9277
|
-
/* harmony export */ "
|
|
9393
|
+
/* harmony export */ "Border": () => (/* binding */ Border)
|
|
9278
9394
|
/* harmony export */ });
|
|
9279
9395
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9280
9396
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
9281
9397
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9282
9398
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9283
|
-
/* harmony import */ var
|
|
9284
|
-
/* harmony import */ var
|
|
9285
|
-
/* harmony import */ var
|
|
9286
|
-
/* harmony import */ var
|
|
9399
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9400
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9401
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9402
|
+
/* 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");
|
|
9287
9403
|
/* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
9288
9404
|
|
|
9289
9405
|
|
|
@@ -9308,13 +9424,13 @@ var evaluateProps = function (props) {
|
|
|
9308
9424
|
* `style`
|
|
9309
9425
|
* `tabIndex`
|
|
9310
9426
|
*/
|
|
9311
|
-
var ariaLabel =
|
|
9312
|
-
var desc =
|
|
9313
|
-
var id =
|
|
9314
|
-
var style =
|
|
9427
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
9428
|
+
var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
9429
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
9430
|
+
var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9315
9431
|
fill: "none"
|
|
9316
9432
|
}, props.style), props);
|
|
9317
|
-
var tabIndex =
|
|
9433
|
+
var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
9318
9434
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
9319
9435
|
ariaLabel: ariaLabel,
|
|
9320
9436
|
desc: desc,
|
|
@@ -9342,20 +9458,19 @@ var Border = function (props) {
|
|
|
9342
9458
|
clipPath: props.clipPath
|
|
9343
9459
|
}));
|
|
9344
9460
|
};
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
y: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
|
|
9461
|
+
Border.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
9462
|
+
height: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9463
|
+
rectComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9464
|
+
width: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9465
|
+
x: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9466
|
+
y: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9352
9467
|
});
|
|
9353
9468
|
Border.defaultProps = {
|
|
9354
|
-
rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_5__
|
|
9469
|
+
rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_5__.Rect, null),
|
|
9355
9470
|
role: "presentation",
|
|
9356
9471
|
shapeRendering: "auto"
|
|
9357
9472
|
};
|
|
9358
|
-
|
|
9473
|
+
//# sourceMappingURL=border.js.map
|
|
9359
9474
|
|
|
9360
9475
|
/***/ }),
|
|
9361
9476
|
|
|
@@ -9368,16 +9483,16 @@ Border.defaultProps = {
|
|
|
9368
9483
|
"use strict";
|
|
9369
9484
|
__webpack_require__.r(__webpack_exports__);
|
|
9370
9485
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9371
|
-
/* harmony export */ "
|
|
9486
|
+
/* harmony export */ "LineSegment": () => (/* binding */ LineSegment)
|
|
9372
9487
|
/* harmony export */ });
|
|
9373
9488
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9374
9489
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
9375
9490
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9376
9491
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9377
|
-
/* harmony import */ var
|
|
9378
|
-
/* harmony import */ var
|
|
9379
|
-
/* harmony import */ var
|
|
9380
|
-
/* harmony import */ var
|
|
9492
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9493
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9494
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9495
|
+
/* 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");
|
|
9381
9496
|
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
9382
9497
|
|
|
9383
9498
|
|
|
@@ -9402,13 +9517,13 @@ var evaluateProps = function (props) {
|
|
|
9402
9517
|
* `style`
|
|
9403
9518
|
* `tabIndex`
|
|
9404
9519
|
*/
|
|
9405
|
-
var ariaLabel =
|
|
9406
|
-
var desc =
|
|
9407
|
-
var id =
|
|
9408
|
-
var style =
|
|
9520
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
9521
|
+
var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
9522
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
9523
|
+
var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9409
9524
|
stroke: "black"
|
|
9410
9525
|
}, props.style), props);
|
|
9411
|
-
var tabIndex =
|
|
9526
|
+
var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
9412
9527
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
9413
9528
|
ariaLabel: ariaLabel,
|
|
9414
9529
|
desc: desc,
|
|
@@ -9436,21 +9551,20 @@ var LineSegment = function (props) {
|
|
|
9436
9551
|
clipPath: props.clipPath
|
|
9437
9552
|
}));
|
|
9438
9553
|
};
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
y2: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
|
|
9554
|
+
LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
9555
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
|
|
9556
|
+
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9557
|
+
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9558
|
+
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9559
|
+
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9560
|
+
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9447
9561
|
});
|
|
9448
9562
|
LineSegment.defaultProps = {
|
|
9449
|
-
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_5__
|
|
9563
|
+
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_5__.Line, null),
|
|
9450
9564
|
role: "presentation",
|
|
9451
9565
|
shapeRendering: "auto"
|
|
9452
9566
|
};
|
|
9453
|
-
|
|
9567
|
+
//# sourceMappingURL=line-segment.js.map
|
|
9454
9568
|
|
|
9455
9569
|
/***/ }),
|
|
9456
9570
|
|
|
@@ -9463,33 +9577,37 @@ LineSegment.defaultProps = {
|
|
|
9463
9577
|
"use strict";
|
|
9464
9578
|
__webpack_require__.r(__webpack_exports__);
|
|
9465
9579
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9466
|
-
/* harmony export */ "
|
|
9580
|
+
/* harmony export */ "Line": () => (/* binding */ Line)
|
|
9467
9581
|
/* harmony export */ });
|
|
9468
9582
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9469
9583
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9470
9584
|
var _excluded = ["desc"];
|
|
9471
9585
|
|
|
9472
|
-
function _extends() { _extends = Object.assign
|
|
9586
|
+
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); }
|
|
9473
9587
|
|
|
9474
9588
|
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; }
|
|
9475
9589
|
|
|
9476
9590
|
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; }
|
|
9477
9591
|
|
|
9478
9592
|
|
|
9479
|
-
|
|
9480
9593
|
var Line = function (props) {
|
|
9481
9594
|
// eslint-disable-next-line react/prop-types
|
|
9482
9595
|
var desc = props.desc,
|
|
9483
9596
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9484
9597
|
|
|
9485
|
-
return desc ?
|
|
9598
|
+
return desc ?
|
|
9599
|
+
/*#__PURE__*/
|
|
9600
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9601
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("line", _extends({
|
|
9486
9602
|
vectorEffect: "non-scaling-stroke"
|
|
9487
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9603
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9604
|
+
/*#__PURE__*/
|
|
9605
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9606
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("line", _extends({
|
|
9488
9607
|
vectorEffect: "non-scaling-stroke"
|
|
9489
9608
|
}, rest));
|
|
9490
9609
|
};
|
|
9491
|
-
|
|
9492
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Line);
|
|
9610
|
+
//# sourceMappingURL=line.js.map
|
|
9493
9611
|
|
|
9494
9612
|
/***/ }),
|
|
9495
9613
|
|
|
@@ -9502,33 +9620,37 @@ var Line = function (props) {
|
|
|
9502
9620
|
"use strict";
|
|
9503
9621
|
__webpack_require__.r(__webpack_exports__);
|
|
9504
9622
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9505
|
-
/* harmony export */ "
|
|
9623
|
+
/* harmony export */ "Rect": () => (/* binding */ Rect)
|
|
9506
9624
|
/* harmony export */ });
|
|
9507
9625
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9508
9626
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9509
9627
|
var _excluded = ["desc"];
|
|
9510
9628
|
|
|
9511
|
-
function _extends() { _extends = Object.assign
|
|
9629
|
+
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); }
|
|
9512
9630
|
|
|
9513
9631
|
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; }
|
|
9514
9632
|
|
|
9515
9633
|
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; }
|
|
9516
9634
|
|
|
9517
9635
|
|
|
9518
|
-
|
|
9519
9636
|
var Rect = function (props) {
|
|
9520
9637
|
// eslint-disable-next-line react/prop-types
|
|
9521
9638
|
var desc = props.desc,
|
|
9522
9639
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9523
9640
|
|
|
9524
|
-
return desc ?
|
|
9641
|
+
return desc ?
|
|
9642
|
+
/*#__PURE__*/
|
|
9643
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9644
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9525
9645
|
vectorEffect: "non-scaling-stroke"
|
|
9526
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9646
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9647
|
+
/*#__PURE__*/
|
|
9648
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9649
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9527
9650
|
vectorEffect: "non-scaling-stroke"
|
|
9528
9651
|
}, rest));
|
|
9529
9652
|
};
|
|
9530
|
-
|
|
9531
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
|
|
9653
|
+
//# sourceMappingURL=rect.js.map
|
|
9532
9654
|
|
|
9533
9655
|
/***/ }),
|
|
9534
9656
|
|
|
@@ -9541,7 +9663,7 @@ var Rect = function (props) {
|
|
|
9541
9663
|
"use strict";
|
|
9542
9664
|
__webpack_require__.r(__webpack_exports__);
|
|
9543
9665
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9544
|
-
/* harmony export */ "
|
|
9666
|
+
/* harmony export */ "Text": () => (/* binding */ Text)
|
|
9545
9667
|
/* harmony export */ });
|
|
9546
9668
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9547
9669
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9555,22 +9677,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
9555
9677
|
|
|
9556
9678
|
|
|
9557
9679
|
|
|
9558
|
-
|
|
9559
9680
|
var Text = function (props) {
|
|
9560
9681
|
var children = props.children,
|
|
9561
9682
|
title = props.title,
|
|
9562
9683
|
desc = props.desc,
|
|
9563
9684
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9564
9685
|
|
|
9565
|
-
return
|
|
9686
|
+
return (
|
|
9687
|
+
/*#__PURE__*/
|
|
9688
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9689
|
+
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)
|
|
9690
|
+
);
|
|
9566
9691
|
};
|
|
9567
|
-
|
|
9568
9692
|
Text.propTypes = {
|
|
9569
9693
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
9570
9694
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
9571
9695
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
9572
9696
|
};
|
|
9573
|
-
|
|
9697
|
+
//# sourceMappingURL=text.js.map
|
|
9574
9698
|
|
|
9575
9699
|
/***/ }),
|
|
9576
9700
|
|
|
@@ -9583,17 +9707,19 @@ Text.propTypes = {
|
|
|
9583
9707
|
"use strict";
|
|
9584
9708
|
__webpack_require__.r(__webpack_exports__);
|
|
9585
9709
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9586
|
-
/* harmony export */ "
|
|
9710
|
+
/* harmony export */ "TSpan": () => (/* binding */ TSpan)
|
|
9587
9711
|
/* harmony export */ });
|
|
9588
9712
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9589
9713
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9590
9714
|
|
|
9591
|
-
|
|
9592
9715
|
var TSpan = function (props) {
|
|
9593
|
-
return
|
|
9716
|
+
return (
|
|
9717
|
+
/*#__PURE__*/
|
|
9718
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9719
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
9720
|
+
);
|
|
9594
9721
|
};
|
|
9595
|
-
|
|
9596
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
|
|
9722
|
+
//# sourceMappingURL=tspan.js.map
|
|
9597
9723
|
|
|
9598
9724
|
/***/ }),
|
|
9599
9725
|
|
|
@@ -9606,16 +9732,16 @@ var TSpan = function (props) {
|
|
|
9606
9732
|
"use strict";
|
|
9607
9733
|
__webpack_require__.r(__webpack_exports__);
|
|
9608
9734
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9609
|
-
/* harmony export */ "
|
|
9735
|
+
/* harmony export */ "Whisker": () => (/* binding */ Whisker)
|
|
9610
9736
|
/* harmony export */ });
|
|
9611
9737
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9612
9738
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
9613
9739
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9614
9740
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9615
|
-
/* harmony import */ var
|
|
9616
|
-
/* harmony import */ var
|
|
9617
|
-
/* harmony import */ var
|
|
9618
|
-
/* harmony import */ var
|
|
9741
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9742
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9743
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9744
|
+
/* 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");
|
|
9619
9745
|
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
9620
9746
|
|
|
9621
9747
|
|
|
@@ -9640,11 +9766,11 @@ var evaluateProps = function (props) {
|
|
|
9640
9766
|
* `style`
|
|
9641
9767
|
* `tabIndex`
|
|
9642
9768
|
*/
|
|
9643
|
-
var ariaLabel =
|
|
9644
|
-
var desc =
|
|
9645
|
-
var id =
|
|
9646
|
-
var style =
|
|
9647
|
-
var tabIndex =
|
|
9769
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
9770
|
+
var desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
9771
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
9772
|
+
var style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(props.style, props);
|
|
9773
|
+
var tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
9648
9774
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
9649
9775
|
ariaLabel: ariaLabel,
|
|
9650
9776
|
desc: desc,
|
|
@@ -9691,30 +9817,29 @@ var Whisker = function (props) {
|
|
|
9691
9817
|
"aria-label": ariaLabel
|
|
9692
9818
|
}, baseProps, minorWhisker))]);
|
|
9693
9819
|
};
|
|
9694
|
-
|
|
9695
|
-
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
y2: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
|
|
9820
|
+
Whisker.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
9821
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9822
|
+
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
9823
|
+
majorWhisker: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({
|
|
9824
|
+
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9825
|
+
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9826
|
+
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9827
|
+
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9703
9828
|
}),
|
|
9704
|
-
minorWhisker:
|
|
9705
|
-
x1: (
|
|
9706
|
-
x2: (
|
|
9707
|
-
y1: (
|
|
9708
|
-
y2: (
|
|
9829
|
+
minorWhisker: prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({
|
|
9830
|
+
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9831
|
+
x2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9832
|
+
y1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
9833
|
+
y2: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
|
|
9709
9834
|
})
|
|
9710
9835
|
});
|
|
9711
9836
|
Whisker.defaultProps = {
|
|
9712
9837
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
|
|
9713
|
-
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_5__
|
|
9838
|
+
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_5__.Line, null),
|
|
9714
9839
|
role: "presentation",
|
|
9715
9840
|
shapeRendering: "auto"
|
|
9716
9841
|
};
|
|
9717
|
-
|
|
9842
|
+
//# sourceMappingURL=whisker.js.map
|
|
9718
9843
|
|
|
9719
9844
|
/***/ }),
|
|
9720
9845
|
|
|
@@ -9727,7 +9852,7 @@ Whisker.defaultProps = {
|
|
|
9727
9852
|
"use strict";
|
|
9728
9853
|
__webpack_require__.r(__webpack_exports__);
|
|
9729
9854
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9730
|
-
/* harmony export */ "
|
|
9855
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
9731
9856
|
/* harmony export */ });
|
|
9732
9857
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9733
9858
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9774,7 +9899,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9774
9899
|
|
|
9775
9900
|
var strokeLinecap = "round";
|
|
9776
9901
|
var strokeLinejoin = "round";
|
|
9777
|
-
|
|
9902
|
+
var grayscale = {
|
|
9778
9903
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9779
9904
|
style: {
|
|
9780
9905
|
data: {
|
|
@@ -9989,7 +10114,8 @@ var strokeLinejoin = "round";
|
|
|
9989
10114
|
}
|
|
9990
10115
|
}
|
|
9991
10116
|
}, baseProps)
|
|
9992
|
-
}
|
|
10117
|
+
};
|
|
10118
|
+
//# sourceMappingURL=grayscale.js.map
|
|
9993
10119
|
|
|
9994
10120
|
/***/ }),
|
|
9995
10121
|
|
|
@@ -10002,7 +10128,7 @@ var strokeLinejoin = "round";
|
|
|
10002
10128
|
"use strict";
|
|
10003
10129
|
__webpack_require__.r(__webpack_exports__);
|
|
10004
10130
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10005
|
-
/* harmony export */ "
|
|
10131
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
10006
10132
|
/* harmony export */ });
|
|
10007
10133
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
10008
10134
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10059,7 +10185,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
10059
10185
|
var strokeDasharray = "10, 5";
|
|
10060
10186
|
var strokeLinecap = "round";
|
|
10061
10187
|
var strokeLinejoin = "round";
|
|
10062
|
-
|
|
10188
|
+
var material = {
|
|
10063
10189
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
10064
10190
|
style: {
|
|
10065
10191
|
data: {
|
|
@@ -10291,7 +10417,8 @@ var strokeLinejoin = "round";
|
|
|
10291
10417
|
}
|
|
10292
10418
|
}
|
|
10293
10419
|
}, baseProps)
|
|
10294
|
-
}
|
|
10420
|
+
};
|
|
10421
|
+
//# sourceMappingURL=material.js.map
|
|
10295
10422
|
|
|
10296
10423
|
/***/ }),
|
|
10297
10424
|
|
|
@@ -10304,16 +10431,18 @@ var strokeLinejoin = "round";
|
|
|
10304
10431
|
"use strict";
|
|
10305
10432
|
__webpack_require__.r(__webpack_exports__);
|
|
10306
10433
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10307
|
-
/* harmony export */ "
|
|
10434
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
10308
10435
|
/* harmony export */ });
|
|
10309
|
-
/* harmony import */ var
|
|
10310
|
-
/* harmony import */ var
|
|
10436
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
10437
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
10311
10438
|
|
|
10312
10439
|
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
grayscale:
|
|
10316
|
-
|
|
10440
|
+
|
|
10441
|
+
var VictoryTheme = {
|
|
10442
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
10443
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
10444
|
+
};
|
|
10445
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
10317
10446
|
|
|
10318
10447
|
/***/ }),
|
|
10319
10448
|
|
|
@@ -10326,33 +10455,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10326
10455
|
"use strict";
|
|
10327
10456
|
__webpack_require__.r(__webpack_exports__);
|
|
10328
10457
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10329
|
-
/* harmony export */ "
|
|
10458
|
+
/* harmony export */ "VictoryTransition": () => (/* binding */ VictoryTransition)
|
|
10330
10459
|
/* harmony export */ });
|
|
10331
|
-
/* harmony import */ var
|
|
10332
|
-
/* harmony import */ var
|
|
10333
|
-
/* harmony import */ var
|
|
10334
|
-
/* harmony import */ var
|
|
10335
|
-
/* harmony import */ var
|
|
10336
|
-
/* harmony import */ var
|
|
10337
|
-
/* harmony import */ var
|
|
10338
|
-
/* harmony import */ var
|
|
10339
|
-
/* harmony import */ var
|
|
10340
|
-
/* harmony import */ var
|
|
10341
|
-
/* harmony import */ var
|
|
10342
|
-
/* harmony import */ var
|
|
10343
|
-
/* harmony import */ var
|
|
10344
|
-
/* harmony import */ var
|
|
10345
|
-
/* harmony import */ var
|
|
10346
|
-
/* harmony import */ var
|
|
10347
|
-
/* harmony import */ var
|
|
10348
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10349
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_6__);
|
|
10350
|
-
|
|
10460
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
10461
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
10462
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
10463
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
|
|
10464
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10465
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
10466
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
10467
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
10468
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
10469
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
10470
|
+
/* 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");
|
|
10471
|
+
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
10472
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10473
|
+
/* 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");
|
|
10474
|
+
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
10475
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10476
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
10351
10477
|
|
|
10352
10478
|
|
|
10353
10479
|
|
|
10354
10480
|
|
|
10355
|
-
function _extends() { _extends = Object.assign
|
|
10481
|
+
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); }
|
|
10356
10482
|
|
|
10357
10483
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10358
10484
|
|
|
@@ -10362,7 +10488,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
10362
10488
|
|
|
10363
10489
|
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); }
|
|
10364
10490
|
|
|
10365
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
10491
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10366
10492
|
|
|
10367
10493
|
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); }; }
|
|
10368
10494
|
|
|
@@ -10372,10 +10498,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10372
10498
|
|
|
10373
10499
|
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; } }
|
|
10374
10500
|
|
|
10375
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10376
|
-
|
|
10377
|
-
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; }
|
|
10378
|
-
|
|
10501
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10379
10502
|
|
|
10380
10503
|
|
|
10381
10504
|
|
|
@@ -10396,6 +10519,9 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10396
10519
|
_classCallCheck(this, VictoryTransition);
|
|
10397
10520
|
|
|
10398
10521
|
_this = _super.call(this, props, context);
|
|
10522
|
+
_this.continuous = void 0;
|
|
10523
|
+
_this.timer = void 0;
|
|
10524
|
+
_this.transitionProps = void 0;
|
|
10399
10525
|
_this.state = {
|
|
10400
10526
|
nodesShouldLoad: false,
|
|
10401
10527
|
nodesDoneLoad: false
|
|
@@ -10403,7 +10529,6 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10403
10529
|
var child = _this.props.children;
|
|
10404
10530
|
var polar = child.props.polar;
|
|
10405
10531
|
_this.continuous = !polar && child.type && child.type.continuous === true;
|
|
10406
|
-
_this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
|
|
10407
10532
|
_this.timer = _this.context.transitionTimer;
|
|
10408
10533
|
return _this;
|
|
10409
10534
|
}
|
|
@@ -10420,7 +10545,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10420
10545
|
value: function shouldComponentUpdate(nextProps) {
|
|
10421
10546
|
var _this2 = this;
|
|
10422
10547
|
|
|
10423
|
-
if (!
|
|
10548
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
10424
10549
|
this.timer.bypassAnimation();
|
|
10425
10550
|
this.setState(this.getTransitionState(this.props, nextProps), function () {
|
|
10426
10551
|
return _this2.timer.resumeAnimation();
|
|
@@ -10449,10 +10574,10 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10449
10574
|
nextProps: nextProps
|
|
10450
10575
|
};
|
|
10451
10576
|
} else {
|
|
10452
|
-
var oldChildren =
|
|
10453
|
-
var nextChildren =
|
|
10577
|
+
var oldChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
|
|
10578
|
+
var nextChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(nextProps.children);
|
|
10454
10579
|
|
|
10455
|
-
var _Transitions$getIniti =
|
|
10580
|
+
var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getInitialTransitionState(oldChildren, nextChildren),
|
|
10456
10581
|
nodesWillExit = _Transitions$getIniti.nodesWillExit,
|
|
10457
10582
|
nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
|
|
10458
10583
|
childrenTransitions = _Transitions$getIniti.childrenTransitions,
|
|
@@ -10473,18 +10598,18 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10473
10598
|
value: function getDomainFromChildren(props, axis) {
|
|
10474
10599
|
var getChildDomains = function (children) {
|
|
10475
10600
|
return children.reduce(function (memo, child) {
|
|
10476
|
-
if (child.type &&
|
|
10601
|
+
if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getDomain)) {
|
|
10477
10602
|
var childDomain = child.props && child.type.getDomain(child.props, axis);
|
|
10478
10603
|
return childDomain ? memo.concat(childDomain) : memo;
|
|
10479
10604
|
} else if (child.props && child.props.children) {
|
|
10480
|
-
return memo.concat(getChildDomains(
|
|
10605
|
+
return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children)));
|
|
10481
10606
|
}
|
|
10482
10607
|
|
|
10483
10608
|
return memo;
|
|
10484
10609
|
}, []);
|
|
10485
10610
|
};
|
|
10486
10611
|
|
|
10487
|
-
var child =
|
|
10612
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
10488
10613
|
var childProps = child.props || {};
|
|
10489
10614
|
var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
|
|
10490
10615
|
|
|
@@ -10492,7 +10617,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10492
10617
|
return domain;
|
|
10493
10618
|
} else {
|
|
10494
10619
|
var childDomains = getChildDomains([child]);
|
|
10495
|
-
return childDomains.length === 0 ? [0, 1] : [
|
|
10620
|
+
return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMaxValue(childDomains)];
|
|
10496
10621
|
}
|
|
10497
10622
|
}
|
|
10498
10623
|
}, {
|
|
@@ -10507,10 +10632,12 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10507
10632
|
}, {
|
|
10508
10633
|
key: "pickDomainProps",
|
|
10509
10634
|
value: function pickDomainProps(props) {
|
|
10510
|
-
var
|
|
10635
|
+
var _props$animate;
|
|
10636
|
+
|
|
10637
|
+
var parentState = (_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.parentState;
|
|
10511
10638
|
|
|
10512
10639
|
if (parentState && parentState.nodesWillExit) {
|
|
10513
|
-
return this.
|
|
10640
|
+
return this.continuous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
|
|
10514
10641
|
}
|
|
10515
10642
|
|
|
10516
10643
|
return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
|
|
@@ -10519,7 +10646,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10519
10646
|
key: "getClipWidth",
|
|
10520
10647
|
value: function getClipWidth(props, child) {
|
|
10521
10648
|
var getDefaultClipWidth = function () {
|
|
10522
|
-
var range =
|
|
10649
|
+
var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(child.props, "x");
|
|
10523
10650
|
return range ? Math.abs(range[1] - range[0]) : props.width;
|
|
10524
10651
|
};
|
|
10525
10652
|
|
|
@@ -10529,13 +10656,14 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10529
10656
|
}, {
|
|
10530
10657
|
key: "render",
|
|
10531
10658
|
value: function render() {
|
|
10532
|
-
var
|
|
10659
|
+
var _this$props$animate,
|
|
10660
|
+
_this3 = this;
|
|
10533
10661
|
|
|
10534
10662
|
var props = this.pickProps();
|
|
10535
|
-
var getTransitionProps =
|
|
10663
|
+
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) {
|
|
10536
10664
|
return _this3.setState(newState);
|
|
10537
10665
|
});
|
|
10538
|
-
var child =
|
|
10666
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
10539
10667
|
var transitionProps = getTransitionProps(child);
|
|
10540
10668
|
this.transitionProps = transitionProps;
|
|
10541
10669
|
var domain = {
|
|
@@ -10544,29 +10672,29 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10544
10672
|
};
|
|
10545
10673
|
var clipWidth = this.getClipWidth(props, child);
|
|
10546
10674
|
|
|
10547
|
-
var combinedProps =
|
|
10675
|
+
var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10548
10676
|
domain: domain,
|
|
10549
10677
|
clipWidth: clipWidth
|
|
10550
10678
|
}, transitionProps, child.props);
|
|
10551
10679
|
|
|
10552
10680
|
var animationWhitelist = props.animationWhitelist || [];
|
|
10553
10681
|
var whitelist = animationWhitelist.concat(["clipWidth"]);
|
|
10554
|
-
var propsToAnimate = whitelist.length ?
|
|
10555
|
-
return /*#__PURE__*/
|
|
10682
|
+
var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
|
|
10683
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
|
|
10556
10684
|
data: propsToAnimate
|
|
10557
10685
|
}), function (newProps) {
|
|
10558
10686
|
if (child.props.groupComponent) {
|
|
10559
|
-
var groupComponent = _this3.continuous ? /*#__PURE__*/
|
|
10687
|
+
var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child.props.groupComponent, {
|
|
10560
10688
|
clipWidth: newProps.clipWidth || 0
|
|
10561
10689
|
}) : child.props.groupComponent;
|
|
10562
|
-
return /*#__PURE__*/
|
|
10690
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10563
10691
|
animate: null,
|
|
10564
10692
|
animating: true,
|
|
10565
10693
|
groupComponent: groupComponent
|
|
10566
10694
|
}, newProps, combinedProps));
|
|
10567
10695
|
}
|
|
10568
10696
|
|
|
10569
|
-
return /*#__PURE__*/
|
|
10697
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10570
10698
|
animate: null,
|
|
10571
10699
|
animating: true
|
|
10572
10700
|
}, newProps, combinedProps));
|
|
@@ -10575,19 +10703,15 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10575
10703
|
}]);
|
|
10576
10704
|
|
|
10577
10705
|
return VictoryTransition;
|
|
10578
|
-
}((
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
_defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]);
|
|
10589
|
-
|
|
10590
|
-
|
|
10706
|
+
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
10707
|
+
VictoryTransition.displayName = "VictoryTransition";
|
|
10708
|
+
VictoryTransition.propTypes = {
|
|
10709
|
+
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)]),
|
|
10710
|
+
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
10711
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
10712
|
+
};
|
|
10713
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
10714
|
+
//# sourceMappingURL=victory-transition.js.map
|
|
10591
10715
|
|
|
10592
10716
|
/***/ }),
|
|
10593
10717
|
|
|
@@ -10600,33 +10724,32 @@ _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__W
|
|
|
10600
10724
|
"use strict";
|
|
10601
10725
|
__webpack_require__.r(__webpack_exports__);
|
|
10602
10726
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10603
|
-
/* harmony export */ "
|
|
10727
|
+
/* harmony export */ "addEvents": () => (/* binding */ addEvents)
|
|
10604
10728
|
/* harmony export */ });
|
|
10605
|
-
/* harmony import */ var
|
|
10606
|
-
/* harmony import */ var
|
|
10607
|
-
/* harmony import */ var
|
|
10608
|
-
/* harmony import */ var
|
|
10609
|
-
/* harmony import */ var
|
|
10610
|
-
/* harmony import */ var
|
|
10611
|
-
/* harmony import */ var
|
|
10612
|
-
/* harmony import */ var
|
|
10613
|
-
/* harmony import */ var
|
|
10614
|
-
/* harmony import */ var
|
|
10615
|
-
/* harmony import */ var
|
|
10616
|
-
/* harmony import */ var
|
|
10617
|
-
/* harmony import */ var
|
|
10618
|
-
/* harmony import */ var
|
|
10619
|
-
/* harmony import */ var
|
|
10620
|
-
/* harmony import */ var
|
|
10621
|
-
/* harmony import */ var
|
|
10622
|
-
/* harmony import */ var
|
|
10729
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
10730
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
10731
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
10732
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
10733
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10734
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
|
|
10735
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
|
|
10736
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
|
|
10737
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
10738
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
|
|
10739
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
10740
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
|
|
10741
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
|
|
10742
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
|
|
10743
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10744
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
|
|
10745
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
10746
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
|
|
10623
10747
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
|
|
10624
10748
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
|
10625
10749
|
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
10626
10750
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10627
10751
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_10__);
|
|
10628
10752
|
/* 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");
|
|
10629
|
-
/* 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");
|
|
10630
10753
|
|
|
10631
10754
|
|
|
10632
10755
|
|
|
@@ -10657,7 +10780,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
10657
10780
|
|
|
10658
10781
|
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); }
|
|
10659
10782
|
|
|
10660
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
10783
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10661
10784
|
|
|
10662
10785
|
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); }; }
|
|
10663
10786
|
|
|
@@ -10667,7 +10790,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10667
10790
|
|
|
10668
10791
|
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; } }
|
|
10669
10792
|
|
|
10670
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10793
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10671
10794
|
|
|
10672
10795
|
/*global window:false */
|
|
10673
10796
|
|
|
@@ -10675,9 +10798,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10675
10798
|
|
|
10676
10799
|
|
|
10677
10800
|
|
|
10678
|
-
|
|
10801
|
+
// DISCLAIMER:
|
|
10802
|
+
// This file is not currently tested, and it is first on the list of files
|
|
10803
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
10804
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
10679
10805
|
var datumHasXandY = function (datum) {
|
|
10680
|
-
return !
|
|
10806
|
+
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
|
|
10681
10807
|
}; // used for checking state changes. Expected components can be passed in via options
|
|
10682
10808
|
|
|
10683
10809
|
|
|
@@ -10689,44 +10815,45 @@ var defaultComponents = [{
|
|
|
10689
10815
|
}, {
|
|
10690
10816
|
name: "labels"
|
|
10691
10817
|
}];
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
_inherits(addEvents, _WrappedComponent);
|
|
10818
|
+
function addEvents(WrappedComponent) {
|
|
10819
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10695
10820
|
|
|
10696
|
-
|
|
10821
|
+
// @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
|
|
10822
|
+
var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
|
|
10823
|
+
_inherits(AddEventsMixin, _WrappedComponent);
|
|
10697
10824
|
|
|
10698
|
-
|
|
10825
|
+
var _super = _createSuper(AddEventsMixin);
|
|
10826
|
+
|
|
10827
|
+
function AddEventsMixin(props) {
|
|
10699
10828
|
var _this;
|
|
10700
10829
|
|
|
10701
|
-
_classCallCheck(this,
|
|
10830
|
+
_classCallCheck(this, AddEventsMixin);
|
|
10702
10831
|
|
|
10703
10832
|
_this = _super.call(this, props);
|
|
10704
|
-
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10705
|
-
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
10706
10833
|
_this.state = {};
|
|
10834
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
10835
|
+
_this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10707
10836
|
|
|
10708
10837
|
_this.getEvents = function (p, target, eventKey) {
|
|
10709
|
-
return
|
|
10838
|
+
return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
|
|
10710
10839
|
};
|
|
10711
10840
|
|
|
10712
|
-
_this.
|
|
10713
|
-
|
|
10714
|
-
var calculatedValues = _this.getCalculatedValues(props);
|
|
10715
|
-
|
|
10716
|
-
_this.cacheValues(calculatedValues);
|
|
10717
|
-
|
|
10718
|
-
_this.externalMutations = _this.getExternalMutations(props);
|
|
10719
|
-
_this.calculatedState = _this.getStateChanges(props);
|
|
10841
|
+
_this.externalMutations = _this.getExternalMutations(_this.props);
|
|
10842
|
+
_this.calculatedState = _this.getStateChanges(_this.props);
|
|
10720
10843
|
_this.globalEvents = {};
|
|
10721
10844
|
_this.prevGlobalEventKeys = [];
|
|
10722
10845
|
_this.boundGlobalEvents = {};
|
|
10846
|
+
|
|
10847
|
+
_this.cacheValues(_this.getCalculatedValues(props));
|
|
10848
|
+
|
|
10723
10849
|
return _this;
|
|
10724
10850
|
}
|
|
10725
10851
|
|
|
10726
|
-
_createClass(
|
|
10852
|
+
_createClass(AddEventsMixin, [{
|
|
10727
10853
|
key: "shouldComponentUpdate",
|
|
10728
10854
|
value: function shouldComponentUpdate(nextProps) {
|
|
10729
|
-
var externalMutations = this.getExternalMutations(nextProps);
|
|
10855
|
+
var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
|
|
10856
|
+
|
|
10730
10857
|
var animating = this.props.animating || this.props.animate;
|
|
10731
10858
|
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
10732
10859
|
|
|
@@ -10756,7 +10883,7 @@ var defaultComponents = [{
|
|
|
10756
10883
|
value: function componentDidMount() {
|
|
10757
10884
|
var _this2 = this;
|
|
10758
10885
|
|
|
10759
|
-
var globalEventKeys =
|
|
10886
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10760
10887
|
|
|
10761
10888
|
globalEventKeys.forEach(function (key) {
|
|
10762
10889
|
return _this2.addGlobalListener(key);
|
|
@@ -10771,15 +10898,15 @@ var defaultComponents = [{
|
|
|
10771
10898
|
var calculatedState = this.getStateChanges(prevProps);
|
|
10772
10899
|
this.calculatedState = calculatedState;
|
|
10773
10900
|
|
|
10774
|
-
var globalEventKeys =
|
|
10901
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10775
10902
|
|
|
10776
|
-
var removedGlobalEventKeys =
|
|
10903
|
+
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
10777
10904
|
|
|
10778
10905
|
removedGlobalEventKeys.forEach(function (key) {
|
|
10779
10906
|
return _this3.removeGlobalListener(key);
|
|
10780
10907
|
});
|
|
10781
10908
|
|
|
10782
|
-
var addedGlobalEventKeys =
|
|
10909
|
+
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
10783
10910
|
|
|
10784
10911
|
addedGlobalEventKeys.forEach(function (key) {
|
|
10785
10912
|
return _this3.addGlobalListener(key);
|
|
@@ -10825,12 +10952,11 @@ var defaultComponents = [{
|
|
|
10825
10952
|
}
|
|
10826
10953
|
|
|
10827
10954
|
var getState = function (key, type) {
|
|
10828
|
-
var result =
|
|
10955
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
10829
10956
|
|
|
10830
|
-
return
|
|
10957
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
|
|
10831
10958
|
};
|
|
10832
10959
|
|
|
10833
|
-
options = options || {};
|
|
10834
10960
|
var components = options.components || defaultComponents;
|
|
10835
10961
|
var stateChanges = components.map(function (component) {
|
|
10836
10962
|
if (!props.standalone && component.name === "parent") {
|
|
@@ -10847,9 +10973,9 @@ var defaultComponents = [{
|
|
|
10847
10973
|
}, {
|
|
10848
10974
|
key: "applyExternalMutations",
|
|
10849
10975
|
value: function applyExternalMutations(props, externalMutations) {
|
|
10850
|
-
if (!
|
|
10976
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
|
|
10851
10977
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
10852
|
-
memo =
|
|
10978
|
+
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
10853
10979
|
return memo;
|
|
10854
10980
|
}, []);
|
|
10855
10981
|
var compiledCallbacks = callbacks.length ? function () {
|
|
@@ -10866,12 +10992,12 @@ var defaultComponents = [{
|
|
|
10866
10992
|
var sharedEvents = props.sharedEvents;
|
|
10867
10993
|
var components = WrappedComponent.expectedComponents;
|
|
10868
10994
|
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
10869
|
-
var getSharedEventState = sharedEvents &&
|
|
10995
|
+
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
10870
10996
|
return undefined;
|
|
10871
10997
|
};
|
|
10872
10998
|
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
10873
10999
|
|
|
10874
|
-
var dataKeys =
|
|
11000
|
+
var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
|
|
10875
11001
|
return key !== "parent";
|
|
10876
11002
|
});
|
|
10877
11003
|
|
|
@@ -10891,32 +11017,32 @@ var defaultComponents = [{
|
|
|
10891
11017
|
value: function getExternalMutations(props) {
|
|
10892
11018
|
var sharedEvents = props.sharedEvents,
|
|
10893
11019
|
externalEventMutations = props.externalEventMutations;
|
|
10894
|
-
return
|
|
11020
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
10895
11021
|
}
|
|
10896
11022
|
}, {
|
|
10897
11023
|
key: "cacheValues",
|
|
10898
11024
|
value: function cacheValues(obj) {
|
|
10899
11025
|
var _this7 = this;
|
|
10900
11026
|
|
|
10901
|
-
|
|
11027
|
+
lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
|
|
10902
11028
|
_this7[key] = obj[key];
|
|
10903
11029
|
});
|
|
10904
11030
|
}
|
|
10905
11031
|
}, {
|
|
10906
11032
|
key: "getBaseProps",
|
|
10907
11033
|
value: function getBaseProps(props, getSharedEventState) {
|
|
10908
|
-
getSharedEventState = getSharedEventState || this.getSharedEventState;
|
|
11034
|
+
getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
|
|
10909
11035
|
var sharedParentState = getSharedEventState("parent", "parent");
|
|
10910
11036
|
var parentState = this.getEventState("parent", "parent");
|
|
10911
11037
|
|
|
10912
|
-
var baseParentProps =
|
|
11038
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
|
|
10913
11039
|
|
|
10914
11040
|
var parentPropsList = baseParentProps.parentControlledProps;
|
|
10915
|
-
var parentProps = parentPropsList ?
|
|
11041
|
+
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
|
|
10916
11042
|
|
|
10917
|
-
var modifiedProps =
|
|
11043
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
|
|
10918
11044
|
|
|
10919
|
-
return
|
|
11045
|
+
return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
10920
11046
|
}
|
|
10921
11047
|
}, {
|
|
10922
11048
|
key: "getAllEvents",
|
|
@@ -10944,21 +11070,21 @@ var defaultComponents = [{
|
|
|
10944
11070
|
if (this.hasEvents) {
|
|
10945
11071
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
10946
11072
|
|
|
10947
|
-
var componentProps =
|
|
11073
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10948
11074
|
index: index,
|
|
10949
11075
|
key: id
|
|
10950
11076
|
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
10951
11077
|
id: id
|
|
10952
11078
|
});
|
|
10953
11079
|
|
|
10954
|
-
var events =
|
|
11080
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
10955
11081
|
|
|
10956
|
-
return
|
|
11082
|
+
return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
|
|
10957
11083
|
events: events
|
|
10958
11084
|
});
|
|
10959
11085
|
}
|
|
10960
11086
|
|
|
10961
|
-
return
|
|
11087
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10962
11088
|
index: index,
|
|
10963
11089
|
key: id
|
|
10964
11090
|
}, component.props, baseProps, {
|
|
@@ -10981,11 +11107,14 @@ var defaultComponents = [{
|
|
|
10981
11107
|
}, {
|
|
10982
11108
|
key: "animateComponent",
|
|
10983
11109
|
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
10984
|
-
var
|
|
10985
|
-
|
|
11110
|
+
var _props$animate;
|
|
11111
|
+
|
|
11112
|
+
var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
|
|
11113
|
+
var Comp = this.constructor;
|
|
11114
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
|
|
10986
11115
|
animate: props.animate,
|
|
10987
11116
|
animationWhitelist: animationWhitelist
|
|
10988
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(
|
|
11117
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
|
|
10989
11118
|
} // Used by `VictoryLine` and `VictoryArea`
|
|
10990
11119
|
|
|
10991
11120
|
}, {
|
|
@@ -10997,7 +11126,7 @@ var defaultComponents = [{
|
|
|
10997
11126
|
labelComponent = props.labelComponent,
|
|
10998
11127
|
groupComponent = props.groupComponent;
|
|
10999
11128
|
|
|
11000
|
-
var dataKeys =
|
|
11129
|
+
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
|
|
11001
11130
|
|
|
11002
11131
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
11003
11132
|
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
@@ -11021,7 +11150,6 @@ var defaultComponents = [{
|
|
|
11021
11150
|
var dataComponent = props.dataComponent,
|
|
11022
11151
|
labelComponent = props.labelComponent,
|
|
11023
11152
|
groupComponent = props.groupComponent;
|
|
11024
|
-
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__.getSafeUserProps(props);
|
|
11025
11153
|
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
11026
11154
|
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
11027
11155
|
|
|
@@ -11041,14 +11169,16 @@ var defaultComponents = [{
|
|
|
11041
11169
|
return undefined;
|
|
11042
11170
|
}).filter(Boolean);
|
|
11043
11171
|
var children = [].concat(_toConsumableArray(dataComponents), _toConsumableArray(labelComponents));
|
|
11044
|
-
|
|
11045
|
-
return this.renderContainer(group, children);
|
|
11172
|
+
return this.renderContainer(groupComponent, children);
|
|
11046
11173
|
}
|
|
11047
11174
|
}]);
|
|
11048
11175
|
|
|
11049
|
-
return
|
|
11176
|
+
return AddEventsMixin;
|
|
11050
11177
|
}(WrappedComponent);
|
|
11051
|
-
|
|
11178
|
+
|
|
11179
|
+
return AddEventsMixin;
|
|
11180
|
+
}
|
|
11181
|
+
//# sourceMappingURL=add-events.js.map
|
|
11052
11182
|
|
|
11053
11183
|
/***/ }),
|
|
11054
11184
|
|
|
@@ -11061,14 +11191,14 @@ var defaultComponents = [{
|
|
|
11061
11191
|
"use strict";
|
|
11062
11192
|
__webpack_require__.r(__webpack_exports__);
|
|
11063
11193
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11064
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
11065
11194
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
11066
11195
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
11067
11196
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
11068
|
-
/* harmony export */ "
|
|
11069
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
11197
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
11070
11198
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
11071
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
11199
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
11200
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
11201
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
11072
11202
|
/* harmony export */ });
|
|
11073
11203
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
11074
11204
|
|
|
@@ -11082,9 +11212,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11082
11212
|
|
|
11083
11213
|
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; }
|
|
11084
11214
|
|
|
11085
|
-
/* eslint-disable func-style */
|
|
11086
|
-
|
|
11087
|
-
/* eslint-disable no-use-before-define */
|
|
11088
11215
|
function isNonEmptyArray(collection) {
|
|
11089
11216
|
return Array.isArray(collection) && collection.length > 0;
|
|
11090
11217
|
}
|
|
@@ -11123,7 +11250,8 @@ function getMaxValue(arr) {
|
|
|
11123
11250
|
}
|
|
11124
11251
|
|
|
11125
11252
|
var array = arr.concat(values);
|
|
11126
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
11253
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
11254
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
11127
11255
|
}
|
|
11128
11256
|
function getMinValue(arr) {
|
|
11129
11257
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -11131,8 +11259,10 @@ function getMinValue(arr) {
|
|
|
11131
11259
|
}
|
|
11132
11260
|
|
|
11133
11261
|
var array = arr.concat(values);
|
|
11134
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
11262
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
11263
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
11135
11264
|
}
|
|
11265
|
+
//# sourceMappingURL=collection.js.map
|
|
11136
11266
|
|
|
11137
11267
|
/***/ }),
|
|
11138
11268
|
|
|
@@ -11145,9 +11275,7 @@ function getMinValue(arr) {
|
|
|
11145
11275
|
"use strict";
|
|
11146
11276
|
__webpack_require__.r(__webpack_exports__);
|
|
11147
11277
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11148
|
-
/* harmony export */ "
|
|
11149
|
-
/* harmony export */ "baseProps": () => (/* binding */ baseProps),
|
|
11150
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
11278
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
11151
11279
|
/* harmony export */ });
|
|
11152
11280
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11153
11281
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11155,26 +11283,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11155
11283
|
|
|
11156
11284
|
|
|
11157
11285
|
var dataProps = {
|
|
11286
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11158
11287
|
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({
|
|
11159
11288
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
11160
11289
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
11161
11290
|
})]),
|
|
11291
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11162
11292
|
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)]),
|
|
11163
11293
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11164
11294
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11165
11295
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11166
11296
|
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)]),
|
|
11167
11297
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11168
|
-
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))]),
|
|
11298
|
+
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))]),
|
|
11169
11299
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
11170
11300
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11171
11301
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11172
11302
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11173
11303
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11174
11304
|
}),
|
|
11175
|
-
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))]),
|
|
11176
|
-
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))]),
|
|
11177
|
-
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))])
|
|
11305
|
+
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))]),
|
|
11306
|
+
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))]),
|
|
11307
|
+
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))])
|
|
11178
11308
|
};
|
|
11179
11309
|
var baseProps = {
|
|
11180
11310
|
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)]),
|
|
@@ -11183,14 +11313,17 @@ var baseProps = {
|
|
|
11183
11313
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
11184
11314
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
11185
11315
|
})]),
|
|
11316
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11186
11317
|
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({
|
|
11187
11318
|
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)]),
|
|
11188
11319
|
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)])
|
|
11189
11320
|
})]),
|
|
11321
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11190
11322
|
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({
|
|
11191
11323
|
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)]),
|
|
11192
11324
|
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)])
|
|
11193
11325
|
})]),
|
|
11326
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11194
11327
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11195
11328
|
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))]),
|
|
11196
11329
|
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))])
|
|
@@ -11201,20 +11334,23 @@ var baseProps = {
|
|
|
11201
11334
|
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)]),
|
|
11202
11335
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11203
11336
|
})),
|
|
11337
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11204
11338
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11205
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
11339
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11206
11340
|
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)]),
|
|
11207
11341
|
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)]),
|
|
11208
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
11342
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11209
11343
|
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)])
|
|
11210
11344
|
})),
|
|
11211
11345
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11212
11346
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11213
11347
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
11348
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11214
11349
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11215
11350
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11216
11351
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
11217
11352
|
}),
|
|
11353
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11218
11354
|
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({
|
|
11219
11355
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11220
11356
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -11223,17 +11359,19 @@ var baseProps = {
|
|
|
11223
11359
|
})]),
|
|
11224
11360
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11225
11361
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11226
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
11227
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
11362
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
11363
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
11228
11364
|
})]),
|
|
11229
11365
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11230
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
11231
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
11366
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
11367
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
11232
11368
|
})]),
|
|
11369
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11233
11370
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11234
11371
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
11235
11372
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
11236
11373
|
}),
|
|
11374
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11237
11375
|
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({
|
|
11238
11376
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
11239
11377
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -11253,6 +11391,7 @@ var primitiveProps = {
|
|
|
11253
11391
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11254
11392
|
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)]),
|
|
11255
11393
|
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)]),
|
|
11394
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11256
11395
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11257
11396
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11258
11397
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -11268,6 +11407,12 @@ var primitiveProps = {
|
|
|
11268
11407
|
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)]),
|
|
11269
11408
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
11270
11409
|
};
|
|
11410
|
+
var CommonProps = {
|
|
11411
|
+
dataProps: dataProps,
|
|
11412
|
+
baseProps: baseProps,
|
|
11413
|
+
primitiveProps: primitiveProps
|
|
11414
|
+
};
|
|
11415
|
+
//# sourceMappingURL=common-props.js.map
|
|
11271
11416
|
|
|
11272
11417
|
/***/ }),
|
|
11273
11418
|
|
|
@@ -11280,10 +11425,10 @@ var primitiveProps = {
|
|
|
11280
11425
|
"use strict";
|
|
11281
11426
|
__webpack_require__.r(__webpack_exports__);
|
|
11282
11427
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11283
|
-
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
11284
11428
|
/* harmony export */ "createStringMap": () => (/* binding */ createStringMap),
|
|
11285
11429
|
/* harmony export */ "downsample": () => (/* binding */ downsample),
|
|
11286
11430
|
/* harmony export */ "formatData": () => (/* binding */ formatData),
|
|
11431
|
+
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
11287
11432
|
/* harmony export */ "generateData": () => (/* binding */ generateData),
|
|
11288
11433
|
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
11289
11434
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
@@ -11350,8 +11495,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11350
11495
|
|
|
11351
11496
|
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; }
|
|
11352
11497
|
|
|
11353
|
-
/* eslint-disable func-style */
|
|
11354
|
-
|
|
11355
11498
|
/* eslint-disable no-use-before-define */
|
|
11356
11499
|
|
|
11357
11500
|
|
|
@@ -11783,6 +11926,7 @@ function isDataComponent(component) {
|
|
|
11783
11926
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
11784
11927
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
11785
11928
|
}
|
|
11929
|
+
//# sourceMappingURL=data.js.map
|
|
11786
11930
|
|
|
11787
11931
|
/***/ }),
|
|
11788
11932
|
|
|
@@ -11795,11 +11939,10 @@ function isDataComponent(component) {
|
|
|
11795
11939
|
"use strict";
|
|
11796
11940
|
__webpack_require__.r(__webpack_exports__);
|
|
11797
11941
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11798
|
-
/* harmony export */ "continuousTransitions": () => (/* binding */ continuousTransitions),
|
|
11799
11942
|
/* harmony export */ "continuousPolarTransitions": () => (/* binding */ continuousPolarTransitions),
|
|
11943
|
+
/* harmony export */ "continuousTransitions": () => (/* binding */ continuousTransitions),
|
|
11800
11944
|
/* harmony export */ "discreteTransitions": () => (/* binding */ discreteTransitions)
|
|
11801
11945
|
/* harmony export */ });
|
|
11802
|
-
/* eslint-disable func-style */
|
|
11803
11946
|
function continuousTransitions() {
|
|
11804
11947
|
return {
|
|
11805
11948
|
onLoad: {
|
|
@@ -11906,6 +12049,7 @@ function discreteTransitions() {
|
|
|
11906
12049
|
}
|
|
11907
12050
|
};
|
|
11908
12051
|
}
|
|
12052
|
+
//# sourceMappingURL=default-transitions.js.map
|
|
11909
12053
|
|
|
11910
12054
|
/***/ }),
|
|
11911
12055
|
|
|
@@ -11968,8 +12112,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11968
12112
|
|
|
11969
12113
|
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; }
|
|
11970
12114
|
|
|
11971
|
-
/* eslint-disable func-style */
|
|
11972
|
-
|
|
11973
12115
|
/* eslint-disable no-use-before-define */
|
|
11974
12116
|
|
|
11975
12117
|
|
|
@@ -12009,8 +12151,9 @@ function getDomainPadding(props, axis) {
|
|
|
12009
12151
|
}
|
|
12010
12152
|
|
|
12011
12153
|
function getFlatData(dataset, axis) {
|
|
12154
|
+
var axisKey = "_".concat(axis);
|
|
12012
12155
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
12013
|
-
return datum[
|
|
12156
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
12014
12157
|
});
|
|
12015
12158
|
}
|
|
12016
12159
|
|
|
@@ -12075,7 +12218,9 @@ function padDomain(domain, props, axis) {
|
|
|
12075
12218
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
12076
12219
|
// Naive initial padding calculation
|
|
12077
12220
|
var initialPadding = {
|
|
12221
|
+
// @ts-expect-error `max/min` might be dates
|
|
12078
12222
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
12223
|
+
// @ts-expect-error `max/min` might be dates
|
|
12079
12224
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
12080
12225
|
}; // Adjust the domain by the initial padding
|
|
12081
12226
|
|
|
@@ -12360,6 +12505,7 @@ function isDomainComponent(component) {
|
|
|
12360
12505
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
12361
12506
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
12362
12507
|
}
|
|
12508
|
+
//# sourceMappingURL=domain.js.map
|
|
12363
12509
|
|
|
12364
12510
|
/***/ }),
|
|
12365
12511
|
|
|
@@ -12372,18 +12518,18 @@ function isDomainComponent(component) {
|
|
|
12372
12518
|
"use strict";
|
|
12373
12519
|
__webpack_require__.r(__webpack_exports__);
|
|
12374
12520
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12375
|
-
/* harmony export */ "
|
|
12376
|
-
/* harmony export */ "
|
|
12377
|
-
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
12521
|
+
/* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
|
|
12522
|
+
/* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
|
|
12378
12523
|
/* harmony export */ "getEventState": () => (/* binding */ getEventState),
|
|
12379
|
-
/* harmony export */ "
|
|
12380
|
-
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
12524
|
+
/* harmony export */ "getEvents": () => (/* binding */ getEvents),
|
|
12381
12525
|
/* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
|
|
12382
|
-
/* harmony export */ "
|
|
12526
|
+
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
12527
|
+
/* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
|
|
12383
12528
|
/* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
|
|
12384
12529
|
/* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
|
|
12385
|
-
/* harmony export */ "
|
|
12386
|
-
/* harmony export */ "
|
|
12530
|
+
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
12531
|
+
/* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
|
|
12532
|
+
/* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
|
|
12387
12533
|
/* harmony export */ });
|
|
12388
12534
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
12389
12535
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12428,15 +12574,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
12428
12574
|
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; }
|
|
12429
12575
|
|
|
12430
12576
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
12577
|
+
|
|
12431
12578
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
12432
12579
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
12433
12580
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
12434
12581
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
12435
12582
|
* (i.e. VictoryChart) in the case of shared events
|
|
12436
12583
|
*/
|
|
12437
|
-
// eslint-disable-next-line max-params
|
|
12438
|
-
|
|
12439
|
-
|
|
12584
|
+
// eslint-disable-next-line max-params
|
|
12585
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
12586
|
+
getScopedEvents) {
|
|
12440
12587
|
var _this = this;
|
|
12441
12588
|
|
|
12442
12589
|
// Returns all events that apply to a particular target element
|
|
@@ -12659,24 +12806,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
12659
12806
|
return memo;
|
|
12660
12807
|
}, {});
|
|
12661
12808
|
}
|
|
12662
|
-
/*
|
|
12809
|
+
/*
|
|
12810
|
+
* Returns a partially applied event handler for a specific target element
|
|
12663
12811
|
* This allows event handlers to have access to props controlling each element
|
|
12664
12812
|
*/
|
|
12665
12813
|
|
|
12666
12814
|
function getPartialEvents(events, eventKey, childProps) {
|
|
12667
|
-
|
|
12815
|
+
if (!events) return {};
|
|
12816
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
12668
12817
|
var appliedEvent = function (evt) {
|
|
12669
12818
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
12670
12819
|
};
|
|
12671
12820
|
|
|
12672
12821
|
memo[eventName] = appliedEvent;
|
|
12673
12822
|
return memo;
|
|
12674
|
-
}, {})
|
|
12823
|
+
}, {});
|
|
12675
12824
|
}
|
|
12825
|
+
|
|
12676
12826
|
/* Returns the property of the state object corresponding to event changes for
|
|
12677
12827
|
* a particular element
|
|
12678
12828
|
*/
|
|
12679
|
-
|
|
12829
|
+
// eslint-disable-next-line max-params
|
|
12680
12830
|
function getEventState(eventKey, namespace, childType) {
|
|
12681
12831
|
// Mandatory usage: `getEventState.bind(this)`
|
|
12682
12832
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -12861,6 +13011,7 @@ var emulateReactEvent = function (event) {
|
|
|
12861
13011
|
nativeEvent: event
|
|
12862
13012
|
});
|
|
12863
13013
|
};
|
|
13014
|
+
//# sourceMappingURL=events.js.map
|
|
12864
13015
|
|
|
12865
13016
|
/***/ }),
|
|
12866
13017
|
|
|
@@ -12873,25 +13024,25 @@ var emulateReactEvent = function (event) {
|
|
|
12873
13024
|
"use strict";
|
|
12874
13025
|
__webpack_require__.r(__webpack_exports__);
|
|
12875
13026
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12876
|
-
/* harmony export */ "
|
|
12877
|
-
/* harmony export */ "
|
|
12878
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
12879
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
12880
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
12881
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
12882
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
13027
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
13028
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
12883
13029
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
12884
13030
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
12885
|
-
/* harmony export */ "
|
|
12886
|
-
/* harmony export */ "
|
|
12887
|
-
/* harmony export */ "
|
|
13031
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
13032
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
13033
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
13034
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
12888
13035
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
13036
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
12889
13037
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
12890
|
-
/* harmony export */ "
|
|
13038
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
13039
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
13040
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
12891
13041
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
12892
|
-
/* harmony export */ "
|
|
13042
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
13043
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
12893
13044
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
12894
|
-
/* harmony export */ "
|
|
13045
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
12895
13046
|
/* harmony export */ });
|
|
12896
13047
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
12897
13048
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12914,8 +13065,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12914
13065
|
|
|
12915
13066
|
|
|
12916
13067
|
|
|
12917
|
-
/* eslint-disable func-style */
|
|
12918
|
-
|
|
12919
13068
|
/* eslint-disable no-use-before-define */
|
|
12920
13069
|
|
|
12921
13070
|
|
|
@@ -12944,7 +13093,7 @@ function getPolarRange(props, axis) {
|
|
|
12944
13093
|
|
|
12945
13094
|
/**
|
|
12946
13095
|
* creates an object with some keys excluded
|
|
12947
|
-
* replacement for lodash.omit for performance. does not
|
|
13096
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
12948
13097
|
* @param {Object} originalObject: created object will be based on this object
|
|
12949
13098
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
12950
13099
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -12957,6 +13106,7 @@ function omit(originalObject) {
|
|
|
12957
13106
|
var newObject = {};
|
|
12958
13107
|
|
|
12959
13108
|
for (var key in originalObject) {
|
|
13109
|
+
// @ts-expect-error String is not assignable to Key
|
|
12960
13110
|
if (ks.indexOf(key) >= 0) {
|
|
12961
13111
|
continue;
|
|
12962
13112
|
}
|
|
@@ -13189,7 +13339,9 @@ function reduceChildren(children, iteratee) {
|
|
|
13189
13339
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
13190
13340
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
13191
13341
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
13192
|
-
return
|
|
13342
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
13343
|
+
memo.concat(item)
|
|
13344
|
+
);
|
|
13193
13345
|
};
|
|
13194
13346
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
13195
13347
|
|
|
@@ -13233,7 +13385,7 @@ function reduceChildren(children, iteratee) {
|
|
|
13233
13385
|
/**
|
|
13234
13386
|
* @param {Object} props: the props object
|
|
13235
13387
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
13236
|
-
* children or nested children are
|
|
13388
|
+
* children or nested children are horizontal
|
|
13237
13389
|
*/
|
|
13238
13390
|
|
|
13239
13391
|
function isHorizontal(props) {
|
|
@@ -13256,6 +13408,7 @@ function isHorizontal(props) {
|
|
|
13256
13408
|
|
|
13257
13409
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
13258
13410
|
}
|
|
13411
|
+
//# sourceMappingURL=helpers.js.map
|
|
13259
13412
|
|
|
13260
13413
|
/***/ }),
|
|
13261
13414
|
|
|
@@ -13269,17 +13422,16 @@ function isHorizontal(props) {
|
|
|
13269
13422
|
__webpack_require__.r(__webpack_exports__);
|
|
13270
13423
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13271
13424
|
/* harmony export */ "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
|
|
13272
|
-
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
13273
13425
|
/* harmony export */ "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
|
|
13274
13426
|
/* harmony export */ "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
|
|
13275
|
-
/* harmony export */ "
|
|
13276
|
-
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
13427
|
+
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
13277
13428
|
/* harmony export */ "isImmutable": () => (/* binding */ isImmutable),
|
|
13429
|
+
/* harmony export */ "isIterable": () => (/* binding */ isIterable),
|
|
13278
13430
|
/* harmony export */ "isList": () => (/* binding */ isList),
|
|
13279
13431
|
/* harmony export */ "isMap": () => (/* binding */ isMap),
|
|
13432
|
+
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
13280
13433
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
13281
13434
|
/* harmony export */ });
|
|
13282
|
-
/* eslint-disable func-style */
|
|
13283
13435
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
13284
13436
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
13285
13437
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -13300,15 +13452,16 @@ function isMap(x) {
|
|
|
13300
13452
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
13301
13453
|
}
|
|
13302
13454
|
function shallowToJS(x, whitelist) {
|
|
13303
|
-
return isIterable(x) ? x.reduce(function (
|
|
13455
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
13304
13456
|
if (whitelist && whitelist[key]) {
|
|
13305
13457
|
curr = shallowToJS(curr);
|
|
13306
13458
|
}
|
|
13307
13459
|
|
|
13308
|
-
|
|
13309
|
-
return
|
|
13460
|
+
result[key] = curr;
|
|
13461
|
+
return result;
|
|
13310
13462
|
}, isList(x) ? [] : {}) : x;
|
|
13311
13463
|
}
|
|
13464
|
+
//# sourceMappingURL=immutable.js.map
|
|
13312
13465
|
|
|
13313
13466
|
/***/ }),
|
|
13314
13467
|
|
|
@@ -13321,20 +13474,18 @@ function shallowToJS(x, whitelist) {
|
|
|
13321
13474
|
"use strict";
|
|
13322
13475
|
__webpack_require__.r(__webpack_exports__);
|
|
13323
13476
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13324
|
-
/* harmony export */ "
|
|
13477
|
+
/* harmony export */ "getDegrees": () => (/* binding */ getDegrees),
|
|
13478
|
+
/* harmony export */ "getPolarAngle": () => (/* binding */ getPolarAngle),
|
|
13325
13479
|
/* harmony export */ "getPolarTextAnchor": () => (/* binding */ getPolarTextAnchor),
|
|
13326
13480
|
/* harmony export */ "getPolarVerticalAnchor": () => (/* binding */ getPolarVerticalAnchor),
|
|
13327
|
-
/* harmony export */ "
|
|
13328
|
-
/* harmony export */ "
|
|
13329
|
-
/* harmony export */ "getProps": () => (/* binding */ getProps)
|
|
13481
|
+
/* harmony export */ "getProps": () => (/* binding */ getProps),
|
|
13482
|
+
/* harmony export */ "getText": () => (/* binding */ getText)
|
|
13330
13483
|
/* harmony export */ });
|
|
13331
13484
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
13332
13485
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
13333
13486
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
13334
13487
|
|
|
13335
13488
|
|
|
13336
|
-
/* eslint-disable func-style */
|
|
13337
|
-
|
|
13338
13489
|
/* eslint-disable no-use-before-define */
|
|
13339
13490
|
|
|
13340
13491
|
|
|
@@ -13568,6 +13719,7 @@ function getProps(props, index) {
|
|
|
13568
13719
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
13569
13720
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
13570
13721
|
}
|
|
13722
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
13571
13723
|
|
|
13572
13724
|
/***/ }),
|
|
13573
13725
|
|
|
@@ -13586,7 +13738,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13586
13738
|
|
|
13587
13739
|
/* eslint-disable no-console */
|
|
13588
13740
|
// TODO: Use "warning" npm module like React is switching to.
|
|
13589
|
-
// eslint-disable-next-line func-style
|
|
13590
13741
|
function warn(message) {
|
|
13591
13742
|
if (true) {
|
|
13592
13743
|
if (console && console.warn) {
|
|
@@ -13594,6 +13745,7 @@ function warn(message) {
|
|
|
13594
13745
|
}
|
|
13595
13746
|
}
|
|
13596
13747
|
}
|
|
13748
|
+
//# sourceMappingURL=log.js.map
|
|
13597
13749
|
|
|
13598
13750
|
/***/ }),
|
|
13599
13751
|
|
|
@@ -13606,27 +13758,25 @@ function warn(message) {
|
|
|
13606
13758
|
"use strict";
|
|
13607
13759
|
__webpack_require__.r(__webpack_exports__);
|
|
13608
13760
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13609
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
13610
13761
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
13611
|
-
/* harmony export */ "
|
|
13612
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
13613
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
13762
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
13614
13763
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
13615
|
-
/* harmony export */ "
|
|
13764
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
13616
13765
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
13766
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
13617
13767
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
13618
|
-
/* harmony export */ "
|
|
13768
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
13769
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
13770
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
13619
13771
|
/* harmony export */ });
|
|
13620
13772
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
13621
13773
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
13622
13774
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
13623
13775
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
13624
|
-
/* harmony import */ var
|
|
13625
|
-
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
13626
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
13776
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
13627
13777
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
13628
13778
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
13629
|
-
|
|
13779
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
13630
13780
|
|
|
13631
13781
|
|
|
13632
13782
|
|
|
@@ -13634,6 +13784,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13634
13784
|
|
|
13635
13785
|
|
|
13636
13786
|
|
|
13787
|
+
|
|
13788
|
+
|
|
13637
13789
|
/**
|
|
13638
13790
|
* Return a new validator based on `validator` but with the option to chain
|
|
13639
13791
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -13641,30 +13793,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13641
13793
|
* @param {Function} validator Validation function.
|
|
13642
13794
|
* @returns {Function} Validator with `isRequired` option.
|
|
13643
13795
|
*/
|
|
13644
|
-
|
|
13645
13796
|
var makeChainable = function (validator) {
|
|
13646
|
-
|
|
13647
|
-
|
|
13648
|
-
|
|
13797
|
+
var createChainable = function (isRequired) {
|
|
13798
|
+
return function (props, propName, componentName) {
|
|
13799
|
+
var value = props[propName];
|
|
13649
13800
|
|
|
13650
|
-
|
|
13651
|
-
|
|
13652
|
-
|
|
13653
|
-
|
|
13801
|
+
if (value === undefined || value === null) {
|
|
13802
|
+
if (isRequired) {
|
|
13803
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
13804
|
+
}
|
|
13654
13805
|
|
|
13655
|
-
|
|
13656
|
-
|
|
13806
|
+
return null;
|
|
13807
|
+
}
|
|
13657
13808
|
|
|
13658
|
-
|
|
13659
|
-
|
|
13660
|
-
|
|
13809
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
13810
|
+
rest[_key - 3] = arguments[_key];
|
|
13811
|
+
}
|
|
13661
13812
|
|
|
13662
|
-
|
|
13813
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13814
|
+
};
|
|
13663
13815
|
};
|
|
13664
13816
|
|
|
13665
|
-
var chainable =
|
|
13666
|
-
|
|
13667
|
-
|
|
13817
|
+
var chainable = Object.assign(createChainable(false), {
|
|
13818
|
+
isRequired: createChainable(true)
|
|
13819
|
+
});
|
|
13668
13820
|
return chainable;
|
|
13669
13821
|
};
|
|
13670
13822
|
|
|
@@ -13694,7 +13846,7 @@ var getConstructor = function (value) {
|
|
|
13694
13846
|
};
|
|
13695
13847
|
/**
|
|
13696
13848
|
* Get the name of the constructor used to create `value`, using
|
|
13697
|
-
* `Object.
|
|
13849
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
13698
13850
|
* "null" or "undefined", respectively.
|
|
13699
13851
|
* @param {*} value Instance to return the constructor name of.
|
|
13700
13852
|
* @returns {String} Name of the constructor.
|
|
@@ -13724,10 +13876,11 @@ function deprecated(propType, explanation) {
|
|
|
13724
13876
|
var value = props[propName];
|
|
13725
13877
|
|
|
13726
13878
|
if (value !== null && value !== undefined) {
|
|
13727
|
-
|
|
13879
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
13728
13880
|
}
|
|
13729
13881
|
|
|
13730
|
-
|
|
13882
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
13883
|
+
return null;
|
|
13731
13884
|
};
|
|
13732
13885
|
}
|
|
13733
13886
|
/**
|
|
@@ -13746,7 +13899,7 @@ function allOfType(validators) {
|
|
|
13746
13899
|
|
|
13747
13900
|
return validators.reduce(function (result, validator) {
|
|
13748
13901
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13749
|
-
},
|
|
13902
|
+
}, null);
|
|
13750
13903
|
});
|
|
13751
13904
|
}
|
|
13752
13905
|
/**
|
|
@@ -13760,7 +13913,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
13760
13913
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
13761
13914
|
}
|
|
13762
13915
|
|
|
13763
|
-
return
|
|
13916
|
+
return null;
|
|
13764
13917
|
});
|
|
13765
13918
|
/**
|
|
13766
13919
|
* Check that the value is an integer.
|
|
@@ -13773,7 +13926,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
13773
13926
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
13774
13927
|
}
|
|
13775
13928
|
|
|
13776
|
-
return
|
|
13929
|
+
return null;
|
|
13777
13930
|
});
|
|
13778
13931
|
/**
|
|
13779
13932
|
* Check that the value is greater than zero.
|
|
@@ -13786,7 +13939,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
13786
13939
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
13787
13940
|
}
|
|
13788
13941
|
|
|
13789
|
-
return
|
|
13942
|
+
return null;
|
|
13790
13943
|
});
|
|
13791
13944
|
/**
|
|
13792
13945
|
* Check that the value is an Array of two unique values.
|
|
@@ -13799,32 +13952,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
13799
13952
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
13800
13953
|
}
|
|
13801
13954
|
|
|
13802
|
-
return
|
|
13955
|
+
return null;
|
|
13803
13956
|
});
|
|
13804
13957
|
/**
|
|
13805
13958
|
* Check that the value looks like a d3 `scale` function.
|
|
13806
13959
|
*/
|
|
13807
13960
|
|
|
13808
13961
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
13809
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13810
|
-
|
|
13811
|
-
var validScale = function (scl) {
|
|
13812
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
13813
|
-
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);
|
|
13814
|
-
} else if (typeof scl === "string") {
|
|
13815
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
13816
|
-
}
|
|
13817
|
-
|
|
13818
|
-
return false;
|
|
13819
|
-
};
|
|
13820
|
-
|
|
13821
13962
|
var value = props[propName];
|
|
13822
13963
|
|
|
13823
|
-
if (!validScale(value)) {
|
|
13964
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
13824
13965
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
13825
13966
|
}
|
|
13826
13967
|
|
|
13827
|
-
return
|
|
13968
|
+
return null;
|
|
13828
13969
|
});
|
|
13829
13970
|
/**
|
|
13830
13971
|
* Check that an array contains items of the same type.
|
|
@@ -13838,7 +13979,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
13838
13979
|
}
|
|
13839
13980
|
|
|
13840
13981
|
if (values.length < 2) {
|
|
13841
|
-
return
|
|
13982
|
+
return null;
|
|
13842
13983
|
}
|
|
13843
13984
|
|
|
13844
13985
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -13853,7 +13994,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
13853
13994
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
13854
13995
|
}
|
|
13855
13996
|
|
|
13856
|
-
return
|
|
13997
|
+
return null;
|
|
13857
13998
|
});
|
|
13858
13999
|
/**
|
|
13859
14000
|
* Check that array prop length matches props.data.length
|
|
@@ -13864,7 +14005,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
13864
14005
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
13865
14006
|
}
|
|
13866
14007
|
|
|
13867
|
-
return
|
|
14008
|
+
return null;
|
|
13868
14009
|
});
|
|
13869
14010
|
/**
|
|
13870
14011
|
* Check that the value is a regular expression
|
|
@@ -13875,8 +14016,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
13875
14016
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
13876
14017
|
}
|
|
13877
14018
|
|
|
13878
|
-
return
|
|
14019
|
+
return null;
|
|
13879
14020
|
});
|
|
14021
|
+
//# sourceMappingURL=prop-types.js.map
|
|
13880
14022
|
|
|
13881
14023
|
/***/ }),
|
|
13882
14024
|
|
|
@@ -13889,12 +14031,13 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
13889
14031
|
"use strict";
|
|
13890
14032
|
__webpack_require__.r(__webpack_exports__);
|
|
13891
14033
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13892
|
-
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
13893
14034
|
/* harmony export */ "getBaseScale": () => (/* binding */ getBaseScale),
|
|
13894
14035
|
/* harmony export */ "getDefaultScale": () => (/* binding */ getDefaultScale),
|
|
14036
|
+
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
13895
14037
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
13896
14038
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
13897
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
14039
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
14040
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
13898
14041
|
/* harmony export */ });
|
|
13899
14042
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
13900
14043
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -13912,8 +14055,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13912
14055
|
|
|
13913
14056
|
|
|
13914
14057
|
|
|
13915
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
14058
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13916
14059
|
|
|
14060
|
+
// Private Functions
|
|
13917
14061
|
function toNewName(scale) {
|
|
13918
14062
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
13919
14063
|
var capitalize = function (s) {
|
|
@@ -13983,7 +14127,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
13983
14127
|
|
|
13984
14128
|
|
|
13985
14129
|
function getScaleFromName(name) {
|
|
13986
|
-
|
|
14130
|
+
if (validScale(name)) {
|
|
14131
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
14132
|
+
|
|
14133
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
14134
|
+
}
|
|
14135
|
+
|
|
14136
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
13987
14137
|
}
|
|
13988
14138
|
function getBaseScale(props, axis) {
|
|
13989
14139
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -13993,7 +14143,7 @@ function getBaseScale(props, axis) {
|
|
|
13993
14143
|
}
|
|
13994
14144
|
|
|
13995
14145
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
13996
|
-
return
|
|
14146
|
+
return getScaleFromName(defaultScale);
|
|
13997
14147
|
}
|
|
13998
14148
|
function getDefaultScale() {
|
|
13999
14149
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -14006,7 +14156,7 @@ function getScaleFromProps(props, axis) {
|
|
|
14006
14156
|
var scale = props.scale[axis] || props.scale;
|
|
14007
14157
|
|
|
14008
14158
|
if (validScale(scale)) {
|
|
14009
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
14159
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
14010
14160
|
}
|
|
14011
14161
|
|
|
14012
14162
|
return undefined;
|
|
@@ -14041,6 +14191,7 @@ function getType(scale) {
|
|
|
14041
14191
|
})[0];
|
|
14042
14192
|
return scaleType ? scaleType.name : undefined;
|
|
14043
14193
|
}
|
|
14194
|
+
//# sourceMappingURL=scale.js.map
|
|
14044
14195
|
|
|
14045
14196
|
/***/ }),
|
|
14046
14197
|
|
|
@@ -14053,11 +14204,9 @@ function getType(scale) {
|
|
|
14053
14204
|
"use strict";
|
|
14054
14205
|
__webpack_require__.r(__webpack_exports__);
|
|
14055
14206
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14056
|
-
/* harmony export */ "
|
|
14057
|
-
/* harmony export */ "
|
|
14207
|
+
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
14208
|
+
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
14058
14209
|
/* harmony export */ });
|
|
14059
|
-
/* eslint-disable func-style */
|
|
14060
|
-
|
|
14061
14210
|
/**
|
|
14062
14211
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
14063
14212
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -14114,6 +14263,7 @@ function getColorScale(name) {
|
|
|
14114
14263
|
};
|
|
14115
14264
|
return name ? scales[name] : scales.grayscale;
|
|
14116
14265
|
}
|
|
14266
|
+
//# sourceMappingURL=style.js.map
|
|
14117
14267
|
|
|
14118
14268
|
/***/ }),
|
|
14119
14269
|
|
|
@@ -14126,9 +14276,9 @@ function getColorScale(name) {
|
|
|
14126
14276
|
"use strict";
|
|
14127
14277
|
__webpack_require__.r(__webpack_exports__);
|
|
14128
14278
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14129
|
-
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels),
|
|
14130
14279
|
/* harmony export */ "_approximateTextSizeInternal": () => (/* binding */ _approximateTextSizeInternal),
|
|
14131
|
-
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize)
|
|
14280
|
+
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize),
|
|
14281
|
+
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels)
|
|
14132
14282
|
/* harmony export */ });
|
|
14133
14283
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
14134
14284
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -14318,8 +14468,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
14318
14468
|
|
|
14319
14469
|
|
|
14320
14470
|
var convertLengthToPixels = function (length, fontSize) {
|
|
14321
|
-
var
|
|
14322
|
-
|
|
14471
|
+
var _length$match;
|
|
14472
|
+
|
|
14473
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
14474
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
14323
14475
|
var result;
|
|
14324
14476
|
|
|
14325
14477
|
if (!attribute) {
|
|
@@ -14385,9 +14537,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
14385
14537
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
14386
14538
|
return total + lineStyle.lineHeight * height;
|
|
14387
14539
|
}, 0);
|
|
14388
|
-
};
|
|
14389
|
-
|
|
14540
|
+
};
|
|
14390
14541
|
|
|
14542
|
+
// Stubbable implementation.
|
|
14391
14543
|
var _approximateTextSizeInternal = {
|
|
14392
14544
|
impl: function (text, style) {
|
|
14393
14545
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -14406,7 +14558,7 @@ var _approximateTextSizeInternal = {
|
|
|
14406
14558
|
};
|
|
14407
14559
|
/**
|
|
14408
14560
|
* Predict text size by font params.
|
|
14409
|
-
* @param {string} text Content for width calculation.
|
|
14561
|
+
* @param {string|string[]} text Content for width calculation.
|
|
14410
14562
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
14411
14563
|
* @param {string} style.fontFamily Text fontFamily.
|
|
14412
14564
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -14419,6 +14571,7 @@ var _approximateTextSizeInternal = {
|
|
|
14419
14571
|
var approximateTextSize = function (text, style) {
|
|
14420
14572
|
return _approximateTextSizeInternal.impl(text, style);
|
|
14421
14573
|
};
|
|
14574
|
+
//# sourceMappingURL=textsize.js.map
|
|
14422
14575
|
|
|
14423
14576
|
/***/ }),
|
|
14424
14577
|
|
|
@@ -14449,6 +14602,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
14449
14602
|
});
|
|
14450
14603
|
TimerContext.displayName = "TimerContext";
|
|
14451
14604
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
14605
|
+
//# sourceMappingURL=timer-context.js.map
|
|
14452
14606
|
|
|
14453
14607
|
/***/ }),
|
|
14454
14608
|
|
|
@@ -14474,11 +14628,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
14474
14628
|
|
|
14475
14629
|
var Timer = /*#__PURE__*/function () {
|
|
14476
14630
|
function Timer() {
|
|
14631
|
+
var _this = this;
|
|
14632
|
+
|
|
14477
14633
|
_classCallCheck(this, Timer);
|
|
14478
14634
|
|
|
14635
|
+
this.shouldAnimate = void 0;
|
|
14636
|
+
this.subscribers = void 0;
|
|
14637
|
+
this.activeSubscriptions = void 0;
|
|
14638
|
+
this.timer = void 0;
|
|
14639
|
+
|
|
14640
|
+
this.loop = function () {
|
|
14641
|
+
_this.subscribers.forEach(function (s) {
|
|
14642
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
14643
|
+
});
|
|
14644
|
+
};
|
|
14645
|
+
|
|
14479
14646
|
this.shouldAnimate = true;
|
|
14480
14647
|
this.subscribers = [];
|
|
14481
|
-
this.loop = this.loop.bind(this);
|
|
14482
14648
|
this.timer = null;
|
|
14483
14649
|
this.activeSubscriptions = 0;
|
|
14484
14650
|
}
|
|
@@ -14493,13 +14659,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
14493
14659
|
value: function resumeAnimation() {
|
|
14494
14660
|
this.shouldAnimate = true;
|
|
14495
14661
|
}
|
|
14496
|
-
}, {
|
|
14497
|
-
key: "loop",
|
|
14498
|
-
value: function loop() {
|
|
14499
|
-
this.subscribers.forEach(function (s) {
|
|
14500
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
14501
|
-
});
|
|
14502
|
-
}
|
|
14503
14662
|
}, {
|
|
14504
14663
|
key: "start",
|
|
14505
14664
|
value: function start() {
|
|
@@ -14546,6 +14705,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
14546
14705
|
}();
|
|
14547
14706
|
|
|
14548
14707
|
|
|
14708
|
+
//# sourceMappingURL=timer.js.map
|
|
14549
14709
|
|
|
14550
14710
|
/***/ }),
|
|
14551
14711
|
|
|
@@ -14636,7 +14796,7 @@ function getChildData(child) {
|
|
|
14636
14796
|
}
|
|
14637
14797
|
/**
|
|
14638
14798
|
* If a parent component has animation enabled, calculate the transitions
|
|
14639
|
-
* for any data of any child component that supports data transitions
|
|
14799
|
+
* for any data of any child component that supports data transitions.
|
|
14640
14800
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
14641
14801
|
* in the first set and not the second, in the second and not the first,
|
|
14642
14802
|
* or both.
|
|
@@ -14765,7 +14925,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
14765
14925
|
|
|
14766
14926
|
if (exitingNodes) {
|
|
14767
14927
|
// After the exit transition occurs, trigger the animations for
|
|
14768
|
-
// nodes that are neither exiting
|
|
14928
|
+
// nodes that are neither exiting nor entering.
|
|
14769
14929
|
animate.onEnd = cb;
|
|
14770
14930
|
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.
|
|
14771
14931
|
|
|
@@ -14835,7 +14995,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
14835
14995
|
* and its index in the parent's children array.
|
|
14836
14996
|
*
|
|
14837
14997
|
* In particular, this will include an `animate` object that is set appropriately
|
|
14838
|
-
* so that each child will be
|
|
14998
|
+
* so that each child will be synchronized for each stage of a transition
|
|
14839
14999
|
* animation. It will also include a transformed `data` object, where each datum
|
|
14840
15000
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
14841
15001
|
* functions.
|
|
@@ -14980,6 +15140,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
14980
15140
|
};
|
|
14981
15141
|
};
|
|
14982
15142
|
}
|
|
15143
|
+
//# sourceMappingURL=transitions.js.map
|
|
14983
15144
|
|
|
14984
15145
|
/***/ }),
|
|
14985
15146
|
|
|
@@ -14992,8 +15153,11 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
14992
15153
|
"use strict";
|
|
14993
15154
|
__webpack_require__.r(__webpack_exports__);
|
|
14994
15155
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14995
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
15156
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
15157
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
14996
15158
|
/* harmony export */ });
|
|
15159
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
15160
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14997
15161
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14998
15162
|
|
|
14999
15163
|
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."); }
|
|
@@ -15012,16 +15176,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
15012
15176
|
|
|
15013
15177
|
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; }
|
|
15014
15178
|
|
|
15179
|
+
|
|
15015
15180
|
/*
|
|
15016
15181
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
15017
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
15182
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
15018
15183
|
starts with these characters.
|
|
15019
15184
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
15020
15185
|
*/
|
|
15186
|
+
|
|
15021
15187
|
var USER_PROPS_SAFELIST = {
|
|
15022
15188
|
startsWith: ["data-", "aria-"],
|
|
15023
15189
|
exactMatch: []
|
|
15024
15190
|
};
|
|
15191
|
+
|
|
15025
15192
|
/**
|
|
15026
15193
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
15027
15194
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -15030,7 +15197,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
15030
15197
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
15031
15198
|
* otherwise
|
|
15032
15199
|
*/
|
|
15033
|
-
|
|
15034
15200
|
var doesPropStartWith = function (key) {
|
|
15035
15201
|
var startsWith = false;
|
|
15036
15202
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -15104,6 +15270,18 @@ var getSafeUserProps = function (props) {
|
|
|
15104
15270
|
return [key, getValue(value, props)];
|
|
15105
15271
|
}));
|
|
15106
15272
|
};
|
|
15273
|
+
/**
|
|
15274
|
+
* Wraps a component and adds safe user props
|
|
15275
|
+
*
|
|
15276
|
+
* @param {ReactElement} component: parent component
|
|
15277
|
+
* @param {Object} props: props to be filtered
|
|
15278
|
+
* @returns {ReactElement} modified component
|
|
15279
|
+
*/
|
|
15280
|
+
|
|
15281
|
+
var withSafeUserProps = function (component, props) {
|
|
15282
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
15283
|
+
};
|
|
15284
|
+
//# sourceMappingURL=user-props.js.map
|
|
15107
15285
|
|
|
15108
15286
|
/***/ }),
|
|
15109
15287
|
|
|
@@ -15252,9 +15430,9 @@ function ascending(a, b) {
|
|
|
15252
15430
|
"use strict";
|
|
15253
15431
|
__webpack_require__.r(__webpack_exports__);
|
|
15254
15432
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15255
|
-
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
15256
|
-
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
15257
15433
|
/* harmony export */ "bisectCenter": () => (/* binding */ bisectCenter),
|
|
15434
|
+
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
15435
|
+
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
15258
15436
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15259
15437
|
/* harmony export */ });
|
|
15260
15438
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
@@ -15640,9 +15818,9 @@ function range(start, stop, step) {
|
|
|
15640
15818
|
"use strict";
|
|
15641
15819
|
__webpack_require__.r(__webpack_exports__);
|
|
15642
15820
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15643
|
-
/* harmony export */ "
|
|
15821
|
+
/* harmony export */ "ascendingDefined": () => (/* binding */ ascendingDefined),
|
|
15644
15822
|
/* harmony export */ "compareDefined": () => (/* binding */ compareDefined),
|
|
15645
|
-
/* harmony export */ "
|
|
15823
|
+
/* harmony export */ "default": () => (/* binding */ sort)
|
|
15646
15824
|
/* harmony export */ });
|
|
15647
15825
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
15648
15826
|
/* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permute.js */ "../../victory-vendor/node_modules/d3-array/src/permute.js");
|
|
@@ -15770,14 +15948,14 @@ function tickStep(start, stop, count) {
|
|
|
15770
15948
|
__webpack_require__.r(__webpack_exports__);
|
|
15771
15949
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15772
15950
|
/* harmony export */ "Color": () => (/* binding */ Color),
|
|
15773
|
-
/* harmony export */ "
|
|
15951
|
+
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
15774
15952
|
/* harmony export */ "brighter": () => (/* binding */ brighter),
|
|
15953
|
+
/* harmony export */ "darker": () => (/* binding */ darker),
|
|
15775
15954
|
/* harmony export */ "default": () => (/* binding */ color),
|
|
15776
|
-
/* harmony export */ "
|
|
15777
|
-
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
15778
|
-
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
15955
|
+
/* harmony export */ "hsl": () => (/* binding */ hsl),
|
|
15779
15956
|
/* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
|
|
15780
|
-
/* harmony export */ "
|
|
15957
|
+
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
15958
|
+
/* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert)
|
|
15781
15959
|
/* harmony export */ });
|
|
15782
15960
|
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-vendor/node_modules/d3-color/src/define.js");
|
|
15783
15961
|
|
|
@@ -16216,8 +16394,8 @@ function extend(parent, definition) {
|
|
|
16216
16394
|
__webpack_require__.r(__webpack_exports__);
|
|
16217
16395
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16218
16396
|
/* harmony export */ "backIn": () => (/* binding */ backIn),
|
|
16219
|
-
/* harmony export */ "
|
|
16220
|
-
/* harmony export */ "
|
|
16397
|
+
/* harmony export */ "backInOut": () => (/* binding */ backInOut),
|
|
16398
|
+
/* harmony export */ "backOut": () => (/* binding */ backOut)
|
|
16221
16399
|
/* harmony export */ });
|
|
16222
16400
|
var overshoot = 1.70158;
|
|
16223
16401
|
|
|
@@ -16270,8 +16448,8 @@ var backInOut = (function custom(s) {
|
|
|
16270
16448
|
__webpack_require__.r(__webpack_exports__);
|
|
16271
16449
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16272
16450
|
/* harmony export */ "bounceIn": () => (/* binding */ bounceIn),
|
|
16273
|
-
/* harmony export */ "
|
|
16274
|
-
/* harmony export */ "
|
|
16451
|
+
/* harmony export */ "bounceInOut": () => (/* binding */ bounceInOut),
|
|
16452
|
+
/* harmony export */ "bounceOut": () => (/* binding */ bounceOut)
|
|
16275
16453
|
/* harmony export */ });
|
|
16276
16454
|
var b1 = 4 / 11,
|
|
16277
16455
|
b2 = 6 / 11,
|
|
@@ -16309,8 +16487,8 @@ function bounceInOut(t) {
|
|
|
16309
16487
|
__webpack_require__.r(__webpack_exports__);
|
|
16310
16488
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16311
16489
|
/* harmony export */ "circleIn": () => (/* binding */ circleIn),
|
|
16312
|
-
/* harmony export */ "
|
|
16313
|
-
/* harmony export */ "
|
|
16490
|
+
/* harmony export */ "circleInOut": () => (/* binding */ circleInOut),
|
|
16491
|
+
/* harmony export */ "circleOut": () => (/* binding */ circleOut)
|
|
16314
16492
|
/* harmony export */ });
|
|
16315
16493
|
function circleIn(t) {
|
|
16316
16494
|
return 1 - Math.sqrt(1 - t * t);
|
|
@@ -16337,8 +16515,8 @@ function circleInOut(t) {
|
|
|
16337
16515
|
__webpack_require__.r(__webpack_exports__);
|
|
16338
16516
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16339
16517
|
/* harmony export */ "cubicIn": () => (/* binding */ cubicIn),
|
|
16340
|
-
/* harmony export */ "
|
|
16341
|
-
/* harmony export */ "
|
|
16518
|
+
/* harmony export */ "cubicInOut": () => (/* binding */ cubicInOut),
|
|
16519
|
+
/* harmony export */ "cubicOut": () => (/* binding */ cubicOut)
|
|
16342
16520
|
/* harmony export */ });
|
|
16343
16521
|
function cubicIn(t) {
|
|
16344
16522
|
return t * t * t;
|
|
@@ -16365,8 +16543,8 @@ function cubicInOut(t) {
|
|
|
16365
16543
|
__webpack_require__.r(__webpack_exports__);
|
|
16366
16544
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16367
16545
|
/* harmony export */ "elasticIn": () => (/* binding */ elasticIn),
|
|
16368
|
-
/* harmony export */ "
|
|
16369
|
-
/* harmony export */ "
|
|
16546
|
+
/* harmony export */ "elasticInOut": () => (/* binding */ elasticInOut),
|
|
16547
|
+
/* harmony export */ "elasticOut": () => (/* binding */ elasticOut)
|
|
16370
16548
|
/* harmony export */ });
|
|
16371
16549
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16372
16550
|
|
|
@@ -16429,8 +16607,8 @@ var elasticInOut = (function custom(a, p) {
|
|
|
16429
16607
|
__webpack_require__.r(__webpack_exports__);
|
|
16430
16608
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16431
16609
|
/* harmony export */ "expIn": () => (/* binding */ expIn),
|
|
16432
|
-
/* harmony export */ "
|
|
16433
|
-
/* harmony export */ "
|
|
16610
|
+
/* harmony export */ "expInOut": () => (/* binding */ expInOut),
|
|
16611
|
+
/* harmony export */ "expOut": () => (/* binding */ expOut)
|
|
16434
16612
|
/* harmony export */ });
|
|
16435
16613
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16436
16614
|
|
|
@@ -16459,43 +16637,43 @@ function expInOut(t) {
|
|
|
16459
16637
|
"use strict";
|
|
16460
16638
|
__webpack_require__.r(__webpack_exports__);
|
|
16461
16639
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16462
|
-
/* harmony export */ "
|
|
16463
|
-
/* harmony export */ "
|
|
16464
|
-
/* harmony export */ "
|
|
16465
|
-
/* harmony export */ "
|
|
16466
|
-
/* harmony export */ "
|
|
16640
|
+
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16641
|
+
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16642
|
+
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16643
|
+
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16644
|
+
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16645
|
+
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16646
|
+
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16647
|
+
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16648
|
+
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16649
|
+
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16650
|
+
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16651
|
+
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16467
16652
|
/* harmony export */ "easeCubic": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16468
16653
|
/* harmony export */ "easeCubicIn": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicIn),
|
|
16469
|
-
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16470
16654
|
/* harmony export */ "easeCubicInOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16655
|
+
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16656
|
+
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16657
|
+
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16658
|
+
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut),
|
|
16659
|
+
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16660
|
+
/* harmony export */ "easeExp": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16661
|
+
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16662
|
+
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16663
|
+
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16664
|
+
/* harmony export */ "easeLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_0__.linear),
|
|
16471
16665
|
/* harmony export */ "easePoly": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
16472
16666
|
/* harmony export */ "easePolyIn": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyIn),
|
|
16473
|
-
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
16474
16667
|
/* harmony export */ "easePolyInOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
16668
|
+
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
16669
|
+
/* harmony export */ "easeQuad": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
16670
|
+
/* harmony export */ "easeQuadIn": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadIn),
|
|
16671
|
+
/* harmony export */ "easeQuadInOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
16672
|
+
/* harmony export */ "easeQuadOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadOut),
|
|
16475
16673
|
/* harmony export */ "easeSin": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16476
16674
|
/* harmony export */ "easeSinIn": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinIn),
|
|
16477
|
-
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut),
|
|
16478
16675
|
/* harmony export */ "easeSinInOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16479
|
-
/* harmony export */ "
|
|
16480
|
-
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16481
|
-
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16482
|
-
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16483
|
-
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16484
|
-
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16485
|
-
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16486
|
-
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16487
|
-
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16488
|
-
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16489
|
-
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16490
|
-
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16491
|
-
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16492
|
-
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16493
|
-
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16494
|
-
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16495
|
-
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16496
|
-
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16497
|
-
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16498
|
-
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut)
|
|
16676
|
+
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut)
|
|
16499
16677
|
/* harmony export */ });
|
|
16500
16678
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-ease/src/linear.js");
|
|
16501
16679
|
/* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad.js */ "../../victory-vendor/node_modules/d3-ease/src/quad.js");
|
|
@@ -16575,8 +16753,8 @@ function tpmt(x) {
|
|
|
16575
16753
|
__webpack_require__.r(__webpack_exports__);
|
|
16576
16754
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16577
16755
|
/* harmony export */ "polyIn": () => (/* binding */ polyIn),
|
|
16578
|
-
/* harmony export */ "
|
|
16579
|
-
/* harmony export */ "
|
|
16756
|
+
/* harmony export */ "polyInOut": () => (/* binding */ polyInOut),
|
|
16757
|
+
/* harmony export */ "polyOut": () => (/* binding */ polyOut)
|
|
16580
16758
|
/* harmony export */ });
|
|
16581
16759
|
var exponent = 3;
|
|
16582
16760
|
|
|
@@ -16629,8 +16807,8 @@ var polyInOut = (function custom(e) {
|
|
|
16629
16807
|
__webpack_require__.r(__webpack_exports__);
|
|
16630
16808
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16631
16809
|
/* harmony export */ "quadIn": () => (/* binding */ quadIn),
|
|
16632
|
-
/* harmony export */ "
|
|
16633
|
-
/* harmony export */ "
|
|
16810
|
+
/* harmony export */ "quadInOut": () => (/* binding */ quadInOut),
|
|
16811
|
+
/* harmony export */ "quadOut": () => (/* binding */ quadOut)
|
|
16634
16812
|
/* harmony export */ });
|
|
16635
16813
|
function quadIn(t) {
|
|
16636
16814
|
return t * t;
|
|
@@ -16657,8 +16835,8 @@ function quadInOut(t) {
|
|
|
16657
16835
|
__webpack_require__.r(__webpack_exports__);
|
|
16658
16836
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16659
16837
|
/* harmony export */ "sinIn": () => (/* binding */ sinIn),
|
|
16660
|
-
/* harmony export */ "
|
|
16661
|
-
/* harmony export */ "
|
|
16838
|
+
/* harmony export */ "sinInOut": () => (/* binding */ sinInOut),
|
|
16839
|
+
/* harmony export */ "sinOut": () => (/* binding */ sinOut)
|
|
16662
16840
|
/* harmony export */ });
|
|
16663
16841
|
var pi = Math.PI,
|
|
16664
16842
|
halfPi = pi / 2;
|
|
@@ -16687,9 +16865,9 @@ function sinInOut(t) {
|
|
|
16687
16865
|
"use strict";
|
|
16688
16866
|
__webpack_require__.r(__webpack_exports__);
|
|
16689
16867
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16868
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
16690
16869
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
16691
|
-
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
16692
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
16870
|
+
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
16693
16871
|
/* harmony export */ });
|
|
16694
16872
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-format/src/locale.js");
|
|
16695
16873
|
|
|
@@ -16835,8 +17013,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16835
17013
|
"use strict";
|
|
16836
17014
|
__webpack_require__.r(__webpack_exports__);
|
|
16837
17015
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16838
|
-
/* harmony export */ "
|
|
16839
|
-
/* harmony export */ "
|
|
17016
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
17017
|
+
/* harmony export */ "prefixExponent": () => (/* binding */ prefixExponent)
|
|
16840
17018
|
/* harmony export */ });
|
|
16841
17019
|
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../victory-vendor/node_modules/d3-format/src/formatDecimal.js");
|
|
16842
17020
|
|
|
@@ -16895,8 +17073,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16895
17073
|
"use strict";
|
|
16896
17074
|
__webpack_require__.r(__webpack_exports__);
|
|
16897
17075
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16898
|
-
/* harmony export */ "
|
|
16899
|
-
/* harmony export */ "
|
|
17076
|
+
/* harmony export */ "FormatSpecifier": () => (/* binding */ FormatSpecifier),
|
|
17077
|
+
/* harmony export */ "default": () => (/* binding */ formatSpecifier)
|
|
16900
17078
|
/* harmony export */ });
|
|
16901
17079
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
16902
17080
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
@@ -17378,9 +17556,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17378
17556
|
"use strict";
|
|
17379
17557
|
__webpack_require__.r(__webpack_exports__);
|
|
17380
17558
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17381
|
-
/* harmony export */ "
|
|
17559
|
+
/* harmony export */ "default": () => (/* binding */ nogamma),
|
|
17382
17560
|
/* harmony export */ "gamma": () => (/* binding */ gamma),
|
|
17383
|
-
/* harmony export */ "
|
|
17561
|
+
/* harmony export */ "hue": () => (/* binding */ hue)
|
|
17384
17562
|
/* harmony export */ });
|
|
17385
17563
|
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-vendor/node_modules/d3-interpolate/src/constant.js");
|
|
17386
17564
|
|
|
@@ -17940,10 +18118,10 @@ function constants(x) {
|
|
|
17940
18118
|
"use strict";
|
|
17941
18119
|
__webpack_require__.r(__webpack_exports__);
|
|
17942
18120
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17943
|
-
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
17944
18121
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
17945
|
-
/* harmony export */ "
|
|
17946
|
-
/* harmony export */ "
|
|
18122
|
+
/* harmony export */ "default": () => (/* binding */ continuous),
|
|
18123
|
+
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
18124
|
+
/* harmony export */ "transformer": () => (/* binding */ transformer)
|
|
17947
18125
|
/* harmony export */ });
|
|
17948
18126
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisect.js");
|
|
17949
18127
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -18091,9 +18269,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18091
18269
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18092
18270
|
/* harmony export */ "default": () => (/* binding */ diverging),
|
|
18093
18271
|
/* harmony export */ "divergingLog": () => (/* binding */ divergingLog),
|
|
18094
|
-
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog),
|
|
18095
18272
|
/* harmony export */ "divergingPow": () => (/* binding */ divergingPow),
|
|
18096
|
-
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt)
|
|
18273
|
+
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt),
|
|
18274
|
+
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog)
|
|
18097
18275
|
/* harmony export */ });
|
|
18098
18276
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/piecewise.js");
|
|
18099
18277
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -18268,32 +18446,32 @@ function identity(domain) {
|
|
|
18268
18446
|
__webpack_require__.r(__webpack_exports__);
|
|
18269
18447
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18270
18448
|
/* harmony export */ "scaleBand": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
18271
|
-
/* harmony export */ "
|
|
18449
|
+
/* harmony export */ "scaleDiverging": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
18450
|
+
/* harmony export */ "scaleDivergingLog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingLog),
|
|
18451
|
+
/* harmony export */ "scaleDivergingPow": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingPow),
|
|
18452
|
+
/* harmony export */ "scaleDivergingSqrt": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSqrt),
|
|
18453
|
+
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18272
18454
|
/* harmony export */ "scaleIdentity": () => (/* reexport safe */ _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
18455
|
+
/* harmony export */ "scaleImplicit": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__.implicit),
|
|
18273
18456
|
/* harmony export */ "scaleLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
18274
18457
|
/* harmony export */ "scaleLog": () => (/* reexport safe */ _log_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
18275
|
-
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18276
18458
|
/* harmony export */ "scaleOrdinal": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
18277
|
-
/* harmony export */ "
|
|
18459
|
+
/* harmony export */ "scalePoint": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__.point),
|
|
18278
18460
|
/* harmony export */ "scalePow": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
18279
|
-
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18280
|
-
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18281
18461
|
/* harmony export */ "scaleQuantile": () => (/* reexport safe */ _quantile_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
18282
18462
|
/* harmony export */ "scaleQuantize": () => (/* reexport safe */ _quantize_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
18283
|
-
/* harmony export */ "
|
|
18284
|
-
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18285
|
-
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18463
|
+
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18286
18464
|
/* harmony export */ "scaleSequential": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
18287
18465
|
/* harmony export */ "scaleSequentialLog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialLog),
|
|
18288
18466
|
/* harmony export */ "scaleSequentialPow": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialPow),
|
|
18467
|
+
/* harmony export */ "scaleSequentialQuantile": () => (/* reexport safe */ _sequentialQuantile_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
18289
18468
|
/* harmony export */ "scaleSequentialSqrt": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSqrt),
|
|
18290
18469
|
/* harmony export */ "scaleSequentialSymlog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSymlog),
|
|
18291
|
-
/* harmony export */ "
|
|
18292
|
-
/* harmony export */ "
|
|
18293
|
-
/* harmony export */ "
|
|
18294
|
-
/* harmony export */ "
|
|
18295
|
-
/* harmony export */ "
|
|
18296
|
-
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18470
|
+
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18471
|
+
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18472
|
+
/* harmony export */ "scaleThreshold": () => (/* reexport safe */ _threshold_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
18473
|
+
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18474
|
+
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18297
18475
|
/* harmony export */ "tickFormat": () => (/* reexport safe */ _tickFormat_js__WEBPACK_IMPORTED_MODULE_16__["default"])
|
|
18298
18476
|
/* harmony export */ });
|
|
18299
18477
|
/* harmony import */ var _band_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band.js */ "../../victory-vendor/node_modules/d3-scale/src/band.js");
|
|
@@ -18359,8 +18537,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18359
18537
|
"use strict";
|
|
18360
18538
|
__webpack_require__.r(__webpack_exports__);
|
|
18361
18539
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18362
|
-
/* harmony export */ "
|
|
18363
|
-
/* harmony export */ "
|
|
18540
|
+
/* harmony export */ "initInterpolator": () => (/* binding */ initInterpolator),
|
|
18541
|
+
/* harmony export */ "initRange": () => (/* binding */ initRange)
|
|
18364
18542
|
/* harmony export */ });
|
|
18365
18543
|
function initRange(domain, range) {
|
|
18366
18544
|
switch (arguments.length) {
|
|
@@ -18401,8 +18579,8 @@ function initInterpolator(domain, interpolator) {
|
|
|
18401
18579
|
"use strict";
|
|
18402
18580
|
__webpack_require__.r(__webpack_exports__);
|
|
18403
18581
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18404
|
-
/* harmony export */ "
|
|
18405
|
-
/* harmony export */ "
|
|
18582
|
+
/* harmony export */ "default": () => (/* binding */ linear),
|
|
18583
|
+
/* harmony export */ "linearish": () => (/* binding */ linearish)
|
|
18406
18584
|
/* harmony export */ });
|
|
18407
18585
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
18408
18586
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -18491,8 +18669,8 @@ function linear() {
|
|
|
18491
18669
|
"use strict";
|
|
18492
18670
|
__webpack_require__.r(__webpack_exports__);
|
|
18493
18671
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18494
|
-
/* harmony export */ "
|
|
18495
|
-
/* harmony export */ "
|
|
18672
|
+
/* harmony export */ "default": () => (/* binding */ log),
|
|
18673
|
+
/* harmony export */ "loggish": () => (/* binding */ loggish)
|
|
18496
18674
|
/* harmony export */ });
|
|
18497
18675
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
18498
18676
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../victory-vendor/node_modules/d3-format/src/formatSpecifier.js");
|
|
@@ -18704,8 +18882,8 @@ function number(x) {
|
|
|
18704
18882
|
"use strict";
|
|
18705
18883
|
__webpack_require__.r(__webpack_exports__);
|
|
18706
18884
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18707
|
-
/* harmony export */ "
|
|
18708
|
-
/* harmony export */ "
|
|
18885
|
+
/* harmony export */ "default": () => (/* binding */ ordinal),
|
|
18886
|
+
/* harmony export */ "implicit": () => (/* binding */ implicit)
|
|
18709
18887
|
/* harmony export */ });
|
|
18710
18888
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/internmap/src/index.js");
|
|
18711
18889
|
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init.js */ "../../victory-vendor/node_modules/d3-scale/src/init.js");
|
|
@@ -18768,8 +18946,8 @@ function ordinal() {
|
|
|
18768
18946
|
"use strict";
|
|
18769
18947
|
__webpack_require__.r(__webpack_exports__);
|
|
18770
18948
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18771
|
-
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
18772
18949
|
/* harmony export */ "default": () => (/* binding */ pow),
|
|
18950
|
+
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
18773
18951
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt)
|
|
18774
18952
|
/* harmony export */ });
|
|
18775
18953
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
@@ -19073,9 +19251,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19073
19251
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
19074
19252
|
/* harmony export */ "default": () => (/* binding */ sequential),
|
|
19075
19253
|
/* harmony export */ "sequentialLog": () => (/* binding */ sequentialLog),
|
|
19076
|
-
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog),
|
|
19077
19254
|
/* harmony export */ "sequentialPow": () => (/* binding */ sequentialPow),
|
|
19078
|
-
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt)
|
|
19255
|
+
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt),
|
|
19256
|
+
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog)
|
|
19079
19257
|
/* harmony export */ });
|
|
19080
19258
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
19081
19259
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/round.js");
|
|
@@ -19263,8 +19441,8 @@ function sequentialQuantile() {
|
|
|
19263
19441
|
"use strict";
|
|
19264
19442
|
__webpack_require__.r(__webpack_exports__);
|
|
19265
19443
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19266
|
-
/* harmony export */ "
|
|
19267
|
-
/* harmony export */ "
|
|
19444
|
+
/* harmony export */ "default": () => (/* binding */ symlog),
|
|
19445
|
+
/* harmony export */ "symlogish": () => (/* binding */ symlogish)
|
|
19268
19446
|
/* harmony export */ });
|
|
19269
19447
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
19270
19448
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -19556,11 +19734,11 @@ function utcTime() {
|
|
|
19556
19734
|
"use strict";
|
|
19557
19735
|
__webpack_require__.r(__webpack_exports__);
|
|
19558
19736
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19737
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
19559
19738
|
/* harmony export */ "timeFormat": () => (/* binding */ timeFormat),
|
|
19560
19739
|
/* harmony export */ "timeParse": () => (/* binding */ timeParse),
|
|
19561
19740
|
/* harmony export */ "utcFormat": () => (/* binding */ utcFormat),
|
|
19562
|
-
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
19563
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
19741
|
+
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
19564
19742
|
/* harmony export */ });
|
|
19565
19743
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-time-format/src/locale.js");
|
|
19566
19744
|
|
|
@@ -20310,8 +20488,8 @@ function formatUnixTimestampSeconds(d) {
|
|
|
20310
20488
|
"use strict";
|
|
20311
20489
|
__webpack_require__.r(__webpack_exports__);
|
|
20312
20490
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20313
|
-
/* harmony export */ "
|
|
20314
|
-
/* harmony export */ "
|
|
20491
|
+
/* harmony export */ "days": () => (/* binding */ days),
|
|
20492
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20315
20493
|
/* harmony export */ });
|
|
20316
20494
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
20317
20495
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -20340,12 +20518,12 @@ var days = day.range;
|
|
|
20340
20518
|
"use strict";
|
|
20341
20519
|
__webpack_require__.r(__webpack_exports__);
|
|
20342
20520
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20343
|
-
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
20344
|
-
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
20345
|
-
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
20346
20521
|
/* harmony export */ "durationDay": () => (/* binding */ durationDay),
|
|
20347
|
-
/* harmony export */ "
|
|
20522
|
+
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
20523
|
+
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
20348
20524
|
/* harmony export */ "durationMonth": () => (/* binding */ durationMonth),
|
|
20525
|
+
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
20526
|
+
/* harmony export */ "durationWeek": () => (/* binding */ durationWeek),
|
|
20349
20527
|
/* harmony export */ "durationYear": () => (/* binding */ durationYear)
|
|
20350
20528
|
/* harmony export */ });
|
|
20351
20529
|
const durationSecond = 1000;
|
|
@@ -20627,10 +20805,10 @@ var seconds = second.range;
|
|
|
20627
20805
|
"use strict";
|
|
20628
20806
|
__webpack_require__.r(__webpack_exports__);
|
|
20629
20807
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20630
|
-
/* harmony export */ "
|
|
20631
|
-
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
20808
|
+
/* harmony export */ "timeTickInterval": () => (/* binding */ timeTickInterval),
|
|
20632
20809
|
/* harmony export */ "timeTicks": () => (/* binding */ timeTicks),
|
|
20633
|
-
/* harmony export */ "
|
|
20810
|
+
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
20811
|
+
/* harmony export */ "utcTicks": () => (/* binding */ utcTicks)
|
|
20634
20812
|
/* harmony export */ });
|
|
20635
20813
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisector.js");
|
|
20636
20814
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
@@ -20857,20 +21035,20 @@ var utcMonths = utcMonth.range;
|
|
|
20857
21035
|
"use strict";
|
|
20858
21036
|
__webpack_require__.r(__webpack_exports__);
|
|
20859
21037
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20860
|
-
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
20861
|
-
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
20862
|
-
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
20863
|
-
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
20864
|
-
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
20865
21038
|
/* harmony export */ "utcFriday": () => (/* binding */ utcFriday),
|
|
21039
|
+
/* harmony export */ "utcFridays": () => (/* binding */ utcFridays),
|
|
21040
|
+
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
21041
|
+
/* harmony export */ "utcMondays": () => (/* binding */ utcMondays),
|
|
20866
21042
|
/* harmony export */ "utcSaturday": () => (/* binding */ utcSaturday),
|
|
21043
|
+
/* harmony export */ "utcSaturdays": () => (/* binding */ utcSaturdays),
|
|
21044
|
+
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
20867
21045
|
/* harmony export */ "utcSundays": () => (/* binding */ utcSundays),
|
|
20868
|
-
/* harmony export */ "
|
|
20869
|
-
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
20870
|
-
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays),
|
|
21046
|
+
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
20871
21047
|
/* harmony export */ "utcThursdays": () => (/* binding */ utcThursdays),
|
|
20872
|
-
/* harmony export */ "
|
|
20873
|
-
/* harmony export */ "
|
|
21048
|
+
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
21049
|
+
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
21050
|
+
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
21051
|
+
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays)
|
|
20874
21052
|
/* harmony export */ });
|
|
20875
21053
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
20876
21054
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -20959,20 +21137,20 @@ var utcYears = utcYear.range;
|
|
|
20959
21137
|
"use strict";
|
|
20960
21138
|
__webpack_require__.r(__webpack_exports__);
|
|
20961
21139
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20962
|
-
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
20963
|
-
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
20964
|
-
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
20965
|
-
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
20966
|
-
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
20967
21140
|
/* harmony export */ "friday": () => (/* binding */ friday),
|
|
21141
|
+
/* harmony export */ "fridays": () => (/* binding */ fridays),
|
|
21142
|
+
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
21143
|
+
/* harmony export */ "mondays": () => (/* binding */ mondays),
|
|
20968
21144
|
/* harmony export */ "saturday": () => (/* binding */ saturday),
|
|
21145
|
+
/* harmony export */ "saturdays": () => (/* binding */ saturdays),
|
|
21146
|
+
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
20969
21147
|
/* harmony export */ "sundays": () => (/* binding */ sundays),
|
|
20970
|
-
/* harmony export */ "
|
|
20971
|
-
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
20972
|
-
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays),
|
|
21148
|
+
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
20973
21149
|
/* harmony export */ "thursdays": () => (/* binding */ thursdays),
|
|
20974
|
-
/* harmony export */ "
|
|
20975
|
-
/* harmony export */ "
|
|
21150
|
+
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
21151
|
+
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
21152
|
+
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
21153
|
+
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays)
|
|
20976
21154
|
/* harmony export */ });
|
|
20977
21155
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
20978
21156
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21061,8 +21239,8 @@ var years = year.range;
|
|
|
21061
21239
|
"use strict";
|
|
21062
21240
|
__webpack_require__.r(__webpack_exports__);
|
|
21063
21241
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21064
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
21065
21242
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
21243
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
21066
21244
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
21067
21245
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
21068
21246
|
/* harmony export */ });
|