victory-voronoi-container 36.4.1 → 36.5.0
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.
|
@@ -63,6 +63,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
63
63
|
|
|
64
64
|
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; }
|
|
65
65
|
|
|
66
|
+
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; }
|
|
67
|
+
|
|
66
68
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
67
69
|
|
|
68
70
|
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); } }
|
|
@@ -71,7 +73,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
71
73
|
|
|
72
74
|
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); }
|
|
73
75
|
|
|
74
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
76
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
75
77
|
|
|
76
78
|
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); }; }
|
|
77
79
|
|
|
@@ -81,10 +83,9 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
81
83
|
|
|
82
84
|
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; } }
|
|
83
85
|
|
|
84
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
85
|
-
|
|
86
|
-
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; }
|
|
86
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
87
87
|
|
|
88
|
+
/* eslint-disable react/no-multi-comp */
|
|
88
89
|
|
|
89
90
|
|
|
90
91
|
|
|
@@ -281,7 +282,7 @@ var voronoiContainerMixin = function (base) {
|
|
|
281
282
|
}]);
|
|
282
283
|
|
|
283
284
|
return VictoryVoronoiContainer;
|
|
284
|
-
}(base),
|
|
285
|
+
}(base), _class.displayName = "VictoryVoronoiContainer", _class.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer.propTypes), {}, {
|
|
285
286
|
activateData: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
286
287
|
activateLabels: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
287
288
|
disable: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().bool),
|
|
@@ -299,12 +300,12 @@ var voronoiContainerMixin = function (base) {
|
|
|
299
300
|
left: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
300
301
|
right: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
301
302
|
})])
|
|
302
|
-
})
|
|
303
|
+
}), _class.defaultProps = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer.defaultProps), {}, {
|
|
303
304
|
activateData: true,
|
|
304
305
|
activateLabels: true,
|
|
305
306
|
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_tooltip__WEBPACK_IMPORTED_MODULE_8__["default"], null),
|
|
306
307
|
voronoiPadding: 5
|
|
307
|
-
})
|
|
308
|
+
}), _class.defaultEvents = function (props) {
|
|
308
309
|
return [{
|
|
309
310
|
target: "parent",
|
|
310
311
|
eventHandlers: {
|
|
@@ -335,9 +336,9 @@ var voronoiContainerMixin = function (base) {
|
|
|
335
336
|
}
|
|
336
337
|
}
|
|
337
338
|
}];
|
|
338
|
-
}
|
|
339
|
+
}, _class;
|
|
339
340
|
};
|
|
340
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (voronoiContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__
|
|
341
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (voronoiContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer));
|
|
341
342
|
|
|
342
343
|
/***/ }),
|
|
343
344
|
|
|
@@ -6733,7 +6734,7 @@ module.exports = checkPropTypes;
|
|
|
6733
6734
|
|
|
6734
6735
|
|
|
6735
6736
|
|
|
6736
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6737
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6737
6738
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6738
6739
|
|
|
6739
6740
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
@@ -7352,7 +7353,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7352
7353
|
*/
|
|
7353
7354
|
|
|
7354
7355
|
if (true) {
|
|
7355
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
7356
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
7356
7357
|
|
|
7357
7358
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7358
7359
|
// http://fb.me/prop-types-in-prod
|
|
@@ -7397,154 +7398,10 @@ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
|
7397
7398
|
|
|
7398
7399
|
/***/ }),
|
|
7399
7400
|
|
|
7400
|
-
/***/ "../../../node_modules/react-
|
|
7401
|
-
|
|
7402
|
-
!*** ../../../node_modules/react-
|
|
7403
|
-
|
|
7404
|
-
/***/ ((module) => {
|
|
7405
|
-
|
|
7406
|
-
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7407
|
-
|
|
7408
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
7409
|
-
var hasMap = typeof Map === 'function';
|
|
7410
|
-
var hasSet = typeof Set === 'function';
|
|
7411
|
-
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7412
|
-
|
|
7413
|
-
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7414
|
-
|
|
7415
|
-
function equal(a, b) {
|
|
7416
|
-
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7417
|
-
if (a === b) return true;
|
|
7418
|
-
|
|
7419
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7420
|
-
if (a.constructor !== b.constructor) return false;
|
|
7421
|
-
|
|
7422
|
-
var length, i, keys;
|
|
7423
|
-
if (Array.isArray(a)) {
|
|
7424
|
-
length = a.length;
|
|
7425
|
-
if (length != b.length) return false;
|
|
7426
|
-
for (i = length; i-- !== 0;)
|
|
7427
|
-
if (!equal(a[i], b[i])) return false;
|
|
7428
|
-
return true;
|
|
7429
|
-
}
|
|
7430
|
-
|
|
7431
|
-
// START: Modifications:
|
|
7432
|
-
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7433
|
-
// to co-exist with es5.
|
|
7434
|
-
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7435
|
-
// Basically, take:
|
|
7436
|
-
//
|
|
7437
|
-
// ```js
|
|
7438
|
-
// for (i of a.entries())
|
|
7439
|
-
// if (!b.has(i[0])) return false;
|
|
7440
|
-
// ```
|
|
7441
|
-
//
|
|
7442
|
-
// ... and convert to:
|
|
7443
|
-
//
|
|
7444
|
-
// ```js
|
|
7445
|
-
// it = a.entries();
|
|
7446
|
-
// while (!(i = it.next()).done)
|
|
7447
|
-
// if (!b.has(i.value[0])) return false;
|
|
7448
|
-
// ```
|
|
7449
|
-
//
|
|
7450
|
-
// **Note**: `i` access switches to `i.value`.
|
|
7451
|
-
var it;
|
|
7452
|
-
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7453
|
-
if (a.size !== b.size) return false;
|
|
7454
|
-
it = a.entries();
|
|
7455
|
-
while (!(i = it.next()).done)
|
|
7456
|
-
if (!b.has(i.value[0])) return false;
|
|
7457
|
-
it = a.entries();
|
|
7458
|
-
while (!(i = it.next()).done)
|
|
7459
|
-
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7460
|
-
return true;
|
|
7461
|
-
}
|
|
7462
|
-
|
|
7463
|
-
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7464
|
-
if (a.size !== b.size) return false;
|
|
7465
|
-
it = a.entries();
|
|
7466
|
-
while (!(i = it.next()).done)
|
|
7467
|
-
if (!b.has(i.value[0])) return false;
|
|
7468
|
-
return true;
|
|
7469
|
-
}
|
|
7470
|
-
// END: Modifications
|
|
7471
|
-
|
|
7472
|
-
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7473
|
-
length = a.length;
|
|
7474
|
-
if (length != b.length) return false;
|
|
7475
|
-
for (i = length; i-- !== 0;)
|
|
7476
|
-
if (a[i] !== b[i]) return false;
|
|
7477
|
-
return true;
|
|
7478
|
-
}
|
|
7479
|
-
|
|
7480
|
-
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7481
|
-
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7482
|
-
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7483
|
-
|
|
7484
|
-
keys = Object.keys(a);
|
|
7485
|
-
length = keys.length;
|
|
7486
|
-
if (length !== Object.keys(b).length) return false;
|
|
7487
|
-
|
|
7488
|
-
for (i = length; i-- !== 0;)
|
|
7489
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7490
|
-
// END: fast-deep-equal
|
|
7491
|
-
|
|
7492
|
-
// START: react-fast-compare
|
|
7493
|
-
// custom handling for DOM elements
|
|
7494
|
-
if (hasElementType && a instanceof Element) return false;
|
|
7495
|
-
|
|
7496
|
-
// custom handling for React/Preact
|
|
7497
|
-
for (i = length; i-- !== 0;) {
|
|
7498
|
-
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7499
|
-
// React-specific: avoid traversing React elements' _owner
|
|
7500
|
-
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7501
|
-
// __v = $_original / $_vnode
|
|
7502
|
-
// __o = $_owner
|
|
7503
|
-
// These properties contain circular references and are not needed when
|
|
7504
|
-
// comparing the actual elements (and not their owners)
|
|
7505
|
-
// .$$typeof and ._store on just reasonable markers of elements
|
|
7506
|
-
|
|
7507
|
-
continue;
|
|
7508
|
-
}
|
|
7509
|
-
|
|
7510
|
-
// all other properties should be traversed as usual
|
|
7511
|
-
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7512
|
-
}
|
|
7513
|
-
// END: react-fast-compare
|
|
7514
|
-
|
|
7515
|
-
// START: fast-deep-equal
|
|
7516
|
-
return true;
|
|
7517
|
-
}
|
|
7518
|
-
|
|
7519
|
-
return a !== a && b !== b;
|
|
7520
|
-
}
|
|
7521
|
-
// end fast-deep-equal
|
|
7522
|
-
|
|
7523
|
-
module.exports = function isEqual(a, b) {
|
|
7524
|
-
try {
|
|
7525
|
-
return equal(a, b);
|
|
7526
|
-
} catch (error) {
|
|
7527
|
-
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7528
|
-
// warn on circular references, don't crash
|
|
7529
|
-
// browsers give this different errors name and messages:
|
|
7530
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7531
|
-
// firefox: "InternalError", too much recursion"
|
|
7532
|
-
// edge: "Error", "Out of stack space"
|
|
7533
|
-
console.warn('react-fast-compare cannot handle circular refs');
|
|
7534
|
-
return false;
|
|
7535
|
-
}
|
|
7536
|
-
// some other error. we should definitely know about these
|
|
7537
|
-
throw error;
|
|
7538
|
-
}
|
|
7539
|
-
};
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
/***/ }),
|
|
7543
|
-
|
|
7544
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
7545
|
-
/*!******************************************************************!*\
|
|
7546
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
7547
|
-
\******************************************************************/
|
|
7401
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
7402
|
+
/*!******************************************************************************************!*\
|
|
7403
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7404
|
+
\******************************************************************************************/
|
|
7548
7405
|
/***/ ((__unused_webpack_module, exports) => {
|
|
7549
7406
|
|
|
7550
7407
|
"use strict";
|
|
@@ -7733,20 +7590,164 @@ exports.typeOf = typeOf;
|
|
|
7733
7590
|
|
|
7734
7591
|
/***/ }),
|
|
7735
7592
|
|
|
7736
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
7737
|
-
|
|
7738
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
7739
|
-
|
|
7593
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
7594
|
+
/*!***********************************************************************!*\
|
|
7595
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
7596
|
+
\***********************************************************************/
|
|
7740
7597
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7741
7598
|
|
|
7742
7599
|
"use strict";
|
|
7743
7600
|
|
|
7744
7601
|
|
|
7745
7602
|
if (false) {} else {
|
|
7746
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
7603
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
7747
7604
|
}
|
|
7748
7605
|
|
|
7749
7606
|
|
|
7607
|
+
/***/ }),
|
|
7608
|
+
|
|
7609
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
7610
|
+
/*!*********************************************************!*\
|
|
7611
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
7612
|
+
\*********************************************************/
|
|
7613
|
+
/***/ ((module) => {
|
|
7614
|
+
|
|
7615
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7616
|
+
|
|
7617
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
7618
|
+
var hasMap = typeof Map === 'function';
|
|
7619
|
+
var hasSet = typeof Set === 'function';
|
|
7620
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7621
|
+
|
|
7622
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7623
|
+
|
|
7624
|
+
function equal(a, b) {
|
|
7625
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7626
|
+
if (a === b) return true;
|
|
7627
|
+
|
|
7628
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7629
|
+
if (a.constructor !== b.constructor) return false;
|
|
7630
|
+
|
|
7631
|
+
var length, i, keys;
|
|
7632
|
+
if (Array.isArray(a)) {
|
|
7633
|
+
length = a.length;
|
|
7634
|
+
if (length != b.length) return false;
|
|
7635
|
+
for (i = length; i-- !== 0;)
|
|
7636
|
+
if (!equal(a[i], b[i])) return false;
|
|
7637
|
+
return true;
|
|
7638
|
+
}
|
|
7639
|
+
|
|
7640
|
+
// START: Modifications:
|
|
7641
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7642
|
+
// to co-exist with es5.
|
|
7643
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7644
|
+
// Basically, take:
|
|
7645
|
+
//
|
|
7646
|
+
// ```js
|
|
7647
|
+
// for (i of a.entries())
|
|
7648
|
+
// if (!b.has(i[0])) return false;
|
|
7649
|
+
// ```
|
|
7650
|
+
//
|
|
7651
|
+
// ... and convert to:
|
|
7652
|
+
//
|
|
7653
|
+
// ```js
|
|
7654
|
+
// it = a.entries();
|
|
7655
|
+
// while (!(i = it.next()).done)
|
|
7656
|
+
// if (!b.has(i.value[0])) return false;
|
|
7657
|
+
// ```
|
|
7658
|
+
//
|
|
7659
|
+
// **Note**: `i` access switches to `i.value`.
|
|
7660
|
+
var it;
|
|
7661
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7662
|
+
if (a.size !== b.size) return false;
|
|
7663
|
+
it = a.entries();
|
|
7664
|
+
while (!(i = it.next()).done)
|
|
7665
|
+
if (!b.has(i.value[0])) return false;
|
|
7666
|
+
it = a.entries();
|
|
7667
|
+
while (!(i = it.next()).done)
|
|
7668
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7669
|
+
return true;
|
|
7670
|
+
}
|
|
7671
|
+
|
|
7672
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7673
|
+
if (a.size !== b.size) return false;
|
|
7674
|
+
it = a.entries();
|
|
7675
|
+
while (!(i = it.next()).done)
|
|
7676
|
+
if (!b.has(i.value[0])) return false;
|
|
7677
|
+
return true;
|
|
7678
|
+
}
|
|
7679
|
+
// END: Modifications
|
|
7680
|
+
|
|
7681
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7682
|
+
length = a.length;
|
|
7683
|
+
if (length != b.length) return false;
|
|
7684
|
+
for (i = length; i-- !== 0;)
|
|
7685
|
+
if (a[i] !== b[i]) return false;
|
|
7686
|
+
return true;
|
|
7687
|
+
}
|
|
7688
|
+
|
|
7689
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7690
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7691
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7692
|
+
|
|
7693
|
+
keys = Object.keys(a);
|
|
7694
|
+
length = keys.length;
|
|
7695
|
+
if (length !== Object.keys(b).length) return false;
|
|
7696
|
+
|
|
7697
|
+
for (i = length; i-- !== 0;)
|
|
7698
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7699
|
+
// END: fast-deep-equal
|
|
7700
|
+
|
|
7701
|
+
// START: react-fast-compare
|
|
7702
|
+
// custom handling for DOM elements
|
|
7703
|
+
if (hasElementType && a instanceof Element) return false;
|
|
7704
|
+
|
|
7705
|
+
// custom handling for React/Preact
|
|
7706
|
+
for (i = length; i-- !== 0;) {
|
|
7707
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7708
|
+
// React-specific: avoid traversing React elements' _owner
|
|
7709
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7710
|
+
// __v = $_original / $_vnode
|
|
7711
|
+
// __o = $_owner
|
|
7712
|
+
// These properties contain circular references and are not needed when
|
|
7713
|
+
// comparing the actual elements (and not their owners)
|
|
7714
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7715
|
+
|
|
7716
|
+
continue;
|
|
7717
|
+
}
|
|
7718
|
+
|
|
7719
|
+
// all other properties should be traversed as usual
|
|
7720
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7721
|
+
}
|
|
7722
|
+
// END: react-fast-compare
|
|
7723
|
+
|
|
7724
|
+
// START: fast-deep-equal
|
|
7725
|
+
return true;
|
|
7726
|
+
}
|
|
7727
|
+
|
|
7728
|
+
return a !== a && b !== b;
|
|
7729
|
+
}
|
|
7730
|
+
// end fast-deep-equal
|
|
7731
|
+
|
|
7732
|
+
module.exports = function isEqual(a, b) {
|
|
7733
|
+
try {
|
|
7734
|
+
return equal(a, b);
|
|
7735
|
+
} catch (error) {
|
|
7736
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7737
|
+
// warn on circular references, don't crash
|
|
7738
|
+
// browsers give this different errors name and messages:
|
|
7739
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7740
|
+
// firefox: "InternalError", too much recursion"
|
|
7741
|
+
// edge: "Error", "Out of stack space"
|
|
7742
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7743
|
+
return false;
|
|
7744
|
+
}
|
|
7745
|
+
// some other error. we should definitely know about these
|
|
7746
|
+
throw error;
|
|
7747
|
+
}
|
|
7748
|
+
};
|
|
7749
|
+
|
|
7750
|
+
|
|
7750
7751
|
/***/ }),
|
|
7751
7752
|
|
|
7752
7753
|
/***/ "../../victory-core/es/victory-container/victory-container.js":
|
|
@@ -7758,7 +7759,7 @@ if (false) {} else {
|
|
|
7758
7759
|
"use strict";
|
|
7759
7760
|
__webpack_require__.r(__webpack_exports__);
|
|
7760
7761
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7761
|
-
/* harmony export */ "
|
|
7762
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
7762
7763
|
/* harmony export */ });
|
|
7763
7764
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7764
7765
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7786,12 +7787,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7786
7787
|
|
|
7787
7788
|
|
|
7788
7789
|
|
|
7789
|
-
function _extends() { _extends = Object.assign
|
|
7790
|
+
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); }
|
|
7790
7791
|
|
|
7791
7792
|
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; }
|
|
7792
7793
|
|
|
7793
7794
|
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; }
|
|
7794
7795
|
|
|
7796
|
+
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; }
|
|
7797
|
+
|
|
7795
7798
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7796
7799
|
|
|
7797
7800
|
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); } }
|
|
@@ -7800,7 +7803,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7800
7803
|
|
|
7801
7804
|
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); }
|
|
7802
7805
|
|
|
7803
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7806
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7804
7807
|
|
|
7805
7808
|
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); }; }
|
|
7806
7809
|
|
|
@@ -7810,10 +7813,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7810
7813
|
|
|
7811
7814
|
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; } }
|
|
7812
7815
|
|
|
7813
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7814
|
-
|
|
7815
|
-
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; }
|
|
7816
|
-
|
|
7816
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7817
7817
|
|
|
7818
7818
|
|
|
7819
7819
|
|
|
@@ -7828,13 +7828,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7828
7828
|
|
|
7829
7829
|
var _super = _createSuper(VictoryContainer);
|
|
7830
7830
|
|
|
7831
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7832
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7831
7833
|
function VictoryContainer(props) {
|
|
7832
7834
|
var _this;
|
|
7833
7835
|
|
|
7834
7836
|
_classCallCheck(this, VictoryContainer);
|
|
7835
7837
|
|
|
7836
7838
|
_this = _super.call(this, props);
|
|
7837
|
-
_this.containerId =
|
|
7839
|
+
_this.containerId = void 0;
|
|
7840
|
+
_this.portalRef = void 0;
|
|
7841
|
+
_this.containerRef = void 0;
|
|
7842
|
+
_this.shouldHandleWheel = void 0;
|
|
7838
7843
|
|
|
7839
7844
|
_this.savePortalRef = function (portal) {
|
|
7840
7845
|
_this.portalRef = portal;
|
|
@@ -7853,18 +7858,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7853
7858
|
return _this.portalRef.portalDeregister(key);
|
|
7854
7859
|
};
|
|
7855
7860
|
|
|
7856
|
-
_this.saveContainerRef =
|
|
7861
|
+
_this.saveContainerRef = function (container) {
|
|
7862
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
7863
|
+
_this.props.containerRef(container);
|
|
7864
|
+
}
|
|
7865
|
+
|
|
7857
7866
|
_this.containerRef = container;
|
|
7858
7867
|
return container;
|
|
7859
7868
|
};
|
|
7860
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
7861
7869
|
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
};
|
|
7866
|
-
}
|
|
7870
|
+
_this.handleWheel = function (e) {
|
|
7871
|
+
return e.preventDefault();
|
|
7872
|
+
};
|
|
7867
7873
|
|
|
7874
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
7875
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
7868
7876
|
return _this;
|
|
7869
7877
|
}
|
|
7870
7878
|
|
|
@@ -7957,7 +7965,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7957
7965
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
7958
7966
|
style: portalSvgStyle
|
|
7959
7967
|
};
|
|
7960
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__
|
|
7968
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
7961
7969
|
value: {
|
|
7962
7970
|
portalUpdate: this.portalUpdate,
|
|
7963
7971
|
portalRegister: this.portalRegister,
|
|
@@ -8012,12 +8020,9 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
8012
8020
|
|
|
8013
8021
|
return VictoryContainer;
|
|
8014
8022
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
_defineProperty(VictoryContainer, "role", "container");
|
|
8019
|
-
|
|
8020
|
-
_defineProperty(VictoryContainer, "propTypes", {
|
|
8023
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
8024
|
+
VictoryContainer.role = "container";
|
|
8025
|
+
VictoryContainer.propTypes = {
|
|
8021
8026
|
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8022
8027
|
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8023
8028
|
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)]),
|
|
@@ -8046,19 +8051,15 @@ _defineProperty(VictoryContainer, "propTypes", {
|
|
|
8046
8051
|
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
8047
8052
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
8048
8053
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
8049
|
-
}
|
|
8050
|
-
|
|
8051
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
8054
|
+
};
|
|
8055
|
+
VictoryContainer.defaultProps = {
|
|
8052
8056
|
className: "VictoryContainer",
|
|
8053
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
8057
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
8054
8058
|
portalZIndex: 99,
|
|
8055
8059
|
responsive: true,
|
|
8056
8060
|
role: "img"
|
|
8057
|
-
}
|
|
8058
|
-
|
|
8059
|
-
_defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"]);
|
|
8060
|
-
|
|
8061
|
-
|
|
8061
|
+
};
|
|
8062
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
8062
8063
|
|
|
8063
8064
|
/***/ }),
|
|
8064
8065
|
|
|
@@ -8071,7 +8072,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
8071
8072
|
"use strict";
|
|
8072
8073
|
__webpack_require__.r(__webpack_exports__);
|
|
8073
8074
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8074
|
-
/* harmony export */ "
|
|
8075
|
+
/* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
|
|
8075
8076
|
/* harmony export */ });
|
|
8076
8077
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
8077
8078
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8621,6 +8622,7 @@ var VictoryLabel = function (props) {
|
|
|
8621
8622
|
fontSize: currentStyle.fontSize || defaultStyles.fontSize,
|
|
8622
8623
|
capHeight: capHeightPx,
|
|
8623
8624
|
text: line,
|
|
8625
|
+
// @ts-expect-error TODO: This looks like a bug:
|
|
8624
8626
|
textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
|
|
8625
8627
|
lineHeight: currentLineHeight,
|
|
8626
8628
|
backgroundPadding: getSingleValue(backgroundPadding, i)
|
|
@@ -8632,12 +8634,11 @@ var VictoryLabel = function (props) {
|
|
|
8632
8634
|
var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
|
|
8633
8635
|
var children = [backgroundElement, label];
|
|
8634
8636
|
var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
|
|
8635
|
-
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__
|
|
8637
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
|
|
8636
8638
|
}
|
|
8637
8639
|
|
|
8638
|
-
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__
|
|
8640
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
|
|
8639
8641
|
};
|
|
8640
|
-
|
|
8641
8642
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8642
8643
|
VictoryLabel.role = "label";
|
|
8643
8644
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
@@ -8652,6 +8653,7 @@ VictoryLabel.propTypes = {
|
|
|
8652
8653
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
8653
8654
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
8654
8655
|
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
|
|
8656
|
+
// @ts-expect-error "Function is not assignable to string"
|
|
8655
8657
|
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)]),
|
|
8656
8658
|
direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
8657
8659
|
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)]),
|
|
@@ -8663,6 +8665,7 @@ VictoryLabel.propTypes = {
|
|
|
8663
8665
|
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8664
8666
|
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
8665
8667
|
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)]),
|
|
8668
|
+
// @ts-expect-error "x is required in origin"
|
|
8666
8669
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
8667
8670
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
|
|
8668
8671
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
|
|
@@ -8676,26 +8679,29 @@ VictoryLabel.propTypes = {
|
|
|
8676
8679
|
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)]),
|
|
8677
8680
|
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)]),
|
|
8678
8681
|
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)]),
|
|
8682
|
+
// @ts-expect-error Function is not assignable to string"
|
|
8679
8683
|
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)]),
|
|
8680
8684
|
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8681
8685
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
8682
8686
|
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)]),
|
|
8683
8687
|
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8688
|
+
// @ts-expect-error Function is not assignable to string"
|
|
8684
8689
|
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)]),
|
|
8690
|
+
// @ts-expect-error Number is not assignable to string
|
|
8685
8691
|
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)]),
|
|
8692
|
+
// @ts-expect-error Number is not assignable to string
|
|
8686
8693
|
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)])
|
|
8687
8694
|
};
|
|
8688
8695
|
VictoryLabel.defaultProps = {
|
|
8689
|
-
backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__
|
|
8696
|
+
backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
|
|
8690
8697
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
8691
8698
|
direction: "inherit",
|
|
8692
|
-
textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__
|
|
8693
|
-
tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__
|
|
8699
|
+
textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
|
|
8700
|
+
tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
|
|
8694
8701
|
capHeight: 0.71,
|
|
8695
8702
|
// Magic number from d3.
|
|
8696
8703
|
lineHeight: 1
|
|
8697
8704
|
};
|
|
8698
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (VictoryLabel);
|
|
8699
8705
|
|
|
8700
8706
|
/***/ }),
|
|
8701
8707
|
|
|
@@ -8708,19 +8714,18 @@ VictoryLabel.defaultProps = {
|
|
|
8708
8714
|
"use strict";
|
|
8709
8715
|
__webpack_require__.r(__webpack_exports__);
|
|
8710
8716
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8711
|
-
/* harmony export */ "
|
|
8717
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
8712
8718
|
/* harmony export */ });
|
|
8713
8719
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8714
8720
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8715
8721
|
|
|
8722
|
+
|
|
8716
8723
|
/**
|
|
8717
8724
|
* The React context object consumers may use to access the context of the
|
|
8718
8725
|
* portal.
|
|
8719
8726
|
*/
|
|
8720
|
-
|
|
8721
8727
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
8722
8728
|
PortalContext.displayName = "PortalContext";
|
|
8723
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PortalContext);
|
|
8724
8729
|
|
|
8725
8730
|
/***/ }),
|
|
8726
8731
|
|
|
@@ -8733,7 +8738,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
8733
8738
|
"use strict";
|
|
8734
8739
|
__webpack_require__.r(__webpack_exports__);
|
|
8735
8740
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8736
|
-
/* harmony export */ "
|
|
8741
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
8737
8742
|
/* harmony export */ });
|
|
8738
8743
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
8739
8744
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8752,7 +8757,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8752
8757
|
|
|
8753
8758
|
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); }
|
|
8754
8759
|
|
|
8755
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8760
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8756
8761
|
|
|
8757
8762
|
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); }; }
|
|
8758
8763
|
|
|
@@ -8762,10 +8767,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8762
8767
|
|
|
8763
8768
|
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; } }
|
|
8764
8769
|
|
|
8765
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8766
|
-
|
|
8767
|
-
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; }
|
|
8768
|
-
|
|
8770
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8769
8771
|
|
|
8770
8772
|
|
|
8771
8773
|
|
|
@@ -8781,32 +8783,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8781
8783
|
_classCallCheck(this, Portal);
|
|
8782
8784
|
|
|
8783
8785
|
_this = _super.call(this, props);
|
|
8786
|
+
_this.map = void 0;
|
|
8787
|
+
_this.index = void 0;
|
|
8788
|
+
|
|
8789
|
+
_this.portalRegister = function () {
|
|
8790
|
+
return ++_this.index;
|
|
8791
|
+
};
|
|
8792
|
+
|
|
8793
|
+
_this.portalUpdate = function (key, element) {
|
|
8794
|
+
_this.map[key] = element;
|
|
8795
|
+
|
|
8796
|
+
_this.forceUpdate();
|
|
8797
|
+
};
|
|
8798
|
+
|
|
8799
|
+
_this.portalDeregister = function (key) {
|
|
8800
|
+
delete _this.map[key];
|
|
8801
|
+
|
|
8802
|
+
_this.forceUpdate();
|
|
8803
|
+
};
|
|
8804
|
+
|
|
8784
8805
|
_this.map = {};
|
|
8785
8806
|
_this.index = 1;
|
|
8786
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
8787
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
8788
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
8789
8807
|
return _this;
|
|
8790
8808
|
}
|
|
8791
8809
|
|
|
8792
8810
|
_createClass(Portal, [{
|
|
8793
|
-
key: "portalRegister",
|
|
8794
|
-
value: function portalRegister() {
|
|
8795
|
-
return ++this.index;
|
|
8796
|
-
}
|
|
8797
|
-
}, {
|
|
8798
|
-
key: "portalUpdate",
|
|
8799
|
-
value: function portalUpdate(key, element) {
|
|
8800
|
-
this.map[key] = element;
|
|
8801
|
-
this.forceUpdate();
|
|
8802
|
-
}
|
|
8803
|
-
}, {
|
|
8804
|
-
key: "portalDeregister",
|
|
8805
|
-
value: function portalDeregister(key) {
|
|
8806
|
-
delete this.map[key];
|
|
8807
|
-
this.forceUpdate();
|
|
8808
|
-
}
|
|
8809
|
-
}, {
|
|
8810
8811
|
key: "getChildren",
|
|
8811
8812
|
value: function getChildren() {
|
|
8812
8813
|
var _this2 = this;
|
|
@@ -8828,18 +8829,14 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8828
8829
|
|
|
8829
8830
|
return Portal;
|
|
8830
8831
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
_defineProperty(Portal, "propTypes", {
|
|
8832
|
+
Portal.displayName = "Portal";
|
|
8833
|
+
Portal.propTypes = {
|
|
8835
8834
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8836
8835
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
8837
8836
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
8838
8837
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8839
8838
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
8840
|
-
}
|
|
8841
|
-
|
|
8842
|
-
|
|
8839
|
+
};
|
|
8843
8840
|
|
|
8844
8841
|
/***/ }),
|
|
8845
8842
|
|
|
@@ -8852,7 +8849,7 @@ _defineProperty(Portal, "propTypes", {
|
|
|
8852
8849
|
"use strict";
|
|
8853
8850
|
__webpack_require__.r(__webpack_exports__);
|
|
8854
8851
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8855
|
-
/* harmony export */ "
|
|
8852
|
+
/* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
|
|
8856
8853
|
/* harmony export */ });
|
|
8857
8854
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
8858
8855
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8873,7 +8870,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8873
8870
|
|
|
8874
8871
|
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); }
|
|
8875
8872
|
|
|
8876
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8873
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8877
8874
|
|
|
8878
8875
|
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); }; }
|
|
8879
8876
|
|
|
@@ -8883,10 +8880,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8883
8880
|
|
|
8884
8881
|
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; } }
|
|
8885
8882
|
|
|
8886
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8887
|
-
|
|
8888
|
-
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; }
|
|
8889
|
-
|
|
8883
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8890
8884
|
|
|
8891
8885
|
|
|
8892
8886
|
|
|
@@ -8899,9 +8893,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8899
8893
|
var _super = _createSuper(VictoryPortal);
|
|
8900
8894
|
|
|
8901
8895
|
function VictoryPortal() {
|
|
8896
|
+
var _this;
|
|
8897
|
+
|
|
8902
8898
|
_classCallCheck(this, VictoryPortal);
|
|
8903
8899
|
|
|
8904
|
-
|
|
8900
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8901
|
+
args[_key] = arguments[_key];
|
|
8902
|
+
}
|
|
8903
|
+
|
|
8904
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
8905
|
+
_this.checkedContext = void 0;
|
|
8906
|
+
_this.renderInPlace = void 0;
|
|
8907
|
+
_this.element = void 0;
|
|
8908
|
+
_this.portalKey = void 0;
|
|
8909
|
+
return _this;
|
|
8905
8910
|
}
|
|
8906
8911
|
|
|
8907
8912
|
_createClass(VictoryPortal, [{
|
|
@@ -8965,23 +8970,16 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8965
8970
|
|
|
8966
8971
|
return VictoryPortal;
|
|
8967
8972
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
_defineProperty(VictoryPortal, "role", "portal");
|
|
8972
|
-
|
|
8973
|
-
_defineProperty(VictoryPortal, "propTypes", {
|
|
8973
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
8974
|
+
VictoryPortal.role = "portal";
|
|
8975
|
+
VictoryPortal.propTypes = {
|
|
8974
8976
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
8975
8977
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
8976
|
-
}
|
|
8977
|
-
|
|
8978
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
8978
|
+
};
|
|
8979
|
+
VictoryPortal.defaultProps = {
|
|
8979
8980
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
8980
|
-
}
|
|
8981
|
-
|
|
8982
|
-
_defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
|
8983
|
-
|
|
8984
|
-
|
|
8981
|
+
};
|
|
8982
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
8985
8983
|
|
|
8986
8984
|
/***/ }),
|
|
8987
8985
|
|
|
@@ -8994,7 +8992,7 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
|
|
|
8994
8992
|
"use strict";
|
|
8995
8993
|
__webpack_require__.r(__webpack_exports__);
|
|
8996
8994
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8997
|
-
/* harmony export */ "
|
|
8995
|
+
/* harmony export */ "Path": () => (/* binding */ Path)
|
|
8998
8996
|
/* harmony export */ });
|
|
8999
8997
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9000
8998
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9005,17 +9003,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9005
9003
|
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; }
|
|
9006
9004
|
|
|
9007
9005
|
|
|
9008
|
-
|
|
9009
9006
|
var Path = function (props) {
|
|
9010
9007
|
// eslint-disable-next-line react/prop-types
|
|
9011
9008
|
var desc = props.desc,
|
|
9012
9009
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9013
9010
|
|
|
9014
|
-
return desc ?
|
|
9011
|
+
return desc ?
|
|
9012
|
+
/*#__PURE__*/
|
|
9013
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9014
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9015
|
+
/*#__PURE__*/
|
|
9016
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9017
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
9015
9018
|
};
|
|
9016
9019
|
|
|
9017
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
|
|
9018
|
-
|
|
9019
9020
|
/***/ }),
|
|
9020
9021
|
|
|
9021
9022
|
/***/ "../../victory-core/es/victory-primitives/rect.js":
|
|
@@ -9027,34 +9028,37 @@ var Path = function (props) {
|
|
|
9027
9028
|
"use strict";
|
|
9028
9029
|
__webpack_require__.r(__webpack_exports__);
|
|
9029
9030
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9030
|
-
/* harmony export */ "
|
|
9031
|
+
/* harmony export */ "Rect": () => (/* binding */ Rect)
|
|
9031
9032
|
/* harmony export */ });
|
|
9032
9033
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9033
9034
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9034
9035
|
var _excluded = ["desc"];
|
|
9035
9036
|
|
|
9036
|
-
function _extends() { _extends = Object.assign
|
|
9037
|
+
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); }
|
|
9037
9038
|
|
|
9038
9039
|
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; }
|
|
9039
9040
|
|
|
9040
9041
|
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; }
|
|
9041
9042
|
|
|
9042
9043
|
|
|
9043
|
-
|
|
9044
9044
|
var Rect = function (props) {
|
|
9045
9045
|
// eslint-disable-next-line react/prop-types
|
|
9046
9046
|
var desc = props.desc,
|
|
9047
9047
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9048
9048
|
|
|
9049
|
-
return desc ?
|
|
9049
|
+
return desc ?
|
|
9050
|
+
/*#__PURE__*/
|
|
9051
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9052
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9050
9053
|
vectorEffect: "non-scaling-stroke"
|
|
9051
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9054
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9055
|
+
/*#__PURE__*/
|
|
9056
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9057
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9052
9058
|
vectorEffect: "non-scaling-stroke"
|
|
9053
9059
|
}, rest));
|
|
9054
9060
|
};
|
|
9055
9061
|
|
|
9056
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
|
|
9057
|
-
|
|
9058
9062
|
/***/ }),
|
|
9059
9063
|
|
|
9060
9064
|
/***/ "../../victory-core/es/victory-primitives/text.js":
|
|
@@ -9066,7 +9070,7 @@ var Rect = function (props) {
|
|
|
9066
9070
|
"use strict";
|
|
9067
9071
|
__webpack_require__.r(__webpack_exports__);
|
|
9068
9072
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9069
|
-
/* harmony export */ "
|
|
9073
|
+
/* harmony export */ "Text": () => (/* binding */ Text)
|
|
9070
9074
|
/* harmony export */ });
|
|
9071
9075
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9072
9076
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9080,22 +9084,23 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
9080
9084
|
|
|
9081
9085
|
|
|
9082
9086
|
|
|
9083
|
-
|
|
9084
9087
|
var Text = function (props) {
|
|
9085
9088
|
var children = props.children,
|
|
9086
9089
|
title = props.title,
|
|
9087
9090
|
desc = props.desc,
|
|
9088
9091
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9089
9092
|
|
|
9090
|
-
return
|
|
9093
|
+
return (
|
|
9094
|
+
/*#__PURE__*/
|
|
9095
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9096
|
+
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)
|
|
9097
|
+
);
|
|
9091
9098
|
};
|
|
9092
|
-
|
|
9093
9099
|
Text.propTypes = {
|
|
9094
9100
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
9095
9101
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
9096
9102
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
9097
9103
|
};
|
|
9098
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Text);
|
|
9099
9104
|
|
|
9100
9105
|
/***/ }),
|
|
9101
9106
|
|
|
@@ -9108,18 +9113,19 @@ Text.propTypes = {
|
|
|
9108
9113
|
"use strict";
|
|
9109
9114
|
__webpack_require__.r(__webpack_exports__);
|
|
9110
9115
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9111
|
-
/* harmony export */ "
|
|
9116
|
+
/* harmony export */ "TSpan": () => (/* binding */ TSpan)
|
|
9112
9117
|
/* harmony export */ });
|
|
9113
9118
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9114
9119
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9115
9120
|
|
|
9116
|
-
|
|
9117
9121
|
var TSpan = function (props) {
|
|
9118
|
-
return
|
|
9122
|
+
return (
|
|
9123
|
+
/*#__PURE__*/
|
|
9124
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9125
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
9126
|
+
);
|
|
9119
9127
|
};
|
|
9120
9128
|
|
|
9121
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
|
|
9122
|
-
|
|
9123
9129
|
/***/ }),
|
|
9124
9130
|
|
|
9125
9131
|
/***/ "../../victory-core/es/victory-theme/grayscale.js":
|
|
@@ -9131,7 +9137,7 @@ var TSpan = function (props) {
|
|
|
9131
9137
|
"use strict";
|
|
9132
9138
|
__webpack_require__.r(__webpack_exports__);
|
|
9133
9139
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9134
|
-
/* harmony export */ "
|
|
9140
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
9135
9141
|
/* harmony export */ });
|
|
9136
9142
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9137
9143
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9178,7 +9184,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9178
9184
|
|
|
9179
9185
|
var strokeLinecap = "round";
|
|
9180
9186
|
var strokeLinejoin = "round";
|
|
9181
|
-
|
|
9187
|
+
var grayscale = {
|
|
9182
9188
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9183
9189
|
style: {
|
|
9184
9190
|
data: {
|
|
@@ -9393,7 +9399,7 @@ var strokeLinejoin = "round";
|
|
|
9393
9399
|
}
|
|
9394
9400
|
}
|
|
9395
9401
|
}, baseProps)
|
|
9396
|
-
}
|
|
9402
|
+
};
|
|
9397
9403
|
|
|
9398
9404
|
/***/ }),
|
|
9399
9405
|
|
|
@@ -9406,7 +9412,7 @@ var strokeLinejoin = "round";
|
|
|
9406
9412
|
"use strict";
|
|
9407
9413
|
__webpack_require__.r(__webpack_exports__);
|
|
9408
9414
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9409
|
-
/* harmony export */ "
|
|
9415
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
9410
9416
|
/* harmony export */ });
|
|
9411
9417
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9412
9418
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9463,7 +9469,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9463
9469
|
var strokeDasharray = "10, 5";
|
|
9464
9470
|
var strokeLinecap = "round";
|
|
9465
9471
|
var strokeLinejoin = "round";
|
|
9466
|
-
|
|
9472
|
+
var material = {
|
|
9467
9473
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9468
9474
|
style: {
|
|
9469
9475
|
data: {
|
|
@@ -9695,7 +9701,7 @@ var strokeLinejoin = "round";
|
|
|
9695
9701
|
}
|
|
9696
9702
|
}
|
|
9697
9703
|
}, baseProps)
|
|
9698
|
-
}
|
|
9704
|
+
};
|
|
9699
9705
|
|
|
9700
9706
|
/***/ }),
|
|
9701
9707
|
|
|
@@ -9708,16 +9714,17 @@ var strokeLinejoin = "round";
|
|
|
9708
9714
|
"use strict";
|
|
9709
9715
|
__webpack_require__.r(__webpack_exports__);
|
|
9710
9716
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9711
|
-
/* harmony export */ "
|
|
9717
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
9712
9718
|
/* harmony export */ });
|
|
9713
|
-
/* harmony import */ var
|
|
9714
|
-
/* harmony import */ var
|
|
9719
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
9720
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
9715
9721
|
|
|
9716
9722
|
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
grayscale:
|
|
9720
|
-
|
|
9723
|
+
|
|
9724
|
+
var VictoryTheme = {
|
|
9725
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
9726
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
9727
|
+
};
|
|
9721
9728
|
|
|
9722
9729
|
/***/ }),
|
|
9723
9730
|
|
|
@@ -9751,8 +9758,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9751
9758
|
|
|
9752
9759
|
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; }
|
|
9753
9760
|
|
|
9754
|
-
/* eslint-disable func-style */
|
|
9755
|
-
|
|
9756
9761
|
/* eslint-disable no-use-before-define */
|
|
9757
9762
|
function isNonEmptyArray(collection) {
|
|
9758
9763
|
return Array.isArray(collection) && collection.length > 0;
|
|
@@ -10019,8 +10024,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10019
10024
|
|
|
10020
10025
|
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; }
|
|
10021
10026
|
|
|
10022
|
-
/* eslint-disable func-style */
|
|
10023
|
-
|
|
10024
10027
|
/* eslint-disable no-use-before-define */
|
|
10025
10028
|
|
|
10026
10029
|
|
|
@@ -10505,8 +10508,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10505
10508
|
|
|
10506
10509
|
|
|
10507
10510
|
|
|
10508
|
-
/* eslint-disable func-style */
|
|
10509
|
-
|
|
10510
10511
|
/* eslint-disable no-use-before-define */
|
|
10511
10512
|
|
|
10512
10513
|
|
|
@@ -10870,7 +10871,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10870
10871
|
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
10871
10872
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
10872
10873
|
/* harmony export */ });
|
|
10873
|
-
/* eslint-disable func-style */
|
|
10874
10874
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
10875
10875
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
10876
10876
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -10924,8 +10924,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10924
10924
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10925
10925
|
|
|
10926
10926
|
|
|
10927
|
-
/* eslint-disable func-style */
|
|
10928
|
-
|
|
10929
10927
|
/* eslint-disable no-use-before-define */
|
|
10930
10928
|
|
|
10931
10929
|
|
|
@@ -11177,7 +11175,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11177
11175
|
|
|
11178
11176
|
/* eslint-disable no-console */
|
|
11179
11177
|
// TODO: Use "warning" npm module like React is switching to.
|
|
11180
|
-
// eslint-disable-next-line func-style
|
|
11181
11178
|
function warn(message) {
|
|
11182
11179
|
if (true) {
|
|
11183
11180
|
if (console && console.warn) {
|
|
@@ -11651,8 +11648,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11651
11648
|
/* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
|
|
11652
11649
|
/* harmony export */ });
|
|
11653
11650
|
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
11654
|
-
/* eslint-disable func-style */
|
|
11655
|
-
|
|
11656
11651
|
/* eslint-disable no-use-before-define */
|
|
11657
11652
|
// Private Functions
|
|
11658
11653
|
|
|
@@ -11772,8 +11767,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11772
11767
|
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
11773
11768
|
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
11774
11769
|
/* harmony export */ });
|
|
11775
|
-
/* eslint-disable func-style */
|
|
11776
|
-
|
|
11777
11770
|
/**
|
|
11778
11771
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
11779
11772
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -12190,11 +12183,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
12190
12183
|
|
|
12191
12184
|
var Timer = /*#__PURE__*/function () {
|
|
12192
12185
|
function Timer() {
|
|
12186
|
+
var _this = this;
|
|
12187
|
+
|
|
12193
12188
|
_classCallCheck(this, Timer);
|
|
12194
12189
|
|
|
12190
|
+
this.shouldAnimate = void 0;
|
|
12191
|
+
this.subscribers = void 0;
|
|
12192
|
+
this.activeSubscriptions = void 0;
|
|
12193
|
+
this.timer = void 0;
|
|
12194
|
+
|
|
12195
|
+
this.loop = function () {
|
|
12196
|
+
_this.subscribers.forEach(function (s) {
|
|
12197
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
12198
|
+
});
|
|
12199
|
+
};
|
|
12200
|
+
|
|
12195
12201
|
this.shouldAnimate = true;
|
|
12196
12202
|
this.subscribers = [];
|
|
12197
|
-
this.loop = this.loop.bind(this);
|
|
12198
12203
|
this.timer = null;
|
|
12199
12204
|
this.activeSubscriptions = 0;
|
|
12200
12205
|
}
|
|
@@ -12209,13 +12214,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12209
12214
|
value: function resumeAnimation() {
|
|
12210
12215
|
this.shouldAnimate = true;
|
|
12211
12216
|
}
|
|
12212
|
-
}, {
|
|
12213
|
-
key: "loop",
|
|
12214
|
-
value: function loop() {
|
|
12215
|
-
this.subscribers.forEach(function (s) {
|
|
12216
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
12217
|
-
});
|
|
12218
|
-
}
|
|
12219
12217
|
}, {
|
|
12220
12218
|
key: "start",
|
|
12221
12219
|
value: function start() {
|
|
@@ -12538,7 +12536,7 @@ Flyout.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTE
|
|
|
12538
12536
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
12539
12537
|
});
|
|
12540
12538
|
Flyout.defaultProps = {
|
|
12541
|
-
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__
|
|
12539
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Path, null),
|
|
12542
12540
|
role: "presentation",
|
|
12543
12541
|
shapeRendering: "auto"
|
|
12544
12542
|
};
|
|
@@ -12605,7 +12603,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
12605
12603
|
|
|
12606
12604
|
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); }
|
|
12607
12605
|
|
|
12608
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
12606
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12609
12607
|
|
|
12610
12608
|
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); }; }
|
|
12611
12609
|
|
|
@@ -12615,9 +12613,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
12615
12613
|
|
|
12616
12614
|
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; } }
|
|
12617
12615
|
|
|
12618
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12619
|
-
|
|
12620
|
-
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; }
|
|
12616
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12621
12617
|
|
|
12622
12618
|
|
|
12623
12619
|
|
|
@@ -12690,7 +12686,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12690
12686
|
}, {
|
|
12691
12687
|
key: "getStyles",
|
|
12692
12688
|
value: function getStyles(props) {
|
|
12693
|
-
var theme = props.theme || victory_core__WEBPACK_IMPORTED_MODULE_7__
|
|
12689
|
+
var theme = props.theme || victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryTheme.grayscale;
|
|
12694
12690
|
var defaultLabelStyles = theme && theme.tooltip && theme.tooltip.style ? theme.tooltip.style : {};
|
|
12695
12691
|
var baseLabelStyle = Array.isArray(props.style) ? props.style.map(function (s) {
|
|
12696
12692
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, s, defaultLabelStyles);
|
|
@@ -13069,7 +13065,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
13069
13065
|
var renderInPortal = props.renderInPortal;
|
|
13070
13066
|
|
|
13071
13067
|
if (!active) {
|
|
13072
|
-
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__
|
|
13068
|
+
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, null) : null;
|
|
13073
13069
|
}
|
|
13074
13070
|
|
|
13075
13071
|
var evaluatedProps = this.getEvaluatedProps(props);
|
|
@@ -13082,7 +13078,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
13082
13078
|
role: "presentation",
|
|
13083
13079
|
transform: calculatedValues.transform
|
|
13084
13080
|
}, children);
|
|
13085
|
-
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__
|
|
13081
|
+
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, tooltip) : tooltip;
|
|
13086
13082
|
}
|
|
13087
13083
|
}, {
|
|
13088
13084
|
key: "render",
|
|
@@ -13095,11 +13091,9 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
13095
13091
|
return VictoryTooltip;
|
|
13096
13092
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
13097
13093
|
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
-
_defineProperty(VictoryTooltip, "propTypes", {
|
|
13094
|
+
VictoryTooltip.displayName = "VictoryTooltip";
|
|
13095
|
+
VictoryTooltip.role = "tooltip";
|
|
13096
|
+
VictoryTooltip.propTypes = {
|
|
13103
13097
|
activateData: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
13104
13098
|
active: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
13105
13099
|
activePoints: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
@@ -13151,17 +13145,16 @@ _defineProperty(VictoryTooltip, "propTypes", {
|
|
|
13151
13145
|
width: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13152
13146
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13153
13147
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number)
|
|
13154
|
-
}
|
|
13155
|
-
|
|
13156
|
-
_defineProperty(VictoryTooltip, "defaultProps", {
|
|
13148
|
+
};
|
|
13149
|
+
VictoryTooltip.defaultProps = {
|
|
13157
13150
|
active: false,
|
|
13158
13151
|
renderInPortal: true,
|
|
13159
|
-
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__
|
|
13152
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__.VictoryLabel, null),
|
|
13160
13153
|
flyoutComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_flyout__WEBPACK_IMPORTED_MODULE_14__["default"], null),
|
|
13161
13154
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("g", null)
|
|
13162
|
-
}
|
|
13155
|
+
};
|
|
13163
13156
|
|
|
13164
|
-
|
|
13157
|
+
VictoryTooltip.defaultEvents = function (props) {
|
|
13165
13158
|
var activate = props.activateData ? [{
|
|
13166
13159
|
target: "labels",
|
|
13167
13160
|
mutation: function () {
|
|
@@ -13229,7 +13222,7 @@ _defineProperty(VictoryTooltip, "defaultEvents", function (props) {
|
|
|
13229
13222
|
}
|
|
13230
13223
|
}
|
|
13231
13224
|
}];
|
|
13232
|
-
}
|
|
13225
|
+
};
|
|
13233
13226
|
|
|
13234
13227
|
|
|
13235
13228
|
|