victory-bar 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-bar.js +1125 -998
- package/dist/victory-bar.min.js +1 -1
- package/es/bar-helper-methods.js +2 -1
- package/es/bar.js +2 -1
- package/es/geometry-helper-methods.js +2 -1
- package/es/helper-methods.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -1
- package/es/path-helper-methods.js +2 -1
- package/es/v37/victory-bar.d.ts +23 -0
- package/es/v37/victory-bar.js +98 -0
- package/es/v37/victory-bar.stories.d.ts +13 -0
- package/es/v37/victory-bar.stories.js +18 -0
- package/es/victory-bar-beta.d.ts +23 -0
- package/es/victory-bar-beta.js +102 -0
- package/es/victory-bar.js +22 -29
- package/lib/bar-helper-methods.js +2 -1
- package/lib/bar.js +2 -1
- package/lib/geometry-helper-methods.js +2 -1
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/path-helper-methods.js +2 -1
- package/lib/v37/victory-bar.d.ts +23 -0
- package/lib/v37/victory-bar.js +115 -0
- package/lib/v37/victory-bar.stories.d.ts +13 -0
- package/lib/v37/victory-bar.stories.js +41 -0
- package/lib/victory-bar-beta.d.ts +23 -0
- package/lib/victory-bar-beta.js +122 -0
- package/lib/victory-bar.js +22 -30
- package/package.json +6 -6
- package/src/bar-helper-methods.js +4 -4
- package/src/bar.js +7 -7
- package/src/geometry-helper-methods.js +5 -5
- package/src/helper-methods.js +9 -9
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
- package/src/path-helper-methods.js +18 -18
- package/src/v37/victory-bar.stories.tsx +25 -0
- package/src/v37/victory-bar.tsx +96 -0
- package/src/victory-bar-beta.tsx +127 -0
- package/src/victory-bar.js +18 -19
package/dist/victory-bar.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryBar"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryBar"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -129,15 +129,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
129
129
|
/* harmony export */ });
|
|
130
130
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
131
131
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
132
|
-
/* harmony import */ var
|
|
133
|
-
/* harmony import */ var
|
|
134
|
-
/* harmony import */ var
|
|
135
|
-
/* harmony import */ var
|
|
136
|
-
/* harmony import */ var
|
|
137
|
-
/* harmony import */ var
|
|
132
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
133
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_6__);
|
|
134
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
135
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
136
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
137
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
138
138
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
139
|
-
/* harmony import */ var
|
|
140
|
-
/* harmony import */ var
|
|
139
|
+
/* harmony import */ var _bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bar-helper-methods */ "./bar-helper-methods.js");
|
|
140
|
+
/* harmony import */ var _path_helper_methods__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./path-helper-methods */ "./path-helper-methods.js");
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
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; }
|
|
@@ -165,18 +165,18 @@ var evaluateProps = function (props) {
|
|
|
165
165
|
* `id`
|
|
166
166
|
* `tabIndex`
|
|
167
167
|
*/
|
|
168
|
-
var style = (0,
|
|
169
|
-
var barWidth = (0,
|
|
168
|
+
var style = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getStyle)(props.style, props);
|
|
169
|
+
var barWidth = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getBarWidth)(props.barWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
170
170
|
style: style
|
|
171
171
|
}));
|
|
172
|
-
var cornerRadius = (0,
|
|
172
|
+
var cornerRadius = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getCornerRadius)(props.cornerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
173
173
|
style: style,
|
|
174
174
|
barWidth: barWidth
|
|
175
175
|
}));
|
|
176
|
-
var ariaLabel =
|
|
177
|
-
var desc =
|
|
178
|
-
var id =
|
|
179
|
-
var tabIndex =
|
|
176
|
+
var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.ariaLabel, props);
|
|
177
|
+
var desc = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.desc, props);
|
|
178
|
+
var id = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.id, props);
|
|
179
|
+
var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.tabIndex, props);
|
|
180
180
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
181
181
|
ariaLabel: ariaLabel,
|
|
182
182
|
style: style,
|
|
@@ -196,9 +196,9 @@ var Bar = function (props) {
|
|
|
196
196
|
style = _props.style,
|
|
197
197
|
barWidth = _props.barWidth,
|
|
198
198
|
cornerRadius = _props.cornerRadius;
|
|
199
|
-
var path = polar ? (0,
|
|
199
|
+
var path = polar ? (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getPolarBarPath)(props, cornerRadius) : (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getBarPath)(props, barWidth, cornerRadius);
|
|
200
200
|
var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;
|
|
201
|
-
return /*#__PURE__*/
|
|
201
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, _objectSpread(_objectSpread({}, props.events), {}, {
|
|
202
202
|
"aria-label": props.ariaLabel,
|
|
203
203
|
style: style,
|
|
204
204
|
d: path,
|
|
@@ -213,30 +213,30 @@ var Bar = function (props) {
|
|
|
213
213
|
}));
|
|
214
214
|
};
|
|
215
215
|
|
|
216
|
-
Bar.propTypes = _objectSpread(_objectSpread({},
|
|
217
|
-
alignment:
|
|
218
|
-
barRatio: (
|
|
219
|
-
barWidth:
|
|
220
|
-
cornerRadius:
|
|
221
|
-
top:
|
|
222
|
-
topLeft:
|
|
223
|
-
topRight:
|
|
224
|
-
bottom:
|
|
225
|
-
bottomLeft:
|
|
226
|
-
bottomRight:
|
|
216
|
+
Bar.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.CommonProps.primitiveProps), {}, {
|
|
217
|
+
alignment: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOf(["start", "middle", "end"]),
|
|
218
|
+
barRatio: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
219
|
+
barWidth: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
220
|
+
cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func), prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
221
|
+
top: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
222
|
+
topLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
223
|
+
topRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
224
|
+
bottom: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
225
|
+
bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)]),
|
|
226
|
+
bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_6___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_6___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func)])
|
|
227
227
|
})]),
|
|
228
|
-
datum: (
|
|
229
|
-
getPath: (
|
|
230
|
-
horizontal: (
|
|
231
|
-
pathComponent: (
|
|
232
|
-
width: (
|
|
233
|
-
x: (
|
|
234
|
-
y: (
|
|
235
|
-
y0: (
|
|
228
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
229
|
+
getPath: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
230
|
+
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
231
|
+
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().element),
|
|
232
|
+
width: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
233
|
+
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
234
|
+
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
235
|
+
y0: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
236
236
|
});
|
|
237
237
|
Bar.defaultProps = {
|
|
238
238
|
defaultBarWidth: 8,
|
|
239
|
-
pathComponent: /*#__PURE__*/
|
|
239
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Path, null),
|
|
240
240
|
role: "presentation",
|
|
241
241
|
shapeRendering: "auto"
|
|
242
242
|
};
|
|
@@ -553,12 +553,12 @@ var getBaseProps = function (props, fallbackProps) {
|
|
|
553
553
|
"use strict";
|
|
554
554
|
__webpack_require__.r(__webpack_exports__);
|
|
555
555
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
556
|
+
/* harmony export */ "getBarPath": () => (/* binding */ getBarPath),
|
|
556
557
|
/* harmony export */ "getCustomBarPath": () => (/* binding */ getCustomBarPath),
|
|
557
|
-
/* harmony export */ "getVerticalBarPath": () => (/* binding */ getVerticalBarPath),
|
|
558
558
|
/* harmony export */ "getHorizontalBarPath": () => (/* binding */ getHorizontalBarPath),
|
|
559
|
-
/* harmony export */ "
|
|
560
|
-
/* harmony export */ "
|
|
561
|
-
/* harmony export */ "
|
|
559
|
+
/* harmony export */ "getPolarBarPath": () => (/* binding */ getPolarBarPath),
|
|
560
|
+
/* harmony export */ "getVerticalBarPath": () => (/* binding */ getVerticalBarPath),
|
|
561
|
+
/* harmony export */ "getVerticalPolarBarPath": () => (/* binding */ getVerticalPolarBarPath)
|
|
562
562
|
/* harmony export */ });
|
|
563
563
|
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/node_modules/d3-shape/src/arc.js");
|
|
564
564
|
/* harmony import */ var _geometry_helper_methods__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./geometry-helper-methods */ "./geometry-helper-methods.js");
|
|
@@ -1062,15 +1062,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1062
1062
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1063
1063
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1064
1064
|
/* harmony export */ });
|
|
1065
|
-
/* harmony import */ var
|
|
1066
|
-
/* harmony import */ var
|
|
1067
|
-
/* harmony import */ var
|
|
1068
|
-
/* harmony import */ var
|
|
1065
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
1066
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
1067
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
1068
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
1069
1069
|
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.js");
|
|
1070
1070
|
/* harmony import */ var _bar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./bar */ "./bar.js");
|
|
1071
|
-
/* harmony import */ var
|
|
1072
|
-
/* harmony import */ var
|
|
1073
|
-
/* harmony import */ var
|
|
1071
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
1072
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
1073
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
1074
1074
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
1075
1075
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
1076
1076
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-theme/victory-theme.js");
|
|
@@ -1081,6 +1081,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
1081
1081
|
|
|
1082
1082
|
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; }
|
|
1083
1083
|
|
|
1084
|
+
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; }
|
|
1085
|
+
|
|
1084
1086
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1085
1087
|
|
|
1086
1088
|
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); } }
|
|
@@ -1089,7 +1091,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
1089
1091
|
|
|
1090
1092
|
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); }
|
|
1091
1093
|
|
|
1092
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
1094
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
1093
1095
|
|
|
1094
1096
|
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); }; }
|
|
1095
1097
|
|
|
@@ -1099,9 +1101,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
1099
1101
|
|
|
1100
1102
|
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; } }
|
|
1101
1103
|
|
|
1102
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1103
|
-
|
|
1104
|
-
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; }
|
|
1104
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
1105
1105
|
|
|
1106
1106
|
|
|
1107
1107
|
|
|
@@ -1149,28 +1149,25 @@ var VictoryBar = /*#__PURE__*/function (_React$Component) {
|
|
|
1149
1149
|
value: function render() {
|
|
1150
1150
|
var animationWhitelist = VictoryBar.animationWhitelist,
|
|
1151
1151
|
role = VictoryBar.role;
|
|
1152
|
-
var props =
|
|
1152
|
+
var props = victory_core__WEBPACK_IMPORTED_MODULE_1__.modifyProps(this.props, fallbackProps, role);
|
|
1153
1153
|
|
|
1154
1154
|
if (this.shouldAnimate()) {
|
|
1155
1155
|
return this.animateComponent(props, animationWhitelist);
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
1158
|
var children = this.renderData(props);
|
|
1159
|
-
var
|
|
1160
|
-
return
|
|
1159
|
+
var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
|
|
1160
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_2__.withSafeUserProps(component, props);
|
|
1161
1161
|
}
|
|
1162
1162
|
}]);
|
|
1163
1163
|
|
|
1164
1164
|
return VictoryBar;
|
|
1165
|
-
}((
|
|
1166
|
-
|
|
1167
|
-
_defineProperty(VictoryBar, "animationWhitelist", ["data", "domain", "height", "padding", "style", "width"]);
|
|
1168
|
-
|
|
1169
|
-
_defineProperty(VictoryBar, "displayName", "VictoryBar");
|
|
1170
|
-
|
|
1171
|
-
_defineProperty(VictoryBar, "role", "bar");
|
|
1165
|
+
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
1172
1166
|
|
|
1173
|
-
|
|
1167
|
+
VictoryBar.animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
|
|
1168
|
+
VictoryBar.displayName = "VictoryBar";
|
|
1169
|
+
VictoryBar.role = "bar";
|
|
1170
|
+
VictoryBar.defaultTransitions = {
|
|
1174
1171
|
onLoad: {
|
|
1175
1172
|
duration: 2000,
|
|
1176
1173
|
before: function () {
|
|
@@ -1214,49 +1211,44 @@ _defineProperty(VictoryBar, "defaultTransitions", {
|
|
|
1214
1211
|
};
|
|
1215
1212
|
}
|
|
1216
1213
|
}
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)])
|
|
1214
|
+
};
|
|
1215
|
+
VictoryBar.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_3__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_3__.CommonProps.dataProps), {}, {
|
|
1216
|
+
alignment: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["start", "middle", "end"]),
|
|
1217
|
+
barRatio: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
1218
|
+
barWidth: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
|
|
1219
|
+
cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func), prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({
|
|
1220
|
+
top: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
|
|
1221
|
+
topLeft: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
|
|
1222
|
+
topRight: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
|
|
1223
|
+
bottom: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
|
|
1224
|
+
bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
|
|
1225
|
+
bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)])
|
|
1230
1226
|
})]),
|
|
1231
|
-
getPath: (
|
|
1232
|
-
horizontal: (
|
|
1233
|
-
})
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__["default"], null),
|
|
1227
|
+
getPath: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
1228
|
+
horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool)
|
|
1229
|
+
});
|
|
1230
|
+
VictoryBar.defaultProps = {
|
|
1231
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer, null),
|
|
1237
1232
|
data: defaultData,
|
|
1238
|
-
dataComponent: /*#__PURE__*/
|
|
1239
|
-
groupComponent: /*#__PURE__*/
|
|
1233
|
+
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_bar__WEBPACK_IMPORTED_MODULE_6__["default"], null),
|
|
1234
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", {
|
|
1240
1235
|
role: "presentation"
|
|
1241
1236
|
}),
|
|
1242
|
-
labelComponent: /*#__PURE__*/
|
|
1237
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryLabel, null),
|
|
1243
1238
|
samples: 50,
|
|
1244
1239
|
sortOrder: "ascending",
|
|
1245
1240
|
standalone: true,
|
|
1246
|
-
theme: victory_core__WEBPACK_IMPORTED_MODULE_8__
|
|
1247
|
-
}
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
_defineProperty(VictoryBar, "getData", victory_core__WEBPACK_IMPORTED_MODULE_10__.getData);
|
|
1241
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryTheme.grayscale
|
|
1242
|
+
};
|
|
1243
|
+
VictoryBar.getDomain = victory_core__WEBPACK_IMPORTED_MODULE_9__.getDomainWithZero;
|
|
1244
|
+
VictoryBar.getData = victory_core__WEBPACK_IMPORTED_MODULE_10__.getData;
|
|
1252
1245
|
|
|
1253
|
-
|
|
1246
|
+
VictoryBar.getBaseProps = function (props) {
|
|
1254
1247
|
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_11__.getBaseProps)(props, fallbackProps);
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
_defineProperty(VictoryBar, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
|
|
1248
|
+
};
|
|
1258
1249
|
|
|
1259
|
-
|
|
1250
|
+
VictoryBar.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
1251
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_12__.addEvents)(VictoryBar));
|
|
1260
1252
|
|
|
1261
1253
|
/***/ }),
|
|
1262
1254
|
|
|
@@ -6640,7 +6632,7 @@ var printWarning = function() {};
|
|
|
6640
6632
|
if (true) {
|
|
6641
6633
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6642
6634
|
var loggedTypeFailures = {};
|
|
6643
|
-
var has =
|
|
6635
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6644
6636
|
|
|
6645
6637
|
printWarning = function(text) {
|
|
6646
6638
|
var message = 'Warning: ' + text;
|
|
@@ -6652,7 +6644,7 @@ if (true) {
|
|
|
6652
6644
|
// This error was thrown as a convenience so that you can use this stack
|
|
6653
6645
|
// to find the callsite that caused this warning to fire.
|
|
6654
6646
|
throw new Error(message);
|
|
6655
|
-
} catch (x) {}
|
|
6647
|
+
} catch (x) { /**/ }
|
|
6656
6648
|
};
|
|
6657
6649
|
}
|
|
6658
6650
|
|
|
@@ -6681,7 +6673,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
6681
6673
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6682
6674
|
var err = Error(
|
|
6683
6675
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6684
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
6676
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
6677
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6685
6678
|
);
|
|
6686
6679
|
err.name = 'Invariant Violation';
|
|
6687
6680
|
throw err;
|
|
@@ -6748,13 +6741,13 @@ module.exports = checkPropTypes;
|
|
|
6748
6741
|
|
|
6749
6742
|
|
|
6750
6743
|
|
|
6751
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6744
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6752
6745
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6753
6746
|
|
|
6754
6747
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6748
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6755
6749
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
6756
6750
|
|
|
6757
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6758
6751
|
var printWarning = function() {};
|
|
6759
6752
|
|
|
6760
6753
|
if (true) {
|
|
@@ -6855,6 +6848,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6855
6848
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6856
6849
|
var ReactPropTypes = {
|
|
6857
6850
|
array: createPrimitiveTypeChecker('array'),
|
|
6851
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6858
6852
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
6859
6853
|
func: createPrimitiveTypeChecker('function'),
|
|
6860
6854
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -6900,8 +6894,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6900
6894
|
* is prohibitively expensive if they are created too often, such as what
|
|
6901
6895
|
* happens in oneOfType() for any type before the one that matched.
|
|
6902
6896
|
*/
|
|
6903
|
-
function PropTypeError(message) {
|
|
6897
|
+
function PropTypeError(message, data) {
|
|
6904
6898
|
this.message = message;
|
|
6899
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
6905
6900
|
this.stack = '';
|
|
6906
6901
|
}
|
|
6907
6902
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -6936,7 +6931,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6936
6931
|
) {
|
|
6937
6932
|
printWarning(
|
|
6938
6933
|
'You are manually calling a React.PropTypes validation ' +
|
|
6939
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
6934
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6940
6935
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6941
6936
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6942
6937
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -6975,7 +6970,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6975
6970
|
// 'of type `object`'.
|
|
6976
6971
|
var preciseType = getPreciseType(propValue);
|
|
6977
6972
|
|
|
6978
|
-
return new PropTypeError(
|
|
6973
|
+
return new PropTypeError(
|
|
6974
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6975
|
+
{expectedType: expectedType}
|
|
6976
|
+
);
|
|
6979
6977
|
}
|
|
6980
6978
|
return null;
|
|
6981
6979
|
}
|
|
@@ -7119,14 +7117,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7119
7117
|
}
|
|
7120
7118
|
|
|
7121
7119
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7120
|
+
var expectedTypes = [];
|
|
7122
7121
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
7123
7122
|
var checker = arrayOfTypeCheckers[i];
|
|
7124
|
-
|
|
7123
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
7124
|
+
if (checkerResult == null) {
|
|
7125
7125
|
return null;
|
|
7126
7126
|
}
|
|
7127
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
7128
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
7129
|
+
}
|
|
7127
7130
|
}
|
|
7128
|
-
|
|
7129
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
7131
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
7132
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
7130
7133
|
}
|
|
7131
7134
|
return createChainableTypeChecker(validate);
|
|
7132
7135
|
}
|
|
@@ -7141,6 +7144,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7141
7144
|
return createChainableTypeChecker(validate);
|
|
7142
7145
|
}
|
|
7143
7146
|
|
|
7147
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
7148
|
+
return new PropTypeError(
|
|
7149
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
7150
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
7151
|
+
);
|
|
7152
|
+
}
|
|
7153
|
+
|
|
7144
7154
|
function createShapeTypeChecker(shapeTypes) {
|
|
7145
7155
|
function validate(props, propName, componentName, location, propFullName) {
|
|
7146
7156
|
var propValue = props[propName];
|
|
@@ -7150,8 +7160,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7150
7160
|
}
|
|
7151
7161
|
for (var key in shapeTypes) {
|
|
7152
7162
|
var checker = shapeTypes[key];
|
|
7153
|
-
if (
|
|
7154
|
-
|
|
7163
|
+
if (typeof checker !== 'function') {
|
|
7164
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
7155
7165
|
}
|
|
7156
7166
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
7157
7167
|
if (error) {
|
|
@@ -7170,16 +7180,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7170
7180
|
if (propType !== 'object') {
|
|
7171
7181
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
7172
7182
|
}
|
|
7173
|
-
// We need to check all keys in case some are required but missing from
|
|
7174
|
-
// props.
|
|
7183
|
+
// We need to check all keys in case some are required but missing from props.
|
|
7175
7184
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
7176
7185
|
for (var key in allKeys) {
|
|
7177
7186
|
var checker = shapeTypes[key];
|
|
7187
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
7188
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
7189
|
+
}
|
|
7178
7190
|
if (!checker) {
|
|
7179
7191
|
return new PropTypeError(
|
|
7180
7192
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
7181
7193
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
7182
|
-
'\nValid keys: ' +
|
|
7194
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
7183
7195
|
);
|
|
7184
7196
|
}
|
|
7185
7197
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -7348,7 +7360,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7348
7360
|
*/
|
|
7349
7361
|
|
|
7350
7362
|
if (true) {
|
|
7351
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
7363
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
7352
7364
|
|
|
7353
7365
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7354
7366
|
// http://fb.me/prop-types-in-prod
|
|
@@ -7382,115 +7394,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
7382
7394
|
|
|
7383
7395
|
/***/ }),
|
|
7384
7396
|
|
|
7385
|
-
/***/ "../../../node_modules/
|
|
7386
|
-
|
|
7387
|
-
!*** ../../../node_modules/
|
|
7388
|
-
|
|
7397
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
7398
|
+
/*!***************************************************!*\
|
|
7399
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
7400
|
+
\***************************************************/
|
|
7389
7401
|
/***/ ((module) => {
|
|
7390
7402
|
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
var isArray = Array.isArray;
|
|
7395
|
-
var keyList = Object.keys;
|
|
7396
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
7397
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
7398
|
-
|
|
7399
|
-
function equal(a, b) {
|
|
7400
|
-
// fast-deep-equal index.js 2.0.1
|
|
7401
|
-
if (a === b) return true;
|
|
7402
|
-
|
|
7403
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7404
|
-
var arrA = isArray(a)
|
|
7405
|
-
, arrB = isArray(b)
|
|
7406
|
-
, i
|
|
7407
|
-
, length
|
|
7408
|
-
, key;
|
|
7409
|
-
|
|
7410
|
-
if (arrA && arrB) {
|
|
7411
|
-
length = a.length;
|
|
7412
|
-
if (length != b.length) return false;
|
|
7413
|
-
for (i = length; i-- !== 0;)
|
|
7414
|
-
if (!equal(a[i], b[i])) return false;
|
|
7415
|
-
return true;
|
|
7416
|
-
}
|
|
7417
|
-
|
|
7418
|
-
if (arrA != arrB) return false;
|
|
7419
|
-
|
|
7420
|
-
var dateA = a instanceof Date
|
|
7421
|
-
, dateB = b instanceof Date;
|
|
7422
|
-
if (dateA != dateB) return false;
|
|
7423
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
7424
|
-
|
|
7425
|
-
var regexpA = a instanceof RegExp
|
|
7426
|
-
, regexpB = b instanceof RegExp;
|
|
7427
|
-
if (regexpA != regexpB) return false;
|
|
7428
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
7429
|
-
|
|
7430
|
-
var keys = keyList(a);
|
|
7431
|
-
length = keys.length;
|
|
7432
|
-
|
|
7433
|
-
if (length !== keyList(b).length)
|
|
7434
|
-
return false;
|
|
7435
|
-
|
|
7436
|
-
for (i = length; i-- !== 0;)
|
|
7437
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
7438
|
-
// end fast-deep-equal
|
|
7439
|
-
|
|
7440
|
-
// start react-fast-compare
|
|
7441
|
-
// custom handling for DOM elements
|
|
7442
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
7443
|
-
return a === b;
|
|
7444
|
-
|
|
7445
|
-
// custom handling for React
|
|
7446
|
-
for (i = length; i-- !== 0;) {
|
|
7447
|
-
key = keys[i];
|
|
7448
|
-
if (key === '_owner' && a.$$typeof) {
|
|
7449
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
7450
|
-
// _owner contains circular references
|
|
7451
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
7452
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
7453
|
-
continue;
|
|
7454
|
-
} else {
|
|
7455
|
-
// all other properties should be traversed as usual
|
|
7456
|
-
if (!equal(a[key], b[key])) return false;
|
|
7457
|
-
}
|
|
7458
|
-
}
|
|
7459
|
-
// end react-fast-compare
|
|
7460
|
-
|
|
7461
|
-
// fast-deep-equal index.js 2.0.1
|
|
7462
|
-
return true;
|
|
7463
|
-
}
|
|
7464
|
-
|
|
7465
|
-
return a !== a && b !== b;
|
|
7466
|
-
}
|
|
7467
|
-
// end fast-deep-equal
|
|
7468
|
-
|
|
7469
|
-
module.exports = function exportedEqual(a, b) {
|
|
7470
|
-
try {
|
|
7471
|
-
return equal(a, b);
|
|
7472
|
-
} catch (error) {
|
|
7473
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
7474
|
-
// warn on circular references, don't crash
|
|
7475
|
-
// browsers give this different errors name and messages:
|
|
7476
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7477
|
-
// firefox: "InternalError", too much recursion"
|
|
7478
|
-
// edge: "Error", "Out of stack space"
|
|
7479
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
7480
|
-
return false;
|
|
7481
|
-
}
|
|
7482
|
-
// some other error. we should definitely know about these
|
|
7483
|
-
throw error;
|
|
7484
|
-
}
|
|
7485
|
-
};
|
|
7403
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
7486
7404
|
|
|
7487
7405
|
|
|
7488
7406
|
/***/ }),
|
|
7489
7407
|
|
|
7490
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
7491
|
-
|
|
7492
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
7493
|
-
|
|
7408
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
7409
|
+
/*!******************************************************************************************!*\
|
|
7410
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7411
|
+
\******************************************************************************************/
|
|
7494
7412
|
/***/ ((__unused_webpack_module, exports) => {
|
|
7495
7413
|
|
|
7496
7414
|
"use strict";
|
|
@@ -7679,20 +7597,164 @@ exports.typeOf = typeOf;
|
|
|
7679
7597
|
|
|
7680
7598
|
/***/ }),
|
|
7681
7599
|
|
|
7682
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
7683
|
-
|
|
7684
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
7685
|
-
|
|
7600
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
7601
|
+
/*!***********************************************************************!*\
|
|
7602
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
7603
|
+
\***********************************************************************/
|
|
7686
7604
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7687
7605
|
|
|
7688
7606
|
"use strict";
|
|
7689
7607
|
|
|
7690
7608
|
|
|
7691
7609
|
if (false) {} else {
|
|
7692
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
7610
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
7693
7611
|
}
|
|
7694
7612
|
|
|
7695
7613
|
|
|
7614
|
+
/***/ }),
|
|
7615
|
+
|
|
7616
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
7617
|
+
/*!*********************************************************!*\
|
|
7618
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
7619
|
+
\*********************************************************/
|
|
7620
|
+
/***/ ((module) => {
|
|
7621
|
+
|
|
7622
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7623
|
+
|
|
7624
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
7625
|
+
var hasMap = typeof Map === 'function';
|
|
7626
|
+
var hasSet = typeof Set === 'function';
|
|
7627
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7628
|
+
|
|
7629
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7630
|
+
|
|
7631
|
+
function equal(a, b) {
|
|
7632
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7633
|
+
if (a === b) return true;
|
|
7634
|
+
|
|
7635
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7636
|
+
if (a.constructor !== b.constructor) return false;
|
|
7637
|
+
|
|
7638
|
+
var length, i, keys;
|
|
7639
|
+
if (Array.isArray(a)) {
|
|
7640
|
+
length = a.length;
|
|
7641
|
+
if (length != b.length) return false;
|
|
7642
|
+
for (i = length; i-- !== 0;)
|
|
7643
|
+
if (!equal(a[i], b[i])) return false;
|
|
7644
|
+
return true;
|
|
7645
|
+
}
|
|
7646
|
+
|
|
7647
|
+
// START: Modifications:
|
|
7648
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7649
|
+
// to co-exist with es5.
|
|
7650
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7651
|
+
// Basically, take:
|
|
7652
|
+
//
|
|
7653
|
+
// ```js
|
|
7654
|
+
// for (i of a.entries())
|
|
7655
|
+
// if (!b.has(i[0])) return false;
|
|
7656
|
+
// ```
|
|
7657
|
+
//
|
|
7658
|
+
// ... and convert to:
|
|
7659
|
+
//
|
|
7660
|
+
// ```js
|
|
7661
|
+
// it = a.entries();
|
|
7662
|
+
// while (!(i = it.next()).done)
|
|
7663
|
+
// if (!b.has(i.value[0])) return false;
|
|
7664
|
+
// ```
|
|
7665
|
+
//
|
|
7666
|
+
// **Note**: `i` access switches to `i.value`.
|
|
7667
|
+
var it;
|
|
7668
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7669
|
+
if (a.size !== b.size) return false;
|
|
7670
|
+
it = a.entries();
|
|
7671
|
+
while (!(i = it.next()).done)
|
|
7672
|
+
if (!b.has(i.value[0])) return false;
|
|
7673
|
+
it = a.entries();
|
|
7674
|
+
while (!(i = it.next()).done)
|
|
7675
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7676
|
+
return true;
|
|
7677
|
+
}
|
|
7678
|
+
|
|
7679
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7680
|
+
if (a.size !== b.size) return false;
|
|
7681
|
+
it = a.entries();
|
|
7682
|
+
while (!(i = it.next()).done)
|
|
7683
|
+
if (!b.has(i.value[0])) return false;
|
|
7684
|
+
return true;
|
|
7685
|
+
}
|
|
7686
|
+
// END: Modifications
|
|
7687
|
+
|
|
7688
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7689
|
+
length = a.length;
|
|
7690
|
+
if (length != b.length) return false;
|
|
7691
|
+
for (i = length; i-- !== 0;)
|
|
7692
|
+
if (a[i] !== b[i]) return false;
|
|
7693
|
+
return true;
|
|
7694
|
+
}
|
|
7695
|
+
|
|
7696
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7697
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7698
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7699
|
+
|
|
7700
|
+
keys = Object.keys(a);
|
|
7701
|
+
length = keys.length;
|
|
7702
|
+
if (length !== Object.keys(b).length) return false;
|
|
7703
|
+
|
|
7704
|
+
for (i = length; i-- !== 0;)
|
|
7705
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7706
|
+
// END: fast-deep-equal
|
|
7707
|
+
|
|
7708
|
+
// START: react-fast-compare
|
|
7709
|
+
// custom handling for DOM elements
|
|
7710
|
+
if (hasElementType && a instanceof Element) return false;
|
|
7711
|
+
|
|
7712
|
+
// custom handling for React/Preact
|
|
7713
|
+
for (i = length; i-- !== 0;) {
|
|
7714
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7715
|
+
// React-specific: avoid traversing React elements' _owner
|
|
7716
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7717
|
+
// __v = $_original / $_vnode
|
|
7718
|
+
// __o = $_owner
|
|
7719
|
+
// These properties contain circular references and are not needed when
|
|
7720
|
+
// comparing the actual elements (and not their owners)
|
|
7721
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7722
|
+
|
|
7723
|
+
continue;
|
|
7724
|
+
}
|
|
7725
|
+
|
|
7726
|
+
// all other properties should be traversed as usual
|
|
7727
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7728
|
+
}
|
|
7729
|
+
// END: react-fast-compare
|
|
7730
|
+
|
|
7731
|
+
// START: fast-deep-equal
|
|
7732
|
+
return true;
|
|
7733
|
+
}
|
|
7734
|
+
|
|
7735
|
+
return a !== a && b !== b;
|
|
7736
|
+
}
|
|
7737
|
+
// end fast-deep-equal
|
|
7738
|
+
|
|
7739
|
+
module.exports = function isEqual(a, b) {
|
|
7740
|
+
try {
|
|
7741
|
+
return equal(a, b);
|
|
7742
|
+
} catch (error) {
|
|
7743
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7744
|
+
// warn on circular references, don't crash
|
|
7745
|
+
// browsers give this different errors name and messages:
|
|
7746
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7747
|
+
// firefox: "InternalError", too much recursion"
|
|
7748
|
+
// edge: "Error", "Out of stack space"
|
|
7749
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7750
|
+
return false;
|
|
7751
|
+
}
|
|
7752
|
+
// some other error. we should definitely know about these
|
|
7753
|
+
throw error;
|
|
7754
|
+
}
|
|
7755
|
+
};
|
|
7756
|
+
|
|
7757
|
+
|
|
7696
7758
|
/***/ }),
|
|
7697
7759
|
|
|
7698
7760
|
/***/ "../../victory-core/es/victory-animation/util.js":
|
|
@@ -7704,11 +7766,11 @@ if (false) {} else {
|
|
|
7704
7766
|
"use strict";
|
|
7705
7767
|
__webpack_require__.r(__webpack_exports__);
|
|
7706
7768
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7707
|
-
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
7708
|
-
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
7709
7769
|
/* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
|
|
7770
|
+
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
7710
7771
|
/* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
|
|
7711
7772
|
/* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
|
|
7773
|
+
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
7712
7774
|
/* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
|
|
7713
7775
|
/* harmony export */ });
|
|
7714
7776
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
|
|
@@ -7753,7 +7815,7 @@ var isInterpolatable = function (obj) {
|
|
|
7753
7815
|
// component is only going to call the function (in which case it's
|
|
7754
7816
|
// safely interpolatable) or if it's going to access special properties
|
|
7755
7817
|
// (in which case our function generated from `interpolateFunction` will
|
|
7756
|
-
// most likely cause an error. We could check for enumerable properties
|
|
7818
|
+
// most likely cause an error). We could check for enumerable properties
|
|
7757
7819
|
// on the function object here to see if it's a "plain" function, but
|
|
7758
7820
|
// let's just require that components prevent such function props from
|
|
7759
7821
|
// being animated in the first place.
|
|
@@ -7805,7 +7867,7 @@ var interpolateFunction = function (a, b) {
|
|
|
7805
7867
|
}
|
|
7806
7868
|
|
|
7807
7869
|
return function () {
|
|
7808
|
-
/* eslint-disable no-invalid-this */
|
|
7870
|
+
/* eslint-disable no-invalid-this, prefer-rest-params */
|
|
7809
7871
|
var aval = typeof a === "function" ? a.apply(this, arguments) : a;
|
|
7810
7872
|
var bval = typeof b === "function" ? b.apply(this, arguments) : b;
|
|
7811
7873
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
|
|
@@ -7918,15 +7980,18 @@ var victoryInterpolator = function (a, b) {
|
|
|
7918
7980
|
}
|
|
7919
7981
|
|
|
7920
7982
|
if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
|
|
7983
|
+
// @ts-expect-error These generics are tough, but they work :)
|
|
7921
7984
|
return interpolateObject(a, b);
|
|
7922
7985
|
}
|
|
7923
7986
|
|
|
7924
7987
|
if (typeof a === "string" || typeof b === "string") {
|
|
7925
7988
|
return interpolateString(a, b);
|
|
7926
|
-
}
|
|
7989
|
+
} // @ts-expect-error These generics are tough, but they work :)
|
|
7990
|
+
|
|
7927
7991
|
|
|
7928
7992
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
|
|
7929
7993
|
};
|
|
7994
|
+
//# sourceMappingURL=util.js.map
|
|
7930
7995
|
|
|
7931
7996
|
/***/ }),
|
|
7932
7997
|
|
|
@@ -7939,17 +8004,17 @@ var victoryInterpolator = function (a, b) {
|
|
|
7939
8004
|
"use strict";
|
|
7940
8005
|
__webpack_require__.r(__webpack_exports__);
|
|
7941
8006
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7942
|
-
/* harmony export */ "
|
|
8007
|
+
/* harmony export */ "VictoryAnimation": () => (/* binding */ VictoryAnimation)
|
|
7943
8008
|
/* harmony export */ });
|
|
7944
8009
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7945
8010
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7946
|
-
/* harmony import */ var
|
|
7947
|
-
/* harmony import */ var
|
|
7948
|
-
/* harmony import */ var
|
|
7949
|
-
/* harmony import */ var
|
|
8011
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8012
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
8013
|
+
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
8014
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
7950
8015
|
/* 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");
|
|
7951
|
-
/* harmony import */ var
|
|
7952
|
-
/* harmony import */ var
|
|
8016
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
8017
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__);
|
|
7953
8018
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
7954
8019
|
|
|
7955
8020
|
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."); }
|
|
@@ -7970,7 +8035,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7970
8035
|
|
|
7971
8036
|
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); }
|
|
7972
8037
|
|
|
7973
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8038
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7974
8039
|
|
|
7975
8040
|
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); }; }
|
|
7976
8041
|
|
|
@@ -7980,9 +8045,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7980
8045
|
|
|
7981
8046
|
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; } }
|
|
7982
8047
|
|
|
7983
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7984
|
-
|
|
7985
|
-
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; }
|
|
8048
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7986
8049
|
|
|
7987
8050
|
/*global setTimeout:false */
|
|
7988
8051
|
|
|
@@ -7991,7 +8054,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7991
8054
|
|
|
7992
8055
|
|
|
7993
8056
|
|
|
7994
|
-
|
|
7995
8057
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
7996
8058
|
_inherits(VictoryAnimation, _React$Component);
|
|
7997
8059
|
|
|
@@ -8005,6 +8067,56 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8005
8067
|
_this = _super.call(this, props, context);
|
|
8006
8068
|
/* defaults */
|
|
8007
8069
|
|
|
8070
|
+
_this.interpolator = void 0;
|
|
8071
|
+
_this.queue = void 0;
|
|
8072
|
+
_this.ease = void 0;
|
|
8073
|
+
_this.timer = void 0;
|
|
8074
|
+
_this.loopID = void 0;
|
|
8075
|
+
|
|
8076
|
+
_this.functionToBeRunEachFrame = function (elapsed, duration) {
|
|
8077
|
+
/*
|
|
8078
|
+
step can generate imprecise values, sometimes greater than 1
|
|
8079
|
+
if this happens set the state to 1 and return, cancelling the timer
|
|
8080
|
+
*/
|
|
8081
|
+
duration = duration !== undefined ? duration : _this.props.duration;
|
|
8082
|
+
var step = duration ? elapsed / duration : 1;
|
|
8083
|
+
|
|
8084
|
+
if (step >= 1) {
|
|
8085
|
+
_this.setState({
|
|
8086
|
+
data: _this.interpolator(1),
|
|
8087
|
+
animationInfo: {
|
|
8088
|
+
progress: 1,
|
|
8089
|
+
animating: false,
|
|
8090
|
+
terminating: true
|
|
8091
|
+
}
|
|
8092
|
+
});
|
|
8093
|
+
|
|
8094
|
+
if (_this.loopID) {
|
|
8095
|
+
_this.timer.unsubscribe(_this.loopID);
|
|
8096
|
+
}
|
|
8097
|
+
|
|
8098
|
+
_this.queue.shift();
|
|
8099
|
+
|
|
8100
|
+
_this.traverseQueue();
|
|
8101
|
+
|
|
8102
|
+
return;
|
|
8103
|
+
}
|
|
8104
|
+
/*
|
|
8105
|
+
if we're not at the end of the timer, set the state by passing
|
|
8106
|
+
current step value that's transformed by the ease function to the
|
|
8107
|
+
interpolator, which is cached for performance whenever props are received
|
|
8108
|
+
*/
|
|
8109
|
+
|
|
8110
|
+
|
|
8111
|
+
_this.setState({
|
|
8112
|
+
data: _this.interpolator(_this.ease(step)),
|
|
8113
|
+
animationInfo: {
|
|
8114
|
+
progress: step,
|
|
8115
|
+
animating: step < 1
|
|
8116
|
+
}
|
|
8117
|
+
});
|
|
8118
|
+
};
|
|
8119
|
+
|
|
8008
8120
|
_this.state = {
|
|
8009
8121
|
data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
|
|
8010
8122
|
animationInfo: {
|
|
@@ -8016,13 +8128,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8016
8128
|
_this.queue = Array.isArray(_this.props.data) ? _this.props.data.slice(1) : [];
|
|
8017
8129
|
/* build easing function */
|
|
8018
8130
|
|
|
8019
|
-
_this.ease =
|
|
8020
|
-
/*
|
|
8021
|
-
There is no autobinding of this in ES6 classes
|
|
8022
|
-
so we bind functionToBeRunEachFrame to current instance of victory animation class
|
|
8023
|
-
*/
|
|
8024
|
-
|
|
8025
|
-
_this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
|
|
8131
|
+
_this.ease = victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
|
|
8026
8132
|
_this.timer = _this.context.animationTimer;
|
|
8027
8133
|
return _this;
|
|
8028
8134
|
}
|
|
@@ -8038,7 +8144,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8038
8144
|
}, {
|
|
8039
8145
|
key: "componentDidUpdate",
|
|
8040
8146
|
value: function componentDidUpdate(prevProps) {
|
|
8041
|
-
var equalProps =
|
|
8147
|
+
var equalProps = react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(this.props, prevProps);
|
|
8042
8148
|
|
|
8043
8149
|
if (!equalProps) {
|
|
8044
8150
|
/* If the previous animation didn't finish, force it to complete before starting a new one */
|
|
@@ -8107,7 +8213,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8107
8213
|
var data = this.queue[0];
|
|
8108
8214
|
/* compare cached version to next props */
|
|
8109
8215
|
|
|
8110
|
-
this.interpolator = (0,
|
|
8216
|
+
this.interpolator = (0,_util__WEBPACK_IMPORTED_MODULE_3__.victoryInterpolator)(this.state.data, data);
|
|
8111
8217
|
/* reset step to zero */
|
|
8112
8218
|
|
|
8113
8219
|
if (this.props.delay) {
|
|
@@ -8123,49 +8229,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8123
8229
|
}
|
|
8124
8230
|
/* every frame we... */
|
|
8125
8231
|
|
|
8126
|
-
}, {
|
|
8127
|
-
key: "functionToBeRunEachFrame",
|
|
8128
|
-
value: function functionToBeRunEachFrame(elapsed, duration) {
|
|
8129
|
-
/*
|
|
8130
|
-
step can generate imprecise values, sometimes greater than 1
|
|
8131
|
-
if this happens set the state to 1 and return, cancelling the timer
|
|
8132
|
-
*/
|
|
8133
|
-
duration = duration !== undefined ? duration : this.props.duration;
|
|
8134
|
-
var step = duration ? elapsed / duration : 1;
|
|
8135
|
-
|
|
8136
|
-
if (step >= 1) {
|
|
8137
|
-
this.setState({
|
|
8138
|
-
data: this.interpolator(1),
|
|
8139
|
-
animationInfo: {
|
|
8140
|
-
progress: 1,
|
|
8141
|
-
animating: false,
|
|
8142
|
-
terminating: true
|
|
8143
|
-
}
|
|
8144
|
-
});
|
|
8145
|
-
|
|
8146
|
-
if (this.loopID) {
|
|
8147
|
-
this.timer.unsubscribe(this.loopID);
|
|
8148
|
-
}
|
|
8149
|
-
|
|
8150
|
-
this.queue.shift();
|
|
8151
|
-
this.traverseQueue();
|
|
8152
|
-
return;
|
|
8153
|
-
}
|
|
8154
|
-
/*
|
|
8155
|
-
if we're not at the end of the timer, set the state by passing
|
|
8156
|
-
current step value that's transformed by the ease function to the
|
|
8157
|
-
interpolator, which is cached for performance whenever props are received
|
|
8158
|
-
*/
|
|
8159
|
-
|
|
8160
|
-
|
|
8161
|
-
this.setState({
|
|
8162
|
-
data: this.interpolator(this.ease(step)),
|
|
8163
|
-
animationInfo: {
|
|
8164
|
-
progress: step,
|
|
8165
|
-
animating: step < 1
|
|
8166
|
-
}
|
|
8167
|
-
});
|
|
8168
|
-
}
|
|
8169
8232
|
}, {
|
|
8170
8233
|
key: "render",
|
|
8171
8234
|
value: function render() {
|
|
@@ -8175,28 +8238,23 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
8175
8238
|
|
|
8176
8239
|
return VictoryAnimation;
|
|
8177
8240
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
});
|
|
8189
|
-
|
|
8190
|
-
_defineProperty(VictoryAnimation, "defaultProps", {
|
|
8241
|
+
VictoryAnimation.displayName = "VictoryAnimation";
|
|
8242
|
+
VictoryAnimation.propTypes = {
|
|
8243
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
8244
|
+
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)]),
|
|
8245
|
+
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8246
|
+
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
8247
|
+
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"]),
|
|
8248
|
+
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
8249
|
+
};
|
|
8250
|
+
VictoryAnimation.defaultProps = {
|
|
8191
8251
|
data: {},
|
|
8192
8252
|
delay: 0,
|
|
8193
8253
|
duration: 1000,
|
|
8194
8254
|
easing: "quadInOut"
|
|
8195
|
-
}
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8255
|
+
};
|
|
8256
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
8257
|
+
//# sourceMappingURL=victory-animation.js.map
|
|
8200
8258
|
|
|
8201
8259
|
/***/ }),
|
|
8202
8260
|
|
|
@@ -8209,7 +8267,7 @@ _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WE
|
|
|
8209
8267
|
"use strict";
|
|
8210
8268
|
__webpack_require__.r(__webpack_exports__);
|
|
8211
8269
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8212
|
-
/* harmony export */ "
|
|
8270
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
8213
8271
|
/* harmony export */ });
|
|
8214
8272
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
8215
8273
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8223,26 +8281,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8223
8281
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
8224
8282
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
8225
8283
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
8226
|
-
/* harmony import */ var
|
|
8227
|
-
/* harmony import */ var
|
|
8284
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8285
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
8228
8286
|
/* 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");
|
|
8229
8287
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
8230
|
-
/* harmony import */ var
|
|
8288
|
+
/* 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");
|
|
8231
8289
|
/* 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");
|
|
8232
|
-
/* harmony import */ var
|
|
8233
|
-
/* harmony import */ var
|
|
8290
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8291
|
+
/* 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");
|
|
8234
8292
|
|
|
8235
8293
|
|
|
8236
8294
|
|
|
8237
8295
|
|
|
8238
8296
|
|
|
8239
8297
|
|
|
8240
|
-
function _extends() { _extends = Object.assign
|
|
8298
|
+
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); }
|
|
8241
8299
|
|
|
8242
8300
|
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; }
|
|
8243
8301
|
|
|
8244
8302
|
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; }
|
|
8245
8303
|
|
|
8304
|
+
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; }
|
|
8305
|
+
|
|
8246
8306
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8247
8307
|
|
|
8248
8308
|
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); } }
|
|
@@ -8251,7 +8311,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8251
8311
|
|
|
8252
8312
|
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); }
|
|
8253
8313
|
|
|
8254
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8314
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8255
8315
|
|
|
8256
8316
|
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); }; }
|
|
8257
8317
|
|
|
@@ -8261,10 +8321,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8261
8321
|
|
|
8262
8322
|
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; } }
|
|
8263
8323
|
|
|
8264
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8265
|
-
|
|
8266
|
-
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; }
|
|
8267
|
-
|
|
8324
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8268
8325
|
|
|
8269
8326
|
|
|
8270
8327
|
|
|
@@ -8279,13 +8336,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8279
8336
|
|
|
8280
8337
|
var _super = _createSuper(VictoryContainer);
|
|
8281
8338
|
|
|
8339
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
8340
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
8282
8341
|
function VictoryContainer(props) {
|
|
8283
8342
|
var _this;
|
|
8284
8343
|
|
|
8285
8344
|
_classCallCheck(this, VictoryContainer);
|
|
8286
8345
|
|
|
8287
8346
|
_this = _super.call(this, props);
|
|
8288
|
-
_this.containerId =
|
|
8347
|
+
_this.containerId = void 0;
|
|
8348
|
+
_this.portalRef = void 0;
|
|
8349
|
+
_this.containerRef = void 0;
|
|
8350
|
+
_this.shouldHandleWheel = void 0;
|
|
8289
8351
|
|
|
8290
8352
|
_this.savePortalRef = function (portal) {
|
|
8291
8353
|
_this.portalRef = portal;
|
|
@@ -8304,18 +8366,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8304
8366
|
return _this.portalRef.portalDeregister(key);
|
|
8305
8367
|
};
|
|
8306
8368
|
|
|
8307
|
-
_this.saveContainerRef =
|
|
8369
|
+
_this.saveContainerRef = function (container) {
|
|
8370
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
8371
|
+
_this.props.containerRef(container);
|
|
8372
|
+
}
|
|
8373
|
+
|
|
8308
8374
|
_this.containerRef = container;
|
|
8309
8375
|
return container;
|
|
8310
8376
|
};
|
|
8311
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
8312
8377
|
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
};
|
|
8317
|
-
}
|
|
8378
|
+
_this.handleWheel = function (e) {
|
|
8379
|
+
return e.preventDefault();
|
|
8380
|
+
};
|
|
8318
8381
|
|
|
8382
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
8383
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
8319
8384
|
return _this;
|
|
8320
8385
|
}
|
|
8321
8386
|
|
|
@@ -8408,7 +8473,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8408
8473
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
8409
8474
|
style: portalSvgStyle
|
|
8410
8475
|
};
|
|
8411
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
8476
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
8412
8477
|
value: {
|
|
8413
8478
|
portalUpdate: this.portalUpdate,
|
|
8414
8479
|
portalRegister: this.portalRegister,
|
|
@@ -8443,8 +8508,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8443
8508
|
tabIndex = _this$props.tabIndex,
|
|
8444
8509
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
8445
8510
|
role = _this$props.role;
|
|
8446
|
-
var style = responsive ? this.props.style :
|
|
8447
|
-
var userProps =
|
|
8511
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
8512
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
8448
8513
|
|
|
8449
8514
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
8450
8515
|
width: width,
|
|
@@ -8463,53 +8528,47 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8463
8528
|
|
|
8464
8529
|
return VictoryContainer;
|
|
8465
8530
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
8466
|
-
|
|
8467
|
-
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
|
|
8471
|
-
|
|
8472
|
-
|
|
8473
|
-
|
|
8474
|
-
|
|
8475
|
-
|
|
8476
|
-
|
|
8477
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
8478
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
8479
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
8531
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
8532
|
+
VictoryContainer.role = "container";
|
|
8533
|
+
VictoryContainer.propTypes = {
|
|
8534
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8535
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8536
|
+
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)]),
|
|
8537
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8538
|
+
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)]),
|
|
8539
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
8540
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8541
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8480
8542
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
8481
|
-
name: (
|
|
8482
|
-
origin:
|
|
8543
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8544
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
8483
8545
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
8484
8546
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
8485
8547
|
}),
|
|
8486
|
-
ouiaId:
|
|
8487
|
-
ouiaSafe: (
|
|
8488
|
-
ouiaType: (
|
|
8489
|
-
polar: (
|
|
8490
|
-
portalComponent: (
|
|
8548
|
+
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)]),
|
|
8549
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8550
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8551
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8552
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
8491
8553
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
8492
|
-
preserveAspectRatio: (
|
|
8493
|
-
responsive: (
|
|
8494
|
-
role: (
|
|
8495
|
-
style: (
|
|
8496
|
-
tabIndex: (
|
|
8497
|
-
theme: (
|
|
8498
|
-
title: (
|
|
8554
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8555
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
8556
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8557
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8558
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
8559
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8560
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8499
8561
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
8500
|
-
}
|
|
8501
|
-
|
|
8502
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
8562
|
+
};
|
|
8563
|
+
VictoryContainer.defaultProps = {
|
|
8503
8564
|
className: "VictoryContainer",
|
|
8504
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
8565
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
8505
8566
|
portalZIndex: 99,
|
|
8506
8567
|
responsive: true,
|
|
8507
8568
|
role: "img"
|
|
8508
|
-
}
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8512
|
-
|
|
8569
|
+
};
|
|
8570
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
8571
|
+
//# sourceMappingURL=victory-container.js.map
|
|
8513
8572
|
|
|
8514
8573
|
/***/ }),
|
|
8515
8574
|
|
|
@@ -8522,7 +8581,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
8522
8581
|
"use strict";
|
|
8523
8582
|
__webpack_require__.r(__webpack_exports__);
|
|
8524
8583
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8525
|
-
/* harmony export */ "
|
|
8584
|
+
/* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
|
|
8526
8585
|
/* harmony export */ });
|
|
8527
8586
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
8528
8587
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8530,20 +8589,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8530
8589
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
8531
8590
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8532
8591
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
|
|
8533
|
-
/* harmony import */ var
|
|
8534
|
-
/* harmony import */ var
|
|
8535
|
-
/* harmony import */ var
|
|
8536
|
-
/* harmony import */ var
|
|
8592
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8593
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
|
|
8594
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
8595
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
8537
8596
|
/* 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");
|
|
8538
|
-
/* harmony import */ var
|
|
8539
|
-
/* harmony import */ var
|
|
8540
|
-
/* harmony import */ var
|
|
8541
|
-
/* harmony import */ var
|
|
8542
|
-
/* harmony import */ var
|
|
8543
|
-
/* harmony import */ var
|
|
8544
|
-
/* harmony import */ var
|
|
8545
|
-
/* harmony import */ var
|
|
8597
|
+
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
8598
|
+
/* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
|
|
8599
|
+
/* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../victory-primitives/tspan */ "../../victory-core/es/victory-primitives/tspan.js");
|
|
8600
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8601
|
+
/* 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");
|
|
8602
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8603
|
+
/* 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");
|
|
8604
|
+
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
8546
8605
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
8606
|
+
/* 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");
|
|
8547
8607
|
|
|
8548
8608
|
|
|
8549
8609
|
|
|
@@ -8578,6 +8638,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8578
8638
|
|
|
8579
8639
|
|
|
8580
8640
|
|
|
8641
|
+
|
|
8581
8642
|
var defaultStyles = {
|
|
8582
8643
|
fill: "#252525",
|
|
8583
8644
|
fontSize: 14,
|
|
@@ -8590,7 +8651,7 @@ var getPosition = function (props, dimension) {
|
|
|
8590
8651
|
return 0;
|
|
8591
8652
|
}
|
|
8592
8653
|
|
|
8593
|
-
var scaledPoint =
|
|
8654
|
+
var scaledPoint = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, props.datum);
|
|
8594
8655
|
return scaledPoint[dimension];
|
|
8595
8656
|
};
|
|
8596
8657
|
|
|
@@ -8607,7 +8668,7 @@ var getFontSize = function (style) {
|
|
|
8607
8668
|
if (!isNaN(fontSize)) {
|
|
8608
8669
|
return fontSize;
|
|
8609
8670
|
} else {
|
|
8610
|
-
|
|
8671
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_5__.warn("fontSize should be expressed as a number of pixels");
|
|
8611
8672
|
return defaultStyles.fontSize;
|
|
8612
8673
|
}
|
|
8613
8674
|
}
|
|
@@ -8628,7 +8689,7 @@ var shouldUseMultilineBackgrounds = function (props) {
|
|
|
8628
8689
|
|
|
8629
8690
|
var getStyles = function (style, props) {
|
|
8630
8691
|
if (props.disableInlineStyles) {
|
|
8631
|
-
var baseStyles =
|
|
8692
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8632
8693
|
return {
|
|
8633
8694
|
// Font size is necessary to calculate the y position of the label
|
|
8634
8695
|
fontSize: getFontSize(baseStyles)
|
|
@@ -8637,7 +8698,7 @@ var getStyles = function (style, props) {
|
|
|
8637
8698
|
|
|
8638
8699
|
var getSingleStyle = function (s) {
|
|
8639
8700
|
s = s ? lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, s, defaultStyles) : defaultStyles;
|
|
8640
|
-
var baseStyles =
|
|
8701
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8641
8702
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, baseStyles, {
|
|
8642
8703
|
fontSize: getFontSize(baseStyles)
|
|
8643
8704
|
});
|
|
@@ -8654,28 +8715,28 @@ var getBackgroundStyles = function (style, props) {
|
|
|
8654
8715
|
}
|
|
8655
8716
|
|
|
8656
8717
|
return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) {
|
|
8657
|
-
return
|
|
8658
|
-
}) :
|
|
8718
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8719
|
+
}) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
8659
8720
|
};
|
|
8660
8721
|
|
|
8661
8722
|
var getBackgroundPadding = function (props) {
|
|
8662
8723
|
if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
|
|
8663
8724
|
return props.backgroundPadding.map(function (backgroundPadding) {
|
|
8664
|
-
var padding =
|
|
8665
|
-
return
|
|
8725
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(backgroundPadding, props);
|
|
8726
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8666
8727
|
padding: padding
|
|
8667
8728
|
});
|
|
8668
8729
|
});
|
|
8669
8730
|
} else {
|
|
8670
|
-
var padding =
|
|
8671
|
-
return
|
|
8731
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.backgroundPadding, props);
|
|
8732
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
8672
8733
|
padding: padding
|
|
8673
8734
|
});
|
|
8674
8735
|
}
|
|
8675
8736
|
};
|
|
8676
8737
|
|
|
8677
8738
|
var getLineHeight = function (props) {
|
|
8678
|
-
var lineHeight =
|
|
8739
|
+
var lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.lineHeight, props);
|
|
8679
8740
|
|
|
8680
8741
|
if (Array.isArray(lineHeight)) {
|
|
8681
8742
|
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
|
|
@@ -8691,11 +8752,11 @@ var getContent = function (text, props) {
|
|
|
8691
8752
|
|
|
8692
8753
|
if (Array.isArray(text)) {
|
|
8693
8754
|
return text.map(function (line) {
|
|
8694
|
-
return
|
|
8755
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(line, props);
|
|
8695
8756
|
});
|
|
8696
8757
|
}
|
|
8697
8758
|
|
|
8698
|
-
var child =
|
|
8759
|
+
var child = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(text, props);
|
|
8699
8760
|
|
|
8700
8761
|
if (child === undefined || child === null) {
|
|
8701
8762
|
return undefined;
|
|
@@ -8705,10 +8766,10 @@ var getContent = function (text, props) {
|
|
|
8705
8766
|
};
|
|
8706
8767
|
|
|
8707
8768
|
var getDy = function (props, verticalAnchor, lineHeight) {
|
|
8708
|
-
var dy = props.dy ?
|
|
8769
|
+
var dy = props.dy ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dy, props) : 0;
|
|
8709
8770
|
var length = props.inline ? 1 : props.text.length;
|
|
8710
|
-
var capHeight =
|
|
8711
|
-
var anchor = verticalAnchor ?
|
|
8771
|
+
var capHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.capHeight, props);
|
|
8772
|
+
var anchor = verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(verticalAnchor, props) : "middle";
|
|
8712
8773
|
|
|
8713
8774
|
var fontSizes = _toConsumableArray(Array(length).keys()).map(function (i) {
|
|
8714
8775
|
return getSingleValue(props.style, i).fontSize;
|
|
@@ -8736,15 +8797,15 @@ var getDy = function (props, verticalAnchor, lineHeight) {
|
|
|
8736
8797
|
var getTransform = function (props, x, y) {
|
|
8737
8798
|
var polar = props.polar;
|
|
8738
8799
|
var style = getSingleValue(props.style);
|
|
8739
|
-
var defaultAngle = polar ?
|
|
8740
|
-
var baseAngle = style.angle === undefined ?
|
|
8800
|
+
var defaultAngle = polar ? _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(props) : 0;
|
|
8801
|
+
var baseAngle = style.angle === undefined ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.angle, props) : style.angle;
|
|
8741
8802
|
var angle = baseAngle === undefined ? defaultAngle : baseAngle;
|
|
8742
8803
|
var transform = props.transform || style.transform;
|
|
8743
|
-
var transformPart = transform &&
|
|
8804
|
+
var transformPart = transform && _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(transform, props);
|
|
8744
8805
|
var rotatePart = angle && {
|
|
8745
8806
|
rotate: [angle, x, y]
|
|
8746
8807
|
};
|
|
8747
|
-
return transformPart || angle ?
|
|
8808
|
+
return transformPart || angle ? _victory_util_style__WEBPACK_IMPORTED_MODULE_7__.toTransformString(transformPart, rotatePart) : undefined;
|
|
8748
8809
|
};
|
|
8749
8810
|
|
|
8750
8811
|
var getXCoordinate = function (calculatedProps, labelSizeWidth) {
|
|
@@ -8825,7 +8886,7 @@ var getFullBackground = function (calculatedProps, tspanValues) {
|
|
|
8825
8886
|
x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
|
|
8826
8887
|
y: yCoordinate
|
|
8827
8888
|
};
|
|
8828
|
-
return /*#__PURE__*/
|
|
8889
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8829
8890
|
};
|
|
8830
8891
|
|
|
8831
8892
|
var getInlineXOffset = function (calculatedProps, textElements, index) {
|
|
@@ -8907,7 +8968,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
|
|
|
8907
8968
|
x: xCoord - padding.left,
|
|
8908
8969
|
y: yCoord
|
|
8909
8970
|
};
|
|
8910
|
-
return /*#__PURE__*/
|
|
8971
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8911
8972
|
});
|
|
8912
8973
|
};
|
|
8913
8974
|
|
|
@@ -8958,7 +9019,7 @@ var evaluateProps = function (props) {
|
|
|
8958
9019
|
style: style,
|
|
8959
9020
|
backgroundStyle: backgroundStyle
|
|
8960
9021
|
}));
|
|
8961
|
-
var id =
|
|
9022
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
|
|
8962
9023
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
|
|
8963
9024
|
backgroundStyle: backgroundStyle,
|
|
8964
9025
|
backgroundPadding: backgroundPadding,
|
|
@@ -8969,13 +9030,13 @@ var evaluateProps = function (props) {
|
|
|
8969
9030
|
};
|
|
8970
9031
|
|
|
8971
9032
|
var getCalculatedProps = function (props) {
|
|
8972
|
-
var ariaLabel =
|
|
9033
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
|
|
8973
9034
|
var style = getSingleValue(props.style);
|
|
8974
9035
|
var lineHeight = getLineHeight(props);
|
|
8975
|
-
var direction = props.direction ?
|
|
8976
|
-
var textAnchor = props.textAnchor ?
|
|
8977
|
-
var verticalAnchor = props.verticalAnchor ?
|
|
8978
|
-
var dx = props.dx ?
|
|
9036
|
+
var direction = props.direction ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.direction, props) : "inherit";
|
|
9037
|
+
var textAnchor = props.textAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.textAnchor, props) : style.textAnchor || "start";
|
|
9038
|
+
var verticalAnchor = props.verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.verticalAnchor, props) : style.verticalAnchor || "middle";
|
|
9039
|
+
var dx = props.dx ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dx, props) : 0;
|
|
8979
9040
|
var dy = getDy(props, verticalAnchor, lineHeight);
|
|
8980
9041
|
var x = props.x !== undefined ? props.x : getPosition(props, "x");
|
|
8981
9042
|
var y = props.y !== undefined ? props.y : getPosition(props, "y");
|
|
@@ -9014,6 +9075,7 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
9014
9075
|
tabIndex = calculatedProps.tabIndex,
|
|
9015
9076
|
tspanComponent = calculatedProps.tspanComponent,
|
|
9016
9077
|
textComponent = calculatedProps.textComponent;
|
|
9078
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(calculatedProps);
|
|
9017
9079
|
|
|
9018
9080
|
var textProps = _objectSpread(_objectSpread({
|
|
9019
9081
|
"aria-label": ariaLabel,
|
|
@@ -9026,10 +9088,10 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
9026
9088
|
transform: transform,
|
|
9027
9089
|
className: className,
|
|
9028
9090
|
title: title,
|
|
9029
|
-
desc:
|
|
9030
|
-
tabIndex:
|
|
9091
|
+
desc: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(desc, calculatedProps),
|
|
9092
|
+
tabIndex: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(tabIndex, calculatedProps),
|
|
9031
9093
|
id: id
|
|
9032
|
-
});
|
|
9094
|
+
}, userProps);
|
|
9033
9095
|
|
|
9034
9096
|
var tspans = text.map(function (line, i) {
|
|
9035
9097
|
var currentStyle = tspanValues[i].style;
|
|
@@ -9042,9 +9104,9 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
9042
9104
|
style: currentStyle,
|
|
9043
9105
|
children: line
|
|
9044
9106
|
};
|
|
9045
|
-
return /*#__PURE__*/
|
|
9107
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(tspanComponent, tspanProps);
|
|
9046
9108
|
});
|
|
9047
|
-
return /*#__PURE__*/
|
|
9109
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(textComponent, textProps, tspans);
|
|
9048
9110
|
};
|
|
9049
9111
|
|
|
9050
9112
|
var VictoryLabel = function (props) {
|
|
@@ -9069,6 +9131,7 @@ var VictoryLabel = function (props) {
|
|
|
9069
9131
|
fontSize: currentStyle.fontSize || defaultStyles.fontSize,
|
|
9070
9132
|
capHeight: capHeightPx,
|
|
9071
9133
|
text: line,
|
|
9134
|
+
// @ts-expect-error TODO: This looks like a bug:
|
|
9072
9135
|
textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
|
|
9073
9136
|
lineHeight: currentLineHeight,
|
|
9074
9137
|
backgroundPadding: getSingleValue(backgroundPadding, i)
|
|
@@ -9079,71 +9142,75 @@ var VictoryLabel = function (props) {
|
|
|
9079
9142
|
if (props.backgroundStyle) {
|
|
9080
9143
|
var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
|
|
9081
9144
|
var children = [backgroundElement, label];
|
|
9082
|
-
var backgroundWithLabel = /*#__PURE__*/
|
|
9083
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
9145
|
+
var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
|
|
9146
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
|
|
9084
9147
|
}
|
|
9085
9148
|
|
|
9086
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
9149
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
|
|
9087
9150
|
};
|
|
9088
|
-
|
|
9089
9151
|
VictoryLabel.displayName = "VictoryLabel";
|
|
9090
9152
|
VictoryLabel.role = "label";
|
|
9091
9153
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
9092
9154
|
VictoryLabel.propTypes = {
|
|
9093
|
-
active: (
|
|
9094
|
-
angle:
|
|
9095
|
-
ariaLabel:
|
|
9096
|
-
backgroundComponent: (
|
|
9097
|
-
backgroundPadding:
|
|
9098
|
-
backgroundStyle:
|
|
9099
|
-
capHeight:
|
|
9100
|
-
className: (
|
|
9101
|
-
data: (
|
|
9102
|
-
datum: (
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9155
|
+
active: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9156
|
+
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)]),
|
|
9157
|
+
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)]),
|
|
9158
|
+
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9159
|
+
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)]),
|
|
9160
|
+
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)]),
|
|
9161
|
+
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)]),
|
|
9162
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
9163
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
9164
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
|
|
9165
|
+
// @ts-expect-error "Function is not assignable to string"
|
|
9166
|
+
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)]),
|
|
9167
|
+
direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
9168
|
+
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)]),
|
|
9169
|
+
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)]),
|
|
9170
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
9171
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9172
|
+
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)]),
|
|
9173
|
+
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)]),
|
|
9174
|
+
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9175
|
+
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
9176
|
+
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)]),
|
|
9177
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
9178
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
9179
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
9117
9180
|
}),
|
|
9118
|
-
polar: (
|
|
9119
|
-
renderInPortal: (
|
|
9120
|
-
scale:
|
|
9121
|
-
x:
|
|
9122
|
-
y:
|
|
9181
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9182
|
+
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
9183
|
+
scale: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
9184
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale,
|
|
9185
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale
|
|
9123
9186
|
}),
|
|
9124
|
-
style:
|
|
9125
|
-
tabIndex:
|
|
9126
|
-
text:
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9187
|
+
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)]),
|
|
9188
|
+
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)]),
|
|
9189
|
+
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)]),
|
|
9190
|
+
// @ts-expect-error Function is not assignable to string"
|
|
9191
|
+
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)]),
|
|
9192
|
+
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9193
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
9194
|
+
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)]),
|
|
9195
|
+
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
9196
|
+
// @ts-expect-error Function is not assignable to string"
|
|
9197
|
+
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)]),
|
|
9198
|
+
// @ts-expect-error Number is not assignable to string
|
|
9199
|
+
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)]),
|
|
9200
|
+
// @ts-expect-error Number is not assignable to string
|
|
9201
|
+
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)])
|
|
9135
9202
|
};
|
|
9136
9203
|
VictoryLabel.defaultProps = {
|
|
9137
|
-
backgroundComponent: /*#__PURE__*/
|
|
9138
|
-
groupComponent: /*#__PURE__*/
|
|
9204
|
+
backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
|
|
9205
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
9139
9206
|
direction: "inherit",
|
|
9140
|
-
textComponent: /*#__PURE__*/
|
|
9141
|
-
tspanComponent: /*#__PURE__*/
|
|
9207
|
+
textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
|
|
9208
|
+
tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
|
|
9142
9209
|
capHeight: 0.71,
|
|
9143
9210
|
// Magic number from d3.
|
|
9144
9211
|
lineHeight: 1
|
|
9145
9212
|
};
|
|
9146
|
-
|
|
9213
|
+
//# sourceMappingURL=victory-label.js.map
|
|
9147
9214
|
|
|
9148
9215
|
/***/ }),
|
|
9149
9216
|
|
|
@@ -9156,19 +9223,19 @@ VictoryLabel.defaultProps = {
|
|
|
9156
9223
|
"use strict";
|
|
9157
9224
|
__webpack_require__.r(__webpack_exports__);
|
|
9158
9225
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9159
|
-
/* harmony export */ "
|
|
9226
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
9160
9227
|
/* harmony export */ });
|
|
9161
9228
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9162
9229
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9163
9230
|
|
|
9231
|
+
|
|
9164
9232
|
/**
|
|
9165
9233
|
* The React context object consumers may use to access the context of the
|
|
9166
9234
|
* portal.
|
|
9167
9235
|
*/
|
|
9168
|
-
|
|
9169
9236
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
9170
9237
|
PortalContext.displayName = "PortalContext";
|
|
9171
|
-
|
|
9238
|
+
//# sourceMappingURL=portal-context.js.map
|
|
9172
9239
|
|
|
9173
9240
|
/***/ }),
|
|
9174
9241
|
|
|
@@ -9181,7 +9248,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
9181
9248
|
"use strict";
|
|
9182
9249
|
__webpack_require__.r(__webpack_exports__);
|
|
9183
9250
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9184
|
-
/* harmony export */ "
|
|
9251
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
9185
9252
|
/* harmony export */ });
|
|
9186
9253
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
9187
9254
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9200,7 +9267,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9200
9267
|
|
|
9201
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); }
|
|
9202
9269
|
|
|
9203
|
-
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); }
|
|
9204
9271
|
|
|
9205
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); }; }
|
|
9206
9273
|
|
|
@@ -9210,10 +9277,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9210
9277
|
|
|
9211
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; } }
|
|
9212
9279
|
|
|
9213
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9214
|
-
|
|
9215
|
-
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; }
|
|
9216
|
-
|
|
9280
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9217
9281
|
|
|
9218
9282
|
|
|
9219
9283
|
|
|
@@ -9229,32 +9293,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
9229
9293
|
_classCallCheck(this, Portal);
|
|
9230
9294
|
|
|
9231
9295
|
_this = _super.call(this, props);
|
|
9296
|
+
_this.map = void 0;
|
|
9297
|
+
_this.index = void 0;
|
|
9298
|
+
|
|
9299
|
+
_this.portalRegister = function () {
|
|
9300
|
+
return ++_this.index;
|
|
9301
|
+
};
|
|
9302
|
+
|
|
9303
|
+
_this.portalUpdate = function (key, element) {
|
|
9304
|
+
_this.map[key] = element;
|
|
9305
|
+
|
|
9306
|
+
_this.forceUpdate();
|
|
9307
|
+
};
|
|
9308
|
+
|
|
9309
|
+
_this.portalDeregister = function (key) {
|
|
9310
|
+
delete _this.map[key];
|
|
9311
|
+
|
|
9312
|
+
_this.forceUpdate();
|
|
9313
|
+
};
|
|
9314
|
+
|
|
9232
9315
|
_this.map = {};
|
|
9233
9316
|
_this.index = 1;
|
|
9234
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
9235
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
9236
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
9237
9317
|
return _this;
|
|
9238
9318
|
}
|
|
9239
9319
|
|
|
9240
9320
|
_createClass(Portal, [{
|
|
9241
|
-
key: "portalRegister",
|
|
9242
|
-
value: function portalRegister() {
|
|
9243
|
-
return ++this.index;
|
|
9244
|
-
}
|
|
9245
|
-
}, {
|
|
9246
|
-
key: "portalUpdate",
|
|
9247
|
-
value: function portalUpdate(key, element) {
|
|
9248
|
-
this.map[key] = element;
|
|
9249
|
-
this.forceUpdate();
|
|
9250
|
-
}
|
|
9251
|
-
}, {
|
|
9252
|
-
key: "portalDeregister",
|
|
9253
|
-
value: function portalDeregister(key) {
|
|
9254
|
-
delete this.map[key];
|
|
9255
|
-
this.forceUpdate();
|
|
9256
|
-
}
|
|
9257
|
-
}, {
|
|
9258
9321
|
key: "getChildren",
|
|
9259
9322
|
value: function getChildren() {
|
|
9260
9323
|
var _this2 = this;
|
|
@@ -9276,18 +9339,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
9276
9339
|
|
|
9277
9340
|
return Portal;
|
|
9278
9341
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9279
|
-
|
|
9280
|
-
|
|
9281
|
-
|
|
9282
|
-
_defineProperty(Portal, "propTypes", {
|
|
9342
|
+
Portal.displayName = "Portal";
|
|
9343
|
+
Portal.propTypes = {
|
|
9283
9344
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9284
9345
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
9285
9346
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
9286
9347
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
9287
9348
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
9288
|
-
}
|
|
9289
|
-
|
|
9290
|
-
|
|
9349
|
+
};
|
|
9350
|
+
//# sourceMappingURL=portal.js.map
|
|
9291
9351
|
|
|
9292
9352
|
/***/ }),
|
|
9293
9353
|
|
|
@@ -9300,16 +9360,16 @@ _defineProperty(Portal, "propTypes", {
|
|
|
9300
9360
|
"use strict";
|
|
9301
9361
|
__webpack_require__.r(__webpack_exports__);
|
|
9302
9362
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9303
|
-
/* harmony export */ "
|
|
9363
|
+
/* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
|
|
9304
9364
|
/* harmony export */ });
|
|
9305
9365
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
9306
9366
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9307
9367
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9308
9368
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9309
|
-
/* harmony import */ var
|
|
9310
|
-
/* harmony import */ var
|
|
9311
|
-
/* harmony import */ var
|
|
9312
|
-
/* harmony import */ var
|
|
9369
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9370
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
9371
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
9372
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9313
9373
|
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
9314
9374
|
|
|
9315
9375
|
|
|
@@ -9321,7 +9381,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9321
9381
|
|
|
9322
9382
|
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); }
|
|
9323
9383
|
|
|
9324
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9384
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9325
9385
|
|
|
9326
9386
|
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); }; }
|
|
9327
9387
|
|
|
@@ -9331,10 +9391,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9331
9391
|
|
|
9332
9392
|
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; } }
|
|
9333
9393
|
|
|
9334
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9335
|
-
|
|
9336
|
-
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; }
|
|
9337
|
-
|
|
9394
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9338
9395
|
|
|
9339
9396
|
|
|
9340
9397
|
|
|
@@ -9347,9 +9404,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9347
9404
|
var _super = _createSuper(VictoryPortal);
|
|
9348
9405
|
|
|
9349
9406
|
function VictoryPortal() {
|
|
9407
|
+
var _this;
|
|
9408
|
+
|
|
9350
9409
|
_classCallCheck(this, VictoryPortal);
|
|
9351
9410
|
|
|
9352
|
-
|
|
9411
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9412
|
+
args[_key] = arguments[_key];
|
|
9413
|
+
}
|
|
9414
|
+
|
|
9415
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
9416
|
+
_this.checkedContext = void 0;
|
|
9417
|
+
_this.renderInPlace = void 0;
|
|
9418
|
+
_this.element = void 0;
|
|
9419
|
+
_this.portalKey = void 0;
|
|
9420
|
+
return _this;
|
|
9353
9421
|
}
|
|
9354
9422
|
|
|
9355
9423
|
_createClass(VictoryPortal, [{
|
|
@@ -9358,7 +9426,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9358
9426
|
if (!this.checkedContext) {
|
|
9359
9427
|
if (typeof this.context.portalUpdate !== "function") {
|
|
9360
9428
|
var msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
|
|
9361
|
-
|
|
9429
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_2__.warn(msg);
|
|
9362
9430
|
this.renderInPlace = true;
|
|
9363
9431
|
}
|
|
9364
9432
|
|
|
@@ -9404,7 +9472,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9404
9472
|
standalone: false
|
|
9405
9473
|
} : {};
|
|
9406
9474
|
|
|
9407
|
-
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps,
|
|
9475
|
+
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.omit(this.props, ["children", "groupComponent"]));
|
|
9408
9476
|
|
|
9409
9477
|
var child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
|
|
9410
9478
|
return this.renderPortal(child);
|
|
@@ -9413,23 +9481,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
9413
9481
|
|
|
9414
9482
|
return VictoryPortal;
|
|
9415
9483
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element)
|
|
9424
|
-
});
|
|
9425
|
-
|
|
9426
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
9484
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
9485
|
+
VictoryPortal.role = "portal";
|
|
9486
|
+
VictoryPortal.propTypes = {
|
|
9487
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
9488
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
9489
|
+
};
|
|
9490
|
+
VictoryPortal.defaultProps = {
|
|
9427
9491
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
9428
|
-
}
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9492
|
+
};
|
|
9493
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
9494
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
9433
9495
|
|
|
9434
9496
|
/***/ }),
|
|
9435
9497
|
|
|
@@ -9442,7 +9504,7 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
|
|
|
9442
9504
|
"use strict";
|
|
9443
9505
|
__webpack_require__.r(__webpack_exports__);
|
|
9444
9506
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9445
|
-
/* harmony export */ "
|
|
9507
|
+
/* harmony export */ "Path": () => (/* binding */ Path)
|
|
9446
9508
|
/* harmony export */ });
|
|
9447
9509
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9448
9510
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9453,16 +9515,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9453
9515
|
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; }
|
|
9454
9516
|
|
|
9455
9517
|
|
|
9456
|
-
|
|
9457
9518
|
var Path = function (props) {
|
|
9458
9519
|
// eslint-disable-next-line react/prop-types
|
|
9459
9520
|
var desc = props.desc,
|
|
9460
9521
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9461
9522
|
|
|
9462
|
-
return desc ?
|
|
9523
|
+
return desc ?
|
|
9524
|
+
/*#__PURE__*/
|
|
9525
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9526
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9527
|
+
/*#__PURE__*/
|
|
9528
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9529
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
9463
9530
|
};
|
|
9464
|
-
|
|
9465
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
|
|
9531
|
+
//# sourceMappingURL=path.js.map
|
|
9466
9532
|
|
|
9467
9533
|
/***/ }),
|
|
9468
9534
|
|
|
@@ -9475,33 +9541,37 @@ var Path = function (props) {
|
|
|
9475
9541
|
"use strict";
|
|
9476
9542
|
__webpack_require__.r(__webpack_exports__);
|
|
9477
9543
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9478
|
-
/* harmony export */ "
|
|
9544
|
+
/* harmony export */ "Rect": () => (/* binding */ Rect)
|
|
9479
9545
|
/* harmony export */ });
|
|
9480
9546
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9481
9547
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9482
9548
|
var _excluded = ["desc"];
|
|
9483
9549
|
|
|
9484
|
-
function _extends() { _extends = Object.assign
|
|
9550
|
+
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); }
|
|
9485
9551
|
|
|
9486
9552
|
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; }
|
|
9487
9553
|
|
|
9488
9554
|
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; }
|
|
9489
9555
|
|
|
9490
9556
|
|
|
9491
|
-
|
|
9492
9557
|
var Rect = function (props) {
|
|
9493
9558
|
// eslint-disable-next-line react/prop-types
|
|
9494
9559
|
var desc = props.desc,
|
|
9495
9560
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9496
9561
|
|
|
9497
|
-
return desc ?
|
|
9562
|
+
return desc ?
|
|
9563
|
+
/*#__PURE__*/
|
|
9564
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9565
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9498
9566
|
vectorEffect: "non-scaling-stroke"
|
|
9499
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9567
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9568
|
+
/*#__PURE__*/
|
|
9569
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9570
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9500
9571
|
vectorEffect: "non-scaling-stroke"
|
|
9501
9572
|
}, rest));
|
|
9502
9573
|
};
|
|
9503
|
-
|
|
9504
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
|
|
9574
|
+
//# sourceMappingURL=rect.js.map
|
|
9505
9575
|
|
|
9506
9576
|
/***/ }),
|
|
9507
9577
|
|
|
@@ -9514,7 +9584,7 @@ var Rect = function (props) {
|
|
|
9514
9584
|
"use strict";
|
|
9515
9585
|
__webpack_require__.r(__webpack_exports__);
|
|
9516
9586
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9517
|
-
/* harmony export */ "
|
|
9587
|
+
/* harmony export */ "Text": () => (/* binding */ Text)
|
|
9518
9588
|
/* harmony export */ });
|
|
9519
9589
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9520
9590
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9528,22 +9598,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
9528
9598
|
|
|
9529
9599
|
|
|
9530
9600
|
|
|
9531
|
-
|
|
9532
9601
|
var Text = function (props) {
|
|
9533
9602
|
var children = props.children,
|
|
9534
9603
|
title = props.title,
|
|
9535
9604
|
desc = props.desc,
|
|
9536
9605
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9537
9606
|
|
|
9538
|
-
return
|
|
9607
|
+
return (
|
|
9608
|
+
/*#__PURE__*/
|
|
9609
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9610
|
+
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)
|
|
9611
|
+
);
|
|
9539
9612
|
};
|
|
9540
|
-
|
|
9541
9613
|
Text.propTypes = {
|
|
9542
9614
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
9543
9615
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
9544
9616
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
9545
9617
|
};
|
|
9546
|
-
|
|
9618
|
+
//# sourceMappingURL=text.js.map
|
|
9547
9619
|
|
|
9548
9620
|
/***/ }),
|
|
9549
9621
|
|
|
@@ -9556,17 +9628,19 @@ Text.propTypes = {
|
|
|
9556
9628
|
"use strict";
|
|
9557
9629
|
__webpack_require__.r(__webpack_exports__);
|
|
9558
9630
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9559
|
-
/* harmony export */ "
|
|
9631
|
+
/* harmony export */ "TSpan": () => (/* binding */ TSpan)
|
|
9560
9632
|
/* harmony export */ });
|
|
9561
9633
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9562
9634
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9563
9635
|
|
|
9564
|
-
|
|
9565
9636
|
var TSpan = function (props) {
|
|
9566
|
-
return
|
|
9637
|
+
return (
|
|
9638
|
+
/*#__PURE__*/
|
|
9639
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9640
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
9641
|
+
);
|
|
9567
9642
|
};
|
|
9568
|
-
|
|
9569
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
|
|
9643
|
+
//# sourceMappingURL=tspan.js.map
|
|
9570
9644
|
|
|
9571
9645
|
/***/ }),
|
|
9572
9646
|
|
|
@@ -9579,7 +9653,7 @@ var TSpan = function (props) {
|
|
|
9579
9653
|
"use strict";
|
|
9580
9654
|
__webpack_require__.r(__webpack_exports__);
|
|
9581
9655
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9582
|
-
/* harmony export */ "
|
|
9656
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
9583
9657
|
/* harmony export */ });
|
|
9584
9658
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9585
9659
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9626,7 +9700,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9626
9700
|
|
|
9627
9701
|
var strokeLinecap = "round";
|
|
9628
9702
|
var strokeLinejoin = "round";
|
|
9629
|
-
|
|
9703
|
+
var grayscale = {
|
|
9630
9704
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9631
9705
|
style: {
|
|
9632
9706
|
data: {
|
|
@@ -9841,7 +9915,8 @@ var strokeLinejoin = "round";
|
|
|
9841
9915
|
}
|
|
9842
9916
|
}
|
|
9843
9917
|
}, baseProps)
|
|
9844
|
-
}
|
|
9918
|
+
};
|
|
9919
|
+
//# sourceMappingURL=grayscale.js.map
|
|
9845
9920
|
|
|
9846
9921
|
/***/ }),
|
|
9847
9922
|
|
|
@@ -9854,7 +9929,7 @@ var strokeLinejoin = "round";
|
|
|
9854
9929
|
"use strict";
|
|
9855
9930
|
__webpack_require__.r(__webpack_exports__);
|
|
9856
9931
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9857
|
-
/* harmony export */ "
|
|
9932
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
9858
9933
|
/* harmony export */ });
|
|
9859
9934
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9860
9935
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9911,7 +9986,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9911
9986
|
var strokeDasharray = "10, 5";
|
|
9912
9987
|
var strokeLinecap = "round";
|
|
9913
9988
|
var strokeLinejoin = "round";
|
|
9914
|
-
|
|
9989
|
+
var material = {
|
|
9915
9990
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9916
9991
|
style: {
|
|
9917
9992
|
data: {
|
|
@@ -10143,7 +10218,8 @@ var strokeLinejoin = "round";
|
|
|
10143
10218
|
}
|
|
10144
10219
|
}
|
|
10145
10220
|
}, baseProps)
|
|
10146
|
-
}
|
|
10221
|
+
};
|
|
10222
|
+
//# sourceMappingURL=material.js.map
|
|
10147
10223
|
|
|
10148
10224
|
/***/ }),
|
|
10149
10225
|
|
|
@@ -10156,16 +10232,18 @@ var strokeLinejoin = "round";
|
|
|
10156
10232
|
"use strict";
|
|
10157
10233
|
__webpack_require__.r(__webpack_exports__);
|
|
10158
10234
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10159
|
-
/* harmony export */ "
|
|
10235
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
10160
10236
|
/* harmony export */ });
|
|
10161
|
-
/* harmony import */ var
|
|
10162
|
-
/* harmony import */ var
|
|
10237
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
10238
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
10163
10239
|
|
|
10164
10240
|
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
grayscale:
|
|
10168
|
-
|
|
10241
|
+
|
|
10242
|
+
var VictoryTheme = {
|
|
10243
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
10244
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
10245
|
+
};
|
|
10246
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
10169
10247
|
|
|
10170
10248
|
/***/ }),
|
|
10171
10249
|
|
|
@@ -10178,33 +10256,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10178
10256
|
"use strict";
|
|
10179
10257
|
__webpack_require__.r(__webpack_exports__);
|
|
10180
10258
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10181
|
-
/* harmony export */ "
|
|
10259
|
+
/* harmony export */ "VictoryTransition": () => (/* binding */ VictoryTransition)
|
|
10182
10260
|
/* harmony export */ });
|
|
10183
|
-
/* harmony import */ var
|
|
10184
|
-
/* harmony import */ var
|
|
10185
|
-
/* harmony import */ var
|
|
10186
|
-
/* harmony import */ var
|
|
10187
|
-
/* harmony import */ var
|
|
10188
|
-
/* harmony import */ var
|
|
10189
|
-
/* harmony import */ var
|
|
10190
|
-
/* harmony import */ var
|
|
10191
|
-
/* harmony import */ var
|
|
10192
|
-
/* harmony import */ var
|
|
10193
|
-
/* harmony import */ var
|
|
10194
|
-
/* harmony import */ var
|
|
10195
|
-
/* harmony import */ var
|
|
10196
|
-
/* harmony import */ var
|
|
10197
|
-
/* harmony import */ var
|
|
10198
|
-
/* harmony import */ var
|
|
10199
|
-
/* harmony import */ var
|
|
10200
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10201
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_6__);
|
|
10202
|
-
|
|
10261
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
10262
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
10263
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
10264
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
|
|
10265
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10266
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
10267
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
10268
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
10269
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
10270
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
10271
|
+
/* 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");
|
|
10272
|
+
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
10273
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10274
|
+
/* 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");
|
|
10275
|
+
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
10276
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10277
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
10203
10278
|
|
|
10204
10279
|
|
|
10205
10280
|
|
|
10206
10281
|
|
|
10207
|
-
function _extends() { _extends = Object.assign
|
|
10282
|
+
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); }
|
|
10208
10283
|
|
|
10209
10284
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
10210
10285
|
|
|
@@ -10214,7 +10289,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
10214
10289
|
|
|
10215
10290
|
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); }
|
|
10216
10291
|
|
|
10217
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
10292
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10218
10293
|
|
|
10219
10294
|
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); }; }
|
|
10220
10295
|
|
|
@@ -10224,10 +10299,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10224
10299
|
|
|
10225
10300
|
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; } }
|
|
10226
10301
|
|
|
10227
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10228
|
-
|
|
10229
|
-
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; }
|
|
10230
|
-
|
|
10302
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10231
10303
|
|
|
10232
10304
|
|
|
10233
10305
|
|
|
@@ -10248,6 +10320,9 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10248
10320
|
_classCallCheck(this, VictoryTransition);
|
|
10249
10321
|
|
|
10250
10322
|
_this = _super.call(this, props, context);
|
|
10323
|
+
_this.continuous = void 0;
|
|
10324
|
+
_this.timer = void 0;
|
|
10325
|
+
_this.transitionProps = void 0;
|
|
10251
10326
|
_this.state = {
|
|
10252
10327
|
nodesShouldLoad: false,
|
|
10253
10328
|
nodesDoneLoad: false
|
|
@@ -10255,7 +10330,6 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10255
10330
|
var child = _this.props.children;
|
|
10256
10331
|
var polar = child.props.polar;
|
|
10257
10332
|
_this.continuous = !polar && child.type && child.type.continuous === true;
|
|
10258
|
-
_this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
|
|
10259
10333
|
_this.timer = _this.context.transitionTimer;
|
|
10260
10334
|
return _this;
|
|
10261
10335
|
}
|
|
@@ -10272,7 +10346,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10272
10346
|
value: function shouldComponentUpdate(nextProps) {
|
|
10273
10347
|
var _this2 = this;
|
|
10274
10348
|
|
|
10275
|
-
if (!
|
|
10349
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
10276
10350
|
this.timer.bypassAnimation();
|
|
10277
10351
|
this.setState(this.getTransitionState(this.props, nextProps), function () {
|
|
10278
10352
|
return _this2.timer.resumeAnimation();
|
|
@@ -10301,10 +10375,10 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10301
10375
|
nextProps: nextProps
|
|
10302
10376
|
};
|
|
10303
10377
|
} else {
|
|
10304
|
-
var oldChildren =
|
|
10305
|
-
var nextChildren =
|
|
10378
|
+
var oldChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
|
|
10379
|
+
var nextChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(nextProps.children);
|
|
10306
10380
|
|
|
10307
|
-
var _Transitions$getIniti =
|
|
10381
|
+
var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getInitialTransitionState(oldChildren, nextChildren),
|
|
10308
10382
|
nodesWillExit = _Transitions$getIniti.nodesWillExit,
|
|
10309
10383
|
nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
|
|
10310
10384
|
childrenTransitions = _Transitions$getIniti.childrenTransitions,
|
|
@@ -10325,18 +10399,18 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10325
10399
|
value: function getDomainFromChildren(props, axis) {
|
|
10326
10400
|
var getChildDomains = function (children) {
|
|
10327
10401
|
return children.reduce(function (memo, child) {
|
|
10328
|
-
if (child.type &&
|
|
10402
|
+
if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getDomain)) {
|
|
10329
10403
|
var childDomain = child.props && child.type.getDomain(child.props, axis);
|
|
10330
10404
|
return childDomain ? memo.concat(childDomain) : memo;
|
|
10331
10405
|
} else if (child.props && child.props.children) {
|
|
10332
|
-
return memo.concat(getChildDomains(
|
|
10406
|
+
return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children)));
|
|
10333
10407
|
}
|
|
10334
10408
|
|
|
10335
10409
|
return memo;
|
|
10336
10410
|
}, []);
|
|
10337
10411
|
};
|
|
10338
10412
|
|
|
10339
|
-
var child =
|
|
10413
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
10340
10414
|
var childProps = child.props || {};
|
|
10341
10415
|
var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
|
|
10342
10416
|
|
|
@@ -10344,7 +10418,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10344
10418
|
return domain;
|
|
10345
10419
|
} else {
|
|
10346
10420
|
var childDomains = getChildDomains([child]);
|
|
10347
|
-
return childDomains.length === 0 ? [0, 1] : [
|
|
10421
|
+
return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMaxValue(childDomains)];
|
|
10348
10422
|
}
|
|
10349
10423
|
}
|
|
10350
10424
|
}, {
|
|
@@ -10359,10 +10433,12 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10359
10433
|
}, {
|
|
10360
10434
|
key: "pickDomainProps",
|
|
10361
10435
|
value: function pickDomainProps(props) {
|
|
10362
|
-
var
|
|
10436
|
+
var _props$animate;
|
|
10437
|
+
|
|
10438
|
+
var parentState = (_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.parentState;
|
|
10363
10439
|
|
|
10364
10440
|
if (parentState && parentState.nodesWillExit) {
|
|
10365
|
-
return this.
|
|
10441
|
+
return this.continuous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
|
|
10366
10442
|
}
|
|
10367
10443
|
|
|
10368
10444
|
return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
|
|
@@ -10371,7 +10447,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10371
10447
|
key: "getClipWidth",
|
|
10372
10448
|
value: function getClipWidth(props, child) {
|
|
10373
10449
|
var getDefaultClipWidth = function () {
|
|
10374
|
-
var range =
|
|
10450
|
+
var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(child.props, "x");
|
|
10375
10451
|
return range ? Math.abs(range[1] - range[0]) : props.width;
|
|
10376
10452
|
};
|
|
10377
10453
|
|
|
@@ -10381,13 +10457,14 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10381
10457
|
}, {
|
|
10382
10458
|
key: "render",
|
|
10383
10459
|
value: function render() {
|
|
10384
|
-
var
|
|
10460
|
+
var _this$props$animate,
|
|
10461
|
+
_this3 = this;
|
|
10385
10462
|
|
|
10386
10463
|
var props = this.pickProps();
|
|
10387
|
-
var getTransitionProps =
|
|
10464
|
+
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) {
|
|
10388
10465
|
return _this3.setState(newState);
|
|
10389
10466
|
});
|
|
10390
|
-
var child =
|
|
10467
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
10391
10468
|
var transitionProps = getTransitionProps(child);
|
|
10392
10469
|
this.transitionProps = transitionProps;
|
|
10393
10470
|
var domain = {
|
|
@@ -10396,29 +10473,29 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10396
10473
|
};
|
|
10397
10474
|
var clipWidth = this.getClipWidth(props, child);
|
|
10398
10475
|
|
|
10399
|
-
var combinedProps =
|
|
10476
|
+
var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10400
10477
|
domain: domain,
|
|
10401
10478
|
clipWidth: clipWidth
|
|
10402
10479
|
}, transitionProps, child.props);
|
|
10403
10480
|
|
|
10404
10481
|
var animationWhitelist = props.animationWhitelist || [];
|
|
10405
10482
|
var whitelist = animationWhitelist.concat(["clipWidth"]);
|
|
10406
|
-
var propsToAnimate = whitelist.length ?
|
|
10407
|
-
return /*#__PURE__*/
|
|
10483
|
+
var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
|
|
10484
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
|
|
10408
10485
|
data: propsToAnimate
|
|
10409
10486
|
}), function (newProps) {
|
|
10410
10487
|
if (child.props.groupComponent) {
|
|
10411
|
-
var groupComponent = _this3.continuous ? /*#__PURE__*/
|
|
10488
|
+
var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child.props.groupComponent, {
|
|
10412
10489
|
clipWidth: newProps.clipWidth || 0
|
|
10413
10490
|
}) : child.props.groupComponent;
|
|
10414
|
-
return /*#__PURE__*/
|
|
10491
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10415
10492
|
animate: null,
|
|
10416
10493
|
animating: true,
|
|
10417
10494
|
groupComponent: groupComponent
|
|
10418
10495
|
}, newProps, combinedProps));
|
|
10419
10496
|
}
|
|
10420
10497
|
|
|
10421
|
-
return /*#__PURE__*/
|
|
10498
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
10422
10499
|
animate: null,
|
|
10423
10500
|
animating: true
|
|
10424
10501
|
}, newProps, combinedProps));
|
|
@@ -10427,19 +10504,15 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
10427
10504
|
}]);
|
|
10428
10505
|
|
|
10429
10506
|
return VictoryTransition;
|
|
10430
|
-
}((
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
_defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]);
|
|
10441
|
-
|
|
10442
|
-
|
|
10507
|
+
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
10508
|
+
VictoryTransition.displayName = "VictoryTransition";
|
|
10509
|
+
VictoryTransition.propTypes = {
|
|
10510
|
+
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)]),
|
|
10511
|
+
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
10512
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
10513
|
+
};
|
|
10514
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
10515
|
+
//# sourceMappingURL=victory-transition.js.map
|
|
10443
10516
|
|
|
10444
10517
|
/***/ }),
|
|
10445
10518
|
|
|
@@ -10452,33 +10525,32 @@ _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__W
|
|
|
10452
10525
|
"use strict";
|
|
10453
10526
|
__webpack_require__.r(__webpack_exports__);
|
|
10454
10527
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10455
|
-
/* harmony export */ "
|
|
10528
|
+
/* harmony export */ "addEvents": () => (/* binding */ addEvents)
|
|
10456
10529
|
/* harmony export */ });
|
|
10457
|
-
/* harmony import */ var
|
|
10458
|
-
/* harmony import */ var
|
|
10459
|
-
/* harmony import */ var
|
|
10460
|
-
/* harmony import */ var
|
|
10461
|
-
/* harmony import */ var
|
|
10462
|
-
/* harmony import */ var
|
|
10463
|
-
/* harmony import */ var
|
|
10464
|
-
/* harmony import */ var
|
|
10465
|
-
/* harmony import */ var
|
|
10466
|
-
/* harmony import */ var
|
|
10467
|
-
/* harmony import */ var
|
|
10468
|
-
/* harmony import */ var
|
|
10469
|
-
/* harmony import */ var
|
|
10470
|
-
/* harmony import */ var
|
|
10471
|
-
/* harmony import */ var
|
|
10472
|
-
/* harmony import */ var
|
|
10473
|
-
/* harmony import */ var
|
|
10474
|
-
/* harmony import */ var
|
|
10530
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
10531
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
10532
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
10533
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
10534
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10535
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
|
|
10536
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
|
|
10537
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
|
|
10538
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
10539
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
|
|
10540
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
10541
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
|
|
10542
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
|
|
10543
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
|
|
10544
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10545
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
|
|
10546
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
10547
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
|
|
10475
10548
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
|
|
10476
10549
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
|
10477
10550
|
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
10478
10551
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
10479
10552
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_10__);
|
|
10480
10553
|
/* 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");
|
|
10481
|
-
/* 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");
|
|
10482
10554
|
|
|
10483
10555
|
|
|
10484
10556
|
|
|
@@ -10509,7 +10581,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
10509
10581
|
|
|
10510
10582
|
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); }
|
|
10511
10583
|
|
|
10512
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
10584
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10513
10585
|
|
|
10514
10586
|
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); }; }
|
|
10515
10587
|
|
|
@@ -10519,7 +10591,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
10519
10591
|
|
|
10520
10592
|
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; } }
|
|
10521
10593
|
|
|
10522
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10594
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
10523
10595
|
|
|
10524
10596
|
/*global window:false */
|
|
10525
10597
|
|
|
@@ -10527,9 +10599,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10527
10599
|
|
|
10528
10600
|
|
|
10529
10601
|
|
|
10530
|
-
|
|
10602
|
+
// DISCLAIMER:
|
|
10603
|
+
// This file is not currently tested, and it is first on the list of files
|
|
10604
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
10605
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
10531
10606
|
var datumHasXandY = function (datum) {
|
|
10532
|
-
return !
|
|
10607
|
+
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
|
|
10533
10608
|
}; // used for checking state changes. Expected components can be passed in via options
|
|
10534
10609
|
|
|
10535
10610
|
|
|
@@ -10541,44 +10616,45 @@ var defaultComponents = [{
|
|
|
10541
10616
|
}, {
|
|
10542
10617
|
name: "labels"
|
|
10543
10618
|
}];
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10619
|
+
function addEvents(WrappedComponent) {
|
|
10620
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10621
|
+
|
|
10622
|
+
// @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
|
|
10623
|
+
var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
|
|
10624
|
+
_inherits(AddEventsMixin, _WrappedComponent);
|
|
10547
10625
|
|
|
10548
|
-
var _super = _createSuper(
|
|
10626
|
+
var _super = _createSuper(AddEventsMixin);
|
|
10549
10627
|
|
|
10550
|
-
function
|
|
10628
|
+
function AddEventsMixin(props) {
|
|
10551
10629
|
var _this;
|
|
10552
10630
|
|
|
10553
|
-
_classCallCheck(this,
|
|
10631
|
+
_classCallCheck(this, AddEventsMixin);
|
|
10554
10632
|
|
|
10555
10633
|
_this = _super.call(this, props);
|
|
10556
|
-
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10557
|
-
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
10558
10634
|
_this.state = {};
|
|
10635
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
10636
|
+
_this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10559
10637
|
|
|
10560
10638
|
_this.getEvents = function (p, target, eventKey) {
|
|
10561
|
-
return
|
|
10639
|
+
return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
|
|
10562
10640
|
};
|
|
10563
10641
|
|
|
10564
|
-
_this.
|
|
10565
|
-
|
|
10566
|
-
var calculatedValues = _this.getCalculatedValues(props);
|
|
10567
|
-
|
|
10568
|
-
_this.cacheValues(calculatedValues);
|
|
10569
|
-
|
|
10570
|
-
_this.externalMutations = _this.getExternalMutations(props);
|
|
10571
|
-
_this.calculatedState = _this.getStateChanges(props);
|
|
10642
|
+
_this.externalMutations = _this.getExternalMutations(_this.props);
|
|
10643
|
+
_this.calculatedState = _this.getStateChanges(_this.props);
|
|
10572
10644
|
_this.globalEvents = {};
|
|
10573
10645
|
_this.prevGlobalEventKeys = [];
|
|
10574
10646
|
_this.boundGlobalEvents = {};
|
|
10647
|
+
|
|
10648
|
+
_this.cacheValues(_this.getCalculatedValues(props));
|
|
10649
|
+
|
|
10575
10650
|
return _this;
|
|
10576
10651
|
}
|
|
10577
10652
|
|
|
10578
|
-
_createClass(
|
|
10653
|
+
_createClass(AddEventsMixin, [{
|
|
10579
10654
|
key: "shouldComponentUpdate",
|
|
10580
10655
|
value: function shouldComponentUpdate(nextProps) {
|
|
10581
|
-
var externalMutations = this.getExternalMutations(nextProps);
|
|
10656
|
+
var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
|
|
10657
|
+
|
|
10582
10658
|
var animating = this.props.animating || this.props.animate;
|
|
10583
10659
|
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
10584
10660
|
|
|
@@ -10608,7 +10684,7 @@ var defaultComponents = [{
|
|
|
10608
10684
|
value: function componentDidMount() {
|
|
10609
10685
|
var _this2 = this;
|
|
10610
10686
|
|
|
10611
|
-
var globalEventKeys =
|
|
10687
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10612
10688
|
|
|
10613
10689
|
globalEventKeys.forEach(function (key) {
|
|
10614
10690
|
return _this2.addGlobalListener(key);
|
|
@@ -10623,15 +10699,15 @@ var defaultComponents = [{
|
|
|
10623
10699
|
var calculatedState = this.getStateChanges(prevProps);
|
|
10624
10700
|
this.calculatedState = calculatedState;
|
|
10625
10701
|
|
|
10626
|
-
var globalEventKeys =
|
|
10702
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10627
10703
|
|
|
10628
|
-
var removedGlobalEventKeys =
|
|
10704
|
+
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
10629
10705
|
|
|
10630
10706
|
removedGlobalEventKeys.forEach(function (key) {
|
|
10631
10707
|
return _this3.removeGlobalListener(key);
|
|
10632
10708
|
});
|
|
10633
10709
|
|
|
10634
|
-
var addedGlobalEventKeys =
|
|
10710
|
+
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
10635
10711
|
|
|
10636
10712
|
addedGlobalEventKeys.forEach(function (key) {
|
|
10637
10713
|
return _this3.addGlobalListener(key);
|
|
@@ -10677,12 +10753,11 @@ var defaultComponents = [{
|
|
|
10677
10753
|
}
|
|
10678
10754
|
|
|
10679
10755
|
var getState = function (key, type) {
|
|
10680
|
-
var result =
|
|
10756
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
10681
10757
|
|
|
10682
|
-
return
|
|
10758
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
|
|
10683
10759
|
};
|
|
10684
10760
|
|
|
10685
|
-
options = options || {};
|
|
10686
10761
|
var components = options.components || defaultComponents;
|
|
10687
10762
|
var stateChanges = components.map(function (component) {
|
|
10688
10763
|
if (!props.standalone && component.name === "parent") {
|
|
@@ -10699,9 +10774,9 @@ var defaultComponents = [{
|
|
|
10699
10774
|
}, {
|
|
10700
10775
|
key: "applyExternalMutations",
|
|
10701
10776
|
value: function applyExternalMutations(props, externalMutations) {
|
|
10702
|
-
if (!
|
|
10777
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
|
|
10703
10778
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
10704
|
-
memo =
|
|
10779
|
+
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
10705
10780
|
return memo;
|
|
10706
10781
|
}, []);
|
|
10707
10782
|
var compiledCallbacks = callbacks.length ? function () {
|
|
@@ -10718,12 +10793,12 @@ var defaultComponents = [{
|
|
|
10718
10793
|
var sharedEvents = props.sharedEvents;
|
|
10719
10794
|
var components = WrappedComponent.expectedComponents;
|
|
10720
10795
|
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
10721
|
-
var getSharedEventState = sharedEvents &&
|
|
10796
|
+
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
10722
10797
|
return undefined;
|
|
10723
10798
|
};
|
|
10724
10799
|
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
10725
10800
|
|
|
10726
|
-
var dataKeys =
|
|
10801
|
+
var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
|
|
10727
10802
|
return key !== "parent";
|
|
10728
10803
|
});
|
|
10729
10804
|
|
|
@@ -10743,32 +10818,32 @@ var defaultComponents = [{
|
|
|
10743
10818
|
value: function getExternalMutations(props) {
|
|
10744
10819
|
var sharedEvents = props.sharedEvents,
|
|
10745
10820
|
externalEventMutations = props.externalEventMutations;
|
|
10746
|
-
return
|
|
10821
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
10747
10822
|
}
|
|
10748
10823
|
}, {
|
|
10749
10824
|
key: "cacheValues",
|
|
10750
10825
|
value: function cacheValues(obj) {
|
|
10751
10826
|
var _this7 = this;
|
|
10752
10827
|
|
|
10753
|
-
|
|
10828
|
+
lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
|
|
10754
10829
|
_this7[key] = obj[key];
|
|
10755
10830
|
});
|
|
10756
10831
|
}
|
|
10757
10832
|
}, {
|
|
10758
10833
|
key: "getBaseProps",
|
|
10759
10834
|
value: function getBaseProps(props, getSharedEventState) {
|
|
10760
|
-
getSharedEventState = getSharedEventState || this.getSharedEventState;
|
|
10835
|
+
getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
|
|
10761
10836
|
var sharedParentState = getSharedEventState("parent", "parent");
|
|
10762
10837
|
var parentState = this.getEventState("parent", "parent");
|
|
10763
10838
|
|
|
10764
|
-
var baseParentProps =
|
|
10839
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
|
|
10765
10840
|
|
|
10766
10841
|
var parentPropsList = baseParentProps.parentControlledProps;
|
|
10767
|
-
var parentProps = parentPropsList ?
|
|
10842
|
+
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
|
|
10768
10843
|
|
|
10769
|
-
var modifiedProps =
|
|
10844
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
|
|
10770
10845
|
|
|
10771
|
-
return
|
|
10846
|
+
return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
10772
10847
|
}
|
|
10773
10848
|
}, {
|
|
10774
10849
|
key: "getAllEvents",
|
|
@@ -10796,21 +10871,21 @@ var defaultComponents = [{
|
|
|
10796
10871
|
if (this.hasEvents) {
|
|
10797
10872
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
10798
10873
|
|
|
10799
|
-
var componentProps =
|
|
10874
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10800
10875
|
index: index,
|
|
10801
10876
|
key: id
|
|
10802
10877
|
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
10803
10878
|
id: id
|
|
10804
10879
|
});
|
|
10805
10880
|
|
|
10806
|
-
var events =
|
|
10881
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
10807
10882
|
|
|
10808
|
-
return
|
|
10883
|
+
return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
|
|
10809
10884
|
events: events
|
|
10810
10885
|
});
|
|
10811
10886
|
}
|
|
10812
10887
|
|
|
10813
|
-
return
|
|
10888
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10814
10889
|
index: index,
|
|
10815
10890
|
key: id
|
|
10816
10891
|
}, component.props, baseProps, {
|
|
@@ -10833,11 +10908,14 @@ var defaultComponents = [{
|
|
|
10833
10908
|
}, {
|
|
10834
10909
|
key: "animateComponent",
|
|
10835
10910
|
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
10836
|
-
var
|
|
10837
|
-
|
|
10911
|
+
var _props$animate;
|
|
10912
|
+
|
|
10913
|
+
var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
|
|
10914
|
+
var Comp = this.constructor;
|
|
10915
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
|
|
10838
10916
|
animate: props.animate,
|
|
10839
10917
|
animationWhitelist: animationWhitelist
|
|
10840
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(
|
|
10918
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
|
|
10841
10919
|
} // Used by `VictoryLine` and `VictoryArea`
|
|
10842
10920
|
|
|
10843
10921
|
}, {
|
|
@@ -10849,7 +10927,7 @@ var defaultComponents = [{
|
|
|
10849
10927
|
labelComponent = props.labelComponent,
|
|
10850
10928
|
groupComponent = props.groupComponent;
|
|
10851
10929
|
|
|
10852
|
-
var dataKeys =
|
|
10930
|
+
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
|
|
10853
10931
|
|
|
10854
10932
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
10855
10933
|
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
@@ -10873,7 +10951,6 @@ var defaultComponents = [{
|
|
|
10873
10951
|
var dataComponent = props.dataComponent,
|
|
10874
10952
|
labelComponent = props.labelComponent,
|
|
10875
10953
|
groupComponent = props.groupComponent;
|
|
10876
|
-
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__.getSafeUserProps(props);
|
|
10877
10954
|
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
10878
10955
|
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
10879
10956
|
|
|
@@ -10893,14 +10970,16 @@ var defaultComponents = [{
|
|
|
10893
10970
|
return undefined;
|
|
10894
10971
|
}).filter(Boolean);
|
|
10895
10972
|
var children = [].concat(_toConsumableArray(dataComponents), _toConsumableArray(labelComponents));
|
|
10896
|
-
|
|
10897
|
-
return this.renderContainer(group, children);
|
|
10973
|
+
return this.renderContainer(groupComponent, children);
|
|
10898
10974
|
}
|
|
10899
10975
|
}]);
|
|
10900
10976
|
|
|
10901
|
-
return
|
|
10977
|
+
return AddEventsMixin;
|
|
10902
10978
|
}(WrappedComponent);
|
|
10903
|
-
|
|
10979
|
+
|
|
10980
|
+
return AddEventsMixin;
|
|
10981
|
+
}
|
|
10982
|
+
//# sourceMappingURL=add-events.js.map
|
|
10904
10983
|
|
|
10905
10984
|
/***/ }),
|
|
10906
10985
|
|
|
@@ -10913,14 +10992,14 @@ var defaultComponents = [{
|
|
|
10913
10992
|
"use strict";
|
|
10914
10993
|
__webpack_require__.r(__webpack_exports__);
|
|
10915
10994
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10916
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
10917
10995
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
10918
10996
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
10919
10997
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
10920
|
-
/* harmony export */ "
|
|
10921
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
10998
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
10922
10999
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
10923
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
11000
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
11001
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
11002
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
10924
11003
|
/* harmony export */ });
|
|
10925
11004
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
10926
11005
|
|
|
@@ -10934,9 +11013,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10934
11013
|
|
|
10935
11014
|
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; }
|
|
10936
11015
|
|
|
10937
|
-
/* eslint-disable func-style */
|
|
10938
|
-
|
|
10939
|
-
/* eslint-disable no-use-before-define */
|
|
10940
11016
|
function isNonEmptyArray(collection) {
|
|
10941
11017
|
return Array.isArray(collection) && collection.length > 0;
|
|
10942
11018
|
}
|
|
@@ -10975,7 +11051,8 @@ function getMaxValue(arr) {
|
|
|
10975
11051
|
}
|
|
10976
11052
|
|
|
10977
11053
|
var array = arr.concat(values);
|
|
10978
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
11054
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
11055
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
10979
11056
|
}
|
|
10980
11057
|
function getMinValue(arr) {
|
|
10981
11058
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -10983,8 +11060,10 @@ function getMinValue(arr) {
|
|
|
10983
11060
|
}
|
|
10984
11061
|
|
|
10985
11062
|
var array = arr.concat(values);
|
|
10986
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
11063
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
11064
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
10987
11065
|
}
|
|
11066
|
+
//# sourceMappingURL=collection.js.map
|
|
10988
11067
|
|
|
10989
11068
|
/***/ }),
|
|
10990
11069
|
|
|
@@ -10997,9 +11076,7 @@ function getMinValue(arr) {
|
|
|
10997
11076
|
"use strict";
|
|
10998
11077
|
__webpack_require__.r(__webpack_exports__);
|
|
10999
11078
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11000
|
-
/* harmony export */ "
|
|
11001
|
-
/* harmony export */ "baseProps": () => (/* binding */ baseProps),
|
|
11002
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
11079
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
11003
11080
|
/* harmony export */ });
|
|
11004
11081
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11005
11082
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11007,26 +11084,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11007
11084
|
|
|
11008
11085
|
|
|
11009
11086
|
var dataProps = {
|
|
11087
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11010
11088
|
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({
|
|
11011
11089
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
11012
11090
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
11013
11091
|
})]),
|
|
11092
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11014
11093
|
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)]),
|
|
11015
11094
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11016
11095
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11017
11096
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11018
11097
|
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)]),
|
|
11019
11098
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11020
|
-
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))]),
|
|
11099
|
+
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))]),
|
|
11021
11100
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
11022
11101
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11023
11102
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11024
11103
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11025
11104
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11026
11105
|
}),
|
|
11027
|
-
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))]),
|
|
11028
|
-
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))]),
|
|
11029
|
-
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))])
|
|
11106
|
+
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))]),
|
|
11107
|
+
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))]),
|
|
11108
|
+
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))])
|
|
11030
11109
|
};
|
|
11031
11110
|
var baseProps = {
|
|
11032
11111
|
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)]),
|
|
@@ -11035,14 +11114,17 @@ var baseProps = {
|
|
|
11035
11114
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
11036
11115
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
11037
11116
|
})]),
|
|
11117
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11038
11118
|
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({
|
|
11039
11119
|
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)]),
|
|
11040
11120
|
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)])
|
|
11041
11121
|
})]),
|
|
11122
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11042
11123
|
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({
|
|
11043
11124
|
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)]),
|
|
11044
11125
|
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)])
|
|
11045
11126
|
})]),
|
|
11127
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11046
11128
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11047
11129
|
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))]),
|
|
11048
11130
|
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))])
|
|
@@ -11053,20 +11135,23 @@ var baseProps = {
|
|
|
11053
11135
|
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)]),
|
|
11054
11136
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
11055
11137
|
})),
|
|
11138
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11056
11139
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11057
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
11140
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11058
11141
|
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)]),
|
|
11059
11142
|
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)]),
|
|
11060
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
11143
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
11061
11144
|
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)])
|
|
11062
11145
|
})),
|
|
11063
11146
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
11064
11147
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
11065
11148
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
11149
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11066
11150
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11067
11151
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11068
11152
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
11069
11153
|
}),
|
|
11154
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11070
11155
|
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({
|
|
11071
11156
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11072
11157
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -11075,17 +11160,19 @@ var baseProps = {
|
|
|
11075
11160
|
})]),
|
|
11076
11161
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
11077
11162
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11078
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
11079
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
11163
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
11164
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
11080
11165
|
})]),
|
|
11081
11166
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11082
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
11083
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
11167
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
11168
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
11084
11169
|
})]),
|
|
11170
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11085
11171
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11086
11172
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
11087
11173
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
11088
11174
|
}),
|
|
11175
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11089
11176
|
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({
|
|
11090
11177
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
11091
11178
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -11105,6 +11192,7 @@ var primitiveProps = {
|
|
|
11105
11192
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
11106
11193
|
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)]),
|
|
11107
11194
|
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)]),
|
|
11195
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
11108
11196
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
11109
11197
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
11110
11198
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -11120,6 +11208,12 @@ var primitiveProps = {
|
|
|
11120
11208
|
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)]),
|
|
11121
11209
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
11122
11210
|
};
|
|
11211
|
+
var CommonProps = {
|
|
11212
|
+
dataProps: dataProps,
|
|
11213
|
+
baseProps: baseProps,
|
|
11214
|
+
primitiveProps: primitiveProps
|
|
11215
|
+
};
|
|
11216
|
+
//# sourceMappingURL=common-props.js.map
|
|
11123
11217
|
|
|
11124
11218
|
/***/ }),
|
|
11125
11219
|
|
|
@@ -11132,10 +11226,10 @@ var primitiveProps = {
|
|
|
11132
11226
|
"use strict";
|
|
11133
11227
|
__webpack_require__.r(__webpack_exports__);
|
|
11134
11228
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11135
|
-
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
11136
11229
|
/* harmony export */ "createStringMap": () => (/* binding */ createStringMap),
|
|
11137
11230
|
/* harmony export */ "downsample": () => (/* binding */ downsample),
|
|
11138
11231
|
/* harmony export */ "formatData": () => (/* binding */ formatData),
|
|
11232
|
+
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
11139
11233
|
/* harmony export */ "generateData": () => (/* binding */ generateData),
|
|
11140
11234
|
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
11141
11235
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
@@ -11202,8 +11296,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11202
11296
|
|
|
11203
11297
|
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; }
|
|
11204
11298
|
|
|
11205
|
-
/* eslint-disable func-style */
|
|
11206
|
-
|
|
11207
11299
|
/* eslint-disable no-use-before-define */
|
|
11208
11300
|
|
|
11209
11301
|
|
|
@@ -11635,6 +11727,7 @@ function isDataComponent(component) {
|
|
|
11635
11727
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
11636
11728
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
11637
11729
|
}
|
|
11730
|
+
//# sourceMappingURL=data.js.map
|
|
11638
11731
|
|
|
11639
11732
|
/***/ }),
|
|
11640
11733
|
|
|
@@ -11697,8 +11790,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11697
11790
|
|
|
11698
11791
|
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; }
|
|
11699
11792
|
|
|
11700
|
-
/* eslint-disable func-style */
|
|
11701
|
-
|
|
11702
11793
|
/* eslint-disable no-use-before-define */
|
|
11703
11794
|
|
|
11704
11795
|
|
|
@@ -11738,8 +11829,9 @@ function getDomainPadding(props, axis) {
|
|
|
11738
11829
|
}
|
|
11739
11830
|
|
|
11740
11831
|
function getFlatData(dataset, axis) {
|
|
11832
|
+
var axisKey = "_".concat(axis);
|
|
11741
11833
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
11742
|
-
return datum[
|
|
11834
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
11743
11835
|
});
|
|
11744
11836
|
}
|
|
11745
11837
|
|
|
@@ -11804,7 +11896,9 @@ function padDomain(domain, props, axis) {
|
|
|
11804
11896
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
11805
11897
|
// Naive initial padding calculation
|
|
11806
11898
|
var initialPadding = {
|
|
11899
|
+
// @ts-expect-error `max/min` might be dates
|
|
11807
11900
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
11901
|
+
// @ts-expect-error `max/min` might be dates
|
|
11808
11902
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
11809
11903
|
}; // Adjust the domain by the initial padding
|
|
11810
11904
|
|
|
@@ -12089,6 +12183,7 @@ function isDomainComponent(component) {
|
|
|
12089
12183
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
12090
12184
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
12091
12185
|
}
|
|
12186
|
+
//# sourceMappingURL=domain.js.map
|
|
12092
12187
|
|
|
12093
12188
|
/***/ }),
|
|
12094
12189
|
|
|
@@ -12101,18 +12196,18 @@ function isDomainComponent(component) {
|
|
|
12101
12196
|
"use strict";
|
|
12102
12197
|
__webpack_require__.r(__webpack_exports__);
|
|
12103
12198
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12104
|
-
/* harmony export */ "
|
|
12105
|
-
/* harmony export */ "
|
|
12106
|
-
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
12199
|
+
/* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
|
|
12200
|
+
/* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
|
|
12107
12201
|
/* harmony export */ "getEventState": () => (/* binding */ getEventState),
|
|
12108
|
-
/* harmony export */ "
|
|
12109
|
-
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
12202
|
+
/* harmony export */ "getEvents": () => (/* binding */ getEvents),
|
|
12110
12203
|
/* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
|
|
12111
|
-
/* harmony export */ "
|
|
12204
|
+
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
12205
|
+
/* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
|
|
12112
12206
|
/* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
|
|
12113
12207
|
/* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
|
|
12114
|
-
/* harmony export */ "
|
|
12115
|
-
/* harmony export */ "
|
|
12208
|
+
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
12209
|
+
/* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
|
|
12210
|
+
/* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
|
|
12116
12211
|
/* harmony export */ });
|
|
12117
12212
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
12118
12213
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12157,15 +12252,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
12157
12252
|
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; }
|
|
12158
12253
|
|
|
12159
12254
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
12255
|
+
|
|
12160
12256
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
12161
12257
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
12162
12258
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
12163
12259
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
12164
12260
|
* (i.e. VictoryChart) in the case of shared events
|
|
12165
12261
|
*/
|
|
12166
|
-
// eslint-disable-next-line max-params
|
|
12167
|
-
|
|
12168
|
-
|
|
12262
|
+
// eslint-disable-next-line max-params
|
|
12263
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
12264
|
+
getScopedEvents) {
|
|
12169
12265
|
var _this = this;
|
|
12170
12266
|
|
|
12171
12267
|
// Returns all events that apply to a particular target element
|
|
@@ -12388,24 +12484,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
12388
12484
|
return memo;
|
|
12389
12485
|
}, {});
|
|
12390
12486
|
}
|
|
12391
|
-
/*
|
|
12487
|
+
/*
|
|
12488
|
+
* Returns a partially applied event handler for a specific target element
|
|
12392
12489
|
* This allows event handlers to have access to props controlling each element
|
|
12393
12490
|
*/
|
|
12394
12491
|
|
|
12395
12492
|
function getPartialEvents(events, eventKey, childProps) {
|
|
12396
|
-
|
|
12493
|
+
if (!events) return {};
|
|
12494
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
12397
12495
|
var appliedEvent = function (evt) {
|
|
12398
12496
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
12399
12497
|
};
|
|
12400
12498
|
|
|
12401
12499
|
memo[eventName] = appliedEvent;
|
|
12402
12500
|
return memo;
|
|
12403
|
-
}, {})
|
|
12501
|
+
}, {});
|
|
12404
12502
|
}
|
|
12503
|
+
|
|
12405
12504
|
/* Returns the property of the state object corresponding to event changes for
|
|
12406
12505
|
* a particular element
|
|
12407
12506
|
*/
|
|
12408
|
-
|
|
12507
|
+
// eslint-disable-next-line max-params
|
|
12409
12508
|
function getEventState(eventKey, namespace, childType) {
|
|
12410
12509
|
// Mandatory usage: `getEventState.bind(this)`
|
|
12411
12510
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -12590,6 +12689,7 @@ var emulateReactEvent = function (event) {
|
|
|
12590
12689
|
nativeEvent: event
|
|
12591
12690
|
});
|
|
12592
12691
|
};
|
|
12692
|
+
//# sourceMappingURL=events.js.map
|
|
12593
12693
|
|
|
12594
12694
|
/***/ }),
|
|
12595
12695
|
|
|
@@ -12602,25 +12702,25 @@ var emulateReactEvent = function (event) {
|
|
|
12602
12702
|
"use strict";
|
|
12603
12703
|
__webpack_require__.r(__webpack_exports__);
|
|
12604
12704
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12605
|
-
/* harmony export */ "
|
|
12606
|
-
/* harmony export */ "
|
|
12607
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
12608
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
12609
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
12610
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
12611
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
12705
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
12706
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
12612
12707
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
12613
12708
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
12614
|
-
/* harmony export */ "
|
|
12615
|
-
/* harmony export */ "
|
|
12616
|
-
/* harmony export */ "
|
|
12709
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
12710
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
12711
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
12712
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
12617
12713
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
12714
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
12618
12715
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
12619
|
-
/* harmony export */ "
|
|
12716
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
12717
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
12718
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
12620
12719
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
12621
|
-
/* harmony export */ "
|
|
12720
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
12721
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
12622
12722
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
12623
|
-
/* harmony export */ "
|
|
12723
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
12624
12724
|
/* harmony export */ });
|
|
12625
12725
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
12626
12726
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12643,8 +12743,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12643
12743
|
|
|
12644
12744
|
|
|
12645
12745
|
|
|
12646
|
-
/* eslint-disable func-style */
|
|
12647
|
-
|
|
12648
12746
|
/* eslint-disable no-use-before-define */
|
|
12649
12747
|
|
|
12650
12748
|
|
|
@@ -12673,7 +12771,7 @@ function getPolarRange(props, axis) {
|
|
|
12673
12771
|
|
|
12674
12772
|
/**
|
|
12675
12773
|
* creates an object with some keys excluded
|
|
12676
|
-
* replacement for lodash.omit for performance. does not
|
|
12774
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
12677
12775
|
* @param {Object} originalObject: created object will be based on this object
|
|
12678
12776
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
12679
12777
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -12686,6 +12784,7 @@ function omit(originalObject) {
|
|
|
12686
12784
|
var newObject = {};
|
|
12687
12785
|
|
|
12688
12786
|
for (var key in originalObject) {
|
|
12787
|
+
// @ts-expect-error String is not assignable to Key
|
|
12689
12788
|
if (ks.indexOf(key) >= 0) {
|
|
12690
12789
|
continue;
|
|
12691
12790
|
}
|
|
@@ -12918,7 +13017,9 @@ function reduceChildren(children, iteratee) {
|
|
|
12918
13017
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
12919
13018
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
12920
13019
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
12921
|
-
return
|
|
13020
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
13021
|
+
memo.concat(item)
|
|
13022
|
+
);
|
|
12922
13023
|
};
|
|
12923
13024
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
12924
13025
|
|
|
@@ -12962,7 +13063,7 @@ function reduceChildren(children, iteratee) {
|
|
|
12962
13063
|
/**
|
|
12963
13064
|
* @param {Object} props: the props object
|
|
12964
13065
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
12965
|
-
* children or nested children are
|
|
13066
|
+
* children or nested children are horizontal
|
|
12966
13067
|
*/
|
|
12967
13068
|
|
|
12968
13069
|
function isHorizontal(props) {
|
|
@@ -12985,6 +13086,7 @@ function isHorizontal(props) {
|
|
|
12985
13086
|
|
|
12986
13087
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
12987
13088
|
}
|
|
13089
|
+
//# sourceMappingURL=helpers.js.map
|
|
12988
13090
|
|
|
12989
13091
|
/***/ }),
|
|
12990
13092
|
|
|
@@ -12998,17 +13100,16 @@ function isHorizontal(props) {
|
|
|
12998
13100
|
__webpack_require__.r(__webpack_exports__);
|
|
12999
13101
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13000
13102
|
/* harmony export */ "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
|
|
13001
|
-
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
13002
13103
|
/* harmony export */ "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
|
|
13003
13104
|
/* harmony export */ "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
|
|
13004
|
-
/* harmony export */ "
|
|
13005
|
-
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
13105
|
+
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
13006
13106
|
/* harmony export */ "isImmutable": () => (/* binding */ isImmutable),
|
|
13107
|
+
/* harmony export */ "isIterable": () => (/* binding */ isIterable),
|
|
13007
13108
|
/* harmony export */ "isList": () => (/* binding */ isList),
|
|
13008
13109
|
/* harmony export */ "isMap": () => (/* binding */ isMap),
|
|
13110
|
+
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
13009
13111
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
13010
13112
|
/* harmony export */ });
|
|
13011
|
-
/* eslint-disable func-style */
|
|
13012
13113
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
13013
13114
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
13014
13115
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -13029,15 +13130,16 @@ function isMap(x) {
|
|
|
13029
13130
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
13030
13131
|
}
|
|
13031
13132
|
function shallowToJS(x, whitelist) {
|
|
13032
|
-
return isIterable(x) ? x.reduce(function (
|
|
13133
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
13033
13134
|
if (whitelist && whitelist[key]) {
|
|
13034
13135
|
curr = shallowToJS(curr);
|
|
13035
13136
|
}
|
|
13036
13137
|
|
|
13037
|
-
|
|
13038
|
-
return
|
|
13138
|
+
result[key] = curr;
|
|
13139
|
+
return result;
|
|
13039
13140
|
}, isList(x) ? [] : {}) : x;
|
|
13040
13141
|
}
|
|
13142
|
+
//# sourceMappingURL=immutable.js.map
|
|
13041
13143
|
|
|
13042
13144
|
/***/ }),
|
|
13043
13145
|
|
|
@@ -13050,20 +13152,18 @@ function shallowToJS(x, whitelist) {
|
|
|
13050
13152
|
"use strict";
|
|
13051
13153
|
__webpack_require__.r(__webpack_exports__);
|
|
13052
13154
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13053
|
-
/* harmony export */ "
|
|
13155
|
+
/* harmony export */ "getDegrees": () => (/* binding */ getDegrees),
|
|
13156
|
+
/* harmony export */ "getPolarAngle": () => (/* binding */ getPolarAngle),
|
|
13054
13157
|
/* harmony export */ "getPolarTextAnchor": () => (/* binding */ getPolarTextAnchor),
|
|
13055
13158
|
/* harmony export */ "getPolarVerticalAnchor": () => (/* binding */ getPolarVerticalAnchor),
|
|
13056
|
-
/* harmony export */ "
|
|
13057
|
-
/* harmony export */ "
|
|
13058
|
-
/* harmony export */ "getProps": () => (/* binding */ getProps)
|
|
13159
|
+
/* harmony export */ "getProps": () => (/* binding */ getProps),
|
|
13160
|
+
/* harmony export */ "getText": () => (/* binding */ getText)
|
|
13059
13161
|
/* harmony export */ });
|
|
13060
13162
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
13061
13163
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
13062
13164
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
13063
13165
|
|
|
13064
13166
|
|
|
13065
|
-
/* eslint-disable func-style */
|
|
13066
|
-
|
|
13067
13167
|
/* eslint-disable no-use-before-define */
|
|
13068
13168
|
|
|
13069
13169
|
|
|
@@ -13297,6 +13397,7 @@ function getProps(props, index) {
|
|
|
13297
13397
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
13298
13398
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
13299
13399
|
}
|
|
13400
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
13300
13401
|
|
|
13301
13402
|
/***/ }),
|
|
13302
13403
|
|
|
@@ -13315,7 +13416,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13315
13416
|
|
|
13316
13417
|
/* eslint-disable no-console */
|
|
13317
13418
|
// TODO: Use "warning" npm module like React is switching to.
|
|
13318
|
-
// eslint-disable-next-line func-style
|
|
13319
13419
|
function warn(message) {
|
|
13320
13420
|
if (true) {
|
|
13321
13421
|
if (console && console.warn) {
|
|
@@ -13323,6 +13423,7 @@ function warn(message) {
|
|
|
13323
13423
|
}
|
|
13324
13424
|
}
|
|
13325
13425
|
}
|
|
13426
|
+
//# sourceMappingURL=log.js.map
|
|
13326
13427
|
|
|
13327
13428
|
/***/ }),
|
|
13328
13429
|
|
|
@@ -13335,27 +13436,25 @@ function warn(message) {
|
|
|
13335
13436
|
"use strict";
|
|
13336
13437
|
__webpack_require__.r(__webpack_exports__);
|
|
13337
13438
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13338
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
13339
13439
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
13340
|
-
/* harmony export */ "
|
|
13341
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
13342
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
13440
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
13343
13441
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
13344
|
-
/* harmony export */ "
|
|
13442
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
13345
13443
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
13444
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
13346
13445
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
13347
|
-
/* harmony export */ "
|
|
13446
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
13447
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
13448
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
13348
13449
|
/* harmony export */ });
|
|
13349
13450
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
13350
13451
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
13351
13452
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
13352
13453
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
13353
|
-
/* harmony import */ var
|
|
13354
|
-
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
13355
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
13454
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
13356
13455
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
13357
13456
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
13358
|
-
|
|
13457
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
13359
13458
|
|
|
13360
13459
|
|
|
13361
13460
|
|
|
@@ -13363,6 +13462,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13363
13462
|
|
|
13364
13463
|
|
|
13365
13464
|
|
|
13465
|
+
|
|
13466
|
+
|
|
13366
13467
|
/**
|
|
13367
13468
|
* Return a new validator based on `validator` but with the option to chain
|
|
13368
13469
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -13370,30 +13471,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13370
13471
|
* @param {Function} validator Validation function.
|
|
13371
13472
|
* @returns {Function} Validator with `isRequired` option.
|
|
13372
13473
|
*/
|
|
13373
|
-
|
|
13374
13474
|
var makeChainable = function (validator) {
|
|
13375
|
-
|
|
13376
|
-
|
|
13377
|
-
|
|
13475
|
+
var createChainable = function (isRequired) {
|
|
13476
|
+
return function (props, propName, componentName) {
|
|
13477
|
+
var value = props[propName];
|
|
13378
13478
|
|
|
13379
|
-
|
|
13380
|
-
|
|
13381
|
-
|
|
13382
|
-
|
|
13479
|
+
if (value === undefined || value === null) {
|
|
13480
|
+
if (isRequired) {
|
|
13481
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
13482
|
+
}
|
|
13383
13483
|
|
|
13384
|
-
|
|
13385
|
-
|
|
13484
|
+
return null;
|
|
13485
|
+
}
|
|
13386
13486
|
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13487
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
13488
|
+
rest[_key - 3] = arguments[_key];
|
|
13489
|
+
}
|
|
13390
13490
|
|
|
13391
|
-
|
|
13491
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13492
|
+
};
|
|
13392
13493
|
};
|
|
13393
13494
|
|
|
13394
|
-
var chainable =
|
|
13395
|
-
|
|
13396
|
-
|
|
13495
|
+
var chainable = Object.assign(createChainable(false), {
|
|
13496
|
+
isRequired: createChainable(true)
|
|
13497
|
+
});
|
|
13397
13498
|
return chainable;
|
|
13398
13499
|
};
|
|
13399
13500
|
|
|
@@ -13423,7 +13524,7 @@ var getConstructor = function (value) {
|
|
|
13423
13524
|
};
|
|
13424
13525
|
/**
|
|
13425
13526
|
* Get the name of the constructor used to create `value`, using
|
|
13426
|
-
* `Object.
|
|
13527
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
13427
13528
|
* "null" or "undefined", respectively.
|
|
13428
13529
|
* @param {*} value Instance to return the constructor name of.
|
|
13429
13530
|
* @returns {String} Name of the constructor.
|
|
@@ -13453,10 +13554,11 @@ function deprecated(propType, explanation) {
|
|
|
13453
13554
|
var value = props[propName];
|
|
13454
13555
|
|
|
13455
13556
|
if (value !== null && value !== undefined) {
|
|
13456
|
-
|
|
13557
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
13457
13558
|
}
|
|
13458
13559
|
|
|
13459
|
-
|
|
13560
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
13561
|
+
return null;
|
|
13460
13562
|
};
|
|
13461
13563
|
}
|
|
13462
13564
|
/**
|
|
@@ -13475,7 +13577,7 @@ function allOfType(validators) {
|
|
|
13475
13577
|
|
|
13476
13578
|
return validators.reduce(function (result, validator) {
|
|
13477
13579
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13478
|
-
},
|
|
13580
|
+
}, null);
|
|
13479
13581
|
});
|
|
13480
13582
|
}
|
|
13481
13583
|
/**
|
|
@@ -13489,7 +13591,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
13489
13591
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
13490
13592
|
}
|
|
13491
13593
|
|
|
13492
|
-
return
|
|
13594
|
+
return null;
|
|
13493
13595
|
});
|
|
13494
13596
|
/**
|
|
13495
13597
|
* Check that the value is an integer.
|
|
@@ -13502,7 +13604,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
13502
13604
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
13503
13605
|
}
|
|
13504
13606
|
|
|
13505
|
-
return
|
|
13607
|
+
return null;
|
|
13506
13608
|
});
|
|
13507
13609
|
/**
|
|
13508
13610
|
* Check that the value is greater than zero.
|
|
@@ -13515,7 +13617,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
13515
13617
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
13516
13618
|
}
|
|
13517
13619
|
|
|
13518
|
-
return
|
|
13620
|
+
return null;
|
|
13519
13621
|
});
|
|
13520
13622
|
/**
|
|
13521
13623
|
* Check that the value is an Array of two unique values.
|
|
@@ -13528,32 +13630,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
13528
13630
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
13529
13631
|
}
|
|
13530
13632
|
|
|
13531
|
-
return
|
|
13633
|
+
return null;
|
|
13532
13634
|
});
|
|
13533
13635
|
/**
|
|
13534
13636
|
* Check that the value looks like a d3 `scale` function.
|
|
13535
13637
|
*/
|
|
13536
13638
|
|
|
13537
13639
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
13538
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13539
|
-
|
|
13540
|
-
var validScale = function (scl) {
|
|
13541
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
13542
|
-
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);
|
|
13543
|
-
} else if (typeof scl === "string") {
|
|
13544
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
13545
|
-
}
|
|
13546
|
-
|
|
13547
|
-
return false;
|
|
13548
|
-
};
|
|
13549
|
-
|
|
13550
13640
|
var value = props[propName];
|
|
13551
13641
|
|
|
13552
|
-
if (!validScale(value)) {
|
|
13642
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
13553
13643
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
13554
13644
|
}
|
|
13555
13645
|
|
|
13556
|
-
return
|
|
13646
|
+
return null;
|
|
13557
13647
|
});
|
|
13558
13648
|
/**
|
|
13559
13649
|
* Check that an array contains items of the same type.
|
|
@@ -13567,7 +13657,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
13567
13657
|
}
|
|
13568
13658
|
|
|
13569
13659
|
if (values.length < 2) {
|
|
13570
|
-
return
|
|
13660
|
+
return null;
|
|
13571
13661
|
}
|
|
13572
13662
|
|
|
13573
13663
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -13582,7 +13672,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
13582
13672
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
13583
13673
|
}
|
|
13584
13674
|
|
|
13585
|
-
return
|
|
13675
|
+
return null;
|
|
13586
13676
|
});
|
|
13587
13677
|
/**
|
|
13588
13678
|
* Check that array prop length matches props.data.length
|
|
@@ -13593,7 +13683,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
13593
13683
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
13594
13684
|
}
|
|
13595
13685
|
|
|
13596
|
-
return
|
|
13686
|
+
return null;
|
|
13597
13687
|
});
|
|
13598
13688
|
/**
|
|
13599
13689
|
* Check that the value is a regular expression
|
|
@@ -13604,8 +13694,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
13604
13694
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
13605
13695
|
}
|
|
13606
13696
|
|
|
13607
|
-
return
|
|
13697
|
+
return null;
|
|
13608
13698
|
});
|
|
13699
|
+
//# sourceMappingURL=prop-types.js.map
|
|
13609
13700
|
|
|
13610
13701
|
/***/ }),
|
|
13611
13702
|
|
|
@@ -13618,12 +13709,13 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
13618
13709
|
"use strict";
|
|
13619
13710
|
__webpack_require__.r(__webpack_exports__);
|
|
13620
13711
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13621
|
-
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
13622
13712
|
/* harmony export */ "getBaseScale": () => (/* binding */ getBaseScale),
|
|
13623
13713
|
/* harmony export */ "getDefaultScale": () => (/* binding */ getDefaultScale),
|
|
13714
|
+
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
13624
13715
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
13625
13716
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
13626
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
13717
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
13718
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
13627
13719
|
/* harmony export */ });
|
|
13628
13720
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
13629
13721
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -13641,8 +13733,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13641
13733
|
|
|
13642
13734
|
|
|
13643
13735
|
|
|
13644
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13736
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13645
13737
|
|
|
13738
|
+
// Private Functions
|
|
13646
13739
|
function toNewName(scale) {
|
|
13647
13740
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
13648
13741
|
var capitalize = function (s) {
|
|
@@ -13712,7 +13805,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
13712
13805
|
|
|
13713
13806
|
|
|
13714
13807
|
function getScaleFromName(name) {
|
|
13715
|
-
|
|
13808
|
+
if (validScale(name)) {
|
|
13809
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
13810
|
+
|
|
13811
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
13812
|
+
}
|
|
13813
|
+
|
|
13814
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
13716
13815
|
}
|
|
13717
13816
|
function getBaseScale(props, axis) {
|
|
13718
13817
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -13722,7 +13821,7 @@ function getBaseScale(props, axis) {
|
|
|
13722
13821
|
}
|
|
13723
13822
|
|
|
13724
13823
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
13725
|
-
return
|
|
13824
|
+
return getScaleFromName(defaultScale);
|
|
13726
13825
|
}
|
|
13727
13826
|
function getDefaultScale() {
|
|
13728
13827
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -13735,7 +13834,7 @@ function getScaleFromProps(props, axis) {
|
|
|
13735
13834
|
var scale = props.scale[axis] || props.scale;
|
|
13736
13835
|
|
|
13737
13836
|
if (validScale(scale)) {
|
|
13738
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
13837
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
13739
13838
|
}
|
|
13740
13839
|
|
|
13741
13840
|
return undefined;
|
|
@@ -13770,6 +13869,7 @@ function getType(scale) {
|
|
|
13770
13869
|
})[0];
|
|
13771
13870
|
return scaleType ? scaleType.name : undefined;
|
|
13772
13871
|
}
|
|
13872
|
+
//# sourceMappingURL=scale.js.map
|
|
13773
13873
|
|
|
13774
13874
|
/***/ }),
|
|
13775
13875
|
|
|
@@ -13782,11 +13882,9 @@ function getType(scale) {
|
|
|
13782
13882
|
"use strict";
|
|
13783
13883
|
__webpack_require__.r(__webpack_exports__);
|
|
13784
13884
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13785
|
-
/* harmony export */ "
|
|
13786
|
-
/* harmony export */ "
|
|
13885
|
+
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
13886
|
+
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
13787
13887
|
/* harmony export */ });
|
|
13788
|
-
/* eslint-disable func-style */
|
|
13789
|
-
|
|
13790
13888
|
/**
|
|
13791
13889
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
13792
13890
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -13843,6 +13941,7 @@ function getColorScale(name) {
|
|
|
13843
13941
|
};
|
|
13844
13942
|
return name ? scales[name] : scales.grayscale;
|
|
13845
13943
|
}
|
|
13944
|
+
//# sourceMappingURL=style.js.map
|
|
13846
13945
|
|
|
13847
13946
|
/***/ }),
|
|
13848
13947
|
|
|
@@ -13855,9 +13954,9 @@ function getColorScale(name) {
|
|
|
13855
13954
|
"use strict";
|
|
13856
13955
|
__webpack_require__.r(__webpack_exports__);
|
|
13857
13956
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13858
|
-
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels),
|
|
13859
13957
|
/* harmony export */ "_approximateTextSizeInternal": () => (/* binding */ _approximateTextSizeInternal),
|
|
13860
|
-
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize)
|
|
13958
|
+
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize),
|
|
13959
|
+
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels)
|
|
13861
13960
|
/* harmony export */ });
|
|
13862
13961
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
13863
13962
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -14047,8 +14146,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
14047
14146
|
|
|
14048
14147
|
|
|
14049
14148
|
var convertLengthToPixels = function (length, fontSize) {
|
|
14050
|
-
var
|
|
14051
|
-
|
|
14149
|
+
var _length$match;
|
|
14150
|
+
|
|
14151
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
14152
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
14052
14153
|
var result;
|
|
14053
14154
|
|
|
14054
14155
|
if (!attribute) {
|
|
@@ -14114,9 +14215,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
14114
14215
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
14115
14216
|
return total + lineStyle.lineHeight * height;
|
|
14116
14217
|
}, 0);
|
|
14117
|
-
};
|
|
14118
|
-
|
|
14218
|
+
};
|
|
14119
14219
|
|
|
14220
|
+
// Stubbable implementation.
|
|
14120
14221
|
var _approximateTextSizeInternal = {
|
|
14121
14222
|
impl: function (text, style) {
|
|
14122
14223
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -14135,7 +14236,7 @@ var _approximateTextSizeInternal = {
|
|
|
14135
14236
|
};
|
|
14136
14237
|
/**
|
|
14137
14238
|
* Predict text size by font params.
|
|
14138
|
-
* @param {string} text Content for width calculation.
|
|
14239
|
+
* @param {string|string[]} text Content for width calculation.
|
|
14139
14240
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
14140
14241
|
* @param {string} style.fontFamily Text fontFamily.
|
|
14141
14242
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -14148,6 +14249,7 @@ var _approximateTextSizeInternal = {
|
|
|
14148
14249
|
var approximateTextSize = function (text, style) {
|
|
14149
14250
|
return _approximateTextSizeInternal.impl(text, style);
|
|
14150
14251
|
};
|
|
14252
|
+
//# sourceMappingURL=textsize.js.map
|
|
14151
14253
|
|
|
14152
14254
|
/***/ }),
|
|
14153
14255
|
|
|
@@ -14178,6 +14280,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
14178
14280
|
});
|
|
14179
14281
|
TimerContext.displayName = "TimerContext";
|
|
14180
14282
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
14283
|
+
//# sourceMappingURL=timer-context.js.map
|
|
14181
14284
|
|
|
14182
14285
|
/***/ }),
|
|
14183
14286
|
|
|
@@ -14203,11 +14306,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
14203
14306
|
|
|
14204
14307
|
var Timer = /*#__PURE__*/function () {
|
|
14205
14308
|
function Timer() {
|
|
14309
|
+
var _this = this;
|
|
14310
|
+
|
|
14206
14311
|
_classCallCheck(this, Timer);
|
|
14207
14312
|
|
|
14313
|
+
this.shouldAnimate = void 0;
|
|
14314
|
+
this.subscribers = void 0;
|
|
14315
|
+
this.activeSubscriptions = void 0;
|
|
14316
|
+
this.timer = void 0;
|
|
14317
|
+
|
|
14318
|
+
this.loop = function () {
|
|
14319
|
+
_this.subscribers.forEach(function (s) {
|
|
14320
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
14321
|
+
});
|
|
14322
|
+
};
|
|
14323
|
+
|
|
14208
14324
|
this.shouldAnimate = true;
|
|
14209
14325
|
this.subscribers = [];
|
|
14210
|
-
this.loop = this.loop.bind(this);
|
|
14211
14326
|
this.timer = null;
|
|
14212
14327
|
this.activeSubscriptions = 0;
|
|
14213
14328
|
}
|
|
@@ -14222,13 +14337,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
14222
14337
|
value: function resumeAnimation() {
|
|
14223
14338
|
this.shouldAnimate = true;
|
|
14224
14339
|
}
|
|
14225
|
-
}, {
|
|
14226
|
-
key: "loop",
|
|
14227
|
-
value: function loop() {
|
|
14228
|
-
this.subscribers.forEach(function (s) {
|
|
14229
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
14230
|
-
});
|
|
14231
|
-
}
|
|
14232
14340
|
}, {
|
|
14233
14341
|
key: "start",
|
|
14234
14342
|
value: function start() {
|
|
@@ -14275,6 +14383,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
14275
14383
|
}();
|
|
14276
14384
|
|
|
14277
14385
|
|
|
14386
|
+
//# sourceMappingURL=timer.js.map
|
|
14278
14387
|
|
|
14279
14388
|
/***/ }),
|
|
14280
14389
|
|
|
@@ -14365,7 +14474,7 @@ function getChildData(child) {
|
|
|
14365
14474
|
}
|
|
14366
14475
|
/**
|
|
14367
14476
|
* If a parent component has animation enabled, calculate the transitions
|
|
14368
|
-
* for any data of any child component that supports data transitions
|
|
14477
|
+
* for any data of any child component that supports data transitions.
|
|
14369
14478
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
14370
14479
|
* in the first set and not the second, in the second and not the first,
|
|
14371
14480
|
* or both.
|
|
@@ -14494,7 +14603,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
14494
14603
|
|
|
14495
14604
|
if (exitingNodes) {
|
|
14496
14605
|
// After the exit transition occurs, trigger the animations for
|
|
14497
|
-
// nodes that are neither exiting
|
|
14606
|
+
// nodes that are neither exiting nor entering.
|
|
14498
14607
|
animate.onEnd = cb;
|
|
14499
14608
|
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.
|
|
14500
14609
|
|
|
@@ -14564,7 +14673,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
14564
14673
|
* and its index in the parent's children array.
|
|
14565
14674
|
*
|
|
14566
14675
|
* In particular, this will include an `animate` object that is set appropriately
|
|
14567
|
-
* so that each child will be
|
|
14676
|
+
* so that each child will be synchronized for each stage of a transition
|
|
14568
14677
|
* animation. It will also include a transformed `data` object, where each datum
|
|
14569
14678
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
14570
14679
|
* functions.
|
|
@@ -14709,6 +14818,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
14709
14818
|
};
|
|
14710
14819
|
};
|
|
14711
14820
|
}
|
|
14821
|
+
//# sourceMappingURL=transitions.js.map
|
|
14712
14822
|
|
|
14713
14823
|
/***/ }),
|
|
14714
14824
|
|
|
@@ -14721,8 +14831,11 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
14721
14831
|
"use strict";
|
|
14722
14832
|
__webpack_require__.r(__webpack_exports__);
|
|
14723
14833
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14724
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
14834
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
14835
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
14725
14836
|
/* harmony export */ });
|
|
14837
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14838
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14726
14839
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14727
14840
|
|
|
14728
14841
|
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."); }
|
|
@@ -14741,16 +14854,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
14741
14854
|
|
|
14742
14855
|
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; }
|
|
14743
14856
|
|
|
14857
|
+
|
|
14744
14858
|
/*
|
|
14745
14859
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
14746
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
14860
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
14747
14861
|
starts with these characters.
|
|
14748
14862
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
14749
14863
|
*/
|
|
14864
|
+
|
|
14750
14865
|
var USER_PROPS_SAFELIST = {
|
|
14751
14866
|
startsWith: ["data-", "aria-"],
|
|
14752
14867
|
exactMatch: []
|
|
14753
14868
|
};
|
|
14869
|
+
|
|
14754
14870
|
/**
|
|
14755
14871
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
14756
14872
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -14759,7 +14875,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
14759
14875
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
14760
14876
|
* otherwise
|
|
14761
14877
|
*/
|
|
14762
|
-
|
|
14763
14878
|
var doesPropStartWith = function (key) {
|
|
14764
14879
|
var startsWith = false;
|
|
14765
14880
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -14833,6 +14948,18 @@ var getSafeUserProps = function (props) {
|
|
|
14833
14948
|
return [key, getValue(value, props)];
|
|
14834
14949
|
}));
|
|
14835
14950
|
};
|
|
14951
|
+
/**
|
|
14952
|
+
* Wraps a component and adds safe user props
|
|
14953
|
+
*
|
|
14954
|
+
* @param {ReactElement} component: parent component
|
|
14955
|
+
* @param {Object} props: props to be filtered
|
|
14956
|
+
* @returns {ReactElement} modified component
|
|
14957
|
+
*/
|
|
14958
|
+
|
|
14959
|
+
var withSafeUserProps = function (component, props) {
|
|
14960
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
14961
|
+
};
|
|
14962
|
+
//# sourceMappingURL=user-props.js.map
|
|
14836
14963
|
|
|
14837
14964
|
/***/ }),
|
|
14838
14965
|
|
|
@@ -14981,9 +15108,9 @@ function ascending(a, b) {
|
|
|
14981
15108
|
"use strict";
|
|
14982
15109
|
__webpack_require__.r(__webpack_exports__);
|
|
14983
15110
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14984
|
-
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
14985
|
-
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
14986
15111
|
/* harmony export */ "bisectCenter": () => (/* binding */ bisectCenter),
|
|
15112
|
+
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
15113
|
+
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
14987
15114
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
14988
15115
|
/* harmony export */ });
|
|
14989
15116
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
@@ -15369,9 +15496,9 @@ function range(start, stop, step) {
|
|
|
15369
15496
|
"use strict";
|
|
15370
15497
|
__webpack_require__.r(__webpack_exports__);
|
|
15371
15498
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15372
|
-
/* harmony export */ "
|
|
15499
|
+
/* harmony export */ "ascendingDefined": () => (/* binding */ ascendingDefined),
|
|
15373
15500
|
/* harmony export */ "compareDefined": () => (/* binding */ compareDefined),
|
|
15374
|
-
/* harmony export */ "
|
|
15501
|
+
/* harmony export */ "default": () => (/* binding */ sort)
|
|
15375
15502
|
/* harmony export */ });
|
|
15376
15503
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
15377
15504
|
/* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permute.js */ "../../victory-vendor/node_modules/d3-array/src/permute.js");
|
|
@@ -15499,14 +15626,14 @@ function tickStep(start, stop, count) {
|
|
|
15499
15626
|
__webpack_require__.r(__webpack_exports__);
|
|
15500
15627
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15501
15628
|
/* harmony export */ "Color": () => (/* binding */ Color),
|
|
15502
|
-
/* harmony export */ "
|
|
15629
|
+
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
15503
15630
|
/* harmony export */ "brighter": () => (/* binding */ brighter),
|
|
15631
|
+
/* harmony export */ "darker": () => (/* binding */ darker),
|
|
15504
15632
|
/* harmony export */ "default": () => (/* binding */ color),
|
|
15505
|
-
/* harmony export */ "
|
|
15506
|
-
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
15507
|
-
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
15633
|
+
/* harmony export */ "hsl": () => (/* binding */ hsl),
|
|
15508
15634
|
/* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
|
|
15509
|
-
/* harmony export */ "
|
|
15635
|
+
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
15636
|
+
/* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert)
|
|
15510
15637
|
/* harmony export */ });
|
|
15511
15638
|
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-vendor/node_modules/d3-color/src/define.js");
|
|
15512
15639
|
|
|
@@ -15945,8 +16072,8 @@ function extend(parent, definition) {
|
|
|
15945
16072
|
__webpack_require__.r(__webpack_exports__);
|
|
15946
16073
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15947
16074
|
/* harmony export */ "backIn": () => (/* binding */ backIn),
|
|
15948
|
-
/* harmony export */ "
|
|
15949
|
-
/* harmony export */ "
|
|
16075
|
+
/* harmony export */ "backInOut": () => (/* binding */ backInOut),
|
|
16076
|
+
/* harmony export */ "backOut": () => (/* binding */ backOut)
|
|
15950
16077
|
/* harmony export */ });
|
|
15951
16078
|
var overshoot = 1.70158;
|
|
15952
16079
|
|
|
@@ -15999,8 +16126,8 @@ var backInOut = (function custom(s) {
|
|
|
15999
16126
|
__webpack_require__.r(__webpack_exports__);
|
|
16000
16127
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16001
16128
|
/* harmony export */ "bounceIn": () => (/* binding */ bounceIn),
|
|
16002
|
-
/* harmony export */ "
|
|
16003
|
-
/* harmony export */ "
|
|
16129
|
+
/* harmony export */ "bounceInOut": () => (/* binding */ bounceInOut),
|
|
16130
|
+
/* harmony export */ "bounceOut": () => (/* binding */ bounceOut)
|
|
16004
16131
|
/* harmony export */ });
|
|
16005
16132
|
var b1 = 4 / 11,
|
|
16006
16133
|
b2 = 6 / 11,
|
|
@@ -16038,8 +16165,8 @@ function bounceInOut(t) {
|
|
|
16038
16165
|
__webpack_require__.r(__webpack_exports__);
|
|
16039
16166
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16040
16167
|
/* harmony export */ "circleIn": () => (/* binding */ circleIn),
|
|
16041
|
-
/* harmony export */ "
|
|
16042
|
-
/* harmony export */ "
|
|
16168
|
+
/* harmony export */ "circleInOut": () => (/* binding */ circleInOut),
|
|
16169
|
+
/* harmony export */ "circleOut": () => (/* binding */ circleOut)
|
|
16043
16170
|
/* harmony export */ });
|
|
16044
16171
|
function circleIn(t) {
|
|
16045
16172
|
return 1 - Math.sqrt(1 - t * t);
|
|
@@ -16066,8 +16193,8 @@ function circleInOut(t) {
|
|
|
16066
16193
|
__webpack_require__.r(__webpack_exports__);
|
|
16067
16194
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16068
16195
|
/* harmony export */ "cubicIn": () => (/* binding */ cubicIn),
|
|
16069
|
-
/* harmony export */ "
|
|
16070
|
-
/* harmony export */ "
|
|
16196
|
+
/* harmony export */ "cubicInOut": () => (/* binding */ cubicInOut),
|
|
16197
|
+
/* harmony export */ "cubicOut": () => (/* binding */ cubicOut)
|
|
16071
16198
|
/* harmony export */ });
|
|
16072
16199
|
function cubicIn(t) {
|
|
16073
16200
|
return t * t * t;
|
|
@@ -16094,8 +16221,8 @@ function cubicInOut(t) {
|
|
|
16094
16221
|
__webpack_require__.r(__webpack_exports__);
|
|
16095
16222
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16096
16223
|
/* harmony export */ "elasticIn": () => (/* binding */ elasticIn),
|
|
16097
|
-
/* harmony export */ "
|
|
16098
|
-
/* harmony export */ "
|
|
16224
|
+
/* harmony export */ "elasticInOut": () => (/* binding */ elasticInOut),
|
|
16225
|
+
/* harmony export */ "elasticOut": () => (/* binding */ elasticOut)
|
|
16099
16226
|
/* harmony export */ });
|
|
16100
16227
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16101
16228
|
|
|
@@ -16158,8 +16285,8 @@ var elasticInOut = (function custom(a, p) {
|
|
|
16158
16285
|
__webpack_require__.r(__webpack_exports__);
|
|
16159
16286
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16160
16287
|
/* harmony export */ "expIn": () => (/* binding */ expIn),
|
|
16161
|
-
/* harmony export */ "
|
|
16162
|
-
/* harmony export */ "
|
|
16288
|
+
/* harmony export */ "expInOut": () => (/* binding */ expInOut),
|
|
16289
|
+
/* harmony export */ "expOut": () => (/* binding */ expOut)
|
|
16163
16290
|
/* harmony export */ });
|
|
16164
16291
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16165
16292
|
|
|
@@ -16188,43 +16315,43 @@ function expInOut(t) {
|
|
|
16188
16315
|
"use strict";
|
|
16189
16316
|
__webpack_require__.r(__webpack_exports__);
|
|
16190
16317
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16191
|
-
/* harmony export */ "
|
|
16192
|
-
/* harmony export */ "
|
|
16193
|
-
/* harmony export */ "
|
|
16194
|
-
/* harmony export */ "
|
|
16195
|
-
/* harmony export */ "
|
|
16318
|
+
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16319
|
+
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16320
|
+
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16321
|
+
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16322
|
+
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16323
|
+
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16324
|
+
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16325
|
+
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16326
|
+
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16327
|
+
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16328
|
+
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16329
|
+
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16196
16330
|
/* harmony export */ "easeCubic": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16197
16331
|
/* harmony export */ "easeCubicIn": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicIn),
|
|
16198
|
-
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16199
16332
|
/* harmony export */ "easeCubicInOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16333
|
+
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16334
|
+
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16335
|
+
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16336
|
+
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut),
|
|
16337
|
+
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16338
|
+
/* harmony export */ "easeExp": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16339
|
+
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16340
|
+
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16341
|
+
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16342
|
+
/* harmony export */ "easeLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_0__.linear),
|
|
16200
16343
|
/* harmony export */ "easePoly": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
16201
16344
|
/* harmony export */ "easePolyIn": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyIn),
|
|
16202
|
-
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
16203
16345
|
/* harmony export */ "easePolyInOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
16346
|
+
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
16347
|
+
/* harmony export */ "easeQuad": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
16348
|
+
/* harmony export */ "easeQuadIn": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadIn),
|
|
16349
|
+
/* harmony export */ "easeQuadInOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
16350
|
+
/* harmony export */ "easeQuadOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadOut),
|
|
16204
16351
|
/* harmony export */ "easeSin": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16205
16352
|
/* harmony export */ "easeSinIn": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinIn),
|
|
16206
|
-
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut),
|
|
16207
16353
|
/* harmony export */ "easeSinInOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16208
|
-
/* harmony export */ "
|
|
16209
|
-
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16210
|
-
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16211
|
-
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16212
|
-
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16213
|
-
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16214
|
-
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16215
|
-
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16216
|
-
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16217
|
-
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16218
|
-
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16219
|
-
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16220
|
-
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16221
|
-
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16222
|
-
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16223
|
-
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16224
|
-
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16225
|
-
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16226
|
-
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16227
|
-
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut)
|
|
16354
|
+
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut)
|
|
16228
16355
|
/* harmony export */ });
|
|
16229
16356
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-ease/src/linear.js");
|
|
16230
16357
|
/* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad.js */ "../../victory-vendor/node_modules/d3-ease/src/quad.js");
|
|
@@ -16304,8 +16431,8 @@ function tpmt(x) {
|
|
|
16304
16431
|
__webpack_require__.r(__webpack_exports__);
|
|
16305
16432
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16306
16433
|
/* harmony export */ "polyIn": () => (/* binding */ polyIn),
|
|
16307
|
-
/* harmony export */ "
|
|
16308
|
-
/* harmony export */ "
|
|
16434
|
+
/* harmony export */ "polyInOut": () => (/* binding */ polyInOut),
|
|
16435
|
+
/* harmony export */ "polyOut": () => (/* binding */ polyOut)
|
|
16309
16436
|
/* harmony export */ });
|
|
16310
16437
|
var exponent = 3;
|
|
16311
16438
|
|
|
@@ -16358,8 +16485,8 @@ var polyInOut = (function custom(e) {
|
|
|
16358
16485
|
__webpack_require__.r(__webpack_exports__);
|
|
16359
16486
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16360
16487
|
/* harmony export */ "quadIn": () => (/* binding */ quadIn),
|
|
16361
|
-
/* harmony export */ "
|
|
16362
|
-
/* harmony export */ "
|
|
16488
|
+
/* harmony export */ "quadInOut": () => (/* binding */ quadInOut),
|
|
16489
|
+
/* harmony export */ "quadOut": () => (/* binding */ quadOut)
|
|
16363
16490
|
/* harmony export */ });
|
|
16364
16491
|
function quadIn(t) {
|
|
16365
16492
|
return t * t;
|
|
@@ -16386,8 +16513,8 @@ function quadInOut(t) {
|
|
|
16386
16513
|
__webpack_require__.r(__webpack_exports__);
|
|
16387
16514
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16388
16515
|
/* harmony export */ "sinIn": () => (/* binding */ sinIn),
|
|
16389
|
-
/* harmony export */ "
|
|
16390
|
-
/* harmony export */ "
|
|
16516
|
+
/* harmony export */ "sinInOut": () => (/* binding */ sinInOut),
|
|
16517
|
+
/* harmony export */ "sinOut": () => (/* binding */ sinOut)
|
|
16391
16518
|
/* harmony export */ });
|
|
16392
16519
|
var pi = Math.PI,
|
|
16393
16520
|
halfPi = pi / 2;
|
|
@@ -16416,9 +16543,9 @@ function sinInOut(t) {
|
|
|
16416
16543
|
"use strict";
|
|
16417
16544
|
__webpack_require__.r(__webpack_exports__);
|
|
16418
16545
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16546
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
16419
16547
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
16420
|
-
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
16421
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
16548
|
+
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
16422
16549
|
/* harmony export */ });
|
|
16423
16550
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-format/src/locale.js");
|
|
16424
16551
|
|
|
@@ -16564,8 +16691,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16564
16691
|
"use strict";
|
|
16565
16692
|
__webpack_require__.r(__webpack_exports__);
|
|
16566
16693
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16567
|
-
/* harmony export */ "
|
|
16568
|
-
/* harmony export */ "
|
|
16694
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
16695
|
+
/* harmony export */ "prefixExponent": () => (/* binding */ prefixExponent)
|
|
16569
16696
|
/* harmony export */ });
|
|
16570
16697
|
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../victory-vendor/node_modules/d3-format/src/formatDecimal.js");
|
|
16571
16698
|
|
|
@@ -16624,8 +16751,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16624
16751
|
"use strict";
|
|
16625
16752
|
__webpack_require__.r(__webpack_exports__);
|
|
16626
16753
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16627
|
-
/* harmony export */ "
|
|
16628
|
-
/* harmony export */ "
|
|
16754
|
+
/* harmony export */ "FormatSpecifier": () => (/* binding */ FormatSpecifier),
|
|
16755
|
+
/* harmony export */ "default": () => (/* binding */ formatSpecifier)
|
|
16629
16756
|
/* harmony export */ });
|
|
16630
16757
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
16631
16758
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
@@ -17107,9 +17234,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17107
17234
|
"use strict";
|
|
17108
17235
|
__webpack_require__.r(__webpack_exports__);
|
|
17109
17236
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17110
|
-
/* harmony export */ "
|
|
17237
|
+
/* harmony export */ "default": () => (/* binding */ nogamma),
|
|
17111
17238
|
/* harmony export */ "gamma": () => (/* binding */ gamma),
|
|
17112
|
-
/* harmony export */ "
|
|
17239
|
+
/* harmony export */ "hue": () => (/* binding */ hue)
|
|
17113
17240
|
/* harmony export */ });
|
|
17114
17241
|
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-vendor/node_modules/d3-interpolate/src/constant.js");
|
|
17115
17242
|
|
|
@@ -17814,10 +17941,10 @@ function constants(x) {
|
|
|
17814
17941
|
"use strict";
|
|
17815
17942
|
__webpack_require__.r(__webpack_exports__);
|
|
17816
17943
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17817
|
-
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
17818
17944
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
17819
|
-
/* harmony export */ "
|
|
17820
|
-
/* harmony export */ "
|
|
17945
|
+
/* harmony export */ "default": () => (/* binding */ continuous),
|
|
17946
|
+
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
17947
|
+
/* harmony export */ "transformer": () => (/* binding */ transformer)
|
|
17821
17948
|
/* harmony export */ });
|
|
17822
17949
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisect.js");
|
|
17823
17950
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -17965,9 +18092,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17965
18092
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17966
18093
|
/* harmony export */ "default": () => (/* binding */ diverging),
|
|
17967
18094
|
/* harmony export */ "divergingLog": () => (/* binding */ divergingLog),
|
|
17968
|
-
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog),
|
|
17969
18095
|
/* harmony export */ "divergingPow": () => (/* binding */ divergingPow),
|
|
17970
|
-
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt)
|
|
18096
|
+
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt),
|
|
18097
|
+
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog)
|
|
17971
18098
|
/* harmony export */ });
|
|
17972
18099
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/piecewise.js");
|
|
17973
18100
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -18142,32 +18269,32 @@ function identity(domain) {
|
|
|
18142
18269
|
__webpack_require__.r(__webpack_exports__);
|
|
18143
18270
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18144
18271
|
/* harmony export */ "scaleBand": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
18145
|
-
/* harmony export */ "
|
|
18272
|
+
/* harmony export */ "scaleDiverging": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
18273
|
+
/* harmony export */ "scaleDivergingLog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingLog),
|
|
18274
|
+
/* harmony export */ "scaleDivergingPow": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingPow),
|
|
18275
|
+
/* harmony export */ "scaleDivergingSqrt": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSqrt),
|
|
18276
|
+
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18146
18277
|
/* harmony export */ "scaleIdentity": () => (/* reexport safe */ _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
18278
|
+
/* harmony export */ "scaleImplicit": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__.implicit),
|
|
18147
18279
|
/* harmony export */ "scaleLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
18148
18280
|
/* harmony export */ "scaleLog": () => (/* reexport safe */ _log_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
18149
|
-
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18150
18281
|
/* harmony export */ "scaleOrdinal": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
18151
|
-
/* harmony export */ "
|
|
18282
|
+
/* harmony export */ "scalePoint": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__.point),
|
|
18152
18283
|
/* harmony export */ "scalePow": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
18153
|
-
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18154
|
-
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18155
18284
|
/* harmony export */ "scaleQuantile": () => (/* reexport safe */ _quantile_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
18156
18285
|
/* harmony export */ "scaleQuantize": () => (/* reexport safe */ _quantize_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
18157
|
-
/* harmony export */ "
|
|
18158
|
-
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18159
|
-
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18286
|
+
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18160
18287
|
/* harmony export */ "scaleSequential": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
18161
18288
|
/* harmony export */ "scaleSequentialLog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialLog),
|
|
18162
18289
|
/* harmony export */ "scaleSequentialPow": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialPow),
|
|
18290
|
+
/* harmony export */ "scaleSequentialQuantile": () => (/* reexport safe */ _sequentialQuantile_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
18163
18291
|
/* harmony export */ "scaleSequentialSqrt": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSqrt),
|
|
18164
18292
|
/* harmony export */ "scaleSequentialSymlog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSymlog),
|
|
18165
|
-
/* harmony export */ "
|
|
18166
|
-
/* harmony export */ "
|
|
18167
|
-
/* harmony export */ "
|
|
18168
|
-
/* harmony export */ "
|
|
18169
|
-
/* harmony export */ "
|
|
18170
|
-
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18293
|
+
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18294
|
+
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18295
|
+
/* harmony export */ "scaleThreshold": () => (/* reexport safe */ _threshold_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
18296
|
+
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18297
|
+
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18171
18298
|
/* harmony export */ "tickFormat": () => (/* reexport safe */ _tickFormat_js__WEBPACK_IMPORTED_MODULE_16__["default"])
|
|
18172
18299
|
/* harmony export */ });
|
|
18173
18300
|
/* harmony import */ var _band_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band.js */ "../../victory-vendor/node_modules/d3-scale/src/band.js");
|
|
@@ -18233,8 +18360,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18233
18360
|
"use strict";
|
|
18234
18361
|
__webpack_require__.r(__webpack_exports__);
|
|
18235
18362
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18236
|
-
/* harmony export */ "
|
|
18237
|
-
/* harmony export */ "
|
|
18363
|
+
/* harmony export */ "initInterpolator": () => (/* binding */ initInterpolator),
|
|
18364
|
+
/* harmony export */ "initRange": () => (/* binding */ initRange)
|
|
18238
18365
|
/* harmony export */ });
|
|
18239
18366
|
function initRange(domain, range) {
|
|
18240
18367
|
switch (arguments.length) {
|
|
@@ -18275,8 +18402,8 @@ function initInterpolator(domain, interpolator) {
|
|
|
18275
18402
|
"use strict";
|
|
18276
18403
|
__webpack_require__.r(__webpack_exports__);
|
|
18277
18404
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18278
|
-
/* harmony export */ "
|
|
18279
|
-
/* harmony export */ "
|
|
18405
|
+
/* harmony export */ "default": () => (/* binding */ linear),
|
|
18406
|
+
/* harmony export */ "linearish": () => (/* binding */ linearish)
|
|
18280
18407
|
/* harmony export */ });
|
|
18281
18408
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
18282
18409
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -18365,8 +18492,8 @@ function linear() {
|
|
|
18365
18492
|
"use strict";
|
|
18366
18493
|
__webpack_require__.r(__webpack_exports__);
|
|
18367
18494
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18368
|
-
/* harmony export */ "
|
|
18369
|
-
/* harmony export */ "
|
|
18495
|
+
/* harmony export */ "default": () => (/* binding */ log),
|
|
18496
|
+
/* harmony export */ "loggish": () => (/* binding */ loggish)
|
|
18370
18497
|
/* harmony export */ });
|
|
18371
18498
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
18372
18499
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../victory-vendor/node_modules/d3-format/src/formatSpecifier.js");
|
|
@@ -18578,8 +18705,8 @@ function number(x) {
|
|
|
18578
18705
|
"use strict";
|
|
18579
18706
|
__webpack_require__.r(__webpack_exports__);
|
|
18580
18707
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18581
|
-
/* harmony export */ "
|
|
18582
|
-
/* harmony export */ "
|
|
18708
|
+
/* harmony export */ "default": () => (/* binding */ ordinal),
|
|
18709
|
+
/* harmony export */ "implicit": () => (/* binding */ implicit)
|
|
18583
18710
|
/* harmony export */ });
|
|
18584
18711
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/internmap/src/index.js");
|
|
18585
18712
|
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init.js */ "../../victory-vendor/node_modules/d3-scale/src/init.js");
|
|
@@ -18642,8 +18769,8 @@ function ordinal() {
|
|
|
18642
18769
|
"use strict";
|
|
18643
18770
|
__webpack_require__.r(__webpack_exports__);
|
|
18644
18771
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18645
|
-
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
18646
18772
|
/* harmony export */ "default": () => (/* binding */ pow),
|
|
18773
|
+
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
18647
18774
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt)
|
|
18648
18775
|
/* harmony export */ });
|
|
18649
18776
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
@@ -18947,9 +19074,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18947
19074
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
18948
19075
|
/* harmony export */ "default": () => (/* binding */ sequential),
|
|
18949
19076
|
/* harmony export */ "sequentialLog": () => (/* binding */ sequentialLog),
|
|
18950
|
-
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog),
|
|
18951
19077
|
/* harmony export */ "sequentialPow": () => (/* binding */ sequentialPow),
|
|
18952
|
-
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt)
|
|
19078
|
+
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt),
|
|
19079
|
+
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog)
|
|
18953
19080
|
/* harmony export */ });
|
|
18954
19081
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
18955
19082
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/round.js");
|
|
@@ -19137,8 +19264,8 @@ function sequentialQuantile() {
|
|
|
19137
19264
|
"use strict";
|
|
19138
19265
|
__webpack_require__.r(__webpack_exports__);
|
|
19139
19266
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19140
|
-
/* harmony export */ "
|
|
19141
|
-
/* harmony export */ "
|
|
19267
|
+
/* harmony export */ "default": () => (/* binding */ symlog),
|
|
19268
|
+
/* harmony export */ "symlogish": () => (/* binding */ symlogish)
|
|
19142
19269
|
/* harmony export */ });
|
|
19143
19270
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
19144
19271
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -19730,18 +19857,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19730
19857
|
__webpack_require__.r(__webpack_exports__);
|
|
19731
19858
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19732
19859
|
/* harmony export */ "abs": () => (/* binding */ abs),
|
|
19860
|
+
/* harmony export */ "acos": () => (/* binding */ acos),
|
|
19861
|
+
/* harmony export */ "asin": () => (/* binding */ asin),
|
|
19733
19862
|
/* harmony export */ "atan2": () => (/* binding */ atan2),
|
|
19734
19863
|
/* harmony export */ "cos": () => (/* binding */ cos),
|
|
19864
|
+
/* harmony export */ "epsilon": () => (/* binding */ epsilon),
|
|
19865
|
+
/* harmony export */ "halfPi": () => (/* binding */ halfPi),
|
|
19735
19866
|
/* harmony export */ "max": () => (/* binding */ max),
|
|
19736
19867
|
/* harmony export */ "min": () => (/* binding */ min),
|
|
19868
|
+
/* harmony export */ "pi": () => (/* binding */ pi),
|
|
19737
19869
|
/* harmony export */ "sin": () => (/* binding */ sin),
|
|
19738
19870
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt),
|
|
19739
|
-
/* harmony export */ "
|
|
19740
|
-
/* harmony export */ "pi": () => (/* binding */ pi),
|
|
19741
|
-
/* harmony export */ "halfPi": () => (/* binding */ halfPi),
|
|
19742
|
-
/* harmony export */ "tau": () => (/* binding */ tau),
|
|
19743
|
-
/* harmony export */ "acos": () => (/* binding */ acos),
|
|
19744
|
-
/* harmony export */ "asin": () => (/* binding */ asin)
|
|
19871
|
+
/* harmony export */ "tau": () => (/* binding */ tau)
|
|
19745
19872
|
/* harmony export */ });
|
|
19746
19873
|
const abs = Math.abs;
|
|
19747
19874
|
const atan2 = Math.atan2;
|
|
@@ -19776,11 +19903,11 @@ function asin(x) {
|
|
|
19776
19903
|
"use strict";
|
|
19777
19904
|
__webpack_require__.r(__webpack_exports__);
|
|
19778
19905
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19906
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
19779
19907
|
/* harmony export */ "timeFormat": () => (/* binding */ timeFormat),
|
|
19780
19908
|
/* harmony export */ "timeParse": () => (/* binding */ timeParse),
|
|
19781
19909
|
/* harmony export */ "utcFormat": () => (/* binding */ utcFormat),
|
|
19782
|
-
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
19783
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
19910
|
+
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
19784
19911
|
/* harmony export */ });
|
|
19785
19912
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-time-format/src/locale.js");
|
|
19786
19913
|
|
|
@@ -20530,8 +20657,8 @@ function formatUnixTimestampSeconds(d) {
|
|
|
20530
20657
|
"use strict";
|
|
20531
20658
|
__webpack_require__.r(__webpack_exports__);
|
|
20532
20659
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20533
|
-
/* harmony export */ "
|
|
20534
|
-
/* harmony export */ "
|
|
20660
|
+
/* harmony export */ "days": () => (/* binding */ days),
|
|
20661
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20535
20662
|
/* harmony export */ });
|
|
20536
20663
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
20537
20664
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -20560,12 +20687,12 @@ var days = day.range;
|
|
|
20560
20687
|
"use strict";
|
|
20561
20688
|
__webpack_require__.r(__webpack_exports__);
|
|
20562
20689
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20563
|
-
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
20564
|
-
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
20565
|
-
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
20566
20690
|
/* harmony export */ "durationDay": () => (/* binding */ durationDay),
|
|
20567
|
-
/* harmony export */ "
|
|
20691
|
+
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
20692
|
+
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
20568
20693
|
/* harmony export */ "durationMonth": () => (/* binding */ durationMonth),
|
|
20694
|
+
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
20695
|
+
/* harmony export */ "durationWeek": () => (/* binding */ durationWeek),
|
|
20569
20696
|
/* harmony export */ "durationYear": () => (/* binding */ durationYear)
|
|
20570
20697
|
/* harmony export */ });
|
|
20571
20698
|
const durationSecond = 1000;
|
|
@@ -20847,10 +20974,10 @@ var seconds = second.range;
|
|
|
20847
20974
|
"use strict";
|
|
20848
20975
|
__webpack_require__.r(__webpack_exports__);
|
|
20849
20976
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20850
|
-
/* harmony export */ "
|
|
20851
|
-
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
20977
|
+
/* harmony export */ "timeTickInterval": () => (/* binding */ timeTickInterval),
|
|
20852
20978
|
/* harmony export */ "timeTicks": () => (/* binding */ timeTicks),
|
|
20853
|
-
/* harmony export */ "
|
|
20979
|
+
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
20980
|
+
/* harmony export */ "utcTicks": () => (/* binding */ utcTicks)
|
|
20854
20981
|
/* harmony export */ });
|
|
20855
20982
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisector.js");
|
|
20856
20983
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
@@ -21077,20 +21204,20 @@ var utcMonths = utcMonth.range;
|
|
|
21077
21204
|
"use strict";
|
|
21078
21205
|
__webpack_require__.r(__webpack_exports__);
|
|
21079
21206
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21080
|
-
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
21081
|
-
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
21082
|
-
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
21083
|
-
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
21084
|
-
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
21085
21207
|
/* harmony export */ "utcFriday": () => (/* binding */ utcFriday),
|
|
21208
|
+
/* harmony export */ "utcFridays": () => (/* binding */ utcFridays),
|
|
21209
|
+
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
21210
|
+
/* harmony export */ "utcMondays": () => (/* binding */ utcMondays),
|
|
21086
21211
|
/* harmony export */ "utcSaturday": () => (/* binding */ utcSaturday),
|
|
21212
|
+
/* harmony export */ "utcSaturdays": () => (/* binding */ utcSaturdays),
|
|
21213
|
+
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
21087
21214
|
/* harmony export */ "utcSundays": () => (/* binding */ utcSundays),
|
|
21088
|
-
/* harmony export */ "
|
|
21089
|
-
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
21090
|
-
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays),
|
|
21215
|
+
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
21091
21216
|
/* harmony export */ "utcThursdays": () => (/* binding */ utcThursdays),
|
|
21092
|
-
/* harmony export */ "
|
|
21093
|
-
/* harmony export */ "
|
|
21217
|
+
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
21218
|
+
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
21219
|
+
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
21220
|
+
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays)
|
|
21094
21221
|
/* harmony export */ });
|
|
21095
21222
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
21096
21223
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21179,20 +21306,20 @@ var utcYears = utcYear.range;
|
|
|
21179
21306
|
"use strict";
|
|
21180
21307
|
__webpack_require__.r(__webpack_exports__);
|
|
21181
21308
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21182
|
-
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
21183
|
-
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
21184
|
-
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
21185
|
-
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
21186
|
-
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
21187
21309
|
/* harmony export */ "friday": () => (/* binding */ friday),
|
|
21310
|
+
/* harmony export */ "fridays": () => (/* binding */ fridays),
|
|
21311
|
+
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
21312
|
+
/* harmony export */ "mondays": () => (/* binding */ mondays),
|
|
21188
21313
|
/* harmony export */ "saturday": () => (/* binding */ saturday),
|
|
21314
|
+
/* harmony export */ "saturdays": () => (/* binding */ saturdays),
|
|
21315
|
+
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
21189
21316
|
/* harmony export */ "sundays": () => (/* binding */ sundays),
|
|
21190
|
-
/* harmony export */ "
|
|
21191
|
-
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
21192
|
-
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays),
|
|
21317
|
+
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
21193
21318
|
/* harmony export */ "thursdays": () => (/* binding */ thursdays),
|
|
21194
|
-
/* harmony export */ "
|
|
21195
|
-
/* harmony export */ "
|
|
21319
|
+
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
21320
|
+
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
21321
|
+
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
21322
|
+
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays)
|
|
21196
21323
|
/* harmony export */ });
|
|
21197
21324
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
21198
21325
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21281,8 +21408,8 @@ var years = year.range;
|
|
|
21281
21408
|
"use strict";
|
|
21282
21409
|
__webpack_require__.r(__webpack_exports__);
|
|
21283
21410
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21284
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
21285
21411
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
21412
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
21286
21413
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
21287
21414
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
21288
21415
|
/* harmony export */ });
|
|
@@ -21578,18 +21705,18 @@ var __webpack_exports__ = {};
|
|
|
21578
21705
|
\******************/
|
|
21579
21706
|
__webpack_require__.r(__webpack_exports__);
|
|
21580
21707
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21581
|
-
/* harmony export */ "VictoryBar": () => (/* reexport safe */ _victory_bar__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
21582
21708
|
/* harmony export */ "Bar": () => (/* reexport safe */ _bar__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
21709
|
+
/* harmony export */ "VictoryBar": () => (/* reexport safe */ _victory_bar__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
21710
|
+
/* harmony export */ "getBarPath": () => (/* reexport safe */ _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getBarPath),
|
|
21583
21711
|
/* harmony export */ "getBarPosition": () => (/* reexport safe */ _helper_methods__WEBPACK_IMPORTED_MODULE_2__.getBarPosition),
|
|
21584
|
-
/* harmony export */ "
|
|
21585
|
-
/* harmony export */ "
|
|
21586
|
-
/* harmony export */ "getVerticalPolarBarPath": () => (/* reexport safe */ _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getVerticalPolarBarPath),
|
|
21712
|
+
/* harmony export */ "getBarWidth": () => (/* reexport safe */ _bar_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getBarWidth),
|
|
21713
|
+
/* harmony export */ "getCornerRadius": () => (/* reexport safe */ _bar_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getCornerRadius),
|
|
21587
21714
|
/* harmony export */ "getCustomBarPath": () => (/* reexport safe */ _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getCustomBarPath),
|
|
21715
|
+
/* harmony export */ "getHorizontalBarPath": () => (/* reexport safe */ _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getHorizontalBarPath),
|
|
21588
21716
|
/* harmony export */ "getPolarBarPath": () => (/* reexport safe */ _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getPolarBarPath),
|
|
21589
|
-
/* harmony export */ "getBarPath": () => (/* reexport safe */ _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getBarPath),
|
|
21590
|
-
/* harmony export */ "getBarWidth": () => (/* reexport safe */ _bar_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getBarWidth),
|
|
21591
21717
|
/* harmony export */ "getStyle": () => (/* reexport safe */ _bar_helper_methods__WEBPACK_IMPORTED_MODULE_4__.getStyle),
|
|
21592
|
-
/* harmony export */ "
|
|
21718
|
+
/* harmony export */ "getVerticalBarPath": () => (/* reexport safe */ _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getVerticalBarPath),
|
|
21719
|
+
/* harmony export */ "getVerticalPolarBarPath": () => (/* reexport safe */ _path_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getVerticalPolarBarPath)
|
|
21593
21720
|
/* harmony export */ });
|
|
21594
21721
|
/* harmony import */ var _victory_bar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-bar */ "./victory-bar.js");
|
|
21595
21722
|
/* harmony import */ var _bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./bar */ "./bar.js");
|