victory-area 36.5.0 → 36.5.3
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-area.js +396 -264
- package/dist/victory-area.min.js +1 -1
- package/es/area.d.ts +13 -0
- package/es/area.js +13 -31
- package/es/helper-methods.d.ts +3 -0
- package/es/helper-methods.js +2 -1
- package/es/index.d.ts +3 -41
- package/es/index.js +3 -2
- package/es/victory-area.d.ts +150 -0
- package/es/victory-area.js +29 -24
- package/lib/area.d.ts +13 -0
- package/lib/area.js +19 -30
- package/lib/helper-methods.d.ts +3 -0
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +3 -41
- package/lib/index.js +24 -15
- package/lib/victory-area.d.ts +150 -0
- package/lib/victory-area.js +32 -29
- package/package.json +4 -4
- package/src/{area.js → area.tsx} +44 -60
- package/src/{helper-methods.js → helper-methods.tsx} +10 -10
- package/src/index.ts +2 -0
- package/src/{victory-area.js → victory-area.tsx} +44 -15
- package/src/index.d.ts +0 -41
- package/src/index.js +0 -2
package/dist/victory-area.js
CHANGED
|
@@ -11,32 +11,30 @@
|
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
14
|
-
/***/ "./area.
|
|
15
|
-
|
|
16
|
-
!*** ./area.
|
|
17
|
-
|
|
14
|
+
/***/ "./area.tsx":
|
|
15
|
+
/*!******************!*\
|
|
16
|
+
!*** ./area.tsx ***!
|
|
17
|
+
\******************/
|
|
18
18
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
19
19
|
|
|
20
20
|
"use strict";
|
|
21
21
|
__webpack_require__.r(__webpack_exports__);
|
|
22
22
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23
|
-
/* harmony export */ "
|
|
23
|
+
/* harmony export */ "Area": () => (/* binding */ Area)
|
|
24
24
|
/* harmony export */ });
|
|
25
25
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
26
26
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
27
27
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
28
28
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
29
|
-
/* harmony import */ var
|
|
30
|
-
/* harmony import */ var
|
|
31
|
-
/* harmony import */ var
|
|
32
|
-
/* harmony import */ var
|
|
33
|
-
/* harmony import */ var
|
|
34
|
-
/* harmony import */ var
|
|
35
|
-
/* harmony import */ var
|
|
36
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/
|
|
37
|
-
/* harmony import */ var
|
|
38
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
39
|
-
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
29
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
30
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
|
|
31
|
+
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/node_modules/d3-shape/src/area.js");
|
|
32
|
+
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/node_modules/d3-shape/src/areaRadial.js");
|
|
33
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/line-helpers.js");
|
|
34
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
35
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
36
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
37
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
40
38
|
|
|
41
39
|
|
|
42
40
|
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; }
|
|
@@ -81,39 +79,18 @@ var getAngleAccessor = function (scale) {
|
|
|
81
79
|
};
|
|
82
80
|
};
|
|
83
81
|
|
|
84
|
-
var
|
|
85
|
-
// d3 shape changed the naming scheme for interpolators from "basis" -> "curveBasis" etc.
|
|
86
|
-
var capitalize = function (s) {
|
|
87
|
-
return s && s[0].toUpperCase() + s.slice(1);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
return "curve".concat(capitalize(interpolation));
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
var getLineFunction = function (props) {
|
|
94
|
-
var polar = props.polar,
|
|
95
|
-
scale = props.scale,
|
|
96
|
-
horizontal = props.horizontal;
|
|
97
|
-
var interpolationFunction = typeof props.interpolation === "function" && props.interpolation;
|
|
98
|
-
var interpolationName = typeof props.interpolation === "string" && toNewName(props.interpolation);
|
|
99
|
-
return polar ? victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_2__["default"]().defined(defined).curve(interpolationFunction || victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__["".concat(interpolationName, "Closed")]).angle(getAngleAccessor(scale)).radius(getYAccessor(scale)) : victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_4__["default"]().defined(defined).curve(interpolationFunction || victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x(horizontal ? getYAccessor(scale) : getXAccessor(scale)).y(horizontal ? getXAccessor(scale) : getYAccessor(scale));
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
var getCartesianArea = function (props, interpolation) {
|
|
82
|
+
var getCartesianArea = function (props) {
|
|
103
83
|
var horizontal = props.horizontal,
|
|
104
84
|
scale = props.scale;
|
|
105
|
-
var interpolationFunction =
|
|
106
|
-
|
|
107
|
-
return horizontal ? victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_5__["default"]().defined(defined).curve(interpolationFunction || victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x0(getY0Accessor(scale)).x1(getYAccessor(scale)).y(getXAccessor(scale)) : victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_5__["default"]().defined(defined).curve(interpolationFunction || victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__[interpolationName]).x(getXAccessor(scale)).y1(getYAccessor(scale)).y0(getY0Accessor(scale));
|
|
85
|
+
var interpolationFunction = victory_core__WEBPACK_IMPORTED_MODULE_2__.getInterpolationFunction(props);
|
|
86
|
+
return horizontal ? victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__["default"]().defined(defined).curve(interpolationFunction).x0(getY0Accessor(scale)).x1(getYAccessor(scale)).y(getXAccessor(scale)) : victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__["default"]().defined(defined).curve(interpolationFunction).x(getXAccessor(scale)).y1(getYAccessor(scale)).y0(getY0Accessor(scale));
|
|
108
87
|
};
|
|
109
88
|
|
|
110
89
|
var getAreaFunction = function (props) {
|
|
111
90
|
var polar = props.polar,
|
|
112
91
|
scale = props.scale;
|
|
113
|
-
var interpolationFunction =
|
|
114
|
-
|
|
115
|
-
var interpolation = interpolationFunction || interpolationName;
|
|
116
|
-
return polar ? victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_6__["default"]().defined(defined).curve(interpolationFunction || victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__["".concat(interpolationName, "Closed")]).angle(getAngleAccessor(scale)).outerRadius(getYAccessor(scale)).innerRadius(getY0Accessor(scale)) : getCartesianArea(props, interpolation);
|
|
92
|
+
var interpolationFunction = victory_core__WEBPACK_IMPORTED_MODULE_2__.getInterpolationFunction(props);
|
|
93
|
+
return polar ? victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_4__["default"]().defined(defined).curve(interpolationFunction).angle(getAngleAccessor(scale)).outerRadius(getYAccessor(scale)).innerRadius(getY0Accessor(scale)) : getCartesianArea(props);
|
|
117
94
|
};
|
|
118
95
|
|
|
119
96
|
var evaluateProps = function (props) {
|
|
@@ -125,13 +102,13 @@ var evaluateProps = function (props) {
|
|
|
125
102
|
* `style`
|
|
126
103
|
* `tabIndex`
|
|
127
104
|
*/
|
|
128
|
-
var ariaLabel =
|
|
129
|
-
var desc =
|
|
130
|
-
var id =
|
|
131
|
-
var style =
|
|
105
|
+
var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_5__.evaluateProp(props.ariaLabel, props);
|
|
106
|
+
var desc = victory_core__WEBPACK_IMPORTED_MODULE_5__.evaluateProp(props.desc, props);
|
|
107
|
+
var id = victory_core__WEBPACK_IMPORTED_MODULE_5__.evaluateProp(props.id, props);
|
|
108
|
+
var style = victory_core__WEBPACK_IMPORTED_MODULE_5__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
132
109
|
fill: "black"
|
|
133
110
|
}, props.style), props);
|
|
134
|
-
var tabIndex =
|
|
111
|
+
var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_5__.evaluateProp(props.tabIndex, props);
|
|
135
112
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
136
113
|
ariaLabel: ariaLabel,
|
|
137
114
|
desc: desc,
|
|
@@ -140,6 +117,10 @@ var evaluateProps = function (props) {
|
|
|
140
117
|
tabIndex: tabIndex
|
|
141
118
|
});
|
|
142
119
|
};
|
|
120
|
+
/**
|
|
121
|
+
* The area primitive used by VictoryArea
|
|
122
|
+
*/
|
|
123
|
+
|
|
143
124
|
|
|
144
125
|
var Area = function (props) {
|
|
145
126
|
props = evaluateProps(props);
|
|
@@ -159,12 +140,12 @@ var Area = function (props) {
|
|
|
159
140
|
style = _props.style,
|
|
160
141
|
desc = _props.desc,
|
|
161
142
|
tabIndex = _props.tabIndex;
|
|
162
|
-
var userProps =
|
|
143
|
+
var userProps = victory_core__WEBPACK_IMPORTED_MODULE_6__.getSafeUserProps(props);
|
|
163
144
|
var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;
|
|
164
145
|
var transform = props.transform || defaultTransform;
|
|
165
146
|
var renderLine = style.stroke && style.stroke !== "none" && style.stroke !== "transparent";
|
|
166
147
|
var areaFunction = getAreaFunction(props);
|
|
167
|
-
var lineFunction = renderLine && getLineFunction(props);
|
|
148
|
+
var lineFunction = renderLine && victory_core__WEBPACK_IMPORTED_MODULE_2__.getLineFunction(props);
|
|
168
149
|
var areaStroke = style.stroke ? "none" : style.fill;
|
|
169
150
|
|
|
170
151
|
var sharedProps = _objectSpread(_objectSpread({
|
|
@@ -196,26 +177,24 @@ var Area = function (props) {
|
|
|
196
177
|
}, sharedProps)) : null;
|
|
197
178
|
return renderLine ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(groupComponent, userProps, [area, line]) : area;
|
|
198
179
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_10___default().element)
|
|
180
|
+
Area.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_7__.CommonProps.primitiveProps), {}, {
|
|
181
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element),
|
|
182
|
+
interpolation: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func)]),
|
|
183
|
+
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().element)
|
|
204
184
|
});
|
|
205
185
|
Area.defaultProps = {
|
|
206
186
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
|
|
207
|
-
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
187
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.Path, null),
|
|
208
188
|
role: "presentation",
|
|
209
189
|
shapeRendering: "auto"
|
|
210
190
|
};
|
|
211
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Area);
|
|
212
191
|
|
|
213
192
|
/***/ }),
|
|
214
193
|
|
|
215
|
-
/***/ "./helper-methods.
|
|
216
|
-
|
|
217
|
-
!*** ./helper-methods.
|
|
218
|
-
|
|
194
|
+
/***/ "./helper-methods.tsx":
|
|
195
|
+
/*!****************************!*\
|
|
196
|
+
!*** ./helper-methods.tsx ***!
|
|
197
|
+
\****************************/
|
|
219
198
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
220
199
|
|
|
221
200
|
"use strict";
|
|
@@ -374,23 +353,23 @@ var getBaseProps = function (props, fallbackProps) {
|
|
|
374
353
|
|
|
375
354
|
/***/ }),
|
|
376
355
|
|
|
377
|
-
/***/ "./victory-area.
|
|
378
|
-
|
|
379
|
-
!*** ./victory-area.
|
|
380
|
-
|
|
356
|
+
/***/ "./victory-area.tsx":
|
|
357
|
+
/*!**************************!*\
|
|
358
|
+
!*** ./victory-area.tsx ***!
|
|
359
|
+
\**************************/
|
|
381
360
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
382
361
|
|
|
383
362
|
"use strict";
|
|
384
363
|
__webpack_require__.r(__webpack_exports__);
|
|
385
364
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
386
|
-
/* harmony export */ "
|
|
365
|
+
/* harmony export */ "VictoryArea": () => (/* binding */ VictoryArea)
|
|
387
366
|
/* harmony export */ });
|
|
388
367
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
389
368
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
390
369
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
391
370
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
392
|
-
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.
|
|
393
|
-
/* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./area */ "./area.
|
|
371
|
+
/* harmony import */ var _helper_methods__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./helper-methods */ "./helper-methods.tsx");
|
|
372
|
+
/* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./area */ "./area.tsx");
|
|
394
373
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
395
374
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
396
375
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
@@ -452,18 +431,22 @@ var options = {
|
|
|
452
431
|
}]
|
|
453
432
|
};
|
|
454
433
|
|
|
455
|
-
|
|
456
|
-
|
|
434
|
+
/**
|
|
435
|
+
* Draw area charts with React. VictoryArea is a composable component, so it doesn't include axes.
|
|
436
|
+
* Add VictoryArea as a child of VictoryChart for a complete chart.
|
|
437
|
+
*/
|
|
438
|
+
var VictoryAreaBase = /*#__PURE__*/function (_React$Component) {
|
|
439
|
+
_inherits(VictoryAreaBase, _React$Component);
|
|
457
440
|
|
|
458
|
-
var _super = _createSuper(
|
|
441
|
+
var _super = _createSuper(VictoryAreaBase);
|
|
459
442
|
|
|
460
|
-
function
|
|
461
|
-
_classCallCheck(this,
|
|
443
|
+
function VictoryAreaBase() {
|
|
444
|
+
_classCallCheck(this, VictoryAreaBase);
|
|
462
445
|
|
|
463
446
|
return _super.apply(this, arguments);
|
|
464
447
|
}
|
|
465
448
|
|
|
466
|
-
_createClass(
|
|
449
|
+
_createClass(VictoryAreaBase, [{
|
|
467
450
|
key: "shouldAnimate",
|
|
468
451
|
value: // Overridden in native versions
|
|
469
452
|
function shouldAnimate() {
|
|
@@ -472,8 +455,8 @@ var VictoryArea = /*#__PURE__*/function (_React$Component) {
|
|
|
472
455
|
}, {
|
|
473
456
|
key: "render",
|
|
474
457
|
value: function render() {
|
|
475
|
-
var animationWhitelist =
|
|
476
|
-
role =
|
|
458
|
+
var animationWhitelist = VictoryAreaBase.animationWhitelist,
|
|
459
|
+
role = VictoryAreaBase.role;
|
|
477
460
|
var props = victory_core__WEBPACK_IMPORTED_MODULE_1__.modifyProps(this.props, fallbackProps, role);
|
|
478
461
|
|
|
479
462
|
if (this.shouldAnimate()) {
|
|
@@ -486,17 +469,17 @@ var VictoryArea = /*#__PURE__*/function (_React$Component) {
|
|
|
486
469
|
}
|
|
487
470
|
}]);
|
|
488
471
|
|
|
489
|
-
return
|
|
472
|
+
return VictoryAreaBase;
|
|
490
473
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
491
474
|
|
|
492
|
-
|
|
493
|
-
|
|
475
|
+
VictoryAreaBase.animationWhitelist = ["data", "domain", "height", "padding", "style", "width"];
|
|
476
|
+
VictoryAreaBase.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_3__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_3__.CommonProps.dataProps), {}, {
|
|
494
477
|
interpolation: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["basis", "cardinal", "catmullRom", "linear", "monotoneX", "monotoneY", "natural", "step", "stepAfter", "stepBefore"]), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
|
|
495
478
|
label: victory_core__WEBPACK_IMPORTED_MODULE_5__.deprecated((prop_types__WEBPACK_IMPORTED_MODULE_4___default().string), "Use `labels` instead for individual data labels")
|
|
496
479
|
});
|
|
497
|
-
|
|
480
|
+
VictoryAreaBase.defaultProps = {
|
|
498
481
|
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer, null),
|
|
499
|
-
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_area__WEBPACK_IMPORTED_MODULE_7__
|
|
482
|
+
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_area__WEBPACK_IMPORTED_MODULE_7__.Area, null),
|
|
500
483
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryClipContainer, null),
|
|
501
484
|
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryLabel, {
|
|
502
485
|
renderInPortal: true
|
|
@@ -507,20 +490,20 @@ VictoryArea.defaultProps = {
|
|
|
507
490
|
standalone: true,
|
|
508
491
|
theme: victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryTheme.grayscale
|
|
509
492
|
};
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
493
|
+
VictoryAreaBase.displayName = "VictoryArea";
|
|
494
|
+
VictoryAreaBase.role = "area";
|
|
495
|
+
VictoryAreaBase.continuous = true;
|
|
496
|
+
VictoryAreaBase.defaultTransitions = victory_core__WEBPACK_IMPORTED_MODULE_11__.continuousTransitions();
|
|
497
|
+
VictoryAreaBase.defaultPolarTransitions = victory_core__WEBPACK_IMPORTED_MODULE_11__.continuousPolarTransitions();
|
|
498
|
+
VictoryAreaBase.getDomain = victory_core__WEBPACK_IMPORTED_MODULE_12__.getDomainWithZero;
|
|
499
|
+
VictoryAreaBase.getData = victory_core__WEBPACK_IMPORTED_MODULE_13__.getData;
|
|
500
|
+
|
|
501
|
+
VictoryAreaBase.getBaseProps = function (props) {
|
|
519
502
|
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_14__.getBaseProps)(props, fallbackProps);
|
|
520
503
|
};
|
|
521
504
|
|
|
522
|
-
|
|
523
|
-
|
|
505
|
+
VictoryAreaBase.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
506
|
+
var VictoryArea = (0,victory_core__WEBPACK_IMPORTED_MODULE_15__.addEvents)(VictoryAreaBase, options);
|
|
524
507
|
|
|
525
508
|
/***/ }),
|
|
526
509
|
|
|
@@ -7087,7 +7070,7 @@ var isInterpolatable = function (obj) {
|
|
|
7087
7070
|
// component is only going to call the function (in which case it's
|
|
7088
7071
|
// safely interpolatable) or if it's going to access special properties
|
|
7089
7072
|
// (in which case our function generated from `interpolateFunction` will
|
|
7090
|
-
// most likely cause an error. We could check for enumerable properties
|
|
7073
|
+
// most likely cause an error). We could check for enumerable properties
|
|
7091
7074
|
// on the function object here to see if it's a "plain" function, but
|
|
7092
7075
|
// let's just require that components prevent such function props from
|
|
7093
7076
|
// being animated in the first place.
|
|
@@ -7252,16 +7235,18 @@ var victoryInterpolator = function (a, b) {
|
|
|
7252
7235
|
}
|
|
7253
7236
|
|
|
7254
7237
|
if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
|
|
7255
|
-
// @ts-expect-error These generics are tough, but they work
|
|
7238
|
+
// @ts-expect-error These generics are tough, but they work :)
|
|
7256
7239
|
return interpolateObject(a, b);
|
|
7257
7240
|
}
|
|
7258
7241
|
|
|
7259
7242
|
if (typeof a === "string" || typeof b === "string") {
|
|
7260
7243
|
return interpolateString(a, b);
|
|
7261
|
-
}
|
|
7244
|
+
} // @ts-expect-error These generics are tough, but they work :)
|
|
7245
|
+
|
|
7262
7246
|
|
|
7263
7247
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
|
|
7264
7248
|
};
|
|
7249
|
+
//# sourceMappingURL=util.js.map
|
|
7265
7250
|
|
|
7266
7251
|
/***/ }),
|
|
7267
7252
|
|
|
@@ -7524,6 +7509,7 @@ VictoryAnimation.defaultProps = {
|
|
|
7524
7509
|
easing: "quadInOut"
|
|
7525
7510
|
};
|
|
7526
7511
|
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
7512
|
+
//# sourceMappingURL=victory-animation.js.map
|
|
7527
7513
|
|
|
7528
7514
|
/***/ }),
|
|
7529
7515
|
|
|
@@ -7834,6 +7820,7 @@ VictoryClipContainer.defaultProps = {
|
|
|
7834
7820
|
clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_11__.ClipPath, null),
|
|
7835
7821
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement("g", null)
|
|
7836
7822
|
};
|
|
7823
|
+
//# sourceMappingURL=victory-clip-container.js.map
|
|
7837
7824
|
|
|
7838
7825
|
/***/ }),
|
|
7839
7826
|
|
|
@@ -8147,6 +8134,7 @@ VictoryContainer.defaultProps = {
|
|
|
8147
8134
|
role: "img"
|
|
8148
8135
|
};
|
|
8149
8136
|
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
8137
|
+
//# sourceMappingURL=victory-container.js.map
|
|
8150
8138
|
|
|
8151
8139
|
/***/ }),
|
|
8152
8140
|
|
|
@@ -8752,10 +8740,9 @@ VictoryLabel.propTypes = {
|
|
|
8752
8740
|
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8753
8741
|
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
8754
8742
|
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)]),
|
|
8755
|
-
// @ts-expect-error "x is required in origin"
|
|
8756
8743
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
8757
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
|
|
8758
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
|
|
8744
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
8745
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
8759
8746
|
}),
|
|
8760
8747
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8761
8748
|
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
@@ -8789,6 +8776,7 @@ VictoryLabel.defaultProps = {
|
|
|
8789
8776
|
// Magic number from d3.
|
|
8790
8777
|
lineHeight: 1
|
|
8791
8778
|
};
|
|
8779
|
+
//# sourceMappingURL=victory-label.js.map
|
|
8792
8780
|
|
|
8793
8781
|
/***/ }),
|
|
8794
8782
|
|
|
@@ -8813,6 +8801,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8813
8801
|
*/
|
|
8814
8802
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
8815
8803
|
PortalContext.displayName = "PortalContext";
|
|
8804
|
+
//# sourceMappingURL=portal-context.js.map
|
|
8816
8805
|
|
|
8817
8806
|
/***/ }),
|
|
8818
8807
|
|
|
@@ -8924,6 +8913,7 @@ Portal.propTypes = {
|
|
|
8924
8913
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8925
8914
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
8926
8915
|
};
|
|
8916
|
+
//# sourceMappingURL=portal.js.map
|
|
8927
8917
|
|
|
8928
8918
|
/***/ }),
|
|
8929
8919
|
|
|
@@ -9067,6 +9057,7 @@ VictoryPortal.defaultProps = {
|
|
|
9067
9057
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
9068
9058
|
};
|
|
9069
9059
|
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
9060
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
9070
9061
|
|
|
9071
9062
|
/***/ }),
|
|
9072
9063
|
|
|
@@ -9109,6 +9100,7 @@ var Circle = function (props) {
|
|
|
9109
9100
|
vectorEffect: "non-scaling-stroke"
|
|
9110
9101
|
}, rest));
|
|
9111
9102
|
};
|
|
9103
|
+
//# sourceMappingURL=circle.js.map
|
|
9112
9104
|
|
|
9113
9105
|
/***/ }),
|
|
9114
9106
|
|
|
@@ -9141,6 +9133,7 @@ ClipPath.propTypes = {
|
|
|
9141
9133
|
children: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)]),
|
|
9142
9134
|
clipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)])
|
|
9143
9135
|
};
|
|
9136
|
+
//# sourceMappingURL=clip-path.js.map
|
|
9144
9137
|
|
|
9145
9138
|
/***/ }),
|
|
9146
9139
|
|
|
@@ -9177,6 +9170,7 @@ var Path = function (props) {
|
|
|
9177
9170
|
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9178
9171
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
9179
9172
|
};
|
|
9173
|
+
//# sourceMappingURL=path.js.map
|
|
9180
9174
|
|
|
9181
9175
|
/***/ }),
|
|
9182
9176
|
|
|
@@ -9219,6 +9213,7 @@ var Rect = function (props) {
|
|
|
9219
9213
|
vectorEffect: "non-scaling-stroke"
|
|
9220
9214
|
}, rest));
|
|
9221
9215
|
};
|
|
9216
|
+
//# sourceMappingURL=rect.js.map
|
|
9222
9217
|
|
|
9223
9218
|
/***/ }),
|
|
9224
9219
|
|
|
@@ -9262,6 +9257,7 @@ Text.propTypes = {
|
|
|
9262
9257
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
9263
9258
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
9264
9259
|
};
|
|
9260
|
+
//# sourceMappingURL=text.js.map
|
|
9265
9261
|
|
|
9266
9262
|
/***/ }),
|
|
9267
9263
|
|
|
@@ -9286,6 +9282,7 @@ var TSpan = function (props) {
|
|
|
9286
9282
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
9287
9283
|
);
|
|
9288
9284
|
};
|
|
9285
|
+
//# sourceMappingURL=tspan.js.map
|
|
9289
9286
|
|
|
9290
9287
|
/***/ }),
|
|
9291
9288
|
|
|
@@ -9561,6 +9558,7 @@ var grayscale = {
|
|
|
9561
9558
|
}
|
|
9562
9559
|
}, baseProps)
|
|
9563
9560
|
};
|
|
9561
|
+
//# sourceMappingURL=grayscale.js.map
|
|
9564
9562
|
|
|
9565
9563
|
/***/ }),
|
|
9566
9564
|
|
|
@@ -9863,6 +9861,7 @@ var material = {
|
|
|
9863
9861
|
}
|
|
9864
9862
|
}, baseProps)
|
|
9865
9863
|
};
|
|
9864
|
+
//# sourceMappingURL=material.js.map
|
|
9866
9865
|
|
|
9867
9866
|
/***/ }),
|
|
9868
9867
|
|
|
@@ -9886,6 +9885,7 @@ var VictoryTheme = {
|
|
|
9886
9885
|
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
9887
9886
|
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
9888
9887
|
};
|
|
9888
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
9889
9889
|
|
|
9890
9890
|
/***/ }),
|
|
9891
9891
|
|
|
@@ -10154,6 +10154,7 @@ VictoryTransition.propTypes = {
|
|
|
10154
10154
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
10155
10155
|
};
|
|
10156
10156
|
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
10157
|
+
//# sourceMappingURL=victory-transition.js.map
|
|
10157
10158
|
|
|
10158
10159
|
/***/ }),
|
|
10159
10160
|
|
|
@@ -10166,26 +10167,26 @@ VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MO
|
|
|
10166
10167
|
"use strict";
|
|
10167
10168
|
__webpack_require__.r(__webpack_exports__);
|
|
10168
10169
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10169
|
-
/* harmony export */ "
|
|
10170
|
+
/* harmony export */ "addEvents": () => (/* binding */ addEvents)
|
|
10170
10171
|
/* harmony export */ });
|
|
10171
|
-
/* harmony import */ var
|
|
10172
|
-
/* harmony import */ var
|
|
10173
|
-
/* harmony import */ var
|
|
10174
|
-
/* harmony import */ var
|
|
10175
|
-
/* harmony import */ var
|
|
10176
|
-
/* harmony import */ var
|
|
10177
|
-
/* harmony import */ var
|
|
10178
|
-
/* harmony import */ var
|
|
10179
|
-
/* harmony import */ var
|
|
10180
|
-
/* harmony import */ var
|
|
10181
|
-
/* harmony import */ var
|
|
10182
|
-
/* harmony import */ var
|
|
10183
|
-
/* harmony import */ var
|
|
10184
|
-
/* harmony import */ var
|
|
10185
|
-
/* harmony import */ var
|
|
10186
|
-
/* harmony import */ var
|
|
10187
|
-
/* harmony import */ var
|
|
10188
|
-
/* harmony import */ var
|
|
10172
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
10173
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
10174
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
10175
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
10176
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10177
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
|
|
10178
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
|
|
10179
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
|
|
10180
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
10181
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
|
|
10182
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
10183
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
|
|
10184
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
|
|
10185
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
|
|
10186
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
10187
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
|
|
10188
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
10189
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
|
|
10189
10190
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
|
|
10190
10191
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
|
10191
10192
|
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
@@ -10238,13 +10239,14 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
10238
10239
|
|
|
10239
10240
|
|
|
10240
10241
|
|
|
10241
|
-
|
|
10242
|
+
|
|
10243
|
+
|
|
10244
|
+
// DISCLAIMER:
|
|
10242
10245
|
// This file is not currently tested, and it is first on the list of files
|
|
10243
10246
|
// to refactor in our current refactoring effort. Please do not make changes
|
|
10244
10247
|
// to this file without manual testing and/or refactoring and adding tests.
|
|
10245
|
-
|
|
10246
10248
|
var datumHasXandY = function (datum) {
|
|
10247
|
-
return !
|
|
10249
|
+
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
|
|
10248
10250
|
}; // used for checking state changes. Expected components can be passed in via options
|
|
10249
10251
|
|
|
10250
10252
|
|
|
@@ -10256,44 +10258,45 @@ var defaultComponents = [{
|
|
|
10256
10258
|
}, {
|
|
10257
10259
|
name: "labels"
|
|
10258
10260
|
}];
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10261
|
+
function addEvents(WrappedComponent) {
|
|
10262
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10263
|
+
|
|
10264
|
+
// @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
|
|
10265
|
+
var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
|
|
10266
|
+
_inherits(AddEventsMixin, _WrappedComponent);
|
|
10262
10267
|
|
|
10263
|
-
var _super = _createSuper(
|
|
10268
|
+
var _super = _createSuper(AddEventsMixin);
|
|
10264
10269
|
|
|
10265
|
-
function
|
|
10270
|
+
function AddEventsMixin(props) {
|
|
10266
10271
|
var _this;
|
|
10267
10272
|
|
|
10268
|
-
_classCallCheck(this,
|
|
10273
|
+
_classCallCheck(this, AddEventsMixin);
|
|
10269
10274
|
|
|
10270
10275
|
_this = _super.call(this, props);
|
|
10271
|
-
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10272
|
-
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
10273
10276
|
_this.state = {};
|
|
10277
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
10278
|
+
_this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
10274
10279
|
|
|
10275
10280
|
_this.getEvents = function (p, target, eventKey) {
|
|
10276
|
-
return
|
|
10281
|
+
return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
|
|
10277
10282
|
};
|
|
10278
10283
|
|
|
10279
|
-
_this.
|
|
10280
|
-
|
|
10281
|
-
var calculatedValues = _this.getCalculatedValues(props);
|
|
10282
|
-
|
|
10283
|
-
_this.cacheValues(calculatedValues);
|
|
10284
|
-
|
|
10285
|
-
_this.externalMutations = _this.getExternalMutations(props);
|
|
10286
|
-
_this.calculatedState = _this.getStateChanges(props);
|
|
10284
|
+
_this.externalMutations = _this.getExternalMutations(_this.props);
|
|
10285
|
+
_this.calculatedState = _this.getStateChanges(_this.props);
|
|
10287
10286
|
_this.globalEvents = {};
|
|
10288
10287
|
_this.prevGlobalEventKeys = [];
|
|
10289
10288
|
_this.boundGlobalEvents = {};
|
|
10289
|
+
|
|
10290
|
+
_this.cacheValues(_this.getCalculatedValues(props));
|
|
10291
|
+
|
|
10290
10292
|
return _this;
|
|
10291
10293
|
}
|
|
10292
10294
|
|
|
10293
|
-
_createClass(
|
|
10295
|
+
_createClass(AddEventsMixin, [{
|
|
10294
10296
|
key: "shouldComponentUpdate",
|
|
10295
10297
|
value: function shouldComponentUpdate(nextProps) {
|
|
10296
|
-
var externalMutations = this.getExternalMutations(nextProps);
|
|
10298
|
+
var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
|
|
10299
|
+
|
|
10297
10300
|
var animating = this.props.animating || this.props.animate;
|
|
10298
10301
|
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
10299
10302
|
|
|
@@ -10323,7 +10326,7 @@ var defaultComponents = [{
|
|
|
10323
10326
|
value: function componentDidMount() {
|
|
10324
10327
|
var _this2 = this;
|
|
10325
10328
|
|
|
10326
|
-
var globalEventKeys =
|
|
10329
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10327
10330
|
|
|
10328
10331
|
globalEventKeys.forEach(function (key) {
|
|
10329
10332
|
return _this2.addGlobalListener(key);
|
|
@@ -10338,15 +10341,15 @@ var defaultComponents = [{
|
|
|
10338
10341
|
var calculatedState = this.getStateChanges(prevProps);
|
|
10339
10342
|
this.calculatedState = calculatedState;
|
|
10340
10343
|
|
|
10341
|
-
var globalEventKeys =
|
|
10344
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
10342
10345
|
|
|
10343
|
-
var removedGlobalEventKeys =
|
|
10346
|
+
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
10344
10347
|
|
|
10345
10348
|
removedGlobalEventKeys.forEach(function (key) {
|
|
10346
10349
|
return _this3.removeGlobalListener(key);
|
|
10347
10350
|
});
|
|
10348
10351
|
|
|
10349
|
-
var addedGlobalEventKeys =
|
|
10352
|
+
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
10350
10353
|
|
|
10351
10354
|
addedGlobalEventKeys.forEach(function (key) {
|
|
10352
10355
|
return _this3.addGlobalListener(key);
|
|
@@ -10392,12 +10395,11 @@ var defaultComponents = [{
|
|
|
10392
10395
|
}
|
|
10393
10396
|
|
|
10394
10397
|
var getState = function (key, type) {
|
|
10395
|
-
var result =
|
|
10398
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
10396
10399
|
|
|
10397
|
-
return
|
|
10400
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
|
|
10398
10401
|
};
|
|
10399
10402
|
|
|
10400
|
-
options = options || {};
|
|
10401
10403
|
var components = options.components || defaultComponents;
|
|
10402
10404
|
var stateChanges = components.map(function (component) {
|
|
10403
10405
|
if (!props.standalone && component.name === "parent") {
|
|
@@ -10414,9 +10416,9 @@ var defaultComponents = [{
|
|
|
10414
10416
|
}, {
|
|
10415
10417
|
key: "applyExternalMutations",
|
|
10416
10418
|
value: function applyExternalMutations(props, externalMutations) {
|
|
10417
|
-
if (!
|
|
10419
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
|
|
10418
10420
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
10419
|
-
memo =
|
|
10421
|
+
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
10420
10422
|
return memo;
|
|
10421
10423
|
}, []);
|
|
10422
10424
|
var compiledCallbacks = callbacks.length ? function () {
|
|
@@ -10433,12 +10435,12 @@ var defaultComponents = [{
|
|
|
10433
10435
|
var sharedEvents = props.sharedEvents;
|
|
10434
10436
|
var components = WrappedComponent.expectedComponents;
|
|
10435
10437
|
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
10436
|
-
var getSharedEventState = sharedEvents &&
|
|
10438
|
+
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
10437
10439
|
return undefined;
|
|
10438
10440
|
};
|
|
10439
10441
|
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
10440
10442
|
|
|
10441
|
-
var dataKeys =
|
|
10443
|
+
var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
|
|
10442
10444
|
return key !== "parent";
|
|
10443
10445
|
});
|
|
10444
10446
|
|
|
@@ -10458,32 +10460,32 @@ var defaultComponents = [{
|
|
|
10458
10460
|
value: function getExternalMutations(props) {
|
|
10459
10461
|
var sharedEvents = props.sharedEvents,
|
|
10460
10462
|
externalEventMutations = props.externalEventMutations;
|
|
10461
|
-
return
|
|
10463
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
10462
10464
|
}
|
|
10463
10465
|
}, {
|
|
10464
10466
|
key: "cacheValues",
|
|
10465
10467
|
value: function cacheValues(obj) {
|
|
10466
10468
|
var _this7 = this;
|
|
10467
10469
|
|
|
10468
|
-
|
|
10470
|
+
lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
|
|
10469
10471
|
_this7[key] = obj[key];
|
|
10470
10472
|
});
|
|
10471
10473
|
}
|
|
10472
10474
|
}, {
|
|
10473
10475
|
key: "getBaseProps",
|
|
10474
10476
|
value: function getBaseProps(props, getSharedEventState) {
|
|
10475
|
-
getSharedEventState = getSharedEventState || this.getSharedEventState;
|
|
10477
|
+
getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
|
|
10476
10478
|
var sharedParentState = getSharedEventState("parent", "parent");
|
|
10477
10479
|
var parentState = this.getEventState("parent", "parent");
|
|
10478
10480
|
|
|
10479
|
-
var baseParentProps =
|
|
10481
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
|
|
10480
10482
|
|
|
10481
10483
|
var parentPropsList = baseParentProps.parentControlledProps;
|
|
10482
|
-
var parentProps = parentPropsList ?
|
|
10484
|
+
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
|
|
10483
10485
|
|
|
10484
|
-
var modifiedProps =
|
|
10486
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
|
|
10485
10487
|
|
|
10486
|
-
return
|
|
10488
|
+
return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
10487
10489
|
}
|
|
10488
10490
|
}, {
|
|
10489
10491
|
key: "getAllEvents",
|
|
@@ -10511,21 +10513,21 @@ var defaultComponents = [{
|
|
|
10511
10513
|
if (this.hasEvents) {
|
|
10512
10514
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
10513
10515
|
|
|
10514
|
-
var componentProps =
|
|
10516
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10515
10517
|
index: index,
|
|
10516
10518
|
key: id
|
|
10517
10519
|
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
10518
10520
|
id: id
|
|
10519
10521
|
});
|
|
10520
10522
|
|
|
10521
|
-
var events =
|
|
10523
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
10522
10524
|
|
|
10523
|
-
return
|
|
10525
|
+
return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
|
|
10524
10526
|
events: events
|
|
10525
10527
|
});
|
|
10526
10528
|
}
|
|
10527
10529
|
|
|
10528
|
-
return
|
|
10530
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10529
10531
|
index: index,
|
|
10530
10532
|
key: id
|
|
10531
10533
|
}, component.props, baseProps, {
|
|
@@ -10548,11 +10550,14 @@ var defaultComponents = [{
|
|
|
10548
10550
|
}, {
|
|
10549
10551
|
key: "animateComponent",
|
|
10550
10552
|
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
10551
|
-
var
|
|
10553
|
+
var _props$animate;
|
|
10554
|
+
|
|
10555
|
+
var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
|
|
10556
|
+
var Comp = this.constructor;
|
|
10552
10557
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
|
|
10553
10558
|
animate: props.animate,
|
|
10554
10559
|
animationWhitelist: animationWhitelist
|
|
10555
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(
|
|
10560
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
|
|
10556
10561
|
} // Used by `VictoryLine` and `VictoryArea`
|
|
10557
10562
|
|
|
10558
10563
|
}, {
|
|
@@ -10564,7 +10569,7 @@ var defaultComponents = [{
|
|
|
10564
10569
|
labelComponent = props.labelComponent,
|
|
10565
10570
|
groupComponent = props.groupComponent;
|
|
10566
10571
|
|
|
10567
|
-
var dataKeys =
|
|
10572
|
+
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
|
|
10568
10573
|
|
|
10569
10574
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
10570
10575
|
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
@@ -10611,9 +10616,12 @@ var defaultComponents = [{
|
|
|
10611
10616
|
}
|
|
10612
10617
|
}]);
|
|
10613
10618
|
|
|
10614
|
-
return
|
|
10619
|
+
return AddEventsMixin;
|
|
10615
10620
|
}(WrappedComponent);
|
|
10616
|
-
|
|
10621
|
+
|
|
10622
|
+
return AddEventsMixin;
|
|
10623
|
+
}
|
|
10624
|
+
//# sourceMappingURL=add-events.js.map
|
|
10617
10625
|
|
|
10618
10626
|
/***/ }),
|
|
10619
10627
|
|
|
@@ -10647,7 +10655,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10647
10655
|
|
|
10648
10656
|
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; }
|
|
10649
10657
|
|
|
10650
|
-
/* eslint-disable no-use-before-define */
|
|
10651
10658
|
function isNonEmptyArray(collection) {
|
|
10652
10659
|
return Array.isArray(collection) && collection.length > 0;
|
|
10653
10660
|
}
|
|
@@ -10686,7 +10693,8 @@ function getMaxValue(arr) {
|
|
|
10686
10693
|
}
|
|
10687
10694
|
|
|
10688
10695
|
var array = arr.concat(values);
|
|
10689
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
10696
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
10697
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
10690
10698
|
}
|
|
10691
10699
|
function getMinValue(arr) {
|
|
10692
10700
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -10694,8 +10702,10 @@ function getMinValue(arr) {
|
|
|
10694
10702
|
}
|
|
10695
10703
|
|
|
10696
10704
|
var array = arr.concat(values);
|
|
10697
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
10705
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
10706
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
10698
10707
|
}
|
|
10708
|
+
//# sourceMappingURL=collection.js.map
|
|
10699
10709
|
|
|
10700
10710
|
/***/ }),
|
|
10701
10711
|
|
|
@@ -10708,9 +10718,7 @@ function getMinValue(arr) {
|
|
|
10708
10718
|
"use strict";
|
|
10709
10719
|
__webpack_require__.r(__webpack_exports__);
|
|
10710
10720
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10711
|
-
/* harmony export */ "
|
|
10712
|
-
/* harmony export */ "dataProps": () => (/* binding */ dataProps),
|
|
10713
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
10721
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
10714
10722
|
/* harmony export */ });
|
|
10715
10723
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
10716
10724
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10718,26 +10726,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10718
10726
|
|
|
10719
10727
|
|
|
10720
10728
|
var dataProps = {
|
|
10729
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10721
10730
|
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({
|
|
10722
10731
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
10723
10732
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
10724
10733
|
})]),
|
|
10734
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10725
10735
|
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)]),
|
|
10726
10736
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10727
10737
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10728
10738
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10729
10739
|
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)]),
|
|
10730
10740
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10731
|
-
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))]),
|
|
10741
|
+
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))]),
|
|
10732
10742
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
10733
10743
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10734
10744
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10735
10745
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10736
10746
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10737
10747
|
}),
|
|
10738
|
-
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))]),
|
|
10739
|
-
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))]),
|
|
10740
|
-
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))])
|
|
10748
|
+
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))]),
|
|
10749
|
+
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))]),
|
|
10750
|
+
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))])
|
|
10741
10751
|
};
|
|
10742
10752
|
var baseProps = {
|
|
10743
10753
|
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)]),
|
|
@@ -10746,14 +10756,17 @@ var baseProps = {
|
|
|
10746
10756
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
10747
10757
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
10748
10758
|
})]),
|
|
10759
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10749
10760
|
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({
|
|
10750
10761
|
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)]),
|
|
10751
10762
|
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)])
|
|
10752
10763
|
})]),
|
|
10764
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10753
10765
|
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({
|
|
10754
10766
|
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)]),
|
|
10755
10767
|
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)])
|
|
10756
10768
|
})]),
|
|
10769
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10757
10770
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10758
10771
|
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))]),
|
|
10759
10772
|
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))])
|
|
@@ -10764,6 +10777,7 @@ var baseProps = {
|
|
|
10764
10777
|
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)]),
|
|
10765
10778
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10766
10779
|
})),
|
|
10780
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10767
10781
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10768
10782
|
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
10769
10783
|
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)]),
|
|
@@ -10774,10 +10788,12 @@ var baseProps = {
|
|
|
10774
10788
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10775
10789
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10776
10790
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10791
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10777
10792
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10778
10793
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10779
10794
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
10780
10795
|
}),
|
|
10796
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10781
10797
|
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({
|
|
10782
10798
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10783
10799
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -10786,17 +10802,19 @@ var baseProps = {
|
|
|
10786
10802
|
})]),
|
|
10787
10803
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10788
10804
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10789
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
10790
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
10805
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
10806
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
10791
10807
|
})]),
|
|
10792
10808
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10793
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
10794
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
10809
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
10810
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
10795
10811
|
})]),
|
|
10812
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10796
10813
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10797
10814
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
10798
10815
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
10799
10816
|
}),
|
|
10817
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10800
10818
|
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({
|
|
10801
10819
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
10802
10820
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -10816,6 +10834,7 @@ var primitiveProps = {
|
|
|
10816
10834
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10817
10835
|
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)]),
|
|
10818
10836
|
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)]),
|
|
10837
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10819
10838
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10820
10839
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10821
10840
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -10831,6 +10850,12 @@ var primitiveProps = {
|
|
|
10831
10850
|
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)]),
|
|
10832
10851
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
10833
10852
|
};
|
|
10853
|
+
var CommonProps = {
|
|
10854
|
+
dataProps: dataProps,
|
|
10855
|
+
baseProps: baseProps,
|
|
10856
|
+
primitiveProps: primitiveProps
|
|
10857
|
+
};
|
|
10858
|
+
//# sourceMappingURL=common-props.js.map
|
|
10834
10859
|
|
|
10835
10860
|
/***/ }),
|
|
10836
10861
|
|
|
@@ -11344,6 +11369,7 @@ function isDataComponent(component) {
|
|
|
11344
11369
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
11345
11370
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
11346
11371
|
}
|
|
11372
|
+
//# sourceMappingURL=data.js.map
|
|
11347
11373
|
|
|
11348
11374
|
/***/ }),
|
|
11349
11375
|
|
|
@@ -11466,6 +11492,7 @@ function discreteTransitions() {
|
|
|
11466
11492
|
}
|
|
11467
11493
|
};
|
|
11468
11494
|
}
|
|
11495
|
+
//# sourceMappingURL=default-transitions.js.map
|
|
11469
11496
|
|
|
11470
11497
|
/***/ }),
|
|
11471
11498
|
|
|
@@ -11567,8 +11594,9 @@ function getDomainPadding(props, axis) {
|
|
|
11567
11594
|
}
|
|
11568
11595
|
|
|
11569
11596
|
function getFlatData(dataset, axis) {
|
|
11597
|
+
var axisKey = "_".concat(axis);
|
|
11570
11598
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
11571
|
-
return datum[
|
|
11599
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
11572
11600
|
});
|
|
11573
11601
|
}
|
|
11574
11602
|
|
|
@@ -11633,7 +11661,9 @@ function padDomain(domain, props, axis) {
|
|
|
11633
11661
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
11634
11662
|
// Naive initial padding calculation
|
|
11635
11663
|
var initialPadding = {
|
|
11664
|
+
// @ts-expect-error `max/min` might be dates
|
|
11636
11665
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
11666
|
+
// @ts-expect-error `max/min` might be dates
|
|
11637
11667
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
11638
11668
|
}; // Adjust the domain by the initial padding
|
|
11639
11669
|
|
|
@@ -11918,6 +11948,7 @@ function isDomainComponent(component) {
|
|
|
11918
11948
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
11919
11949
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
11920
11950
|
}
|
|
11951
|
+
//# sourceMappingURL=domain.js.map
|
|
11921
11952
|
|
|
11922
11953
|
/***/ }),
|
|
11923
11954
|
|
|
@@ -11986,15 +12017,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11986
12017
|
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; }
|
|
11987
12018
|
|
|
11988
12019
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
12020
|
+
|
|
11989
12021
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
11990
12022
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
11991
12023
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
11992
12024
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
11993
12025
|
* (i.e. VictoryChart) in the case of shared events
|
|
11994
12026
|
*/
|
|
11995
|
-
// eslint-disable-next-line max-params
|
|
11996
|
-
|
|
11997
|
-
|
|
12027
|
+
// eslint-disable-next-line max-params
|
|
12028
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
12029
|
+
getScopedEvents) {
|
|
11998
12030
|
var _this = this;
|
|
11999
12031
|
|
|
12000
12032
|
// Returns all events that apply to a particular target element
|
|
@@ -12217,24 +12249,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
12217
12249
|
return memo;
|
|
12218
12250
|
}, {});
|
|
12219
12251
|
}
|
|
12220
|
-
/*
|
|
12252
|
+
/*
|
|
12253
|
+
* Returns a partially applied event handler for a specific target element
|
|
12221
12254
|
* This allows event handlers to have access to props controlling each element
|
|
12222
12255
|
*/
|
|
12223
12256
|
|
|
12224
12257
|
function getPartialEvents(events, eventKey, childProps) {
|
|
12225
|
-
|
|
12258
|
+
if (!events) return {};
|
|
12259
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
12226
12260
|
var appliedEvent = function (evt) {
|
|
12227
12261
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
12228
12262
|
};
|
|
12229
12263
|
|
|
12230
12264
|
memo[eventName] = appliedEvent;
|
|
12231
12265
|
return memo;
|
|
12232
|
-
}, {})
|
|
12266
|
+
}, {});
|
|
12233
12267
|
}
|
|
12268
|
+
|
|
12234
12269
|
/* Returns the property of the state object corresponding to event changes for
|
|
12235
12270
|
* a particular element
|
|
12236
12271
|
*/
|
|
12237
|
-
|
|
12272
|
+
// eslint-disable-next-line max-params
|
|
12238
12273
|
function getEventState(eventKey, namespace, childType) {
|
|
12239
12274
|
// Mandatory usage: `getEventState.bind(this)`
|
|
12240
12275
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -12419,6 +12454,7 @@ var emulateReactEvent = function (event) {
|
|
|
12419
12454
|
nativeEvent: event
|
|
12420
12455
|
});
|
|
12421
12456
|
};
|
|
12457
|
+
//# sourceMappingURL=events.js.map
|
|
12422
12458
|
|
|
12423
12459
|
/***/ }),
|
|
12424
12460
|
|
|
@@ -12500,7 +12536,7 @@ function getPolarRange(props, axis) {
|
|
|
12500
12536
|
|
|
12501
12537
|
/**
|
|
12502
12538
|
* creates an object with some keys excluded
|
|
12503
|
-
* replacement for lodash.omit for performance. does not
|
|
12539
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
12504
12540
|
* @param {Object} originalObject: created object will be based on this object
|
|
12505
12541
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
12506
12542
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -12513,6 +12549,7 @@ function omit(originalObject) {
|
|
|
12513
12549
|
var newObject = {};
|
|
12514
12550
|
|
|
12515
12551
|
for (var key in originalObject) {
|
|
12552
|
+
// @ts-expect-error String is not assignable to Key
|
|
12516
12553
|
if (ks.indexOf(key) >= 0) {
|
|
12517
12554
|
continue;
|
|
12518
12555
|
}
|
|
@@ -12745,7 +12782,9 @@ function reduceChildren(children, iteratee) {
|
|
|
12745
12782
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
12746
12783
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
12747
12784
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
12748
|
-
return
|
|
12785
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
12786
|
+
memo.concat(item)
|
|
12787
|
+
);
|
|
12749
12788
|
};
|
|
12750
12789
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
12751
12790
|
|
|
@@ -12789,7 +12828,7 @@ function reduceChildren(children, iteratee) {
|
|
|
12789
12828
|
/**
|
|
12790
12829
|
* @param {Object} props: the props object
|
|
12791
12830
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
12792
|
-
* children or nested children are
|
|
12831
|
+
* children or nested children are horizontal
|
|
12793
12832
|
*/
|
|
12794
12833
|
|
|
12795
12834
|
function isHorizontal(props) {
|
|
@@ -12812,6 +12851,7 @@ function isHorizontal(props) {
|
|
|
12812
12851
|
|
|
12813
12852
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
12814
12853
|
}
|
|
12854
|
+
//# sourceMappingURL=helpers.js.map
|
|
12815
12855
|
|
|
12816
12856
|
/***/ }),
|
|
12817
12857
|
|
|
@@ -12855,15 +12895,16 @@ function isMap(x) {
|
|
|
12855
12895
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
12856
12896
|
}
|
|
12857
12897
|
function shallowToJS(x, whitelist) {
|
|
12858
|
-
return isIterable(x) ? x.reduce(function (
|
|
12898
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
12859
12899
|
if (whitelist && whitelist[key]) {
|
|
12860
12900
|
curr = shallowToJS(curr);
|
|
12861
12901
|
}
|
|
12862
12902
|
|
|
12863
|
-
|
|
12864
|
-
return
|
|
12903
|
+
result[key] = curr;
|
|
12904
|
+
return result;
|
|
12865
12905
|
}, isList(x) ? [] : {}) : x;
|
|
12866
12906
|
}
|
|
12907
|
+
//# sourceMappingURL=immutable.js.map
|
|
12867
12908
|
|
|
12868
12909
|
/***/ }),
|
|
12869
12910
|
|
|
@@ -13121,6 +13162,89 @@ function getProps(props, index) {
|
|
|
13121
13162
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
13122
13163
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
13123
13164
|
}
|
|
13165
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
13166
|
+
|
|
13167
|
+
/***/ }),
|
|
13168
|
+
|
|
13169
|
+
/***/ "../../victory-core/es/victory-util/line-helpers.js":
|
|
13170
|
+
/*!**********************************************************!*\
|
|
13171
|
+
!*** ../../victory-core/es/victory-util/line-helpers.js ***!
|
|
13172
|
+
\**********************************************************/
|
|
13173
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
13174
|
+
|
|
13175
|
+
"use strict";
|
|
13176
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13177
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13178
|
+
/* harmony export */ "getInterpolationFunction": () => (/* binding */ getInterpolationFunction),
|
|
13179
|
+
/* harmony export */ "getLineFunction": () => (/* binding */ getLineFunction)
|
|
13180
|
+
/* harmony export */ });
|
|
13181
|
+
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/es/d3-shape.js");
|
|
13182
|
+
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/node_modules/d3-shape/src/curve/linear.js");
|
|
13183
|
+
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/node_modules/d3-shape/src/lineRadial.js");
|
|
13184
|
+
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/node_modules/d3-shape/src/line.js");
|
|
13185
|
+
|
|
13186
|
+
|
|
13187
|
+
var defined = function (d) {
|
|
13188
|
+
var y = d._y1 !== undefined ? d._y1 : d._y;
|
|
13189
|
+
return y !== null && y !== undefined && d._y0 !== null;
|
|
13190
|
+
};
|
|
13191
|
+
|
|
13192
|
+
var getXAccessor = function (scale) {
|
|
13193
|
+
return function (d) {
|
|
13194
|
+
return scale.x(d._x1 !== undefined ? d._x1 : d._x);
|
|
13195
|
+
};
|
|
13196
|
+
};
|
|
13197
|
+
|
|
13198
|
+
var getYAccessor = function (scale) {
|
|
13199
|
+
return function (d) {
|
|
13200
|
+
return scale.y(d._y1 !== undefined ? d._y1 : d._y);
|
|
13201
|
+
};
|
|
13202
|
+
};
|
|
13203
|
+
|
|
13204
|
+
var getAngleAccessor = function (scale) {
|
|
13205
|
+
return function (d) {
|
|
13206
|
+
var x = scale.x(d._x1 !== undefined ? d._x1 : d._x);
|
|
13207
|
+
return -1 * x + Math.PI / 2;
|
|
13208
|
+
};
|
|
13209
|
+
};
|
|
13210
|
+
|
|
13211
|
+
var toNewName = function (interpolation) {
|
|
13212
|
+
// d3 shape changed the naming scheme for interpolators from "basis" -> "curveBasis" etc.
|
|
13213
|
+
var capitalize = function (s) {
|
|
13214
|
+
return s && s[0].toUpperCase() + s.slice(1);
|
|
13215
|
+
};
|
|
13216
|
+
|
|
13217
|
+
return "curve".concat(capitalize(interpolation));
|
|
13218
|
+
};
|
|
13219
|
+
|
|
13220
|
+
var toNewNameClosed = function (interpolation) {
|
|
13221
|
+
return "".concat(toNewName(interpolation), "Closed");
|
|
13222
|
+
};
|
|
13223
|
+
|
|
13224
|
+
var getInterpolationFunction = function (props) {
|
|
13225
|
+
var interpolation = props.interpolation;
|
|
13226
|
+
|
|
13227
|
+
if (typeof interpolation === "function") {
|
|
13228
|
+
return interpolation;
|
|
13229
|
+
}
|
|
13230
|
+
|
|
13231
|
+
if (typeof interpolation === "string") {
|
|
13232
|
+
var polar = props.polar,
|
|
13233
|
+
_props$openCurve = props.openCurve,
|
|
13234
|
+
openCurve = _props$openCurve === void 0 ? !polar : _props$openCurve;
|
|
13235
|
+
var interpolationName = !openCurve ? toNewNameClosed(interpolation) : toNewName(interpolation);
|
|
13236
|
+
return victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_0__[interpolationName];
|
|
13237
|
+
}
|
|
13238
|
+
|
|
13239
|
+
return victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_1__["default"];
|
|
13240
|
+
};
|
|
13241
|
+
var getLineFunction = function (props) {
|
|
13242
|
+
var polar = props.polar,
|
|
13243
|
+
scale = props.scale,
|
|
13244
|
+
horizontal = props.horizontal;
|
|
13245
|
+
return polar ? victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_2__["default"]().defined(defined).curve(getInterpolationFunction(props)).angle(getAngleAccessor(scale)).radius(getYAccessor(scale)) : victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_3__["default"]().defined(defined).curve(getInterpolationFunction(props)).x(horizontal ? getYAccessor(scale) : getXAccessor(scale)).y(horizontal ? getXAccessor(scale) : getYAccessor(scale));
|
|
13246
|
+
};
|
|
13247
|
+
//# sourceMappingURL=line-helpers.js.map
|
|
13124
13248
|
|
|
13125
13249
|
/***/ }),
|
|
13126
13250
|
|
|
@@ -13146,6 +13270,7 @@ function warn(message) {
|
|
|
13146
13270
|
}
|
|
13147
13271
|
}
|
|
13148
13272
|
}
|
|
13273
|
+
//# sourceMappingURL=log.js.map
|
|
13149
13274
|
|
|
13150
13275
|
/***/ }),
|
|
13151
13276
|
|
|
@@ -13173,12 +13298,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13173
13298
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
13174
13299
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
13175
13300
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
13176
|
-
/* harmony import */ var
|
|
13177
|
-
/* harmony import */ var
|
|
13178
|
-
/* harmony import */ var
|
|
13179
|
-
/* harmony import */ var
|
|
13180
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
13181
|
-
|
|
13301
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
13302
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
13303
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
13304
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
13182
13305
|
|
|
13183
13306
|
|
|
13184
13307
|
|
|
@@ -13186,6 +13309,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13186
13309
|
|
|
13187
13310
|
|
|
13188
13311
|
|
|
13312
|
+
|
|
13313
|
+
|
|
13189
13314
|
/**
|
|
13190
13315
|
* Return a new validator based on `validator` but with the option to chain
|
|
13191
13316
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -13193,30 +13318,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13193
13318
|
* @param {Function} validator Validation function.
|
|
13194
13319
|
* @returns {Function} Validator with `isRequired` option.
|
|
13195
13320
|
*/
|
|
13196
|
-
|
|
13197
13321
|
var makeChainable = function (validator) {
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13322
|
+
var createChainable = function (isRequired) {
|
|
13323
|
+
return function (props, propName, componentName) {
|
|
13324
|
+
var value = props[propName];
|
|
13201
13325
|
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13326
|
+
if (value === undefined || value === null) {
|
|
13327
|
+
if (isRequired) {
|
|
13328
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
13329
|
+
}
|
|
13206
13330
|
|
|
13207
|
-
|
|
13208
|
-
|
|
13331
|
+
return null;
|
|
13332
|
+
}
|
|
13209
13333
|
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13334
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
13335
|
+
rest[_key - 3] = arguments[_key];
|
|
13336
|
+
}
|
|
13213
13337
|
|
|
13214
|
-
|
|
13338
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13339
|
+
};
|
|
13215
13340
|
};
|
|
13216
13341
|
|
|
13217
|
-
var chainable =
|
|
13218
|
-
|
|
13219
|
-
|
|
13342
|
+
var chainable = Object.assign(createChainable(false), {
|
|
13343
|
+
isRequired: createChainable(true)
|
|
13344
|
+
});
|
|
13220
13345
|
return chainable;
|
|
13221
13346
|
};
|
|
13222
13347
|
|
|
@@ -13246,7 +13371,7 @@ var getConstructor = function (value) {
|
|
|
13246
13371
|
};
|
|
13247
13372
|
/**
|
|
13248
13373
|
* Get the name of the constructor used to create `value`, using
|
|
13249
|
-
* `Object.
|
|
13374
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
13250
13375
|
* "null" or "undefined", respectively.
|
|
13251
13376
|
* @param {*} value Instance to return the constructor name of.
|
|
13252
13377
|
* @returns {String} Name of the constructor.
|
|
@@ -13276,10 +13401,11 @@ function deprecated(propType, explanation) {
|
|
|
13276
13401
|
var value = props[propName];
|
|
13277
13402
|
|
|
13278
13403
|
if (value !== null && value !== undefined) {
|
|
13279
|
-
|
|
13404
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
13280
13405
|
}
|
|
13281
13406
|
|
|
13282
|
-
|
|
13407
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
13408
|
+
return null;
|
|
13283
13409
|
};
|
|
13284
13410
|
}
|
|
13285
13411
|
/**
|
|
@@ -13298,7 +13424,7 @@ function allOfType(validators) {
|
|
|
13298
13424
|
|
|
13299
13425
|
return validators.reduce(function (result, validator) {
|
|
13300
13426
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
13301
|
-
},
|
|
13427
|
+
}, null);
|
|
13302
13428
|
});
|
|
13303
13429
|
}
|
|
13304
13430
|
/**
|
|
@@ -13312,7 +13438,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
13312
13438
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
13313
13439
|
}
|
|
13314
13440
|
|
|
13315
|
-
return
|
|
13441
|
+
return null;
|
|
13316
13442
|
});
|
|
13317
13443
|
/**
|
|
13318
13444
|
* Check that the value is an integer.
|
|
@@ -13325,7 +13451,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
13325
13451
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
13326
13452
|
}
|
|
13327
13453
|
|
|
13328
|
-
return
|
|
13454
|
+
return null;
|
|
13329
13455
|
});
|
|
13330
13456
|
/**
|
|
13331
13457
|
* Check that the value is greater than zero.
|
|
@@ -13338,7 +13464,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
13338
13464
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
13339
13465
|
}
|
|
13340
13466
|
|
|
13341
|
-
return
|
|
13467
|
+
return null;
|
|
13342
13468
|
});
|
|
13343
13469
|
/**
|
|
13344
13470
|
* Check that the value is an Array of two unique values.
|
|
@@ -13351,32 +13477,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
13351
13477
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
13352
13478
|
}
|
|
13353
13479
|
|
|
13354
|
-
return
|
|
13480
|
+
return null;
|
|
13355
13481
|
});
|
|
13356
13482
|
/**
|
|
13357
13483
|
* Check that the value looks like a d3 `scale` function.
|
|
13358
13484
|
*/
|
|
13359
13485
|
|
|
13360
13486
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
13361
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13362
|
-
|
|
13363
|
-
var validScale = function (scl) {
|
|
13364
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
13365
|
-
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);
|
|
13366
|
-
} else if (typeof scl === "string") {
|
|
13367
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
13368
|
-
}
|
|
13369
|
-
|
|
13370
|
-
return false;
|
|
13371
|
-
};
|
|
13372
|
-
|
|
13373
13487
|
var value = props[propName];
|
|
13374
13488
|
|
|
13375
|
-
if (!validScale(value)) {
|
|
13489
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
13376
13490
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
13377
13491
|
}
|
|
13378
13492
|
|
|
13379
|
-
return
|
|
13493
|
+
return null;
|
|
13380
13494
|
});
|
|
13381
13495
|
/**
|
|
13382
13496
|
* Check that an array contains items of the same type.
|
|
@@ -13390,7 +13504,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
13390
13504
|
}
|
|
13391
13505
|
|
|
13392
13506
|
if (values.length < 2) {
|
|
13393
|
-
return
|
|
13507
|
+
return null;
|
|
13394
13508
|
}
|
|
13395
13509
|
|
|
13396
13510
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -13405,7 +13519,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
13405
13519
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
13406
13520
|
}
|
|
13407
13521
|
|
|
13408
|
-
return
|
|
13522
|
+
return null;
|
|
13409
13523
|
});
|
|
13410
13524
|
/**
|
|
13411
13525
|
* Check that array prop length matches props.data.length
|
|
@@ -13416,7 +13530,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
13416
13530
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
13417
13531
|
}
|
|
13418
13532
|
|
|
13419
|
-
return
|
|
13533
|
+
return null;
|
|
13420
13534
|
});
|
|
13421
13535
|
/**
|
|
13422
13536
|
* Check that the value is a regular expression
|
|
@@ -13427,8 +13541,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
13427
13541
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
13428
13542
|
}
|
|
13429
13543
|
|
|
13430
|
-
return
|
|
13544
|
+
return null;
|
|
13431
13545
|
});
|
|
13546
|
+
//# sourceMappingURL=prop-types.js.map
|
|
13432
13547
|
|
|
13433
13548
|
/***/ }),
|
|
13434
13549
|
|
|
@@ -13446,7 +13561,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13446
13561
|
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
13447
13562
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
13448
13563
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
13449
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
13564
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
13565
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
13450
13566
|
/* harmony export */ });
|
|
13451
13567
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
13452
13568
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -13464,8 +13580,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13464
13580
|
|
|
13465
13581
|
|
|
13466
13582
|
|
|
13467
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13583
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13468
13584
|
|
|
13585
|
+
// Private Functions
|
|
13469
13586
|
function toNewName(scale) {
|
|
13470
13587
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
13471
13588
|
var capitalize = function (s) {
|
|
@@ -13535,7 +13652,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
13535
13652
|
|
|
13536
13653
|
|
|
13537
13654
|
function getScaleFromName(name) {
|
|
13538
|
-
|
|
13655
|
+
if (validScale(name)) {
|
|
13656
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
13657
|
+
|
|
13658
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
13659
|
+
}
|
|
13660
|
+
|
|
13661
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
13539
13662
|
}
|
|
13540
13663
|
function getBaseScale(props, axis) {
|
|
13541
13664
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -13545,7 +13668,7 @@ function getBaseScale(props, axis) {
|
|
|
13545
13668
|
}
|
|
13546
13669
|
|
|
13547
13670
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
13548
|
-
return
|
|
13671
|
+
return getScaleFromName(defaultScale);
|
|
13549
13672
|
}
|
|
13550
13673
|
function getDefaultScale() {
|
|
13551
13674
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -13558,7 +13681,7 @@ function getScaleFromProps(props, axis) {
|
|
|
13558
13681
|
var scale = props.scale[axis] || props.scale;
|
|
13559
13682
|
|
|
13560
13683
|
if (validScale(scale)) {
|
|
13561
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
13684
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
13562
13685
|
}
|
|
13563
13686
|
|
|
13564
13687
|
return undefined;
|
|
@@ -13593,6 +13716,7 @@ function getType(scale) {
|
|
|
13593
13716
|
})[0];
|
|
13594
13717
|
return scaleType ? scaleType.name : undefined;
|
|
13595
13718
|
}
|
|
13719
|
+
//# sourceMappingURL=scale.js.map
|
|
13596
13720
|
|
|
13597
13721
|
/***/ }),
|
|
13598
13722
|
|
|
@@ -13664,6 +13788,7 @@ function getColorScale(name) {
|
|
|
13664
13788
|
};
|
|
13665
13789
|
return name ? scales[name] : scales.grayscale;
|
|
13666
13790
|
}
|
|
13791
|
+
//# sourceMappingURL=style.js.map
|
|
13667
13792
|
|
|
13668
13793
|
/***/ }),
|
|
13669
13794
|
|
|
@@ -13868,8 +13993,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
13868
13993
|
|
|
13869
13994
|
|
|
13870
13995
|
var convertLengthToPixels = function (length, fontSize) {
|
|
13871
|
-
var
|
|
13872
|
-
|
|
13996
|
+
var _length$match;
|
|
13997
|
+
|
|
13998
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
13999
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
13873
14000
|
var result;
|
|
13874
14001
|
|
|
13875
14002
|
if (!attribute) {
|
|
@@ -13935,9 +14062,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
13935
14062
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
13936
14063
|
return total + lineStyle.lineHeight * height;
|
|
13937
14064
|
}, 0);
|
|
13938
|
-
};
|
|
13939
|
-
|
|
14065
|
+
};
|
|
13940
14066
|
|
|
14067
|
+
// Stubbable implementation.
|
|
13941
14068
|
var _approximateTextSizeInternal = {
|
|
13942
14069
|
impl: function (text, style) {
|
|
13943
14070
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -13956,7 +14083,7 @@ var _approximateTextSizeInternal = {
|
|
|
13956
14083
|
};
|
|
13957
14084
|
/**
|
|
13958
14085
|
* Predict text size by font params.
|
|
13959
|
-
* @param {string} text Content for width calculation.
|
|
14086
|
+
* @param {string|string[]} text Content for width calculation.
|
|
13960
14087
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
13961
14088
|
* @param {string} style.fontFamily Text fontFamily.
|
|
13962
14089
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -13969,6 +14096,7 @@ var _approximateTextSizeInternal = {
|
|
|
13969
14096
|
var approximateTextSize = function (text, style) {
|
|
13970
14097
|
return _approximateTextSizeInternal.impl(text, style);
|
|
13971
14098
|
};
|
|
14099
|
+
//# sourceMappingURL=textsize.js.map
|
|
13972
14100
|
|
|
13973
14101
|
/***/ }),
|
|
13974
14102
|
|
|
@@ -13999,6 +14127,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
13999
14127
|
});
|
|
14000
14128
|
TimerContext.displayName = "TimerContext";
|
|
14001
14129
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
14130
|
+
//# sourceMappingURL=timer-context.js.map
|
|
14002
14131
|
|
|
14003
14132
|
/***/ }),
|
|
14004
14133
|
|
|
@@ -14101,6 +14230,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
14101
14230
|
}();
|
|
14102
14231
|
|
|
14103
14232
|
|
|
14233
|
+
//# sourceMappingURL=timer.js.map
|
|
14104
14234
|
|
|
14105
14235
|
/***/ }),
|
|
14106
14236
|
|
|
@@ -14191,7 +14321,7 @@ function getChildData(child) {
|
|
|
14191
14321
|
}
|
|
14192
14322
|
/**
|
|
14193
14323
|
* If a parent component has animation enabled, calculate the transitions
|
|
14194
|
-
* for any data of any child component that supports data transitions
|
|
14324
|
+
* for any data of any child component that supports data transitions.
|
|
14195
14325
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
14196
14326
|
* in the first set and not the second, in the second and not the first,
|
|
14197
14327
|
* or both.
|
|
@@ -14320,7 +14450,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
14320
14450
|
|
|
14321
14451
|
if (exitingNodes) {
|
|
14322
14452
|
// After the exit transition occurs, trigger the animations for
|
|
14323
|
-
// nodes that are neither exiting
|
|
14453
|
+
// nodes that are neither exiting nor entering.
|
|
14324
14454
|
animate.onEnd = cb;
|
|
14325
14455
|
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.
|
|
14326
14456
|
|
|
@@ -14390,7 +14520,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
14390
14520
|
* and its index in the parent's children array.
|
|
14391
14521
|
*
|
|
14392
14522
|
* In particular, this will include an `animate` object that is set appropriately
|
|
14393
|
-
* so that each child will be
|
|
14523
|
+
* so that each child will be synchronized for each stage of a transition
|
|
14394
14524
|
* animation. It will also include a transformed `data` object, where each datum
|
|
14395
14525
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
14396
14526
|
* functions.
|
|
@@ -14535,6 +14665,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
14535
14665
|
};
|
|
14536
14666
|
};
|
|
14537
14667
|
}
|
|
14668
|
+
//# sourceMappingURL=transitions.js.map
|
|
14538
14669
|
|
|
14539
14670
|
/***/ }),
|
|
14540
14671
|
|
|
@@ -14573,7 +14704,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
14573
14704
|
|
|
14574
14705
|
/*
|
|
14575
14706
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
14576
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
14707
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
14577
14708
|
starts with these characters.
|
|
14578
14709
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
14579
14710
|
*/
|
|
@@ -14582,6 +14713,7 @@ var USER_PROPS_SAFELIST = {
|
|
|
14582
14713
|
startsWith: ["data-", "aria-"],
|
|
14583
14714
|
exactMatch: []
|
|
14584
14715
|
};
|
|
14716
|
+
|
|
14585
14717
|
/**
|
|
14586
14718
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
14587
14719
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -14590,7 +14722,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
14590
14722
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
14591
14723
|
* otherwise
|
|
14592
14724
|
*/
|
|
14593
|
-
|
|
14594
14725
|
var doesPropStartWith = function (key) {
|
|
14595
14726
|
var startsWith = false;
|
|
14596
14727
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -14667,14 +14798,15 @@ var getSafeUserProps = function (props) {
|
|
|
14667
14798
|
/**
|
|
14668
14799
|
* Wraps a component and adds safe user props
|
|
14669
14800
|
*
|
|
14670
|
-
* @param {
|
|
14801
|
+
* @param {ReactElement} component: parent component
|
|
14671
14802
|
* @param {Object} props: props to be filtered
|
|
14672
|
-
* @returns {
|
|
14803
|
+
* @returns {ReactElement} modified component
|
|
14673
14804
|
*/
|
|
14674
14805
|
|
|
14675
14806
|
var withSafeUserProps = function (component, props) {
|
|
14676
14807
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
14677
14808
|
};
|
|
14809
|
+
//# sourceMappingURL=user-props.js.map
|
|
14678
14810
|
|
|
14679
14811
|
/***/ }),
|
|
14680
14812
|
|
|
@@ -24432,15 +24564,15 @@ var __webpack_exports__ = {};
|
|
|
24432
24564
|
(() => {
|
|
24433
24565
|
"use strict";
|
|
24434
24566
|
/*!******************!*\
|
|
24435
|
-
!*** ./index.
|
|
24567
|
+
!*** ./index.ts ***!
|
|
24436
24568
|
\******************/
|
|
24437
24569
|
__webpack_require__.r(__webpack_exports__);
|
|
24438
24570
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24439
|
-
/* harmony export */ "Area": () => (/* reexport safe */ _area__WEBPACK_IMPORTED_MODULE_1__
|
|
24440
|
-
/* harmony export */ "VictoryArea": () => (/* reexport safe */ _victory_area__WEBPACK_IMPORTED_MODULE_0__
|
|
24571
|
+
/* harmony export */ "Area": () => (/* reexport safe */ _area__WEBPACK_IMPORTED_MODULE_1__.Area),
|
|
24572
|
+
/* harmony export */ "VictoryArea": () => (/* reexport safe */ _victory_area__WEBPACK_IMPORTED_MODULE_0__.VictoryArea)
|
|
24441
24573
|
/* harmony export */ });
|
|
24442
|
-
/* harmony import */ var _victory_area__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-area */ "./victory-area.
|
|
24443
|
-
/* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area */ "./area.
|
|
24574
|
+
/* harmony import */ var _victory_area__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-area */ "./victory-area.tsx");
|
|
24575
|
+
/* harmony import */ var _area__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./area */ "./area.tsx");
|
|
24444
24576
|
|
|
24445
24577
|
|
|
24446
24578
|
})();
|