victory-pie 36.4.0 → 36.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/victory-pie.js +1135 -1011
- package/dist/victory-pie.min.js +1 -1
- package/es/helper-methods.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -1
- package/es/slice.js +2 -1
- package/es/victory-pie.js +21 -29
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/slice.js +2 -1
- package/lib/victory-pie.js +21 -30
- package/package.json +6 -6
- package/src/helper-methods.js +16 -16
- package/src/index.d.ts +1 -1
- package/src/slice.js +6 -6
- package/src/victory-pie.js +48 -49
package/dist/victory-pie.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryPie"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryPie"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -357,12 +357,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
357
357
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
358
358
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
359
359
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
360
|
-
/* harmony import */ var
|
|
361
|
-
/* harmony import */ var
|
|
362
|
-
/* harmony import */ var
|
|
363
|
-
/* harmony import */ var
|
|
360
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
361
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_7__);
|
|
362
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
363
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
364
364
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
365
|
-
/* harmony import */ var
|
|
365
|
+
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/node_modules/d3-shape/src/arc.js");
|
|
366
366
|
|
|
367
367
|
|
|
368
368
|
|
|
@@ -388,10 +388,10 @@ var getPath = function (props) {
|
|
|
388
388
|
return props.pathFunction(slice);
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
var padAngle =
|
|
392
|
-
var startAngle =
|
|
393
|
-
var endAngle =
|
|
394
|
-
var pathFunction =
|
|
391
|
+
var padAngle = victory_core__WEBPACK_IMPORTED_MODULE_4__.degreesToRadians(props.padAngle);
|
|
392
|
+
var startAngle = victory_core__WEBPACK_IMPORTED_MODULE_4__.degreesToRadians(props.sliceStartAngle);
|
|
393
|
+
var endAngle = victory_core__WEBPACK_IMPORTED_MODULE_4__.degreesToRadians(props.sliceEndAngle);
|
|
394
|
+
var pathFunction = victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_5__["default"]().cornerRadius(cornerRadius).outerRadius(radius).innerRadius(innerRadius || 0);
|
|
395
395
|
return pathFunction(lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
396
396
|
startAngle: startAngle,
|
|
397
397
|
endAngle: endAngle,
|
|
@@ -415,21 +415,21 @@ var evaluateProps = function (props) {
|
|
|
415
415
|
* `sliceEndAngle`
|
|
416
416
|
* `tabIndex`
|
|
417
417
|
*/
|
|
418
|
-
var style =
|
|
419
|
-
var radius =
|
|
418
|
+
var style = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(props.style, props);
|
|
419
|
+
var radius = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.radius, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
420
420
|
style: style
|
|
421
421
|
}));
|
|
422
|
-
var innerRadius =
|
|
422
|
+
var innerRadius = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.innerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
423
423
|
style: style,
|
|
424
424
|
radius: radius
|
|
425
425
|
}));
|
|
426
|
-
var ariaLabel =
|
|
427
|
-
var id =
|
|
428
|
-
var cornerRadius =
|
|
429
|
-
var padAngle =
|
|
430
|
-
var sliceStartAngle =
|
|
431
|
-
var sliceEndAngle =
|
|
432
|
-
var tabIndex =
|
|
426
|
+
var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
|
|
427
|
+
var id = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
|
|
428
|
+
var cornerRadius = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.cornerRadius, props);
|
|
429
|
+
var padAngle = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.padAngle, props);
|
|
430
|
+
var sliceStartAngle = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.sliceStartAngle, props);
|
|
431
|
+
var sliceEndAngle = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.sliceEndAngle, props);
|
|
432
|
+
var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.tabIndex, props);
|
|
433
433
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
434
434
|
ariaLabel: ariaLabel,
|
|
435
435
|
style: style,
|
|
@@ -460,20 +460,20 @@ var Slice = function (props) {
|
|
|
460
460
|
}));
|
|
461
461
|
};
|
|
462
462
|
|
|
463
|
-
Slice.propTypes = _objectSpread(_objectSpread({},
|
|
464
|
-
cornerRadius:
|
|
465
|
-
datum: (
|
|
466
|
-
innerRadius:
|
|
467
|
-
padAngle:
|
|
468
|
-
pathComponent: (
|
|
469
|
-
pathFunction: (
|
|
470
|
-
radius:
|
|
471
|
-
slice: (
|
|
472
|
-
sliceEndAngle:
|
|
473
|
-
sliceStartAngle:
|
|
463
|
+
Slice.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.CommonProps.primitiveProps), {}, {
|
|
464
|
+
cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
465
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
466
|
+
innerRadius: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
467
|
+
padAngle: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
468
|
+
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
|
|
469
|
+
pathFunction: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func),
|
|
470
|
+
radius: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
471
|
+
slice: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().object),
|
|
472
|
+
sliceEndAngle: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)]),
|
|
473
|
+
sliceStartAngle: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_7___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func)])
|
|
474
474
|
});
|
|
475
475
|
Slice.defaultProps = {
|
|
476
|
-
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__
|
|
476
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.Path, null),
|
|
477
477
|
role: "presentation",
|
|
478
478
|
shapeRendering: "auto"
|
|
479
479
|
};
|
|
@@ -494,10 +494,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
494
494
|
/* harmony export */ });
|
|
495
495
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
496
496
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
497
|
-
/* harmony import */ var
|
|
498
|
-
/* harmony import */ var
|
|
499
|
-
/* harmony import */ var
|
|
500
|
-
/* harmony import */ var
|
|
497
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
498
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
499
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
500
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
501
501
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
|
|
502
502
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-label/victory-label.js");
|
|
503
503
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-container/victory-container.js");
|
|
@@ -514,7 +514,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
514
514
|
|
|
515
515
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
516
516
|
|
|
517
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
517
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
518
518
|
|
|
519
519
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
520
520
|
|
|
@@ -524,9 +524,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
524
524
|
|
|
525
525
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
526
526
|
|
|
527
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
528
|
-
|
|
529
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
527
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
530
528
|
|
|
531
529
|
/*eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/
|
|
532
530
|
|
|
@@ -569,28 +567,25 @@ var VictoryPie = /*#__PURE__*/function (_React$Component) {
|
|
|
569
567
|
value: function render() {
|
|
570
568
|
var animationWhitelist = VictoryPie.animationWhitelist,
|
|
571
569
|
role = VictoryPie.role;
|
|
572
|
-
var props =
|
|
570
|
+
var props = victory_core__WEBPACK_IMPORTED_MODULE_1__.modifyProps(this.props, fallbackProps, role);
|
|
573
571
|
|
|
574
572
|
if (this.shouldAnimate()) {
|
|
575
573
|
return this.animateComponent(props, animationWhitelist);
|
|
576
574
|
}
|
|
577
575
|
|
|
578
576
|
var children = this.renderData(props);
|
|
579
|
-
var
|
|
580
|
-
return
|
|
577
|
+
var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
|
|
578
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_2__.withSafeUserProps(component, props);
|
|
581
579
|
}
|
|
582
580
|
}]);
|
|
583
581
|
|
|
584
582
|
return VictoryPie;
|
|
585
583
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
586
584
|
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
_defineProperty(VictoryPie, "role", "pie");
|
|
592
|
-
|
|
593
|
-
_defineProperty(VictoryPie, "defaultTransitions", {
|
|
585
|
+
VictoryPie.animationWhitelist = ["data", "endAngle", "height", "innerRadius", "cornerRadius", "padAngle", "padding", "colorScale", "startAngle", "style", "width"];
|
|
586
|
+
VictoryPie.displayName = "VictoryPie";
|
|
587
|
+
VictoryPie.role = "pie";
|
|
588
|
+
VictoryPie.defaultTransitions = {
|
|
594
589
|
onExit: {
|
|
595
590
|
duration: 500,
|
|
596
591
|
before: function () {
|
|
@@ -615,71 +610,69 @@ _defineProperty(VictoryPie, "defaultTransitions", {
|
|
|
615
610
|
};
|
|
616
611
|
}
|
|
617
612
|
}
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object)
|
|
613
|
+
};
|
|
614
|
+
VictoryPie.propTypes = {
|
|
615
|
+
animate: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object)]),
|
|
616
|
+
colorScale: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),
|
|
617
|
+
containerComponent: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().element),
|
|
618
|
+
cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func)]),
|
|
619
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().array),
|
|
620
|
+
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().element),
|
|
621
|
+
disableInlineStyes: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),
|
|
622
|
+
endAngle: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number),
|
|
623
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), victory_core__WEBPACK_IMPORTED_MODULE_4__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.integer, victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string)]),
|
|
624
|
+
events: prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({
|
|
625
|
+
target: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["data", "labels", "parent"]),
|
|
626
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), victory_core__WEBPACK_IMPORTED_MODULE_4__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.integer, victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string)]),
|
|
627
|
+
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object)
|
|
634
628
|
})),
|
|
635
|
-
externalEventMutations:
|
|
636
|
-
callback: (
|
|
637
|
-
childName:
|
|
638
|
-
eventKey:
|
|
639
|
-
mutation: (
|
|
640
|
-
target:
|
|
629
|
+
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({
|
|
630
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),
|
|
631
|
+
childName: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().array)]),
|
|
632
|
+
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().array), victory_core__WEBPACK_IMPORTED_MODULE_4__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.integer, victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string)]),
|
|
633
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func),
|
|
634
|
+
target: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().array)])
|
|
641
635
|
})),
|
|
642
|
-
groupComponent: (
|
|
636
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().element),
|
|
643
637
|
height: victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative,
|
|
644
|
-
innerRadius:
|
|
645
|
-
labelComponent: (
|
|
646
|
-
labelPlacement:
|
|
647
|
-
labelPosition:
|
|
648
|
-
labelRadius:
|
|
649
|
-
labels:
|
|
650
|
-
name: (
|
|
651
|
-
origin:
|
|
638
|
+
innerRadius: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func)]),
|
|
639
|
+
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().element),
|
|
640
|
+
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["parallel", "perpendicular", "vertical"])]),
|
|
641
|
+
labelPosition: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["startAngle", "centroid", "endAngle"])]),
|
|
642
|
+
labelRadius: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func)]),
|
|
643
|
+
labels: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().array)]),
|
|
644
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string),
|
|
645
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({
|
|
652
646
|
x: victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative,
|
|
653
647
|
y: victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative
|
|
654
648
|
}),
|
|
655
|
-
padAngle:
|
|
656
|
-
padding:
|
|
657
|
-
top: (
|
|
658
|
-
bottom: (
|
|
659
|
-
left: (
|
|
660
|
-
right: (
|
|
649
|
+
padAngle: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func)]),
|
|
650
|
+
padding: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().number), prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({
|
|
651
|
+
top: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number),
|
|
652
|
+
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number),
|
|
653
|
+
left: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number),
|
|
654
|
+
right: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number)
|
|
661
655
|
})]),
|
|
662
|
-
radius:
|
|
663
|
-
sharedEvents:
|
|
664
|
-
events: (
|
|
665
|
-
getEventState: (
|
|
656
|
+
radius: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func)]),
|
|
657
|
+
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({
|
|
658
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().array),
|
|
659
|
+
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().func)
|
|
666
660
|
}),
|
|
667
|
-
sortKey:
|
|
668
|
-
sortOrder:
|
|
669
|
-
standalone: (
|
|
670
|
-
startAngle: (
|
|
671
|
-
style:
|
|
672
|
-
parent: (
|
|
673
|
-
data: (
|
|
674
|
-
labels: (
|
|
661
|
+
sortKey: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), victory_core__WEBPACK_IMPORTED_MODULE_4__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.integer, victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string))]),
|
|
662
|
+
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOf(["ascending", "descending"]),
|
|
663
|
+
standalone: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().bool),
|
|
664
|
+
startAngle: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().number),
|
|
665
|
+
style: prop_types__WEBPACK_IMPORTED_MODULE_3___default().shape({
|
|
666
|
+
parent: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object),
|
|
667
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object),
|
|
668
|
+
labels: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object)
|
|
675
669
|
}),
|
|
676
|
-
theme: (
|
|
670
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object),
|
|
677
671
|
width: victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative,
|
|
678
|
-
x:
|
|
679
|
-
y:
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
_defineProperty(VictoryPie, "defaultProps", {
|
|
672
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), victory_core__WEBPACK_IMPORTED_MODULE_4__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.integer, victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string))]),
|
|
673
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_3___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_3___default().func), victory_core__WEBPACK_IMPORTED_MODULE_4__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_4__.integer, victory_core__WEBPACK_IMPORTED_MODULE_4__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_3___default().string), prop_types__WEBPACK_IMPORTED_MODULE_3___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_3___default().string))])
|
|
674
|
+
};
|
|
675
|
+
VictoryPie.defaultProps = {
|
|
683
676
|
data: [{
|
|
684
677
|
x: "A",
|
|
685
678
|
y: 1
|
|
@@ -698,22 +691,20 @@ _defineProperty(VictoryPie, "defaultProps", {
|
|
|
698
691
|
}],
|
|
699
692
|
standalone: true,
|
|
700
693
|
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_slice__WEBPACK_IMPORTED_MODULE_5__["default"], null),
|
|
701
|
-
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__
|
|
702
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__
|
|
694
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryLabel, null),
|
|
695
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryContainer, null),
|
|
703
696
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
|
|
704
697
|
sortOrder: "ascending",
|
|
705
|
-
theme: victory_core__WEBPACK_IMPORTED_MODULE_8__
|
|
706
|
-
}
|
|
698
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryTheme.grayscale
|
|
699
|
+
};
|
|
707
700
|
|
|
708
|
-
|
|
701
|
+
VictoryPie.getBaseProps = function (props) {
|
|
709
702
|
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getBaseProps)(props, fallbackProps);
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
_defineProperty(VictoryPie, "getData", victory_core__WEBPACK_IMPORTED_MODULE_10__.getData);
|
|
713
|
-
|
|
714
|
-
_defineProperty(VictoryPie, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
|
|
703
|
+
};
|
|
715
704
|
|
|
716
|
-
|
|
705
|
+
VictoryPie.getData = victory_core__WEBPACK_IMPORTED_MODULE_10__.getData;
|
|
706
|
+
VictoryPie.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
707
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_11__.addEvents)(VictoryPie));
|
|
717
708
|
|
|
718
709
|
/***/ }),
|
|
719
710
|
|
|
@@ -5958,7 +5949,7 @@ var printWarning = function() {};
|
|
|
5958
5949
|
if (true) {
|
|
5959
5950
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5960
5951
|
var loggedTypeFailures = {};
|
|
5961
|
-
var has =
|
|
5952
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
5962
5953
|
|
|
5963
5954
|
printWarning = function(text) {
|
|
5964
5955
|
var message = 'Warning: ' + text;
|
|
@@ -5970,7 +5961,7 @@ if (true) {
|
|
|
5970
5961
|
// This error was thrown as a convenience so that you can use this stack
|
|
5971
5962
|
// to find the callsite that caused this warning to fire.
|
|
5972
5963
|
throw new Error(message);
|
|
5973
|
-
} catch (x) {}
|
|
5964
|
+
} catch (x) { /**/ }
|
|
5974
5965
|
};
|
|
5975
5966
|
}
|
|
5976
5967
|
|
|
@@ -5999,7 +5990,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
5999
5990
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
6000
5991
|
var err = Error(
|
|
6001
5992
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
6002
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
5993
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
5994
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
6003
5995
|
);
|
|
6004
5996
|
err.name = 'Invariant Violation';
|
|
6005
5997
|
throw err;
|
|
@@ -6066,13 +6058,13 @@ module.exports = checkPropTypes;
|
|
|
6066
6058
|
|
|
6067
6059
|
|
|
6068
6060
|
|
|
6069
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6061
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6070
6062
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6071
6063
|
|
|
6072
6064
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
6065
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
6073
6066
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
6074
6067
|
|
|
6075
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6076
6068
|
var printWarning = function() {};
|
|
6077
6069
|
|
|
6078
6070
|
if (true) {
|
|
@@ -6173,6 +6165,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6173
6165
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6174
6166
|
var ReactPropTypes = {
|
|
6175
6167
|
array: createPrimitiveTypeChecker('array'),
|
|
6168
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6176
6169
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
6177
6170
|
func: createPrimitiveTypeChecker('function'),
|
|
6178
6171
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -6218,8 +6211,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6218
6211
|
* is prohibitively expensive if they are created too often, such as what
|
|
6219
6212
|
* happens in oneOfType() for any type before the one that matched.
|
|
6220
6213
|
*/
|
|
6221
|
-
function PropTypeError(message) {
|
|
6214
|
+
function PropTypeError(message, data) {
|
|
6222
6215
|
this.message = message;
|
|
6216
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
6223
6217
|
this.stack = '';
|
|
6224
6218
|
}
|
|
6225
6219
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -6254,7 +6248,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6254
6248
|
) {
|
|
6255
6249
|
printWarning(
|
|
6256
6250
|
'You are manually calling a React.PropTypes validation ' +
|
|
6257
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
6251
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6258
6252
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6259
6253
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6260
6254
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -6293,7 +6287,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6293
6287
|
// 'of type `object`'.
|
|
6294
6288
|
var preciseType = getPreciseType(propValue);
|
|
6295
6289
|
|
|
6296
|
-
return new PropTypeError(
|
|
6290
|
+
return new PropTypeError(
|
|
6291
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6292
|
+
{expectedType: expectedType}
|
|
6293
|
+
);
|
|
6297
6294
|
}
|
|
6298
6295
|
return null;
|
|
6299
6296
|
}
|
|
@@ -6437,14 +6434,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6437
6434
|
}
|
|
6438
6435
|
|
|
6439
6436
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6437
|
+
var expectedTypes = [];
|
|
6440
6438
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6441
6439
|
var checker = arrayOfTypeCheckers[i];
|
|
6442
|
-
|
|
6440
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6441
|
+
if (checkerResult == null) {
|
|
6443
6442
|
return null;
|
|
6444
6443
|
}
|
|
6444
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6445
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
6446
|
+
}
|
|
6445
6447
|
}
|
|
6446
|
-
|
|
6447
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
6448
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6449
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6448
6450
|
}
|
|
6449
6451
|
return createChainableTypeChecker(validate);
|
|
6450
6452
|
}
|
|
@@ -6459,6 +6461,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6459
6461
|
return createChainableTypeChecker(validate);
|
|
6460
6462
|
}
|
|
6461
6463
|
|
|
6464
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6465
|
+
return new PropTypeError(
|
|
6466
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6467
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6468
|
+
);
|
|
6469
|
+
}
|
|
6470
|
+
|
|
6462
6471
|
function createShapeTypeChecker(shapeTypes) {
|
|
6463
6472
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6464
6473
|
var propValue = props[propName];
|
|
@@ -6468,8 +6477,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6468
6477
|
}
|
|
6469
6478
|
for (var key in shapeTypes) {
|
|
6470
6479
|
var checker = shapeTypes[key];
|
|
6471
|
-
if (
|
|
6472
|
-
|
|
6480
|
+
if (typeof checker !== 'function') {
|
|
6481
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6473
6482
|
}
|
|
6474
6483
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6475
6484
|
if (error) {
|
|
@@ -6488,16 +6497,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6488
6497
|
if (propType !== 'object') {
|
|
6489
6498
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6490
6499
|
}
|
|
6491
|
-
// We need to check all keys in case some are required but missing from
|
|
6492
|
-
// props.
|
|
6500
|
+
// We need to check all keys in case some are required but missing from props.
|
|
6493
6501
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6494
6502
|
for (var key in allKeys) {
|
|
6495
6503
|
var checker = shapeTypes[key];
|
|
6504
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6505
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6506
|
+
}
|
|
6496
6507
|
if (!checker) {
|
|
6497
6508
|
return new PropTypeError(
|
|
6498
6509
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6499
6510
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6500
|
-
'\nValid keys: ' +
|
|
6511
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6501
6512
|
);
|
|
6502
6513
|
}
|
|
6503
6514
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -6666,7 +6677,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6666
6677
|
*/
|
|
6667
6678
|
|
|
6668
6679
|
if (true) {
|
|
6669
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6680
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6670
6681
|
|
|
6671
6682
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
6672
6683
|
// http://fb.me/prop-types-in-prod
|
|
@@ -6700,115 +6711,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
6700
6711
|
|
|
6701
6712
|
/***/ }),
|
|
6702
6713
|
|
|
6703
|
-
/***/ "../../../node_modules/
|
|
6704
|
-
|
|
6705
|
-
!*** ../../../node_modules/
|
|
6706
|
-
|
|
6714
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
6715
|
+
/*!***************************************************!*\
|
|
6716
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
6717
|
+
\***************************************************/
|
|
6707
6718
|
/***/ ((module) => {
|
|
6708
6719
|
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
var isArray = Array.isArray;
|
|
6713
|
-
var keyList = Object.keys;
|
|
6714
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
6715
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
6716
|
-
|
|
6717
|
-
function equal(a, b) {
|
|
6718
|
-
// fast-deep-equal index.js 2.0.1
|
|
6719
|
-
if (a === b) return true;
|
|
6720
|
-
|
|
6721
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
6722
|
-
var arrA = isArray(a)
|
|
6723
|
-
, arrB = isArray(b)
|
|
6724
|
-
, i
|
|
6725
|
-
, length
|
|
6726
|
-
, key;
|
|
6727
|
-
|
|
6728
|
-
if (arrA && arrB) {
|
|
6729
|
-
length = a.length;
|
|
6730
|
-
if (length != b.length) return false;
|
|
6731
|
-
for (i = length; i-- !== 0;)
|
|
6732
|
-
if (!equal(a[i], b[i])) return false;
|
|
6733
|
-
return true;
|
|
6734
|
-
}
|
|
6735
|
-
|
|
6736
|
-
if (arrA != arrB) return false;
|
|
6737
|
-
|
|
6738
|
-
var dateA = a instanceof Date
|
|
6739
|
-
, dateB = b instanceof Date;
|
|
6740
|
-
if (dateA != dateB) return false;
|
|
6741
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
6742
|
-
|
|
6743
|
-
var regexpA = a instanceof RegExp
|
|
6744
|
-
, regexpB = b instanceof RegExp;
|
|
6745
|
-
if (regexpA != regexpB) return false;
|
|
6746
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
6747
|
-
|
|
6748
|
-
var keys = keyList(a);
|
|
6749
|
-
length = keys.length;
|
|
6750
|
-
|
|
6751
|
-
if (length !== keyList(b).length)
|
|
6752
|
-
return false;
|
|
6753
|
-
|
|
6754
|
-
for (i = length; i-- !== 0;)
|
|
6755
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
6756
|
-
// end fast-deep-equal
|
|
6757
|
-
|
|
6758
|
-
// start react-fast-compare
|
|
6759
|
-
// custom handling for DOM elements
|
|
6760
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
6761
|
-
return a === b;
|
|
6762
|
-
|
|
6763
|
-
// custom handling for React
|
|
6764
|
-
for (i = length; i-- !== 0;) {
|
|
6765
|
-
key = keys[i];
|
|
6766
|
-
if (key === '_owner' && a.$$typeof) {
|
|
6767
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
6768
|
-
// _owner contains circular references
|
|
6769
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
6770
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
6771
|
-
continue;
|
|
6772
|
-
} else {
|
|
6773
|
-
// all other properties should be traversed as usual
|
|
6774
|
-
if (!equal(a[key], b[key])) return false;
|
|
6775
|
-
}
|
|
6776
|
-
}
|
|
6777
|
-
// end react-fast-compare
|
|
6778
|
-
|
|
6779
|
-
// fast-deep-equal index.js 2.0.1
|
|
6780
|
-
return true;
|
|
6781
|
-
}
|
|
6782
|
-
|
|
6783
|
-
return a !== a && b !== b;
|
|
6784
|
-
}
|
|
6785
|
-
// end fast-deep-equal
|
|
6786
|
-
|
|
6787
|
-
module.exports = function exportedEqual(a, b) {
|
|
6788
|
-
try {
|
|
6789
|
-
return equal(a, b);
|
|
6790
|
-
} catch (error) {
|
|
6791
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
6792
|
-
// warn on circular references, don't crash
|
|
6793
|
-
// browsers give this different errors name and messages:
|
|
6794
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
6795
|
-
// firefox: "InternalError", too much recursion"
|
|
6796
|
-
// edge: "Error", "Out of stack space"
|
|
6797
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
6798
|
-
return false;
|
|
6799
|
-
}
|
|
6800
|
-
// some other error. we should definitely know about these
|
|
6801
|
-
throw error;
|
|
6802
|
-
}
|
|
6803
|
-
};
|
|
6720
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6804
6721
|
|
|
6805
6722
|
|
|
6806
6723
|
/***/ }),
|
|
6807
6724
|
|
|
6808
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
6809
|
-
|
|
6810
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
6811
|
-
|
|
6725
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
6726
|
+
/*!******************************************************************************************!*\
|
|
6727
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
6728
|
+
\******************************************************************************************/
|
|
6812
6729
|
/***/ ((__unused_webpack_module, exports) => {
|
|
6813
6730
|
|
|
6814
6731
|
"use strict";
|
|
@@ -6997,20 +6914,164 @@ exports.typeOf = typeOf;
|
|
|
6997
6914
|
|
|
6998
6915
|
/***/ }),
|
|
6999
6916
|
|
|
7000
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
7001
|
-
|
|
7002
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
7003
|
-
|
|
6917
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
6918
|
+
/*!***********************************************************************!*\
|
|
6919
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
6920
|
+
\***********************************************************************/
|
|
7004
6921
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7005
6922
|
|
|
7006
6923
|
"use strict";
|
|
7007
6924
|
|
|
7008
6925
|
|
|
7009
6926
|
if (false) {} else {
|
|
7010
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
6927
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
7011
6928
|
}
|
|
7012
6929
|
|
|
7013
6930
|
|
|
6931
|
+
/***/ }),
|
|
6932
|
+
|
|
6933
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
6934
|
+
/*!*********************************************************!*\
|
|
6935
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
6936
|
+
\*********************************************************/
|
|
6937
|
+
/***/ ((module) => {
|
|
6938
|
+
|
|
6939
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
6940
|
+
|
|
6941
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
6942
|
+
var hasMap = typeof Map === 'function';
|
|
6943
|
+
var hasSet = typeof Set === 'function';
|
|
6944
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
6945
|
+
|
|
6946
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
6947
|
+
|
|
6948
|
+
function equal(a, b) {
|
|
6949
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
6950
|
+
if (a === b) return true;
|
|
6951
|
+
|
|
6952
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
6953
|
+
if (a.constructor !== b.constructor) return false;
|
|
6954
|
+
|
|
6955
|
+
var length, i, keys;
|
|
6956
|
+
if (Array.isArray(a)) {
|
|
6957
|
+
length = a.length;
|
|
6958
|
+
if (length != b.length) return false;
|
|
6959
|
+
for (i = length; i-- !== 0;)
|
|
6960
|
+
if (!equal(a[i], b[i])) return false;
|
|
6961
|
+
return true;
|
|
6962
|
+
}
|
|
6963
|
+
|
|
6964
|
+
// START: Modifications:
|
|
6965
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
6966
|
+
// to co-exist with es5.
|
|
6967
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
6968
|
+
// Basically, take:
|
|
6969
|
+
//
|
|
6970
|
+
// ```js
|
|
6971
|
+
// for (i of a.entries())
|
|
6972
|
+
// if (!b.has(i[0])) return false;
|
|
6973
|
+
// ```
|
|
6974
|
+
//
|
|
6975
|
+
// ... and convert to:
|
|
6976
|
+
//
|
|
6977
|
+
// ```js
|
|
6978
|
+
// it = a.entries();
|
|
6979
|
+
// while (!(i = it.next()).done)
|
|
6980
|
+
// if (!b.has(i.value[0])) return false;
|
|
6981
|
+
// ```
|
|
6982
|
+
//
|
|
6983
|
+
// **Note**: `i` access switches to `i.value`.
|
|
6984
|
+
var it;
|
|
6985
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
6986
|
+
if (a.size !== b.size) return false;
|
|
6987
|
+
it = a.entries();
|
|
6988
|
+
while (!(i = it.next()).done)
|
|
6989
|
+
if (!b.has(i.value[0])) return false;
|
|
6990
|
+
it = a.entries();
|
|
6991
|
+
while (!(i = it.next()).done)
|
|
6992
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
6993
|
+
return true;
|
|
6994
|
+
}
|
|
6995
|
+
|
|
6996
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
6997
|
+
if (a.size !== b.size) return false;
|
|
6998
|
+
it = a.entries();
|
|
6999
|
+
while (!(i = it.next()).done)
|
|
7000
|
+
if (!b.has(i.value[0])) return false;
|
|
7001
|
+
return true;
|
|
7002
|
+
}
|
|
7003
|
+
// END: Modifications
|
|
7004
|
+
|
|
7005
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7006
|
+
length = a.length;
|
|
7007
|
+
if (length != b.length) return false;
|
|
7008
|
+
for (i = length; i-- !== 0;)
|
|
7009
|
+
if (a[i] !== b[i]) return false;
|
|
7010
|
+
return true;
|
|
7011
|
+
}
|
|
7012
|
+
|
|
7013
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7014
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7015
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7016
|
+
|
|
7017
|
+
keys = Object.keys(a);
|
|
7018
|
+
length = keys.length;
|
|
7019
|
+
if (length !== Object.keys(b).length) return false;
|
|
7020
|
+
|
|
7021
|
+
for (i = length; i-- !== 0;)
|
|
7022
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7023
|
+
// END: fast-deep-equal
|
|
7024
|
+
|
|
7025
|
+
// START: react-fast-compare
|
|
7026
|
+
// custom handling for DOM elements
|
|
7027
|
+
if (hasElementType && a instanceof Element) return false;
|
|
7028
|
+
|
|
7029
|
+
// custom handling for React/Preact
|
|
7030
|
+
for (i = length; i-- !== 0;) {
|
|
7031
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7032
|
+
// React-specific: avoid traversing React elements' _owner
|
|
7033
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7034
|
+
// __v = $_original / $_vnode
|
|
7035
|
+
// __o = $_owner
|
|
7036
|
+
// These properties contain circular references and are not needed when
|
|
7037
|
+
// comparing the actual elements (and not their owners)
|
|
7038
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7039
|
+
|
|
7040
|
+
continue;
|
|
7041
|
+
}
|
|
7042
|
+
|
|
7043
|
+
// all other properties should be traversed as usual
|
|
7044
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7045
|
+
}
|
|
7046
|
+
// END: react-fast-compare
|
|
7047
|
+
|
|
7048
|
+
// START: fast-deep-equal
|
|
7049
|
+
return true;
|
|
7050
|
+
}
|
|
7051
|
+
|
|
7052
|
+
return a !== a && b !== b;
|
|
7053
|
+
}
|
|
7054
|
+
// end fast-deep-equal
|
|
7055
|
+
|
|
7056
|
+
module.exports = function isEqual(a, b) {
|
|
7057
|
+
try {
|
|
7058
|
+
return equal(a, b);
|
|
7059
|
+
} catch (error) {
|
|
7060
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7061
|
+
// warn on circular references, don't crash
|
|
7062
|
+
// browsers give this different errors name and messages:
|
|
7063
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7064
|
+
// firefox: "InternalError", too much recursion"
|
|
7065
|
+
// edge: "Error", "Out of stack space"
|
|
7066
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7067
|
+
return false;
|
|
7068
|
+
}
|
|
7069
|
+
// some other error. we should definitely know about these
|
|
7070
|
+
throw error;
|
|
7071
|
+
}
|
|
7072
|
+
};
|
|
7073
|
+
|
|
7074
|
+
|
|
7014
7075
|
/***/ }),
|
|
7015
7076
|
|
|
7016
7077
|
/***/ "../../victory-core/es/victory-animation/util.js":
|
|
@@ -7022,11 +7083,11 @@ if (false) {} else {
|
|
|
7022
7083
|
"use strict";
|
|
7023
7084
|
__webpack_require__.r(__webpack_exports__);
|
|
7024
7085
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7025
|
-
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
7026
|
-
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
7027
7086
|
/* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
|
|
7087
|
+
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
7028
7088
|
/* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
|
|
7029
7089
|
/* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
|
|
7090
|
+
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
7030
7091
|
/* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
|
|
7031
7092
|
/* harmony export */ });
|
|
7032
7093
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
|
|
@@ -7071,7 +7132,7 @@ var isInterpolatable = function (obj) {
|
|
|
7071
7132
|
// component is only going to call the function (in which case it's
|
|
7072
7133
|
// safely interpolatable) or if it's going to access special properties
|
|
7073
7134
|
// (in which case our function generated from `interpolateFunction` will
|
|
7074
|
-
// most likely cause an error. We could check for enumerable properties
|
|
7135
|
+
// most likely cause an error). We could check for enumerable properties
|
|
7075
7136
|
// on the function object here to see if it's a "plain" function, but
|
|
7076
7137
|
// let's just require that components prevent such function props from
|
|
7077
7138
|
// being animated in the first place.
|
|
@@ -7123,7 +7184,7 @@ var interpolateFunction = function (a, b) {
|
|
|
7123
7184
|
}
|
|
7124
7185
|
|
|
7125
7186
|
return function () {
|
|
7126
|
-
/* eslint-disable no-invalid-this */
|
|
7187
|
+
/* eslint-disable no-invalid-this, prefer-rest-params */
|
|
7127
7188
|
var aval = typeof a === "function" ? a.apply(this, arguments) : a;
|
|
7128
7189
|
var bval = typeof b === "function" ? b.apply(this, arguments) : b;
|
|
7129
7190
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
|
|
@@ -7236,15 +7297,18 @@ var victoryInterpolator = function (a, b) {
|
|
|
7236
7297
|
}
|
|
7237
7298
|
|
|
7238
7299
|
if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
|
|
7300
|
+
// @ts-expect-error These generics are tough, but they work :)
|
|
7239
7301
|
return interpolateObject(a, b);
|
|
7240
7302
|
}
|
|
7241
7303
|
|
|
7242
7304
|
if (typeof a === "string" || typeof b === "string") {
|
|
7243
7305
|
return interpolateString(a, b);
|
|
7244
|
-
}
|
|
7306
|
+
} // @ts-expect-error These generics are tough, but they work :)
|
|
7307
|
+
|
|
7245
7308
|
|
|
7246
7309
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
|
|
7247
7310
|
};
|
|
7311
|
+
//# sourceMappingURL=util.js.map
|
|
7248
7312
|
|
|
7249
7313
|
/***/ }),
|
|
7250
7314
|
|
|
@@ -7257,17 +7321,17 @@ var victoryInterpolator = function (a, b) {
|
|
|
7257
7321
|
"use strict";
|
|
7258
7322
|
__webpack_require__.r(__webpack_exports__);
|
|
7259
7323
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7260
|
-
/* harmony export */ "
|
|
7324
|
+
/* harmony export */ "VictoryAnimation": () => (/* binding */ VictoryAnimation)
|
|
7261
7325
|
/* harmony export */ });
|
|
7262
7326
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7263
7327
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7264
|
-
/* harmony import */ var
|
|
7265
|
-
/* harmony import */ var
|
|
7266
|
-
/* harmony import */ var
|
|
7267
|
-
/* harmony import */ var
|
|
7328
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7329
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
7330
|
+
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
7331
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
7268
7332
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
7269
|
-
/* harmony import */ var
|
|
7270
|
-
/* harmony import */ var
|
|
7333
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
7334
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__);
|
|
7271
7335
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
7272
7336
|
|
|
7273
7337
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -7288,7 +7352,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7288
7352
|
|
|
7289
7353
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
7290
7354
|
|
|
7291
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7355
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7292
7356
|
|
|
7293
7357
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7294
7358
|
|
|
@@ -7298,9 +7362,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7298
7362
|
|
|
7299
7363
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7300
7364
|
|
|
7301
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7302
|
-
|
|
7303
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7365
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7304
7366
|
|
|
7305
7367
|
/*global setTimeout:false */
|
|
7306
7368
|
|
|
@@ -7309,7 +7371,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7309
7371
|
|
|
7310
7372
|
|
|
7311
7373
|
|
|
7312
|
-
|
|
7313
7374
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
7314
7375
|
_inherits(VictoryAnimation, _React$Component);
|
|
7315
7376
|
|
|
@@ -7323,6 +7384,56 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7323
7384
|
_this = _super.call(this, props, context);
|
|
7324
7385
|
/* defaults */
|
|
7325
7386
|
|
|
7387
|
+
_this.interpolator = void 0;
|
|
7388
|
+
_this.queue = void 0;
|
|
7389
|
+
_this.ease = void 0;
|
|
7390
|
+
_this.timer = void 0;
|
|
7391
|
+
_this.loopID = void 0;
|
|
7392
|
+
|
|
7393
|
+
_this.functionToBeRunEachFrame = function (elapsed, duration) {
|
|
7394
|
+
/*
|
|
7395
|
+
step can generate imprecise values, sometimes greater than 1
|
|
7396
|
+
if this happens set the state to 1 and return, cancelling the timer
|
|
7397
|
+
*/
|
|
7398
|
+
duration = duration !== undefined ? duration : _this.props.duration;
|
|
7399
|
+
var step = duration ? elapsed / duration : 1;
|
|
7400
|
+
|
|
7401
|
+
if (step >= 1) {
|
|
7402
|
+
_this.setState({
|
|
7403
|
+
data: _this.interpolator(1),
|
|
7404
|
+
animationInfo: {
|
|
7405
|
+
progress: 1,
|
|
7406
|
+
animating: false,
|
|
7407
|
+
terminating: true
|
|
7408
|
+
}
|
|
7409
|
+
});
|
|
7410
|
+
|
|
7411
|
+
if (_this.loopID) {
|
|
7412
|
+
_this.timer.unsubscribe(_this.loopID);
|
|
7413
|
+
}
|
|
7414
|
+
|
|
7415
|
+
_this.queue.shift();
|
|
7416
|
+
|
|
7417
|
+
_this.traverseQueue();
|
|
7418
|
+
|
|
7419
|
+
return;
|
|
7420
|
+
}
|
|
7421
|
+
/*
|
|
7422
|
+
if we're not at the end of the timer, set the state by passing
|
|
7423
|
+
current step value that's transformed by the ease function to the
|
|
7424
|
+
interpolator, which is cached for performance whenever props are received
|
|
7425
|
+
*/
|
|
7426
|
+
|
|
7427
|
+
|
|
7428
|
+
_this.setState({
|
|
7429
|
+
data: _this.interpolator(_this.ease(step)),
|
|
7430
|
+
animationInfo: {
|
|
7431
|
+
progress: step,
|
|
7432
|
+
animating: step < 1
|
|
7433
|
+
}
|
|
7434
|
+
});
|
|
7435
|
+
};
|
|
7436
|
+
|
|
7326
7437
|
_this.state = {
|
|
7327
7438
|
data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
|
|
7328
7439
|
animationInfo: {
|
|
@@ -7334,13 +7445,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7334
7445
|
_this.queue = Array.isArray(_this.props.data) ? _this.props.data.slice(1) : [];
|
|
7335
7446
|
/* build easing function */
|
|
7336
7447
|
|
|
7337
|
-
_this.ease =
|
|
7338
|
-
/*
|
|
7339
|
-
There is no autobinding of this in ES6 classes
|
|
7340
|
-
so we bind functionToBeRunEachFrame to current instance of victory animation class
|
|
7341
|
-
*/
|
|
7342
|
-
|
|
7343
|
-
_this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
|
|
7448
|
+
_this.ease = victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
|
|
7344
7449
|
_this.timer = _this.context.animationTimer;
|
|
7345
7450
|
return _this;
|
|
7346
7451
|
}
|
|
@@ -7356,7 +7461,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7356
7461
|
}, {
|
|
7357
7462
|
key: "componentDidUpdate",
|
|
7358
7463
|
value: function componentDidUpdate(prevProps) {
|
|
7359
|
-
var equalProps =
|
|
7464
|
+
var equalProps = react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(this.props, prevProps);
|
|
7360
7465
|
|
|
7361
7466
|
if (!equalProps) {
|
|
7362
7467
|
/* If the previous animation didn't finish, force it to complete before starting a new one */
|
|
@@ -7425,7 +7530,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7425
7530
|
var data = this.queue[0];
|
|
7426
7531
|
/* compare cached version to next props */
|
|
7427
7532
|
|
|
7428
|
-
this.interpolator = (0,
|
|
7533
|
+
this.interpolator = (0,_util__WEBPACK_IMPORTED_MODULE_3__.victoryInterpolator)(this.state.data, data);
|
|
7429
7534
|
/* reset step to zero */
|
|
7430
7535
|
|
|
7431
7536
|
if (this.props.delay) {
|
|
@@ -7441,49 +7546,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7441
7546
|
}
|
|
7442
7547
|
/* every frame we... */
|
|
7443
7548
|
|
|
7444
|
-
}, {
|
|
7445
|
-
key: "functionToBeRunEachFrame",
|
|
7446
|
-
value: function functionToBeRunEachFrame(elapsed, duration) {
|
|
7447
|
-
/*
|
|
7448
|
-
step can generate imprecise values, sometimes greater than 1
|
|
7449
|
-
if this happens set the state to 1 and return, cancelling the timer
|
|
7450
|
-
*/
|
|
7451
|
-
duration = duration !== undefined ? duration : this.props.duration;
|
|
7452
|
-
var step = duration ? elapsed / duration : 1;
|
|
7453
|
-
|
|
7454
|
-
if (step >= 1) {
|
|
7455
|
-
this.setState({
|
|
7456
|
-
data: this.interpolator(1),
|
|
7457
|
-
animationInfo: {
|
|
7458
|
-
progress: 1,
|
|
7459
|
-
animating: false,
|
|
7460
|
-
terminating: true
|
|
7461
|
-
}
|
|
7462
|
-
});
|
|
7463
|
-
|
|
7464
|
-
if (this.loopID) {
|
|
7465
|
-
this.timer.unsubscribe(this.loopID);
|
|
7466
|
-
}
|
|
7467
|
-
|
|
7468
|
-
this.queue.shift();
|
|
7469
|
-
this.traverseQueue();
|
|
7470
|
-
return;
|
|
7471
|
-
}
|
|
7472
|
-
/*
|
|
7473
|
-
if we're not at the end of the timer, set the state by passing
|
|
7474
|
-
current step value that's transformed by the ease function to the
|
|
7475
|
-
interpolator, which is cached for performance whenever props are received
|
|
7476
|
-
*/
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
this.setState({
|
|
7480
|
-
data: this.interpolator(this.ease(step)),
|
|
7481
|
-
animationInfo: {
|
|
7482
|
-
progress: step,
|
|
7483
|
-
animating: step < 1
|
|
7484
|
-
}
|
|
7485
|
-
});
|
|
7486
|
-
}
|
|
7487
7549
|
}, {
|
|
7488
7550
|
key: "render",
|
|
7489
7551
|
value: function render() {
|
|
@@ -7493,28 +7555,23 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7493
7555
|
|
|
7494
7556
|
return VictoryAnimation;
|
|
7495
7557
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
7496
|
-
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
|
|
7501
|
-
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
});
|
|
7507
|
-
|
|
7508
|
-
_defineProperty(VictoryAnimation, "defaultProps", {
|
|
7558
|
+
VictoryAnimation.displayName = "VictoryAnimation";
|
|
7559
|
+
VictoryAnimation.propTypes = {
|
|
7560
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
7561
|
+
data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
|
|
7562
|
+
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7563
|
+
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7564
|
+
easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
|
|
7565
|
+
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
7566
|
+
};
|
|
7567
|
+
VictoryAnimation.defaultProps = {
|
|
7509
7568
|
data: {},
|
|
7510
7569
|
delay: 0,
|
|
7511
7570
|
duration: 1000,
|
|
7512
7571
|
easing: "quadInOut"
|
|
7513
|
-
}
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7572
|
+
};
|
|
7573
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
7574
|
+
//# sourceMappingURL=victory-animation.js.map
|
|
7518
7575
|
|
|
7519
7576
|
/***/ }),
|
|
7520
7577
|
|
|
@@ -7527,7 +7584,7 @@ _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WE
|
|
|
7527
7584
|
"use strict";
|
|
7528
7585
|
__webpack_require__.r(__webpack_exports__);
|
|
7529
7586
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7530
|
-
/* harmony export */ "
|
|
7587
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
7531
7588
|
/* harmony export */ });
|
|
7532
7589
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7533
7590
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7541,26 +7598,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7541
7598
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
7542
7599
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
7543
7600
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
7544
|
-
/* harmony import */ var
|
|
7545
|
-
/* harmony import */ var
|
|
7601
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7602
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
7546
7603
|
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
7547
7604
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7548
|
-
/* harmony import */ var
|
|
7605
|
+
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
7549
7606
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
7550
|
-
/* harmony import */ var
|
|
7551
|
-
/* harmony import */ var
|
|
7607
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7608
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
7552
7609
|
|
|
7553
7610
|
|
|
7554
7611
|
|
|
7555
7612
|
|
|
7556
7613
|
|
|
7557
7614
|
|
|
7558
|
-
function _extends() { _extends = Object.assign
|
|
7615
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
7559
7616
|
|
|
7560
7617
|
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; }
|
|
7561
7618
|
|
|
7562
7619
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7563
7620
|
|
|
7621
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7622
|
+
|
|
7564
7623
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7565
7624
|
|
|
7566
7625
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -7569,7 +7628,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7569
7628
|
|
|
7570
7629
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
7571
7630
|
|
|
7572
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7631
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7573
7632
|
|
|
7574
7633
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7575
7634
|
|
|
@@ -7579,10 +7638,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7579
7638
|
|
|
7580
7639
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7581
7640
|
|
|
7582
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7583
|
-
|
|
7584
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7585
|
-
|
|
7641
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7586
7642
|
|
|
7587
7643
|
|
|
7588
7644
|
|
|
@@ -7597,13 +7653,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7597
7653
|
|
|
7598
7654
|
var _super = _createSuper(VictoryContainer);
|
|
7599
7655
|
|
|
7656
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7657
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7600
7658
|
function VictoryContainer(props) {
|
|
7601
7659
|
var _this;
|
|
7602
7660
|
|
|
7603
7661
|
_classCallCheck(this, VictoryContainer);
|
|
7604
7662
|
|
|
7605
7663
|
_this = _super.call(this, props);
|
|
7606
|
-
_this.containerId =
|
|
7664
|
+
_this.containerId = void 0;
|
|
7665
|
+
_this.portalRef = void 0;
|
|
7666
|
+
_this.containerRef = void 0;
|
|
7667
|
+
_this.shouldHandleWheel = void 0;
|
|
7607
7668
|
|
|
7608
7669
|
_this.savePortalRef = function (portal) {
|
|
7609
7670
|
_this.portalRef = portal;
|
|
@@ -7622,18 +7683,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7622
7683
|
return _this.portalRef.portalDeregister(key);
|
|
7623
7684
|
};
|
|
7624
7685
|
|
|
7625
|
-
_this.saveContainerRef =
|
|
7686
|
+
_this.saveContainerRef = function (container) {
|
|
7687
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
7688
|
+
_this.props.containerRef(container);
|
|
7689
|
+
}
|
|
7690
|
+
|
|
7626
7691
|
_this.containerRef = container;
|
|
7627
7692
|
return container;
|
|
7628
7693
|
};
|
|
7629
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
7630
7694
|
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
};
|
|
7635
|
-
}
|
|
7695
|
+
_this.handleWheel = function (e) {
|
|
7696
|
+
return e.preventDefault();
|
|
7697
|
+
};
|
|
7636
7698
|
|
|
7699
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
7700
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
7637
7701
|
return _this;
|
|
7638
7702
|
}
|
|
7639
7703
|
|
|
@@ -7726,7 +7790,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7726
7790
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
7727
7791
|
style: portalSvgStyle
|
|
7728
7792
|
};
|
|
7729
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
7793
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
7730
7794
|
value: {
|
|
7731
7795
|
portalUpdate: this.portalUpdate,
|
|
7732
7796
|
portalRegister: this.portalRegister,
|
|
@@ -7761,8 +7825,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7761
7825
|
tabIndex = _this$props.tabIndex,
|
|
7762
7826
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
7763
7827
|
role = _this$props.role;
|
|
7764
|
-
var style = responsive ? this.props.style :
|
|
7765
|
-
var userProps =
|
|
7828
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
7829
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
7766
7830
|
|
|
7767
7831
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
7768
7832
|
width: width,
|
|
@@ -7781,53 +7845,47 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7781
7845
|
|
|
7782
7846
|
return VictoryContainer;
|
|
7783
7847
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
7784
|
-
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
|
|
7794
|
-
|
|
7795
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
7796
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
7797
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
7848
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
7849
|
+
VictoryContainer.role = "container";
|
|
7850
|
+
VictoryContainer.propTypes = {
|
|
7851
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7852
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7853
|
+
children: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_9___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)]),
|
|
7854
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7855
|
+
containerId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
7856
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
7857
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7858
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7798
7859
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7799
|
-
name: (
|
|
7800
|
-
origin:
|
|
7860
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7861
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
7801
7862
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7802
7863
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7803
7864
|
}),
|
|
7804
|
-
ouiaId:
|
|
7805
|
-
ouiaSafe: (
|
|
7806
|
-
ouiaType: (
|
|
7807
|
-
polar: (
|
|
7808
|
-
portalComponent: (
|
|
7865
|
+
ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
7866
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7867
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7868
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7869
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
7809
7870
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
7810
|
-
preserveAspectRatio: (
|
|
7811
|
-
responsive: (
|
|
7812
|
-
role: (
|
|
7813
|
-
style: (
|
|
7814
|
-
tabIndex: (
|
|
7815
|
-
theme: (
|
|
7816
|
-
title: (
|
|
7871
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7872
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7873
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7874
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7875
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
7876
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7877
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7817
7878
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7818
|
-
}
|
|
7819
|
-
|
|
7820
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
7879
|
+
};
|
|
7880
|
+
VictoryContainer.defaultProps = {
|
|
7821
7881
|
className: "VictoryContainer",
|
|
7822
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
7882
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
7823
7883
|
portalZIndex: 99,
|
|
7824
7884
|
responsive: true,
|
|
7825
7885
|
role: "img"
|
|
7826
|
-
}
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7886
|
+
};
|
|
7887
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
7888
|
+
//# sourceMappingURL=victory-container.js.map
|
|
7831
7889
|
|
|
7832
7890
|
/***/ }),
|
|
7833
7891
|
|
|
@@ -7840,7 +7898,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
7840
7898
|
"use strict";
|
|
7841
7899
|
__webpack_require__.r(__webpack_exports__);
|
|
7842
7900
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7843
|
-
/* harmony export */ "
|
|
7901
|
+
/* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
|
|
7844
7902
|
/* harmony export */ });
|
|
7845
7903
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
7846
7904
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7848,20 +7906,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7848
7906
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
7849
7907
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
7850
7908
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
|
|
7851
|
-
/* harmony import */ var
|
|
7852
|
-
/* harmony import */ var
|
|
7853
|
-
/* harmony import */ var
|
|
7854
|
-
/* harmony import */ var
|
|
7909
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7910
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
|
|
7911
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
7912
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
7855
7913
|
/* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
|
|
7856
|
-
/* harmony import */ var
|
|
7857
|
-
/* harmony import */ var
|
|
7858
|
-
/* harmony import */ var
|
|
7859
|
-
/* harmony import */ var
|
|
7860
|
-
/* harmony import */ var
|
|
7861
|
-
/* harmony import */ var
|
|
7862
|
-
/* harmony import */ var
|
|
7863
|
-
/* harmony import */ var
|
|
7914
|
+
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
7915
|
+
/* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
|
|
7916
|
+
/* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../victory-primitives/tspan */ "../../victory-core/es/victory-primitives/tspan.js");
|
|
7917
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7918
|
+
/* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/label-helpers */ "../../victory-core/es/victory-util/label-helpers.js");
|
|
7919
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
7920
|
+
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
7921
|
+
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
7864
7922
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
7923
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
7865
7924
|
|
|
7866
7925
|
|
|
7867
7926
|
|
|
@@ -7896,6 +7955,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7896
7955
|
|
|
7897
7956
|
|
|
7898
7957
|
|
|
7958
|
+
|
|
7899
7959
|
var defaultStyles = {
|
|
7900
7960
|
fill: "#252525",
|
|
7901
7961
|
fontSize: 14,
|
|
@@ -7908,7 +7968,7 @@ var getPosition = function (props, dimension) {
|
|
|
7908
7968
|
return 0;
|
|
7909
7969
|
}
|
|
7910
7970
|
|
|
7911
|
-
var scaledPoint =
|
|
7971
|
+
var scaledPoint = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, props.datum);
|
|
7912
7972
|
return scaledPoint[dimension];
|
|
7913
7973
|
};
|
|
7914
7974
|
|
|
@@ -7925,7 +7985,7 @@ var getFontSize = function (style) {
|
|
|
7925
7985
|
if (!isNaN(fontSize)) {
|
|
7926
7986
|
return fontSize;
|
|
7927
7987
|
} else {
|
|
7928
|
-
|
|
7988
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_5__.warn("fontSize should be expressed as a number of pixels");
|
|
7929
7989
|
return defaultStyles.fontSize;
|
|
7930
7990
|
}
|
|
7931
7991
|
}
|
|
@@ -7946,7 +8006,7 @@ var shouldUseMultilineBackgrounds = function (props) {
|
|
|
7946
8006
|
|
|
7947
8007
|
var getStyles = function (style, props) {
|
|
7948
8008
|
if (props.disableInlineStyles) {
|
|
7949
|
-
var baseStyles =
|
|
8009
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
7950
8010
|
return {
|
|
7951
8011
|
// Font size is necessary to calculate the y position of the label
|
|
7952
8012
|
fontSize: getFontSize(baseStyles)
|
|
@@ -7955,7 +8015,7 @@ var getStyles = function (style, props) {
|
|
|
7955
8015
|
|
|
7956
8016
|
var getSingleStyle = function (s) {
|
|
7957
8017
|
s = s ? lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, s, defaultStyles) : defaultStyles;
|
|
7958
|
-
var baseStyles =
|
|
8018
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
7959
8019
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, baseStyles, {
|
|
7960
8020
|
fontSize: getFontSize(baseStyles)
|
|
7961
8021
|
});
|
|
@@ -7972,28 +8032,28 @@ var getBackgroundStyles = function (style, props) {
|
|
|
7972
8032
|
}
|
|
7973
8033
|
|
|
7974
8034
|
return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) {
|
|
7975
|
-
return
|
|
7976
|
-
}) :
|
|
8035
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
8036
|
+
}) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
7977
8037
|
};
|
|
7978
8038
|
|
|
7979
8039
|
var getBackgroundPadding = function (props) {
|
|
7980
8040
|
if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
|
|
7981
8041
|
return props.backgroundPadding.map(function (backgroundPadding) {
|
|
7982
|
-
var padding =
|
|
7983
|
-
return
|
|
8042
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(backgroundPadding, props);
|
|
8043
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
7984
8044
|
padding: padding
|
|
7985
8045
|
});
|
|
7986
8046
|
});
|
|
7987
8047
|
} else {
|
|
7988
|
-
var padding =
|
|
7989
|
-
return
|
|
8048
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.backgroundPadding, props);
|
|
8049
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
7990
8050
|
padding: padding
|
|
7991
8051
|
});
|
|
7992
8052
|
}
|
|
7993
8053
|
};
|
|
7994
8054
|
|
|
7995
8055
|
var getLineHeight = function (props) {
|
|
7996
|
-
var lineHeight =
|
|
8056
|
+
var lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.lineHeight, props);
|
|
7997
8057
|
|
|
7998
8058
|
if (Array.isArray(lineHeight)) {
|
|
7999
8059
|
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
|
|
@@ -8009,11 +8069,11 @@ var getContent = function (text, props) {
|
|
|
8009
8069
|
|
|
8010
8070
|
if (Array.isArray(text)) {
|
|
8011
8071
|
return text.map(function (line) {
|
|
8012
|
-
return
|
|
8072
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(line, props);
|
|
8013
8073
|
});
|
|
8014
8074
|
}
|
|
8015
8075
|
|
|
8016
|
-
var child =
|
|
8076
|
+
var child = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(text, props);
|
|
8017
8077
|
|
|
8018
8078
|
if (child === undefined || child === null) {
|
|
8019
8079
|
return undefined;
|
|
@@ -8023,10 +8083,10 @@ var getContent = function (text, props) {
|
|
|
8023
8083
|
};
|
|
8024
8084
|
|
|
8025
8085
|
var getDy = function (props, verticalAnchor, lineHeight) {
|
|
8026
|
-
var dy = props.dy ?
|
|
8086
|
+
var dy = props.dy ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dy, props) : 0;
|
|
8027
8087
|
var length = props.inline ? 1 : props.text.length;
|
|
8028
|
-
var capHeight =
|
|
8029
|
-
var anchor = verticalAnchor ?
|
|
8088
|
+
var capHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.capHeight, props);
|
|
8089
|
+
var anchor = verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(verticalAnchor, props) : "middle";
|
|
8030
8090
|
|
|
8031
8091
|
var fontSizes = _toConsumableArray(Array(length).keys()).map(function (i) {
|
|
8032
8092
|
return getSingleValue(props.style, i).fontSize;
|
|
@@ -8054,15 +8114,15 @@ var getDy = function (props, verticalAnchor, lineHeight) {
|
|
|
8054
8114
|
var getTransform = function (props, x, y) {
|
|
8055
8115
|
var polar = props.polar;
|
|
8056
8116
|
var style = getSingleValue(props.style);
|
|
8057
|
-
var defaultAngle = polar ?
|
|
8058
|
-
var baseAngle = style.angle === undefined ?
|
|
8117
|
+
var defaultAngle = polar ? _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(props) : 0;
|
|
8118
|
+
var baseAngle = style.angle === undefined ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.angle, props) : style.angle;
|
|
8059
8119
|
var angle = baseAngle === undefined ? defaultAngle : baseAngle;
|
|
8060
8120
|
var transform = props.transform || style.transform;
|
|
8061
|
-
var transformPart = transform &&
|
|
8121
|
+
var transformPart = transform && _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(transform, props);
|
|
8062
8122
|
var rotatePart = angle && {
|
|
8063
8123
|
rotate: [angle, x, y]
|
|
8064
8124
|
};
|
|
8065
|
-
return transformPart || angle ?
|
|
8125
|
+
return transformPart || angle ? _victory_util_style__WEBPACK_IMPORTED_MODULE_7__.toTransformString(transformPart, rotatePart) : undefined;
|
|
8066
8126
|
};
|
|
8067
8127
|
|
|
8068
8128
|
var getXCoordinate = function (calculatedProps, labelSizeWidth) {
|
|
@@ -8143,7 +8203,7 @@ var getFullBackground = function (calculatedProps, tspanValues) {
|
|
|
8143
8203
|
x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
|
|
8144
8204
|
y: yCoordinate
|
|
8145
8205
|
};
|
|
8146
|
-
return /*#__PURE__*/
|
|
8206
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8147
8207
|
};
|
|
8148
8208
|
|
|
8149
8209
|
var getInlineXOffset = function (calculatedProps, textElements, index) {
|
|
@@ -8225,7 +8285,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
|
|
|
8225
8285
|
x: xCoord - padding.left,
|
|
8226
8286
|
y: yCoord
|
|
8227
8287
|
};
|
|
8228
|
-
return /*#__PURE__*/
|
|
8288
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8229
8289
|
});
|
|
8230
8290
|
};
|
|
8231
8291
|
|
|
@@ -8276,7 +8336,7 @@ var evaluateProps = function (props) {
|
|
|
8276
8336
|
style: style,
|
|
8277
8337
|
backgroundStyle: backgroundStyle
|
|
8278
8338
|
}));
|
|
8279
|
-
var id =
|
|
8339
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
|
|
8280
8340
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
|
|
8281
8341
|
backgroundStyle: backgroundStyle,
|
|
8282
8342
|
backgroundPadding: backgroundPadding,
|
|
@@ -8287,13 +8347,13 @@ var evaluateProps = function (props) {
|
|
|
8287
8347
|
};
|
|
8288
8348
|
|
|
8289
8349
|
var getCalculatedProps = function (props) {
|
|
8290
|
-
var ariaLabel =
|
|
8350
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
|
|
8291
8351
|
var style = getSingleValue(props.style);
|
|
8292
8352
|
var lineHeight = getLineHeight(props);
|
|
8293
|
-
var direction = props.direction ?
|
|
8294
|
-
var textAnchor = props.textAnchor ?
|
|
8295
|
-
var verticalAnchor = props.verticalAnchor ?
|
|
8296
|
-
var dx = props.dx ?
|
|
8353
|
+
var direction = props.direction ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.direction, props) : "inherit";
|
|
8354
|
+
var textAnchor = props.textAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.textAnchor, props) : style.textAnchor || "start";
|
|
8355
|
+
var verticalAnchor = props.verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.verticalAnchor, props) : style.verticalAnchor || "middle";
|
|
8356
|
+
var dx = props.dx ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dx, props) : 0;
|
|
8297
8357
|
var dy = getDy(props, verticalAnchor, lineHeight);
|
|
8298
8358
|
var x = props.x !== undefined ? props.x : getPosition(props, "x");
|
|
8299
8359
|
var y = props.y !== undefined ? props.y : getPosition(props, "y");
|
|
@@ -8332,6 +8392,7 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8332
8392
|
tabIndex = calculatedProps.tabIndex,
|
|
8333
8393
|
tspanComponent = calculatedProps.tspanComponent,
|
|
8334
8394
|
textComponent = calculatedProps.textComponent;
|
|
8395
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(calculatedProps);
|
|
8335
8396
|
|
|
8336
8397
|
var textProps = _objectSpread(_objectSpread({
|
|
8337
8398
|
"aria-label": ariaLabel,
|
|
@@ -8344,10 +8405,10 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8344
8405
|
transform: transform,
|
|
8345
8406
|
className: className,
|
|
8346
8407
|
title: title,
|
|
8347
|
-
desc:
|
|
8348
|
-
tabIndex:
|
|
8408
|
+
desc: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(desc, calculatedProps),
|
|
8409
|
+
tabIndex: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(tabIndex, calculatedProps),
|
|
8349
8410
|
id: id
|
|
8350
|
-
});
|
|
8411
|
+
}, userProps);
|
|
8351
8412
|
|
|
8352
8413
|
var tspans = text.map(function (line, i) {
|
|
8353
8414
|
var currentStyle = tspanValues[i].style;
|
|
@@ -8360,9 +8421,9 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8360
8421
|
style: currentStyle,
|
|
8361
8422
|
children: line
|
|
8362
8423
|
};
|
|
8363
|
-
return /*#__PURE__*/
|
|
8424
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(tspanComponent, tspanProps);
|
|
8364
8425
|
});
|
|
8365
|
-
return /*#__PURE__*/
|
|
8426
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(textComponent, textProps, tspans);
|
|
8366
8427
|
};
|
|
8367
8428
|
|
|
8368
8429
|
var VictoryLabel = function (props) {
|
|
@@ -8387,6 +8448,7 @@ var VictoryLabel = function (props) {
|
|
|
8387
8448
|
fontSize: currentStyle.fontSize || defaultStyles.fontSize,
|
|
8388
8449
|
capHeight: capHeightPx,
|
|
8389
8450
|
text: line,
|
|
8451
|
+
// @ts-expect-error TODO: This looks like a bug:
|
|
8390
8452
|
textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
|
|
8391
8453
|
lineHeight: currentLineHeight,
|
|
8392
8454
|
backgroundPadding: getSingleValue(backgroundPadding, i)
|
|
@@ -8397,71 +8459,75 @@ var VictoryLabel = function (props) {
|
|
|
8397
8459
|
if (props.backgroundStyle) {
|
|
8398
8460
|
var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
|
|
8399
8461
|
var children = [backgroundElement, label];
|
|
8400
|
-
var backgroundWithLabel = /*#__PURE__*/
|
|
8401
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
8462
|
+
var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
|
|
8463
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
|
|
8402
8464
|
}
|
|
8403
8465
|
|
|
8404
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
8466
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
|
|
8405
8467
|
};
|
|
8406
|
-
|
|
8407
8468
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8408
8469
|
VictoryLabel.role = "label";
|
|
8409
8470
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
8410
8471
|
VictoryLabel.propTypes = {
|
|
8411
|
-
active: (
|
|
8412
|
-
angle:
|
|
8413
|
-
ariaLabel:
|
|
8414
|
-
backgroundComponent: (
|
|
8415
|
-
backgroundPadding:
|
|
8416
|
-
backgroundStyle:
|
|
8417
|
-
capHeight:
|
|
8418
|
-
className: (
|
|
8419
|
-
data: (
|
|
8420
|
-
datum: (
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
-
|
|
8424
|
-
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8472
|
+
active: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8473
|
+
angle: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8474
|
+
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8475
|
+
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8476
|
+
backgroundPadding: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8477
|
+
backgroundStyle: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8478
|
+
capHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8479
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
8480
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
8481
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
|
|
8482
|
+
// @ts-expect-error "Function is not assignable to string"
|
|
8483
|
+
desc: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8484
|
+
direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
8485
|
+
dx: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8486
|
+
dy: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8487
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
8488
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8489
|
+
id: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8490
|
+
index: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
8491
|
+
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8492
|
+
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
8493
|
+
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)]),
|
|
8494
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
8495
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
8496
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
8435
8497
|
}),
|
|
8436
|
-
polar: (
|
|
8437
|
-
renderInPortal: (
|
|
8438
|
-
scale:
|
|
8439
|
-
x:
|
|
8440
|
-
y:
|
|
8498
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8499
|
+
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8500
|
+
scale: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
8501
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale,
|
|
8502
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale
|
|
8441
8503
|
}),
|
|
8442
|
-
style:
|
|
8443
|
-
tabIndex:
|
|
8444
|
-
text:
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8448
|
-
|
|
8449
|
-
|
|
8450
|
-
|
|
8451
|
-
|
|
8452
|
-
|
|
8504
|
+
style: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8505
|
+
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8506
|
+
text: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8507
|
+
// @ts-expect-error Function is not assignable to string"
|
|
8508
|
+
textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8509
|
+
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8510
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
8511
|
+
transform: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8512
|
+
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8513
|
+
// @ts-expect-error Function is not assignable to string"
|
|
8514
|
+
verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8515
|
+
// @ts-expect-error Number is not assignable to string
|
|
8516
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
8517
|
+
// @ts-expect-error Number is not assignable to string
|
|
8518
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)])
|
|
8453
8519
|
};
|
|
8454
8520
|
VictoryLabel.defaultProps = {
|
|
8455
|
-
backgroundComponent: /*#__PURE__*/
|
|
8456
|
-
groupComponent: /*#__PURE__*/
|
|
8521
|
+
backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
|
|
8522
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
8457
8523
|
direction: "inherit",
|
|
8458
|
-
textComponent: /*#__PURE__*/
|
|
8459
|
-
tspanComponent: /*#__PURE__*/
|
|
8524
|
+
textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
|
|
8525
|
+
tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
|
|
8460
8526
|
capHeight: 0.71,
|
|
8461
8527
|
// Magic number from d3.
|
|
8462
8528
|
lineHeight: 1
|
|
8463
8529
|
};
|
|
8464
|
-
|
|
8530
|
+
//# sourceMappingURL=victory-label.js.map
|
|
8465
8531
|
|
|
8466
8532
|
/***/ }),
|
|
8467
8533
|
|
|
@@ -8474,19 +8540,19 @@ VictoryLabel.defaultProps = {
|
|
|
8474
8540
|
"use strict";
|
|
8475
8541
|
__webpack_require__.r(__webpack_exports__);
|
|
8476
8542
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8477
|
-
/* harmony export */ "
|
|
8543
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
8478
8544
|
/* harmony export */ });
|
|
8479
8545
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8480
8546
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8481
8547
|
|
|
8548
|
+
|
|
8482
8549
|
/**
|
|
8483
8550
|
* The React context object consumers may use to access the context of the
|
|
8484
8551
|
* portal.
|
|
8485
8552
|
*/
|
|
8486
|
-
|
|
8487
8553
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
8488
8554
|
PortalContext.displayName = "PortalContext";
|
|
8489
|
-
|
|
8555
|
+
//# sourceMappingURL=portal-context.js.map
|
|
8490
8556
|
|
|
8491
8557
|
/***/ }),
|
|
8492
8558
|
|
|
@@ -8499,7 +8565,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
8499
8565
|
"use strict";
|
|
8500
8566
|
__webpack_require__.r(__webpack_exports__);
|
|
8501
8567
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8502
|
-
/* harmony export */ "
|
|
8568
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
8503
8569
|
/* harmony export */ });
|
|
8504
8570
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
8505
8571
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8518,7 +8584,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8518
8584
|
|
|
8519
8585
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8520
8586
|
|
|
8521
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8587
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8522
8588
|
|
|
8523
8589
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8524
8590
|
|
|
@@ -8528,10 +8594,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8528
8594
|
|
|
8529
8595
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8530
8596
|
|
|
8531
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8532
|
-
|
|
8533
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8534
|
-
|
|
8597
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8535
8598
|
|
|
8536
8599
|
|
|
8537
8600
|
|
|
@@ -8547,32 +8610,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8547
8610
|
_classCallCheck(this, Portal);
|
|
8548
8611
|
|
|
8549
8612
|
_this = _super.call(this, props);
|
|
8613
|
+
_this.map = void 0;
|
|
8614
|
+
_this.index = void 0;
|
|
8615
|
+
|
|
8616
|
+
_this.portalRegister = function () {
|
|
8617
|
+
return ++_this.index;
|
|
8618
|
+
};
|
|
8619
|
+
|
|
8620
|
+
_this.portalUpdate = function (key, element) {
|
|
8621
|
+
_this.map[key] = element;
|
|
8622
|
+
|
|
8623
|
+
_this.forceUpdate();
|
|
8624
|
+
};
|
|
8625
|
+
|
|
8626
|
+
_this.portalDeregister = function (key) {
|
|
8627
|
+
delete _this.map[key];
|
|
8628
|
+
|
|
8629
|
+
_this.forceUpdate();
|
|
8630
|
+
};
|
|
8631
|
+
|
|
8550
8632
|
_this.map = {};
|
|
8551
8633
|
_this.index = 1;
|
|
8552
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
8553
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
8554
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
8555
8634
|
return _this;
|
|
8556
8635
|
}
|
|
8557
8636
|
|
|
8558
8637
|
_createClass(Portal, [{
|
|
8559
|
-
key: "portalRegister",
|
|
8560
|
-
value: function portalRegister() {
|
|
8561
|
-
return ++this.index;
|
|
8562
|
-
}
|
|
8563
|
-
}, {
|
|
8564
|
-
key: "portalUpdate",
|
|
8565
|
-
value: function portalUpdate(key, element) {
|
|
8566
|
-
this.map[key] = element;
|
|
8567
|
-
this.forceUpdate();
|
|
8568
|
-
}
|
|
8569
|
-
}, {
|
|
8570
|
-
key: "portalDeregister",
|
|
8571
|
-
value: function portalDeregister(key) {
|
|
8572
|
-
delete this.map[key];
|
|
8573
|
-
this.forceUpdate();
|
|
8574
|
-
}
|
|
8575
|
-
}, {
|
|
8576
8638
|
key: "getChildren",
|
|
8577
8639
|
value: function getChildren() {
|
|
8578
8640
|
var _this2 = this;
|
|
@@ -8594,18 +8656,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8594
8656
|
|
|
8595
8657
|
return Portal;
|
|
8596
8658
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8597
|
-
|
|
8598
|
-
|
|
8599
|
-
|
|
8600
|
-
_defineProperty(Portal, "propTypes", {
|
|
8659
|
+
Portal.displayName = "Portal";
|
|
8660
|
+
Portal.propTypes = {
|
|
8601
8661
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8602
8662
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
8603
8663
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
8604
8664
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8605
8665
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
8606
|
-
}
|
|
8607
|
-
|
|
8608
|
-
|
|
8666
|
+
};
|
|
8667
|
+
//# sourceMappingURL=portal.js.map
|
|
8609
8668
|
|
|
8610
8669
|
/***/ }),
|
|
8611
8670
|
|
|
@@ -8618,16 +8677,16 @@ _defineProperty(Portal, "propTypes", {
|
|
|
8618
8677
|
"use strict";
|
|
8619
8678
|
__webpack_require__.r(__webpack_exports__);
|
|
8620
8679
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8621
|
-
/* harmony export */ "
|
|
8680
|
+
/* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
|
|
8622
8681
|
/* harmony export */ });
|
|
8623
8682
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
8624
8683
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
8625
8684
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8626
8685
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8627
|
-
/* harmony import */ var
|
|
8628
|
-
/* harmony import */ var
|
|
8629
|
-
/* harmony import */ var
|
|
8630
|
-
/* harmony import */ var
|
|
8686
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8687
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
8688
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8689
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8631
8690
|
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
8632
8691
|
|
|
8633
8692
|
|
|
@@ -8639,7 +8698,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8639
8698
|
|
|
8640
8699
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8641
8700
|
|
|
8642
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8701
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8643
8702
|
|
|
8644
8703
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8645
8704
|
|
|
@@ -8649,10 +8708,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8649
8708
|
|
|
8650
8709
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8651
8710
|
|
|
8652
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8653
|
-
|
|
8654
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8655
|
-
|
|
8711
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8656
8712
|
|
|
8657
8713
|
|
|
8658
8714
|
|
|
@@ -8665,9 +8721,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8665
8721
|
var _super = _createSuper(VictoryPortal);
|
|
8666
8722
|
|
|
8667
8723
|
function VictoryPortal() {
|
|
8724
|
+
var _this;
|
|
8725
|
+
|
|
8668
8726
|
_classCallCheck(this, VictoryPortal);
|
|
8669
8727
|
|
|
8670
|
-
|
|
8728
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8729
|
+
args[_key] = arguments[_key];
|
|
8730
|
+
}
|
|
8731
|
+
|
|
8732
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
8733
|
+
_this.checkedContext = void 0;
|
|
8734
|
+
_this.renderInPlace = void 0;
|
|
8735
|
+
_this.element = void 0;
|
|
8736
|
+
_this.portalKey = void 0;
|
|
8737
|
+
return _this;
|
|
8671
8738
|
}
|
|
8672
8739
|
|
|
8673
8740
|
_createClass(VictoryPortal, [{
|
|
@@ -8676,7 +8743,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8676
8743
|
if (!this.checkedContext) {
|
|
8677
8744
|
if (typeof this.context.portalUpdate !== "function") {
|
|
8678
8745
|
var msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
|
|
8679
|
-
|
|
8746
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_2__.warn(msg);
|
|
8680
8747
|
this.renderInPlace = true;
|
|
8681
8748
|
}
|
|
8682
8749
|
|
|
@@ -8722,7 +8789,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8722
8789
|
standalone: false
|
|
8723
8790
|
} : {};
|
|
8724
8791
|
|
|
8725
|
-
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps,
|
|
8792
|
+
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.omit(this.props, ["children", "groupComponent"]));
|
|
8726
8793
|
|
|
8727
8794
|
var child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
|
|
8728
8795
|
return this.renderPortal(child);
|
|
@@ -8731,23 +8798,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8731
8798
|
|
|
8732
8799
|
return VictoryPortal;
|
|
8733
8800
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8741
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element)
|
|
8742
|
-
});
|
|
8743
|
-
|
|
8744
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
8801
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
8802
|
+
VictoryPortal.role = "portal";
|
|
8803
|
+
VictoryPortal.propTypes = {
|
|
8804
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
8805
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
8806
|
+
};
|
|
8807
|
+
VictoryPortal.defaultProps = {
|
|
8745
8808
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
8746
|
-
}
|
|
8747
|
-
|
|
8748
|
-
|
|
8749
|
-
|
|
8750
|
-
|
|
8809
|
+
};
|
|
8810
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
8811
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
8751
8812
|
|
|
8752
8813
|
/***/ }),
|
|
8753
8814
|
|
|
@@ -8760,7 +8821,7 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
|
|
|
8760
8821
|
"use strict";
|
|
8761
8822
|
__webpack_require__.r(__webpack_exports__);
|
|
8762
8823
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8763
|
-
/* harmony export */ "
|
|
8824
|
+
/* harmony export */ "Path": () => (/* binding */ Path)
|
|
8764
8825
|
/* harmony export */ });
|
|
8765
8826
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8766
8827
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8771,16 +8832,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
8771
8832
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8772
8833
|
|
|
8773
8834
|
|
|
8774
|
-
|
|
8775
8835
|
var Path = function (props) {
|
|
8776
8836
|
// eslint-disable-next-line react/prop-types
|
|
8777
8837
|
var desc = props.desc,
|
|
8778
8838
|
rest = _objectWithoutProperties(props, _excluded);
|
|
8779
8839
|
|
|
8780
|
-
return desc ?
|
|
8840
|
+
return desc ?
|
|
8841
|
+
/*#__PURE__*/
|
|
8842
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8843
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
8844
|
+
/*#__PURE__*/
|
|
8845
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8846
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
8781
8847
|
};
|
|
8782
|
-
|
|
8783
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
|
|
8848
|
+
//# sourceMappingURL=path.js.map
|
|
8784
8849
|
|
|
8785
8850
|
/***/ }),
|
|
8786
8851
|
|
|
@@ -8793,33 +8858,37 @@ var Path = function (props) {
|
|
|
8793
8858
|
"use strict";
|
|
8794
8859
|
__webpack_require__.r(__webpack_exports__);
|
|
8795
8860
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8796
|
-
/* harmony export */ "
|
|
8861
|
+
/* harmony export */ "Rect": () => (/* binding */ Rect)
|
|
8797
8862
|
/* harmony export */ });
|
|
8798
8863
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8799
8864
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8800
8865
|
var _excluded = ["desc"];
|
|
8801
8866
|
|
|
8802
|
-
function _extends() { _extends = Object.assign
|
|
8867
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
8803
8868
|
|
|
8804
8869
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8805
8870
|
|
|
8806
8871
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8807
8872
|
|
|
8808
8873
|
|
|
8809
|
-
|
|
8810
8874
|
var Rect = function (props) {
|
|
8811
8875
|
// eslint-disable-next-line react/prop-types
|
|
8812
8876
|
var desc = props.desc,
|
|
8813
8877
|
rest = _objectWithoutProperties(props, _excluded);
|
|
8814
8878
|
|
|
8815
|
-
return desc ?
|
|
8879
|
+
return desc ?
|
|
8880
|
+
/*#__PURE__*/
|
|
8881
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8882
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
8816
8883
|
vectorEffect: "non-scaling-stroke"
|
|
8817
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
8884
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
8885
|
+
/*#__PURE__*/
|
|
8886
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8887
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
8818
8888
|
vectorEffect: "non-scaling-stroke"
|
|
8819
8889
|
}, rest));
|
|
8820
8890
|
};
|
|
8821
|
-
|
|
8822
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
|
|
8891
|
+
//# sourceMappingURL=rect.js.map
|
|
8823
8892
|
|
|
8824
8893
|
/***/ }),
|
|
8825
8894
|
|
|
@@ -8832,7 +8901,7 @@ var Rect = function (props) {
|
|
|
8832
8901
|
"use strict";
|
|
8833
8902
|
__webpack_require__.r(__webpack_exports__);
|
|
8834
8903
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8835
|
-
/* harmony export */ "
|
|
8904
|
+
/* harmony export */ "Text": () => (/* binding */ Text)
|
|
8836
8905
|
/* harmony export */ });
|
|
8837
8906
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8838
8907
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8846,22 +8915,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
8846
8915
|
|
|
8847
8916
|
|
|
8848
8917
|
|
|
8849
|
-
|
|
8850
8918
|
var Text = function (props) {
|
|
8851
8919
|
var children = props.children,
|
|
8852
8920
|
title = props.title,
|
|
8853
8921
|
desc = props.desc,
|
|
8854
8922
|
rest = _objectWithoutProperties(props, _excluded);
|
|
8855
8923
|
|
|
8856
|
-
return
|
|
8924
|
+
return (
|
|
8925
|
+
/*#__PURE__*/
|
|
8926
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8927
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children)
|
|
8928
|
+
);
|
|
8857
8929
|
};
|
|
8858
|
-
|
|
8859
8930
|
Text.propTypes = {
|
|
8860
8931
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
8861
8932
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
8862
8933
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
8863
8934
|
};
|
|
8864
|
-
|
|
8935
|
+
//# sourceMappingURL=text.js.map
|
|
8865
8936
|
|
|
8866
8937
|
/***/ }),
|
|
8867
8938
|
|
|
@@ -8874,17 +8945,19 @@ Text.propTypes = {
|
|
|
8874
8945
|
"use strict";
|
|
8875
8946
|
__webpack_require__.r(__webpack_exports__);
|
|
8876
8947
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8877
|
-
/* harmony export */ "
|
|
8948
|
+
/* harmony export */ "TSpan": () => (/* binding */ TSpan)
|
|
8878
8949
|
/* harmony export */ });
|
|
8879
8950
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8880
8951
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8881
8952
|
|
|
8882
|
-
|
|
8883
8953
|
var TSpan = function (props) {
|
|
8884
|
-
return
|
|
8954
|
+
return (
|
|
8955
|
+
/*#__PURE__*/
|
|
8956
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8957
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
8958
|
+
);
|
|
8885
8959
|
};
|
|
8886
|
-
|
|
8887
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
|
|
8960
|
+
//# sourceMappingURL=tspan.js.map
|
|
8888
8961
|
|
|
8889
8962
|
/***/ }),
|
|
8890
8963
|
|
|
@@ -8897,7 +8970,7 @@ var TSpan = function (props) {
|
|
|
8897
8970
|
"use strict";
|
|
8898
8971
|
__webpack_require__.r(__webpack_exports__);
|
|
8899
8972
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8900
|
-
/* harmony export */ "
|
|
8973
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
8901
8974
|
/* harmony export */ });
|
|
8902
8975
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8903
8976
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8944,7 +9017,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
8944
9017
|
|
|
8945
9018
|
var strokeLinecap = "round";
|
|
8946
9019
|
var strokeLinejoin = "round";
|
|
8947
|
-
|
|
9020
|
+
var grayscale = {
|
|
8948
9021
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
8949
9022
|
style: {
|
|
8950
9023
|
data: {
|
|
@@ -9159,7 +9232,8 @@ var strokeLinejoin = "round";
|
|
|
9159
9232
|
}
|
|
9160
9233
|
}
|
|
9161
9234
|
}, baseProps)
|
|
9162
|
-
}
|
|
9235
|
+
};
|
|
9236
|
+
//# sourceMappingURL=grayscale.js.map
|
|
9163
9237
|
|
|
9164
9238
|
/***/ }),
|
|
9165
9239
|
|
|
@@ -9172,7 +9246,7 @@ var strokeLinejoin = "round";
|
|
|
9172
9246
|
"use strict";
|
|
9173
9247
|
__webpack_require__.r(__webpack_exports__);
|
|
9174
9248
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9175
|
-
/* harmony export */ "
|
|
9249
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
9176
9250
|
/* harmony export */ });
|
|
9177
9251
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9178
9252
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9229,7 +9303,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9229
9303
|
var strokeDasharray = "10, 5";
|
|
9230
9304
|
var strokeLinecap = "round";
|
|
9231
9305
|
var strokeLinejoin = "round";
|
|
9232
|
-
|
|
9306
|
+
var material = {
|
|
9233
9307
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9234
9308
|
style: {
|
|
9235
9309
|
data: {
|
|
@@ -9461,7 +9535,8 @@ var strokeLinejoin = "round";
|
|
|
9461
9535
|
}
|
|
9462
9536
|
}
|
|
9463
9537
|
}, baseProps)
|
|
9464
|
-
}
|
|
9538
|
+
};
|
|
9539
|
+
//# sourceMappingURL=material.js.map
|
|
9465
9540
|
|
|
9466
9541
|
/***/ }),
|
|
9467
9542
|
|
|
@@ -9474,16 +9549,18 @@ var strokeLinejoin = "round";
|
|
|
9474
9549
|
"use strict";
|
|
9475
9550
|
__webpack_require__.r(__webpack_exports__);
|
|
9476
9551
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9477
|
-
/* harmony export */ "
|
|
9552
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
9478
9553
|
/* harmony export */ });
|
|
9479
|
-
/* harmony import */ var
|
|
9480
|
-
/* harmony import */ var
|
|
9554
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
9555
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
9481
9556
|
|
|
9482
9557
|
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
grayscale:
|
|
9486
|
-
|
|
9558
|
+
|
|
9559
|
+
var VictoryTheme = {
|
|
9560
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
9561
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
9562
|
+
};
|
|
9563
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
9487
9564
|
|
|
9488
9565
|
/***/ }),
|
|
9489
9566
|
|
|
@@ -9496,33 +9573,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9496
9573
|
"use strict";
|
|
9497
9574
|
__webpack_require__.r(__webpack_exports__);
|
|
9498
9575
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9499
|
-
/* harmony export */ "
|
|
9576
|
+
/* harmony export */ "VictoryTransition": () => (/* binding */ VictoryTransition)
|
|
9500
9577
|
/* harmony export */ });
|
|
9501
|
-
/* harmony import */ var
|
|
9502
|
-
/* harmony import */ var
|
|
9503
|
-
/* harmony import */ var
|
|
9504
|
-
/* harmony import */ var
|
|
9505
|
-
/* harmony import */ var
|
|
9506
|
-
/* harmony import */ var
|
|
9507
|
-
/* harmony import */ var
|
|
9508
|
-
/* harmony import */ var
|
|
9509
|
-
/* harmony import */ var
|
|
9510
|
-
/* harmony import */ var
|
|
9511
|
-
/* harmony import */ var
|
|
9512
|
-
/* harmony import */ var
|
|
9513
|
-
/* harmony import */ var
|
|
9514
|
-
/* harmony import */ var
|
|
9515
|
-
/* harmony import */ var
|
|
9516
|
-
/* harmony import */ var
|
|
9517
|
-
/* harmony import */ var
|
|
9518
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
9519
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_6__);
|
|
9520
|
-
|
|
9578
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
9579
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
9580
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
9581
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
|
|
9582
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
9583
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
9584
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
9585
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
9586
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9587
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
9588
|
+
/* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
|
|
9589
|
+
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
9590
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9591
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
9592
|
+
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
9593
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
9594
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
9521
9595
|
|
|
9522
9596
|
|
|
9523
9597
|
|
|
9524
9598
|
|
|
9525
|
-
function _extends() { _extends = Object.assign
|
|
9599
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
9526
9600
|
|
|
9527
9601
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9528
9602
|
|
|
@@ -9532,7 +9606,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9532
9606
|
|
|
9533
9607
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9534
9608
|
|
|
9535
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9609
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9536
9610
|
|
|
9537
9611
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9538
9612
|
|
|
@@ -9542,10 +9616,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9542
9616
|
|
|
9543
9617
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9544
9618
|
|
|
9545
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9546
|
-
|
|
9547
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9548
|
-
|
|
9619
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9549
9620
|
|
|
9550
9621
|
|
|
9551
9622
|
|
|
@@ -9566,6 +9637,9 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9566
9637
|
_classCallCheck(this, VictoryTransition);
|
|
9567
9638
|
|
|
9568
9639
|
_this = _super.call(this, props, context);
|
|
9640
|
+
_this.continuous = void 0;
|
|
9641
|
+
_this.timer = void 0;
|
|
9642
|
+
_this.transitionProps = void 0;
|
|
9569
9643
|
_this.state = {
|
|
9570
9644
|
nodesShouldLoad: false,
|
|
9571
9645
|
nodesDoneLoad: false
|
|
@@ -9573,7 +9647,6 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9573
9647
|
var child = _this.props.children;
|
|
9574
9648
|
var polar = child.props.polar;
|
|
9575
9649
|
_this.continuous = !polar && child.type && child.type.continuous === true;
|
|
9576
|
-
_this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
|
|
9577
9650
|
_this.timer = _this.context.transitionTimer;
|
|
9578
9651
|
return _this;
|
|
9579
9652
|
}
|
|
@@ -9590,7 +9663,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9590
9663
|
value: function shouldComponentUpdate(nextProps) {
|
|
9591
9664
|
var _this2 = this;
|
|
9592
9665
|
|
|
9593
|
-
if (!
|
|
9666
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
9594
9667
|
this.timer.bypassAnimation();
|
|
9595
9668
|
this.setState(this.getTransitionState(this.props, nextProps), function () {
|
|
9596
9669
|
return _this2.timer.resumeAnimation();
|
|
@@ -9619,10 +9692,10 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9619
9692
|
nextProps: nextProps
|
|
9620
9693
|
};
|
|
9621
9694
|
} else {
|
|
9622
|
-
var oldChildren =
|
|
9623
|
-
var nextChildren =
|
|
9695
|
+
var oldChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
|
|
9696
|
+
var nextChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(nextProps.children);
|
|
9624
9697
|
|
|
9625
|
-
var _Transitions$getIniti =
|
|
9698
|
+
var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getInitialTransitionState(oldChildren, nextChildren),
|
|
9626
9699
|
nodesWillExit = _Transitions$getIniti.nodesWillExit,
|
|
9627
9700
|
nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
|
|
9628
9701
|
childrenTransitions = _Transitions$getIniti.childrenTransitions,
|
|
@@ -9643,18 +9716,18 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9643
9716
|
value: function getDomainFromChildren(props, axis) {
|
|
9644
9717
|
var getChildDomains = function (children) {
|
|
9645
9718
|
return children.reduce(function (memo, child) {
|
|
9646
|
-
if (child.type &&
|
|
9719
|
+
if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getDomain)) {
|
|
9647
9720
|
var childDomain = child.props && child.type.getDomain(child.props, axis);
|
|
9648
9721
|
return childDomain ? memo.concat(childDomain) : memo;
|
|
9649
9722
|
} else if (child.props && child.props.children) {
|
|
9650
|
-
return memo.concat(getChildDomains(
|
|
9723
|
+
return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children)));
|
|
9651
9724
|
}
|
|
9652
9725
|
|
|
9653
9726
|
return memo;
|
|
9654
9727
|
}, []);
|
|
9655
9728
|
};
|
|
9656
9729
|
|
|
9657
|
-
var child =
|
|
9730
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
9658
9731
|
var childProps = child.props || {};
|
|
9659
9732
|
var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
|
|
9660
9733
|
|
|
@@ -9662,7 +9735,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9662
9735
|
return domain;
|
|
9663
9736
|
} else {
|
|
9664
9737
|
var childDomains = getChildDomains([child]);
|
|
9665
|
-
return childDomains.length === 0 ? [0, 1] : [
|
|
9738
|
+
return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMaxValue(childDomains)];
|
|
9666
9739
|
}
|
|
9667
9740
|
}
|
|
9668
9741
|
}, {
|
|
@@ -9677,10 +9750,12 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9677
9750
|
}, {
|
|
9678
9751
|
key: "pickDomainProps",
|
|
9679
9752
|
value: function pickDomainProps(props) {
|
|
9680
|
-
var
|
|
9753
|
+
var _props$animate;
|
|
9754
|
+
|
|
9755
|
+
var parentState = (_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.parentState;
|
|
9681
9756
|
|
|
9682
9757
|
if (parentState && parentState.nodesWillExit) {
|
|
9683
|
-
return this.
|
|
9758
|
+
return this.continuous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
|
|
9684
9759
|
}
|
|
9685
9760
|
|
|
9686
9761
|
return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
|
|
@@ -9689,7 +9764,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9689
9764
|
key: "getClipWidth",
|
|
9690
9765
|
value: function getClipWidth(props, child) {
|
|
9691
9766
|
var getDefaultClipWidth = function () {
|
|
9692
|
-
var range =
|
|
9767
|
+
var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(child.props, "x");
|
|
9693
9768
|
return range ? Math.abs(range[1] - range[0]) : props.width;
|
|
9694
9769
|
};
|
|
9695
9770
|
|
|
@@ -9699,13 +9774,14 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9699
9774
|
}, {
|
|
9700
9775
|
key: "render",
|
|
9701
9776
|
value: function render() {
|
|
9702
|
-
var
|
|
9777
|
+
var _this$props$animate,
|
|
9778
|
+
_this3 = this;
|
|
9703
9779
|
|
|
9704
9780
|
var props = this.pickProps();
|
|
9705
|
-
var getTransitionProps =
|
|
9781
|
+
var getTransitionProps = (_this$props$animate = this.props.animate) !== null && _this$props$animate !== void 0 && _this$props$animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, function (newState) {
|
|
9706
9782
|
return _this3.setState(newState);
|
|
9707
9783
|
});
|
|
9708
|
-
var child =
|
|
9784
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
9709
9785
|
var transitionProps = getTransitionProps(child);
|
|
9710
9786
|
this.transitionProps = transitionProps;
|
|
9711
9787
|
var domain = {
|
|
@@ -9714,29 +9790,29 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9714
9790
|
};
|
|
9715
9791
|
var clipWidth = this.getClipWidth(props, child);
|
|
9716
9792
|
|
|
9717
|
-
var combinedProps =
|
|
9793
|
+
var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
9718
9794
|
domain: domain,
|
|
9719
9795
|
clipWidth: clipWidth
|
|
9720
9796
|
}, transitionProps, child.props);
|
|
9721
9797
|
|
|
9722
9798
|
var animationWhitelist = props.animationWhitelist || [];
|
|
9723
9799
|
var whitelist = animationWhitelist.concat(["clipWidth"]);
|
|
9724
|
-
var propsToAnimate = whitelist.length ?
|
|
9725
|
-
return /*#__PURE__*/
|
|
9800
|
+
var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
|
|
9801
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
|
|
9726
9802
|
data: propsToAnimate
|
|
9727
9803
|
}), function (newProps) {
|
|
9728
9804
|
if (child.props.groupComponent) {
|
|
9729
|
-
var groupComponent = _this3.continuous ? /*#__PURE__*/
|
|
9805
|
+
var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child.props.groupComponent, {
|
|
9730
9806
|
clipWidth: newProps.clipWidth || 0
|
|
9731
9807
|
}) : child.props.groupComponent;
|
|
9732
|
-
return /*#__PURE__*/
|
|
9808
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
9733
9809
|
animate: null,
|
|
9734
9810
|
animating: true,
|
|
9735
9811
|
groupComponent: groupComponent
|
|
9736
9812
|
}, newProps, combinedProps));
|
|
9737
9813
|
}
|
|
9738
9814
|
|
|
9739
|
-
return /*#__PURE__*/
|
|
9815
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
9740
9816
|
animate: null,
|
|
9741
9817
|
animating: true
|
|
9742
9818
|
}, newProps, combinedProps));
|
|
@@ -9745,19 +9821,15 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9745
9821
|
}]);
|
|
9746
9822
|
|
|
9747
9823
|
return VictoryTransition;
|
|
9748
|
-
}((
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
_defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]);
|
|
9759
|
-
|
|
9760
|
-
|
|
9824
|
+
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
9825
|
+
VictoryTransition.displayName = "VictoryTransition";
|
|
9826
|
+
VictoryTransition.propTypes = {
|
|
9827
|
+
animate: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)]),
|
|
9828
|
+
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
9829
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
9830
|
+
};
|
|
9831
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
9832
|
+
//# sourceMappingURL=victory-transition.js.map
|
|
9761
9833
|
|
|
9762
9834
|
/***/ }),
|
|
9763
9835
|
|
|
@@ -9770,33 +9842,32 @@ _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__W
|
|
|
9770
9842
|
"use strict";
|
|
9771
9843
|
__webpack_require__.r(__webpack_exports__);
|
|
9772
9844
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9773
|
-
/* harmony export */ "
|
|
9845
|
+
/* harmony export */ "addEvents": () => (/* binding */ addEvents)
|
|
9774
9846
|
/* harmony export */ });
|
|
9775
|
-
/* harmony import */ var
|
|
9776
|
-
/* harmony import */ var
|
|
9777
|
-
/* harmony import */ var
|
|
9778
|
-
/* harmony import */ var
|
|
9779
|
-
/* harmony import */ var
|
|
9780
|
-
/* harmony import */ var
|
|
9781
|
-
/* harmony import */ var
|
|
9782
|
-
/* harmony import */ var
|
|
9783
|
-
/* harmony import */ var
|
|
9784
|
-
/* harmony import */ var
|
|
9785
|
-
/* harmony import */ var
|
|
9786
|
-
/* harmony import */ var
|
|
9787
|
-
/* harmony import */ var
|
|
9788
|
-
/* harmony import */ var
|
|
9789
|
-
/* harmony import */ var
|
|
9790
|
-
/* harmony import */ var
|
|
9791
|
-
/* harmony import */ var
|
|
9792
|
-
/* harmony import */ var
|
|
9847
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
9848
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
9849
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
9850
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
9851
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
9852
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
|
|
9853
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
|
|
9854
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
|
|
9855
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
9856
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
|
|
9857
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
9858
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
|
|
9859
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
|
|
9860
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
|
|
9861
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
9862
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
|
|
9863
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9864
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
|
|
9793
9865
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
|
|
9794
9866
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
|
9795
9867
|
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
9796
9868
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
9797
9869
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_10__);
|
|
9798
9870
|
/* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js");
|
|
9799
|
-
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
9800
9871
|
|
|
9801
9872
|
|
|
9802
9873
|
|
|
@@ -9827,7 +9898,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9827
9898
|
|
|
9828
9899
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9829
9900
|
|
|
9830
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9901
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9831
9902
|
|
|
9832
9903
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9833
9904
|
|
|
@@ -9837,7 +9908,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9837
9908
|
|
|
9838
9909
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9839
9910
|
|
|
9840
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9911
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9841
9912
|
|
|
9842
9913
|
/*global window:false */
|
|
9843
9914
|
|
|
@@ -9845,9 +9916,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9845
9916
|
|
|
9846
9917
|
|
|
9847
9918
|
|
|
9848
|
-
|
|
9919
|
+
// DISCLAIMER:
|
|
9920
|
+
// This file is not currently tested, and it is first on the list of files
|
|
9921
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
9922
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
9849
9923
|
var datumHasXandY = function (datum) {
|
|
9850
|
-
return !
|
|
9924
|
+
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
|
|
9851
9925
|
}; // used for checking state changes. Expected components can be passed in via options
|
|
9852
9926
|
|
|
9853
9927
|
|
|
@@ -9859,44 +9933,45 @@ var defaultComponents = [{
|
|
|
9859
9933
|
}, {
|
|
9860
9934
|
name: "labels"
|
|
9861
9935
|
}];
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
_inherits(addEvents, _WrappedComponent);
|
|
9936
|
+
function addEvents(WrappedComponent) {
|
|
9937
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9865
9938
|
|
|
9866
|
-
|
|
9939
|
+
// @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
|
|
9940
|
+
var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
|
|
9941
|
+
_inherits(AddEventsMixin, _WrappedComponent);
|
|
9867
9942
|
|
|
9868
|
-
|
|
9943
|
+
var _super = _createSuper(AddEventsMixin);
|
|
9944
|
+
|
|
9945
|
+
function AddEventsMixin(props) {
|
|
9869
9946
|
var _this;
|
|
9870
9947
|
|
|
9871
|
-
_classCallCheck(this,
|
|
9948
|
+
_classCallCheck(this, AddEventsMixin);
|
|
9872
9949
|
|
|
9873
9950
|
_this = _super.call(this, props);
|
|
9874
|
-
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
9875
|
-
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
9876
9951
|
_this.state = {};
|
|
9952
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
9953
|
+
_this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
9877
9954
|
|
|
9878
9955
|
_this.getEvents = function (p, target, eventKey) {
|
|
9879
|
-
return
|
|
9956
|
+
return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
|
|
9880
9957
|
};
|
|
9881
9958
|
|
|
9882
|
-
_this.
|
|
9883
|
-
|
|
9884
|
-
var calculatedValues = _this.getCalculatedValues(props);
|
|
9885
|
-
|
|
9886
|
-
_this.cacheValues(calculatedValues);
|
|
9887
|
-
|
|
9888
|
-
_this.externalMutations = _this.getExternalMutations(props);
|
|
9889
|
-
_this.calculatedState = _this.getStateChanges(props);
|
|
9959
|
+
_this.externalMutations = _this.getExternalMutations(_this.props);
|
|
9960
|
+
_this.calculatedState = _this.getStateChanges(_this.props);
|
|
9890
9961
|
_this.globalEvents = {};
|
|
9891
9962
|
_this.prevGlobalEventKeys = [];
|
|
9892
9963
|
_this.boundGlobalEvents = {};
|
|
9964
|
+
|
|
9965
|
+
_this.cacheValues(_this.getCalculatedValues(props));
|
|
9966
|
+
|
|
9893
9967
|
return _this;
|
|
9894
9968
|
}
|
|
9895
9969
|
|
|
9896
|
-
_createClass(
|
|
9970
|
+
_createClass(AddEventsMixin, [{
|
|
9897
9971
|
key: "shouldComponentUpdate",
|
|
9898
9972
|
value: function shouldComponentUpdate(nextProps) {
|
|
9899
|
-
var externalMutations = this.getExternalMutations(nextProps);
|
|
9973
|
+
var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
|
|
9974
|
+
|
|
9900
9975
|
var animating = this.props.animating || this.props.animate;
|
|
9901
9976
|
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
9902
9977
|
|
|
@@ -9926,7 +10001,7 @@ var defaultComponents = [{
|
|
|
9926
10001
|
value: function componentDidMount() {
|
|
9927
10002
|
var _this2 = this;
|
|
9928
10003
|
|
|
9929
|
-
var globalEventKeys =
|
|
10004
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
9930
10005
|
|
|
9931
10006
|
globalEventKeys.forEach(function (key) {
|
|
9932
10007
|
return _this2.addGlobalListener(key);
|
|
@@ -9941,15 +10016,15 @@ var defaultComponents = [{
|
|
|
9941
10016
|
var calculatedState = this.getStateChanges(prevProps);
|
|
9942
10017
|
this.calculatedState = calculatedState;
|
|
9943
10018
|
|
|
9944
|
-
var globalEventKeys =
|
|
10019
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
9945
10020
|
|
|
9946
|
-
var removedGlobalEventKeys =
|
|
10021
|
+
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
9947
10022
|
|
|
9948
10023
|
removedGlobalEventKeys.forEach(function (key) {
|
|
9949
10024
|
return _this3.removeGlobalListener(key);
|
|
9950
10025
|
});
|
|
9951
10026
|
|
|
9952
|
-
var addedGlobalEventKeys =
|
|
10027
|
+
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
9953
10028
|
|
|
9954
10029
|
addedGlobalEventKeys.forEach(function (key) {
|
|
9955
10030
|
return _this3.addGlobalListener(key);
|
|
@@ -9995,12 +10070,11 @@ var defaultComponents = [{
|
|
|
9995
10070
|
}
|
|
9996
10071
|
|
|
9997
10072
|
var getState = function (key, type) {
|
|
9998
|
-
var result =
|
|
10073
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
9999
10074
|
|
|
10000
|
-
return
|
|
10075
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
|
|
10001
10076
|
};
|
|
10002
10077
|
|
|
10003
|
-
options = options || {};
|
|
10004
10078
|
var components = options.components || defaultComponents;
|
|
10005
10079
|
var stateChanges = components.map(function (component) {
|
|
10006
10080
|
if (!props.standalone && component.name === "parent") {
|
|
@@ -10017,9 +10091,9 @@ var defaultComponents = [{
|
|
|
10017
10091
|
}, {
|
|
10018
10092
|
key: "applyExternalMutations",
|
|
10019
10093
|
value: function applyExternalMutations(props, externalMutations) {
|
|
10020
|
-
if (!
|
|
10094
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
|
|
10021
10095
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
10022
|
-
memo =
|
|
10096
|
+
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
10023
10097
|
return memo;
|
|
10024
10098
|
}, []);
|
|
10025
10099
|
var compiledCallbacks = callbacks.length ? function () {
|
|
@@ -10036,12 +10110,12 @@ var defaultComponents = [{
|
|
|
10036
10110
|
var sharedEvents = props.sharedEvents;
|
|
10037
10111
|
var components = WrappedComponent.expectedComponents;
|
|
10038
10112
|
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
10039
|
-
var getSharedEventState = sharedEvents &&
|
|
10113
|
+
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
10040
10114
|
return undefined;
|
|
10041
10115
|
};
|
|
10042
10116
|
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
10043
10117
|
|
|
10044
|
-
var dataKeys =
|
|
10118
|
+
var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
|
|
10045
10119
|
return key !== "parent";
|
|
10046
10120
|
});
|
|
10047
10121
|
|
|
@@ -10061,32 +10135,32 @@ var defaultComponents = [{
|
|
|
10061
10135
|
value: function getExternalMutations(props) {
|
|
10062
10136
|
var sharedEvents = props.sharedEvents,
|
|
10063
10137
|
externalEventMutations = props.externalEventMutations;
|
|
10064
|
-
return
|
|
10138
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
10065
10139
|
}
|
|
10066
10140
|
}, {
|
|
10067
10141
|
key: "cacheValues",
|
|
10068
10142
|
value: function cacheValues(obj) {
|
|
10069
10143
|
var _this7 = this;
|
|
10070
10144
|
|
|
10071
|
-
|
|
10145
|
+
lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
|
|
10072
10146
|
_this7[key] = obj[key];
|
|
10073
10147
|
});
|
|
10074
10148
|
}
|
|
10075
10149
|
}, {
|
|
10076
10150
|
key: "getBaseProps",
|
|
10077
10151
|
value: function getBaseProps(props, getSharedEventState) {
|
|
10078
|
-
getSharedEventState = getSharedEventState || this.getSharedEventState;
|
|
10152
|
+
getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
|
|
10079
10153
|
var sharedParentState = getSharedEventState("parent", "parent");
|
|
10080
10154
|
var parentState = this.getEventState("parent", "parent");
|
|
10081
10155
|
|
|
10082
|
-
var baseParentProps =
|
|
10156
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
|
|
10083
10157
|
|
|
10084
10158
|
var parentPropsList = baseParentProps.parentControlledProps;
|
|
10085
|
-
var parentProps = parentPropsList ?
|
|
10159
|
+
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
|
|
10086
10160
|
|
|
10087
|
-
var modifiedProps =
|
|
10161
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
|
|
10088
10162
|
|
|
10089
|
-
return
|
|
10163
|
+
return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
10090
10164
|
}
|
|
10091
10165
|
}, {
|
|
10092
10166
|
key: "getAllEvents",
|
|
@@ -10114,21 +10188,21 @@ var defaultComponents = [{
|
|
|
10114
10188
|
if (this.hasEvents) {
|
|
10115
10189
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
10116
10190
|
|
|
10117
|
-
var componentProps =
|
|
10191
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10118
10192
|
index: index,
|
|
10119
10193
|
key: id
|
|
10120
10194
|
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
10121
10195
|
id: id
|
|
10122
10196
|
});
|
|
10123
10197
|
|
|
10124
|
-
var events =
|
|
10198
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
10125
10199
|
|
|
10126
|
-
return
|
|
10200
|
+
return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
|
|
10127
10201
|
events: events
|
|
10128
10202
|
});
|
|
10129
10203
|
}
|
|
10130
10204
|
|
|
10131
|
-
return
|
|
10205
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10132
10206
|
index: index,
|
|
10133
10207
|
key: id
|
|
10134
10208
|
}, component.props, baseProps, {
|
|
@@ -10151,11 +10225,14 @@ var defaultComponents = [{
|
|
|
10151
10225
|
}, {
|
|
10152
10226
|
key: "animateComponent",
|
|
10153
10227
|
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
10154
|
-
var
|
|
10155
|
-
|
|
10228
|
+
var _props$animate;
|
|
10229
|
+
|
|
10230
|
+
var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
|
|
10231
|
+
var Comp = this.constructor;
|
|
10232
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
|
|
10156
10233
|
animate: props.animate,
|
|
10157
10234
|
animationWhitelist: animationWhitelist
|
|
10158
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(
|
|
10235
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
|
|
10159
10236
|
} // Used by `VictoryLine` and `VictoryArea`
|
|
10160
10237
|
|
|
10161
10238
|
}, {
|
|
@@ -10167,7 +10244,7 @@ var defaultComponents = [{
|
|
|
10167
10244
|
labelComponent = props.labelComponent,
|
|
10168
10245
|
groupComponent = props.groupComponent;
|
|
10169
10246
|
|
|
10170
|
-
var dataKeys =
|
|
10247
|
+
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
|
|
10171
10248
|
|
|
10172
10249
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
10173
10250
|
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
@@ -10191,7 +10268,6 @@ var defaultComponents = [{
|
|
|
10191
10268
|
var dataComponent = props.dataComponent,
|
|
10192
10269
|
labelComponent = props.labelComponent,
|
|
10193
10270
|
groupComponent = props.groupComponent;
|
|
10194
|
-
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__.getSafeUserProps(props);
|
|
10195
10271
|
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
10196
10272
|
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
10197
10273
|
|
|
@@ -10211,14 +10287,16 @@ var defaultComponents = [{
|
|
|
10211
10287
|
return undefined;
|
|
10212
10288
|
}).filter(Boolean);
|
|
10213
10289
|
var children = [].concat(_toConsumableArray(dataComponents), _toConsumableArray(labelComponents));
|
|
10214
|
-
|
|
10215
|
-
return this.renderContainer(group, children);
|
|
10290
|
+
return this.renderContainer(groupComponent, children);
|
|
10216
10291
|
}
|
|
10217
10292
|
}]);
|
|
10218
10293
|
|
|
10219
|
-
return
|
|
10294
|
+
return AddEventsMixin;
|
|
10220
10295
|
}(WrappedComponent);
|
|
10221
|
-
|
|
10296
|
+
|
|
10297
|
+
return AddEventsMixin;
|
|
10298
|
+
}
|
|
10299
|
+
//# sourceMappingURL=add-events.js.map
|
|
10222
10300
|
|
|
10223
10301
|
/***/ }),
|
|
10224
10302
|
|
|
@@ -10231,14 +10309,14 @@ var defaultComponents = [{
|
|
|
10231
10309
|
"use strict";
|
|
10232
10310
|
__webpack_require__.r(__webpack_exports__);
|
|
10233
10311
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10234
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
10235
10312
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
10236
10313
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
10237
10314
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
10238
|
-
/* harmony export */ "
|
|
10239
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
10315
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
10240
10316
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
10241
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
10317
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
10318
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
10319
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
10242
10320
|
/* harmony export */ });
|
|
10243
10321
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
10244
10322
|
|
|
@@ -10252,9 +10330,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10252
10330
|
|
|
10253
10331
|
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; }
|
|
10254
10332
|
|
|
10255
|
-
/* eslint-disable func-style */
|
|
10256
|
-
|
|
10257
|
-
/* eslint-disable no-use-before-define */
|
|
10258
10333
|
function isNonEmptyArray(collection) {
|
|
10259
10334
|
return Array.isArray(collection) && collection.length > 0;
|
|
10260
10335
|
}
|
|
@@ -10293,7 +10368,8 @@ function getMaxValue(arr) {
|
|
|
10293
10368
|
}
|
|
10294
10369
|
|
|
10295
10370
|
var array = arr.concat(values);
|
|
10296
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
10371
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
10372
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
10297
10373
|
}
|
|
10298
10374
|
function getMinValue(arr) {
|
|
10299
10375
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -10301,8 +10377,10 @@ function getMinValue(arr) {
|
|
|
10301
10377
|
}
|
|
10302
10378
|
|
|
10303
10379
|
var array = arr.concat(values);
|
|
10304
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
10380
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
10381
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
10305
10382
|
}
|
|
10383
|
+
//# sourceMappingURL=collection.js.map
|
|
10306
10384
|
|
|
10307
10385
|
/***/ }),
|
|
10308
10386
|
|
|
@@ -10315,9 +10393,7 @@ function getMinValue(arr) {
|
|
|
10315
10393
|
"use strict";
|
|
10316
10394
|
__webpack_require__.r(__webpack_exports__);
|
|
10317
10395
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10318
|
-
/* harmony export */ "
|
|
10319
|
-
/* harmony export */ "baseProps": () => (/* binding */ baseProps),
|
|
10320
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
10396
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
10321
10397
|
/* harmony export */ });
|
|
10322
10398
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
10323
10399
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10325,26 +10401,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10325
10401
|
|
|
10326
10402
|
|
|
10327
10403
|
var dataProps = {
|
|
10404
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10328
10405
|
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({
|
|
10329
10406
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
10330
10407
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
10331
10408
|
})]),
|
|
10409
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10332
10410
|
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)]),
|
|
10333
10411
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10334
10412
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10335
10413
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10336
10414
|
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)]),
|
|
10337
10415
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10338
|
-
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))]),
|
|
10416
|
+
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))]),
|
|
10339
10417
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
10340
10418
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10341
10419
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10342
10420
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10343
10421
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10344
10422
|
}),
|
|
10345
|
-
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))]),
|
|
10346
|
-
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))]),
|
|
10347
|
-
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))])
|
|
10423
|
+
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))]),
|
|
10424
|
+
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))]),
|
|
10425
|
+
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))])
|
|
10348
10426
|
};
|
|
10349
10427
|
var baseProps = {
|
|
10350
10428
|
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)]),
|
|
@@ -10353,14 +10431,17 @@ var baseProps = {
|
|
|
10353
10431
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
10354
10432
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
10355
10433
|
})]),
|
|
10434
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10356
10435
|
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({
|
|
10357
10436
|
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)]),
|
|
10358
10437
|
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)])
|
|
10359
10438
|
})]),
|
|
10439
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10360
10440
|
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({
|
|
10361
10441
|
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)]),
|
|
10362
10442
|
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)])
|
|
10363
10443
|
})]),
|
|
10444
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10364
10445
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10365
10446
|
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))]),
|
|
10366
10447
|
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))])
|
|
@@ -10371,20 +10452,23 @@ var baseProps = {
|
|
|
10371
10452
|
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)]),
|
|
10372
10453
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10373
10454
|
})),
|
|
10455
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10374
10456
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10375
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
10457
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
10376
10458
|
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)]),
|
|
10377
10459
|
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)]),
|
|
10378
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
10460
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
10379
10461
|
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)])
|
|
10380
10462
|
})),
|
|
10381
10463
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10382
10464
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10383
10465
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10466
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10384
10467
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10385
10468
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10386
10469
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
10387
10470
|
}),
|
|
10471
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10388
10472
|
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({
|
|
10389
10473
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10390
10474
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -10393,17 +10477,19 @@ var baseProps = {
|
|
|
10393
10477
|
})]),
|
|
10394
10478
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10395
10479
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10396
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
10397
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
10480
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
10481
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
10398
10482
|
})]),
|
|
10399
10483
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10400
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
10401
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
10484
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
10485
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
10402
10486
|
})]),
|
|
10487
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10403
10488
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10404
10489
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
10405
10490
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
10406
10491
|
}),
|
|
10492
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10407
10493
|
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({
|
|
10408
10494
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
10409
10495
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -10423,6 +10509,7 @@ var primitiveProps = {
|
|
|
10423
10509
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10424
10510
|
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)]),
|
|
10425
10511
|
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)]),
|
|
10512
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10426
10513
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10427
10514
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10428
10515
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -10438,6 +10525,12 @@ var primitiveProps = {
|
|
|
10438
10525
|
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)]),
|
|
10439
10526
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
10440
10527
|
};
|
|
10528
|
+
var CommonProps = {
|
|
10529
|
+
dataProps: dataProps,
|
|
10530
|
+
baseProps: baseProps,
|
|
10531
|
+
primitiveProps: primitiveProps
|
|
10532
|
+
};
|
|
10533
|
+
//# sourceMappingURL=common-props.js.map
|
|
10441
10534
|
|
|
10442
10535
|
/***/ }),
|
|
10443
10536
|
|
|
@@ -10450,10 +10543,10 @@ var primitiveProps = {
|
|
|
10450
10543
|
"use strict";
|
|
10451
10544
|
__webpack_require__.r(__webpack_exports__);
|
|
10452
10545
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10453
|
-
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
10454
10546
|
/* harmony export */ "createStringMap": () => (/* binding */ createStringMap),
|
|
10455
10547
|
/* harmony export */ "downsample": () => (/* binding */ downsample),
|
|
10456
10548
|
/* harmony export */ "formatData": () => (/* binding */ formatData),
|
|
10549
|
+
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
10457
10550
|
/* harmony export */ "generateData": () => (/* binding */ generateData),
|
|
10458
10551
|
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
10459
10552
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
@@ -10520,8 +10613,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10520
10613
|
|
|
10521
10614
|
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; }
|
|
10522
10615
|
|
|
10523
|
-
/* eslint-disable func-style */
|
|
10524
|
-
|
|
10525
10616
|
/* eslint-disable no-use-before-define */
|
|
10526
10617
|
|
|
10527
10618
|
|
|
@@ -10953,6 +11044,7 @@ function isDataComponent(component) {
|
|
|
10953
11044
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
10954
11045
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
10955
11046
|
}
|
|
11047
|
+
//# sourceMappingURL=data.js.map
|
|
10956
11048
|
|
|
10957
11049
|
/***/ }),
|
|
10958
11050
|
|
|
@@ -10965,18 +11057,18 @@ function isDataComponent(component) {
|
|
|
10965
11057
|
"use strict";
|
|
10966
11058
|
__webpack_require__.r(__webpack_exports__);
|
|
10967
11059
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10968
|
-
/* harmony export */ "
|
|
10969
|
-
/* harmony export */ "
|
|
10970
|
-
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
11060
|
+
/* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
|
|
11061
|
+
/* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
|
|
10971
11062
|
/* harmony export */ "getEventState": () => (/* binding */ getEventState),
|
|
10972
|
-
/* harmony export */ "
|
|
10973
|
-
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
11063
|
+
/* harmony export */ "getEvents": () => (/* binding */ getEvents),
|
|
10974
11064
|
/* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
|
|
10975
|
-
/* harmony export */ "
|
|
11065
|
+
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
11066
|
+
/* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
|
|
10976
11067
|
/* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
|
|
10977
11068
|
/* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
|
|
10978
|
-
/* harmony export */ "
|
|
10979
|
-
/* harmony export */ "
|
|
11069
|
+
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
11070
|
+
/* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
|
|
11071
|
+
/* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
|
|
10980
11072
|
/* harmony export */ });
|
|
10981
11073
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
10982
11074
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11021,15 +11113,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11021
11113
|
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; }
|
|
11022
11114
|
|
|
11023
11115
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
11116
|
+
|
|
11024
11117
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
11025
11118
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
11026
11119
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
11027
11120
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
11028
11121
|
* (i.e. VictoryChart) in the case of shared events
|
|
11029
11122
|
*/
|
|
11030
|
-
// eslint-disable-next-line max-params
|
|
11031
|
-
|
|
11032
|
-
|
|
11123
|
+
// eslint-disable-next-line max-params
|
|
11124
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
11125
|
+
getScopedEvents) {
|
|
11033
11126
|
var _this = this;
|
|
11034
11127
|
|
|
11035
11128
|
// Returns all events that apply to a particular target element
|
|
@@ -11252,24 +11345,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
11252
11345
|
return memo;
|
|
11253
11346
|
}, {});
|
|
11254
11347
|
}
|
|
11255
|
-
/*
|
|
11348
|
+
/*
|
|
11349
|
+
* Returns a partially applied event handler for a specific target element
|
|
11256
11350
|
* This allows event handlers to have access to props controlling each element
|
|
11257
11351
|
*/
|
|
11258
11352
|
|
|
11259
11353
|
function getPartialEvents(events, eventKey, childProps) {
|
|
11260
|
-
|
|
11354
|
+
if (!events) return {};
|
|
11355
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
11261
11356
|
var appliedEvent = function (evt) {
|
|
11262
11357
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
11263
11358
|
};
|
|
11264
11359
|
|
|
11265
11360
|
memo[eventName] = appliedEvent;
|
|
11266
11361
|
return memo;
|
|
11267
|
-
}, {})
|
|
11362
|
+
}, {});
|
|
11268
11363
|
}
|
|
11364
|
+
|
|
11269
11365
|
/* Returns the property of the state object corresponding to event changes for
|
|
11270
11366
|
* a particular element
|
|
11271
11367
|
*/
|
|
11272
|
-
|
|
11368
|
+
// eslint-disable-next-line max-params
|
|
11273
11369
|
function getEventState(eventKey, namespace, childType) {
|
|
11274
11370
|
// Mandatory usage: `getEventState.bind(this)`
|
|
11275
11371
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -11454,6 +11550,7 @@ var emulateReactEvent = function (event) {
|
|
|
11454
11550
|
nativeEvent: event
|
|
11455
11551
|
});
|
|
11456
11552
|
};
|
|
11553
|
+
//# sourceMappingURL=events.js.map
|
|
11457
11554
|
|
|
11458
11555
|
/***/ }),
|
|
11459
11556
|
|
|
@@ -11466,25 +11563,25 @@ var emulateReactEvent = function (event) {
|
|
|
11466
11563
|
"use strict";
|
|
11467
11564
|
__webpack_require__.r(__webpack_exports__);
|
|
11468
11565
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11469
|
-
/* harmony export */ "
|
|
11470
|
-
/* harmony export */ "
|
|
11471
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
11472
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
11473
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
11474
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
11475
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
11566
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
11567
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
11476
11568
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
11477
11569
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
11478
|
-
/* harmony export */ "
|
|
11479
|
-
/* harmony export */ "
|
|
11480
|
-
/* harmony export */ "
|
|
11570
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
11571
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
11572
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
11573
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
11481
11574
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
11575
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
11482
11576
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
11483
|
-
/* harmony export */ "
|
|
11577
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
11578
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
11579
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
11484
11580
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
11485
|
-
/* harmony export */ "
|
|
11581
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
11582
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
11486
11583
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
11487
|
-
/* harmony export */ "
|
|
11584
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
11488
11585
|
/* harmony export */ });
|
|
11489
11586
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
11490
11587
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11507,8 +11604,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11507
11604
|
|
|
11508
11605
|
|
|
11509
11606
|
|
|
11510
|
-
/* eslint-disable func-style */
|
|
11511
|
-
|
|
11512
11607
|
/* eslint-disable no-use-before-define */
|
|
11513
11608
|
|
|
11514
11609
|
|
|
@@ -11537,7 +11632,7 @@ function getPolarRange(props, axis) {
|
|
|
11537
11632
|
|
|
11538
11633
|
/**
|
|
11539
11634
|
* creates an object with some keys excluded
|
|
11540
|
-
* replacement for lodash.omit for performance. does not
|
|
11635
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
11541
11636
|
* @param {Object} originalObject: created object will be based on this object
|
|
11542
11637
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
11543
11638
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -11550,6 +11645,7 @@ function omit(originalObject) {
|
|
|
11550
11645
|
var newObject = {};
|
|
11551
11646
|
|
|
11552
11647
|
for (var key in originalObject) {
|
|
11648
|
+
// @ts-expect-error String is not assignable to Key
|
|
11553
11649
|
if (ks.indexOf(key) >= 0) {
|
|
11554
11650
|
continue;
|
|
11555
11651
|
}
|
|
@@ -11782,7 +11878,9 @@ function reduceChildren(children, iteratee) {
|
|
|
11782
11878
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
11783
11879
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
11784
11880
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
11785
|
-
return
|
|
11881
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
11882
|
+
memo.concat(item)
|
|
11883
|
+
);
|
|
11786
11884
|
};
|
|
11787
11885
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
11788
11886
|
|
|
@@ -11826,7 +11924,7 @@ function reduceChildren(children, iteratee) {
|
|
|
11826
11924
|
/**
|
|
11827
11925
|
* @param {Object} props: the props object
|
|
11828
11926
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
11829
|
-
* children or nested children are
|
|
11927
|
+
* children or nested children are horizontal
|
|
11830
11928
|
*/
|
|
11831
11929
|
|
|
11832
11930
|
function isHorizontal(props) {
|
|
@@ -11849,6 +11947,7 @@ function isHorizontal(props) {
|
|
|
11849
11947
|
|
|
11850
11948
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
11851
11949
|
}
|
|
11950
|
+
//# sourceMappingURL=helpers.js.map
|
|
11852
11951
|
|
|
11853
11952
|
/***/ }),
|
|
11854
11953
|
|
|
@@ -11862,17 +11961,16 @@ function isHorizontal(props) {
|
|
|
11862
11961
|
__webpack_require__.r(__webpack_exports__);
|
|
11863
11962
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11864
11963
|
/* harmony export */ "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
|
|
11865
|
-
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
11866
11964
|
/* harmony export */ "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
|
|
11867
11965
|
/* harmony export */ "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
|
|
11868
|
-
/* harmony export */ "
|
|
11869
|
-
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
11966
|
+
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
11870
11967
|
/* harmony export */ "isImmutable": () => (/* binding */ isImmutable),
|
|
11968
|
+
/* harmony export */ "isIterable": () => (/* binding */ isIterable),
|
|
11871
11969
|
/* harmony export */ "isList": () => (/* binding */ isList),
|
|
11872
11970
|
/* harmony export */ "isMap": () => (/* binding */ isMap),
|
|
11971
|
+
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
11873
11972
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
11874
11973
|
/* harmony export */ });
|
|
11875
|
-
/* eslint-disable func-style */
|
|
11876
11974
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
11877
11975
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
11878
11976
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -11893,15 +11991,16 @@ function isMap(x) {
|
|
|
11893
11991
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
11894
11992
|
}
|
|
11895
11993
|
function shallowToJS(x, whitelist) {
|
|
11896
|
-
return isIterable(x) ? x.reduce(function (
|
|
11994
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
11897
11995
|
if (whitelist && whitelist[key]) {
|
|
11898
11996
|
curr = shallowToJS(curr);
|
|
11899
11997
|
}
|
|
11900
11998
|
|
|
11901
|
-
|
|
11902
|
-
return
|
|
11999
|
+
result[key] = curr;
|
|
12000
|
+
return result;
|
|
11903
12001
|
}, isList(x) ? [] : {}) : x;
|
|
11904
12002
|
}
|
|
12003
|
+
//# sourceMappingURL=immutable.js.map
|
|
11905
12004
|
|
|
11906
12005
|
/***/ }),
|
|
11907
12006
|
|
|
@@ -11914,20 +12013,18 @@ function shallowToJS(x, whitelist) {
|
|
|
11914
12013
|
"use strict";
|
|
11915
12014
|
__webpack_require__.r(__webpack_exports__);
|
|
11916
12015
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11917
|
-
/* harmony export */ "
|
|
12016
|
+
/* harmony export */ "getDegrees": () => (/* binding */ getDegrees),
|
|
12017
|
+
/* harmony export */ "getPolarAngle": () => (/* binding */ getPolarAngle),
|
|
11918
12018
|
/* harmony export */ "getPolarTextAnchor": () => (/* binding */ getPolarTextAnchor),
|
|
11919
12019
|
/* harmony export */ "getPolarVerticalAnchor": () => (/* binding */ getPolarVerticalAnchor),
|
|
11920
|
-
/* harmony export */ "
|
|
11921
|
-
/* harmony export */ "
|
|
11922
|
-
/* harmony export */ "getProps": () => (/* binding */ getProps)
|
|
12020
|
+
/* harmony export */ "getProps": () => (/* binding */ getProps),
|
|
12021
|
+
/* harmony export */ "getText": () => (/* binding */ getText)
|
|
11923
12022
|
/* harmony export */ });
|
|
11924
12023
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
11925
12024
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
11926
12025
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
11927
12026
|
|
|
11928
12027
|
|
|
11929
|
-
/* eslint-disable func-style */
|
|
11930
|
-
|
|
11931
12028
|
/* eslint-disable no-use-before-define */
|
|
11932
12029
|
|
|
11933
12030
|
|
|
@@ -12161,6 +12258,7 @@ function getProps(props, index) {
|
|
|
12161
12258
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
12162
12259
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
12163
12260
|
}
|
|
12261
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
12164
12262
|
|
|
12165
12263
|
/***/ }),
|
|
12166
12264
|
|
|
@@ -12179,7 +12277,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12179
12277
|
|
|
12180
12278
|
/* eslint-disable no-console */
|
|
12181
12279
|
// TODO: Use "warning" npm module like React is switching to.
|
|
12182
|
-
// eslint-disable-next-line func-style
|
|
12183
12280
|
function warn(message) {
|
|
12184
12281
|
if (true) {
|
|
12185
12282
|
if (console && console.warn) {
|
|
@@ -12187,6 +12284,7 @@ function warn(message) {
|
|
|
12187
12284
|
}
|
|
12188
12285
|
}
|
|
12189
12286
|
}
|
|
12287
|
+
//# sourceMappingURL=log.js.map
|
|
12190
12288
|
|
|
12191
12289
|
/***/ }),
|
|
12192
12290
|
|
|
@@ -12199,27 +12297,25 @@ function warn(message) {
|
|
|
12199
12297
|
"use strict";
|
|
12200
12298
|
__webpack_require__.r(__webpack_exports__);
|
|
12201
12299
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12202
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
12203
12300
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
12204
|
-
/* harmony export */ "
|
|
12205
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
12206
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
12301
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
12207
12302
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
12208
|
-
/* harmony export */ "
|
|
12303
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
12209
12304
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
12305
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
12210
12306
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
12211
|
-
/* harmony export */ "
|
|
12307
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
12308
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
12309
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
12212
12310
|
/* harmony export */ });
|
|
12213
12311
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
12214
12312
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
12215
12313
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
12216
12314
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
12217
|
-
/* harmony import */ var
|
|
12218
|
-
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
12219
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
12315
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
12220
12316
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
12221
12317
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
12222
|
-
|
|
12318
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
12223
12319
|
|
|
12224
12320
|
|
|
12225
12321
|
|
|
@@ -12227,6 +12323,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12227
12323
|
|
|
12228
12324
|
|
|
12229
12325
|
|
|
12326
|
+
|
|
12327
|
+
|
|
12230
12328
|
/**
|
|
12231
12329
|
* Return a new validator based on `validator` but with the option to chain
|
|
12232
12330
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -12234,30 +12332,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12234
12332
|
* @param {Function} validator Validation function.
|
|
12235
12333
|
* @returns {Function} Validator with `isRequired` option.
|
|
12236
12334
|
*/
|
|
12237
|
-
|
|
12238
12335
|
var makeChainable = function (validator) {
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12336
|
+
var createChainable = function (isRequired) {
|
|
12337
|
+
return function (props, propName, componentName) {
|
|
12338
|
+
var value = props[propName];
|
|
12242
12339
|
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
|
|
12340
|
+
if (value === undefined || value === null) {
|
|
12341
|
+
if (isRequired) {
|
|
12342
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
12343
|
+
}
|
|
12247
12344
|
|
|
12248
|
-
|
|
12249
|
-
|
|
12345
|
+
return null;
|
|
12346
|
+
}
|
|
12250
12347
|
|
|
12251
|
-
|
|
12252
|
-
|
|
12253
|
-
|
|
12348
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
12349
|
+
rest[_key - 3] = arguments[_key];
|
|
12350
|
+
}
|
|
12254
12351
|
|
|
12255
|
-
|
|
12352
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
12353
|
+
};
|
|
12256
12354
|
};
|
|
12257
12355
|
|
|
12258
|
-
var chainable =
|
|
12259
|
-
|
|
12260
|
-
|
|
12356
|
+
var chainable = Object.assign(createChainable(false), {
|
|
12357
|
+
isRequired: createChainable(true)
|
|
12358
|
+
});
|
|
12261
12359
|
return chainable;
|
|
12262
12360
|
};
|
|
12263
12361
|
|
|
@@ -12287,7 +12385,7 @@ var getConstructor = function (value) {
|
|
|
12287
12385
|
};
|
|
12288
12386
|
/**
|
|
12289
12387
|
* Get the name of the constructor used to create `value`, using
|
|
12290
|
-
* `Object.
|
|
12388
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
12291
12389
|
* "null" or "undefined", respectively.
|
|
12292
12390
|
* @param {*} value Instance to return the constructor name of.
|
|
12293
12391
|
* @returns {String} Name of the constructor.
|
|
@@ -12317,10 +12415,11 @@ function deprecated(propType, explanation) {
|
|
|
12317
12415
|
var value = props[propName];
|
|
12318
12416
|
|
|
12319
12417
|
if (value !== null && value !== undefined) {
|
|
12320
|
-
|
|
12418
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
12321
12419
|
}
|
|
12322
12420
|
|
|
12323
|
-
|
|
12421
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
12422
|
+
return null;
|
|
12324
12423
|
};
|
|
12325
12424
|
}
|
|
12326
12425
|
/**
|
|
@@ -12339,7 +12438,7 @@ function allOfType(validators) {
|
|
|
12339
12438
|
|
|
12340
12439
|
return validators.reduce(function (result, validator) {
|
|
12341
12440
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
12342
|
-
},
|
|
12441
|
+
}, null);
|
|
12343
12442
|
});
|
|
12344
12443
|
}
|
|
12345
12444
|
/**
|
|
@@ -12353,7 +12452,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
12353
12452
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
12354
12453
|
}
|
|
12355
12454
|
|
|
12356
|
-
return
|
|
12455
|
+
return null;
|
|
12357
12456
|
});
|
|
12358
12457
|
/**
|
|
12359
12458
|
* Check that the value is an integer.
|
|
@@ -12366,7 +12465,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
12366
12465
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
12367
12466
|
}
|
|
12368
12467
|
|
|
12369
|
-
return
|
|
12468
|
+
return null;
|
|
12370
12469
|
});
|
|
12371
12470
|
/**
|
|
12372
12471
|
* Check that the value is greater than zero.
|
|
@@ -12379,7 +12478,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
12379
12478
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
12380
12479
|
}
|
|
12381
12480
|
|
|
12382
|
-
return
|
|
12481
|
+
return null;
|
|
12383
12482
|
});
|
|
12384
12483
|
/**
|
|
12385
12484
|
* Check that the value is an Array of two unique values.
|
|
@@ -12392,32 +12491,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
12392
12491
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
12393
12492
|
}
|
|
12394
12493
|
|
|
12395
|
-
return
|
|
12494
|
+
return null;
|
|
12396
12495
|
});
|
|
12397
12496
|
/**
|
|
12398
12497
|
* Check that the value looks like a d3 `scale` function.
|
|
12399
12498
|
*/
|
|
12400
12499
|
|
|
12401
12500
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
12402
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
12403
|
-
|
|
12404
|
-
var validScale = function (scl) {
|
|
12405
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
12406
|
-
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);
|
|
12407
|
-
} else if (typeof scl === "string") {
|
|
12408
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
12409
|
-
}
|
|
12410
|
-
|
|
12411
|
-
return false;
|
|
12412
|
-
};
|
|
12413
|
-
|
|
12414
12501
|
var value = props[propName];
|
|
12415
12502
|
|
|
12416
|
-
if (!validScale(value)) {
|
|
12503
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
12417
12504
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
12418
12505
|
}
|
|
12419
12506
|
|
|
12420
|
-
return
|
|
12507
|
+
return null;
|
|
12421
12508
|
});
|
|
12422
12509
|
/**
|
|
12423
12510
|
* Check that an array contains items of the same type.
|
|
@@ -12431,7 +12518,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
12431
12518
|
}
|
|
12432
12519
|
|
|
12433
12520
|
if (values.length < 2) {
|
|
12434
|
-
return
|
|
12521
|
+
return null;
|
|
12435
12522
|
}
|
|
12436
12523
|
|
|
12437
12524
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -12446,7 +12533,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
12446
12533
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
12447
12534
|
}
|
|
12448
12535
|
|
|
12449
|
-
return
|
|
12536
|
+
return null;
|
|
12450
12537
|
});
|
|
12451
12538
|
/**
|
|
12452
12539
|
* Check that array prop length matches props.data.length
|
|
@@ -12457,7 +12544,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
12457
12544
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
12458
12545
|
}
|
|
12459
12546
|
|
|
12460
|
-
return
|
|
12547
|
+
return null;
|
|
12461
12548
|
});
|
|
12462
12549
|
/**
|
|
12463
12550
|
* Check that the value is a regular expression
|
|
@@ -12468,8 +12555,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
12468
12555
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
12469
12556
|
}
|
|
12470
12557
|
|
|
12471
|
-
return
|
|
12558
|
+
return null;
|
|
12472
12559
|
});
|
|
12560
|
+
//# sourceMappingURL=prop-types.js.map
|
|
12473
12561
|
|
|
12474
12562
|
/***/ }),
|
|
12475
12563
|
|
|
@@ -12482,12 +12570,13 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
12482
12570
|
"use strict";
|
|
12483
12571
|
__webpack_require__.r(__webpack_exports__);
|
|
12484
12572
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12485
|
-
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
12486
12573
|
/* harmony export */ "getBaseScale": () => (/* binding */ getBaseScale),
|
|
12487
12574
|
/* harmony export */ "getDefaultScale": () => (/* binding */ getDefaultScale),
|
|
12575
|
+
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
12488
12576
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
12489
12577
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
12490
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
12578
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
12579
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
12491
12580
|
/* harmony export */ });
|
|
12492
12581
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
12493
12582
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12505,8 +12594,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12505
12594
|
|
|
12506
12595
|
|
|
12507
12596
|
|
|
12508
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
12597
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
12509
12598
|
|
|
12599
|
+
// Private Functions
|
|
12510
12600
|
function toNewName(scale) {
|
|
12511
12601
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
12512
12602
|
var capitalize = function (s) {
|
|
@@ -12576,7 +12666,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
12576
12666
|
|
|
12577
12667
|
|
|
12578
12668
|
function getScaleFromName(name) {
|
|
12579
|
-
|
|
12669
|
+
if (validScale(name)) {
|
|
12670
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
12671
|
+
|
|
12672
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
12673
|
+
}
|
|
12674
|
+
|
|
12675
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
12580
12676
|
}
|
|
12581
12677
|
function getBaseScale(props, axis) {
|
|
12582
12678
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -12586,7 +12682,7 @@ function getBaseScale(props, axis) {
|
|
|
12586
12682
|
}
|
|
12587
12683
|
|
|
12588
12684
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
12589
|
-
return
|
|
12685
|
+
return getScaleFromName(defaultScale);
|
|
12590
12686
|
}
|
|
12591
12687
|
function getDefaultScale() {
|
|
12592
12688
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -12599,7 +12695,7 @@ function getScaleFromProps(props, axis) {
|
|
|
12599
12695
|
var scale = props.scale[axis] || props.scale;
|
|
12600
12696
|
|
|
12601
12697
|
if (validScale(scale)) {
|
|
12602
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
12698
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
12603
12699
|
}
|
|
12604
12700
|
|
|
12605
12701
|
return undefined;
|
|
@@ -12634,6 +12730,7 @@ function getType(scale) {
|
|
|
12634
12730
|
})[0];
|
|
12635
12731
|
return scaleType ? scaleType.name : undefined;
|
|
12636
12732
|
}
|
|
12733
|
+
//# sourceMappingURL=scale.js.map
|
|
12637
12734
|
|
|
12638
12735
|
/***/ }),
|
|
12639
12736
|
|
|
@@ -12646,11 +12743,9 @@ function getType(scale) {
|
|
|
12646
12743
|
"use strict";
|
|
12647
12744
|
__webpack_require__.r(__webpack_exports__);
|
|
12648
12745
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12649
|
-
/* harmony export */ "
|
|
12650
|
-
/* harmony export */ "
|
|
12746
|
+
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
12747
|
+
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
12651
12748
|
/* harmony export */ });
|
|
12652
|
-
/* eslint-disable func-style */
|
|
12653
|
-
|
|
12654
12749
|
/**
|
|
12655
12750
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
12656
12751
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -12707,6 +12802,7 @@ function getColorScale(name) {
|
|
|
12707
12802
|
};
|
|
12708
12803
|
return name ? scales[name] : scales.grayscale;
|
|
12709
12804
|
}
|
|
12805
|
+
//# sourceMappingURL=style.js.map
|
|
12710
12806
|
|
|
12711
12807
|
/***/ }),
|
|
12712
12808
|
|
|
@@ -12719,9 +12815,9 @@ function getColorScale(name) {
|
|
|
12719
12815
|
"use strict";
|
|
12720
12816
|
__webpack_require__.r(__webpack_exports__);
|
|
12721
12817
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12722
|
-
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels),
|
|
12723
12818
|
/* harmony export */ "_approximateTextSizeInternal": () => (/* binding */ _approximateTextSizeInternal),
|
|
12724
|
-
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize)
|
|
12819
|
+
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize),
|
|
12820
|
+
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels)
|
|
12725
12821
|
/* harmony export */ });
|
|
12726
12822
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
12727
12823
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12911,8 +13007,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
12911
13007
|
|
|
12912
13008
|
|
|
12913
13009
|
var convertLengthToPixels = function (length, fontSize) {
|
|
12914
|
-
var
|
|
12915
|
-
|
|
13010
|
+
var _length$match;
|
|
13011
|
+
|
|
13012
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
13013
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
12916
13014
|
var result;
|
|
12917
13015
|
|
|
12918
13016
|
if (!attribute) {
|
|
@@ -12978,9 +13076,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
12978
13076
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
12979
13077
|
return total + lineStyle.lineHeight * height;
|
|
12980
13078
|
}, 0);
|
|
12981
|
-
};
|
|
12982
|
-
|
|
13079
|
+
};
|
|
12983
13080
|
|
|
13081
|
+
// Stubbable implementation.
|
|
12984
13082
|
var _approximateTextSizeInternal = {
|
|
12985
13083
|
impl: function (text, style) {
|
|
12986
13084
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -12999,7 +13097,7 @@ var _approximateTextSizeInternal = {
|
|
|
12999
13097
|
};
|
|
13000
13098
|
/**
|
|
13001
13099
|
* Predict text size by font params.
|
|
13002
|
-
* @param {string} text Content for width calculation.
|
|
13100
|
+
* @param {string|string[]} text Content for width calculation.
|
|
13003
13101
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
13004
13102
|
* @param {string} style.fontFamily Text fontFamily.
|
|
13005
13103
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -13012,6 +13110,7 @@ var _approximateTextSizeInternal = {
|
|
|
13012
13110
|
var approximateTextSize = function (text, style) {
|
|
13013
13111
|
return _approximateTextSizeInternal.impl(text, style);
|
|
13014
13112
|
};
|
|
13113
|
+
//# sourceMappingURL=textsize.js.map
|
|
13015
13114
|
|
|
13016
13115
|
/***/ }),
|
|
13017
13116
|
|
|
@@ -13042,6 +13141,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
13042
13141
|
});
|
|
13043
13142
|
TimerContext.displayName = "TimerContext";
|
|
13044
13143
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
13144
|
+
//# sourceMappingURL=timer-context.js.map
|
|
13045
13145
|
|
|
13046
13146
|
/***/ }),
|
|
13047
13147
|
|
|
@@ -13067,11 +13167,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
13067
13167
|
|
|
13068
13168
|
var Timer = /*#__PURE__*/function () {
|
|
13069
13169
|
function Timer() {
|
|
13170
|
+
var _this = this;
|
|
13171
|
+
|
|
13070
13172
|
_classCallCheck(this, Timer);
|
|
13071
13173
|
|
|
13174
|
+
this.shouldAnimate = void 0;
|
|
13175
|
+
this.subscribers = void 0;
|
|
13176
|
+
this.activeSubscriptions = void 0;
|
|
13177
|
+
this.timer = void 0;
|
|
13178
|
+
|
|
13179
|
+
this.loop = function () {
|
|
13180
|
+
_this.subscribers.forEach(function (s) {
|
|
13181
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
13182
|
+
});
|
|
13183
|
+
};
|
|
13184
|
+
|
|
13072
13185
|
this.shouldAnimate = true;
|
|
13073
13186
|
this.subscribers = [];
|
|
13074
|
-
this.loop = this.loop.bind(this);
|
|
13075
13187
|
this.timer = null;
|
|
13076
13188
|
this.activeSubscriptions = 0;
|
|
13077
13189
|
}
|
|
@@ -13086,13 +13198,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
13086
13198
|
value: function resumeAnimation() {
|
|
13087
13199
|
this.shouldAnimate = true;
|
|
13088
13200
|
}
|
|
13089
|
-
}, {
|
|
13090
|
-
key: "loop",
|
|
13091
|
-
value: function loop() {
|
|
13092
|
-
this.subscribers.forEach(function (s) {
|
|
13093
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
13094
|
-
});
|
|
13095
|
-
}
|
|
13096
13201
|
}, {
|
|
13097
13202
|
key: "start",
|
|
13098
13203
|
value: function start() {
|
|
@@ -13139,6 +13244,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
13139
13244
|
}();
|
|
13140
13245
|
|
|
13141
13246
|
|
|
13247
|
+
//# sourceMappingURL=timer.js.map
|
|
13142
13248
|
|
|
13143
13249
|
/***/ }),
|
|
13144
13250
|
|
|
@@ -13229,7 +13335,7 @@ function getChildData(child) {
|
|
|
13229
13335
|
}
|
|
13230
13336
|
/**
|
|
13231
13337
|
* If a parent component has animation enabled, calculate the transitions
|
|
13232
|
-
* for any data of any child component that supports data transitions
|
|
13338
|
+
* for any data of any child component that supports data transitions.
|
|
13233
13339
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
13234
13340
|
* in the first set and not the second, in the second and not the first,
|
|
13235
13341
|
* or both.
|
|
@@ -13358,7 +13464,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
13358
13464
|
|
|
13359
13465
|
if (exitingNodes) {
|
|
13360
13466
|
// After the exit transition occurs, trigger the animations for
|
|
13361
|
-
// nodes that are neither exiting
|
|
13467
|
+
// nodes that are neither exiting nor entering.
|
|
13362
13468
|
animate.onEnd = cb;
|
|
13363
13469
|
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.
|
|
13364
13470
|
|
|
@@ -13428,7 +13534,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
13428
13534
|
* and its index in the parent's children array.
|
|
13429
13535
|
*
|
|
13430
13536
|
* In particular, this will include an `animate` object that is set appropriately
|
|
13431
|
-
* so that each child will be
|
|
13537
|
+
* so that each child will be synchronized for each stage of a transition
|
|
13432
13538
|
* animation. It will also include a transformed `data` object, where each datum
|
|
13433
13539
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
13434
13540
|
* functions.
|
|
@@ -13573,6 +13679,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
13573
13679
|
};
|
|
13574
13680
|
};
|
|
13575
13681
|
}
|
|
13682
|
+
//# sourceMappingURL=transitions.js.map
|
|
13576
13683
|
|
|
13577
13684
|
/***/ }),
|
|
13578
13685
|
|
|
@@ -13585,8 +13692,11 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
13585
13692
|
"use strict";
|
|
13586
13693
|
__webpack_require__.r(__webpack_exports__);
|
|
13587
13694
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13588
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
13695
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
13696
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
13589
13697
|
/* harmony export */ });
|
|
13698
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
13699
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
13590
13700
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
13591
13701
|
|
|
13592
13702
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -13605,16 +13715,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
13605
13715
|
|
|
13606
13716
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13607
13717
|
|
|
13718
|
+
|
|
13608
13719
|
/*
|
|
13609
13720
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
13610
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
13721
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
13611
13722
|
starts with these characters.
|
|
13612
13723
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
13613
13724
|
*/
|
|
13725
|
+
|
|
13614
13726
|
var USER_PROPS_SAFELIST = {
|
|
13615
13727
|
startsWith: ["data-", "aria-"],
|
|
13616
13728
|
exactMatch: []
|
|
13617
13729
|
};
|
|
13730
|
+
|
|
13618
13731
|
/**
|
|
13619
13732
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
13620
13733
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -13623,7 +13736,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
13623
13736
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
13624
13737
|
* otherwise
|
|
13625
13738
|
*/
|
|
13626
|
-
|
|
13627
13739
|
var doesPropStartWith = function (key) {
|
|
13628
13740
|
var startsWith = false;
|
|
13629
13741
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -13697,6 +13809,18 @@ var getSafeUserProps = function (props) {
|
|
|
13697
13809
|
return [key, getValue(value, props)];
|
|
13698
13810
|
}));
|
|
13699
13811
|
};
|
|
13812
|
+
/**
|
|
13813
|
+
* Wraps a component and adds safe user props
|
|
13814
|
+
*
|
|
13815
|
+
* @param {ReactElement} component: parent component
|
|
13816
|
+
* @param {Object} props: props to be filtered
|
|
13817
|
+
* @returns {ReactElement} modified component
|
|
13818
|
+
*/
|
|
13819
|
+
|
|
13820
|
+
var withSafeUserProps = function (component, props) {
|
|
13821
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
13822
|
+
};
|
|
13823
|
+
//# sourceMappingURL=user-props.js.map
|
|
13700
13824
|
|
|
13701
13825
|
/***/ }),
|
|
13702
13826
|
|
|
@@ -13845,9 +13969,9 @@ function ascending(a, b) {
|
|
|
13845
13969
|
"use strict";
|
|
13846
13970
|
__webpack_require__.r(__webpack_exports__);
|
|
13847
13971
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13848
|
-
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
13849
|
-
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
13850
13972
|
/* harmony export */ "bisectCenter": () => (/* binding */ bisectCenter),
|
|
13973
|
+
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
13974
|
+
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
13851
13975
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
13852
13976
|
/* harmony export */ });
|
|
13853
13977
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
@@ -14233,9 +14357,9 @@ function range(start, stop, step) {
|
|
|
14233
14357
|
"use strict";
|
|
14234
14358
|
__webpack_require__.r(__webpack_exports__);
|
|
14235
14359
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14236
|
-
/* harmony export */ "
|
|
14360
|
+
/* harmony export */ "ascendingDefined": () => (/* binding */ ascendingDefined),
|
|
14237
14361
|
/* harmony export */ "compareDefined": () => (/* binding */ compareDefined),
|
|
14238
|
-
/* harmony export */ "
|
|
14362
|
+
/* harmony export */ "default": () => (/* binding */ sort)
|
|
14239
14363
|
/* harmony export */ });
|
|
14240
14364
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
14241
14365
|
/* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permute.js */ "../../victory-vendor/node_modules/d3-array/src/permute.js");
|
|
@@ -14363,14 +14487,14 @@ function tickStep(start, stop, count) {
|
|
|
14363
14487
|
__webpack_require__.r(__webpack_exports__);
|
|
14364
14488
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14365
14489
|
/* harmony export */ "Color": () => (/* binding */ Color),
|
|
14366
|
-
/* harmony export */ "
|
|
14490
|
+
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
14367
14491
|
/* harmony export */ "brighter": () => (/* binding */ brighter),
|
|
14492
|
+
/* harmony export */ "darker": () => (/* binding */ darker),
|
|
14368
14493
|
/* harmony export */ "default": () => (/* binding */ color),
|
|
14369
|
-
/* harmony export */ "
|
|
14370
|
-
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
14371
|
-
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
14494
|
+
/* harmony export */ "hsl": () => (/* binding */ hsl),
|
|
14372
14495
|
/* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
|
|
14373
|
-
/* harmony export */ "
|
|
14496
|
+
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
14497
|
+
/* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert)
|
|
14374
14498
|
/* harmony export */ });
|
|
14375
14499
|
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-vendor/node_modules/d3-color/src/define.js");
|
|
14376
14500
|
|
|
@@ -14809,8 +14933,8 @@ function extend(parent, definition) {
|
|
|
14809
14933
|
__webpack_require__.r(__webpack_exports__);
|
|
14810
14934
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14811
14935
|
/* harmony export */ "backIn": () => (/* binding */ backIn),
|
|
14812
|
-
/* harmony export */ "
|
|
14813
|
-
/* harmony export */ "
|
|
14936
|
+
/* harmony export */ "backInOut": () => (/* binding */ backInOut),
|
|
14937
|
+
/* harmony export */ "backOut": () => (/* binding */ backOut)
|
|
14814
14938
|
/* harmony export */ });
|
|
14815
14939
|
var overshoot = 1.70158;
|
|
14816
14940
|
|
|
@@ -14863,8 +14987,8 @@ var backInOut = (function custom(s) {
|
|
|
14863
14987
|
__webpack_require__.r(__webpack_exports__);
|
|
14864
14988
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14865
14989
|
/* harmony export */ "bounceIn": () => (/* binding */ bounceIn),
|
|
14866
|
-
/* harmony export */ "
|
|
14867
|
-
/* harmony export */ "
|
|
14990
|
+
/* harmony export */ "bounceInOut": () => (/* binding */ bounceInOut),
|
|
14991
|
+
/* harmony export */ "bounceOut": () => (/* binding */ bounceOut)
|
|
14868
14992
|
/* harmony export */ });
|
|
14869
14993
|
var b1 = 4 / 11,
|
|
14870
14994
|
b2 = 6 / 11,
|
|
@@ -14902,8 +15026,8 @@ function bounceInOut(t) {
|
|
|
14902
15026
|
__webpack_require__.r(__webpack_exports__);
|
|
14903
15027
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14904
15028
|
/* harmony export */ "circleIn": () => (/* binding */ circleIn),
|
|
14905
|
-
/* harmony export */ "
|
|
14906
|
-
/* harmony export */ "
|
|
15029
|
+
/* harmony export */ "circleInOut": () => (/* binding */ circleInOut),
|
|
15030
|
+
/* harmony export */ "circleOut": () => (/* binding */ circleOut)
|
|
14907
15031
|
/* harmony export */ });
|
|
14908
15032
|
function circleIn(t) {
|
|
14909
15033
|
return 1 - Math.sqrt(1 - t * t);
|
|
@@ -14930,8 +15054,8 @@ function circleInOut(t) {
|
|
|
14930
15054
|
__webpack_require__.r(__webpack_exports__);
|
|
14931
15055
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14932
15056
|
/* harmony export */ "cubicIn": () => (/* binding */ cubicIn),
|
|
14933
|
-
/* harmony export */ "
|
|
14934
|
-
/* harmony export */ "
|
|
15057
|
+
/* harmony export */ "cubicInOut": () => (/* binding */ cubicInOut),
|
|
15058
|
+
/* harmony export */ "cubicOut": () => (/* binding */ cubicOut)
|
|
14935
15059
|
/* harmony export */ });
|
|
14936
15060
|
function cubicIn(t) {
|
|
14937
15061
|
return t * t * t;
|
|
@@ -14958,8 +15082,8 @@ function cubicInOut(t) {
|
|
|
14958
15082
|
__webpack_require__.r(__webpack_exports__);
|
|
14959
15083
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14960
15084
|
/* harmony export */ "elasticIn": () => (/* binding */ elasticIn),
|
|
14961
|
-
/* harmony export */ "
|
|
14962
|
-
/* harmony export */ "
|
|
15085
|
+
/* harmony export */ "elasticInOut": () => (/* binding */ elasticInOut),
|
|
15086
|
+
/* harmony export */ "elasticOut": () => (/* binding */ elasticOut)
|
|
14963
15087
|
/* harmony export */ });
|
|
14964
15088
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
14965
15089
|
|
|
@@ -15022,8 +15146,8 @@ var elasticInOut = (function custom(a, p) {
|
|
|
15022
15146
|
__webpack_require__.r(__webpack_exports__);
|
|
15023
15147
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15024
15148
|
/* harmony export */ "expIn": () => (/* binding */ expIn),
|
|
15025
|
-
/* harmony export */ "
|
|
15026
|
-
/* harmony export */ "
|
|
15149
|
+
/* harmony export */ "expInOut": () => (/* binding */ expInOut),
|
|
15150
|
+
/* harmony export */ "expOut": () => (/* binding */ expOut)
|
|
15027
15151
|
/* harmony export */ });
|
|
15028
15152
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
15029
15153
|
|
|
@@ -15052,43 +15176,43 @@ function expInOut(t) {
|
|
|
15052
15176
|
"use strict";
|
|
15053
15177
|
__webpack_require__.r(__webpack_exports__);
|
|
15054
15178
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15055
|
-
/* harmony export */ "
|
|
15056
|
-
/* harmony export */ "
|
|
15057
|
-
/* harmony export */ "
|
|
15058
|
-
/* harmony export */ "
|
|
15059
|
-
/* harmony export */ "
|
|
15179
|
+
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
15180
|
+
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
15181
|
+
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
15182
|
+
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
15183
|
+
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
15184
|
+
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
15185
|
+
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
15186
|
+
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
15187
|
+
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
15188
|
+
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
15189
|
+
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
15190
|
+
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
15060
15191
|
/* harmony export */ "easeCubic": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
15061
15192
|
/* harmony export */ "easeCubicIn": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicIn),
|
|
15062
|
-
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
15063
15193
|
/* harmony export */ "easeCubicInOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
15194
|
+
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
15195
|
+
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
15196
|
+
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
15197
|
+
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut),
|
|
15198
|
+
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
15199
|
+
/* harmony export */ "easeExp": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
15200
|
+
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
15201
|
+
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
15202
|
+
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
15203
|
+
/* harmony export */ "easeLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_0__.linear),
|
|
15064
15204
|
/* harmony export */ "easePoly": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
15065
15205
|
/* harmony export */ "easePolyIn": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyIn),
|
|
15066
|
-
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
15067
15206
|
/* harmony export */ "easePolyInOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
15207
|
+
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
15208
|
+
/* harmony export */ "easeQuad": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
15209
|
+
/* harmony export */ "easeQuadIn": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadIn),
|
|
15210
|
+
/* harmony export */ "easeQuadInOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
15211
|
+
/* harmony export */ "easeQuadOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadOut),
|
|
15068
15212
|
/* harmony export */ "easeSin": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
15069
15213
|
/* harmony export */ "easeSinIn": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinIn),
|
|
15070
|
-
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut),
|
|
15071
15214
|
/* harmony export */ "easeSinInOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
15072
|
-
/* harmony export */ "
|
|
15073
|
-
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
15074
|
-
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
15075
|
-
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
15076
|
-
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
15077
|
-
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
15078
|
-
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
15079
|
-
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
15080
|
-
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
15081
|
-
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
15082
|
-
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
15083
|
-
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
15084
|
-
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
15085
|
-
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
15086
|
-
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
15087
|
-
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
15088
|
-
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
15089
|
-
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
15090
|
-
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
15091
|
-
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut)
|
|
15215
|
+
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut)
|
|
15092
15216
|
/* harmony export */ });
|
|
15093
15217
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-ease/src/linear.js");
|
|
15094
15218
|
/* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad.js */ "../../victory-vendor/node_modules/d3-ease/src/quad.js");
|
|
@@ -15168,8 +15292,8 @@ function tpmt(x) {
|
|
|
15168
15292
|
__webpack_require__.r(__webpack_exports__);
|
|
15169
15293
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15170
15294
|
/* harmony export */ "polyIn": () => (/* binding */ polyIn),
|
|
15171
|
-
/* harmony export */ "
|
|
15172
|
-
/* harmony export */ "
|
|
15295
|
+
/* harmony export */ "polyInOut": () => (/* binding */ polyInOut),
|
|
15296
|
+
/* harmony export */ "polyOut": () => (/* binding */ polyOut)
|
|
15173
15297
|
/* harmony export */ });
|
|
15174
15298
|
var exponent = 3;
|
|
15175
15299
|
|
|
@@ -15222,8 +15346,8 @@ var polyInOut = (function custom(e) {
|
|
|
15222
15346
|
__webpack_require__.r(__webpack_exports__);
|
|
15223
15347
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15224
15348
|
/* harmony export */ "quadIn": () => (/* binding */ quadIn),
|
|
15225
|
-
/* harmony export */ "
|
|
15226
|
-
/* harmony export */ "
|
|
15349
|
+
/* harmony export */ "quadInOut": () => (/* binding */ quadInOut),
|
|
15350
|
+
/* harmony export */ "quadOut": () => (/* binding */ quadOut)
|
|
15227
15351
|
/* harmony export */ });
|
|
15228
15352
|
function quadIn(t) {
|
|
15229
15353
|
return t * t;
|
|
@@ -15250,8 +15374,8 @@ function quadInOut(t) {
|
|
|
15250
15374
|
__webpack_require__.r(__webpack_exports__);
|
|
15251
15375
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15252
15376
|
/* harmony export */ "sinIn": () => (/* binding */ sinIn),
|
|
15253
|
-
/* harmony export */ "
|
|
15254
|
-
/* harmony export */ "
|
|
15377
|
+
/* harmony export */ "sinInOut": () => (/* binding */ sinInOut),
|
|
15378
|
+
/* harmony export */ "sinOut": () => (/* binding */ sinOut)
|
|
15255
15379
|
/* harmony export */ });
|
|
15256
15380
|
var pi = Math.PI,
|
|
15257
15381
|
halfPi = pi / 2;
|
|
@@ -15280,9 +15404,9 @@ function sinInOut(t) {
|
|
|
15280
15404
|
"use strict";
|
|
15281
15405
|
__webpack_require__.r(__webpack_exports__);
|
|
15282
15406
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15407
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
15283
15408
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
15284
|
-
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
15285
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
15409
|
+
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
15286
15410
|
/* harmony export */ });
|
|
15287
15411
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-format/src/locale.js");
|
|
15288
15412
|
|
|
@@ -15428,8 +15552,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15428
15552
|
"use strict";
|
|
15429
15553
|
__webpack_require__.r(__webpack_exports__);
|
|
15430
15554
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15431
|
-
/* harmony export */ "
|
|
15432
|
-
/* harmony export */ "
|
|
15555
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
15556
|
+
/* harmony export */ "prefixExponent": () => (/* binding */ prefixExponent)
|
|
15433
15557
|
/* harmony export */ });
|
|
15434
15558
|
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../victory-vendor/node_modules/d3-format/src/formatDecimal.js");
|
|
15435
15559
|
|
|
@@ -15488,8 +15612,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15488
15612
|
"use strict";
|
|
15489
15613
|
__webpack_require__.r(__webpack_exports__);
|
|
15490
15614
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15491
|
-
/* harmony export */ "
|
|
15492
|
-
/* harmony export */ "
|
|
15615
|
+
/* harmony export */ "FormatSpecifier": () => (/* binding */ FormatSpecifier),
|
|
15616
|
+
/* harmony export */ "default": () => (/* binding */ formatSpecifier)
|
|
15493
15617
|
/* harmony export */ });
|
|
15494
15618
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
15495
15619
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
@@ -15971,9 +16095,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15971
16095
|
"use strict";
|
|
15972
16096
|
__webpack_require__.r(__webpack_exports__);
|
|
15973
16097
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15974
|
-
/* harmony export */ "
|
|
16098
|
+
/* harmony export */ "default": () => (/* binding */ nogamma),
|
|
15975
16099
|
/* harmony export */ "gamma": () => (/* binding */ gamma),
|
|
15976
|
-
/* harmony export */ "
|
|
16100
|
+
/* harmony export */ "hue": () => (/* binding */ hue)
|
|
15977
16101
|
/* harmony export */ });
|
|
15978
16102
|
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-vendor/node_modules/d3-interpolate/src/constant.js");
|
|
15979
16103
|
|
|
@@ -16678,10 +16802,10 @@ function constants(x) {
|
|
|
16678
16802
|
"use strict";
|
|
16679
16803
|
__webpack_require__.r(__webpack_exports__);
|
|
16680
16804
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16681
|
-
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
16682
16805
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
16683
|
-
/* harmony export */ "
|
|
16684
|
-
/* harmony export */ "
|
|
16806
|
+
/* harmony export */ "default": () => (/* binding */ continuous),
|
|
16807
|
+
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
16808
|
+
/* harmony export */ "transformer": () => (/* binding */ transformer)
|
|
16685
16809
|
/* harmony export */ });
|
|
16686
16810
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisect.js");
|
|
16687
16811
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -16829,9 +16953,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16829
16953
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16830
16954
|
/* harmony export */ "default": () => (/* binding */ diverging),
|
|
16831
16955
|
/* harmony export */ "divergingLog": () => (/* binding */ divergingLog),
|
|
16832
|
-
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog),
|
|
16833
16956
|
/* harmony export */ "divergingPow": () => (/* binding */ divergingPow),
|
|
16834
|
-
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt)
|
|
16957
|
+
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt),
|
|
16958
|
+
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog)
|
|
16835
16959
|
/* harmony export */ });
|
|
16836
16960
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/piecewise.js");
|
|
16837
16961
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -17006,32 +17130,32 @@ function identity(domain) {
|
|
|
17006
17130
|
__webpack_require__.r(__webpack_exports__);
|
|
17007
17131
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17008
17132
|
/* harmony export */ "scaleBand": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
17009
|
-
/* harmony export */ "
|
|
17133
|
+
/* harmony export */ "scaleDiverging": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
17134
|
+
/* harmony export */ "scaleDivergingLog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingLog),
|
|
17135
|
+
/* harmony export */ "scaleDivergingPow": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingPow),
|
|
17136
|
+
/* harmony export */ "scaleDivergingSqrt": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSqrt),
|
|
17137
|
+
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
17010
17138
|
/* harmony export */ "scaleIdentity": () => (/* reexport safe */ _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
17139
|
+
/* harmony export */ "scaleImplicit": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__.implicit),
|
|
17011
17140
|
/* harmony export */ "scaleLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
17012
17141
|
/* harmony export */ "scaleLog": () => (/* reexport safe */ _log_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
17013
|
-
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
17014
17142
|
/* harmony export */ "scaleOrdinal": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
17015
|
-
/* harmony export */ "
|
|
17143
|
+
/* harmony export */ "scalePoint": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__.point),
|
|
17016
17144
|
/* harmony export */ "scalePow": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
17017
|
-
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
17018
|
-
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
17019
17145
|
/* harmony export */ "scaleQuantile": () => (/* reexport safe */ _quantile_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
17020
17146
|
/* harmony export */ "scaleQuantize": () => (/* reexport safe */ _quantize_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
17021
|
-
/* harmony export */ "
|
|
17022
|
-
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
17023
|
-
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
17147
|
+
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
17024
17148
|
/* harmony export */ "scaleSequential": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
17025
17149
|
/* harmony export */ "scaleSequentialLog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialLog),
|
|
17026
17150
|
/* harmony export */ "scaleSequentialPow": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialPow),
|
|
17151
|
+
/* harmony export */ "scaleSequentialQuantile": () => (/* reexport safe */ _sequentialQuantile_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
17027
17152
|
/* harmony export */ "scaleSequentialSqrt": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSqrt),
|
|
17028
17153
|
/* harmony export */ "scaleSequentialSymlog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSymlog),
|
|
17029
|
-
/* harmony export */ "
|
|
17030
|
-
/* harmony export */ "
|
|
17031
|
-
/* harmony export */ "
|
|
17032
|
-
/* harmony export */ "
|
|
17033
|
-
/* harmony export */ "
|
|
17034
|
-
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
17154
|
+
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
17155
|
+
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
17156
|
+
/* harmony export */ "scaleThreshold": () => (/* reexport safe */ _threshold_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
17157
|
+
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
17158
|
+
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
17035
17159
|
/* harmony export */ "tickFormat": () => (/* reexport safe */ _tickFormat_js__WEBPACK_IMPORTED_MODULE_16__["default"])
|
|
17036
17160
|
/* harmony export */ });
|
|
17037
17161
|
/* harmony import */ var _band_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band.js */ "../../victory-vendor/node_modules/d3-scale/src/band.js");
|
|
@@ -17097,8 +17221,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17097
17221
|
"use strict";
|
|
17098
17222
|
__webpack_require__.r(__webpack_exports__);
|
|
17099
17223
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17100
|
-
/* harmony export */ "
|
|
17101
|
-
/* harmony export */ "
|
|
17224
|
+
/* harmony export */ "initInterpolator": () => (/* binding */ initInterpolator),
|
|
17225
|
+
/* harmony export */ "initRange": () => (/* binding */ initRange)
|
|
17102
17226
|
/* harmony export */ });
|
|
17103
17227
|
function initRange(domain, range) {
|
|
17104
17228
|
switch (arguments.length) {
|
|
@@ -17139,8 +17263,8 @@ function initInterpolator(domain, interpolator) {
|
|
|
17139
17263
|
"use strict";
|
|
17140
17264
|
__webpack_require__.r(__webpack_exports__);
|
|
17141
17265
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17142
|
-
/* harmony export */ "
|
|
17143
|
-
/* harmony export */ "
|
|
17266
|
+
/* harmony export */ "default": () => (/* binding */ linear),
|
|
17267
|
+
/* harmony export */ "linearish": () => (/* binding */ linearish)
|
|
17144
17268
|
/* harmony export */ });
|
|
17145
17269
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
17146
17270
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -17229,8 +17353,8 @@ function linear() {
|
|
|
17229
17353
|
"use strict";
|
|
17230
17354
|
__webpack_require__.r(__webpack_exports__);
|
|
17231
17355
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17232
|
-
/* harmony export */ "
|
|
17233
|
-
/* harmony export */ "
|
|
17356
|
+
/* harmony export */ "default": () => (/* binding */ log),
|
|
17357
|
+
/* harmony export */ "loggish": () => (/* binding */ loggish)
|
|
17234
17358
|
/* harmony export */ });
|
|
17235
17359
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
17236
17360
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../victory-vendor/node_modules/d3-format/src/formatSpecifier.js");
|
|
@@ -17442,8 +17566,8 @@ function number(x) {
|
|
|
17442
17566
|
"use strict";
|
|
17443
17567
|
__webpack_require__.r(__webpack_exports__);
|
|
17444
17568
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17445
|
-
/* harmony export */ "
|
|
17446
|
-
/* harmony export */ "
|
|
17569
|
+
/* harmony export */ "default": () => (/* binding */ ordinal),
|
|
17570
|
+
/* harmony export */ "implicit": () => (/* binding */ implicit)
|
|
17447
17571
|
/* harmony export */ });
|
|
17448
17572
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/internmap/src/index.js");
|
|
17449
17573
|
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init.js */ "../../victory-vendor/node_modules/d3-scale/src/init.js");
|
|
@@ -17506,8 +17630,8 @@ function ordinal() {
|
|
|
17506
17630
|
"use strict";
|
|
17507
17631
|
__webpack_require__.r(__webpack_exports__);
|
|
17508
17632
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17509
|
-
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
17510
17633
|
/* harmony export */ "default": () => (/* binding */ pow),
|
|
17634
|
+
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
17511
17635
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt)
|
|
17512
17636
|
/* harmony export */ });
|
|
17513
17637
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
@@ -17811,9 +17935,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17811
17935
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
17812
17936
|
/* harmony export */ "default": () => (/* binding */ sequential),
|
|
17813
17937
|
/* harmony export */ "sequentialLog": () => (/* binding */ sequentialLog),
|
|
17814
|
-
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog),
|
|
17815
17938
|
/* harmony export */ "sequentialPow": () => (/* binding */ sequentialPow),
|
|
17816
|
-
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt)
|
|
17939
|
+
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt),
|
|
17940
|
+
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog)
|
|
17817
17941
|
/* harmony export */ });
|
|
17818
17942
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
17819
17943
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/round.js");
|
|
@@ -18001,8 +18125,8 @@ function sequentialQuantile() {
|
|
|
18001
18125
|
"use strict";
|
|
18002
18126
|
__webpack_require__.r(__webpack_exports__);
|
|
18003
18127
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18004
|
-
/* harmony export */ "
|
|
18005
|
-
/* harmony export */ "
|
|
18128
|
+
/* harmony export */ "default": () => (/* binding */ symlog),
|
|
18129
|
+
/* harmony export */ "symlogish": () => (/* binding */ symlogish)
|
|
18006
18130
|
/* harmony export */ });
|
|
18007
18131
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
18008
18132
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -18573,8 +18697,8 @@ function cornerTangents(x0, y0, x1, y1, r1, rc, cw) {
|
|
|
18573
18697
|
"use strict";
|
|
18574
18698
|
__webpack_require__.r(__webpack_exports__);
|
|
18575
18699
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18576
|
-
/* harmony export */ "
|
|
18577
|
-
/* harmony export */ "
|
|
18700
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
18701
|
+
/* harmony export */ "slice": () => (/* binding */ slice)
|
|
18578
18702
|
/* harmony export */ });
|
|
18579
18703
|
var slice = Array.prototype.slice;
|
|
18580
18704
|
|
|
@@ -18653,18 +18777,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18653
18777
|
__webpack_require__.r(__webpack_exports__);
|
|
18654
18778
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18655
18779
|
/* harmony export */ "abs": () => (/* binding */ abs),
|
|
18780
|
+
/* harmony export */ "acos": () => (/* binding */ acos),
|
|
18781
|
+
/* harmony export */ "asin": () => (/* binding */ asin),
|
|
18656
18782
|
/* harmony export */ "atan2": () => (/* binding */ atan2),
|
|
18657
18783
|
/* harmony export */ "cos": () => (/* binding */ cos),
|
|
18784
|
+
/* harmony export */ "epsilon": () => (/* binding */ epsilon),
|
|
18785
|
+
/* harmony export */ "halfPi": () => (/* binding */ halfPi),
|
|
18658
18786
|
/* harmony export */ "max": () => (/* binding */ max),
|
|
18659
18787
|
/* harmony export */ "min": () => (/* binding */ min),
|
|
18788
|
+
/* harmony export */ "pi": () => (/* binding */ pi),
|
|
18660
18789
|
/* harmony export */ "sin": () => (/* binding */ sin),
|
|
18661
18790
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt),
|
|
18662
|
-
/* harmony export */ "
|
|
18663
|
-
/* harmony export */ "pi": () => (/* binding */ pi),
|
|
18664
|
-
/* harmony export */ "halfPi": () => (/* binding */ halfPi),
|
|
18665
|
-
/* harmony export */ "tau": () => (/* binding */ tau),
|
|
18666
|
-
/* harmony export */ "acos": () => (/* binding */ acos),
|
|
18667
|
-
/* harmony export */ "asin": () => (/* binding */ asin)
|
|
18791
|
+
/* harmony export */ "tau": () => (/* binding */ tau)
|
|
18668
18792
|
/* harmony export */ });
|
|
18669
18793
|
const abs = Math.abs;
|
|
18670
18794
|
const atan2 = Math.atan2;
|
|
@@ -18799,11 +18923,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18799
18923
|
"use strict";
|
|
18800
18924
|
__webpack_require__.r(__webpack_exports__);
|
|
18801
18925
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18926
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
18802
18927
|
/* harmony export */ "timeFormat": () => (/* binding */ timeFormat),
|
|
18803
18928
|
/* harmony export */ "timeParse": () => (/* binding */ timeParse),
|
|
18804
18929
|
/* harmony export */ "utcFormat": () => (/* binding */ utcFormat),
|
|
18805
|
-
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
18806
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
18930
|
+
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
18807
18931
|
/* harmony export */ });
|
|
18808
18932
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-time-format/src/locale.js");
|
|
18809
18933
|
|
|
@@ -19553,8 +19677,8 @@ function formatUnixTimestampSeconds(d) {
|
|
|
19553
19677
|
"use strict";
|
|
19554
19678
|
__webpack_require__.r(__webpack_exports__);
|
|
19555
19679
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19556
|
-
/* harmony export */ "
|
|
19557
|
-
/* harmony export */ "
|
|
19680
|
+
/* harmony export */ "days": () => (/* binding */ days),
|
|
19681
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
19558
19682
|
/* harmony export */ });
|
|
19559
19683
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
19560
19684
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -19583,12 +19707,12 @@ var days = day.range;
|
|
|
19583
19707
|
"use strict";
|
|
19584
19708
|
__webpack_require__.r(__webpack_exports__);
|
|
19585
19709
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19586
|
-
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
19587
|
-
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
19588
|
-
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
19589
19710
|
/* harmony export */ "durationDay": () => (/* binding */ durationDay),
|
|
19590
|
-
/* harmony export */ "
|
|
19711
|
+
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
19712
|
+
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
19591
19713
|
/* harmony export */ "durationMonth": () => (/* binding */ durationMonth),
|
|
19714
|
+
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
19715
|
+
/* harmony export */ "durationWeek": () => (/* binding */ durationWeek),
|
|
19592
19716
|
/* harmony export */ "durationYear": () => (/* binding */ durationYear)
|
|
19593
19717
|
/* harmony export */ });
|
|
19594
19718
|
const durationSecond = 1000;
|
|
@@ -19870,10 +19994,10 @@ var seconds = second.range;
|
|
|
19870
19994
|
"use strict";
|
|
19871
19995
|
__webpack_require__.r(__webpack_exports__);
|
|
19872
19996
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19873
|
-
/* harmony export */ "
|
|
19874
|
-
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
19997
|
+
/* harmony export */ "timeTickInterval": () => (/* binding */ timeTickInterval),
|
|
19875
19998
|
/* harmony export */ "timeTicks": () => (/* binding */ timeTicks),
|
|
19876
|
-
/* harmony export */ "
|
|
19999
|
+
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
20000
|
+
/* harmony export */ "utcTicks": () => (/* binding */ utcTicks)
|
|
19877
20001
|
/* harmony export */ });
|
|
19878
20002
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisector.js");
|
|
19879
20003
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
@@ -20100,20 +20224,20 @@ var utcMonths = utcMonth.range;
|
|
|
20100
20224
|
"use strict";
|
|
20101
20225
|
__webpack_require__.r(__webpack_exports__);
|
|
20102
20226
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20103
|
-
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
20104
|
-
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
20105
|
-
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
20106
|
-
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
20107
|
-
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
20108
20227
|
/* harmony export */ "utcFriday": () => (/* binding */ utcFriday),
|
|
20228
|
+
/* harmony export */ "utcFridays": () => (/* binding */ utcFridays),
|
|
20229
|
+
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
20230
|
+
/* harmony export */ "utcMondays": () => (/* binding */ utcMondays),
|
|
20109
20231
|
/* harmony export */ "utcSaturday": () => (/* binding */ utcSaturday),
|
|
20232
|
+
/* harmony export */ "utcSaturdays": () => (/* binding */ utcSaturdays),
|
|
20233
|
+
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
20110
20234
|
/* harmony export */ "utcSundays": () => (/* binding */ utcSundays),
|
|
20111
|
-
/* harmony export */ "
|
|
20112
|
-
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
20113
|
-
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays),
|
|
20235
|
+
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
20114
20236
|
/* harmony export */ "utcThursdays": () => (/* binding */ utcThursdays),
|
|
20115
|
-
/* harmony export */ "
|
|
20116
|
-
/* harmony export */ "
|
|
20237
|
+
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
20238
|
+
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
20239
|
+
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
20240
|
+
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays)
|
|
20117
20241
|
/* harmony export */ });
|
|
20118
20242
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
20119
20243
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -20202,20 +20326,20 @@ var utcYears = utcYear.range;
|
|
|
20202
20326
|
"use strict";
|
|
20203
20327
|
__webpack_require__.r(__webpack_exports__);
|
|
20204
20328
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20205
|
-
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
20206
|
-
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
20207
|
-
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
20208
|
-
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
20209
|
-
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
20210
20329
|
/* harmony export */ "friday": () => (/* binding */ friday),
|
|
20330
|
+
/* harmony export */ "fridays": () => (/* binding */ fridays),
|
|
20331
|
+
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
20332
|
+
/* harmony export */ "mondays": () => (/* binding */ mondays),
|
|
20211
20333
|
/* harmony export */ "saturday": () => (/* binding */ saturday),
|
|
20334
|
+
/* harmony export */ "saturdays": () => (/* binding */ saturdays),
|
|
20335
|
+
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
20212
20336
|
/* harmony export */ "sundays": () => (/* binding */ sundays),
|
|
20213
|
-
/* harmony export */ "
|
|
20214
|
-
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
20215
|
-
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays),
|
|
20337
|
+
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
20216
20338
|
/* harmony export */ "thursdays": () => (/* binding */ thursdays),
|
|
20217
|
-
/* harmony export */ "
|
|
20218
|
-
/* harmony export */ "
|
|
20339
|
+
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
20340
|
+
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
20341
|
+
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
20342
|
+
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays)
|
|
20219
20343
|
/* harmony export */ });
|
|
20220
20344
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
20221
20345
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -20304,8 +20428,8 @@ var years = year.range;
|
|
|
20304
20428
|
"use strict";
|
|
20305
20429
|
__webpack_require__.r(__webpack_exports__);
|
|
20306
20430
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20307
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
20308
20431
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
20432
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
20309
20433
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
20310
20434
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
20311
20435
|
/* harmony export */ });
|
|
@@ -20601,8 +20725,8 @@ var __webpack_exports__ = {};
|
|
|
20601
20725
|
\******************/
|
|
20602
20726
|
__webpack_require__.r(__webpack_exports__);
|
|
20603
20727
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20604
|
-
/* harmony export */ "
|
|
20605
|
-
/* harmony export */ "
|
|
20728
|
+
/* harmony export */ "Slice": () => (/* reexport safe */ _slice__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
20729
|
+
/* harmony export */ "VictoryPie": () => (/* reexport safe */ _victory_pie__WEBPACK_IMPORTED_MODULE_0__["default"])
|
|
20606
20730
|
/* harmony export */ });
|
|
20607
20731
|
/* harmony import */ var _victory_pie__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./victory-pie */ "./victory-pie.js");
|
|
20608
20732
|
/* harmony import */ var _slice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./slice */ "./slice.js");
|