victory-voronoi-container 36.4.1 → 36.5.2
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-voronoi-container.js +485 -437
- package/dist/victory-voronoi-container.min.js +1 -1
- package/es/index.js +2 -1
- package/es/victory-voronoi-container.js +11 -9
- package/es/voronoi-helpers.js +2 -1
- package/lib/index.js +2 -1
- package/lib/victory-voronoi-container.js +10 -9
- package/lib/voronoi-helpers.js +2 -1
- package/package.json +5 -5
- package/src/index.js +1 -1
- package/src/victory-voronoi-container.js +21 -20
- package/src/voronoi-helpers.js +18 -18
|
@@ -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,16 @@ _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
|
-
|
|
8060
|
-
|
|
8061
|
-
|
|
8061
|
+
};
|
|
8062
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
8063
|
+
//# sourceMappingURL=victory-container.js.map
|
|
8062
8064
|
|
|
8063
8065
|
/***/ }),
|
|
8064
8066
|
|
|
@@ -8071,7 +8073,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
8071
8073
|
"use strict";
|
|
8072
8074
|
__webpack_require__.r(__webpack_exports__);
|
|
8073
8075
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8074
|
-
/* harmony export */ "
|
|
8076
|
+
/* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
|
|
8075
8077
|
/* harmony export */ });
|
|
8076
8078
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
8077
8079
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8621,6 +8623,7 @@ var VictoryLabel = function (props) {
|
|
|
8621
8623
|
fontSize: currentStyle.fontSize || defaultStyles.fontSize,
|
|
8622
8624
|
capHeight: capHeightPx,
|
|
8623
8625
|
text: line,
|
|
8626
|
+
// @ts-expect-error TODO: This looks like a bug:
|
|
8624
8627
|
textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
|
|
8625
8628
|
lineHeight: currentLineHeight,
|
|
8626
8629
|
backgroundPadding: getSingleValue(backgroundPadding, i)
|
|
@@ -8632,12 +8635,11 @@ var VictoryLabel = function (props) {
|
|
|
8632
8635
|
var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
|
|
8633
8636
|
var children = [backgroundElement, label];
|
|
8634
8637
|
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__
|
|
8638
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
|
|
8636
8639
|
}
|
|
8637
8640
|
|
|
8638
|
-
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__
|
|
8641
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
|
|
8639
8642
|
};
|
|
8640
|
-
|
|
8641
8643
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8642
8644
|
VictoryLabel.role = "label";
|
|
8643
8645
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
@@ -8652,6 +8654,7 @@ VictoryLabel.propTypes = {
|
|
|
8652
8654
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
8653
8655
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
8654
8656
|
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
|
|
8657
|
+
// @ts-expect-error "Function is not assignable to string"
|
|
8655
8658
|
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
8659
|
direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
8657
8660
|
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)]),
|
|
@@ -8664,8 +8667,8 @@ VictoryLabel.propTypes = {
|
|
|
8664
8667
|
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
8665
8668
|
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)]),
|
|
8666
8669
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
8667
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
|
|
8668
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
|
|
8670
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
8671
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
8669
8672
|
}),
|
|
8670
8673
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8671
8674
|
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
@@ -8676,26 +8679,30 @@ 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
|
-
|
|
8705
|
+
//# sourceMappingURL=victory-label.js.map
|
|
8699
8706
|
|
|
8700
8707
|
/***/ }),
|
|
8701
8708
|
|
|
@@ -8708,19 +8715,19 @@ VictoryLabel.defaultProps = {
|
|
|
8708
8715
|
"use strict";
|
|
8709
8716
|
__webpack_require__.r(__webpack_exports__);
|
|
8710
8717
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8711
|
-
/* harmony export */ "
|
|
8718
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
8712
8719
|
/* harmony export */ });
|
|
8713
8720
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8714
8721
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8715
8722
|
|
|
8723
|
+
|
|
8716
8724
|
/**
|
|
8717
8725
|
* The React context object consumers may use to access the context of the
|
|
8718
8726
|
* portal.
|
|
8719
8727
|
*/
|
|
8720
|
-
|
|
8721
8728
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
8722
8729
|
PortalContext.displayName = "PortalContext";
|
|
8723
|
-
|
|
8730
|
+
//# sourceMappingURL=portal-context.js.map
|
|
8724
8731
|
|
|
8725
8732
|
/***/ }),
|
|
8726
8733
|
|
|
@@ -8733,7 +8740,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
8733
8740
|
"use strict";
|
|
8734
8741
|
__webpack_require__.r(__webpack_exports__);
|
|
8735
8742
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8736
|
-
/* harmony export */ "
|
|
8743
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
8737
8744
|
/* harmony export */ });
|
|
8738
8745
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
8739
8746
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8752,7 +8759,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8752
8759
|
|
|
8753
8760
|
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
8761
|
|
|
8755
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8762
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8756
8763
|
|
|
8757
8764
|
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
8765
|
|
|
@@ -8762,10 +8769,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8762
8769
|
|
|
8763
8770
|
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
8771
|
|
|
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
|
-
|
|
8772
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8769
8773
|
|
|
8770
8774
|
|
|
8771
8775
|
|
|
@@ -8781,32 +8785,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8781
8785
|
_classCallCheck(this, Portal);
|
|
8782
8786
|
|
|
8783
8787
|
_this = _super.call(this, props);
|
|
8788
|
+
_this.map = void 0;
|
|
8789
|
+
_this.index = void 0;
|
|
8790
|
+
|
|
8791
|
+
_this.portalRegister = function () {
|
|
8792
|
+
return ++_this.index;
|
|
8793
|
+
};
|
|
8794
|
+
|
|
8795
|
+
_this.portalUpdate = function (key, element) {
|
|
8796
|
+
_this.map[key] = element;
|
|
8797
|
+
|
|
8798
|
+
_this.forceUpdate();
|
|
8799
|
+
};
|
|
8800
|
+
|
|
8801
|
+
_this.portalDeregister = function (key) {
|
|
8802
|
+
delete _this.map[key];
|
|
8803
|
+
|
|
8804
|
+
_this.forceUpdate();
|
|
8805
|
+
};
|
|
8806
|
+
|
|
8784
8807
|
_this.map = {};
|
|
8785
8808
|
_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
8809
|
return _this;
|
|
8790
8810
|
}
|
|
8791
8811
|
|
|
8792
8812
|
_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
8813
|
key: "getChildren",
|
|
8811
8814
|
value: function getChildren() {
|
|
8812
8815
|
var _this2 = this;
|
|
@@ -8828,18 +8831,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8828
8831
|
|
|
8829
8832
|
return Portal;
|
|
8830
8833
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
_defineProperty(Portal, "propTypes", {
|
|
8834
|
+
Portal.displayName = "Portal";
|
|
8835
|
+
Portal.propTypes = {
|
|
8835
8836
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8836
8837
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
8837
8838
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
8838
8839
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8839
8840
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
8840
|
-
}
|
|
8841
|
-
|
|
8842
|
-
|
|
8841
|
+
};
|
|
8842
|
+
//# sourceMappingURL=portal.js.map
|
|
8843
8843
|
|
|
8844
8844
|
/***/ }),
|
|
8845
8845
|
|
|
@@ -8852,7 +8852,7 @@ _defineProperty(Portal, "propTypes", {
|
|
|
8852
8852
|
"use strict";
|
|
8853
8853
|
__webpack_require__.r(__webpack_exports__);
|
|
8854
8854
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8855
|
-
/* harmony export */ "
|
|
8855
|
+
/* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
|
|
8856
8856
|
/* harmony export */ });
|
|
8857
8857
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
8858
8858
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8873,7 +8873,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8873
8873
|
|
|
8874
8874
|
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
8875
|
|
|
8876
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8876
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8877
8877
|
|
|
8878
8878
|
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
8879
|
|
|
@@ -8883,10 +8883,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8883
8883
|
|
|
8884
8884
|
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
8885
|
|
|
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
|
-
|
|
8886
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8890
8887
|
|
|
8891
8888
|
|
|
8892
8889
|
|
|
@@ -8899,9 +8896,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8899
8896
|
var _super = _createSuper(VictoryPortal);
|
|
8900
8897
|
|
|
8901
8898
|
function VictoryPortal() {
|
|
8899
|
+
var _this;
|
|
8900
|
+
|
|
8902
8901
|
_classCallCheck(this, VictoryPortal);
|
|
8903
8902
|
|
|
8904
|
-
|
|
8903
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8904
|
+
args[_key] = arguments[_key];
|
|
8905
|
+
}
|
|
8906
|
+
|
|
8907
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
8908
|
+
_this.checkedContext = void 0;
|
|
8909
|
+
_this.renderInPlace = void 0;
|
|
8910
|
+
_this.element = void 0;
|
|
8911
|
+
_this.portalKey = void 0;
|
|
8912
|
+
return _this;
|
|
8905
8913
|
}
|
|
8906
8914
|
|
|
8907
8915
|
_createClass(VictoryPortal, [{
|
|
@@ -8965,23 +8973,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8965
8973
|
|
|
8966
8974
|
return VictoryPortal;
|
|
8967
8975
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
_defineProperty(VictoryPortal, "role", "portal");
|
|
8972
|
-
|
|
8973
|
-
_defineProperty(VictoryPortal, "propTypes", {
|
|
8976
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
8977
|
+
VictoryPortal.role = "portal";
|
|
8978
|
+
VictoryPortal.propTypes = {
|
|
8974
8979
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
8975
8980
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
8976
|
-
}
|
|
8977
|
-
|
|
8978
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
8981
|
+
};
|
|
8982
|
+
VictoryPortal.defaultProps = {
|
|
8979
8983
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
8980
|
-
}
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8984
|
+
};
|
|
8985
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
8986
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
8985
8987
|
|
|
8986
8988
|
/***/ }),
|
|
8987
8989
|
|
|
@@ -8994,7 +8996,7 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
|
|
|
8994
8996
|
"use strict";
|
|
8995
8997
|
__webpack_require__.r(__webpack_exports__);
|
|
8996
8998
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8997
|
-
/* harmony export */ "
|
|
8999
|
+
/* harmony export */ "Path": () => (/* binding */ Path)
|
|
8998
9000
|
/* harmony export */ });
|
|
8999
9001
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9000
9002
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9005,16 +9007,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
9005
9007
|
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
9008
|
|
|
9007
9009
|
|
|
9008
|
-
|
|
9009
9010
|
var Path = function (props) {
|
|
9010
9011
|
// eslint-disable-next-line react/prop-types
|
|
9011
9012
|
var desc = props.desc,
|
|
9012
9013
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9013
9014
|
|
|
9014
|
-
return desc ?
|
|
9015
|
+
return desc ?
|
|
9016
|
+
/*#__PURE__*/
|
|
9017
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9018
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9019
|
+
/*#__PURE__*/
|
|
9020
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9021
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
9015
9022
|
};
|
|
9016
|
-
|
|
9017
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
|
|
9023
|
+
//# sourceMappingURL=path.js.map
|
|
9018
9024
|
|
|
9019
9025
|
/***/ }),
|
|
9020
9026
|
|
|
@@ -9027,33 +9033,37 @@ var Path = function (props) {
|
|
|
9027
9033
|
"use strict";
|
|
9028
9034
|
__webpack_require__.r(__webpack_exports__);
|
|
9029
9035
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9030
|
-
/* harmony export */ "
|
|
9036
|
+
/* harmony export */ "Rect": () => (/* binding */ Rect)
|
|
9031
9037
|
/* harmony export */ });
|
|
9032
9038
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9033
9039
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9034
9040
|
var _excluded = ["desc"];
|
|
9035
9041
|
|
|
9036
|
-
function _extends() { _extends = Object.assign
|
|
9042
|
+
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
9043
|
|
|
9038
9044
|
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
9045
|
|
|
9040
9046
|
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
9047
|
|
|
9042
9048
|
|
|
9043
|
-
|
|
9044
9049
|
var Rect = function (props) {
|
|
9045
9050
|
// eslint-disable-next-line react/prop-types
|
|
9046
9051
|
var desc = props.desc,
|
|
9047
9052
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9048
9053
|
|
|
9049
|
-
return desc ?
|
|
9054
|
+
return desc ?
|
|
9055
|
+
/*#__PURE__*/
|
|
9056
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9057
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9050
9058
|
vectorEffect: "non-scaling-stroke"
|
|
9051
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9059
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
9060
|
+
/*#__PURE__*/
|
|
9061
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9062
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
9052
9063
|
vectorEffect: "non-scaling-stroke"
|
|
9053
9064
|
}, rest));
|
|
9054
9065
|
};
|
|
9055
|
-
|
|
9056
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
|
|
9066
|
+
//# sourceMappingURL=rect.js.map
|
|
9057
9067
|
|
|
9058
9068
|
/***/ }),
|
|
9059
9069
|
|
|
@@ -9066,7 +9076,7 @@ var Rect = function (props) {
|
|
|
9066
9076
|
"use strict";
|
|
9067
9077
|
__webpack_require__.r(__webpack_exports__);
|
|
9068
9078
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9069
|
-
/* harmony export */ "
|
|
9079
|
+
/* harmony export */ "Text": () => (/* binding */ Text)
|
|
9070
9080
|
/* harmony export */ });
|
|
9071
9081
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9072
9082
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9080,22 +9090,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
9080
9090
|
|
|
9081
9091
|
|
|
9082
9092
|
|
|
9083
|
-
|
|
9084
9093
|
var Text = function (props) {
|
|
9085
9094
|
var children = props.children,
|
|
9086
9095
|
title = props.title,
|
|
9087
9096
|
desc = props.desc,
|
|
9088
9097
|
rest = _objectWithoutProperties(props, _excluded);
|
|
9089
9098
|
|
|
9090
|
-
return
|
|
9099
|
+
return (
|
|
9100
|
+
/*#__PURE__*/
|
|
9101
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9102
|
+
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)
|
|
9103
|
+
);
|
|
9091
9104
|
};
|
|
9092
|
-
|
|
9093
9105
|
Text.propTypes = {
|
|
9094
9106
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
9095
9107
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
9096
9108
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
9097
9109
|
};
|
|
9098
|
-
|
|
9110
|
+
//# sourceMappingURL=text.js.map
|
|
9099
9111
|
|
|
9100
9112
|
/***/ }),
|
|
9101
9113
|
|
|
@@ -9108,17 +9120,19 @@ Text.propTypes = {
|
|
|
9108
9120
|
"use strict";
|
|
9109
9121
|
__webpack_require__.r(__webpack_exports__);
|
|
9110
9122
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9111
|
-
/* harmony export */ "
|
|
9123
|
+
/* harmony export */ "TSpan": () => (/* binding */ TSpan)
|
|
9112
9124
|
/* harmony export */ });
|
|
9113
9125
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
9114
9126
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
9115
9127
|
|
|
9116
|
-
|
|
9117
9128
|
var TSpan = function (props) {
|
|
9118
|
-
return
|
|
9129
|
+
return (
|
|
9130
|
+
/*#__PURE__*/
|
|
9131
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
9132
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
9133
|
+
);
|
|
9119
9134
|
};
|
|
9120
|
-
|
|
9121
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
|
|
9135
|
+
//# sourceMappingURL=tspan.js.map
|
|
9122
9136
|
|
|
9123
9137
|
/***/ }),
|
|
9124
9138
|
|
|
@@ -9131,7 +9145,7 @@ var TSpan = function (props) {
|
|
|
9131
9145
|
"use strict";
|
|
9132
9146
|
__webpack_require__.r(__webpack_exports__);
|
|
9133
9147
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9134
|
-
/* harmony export */ "
|
|
9148
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
9135
9149
|
/* harmony export */ });
|
|
9136
9150
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9137
9151
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9178,7 +9192,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9178
9192
|
|
|
9179
9193
|
var strokeLinecap = "round";
|
|
9180
9194
|
var strokeLinejoin = "round";
|
|
9181
|
-
|
|
9195
|
+
var grayscale = {
|
|
9182
9196
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9183
9197
|
style: {
|
|
9184
9198
|
data: {
|
|
@@ -9393,7 +9407,8 @@ var strokeLinejoin = "round";
|
|
|
9393
9407
|
}
|
|
9394
9408
|
}
|
|
9395
9409
|
}, baseProps)
|
|
9396
|
-
}
|
|
9410
|
+
};
|
|
9411
|
+
//# sourceMappingURL=grayscale.js.map
|
|
9397
9412
|
|
|
9398
9413
|
/***/ }),
|
|
9399
9414
|
|
|
@@ -9406,7 +9421,7 @@ var strokeLinejoin = "round";
|
|
|
9406
9421
|
"use strict";
|
|
9407
9422
|
__webpack_require__.r(__webpack_exports__);
|
|
9408
9423
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9409
|
-
/* harmony export */ "
|
|
9424
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
9410
9425
|
/* harmony export */ });
|
|
9411
9426
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9412
9427
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9463,7 +9478,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9463
9478
|
var strokeDasharray = "10, 5";
|
|
9464
9479
|
var strokeLinecap = "round";
|
|
9465
9480
|
var strokeLinejoin = "round";
|
|
9466
|
-
|
|
9481
|
+
var material = {
|
|
9467
9482
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9468
9483
|
style: {
|
|
9469
9484
|
data: {
|
|
@@ -9695,7 +9710,8 @@ var strokeLinejoin = "round";
|
|
|
9695
9710
|
}
|
|
9696
9711
|
}
|
|
9697
9712
|
}, baseProps)
|
|
9698
|
-
}
|
|
9713
|
+
};
|
|
9714
|
+
//# sourceMappingURL=material.js.map
|
|
9699
9715
|
|
|
9700
9716
|
/***/ }),
|
|
9701
9717
|
|
|
@@ -9708,16 +9724,18 @@ var strokeLinejoin = "round";
|
|
|
9708
9724
|
"use strict";
|
|
9709
9725
|
__webpack_require__.r(__webpack_exports__);
|
|
9710
9726
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9711
|
-
/* harmony export */ "
|
|
9727
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
9712
9728
|
/* harmony export */ });
|
|
9713
|
-
/* harmony import */ var
|
|
9714
|
-
/* harmony import */ var
|
|
9729
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
9730
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
9715
9731
|
|
|
9716
9732
|
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
grayscale:
|
|
9720
|
-
|
|
9733
|
+
|
|
9734
|
+
var VictoryTheme = {
|
|
9735
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
9736
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
9737
|
+
};
|
|
9738
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
9721
9739
|
|
|
9722
9740
|
/***/ }),
|
|
9723
9741
|
|
|
@@ -9751,9 +9769,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9751
9769
|
|
|
9752
9770
|
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
9771
|
|
|
9754
|
-
/* eslint-disable func-style */
|
|
9755
|
-
|
|
9756
|
-
/* eslint-disable no-use-before-define */
|
|
9757
9772
|
function isNonEmptyArray(collection) {
|
|
9758
9773
|
return Array.isArray(collection) && collection.length > 0;
|
|
9759
9774
|
}
|
|
@@ -9792,7 +9807,8 @@ function getMaxValue(arr) {
|
|
|
9792
9807
|
}
|
|
9793
9808
|
|
|
9794
9809
|
var array = arr.concat(values);
|
|
9795
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
9810
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9811
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
9796
9812
|
}
|
|
9797
9813
|
function getMinValue(arr) {
|
|
9798
9814
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -9800,8 +9816,10 @@ function getMinValue(arr) {
|
|
|
9800
9816
|
}
|
|
9801
9817
|
|
|
9802
9818
|
var array = arr.concat(values);
|
|
9803
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
9819
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9820
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
9804
9821
|
}
|
|
9822
|
+
//# sourceMappingURL=collection.js.map
|
|
9805
9823
|
|
|
9806
9824
|
/***/ }),
|
|
9807
9825
|
|
|
@@ -9814,9 +9832,7 @@ function getMinValue(arr) {
|
|
|
9814
9832
|
"use strict";
|
|
9815
9833
|
__webpack_require__.r(__webpack_exports__);
|
|
9816
9834
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9817
|
-
/* harmony export */ "
|
|
9818
|
-
/* harmony export */ "dataProps": () => (/* binding */ dataProps),
|
|
9819
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
9835
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
9820
9836
|
/* harmony export */ });
|
|
9821
9837
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9822
9838
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9824,26 +9840,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9824
9840
|
|
|
9825
9841
|
|
|
9826
9842
|
var dataProps = {
|
|
9843
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9827
9844
|
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({
|
|
9828
9845
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
9829
9846
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
9830
9847
|
})]),
|
|
9848
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9831
9849
|
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)]),
|
|
9832
9850
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9833
9851
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9834
9852
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9835
9853
|
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)]),
|
|
9836
9854
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9837
|
-
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))]),
|
|
9855
|
+
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))]),
|
|
9838
9856
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
9839
9857
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9840
9858
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9841
9859
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9842
9860
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9843
9861
|
}),
|
|
9844
|
-
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))]),
|
|
9845
|
-
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))]),
|
|
9846
|
-
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))])
|
|
9862
|
+
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))]),
|
|
9863
|
+
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))]),
|
|
9864
|
+
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))])
|
|
9847
9865
|
};
|
|
9848
9866
|
var baseProps = {
|
|
9849
9867
|
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)]),
|
|
@@ -9852,14 +9870,17 @@ var baseProps = {
|
|
|
9852
9870
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9853
9871
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9854
9872
|
})]),
|
|
9873
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9855
9874
|
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({
|
|
9856
9875
|
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)]),
|
|
9857
9876
|
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)])
|
|
9858
9877
|
})]),
|
|
9878
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9859
9879
|
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({
|
|
9860
9880
|
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)]),
|
|
9861
9881
|
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)])
|
|
9862
9882
|
})]),
|
|
9883
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9863
9884
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9864
9885
|
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))]),
|
|
9865
9886
|
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))])
|
|
@@ -9870,6 +9891,7 @@ var baseProps = {
|
|
|
9870
9891
|
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)]),
|
|
9871
9892
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9872
9893
|
})),
|
|
9894
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9873
9895
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9874
9896
|
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
9875
9897
|
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)]),
|
|
@@ -9880,10 +9902,12 @@ var baseProps = {
|
|
|
9880
9902
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9881
9903
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9882
9904
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9905
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9883
9906
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9884
9907
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9885
9908
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
9886
9909
|
}),
|
|
9910
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9887
9911
|
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({
|
|
9888
9912
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9889
9913
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -9892,17 +9916,19 @@ var baseProps = {
|
|
|
9892
9916
|
})]),
|
|
9893
9917
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9894
9918
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9895
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9896
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9919
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
9920
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
9897
9921
|
})]),
|
|
9898
9922
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9899
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
9900
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
9923
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
9924
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
9901
9925
|
})]),
|
|
9926
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9902
9927
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9903
9928
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
9904
9929
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
9905
9930
|
}),
|
|
9931
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9906
9932
|
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({
|
|
9907
9933
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
9908
9934
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -9922,6 +9948,7 @@ var primitiveProps = {
|
|
|
9922
9948
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9923
9949
|
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)]),
|
|
9924
9950
|
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)]),
|
|
9951
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9925
9952
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9926
9953
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9927
9954
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -9937,6 +9964,12 @@ var primitiveProps = {
|
|
|
9937
9964
|
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)]),
|
|
9938
9965
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
9939
9966
|
};
|
|
9967
|
+
var CommonProps = {
|
|
9968
|
+
dataProps: dataProps,
|
|
9969
|
+
baseProps: baseProps,
|
|
9970
|
+
primitiveProps: primitiveProps
|
|
9971
|
+
};
|
|
9972
|
+
//# sourceMappingURL=common-props.js.map
|
|
9940
9973
|
|
|
9941
9974
|
/***/ }),
|
|
9942
9975
|
|
|
@@ -10019,8 +10052,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10019
10052
|
|
|
10020
10053
|
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
10054
|
|
|
10022
|
-
/* eslint-disable func-style */
|
|
10023
|
-
|
|
10024
10055
|
/* eslint-disable no-use-before-define */
|
|
10025
10056
|
|
|
10026
10057
|
|
|
@@ -10452,6 +10483,7 @@ function isDataComponent(component) {
|
|
|
10452
10483
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
10453
10484
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
10454
10485
|
}
|
|
10486
|
+
//# sourceMappingURL=data.js.map
|
|
10455
10487
|
|
|
10456
10488
|
/***/ }),
|
|
10457
10489
|
|
|
@@ -10505,8 +10537,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10505
10537
|
|
|
10506
10538
|
|
|
10507
10539
|
|
|
10508
|
-
/* eslint-disable func-style */
|
|
10509
|
-
|
|
10510
10540
|
/* eslint-disable no-use-before-define */
|
|
10511
10541
|
|
|
10512
10542
|
|
|
@@ -10535,7 +10565,7 @@ function getPolarRange(props, axis) {
|
|
|
10535
10565
|
|
|
10536
10566
|
/**
|
|
10537
10567
|
* creates an object with some keys excluded
|
|
10538
|
-
* replacement for lodash.omit for performance. does not
|
|
10568
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
10539
10569
|
* @param {Object} originalObject: created object will be based on this object
|
|
10540
10570
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
10541
10571
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -10548,6 +10578,7 @@ function omit(originalObject) {
|
|
|
10548
10578
|
var newObject = {};
|
|
10549
10579
|
|
|
10550
10580
|
for (var key in originalObject) {
|
|
10581
|
+
// @ts-expect-error String is not assignable to Key
|
|
10551
10582
|
if (ks.indexOf(key) >= 0) {
|
|
10552
10583
|
continue;
|
|
10553
10584
|
}
|
|
@@ -10780,7 +10811,9 @@ function reduceChildren(children, iteratee) {
|
|
|
10780
10811
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
10781
10812
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
10782
10813
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
10783
|
-
return
|
|
10814
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
10815
|
+
memo.concat(item)
|
|
10816
|
+
);
|
|
10784
10817
|
};
|
|
10785
10818
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
10786
10819
|
|
|
@@ -10824,7 +10857,7 @@ function reduceChildren(children, iteratee) {
|
|
|
10824
10857
|
/**
|
|
10825
10858
|
* @param {Object} props: the props object
|
|
10826
10859
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
10827
|
-
* children or nested children are
|
|
10860
|
+
* children or nested children are horizontal
|
|
10828
10861
|
*/
|
|
10829
10862
|
|
|
10830
10863
|
function isHorizontal(props) {
|
|
@@ -10847,6 +10880,7 @@ function isHorizontal(props) {
|
|
|
10847
10880
|
|
|
10848
10881
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
10849
10882
|
}
|
|
10883
|
+
//# sourceMappingURL=helpers.js.map
|
|
10850
10884
|
|
|
10851
10885
|
/***/ }),
|
|
10852
10886
|
|
|
@@ -10870,7 +10904,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10870
10904
|
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
10871
10905
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
10872
10906
|
/* harmony export */ });
|
|
10873
|
-
/* eslint-disable func-style */
|
|
10874
10907
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
10875
10908
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
10876
10909
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -10891,15 +10924,16 @@ function isMap(x) {
|
|
|
10891
10924
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
10892
10925
|
}
|
|
10893
10926
|
function shallowToJS(x, whitelist) {
|
|
10894
|
-
return isIterable(x) ? x.reduce(function (
|
|
10927
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
10895
10928
|
if (whitelist && whitelist[key]) {
|
|
10896
10929
|
curr = shallowToJS(curr);
|
|
10897
10930
|
}
|
|
10898
10931
|
|
|
10899
|
-
|
|
10900
|
-
return
|
|
10932
|
+
result[key] = curr;
|
|
10933
|
+
return result;
|
|
10901
10934
|
}, isList(x) ? [] : {}) : x;
|
|
10902
10935
|
}
|
|
10936
|
+
//# sourceMappingURL=immutable.js.map
|
|
10903
10937
|
|
|
10904
10938
|
/***/ }),
|
|
10905
10939
|
|
|
@@ -10924,8 +10958,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10924
10958
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
10925
10959
|
|
|
10926
10960
|
|
|
10927
|
-
/* eslint-disable func-style */
|
|
10928
|
-
|
|
10929
10961
|
/* eslint-disable no-use-before-define */
|
|
10930
10962
|
|
|
10931
10963
|
|
|
@@ -11159,6 +11191,7 @@ function getProps(props, index) {
|
|
|
11159
11191
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
11160
11192
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
11161
11193
|
}
|
|
11194
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
11162
11195
|
|
|
11163
11196
|
/***/ }),
|
|
11164
11197
|
|
|
@@ -11177,7 +11210,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11177
11210
|
|
|
11178
11211
|
/* eslint-disable no-console */
|
|
11179
11212
|
// TODO: Use "warning" npm module like React is switching to.
|
|
11180
|
-
// eslint-disable-next-line func-style
|
|
11181
11213
|
function warn(message) {
|
|
11182
11214
|
if (true) {
|
|
11183
11215
|
if (console && console.warn) {
|
|
@@ -11185,6 +11217,7 @@ function warn(message) {
|
|
|
11185
11217
|
}
|
|
11186
11218
|
}
|
|
11187
11219
|
}
|
|
11220
|
+
//# sourceMappingURL=log.js.map
|
|
11188
11221
|
|
|
11189
11222
|
/***/ }),
|
|
11190
11223
|
|
|
@@ -11212,12 +11245,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11212
11245
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
11213
11246
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
11214
11247
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
11215
|
-
/* harmony import */ var
|
|
11216
|
-
/* harmony import */ var
|
|
11217
|
-
/* harmony import */ var
|
|
11218
|
-
/* harmony import */ var
|
|
11219
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
11220
|
-
|
|
11248
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11249
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11250
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
11251
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
11221
11252
|
|
|
11222
11253
|
|
|
11223
11254
|
|
|
@@ -11225,6 +11256,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11225
11256
|
|
|
11226
11257
|
|
|
11227
11258
|
|
|
11259
|
+
|
|
11260
|
+
|
|
11228
11261
|
/**
|
|
11229
11262
|
* Return a new validator based on `validator` but with the option to chain
|
|
11230
11263
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -11232,30 +11265,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11232
11265
|
* @param {Function} validator Validation function.
|
|
11233
11266
|
* @returns {Function} Validator with `isRequired` option.
|
|
11234
11267
|
*/
|
|
11235
|
-
|
|
11236
11268
|
var makeChainable = function (validator) {
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11269
|
+
var createChainable = function (isRequired) {
|
|
11270
|
+
return function (props, propName, componentName) {
|
|
11271
|
+
var value = props[propName];
|
|
11240
11272
|
|
|
11241
|
-
|
|
11242
|
-
|
|
11243
|
-
|
|
11244
|
-
|
|
11273
|
+
if (value === undefined || value === null) {
|
|
11274
|
+
if (isRequired) {
|
|
11275
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
11276
|
+
}
|
|
11245
11277
|
|
|
11246
|
-
|
|
11247
|
-
|
|
11278
|
+
return null;
|
|
11279
|
+
}
|
|
11248
11280
|
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11281
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
11282
|
+
rest[_key - 3] = arguments[_key];
|
|
11283
|
+
}
|
|
11252
11284
|
|
|
11253
|
-
|
|
11285
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11286
|
+
};
|
|
11254
11287
|
};
|
|
11255
11288
|
|
|
11256
|
-
var chainable =
|
|
11257
|
-
|
|
11258
|
-
|
|
11289
|
+
var chainable = Object.assign(createChainable(false), {
|
|
11290
|
+
isRequired: createChainable(true)
|
|
11291
|
+
});
|
|
11259
11292
|
return chainable;
|
|
11260
11293
|
};
|
|
11261
11294
|
|
|
@@ -11285,7 +11318,7 @@ var getConstructor = function (value) {
|
|
|
11285
11318
|
};
|
|
11286
11319
|
/**
|
|
11287
11320
|
* Get the name of the constructor used to create `value`, using
|
|
11288
|
-
* `Object.
|
|
11321
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
11289
11322
|
* "null" or "undefined", respectively.
|
|
11290
11323
|
* @param {*} value Instance to return the constructor name of.
|
|
11291
11324
|
* @returns {String} Name of the constructor.
|
|
@@ -11315,10 +11348,11 @@ function deprecated(propType, explanation) {
|
|
|
11315
11348
|
var value = props[propName];
|
|
11316
11349
|
|
|
11317
11350
|
if (value !== null && value !== undefined) {
|
|
11318
|
-
|
|
11351
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
11319
11352
|
}
|
|
11320
11353
|
|
|
11321
|
-
|
|
11354
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
11355
|
+
return null;
|
|
11322
11356
|
};
|
|
11323
11357
|
}
|
|
11324
11358
|
/**
|
|
@@ -11337,7 +11371,7 @@ function allOfType(validators) {
|
|
|
11337
11371
|
|
|
11338
11372
|
return validators.reduce(function (result, validator) {
|
|
11339
11373
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11340
|
-
},
|
|
11374
|
+
}, null);
|
|
11341
11375
|
});
|
|
11342
11376
|
}
|
|
11343
11377
|
/**
|
|
@@ -11351,7 +11385,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
11351
11385
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
11352
11386
|
}
|
|
11353
11387
|
|
|
11354
|
-
return
|
|
11388
|
+
return null;
|
|
11355
11389
|
});
|
|
11356
11390
|
/**
|
|
11357
11391
|
* Check that the value is an integer.
|
|
@@ -11364,7 +11398,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
11364
11398
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
11365
11399
|
}
|
|
11366
11400
|
|
|
11367
|
-
return
|
|
11401
|
+
return null;
|
|
11368
11402
|
});
|
|
11369
11403
|
/**
|
|
11370
11404
|
* Check that the value is greater than zero.
|
|
@@ -11377,7 +11411,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
11377
11411
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
11378
11412
|
}
|
|
11379
11413
|
|
|
11380
|
-
return
|
|
11414
|
+
return null;
|
|
11381
11415
|
});
|
|
11382
11416
|
/**
|
|
11383
11417
|
* Check that the value is an Array of two unique values.
|
|
@@ -11390,32 +11424,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
11390
11424
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
11391
11425
|
}
|
|
11392
11426
|
|
|
11393
|
-
return
|
|
11427
|
+
return null;
|
|
11394
11428
|
});
|
|
11395
11429
|
/**
|
|
11396
11430
|
* Check that the value looks like a d3 `scale` function.
|
|
11397
11431
|
*/
|
|
11398
11432
|
|
|
11399
11433
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
11400
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11401
|
-
|
|
11402
|
-
var validScale = function (scl) {
|
|
11403
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
11404
|
-
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);
|
|
11405
|
-
} else if (typeof scl === "string") {
|
|
11406
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
11407
|
-
}
|
|
11408
|
-
|
|
11409
|
-
return false;
|
|
11410
|
-
};
|
|
11411
|
-
|
|
11412
11434
|
var value = props[propName];
|
|
11413
11435
|
|
|
11414
|
-
if (!validScale(value)) {
|
|
11436
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
11415
11437
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
11416
11438
|
}
|
|
11417
11439
|
|
|
11418
|
-
return
|
|
11440
|
+
return null;
|
|
11419
11441
|
});
|
|
11420
11442
|
/**
|
|
11421
11443
|
* Check that an array contains items of the same type.
|
|
@@ -11429,7 +11451,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11429
11451
|
}
|
|
11430
11452
|
|
|
11431
11453
|
if (values.length < 2) {
|
|
11432
|
-
return
|
|
11454
|
+
return null;
|
|
11433
11455
|
}
|
|
11434
11456
|
|
|
11435
11457
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -11444,7 +11466,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11444
11466
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
11445
11467
|
}
|
|
11446
11468
|
|
|
11447
|
-
return
|
|
11469
|
+
return null;
|
|
11448
11470
|
});
|
|
11449
11471
|
/**
|
|
11450
11472
|
* Check that array prop length matches props.data.length
|
|
@@ -11455,7 +11477,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
11455
11477
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
11456
11478
|
}
|
|
11457
11479
|
|
|
11458
|
-
return
|
|
11480
|
+
return null;
|
|
11459
11481
|
});
|
|
11460
11482
|
/**
|
|
11461
11483
|
* Check that the value is a regular expression
|
|
@@ -11466,8 +11488,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
11466
11488
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
11467
11489
|
}
|
|
11468
11490
|
|
|
11469
|
-
return
|
|
11491
|
+
return null;
|
|
11470
11492
|
});
|
|
11493
|
+
//# sourceMappingURL=prop-types.js.map
|
|
11471
11494
|
|
|
11472
11495
|
/***/ }),
|
|
11473
11496
|
|
|
@@ -11485,7 +11508,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11485
11508
|
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
11486
11509
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
11487
11510
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
11488
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
11511
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
11512
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
11489
11513
|
/* harmony export */ });
|
|
11490
11514
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
11491
11515
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11503,8 +11527,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11503
11527
|
|
|
11504
11528
|
|
|
11505
11529
|
|
|
11506
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11530
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11507
11531
|
|
|
11532
|
+
// Private Functions
|
|
11508
11533
|
function toNewName(scale) {
|
|
11509
11534
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
11510
11535
|
var capitalize = function (s) {
|
|
@@ -11574,7 +11599,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
11574
11599
|
|
|
11575
11600
|
|
|
11576
11601
|
function getScaleFromName(name) {
|
|
11577
|
-
|
|
11602
|
+
if (validScale(name)) {
|
|
11603
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
11604
|
+
|
|
11605
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
11606
|
+
}
|
|
11607
|
+
|
|
11608
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
11578
11609
|
}
|
|
11579
11610
|
function getBaseScale(props, axis) {
|
|
11580
11611
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -11584,7 +11615,7 @@ function getBaseScale(props, axis) {
|
|
|
11584
11615
|
}
|
|
11585
11616
|
|
|
11586
11617
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
11587
|
-
return
|
|
11618
|
+
return getScaleFromName(defaultScale);
|
|
11588
11619
|
}
|
|
11589
11620
|
function getDefaultScale() {
|
|
11590
11621
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -11597,7 +11628,7 @@ function getScaleFromProps(props, axis) {
|
|
|
11597
11628
|
var scale = props.scale[axis] || props.scale;
|
|
11598
11629
|
|
|
11599
11630
|
if (validScale(scale)) {
|
|
11600
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
11631
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
11601
11632
|
}
|
|
11602
11633
|
|
|
11603
11634
|
return undefined;
|
|
@@ -11632,6 +11663,7 @@ function getType(scale) {
|
|
|
11632
11663
|
})[0];
|
|
11633
11664
|
return scaleType ? scaleType.name : undefined;
|
|
11634
11665
|
}
|
|
11666
|
+
//# sourceMappingURL=scale.js.map
|
|
11635
11667
|
|
|
11636
11668
|
/***/ }),
|
|
11637
11669
|
|
|
@@ -11650,12 +11682,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11650
11682
|
/* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
|
|
11651
11683
|
/* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
|
|
11652
11684
|
/* harmony export */ });
|
|
11653
|
-
/* harmony import */ var
|
|
11654
|
-
/* eslint-disable func-style */
|
|
11685
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "../../victory-core/es/victory-util/collection.js");
|
|
11655
11686
|
|
|
11656
|
-
/* eslint-disable no-use-before-define */
|
|
11657
|
-
// Private Functions
|
|
11658
11687
|
|
|
11688
|
+
// Private Functions
|
|
11659
11689
|
function transformTarget(target, matrix, dimension) {
|
|
11660
11690
|
var a = matrix.a,
|
|
11661
11691
|
d = matrix.d,
|
|
@@ -11666,11 +11696,20 @@ function transformTarget(target, matrix, dimension) {
|
|
|
11666
11696
|
|
|
11667
11697
|
function getTransformationMatrix(svg) {
|
|
11668
11698
|
return svg.getScreenCTM().inverse();
|
|
11699
|
+
}
|
|
11700
|
+
|
|
11701
|
+
function isNativeTouchEvent(nativeEvent) {
|
|
11702
|
+
return !!(nativeEvent && nativeEvent.identifier !== undefined);
|
|
11703
|
+
}
|
|
11704
|
+
|
|
11705
|
+
function isReactTouchEvent(evt) {
|
|
11706
|
+
return evt.changedTouches && evt.changedTouches.length > 0;
|
|
11669
11707
|
} // Exported Functions
|
|
11670
11708
|
|
|
11671
11709
|
|
|
11672
11710
|
function getParentSVG(evt) {
|
|
11673
|
-
if (evt.nativeEvent
|
|
11711
|
+
if (isNativeTouchEvent(evt.nativeEvent)) {
|
|
11712
|
+
// @ts-expect-error Seems like a superfluous check.
|
|
11674
11713
|
return undefined;
|
|
11675
11714
|
}
|
|
11676
11715
|
|
|
@@ -11685,7 +11724,7 @@ function getParentSVG(evt) {
|
|
|
11685
11724
|
return getParent(evt.target);
|
|
11686
11725
|
}
|
|
11687
11726
|
function getSVGEventCoordinates(evt, svg) {
|
|
11688
|
-
if (evt.nativeEvent
|
|
11727
|
+
if (isNativeTouchEvent(evt.nativeEvent)) {
|
|
11689
11728
|
// react-native override. relies on the RN.View being the _exact_ same size as its child SVG.
|
|
11690
11729
|
// this should be fine: the svg is the only child of View and the View shirks to its children
|
|
11691
11730
|
return {
|
|
@@ -11694,24 +11733,25 @@ function getSVGEventCoordinates(evt, svg) {
|
|
|
11694
11733
|
};
|
|
11695
11734
|
}
|
|
11696
11735
|
|
|
11697
|
-
|
|
11698
|
-
svg = svg || getParentSVG(
|
|
11736
|
+
var location = isReactTouchEvent(evt) ? evt.changedTouches[0] : evt;
|
|
11737
|
+
svg = svg || getParentSVG(location);
|
|
11699
11738
|
var matrix = getTransformationMatrix(svg);
|
|
11700
11739
|
return {
|
|
11701
|
-
x: transformTarget(
|
|
11702
|
-
y: transformTarget(
|
|
11740
|
+
x: transformTarget(location.clientX, matrix, "x"),
|
|
11741
|
+
y: transformTarget(location.clientY, matrix, "y")
|
|
11703
11742
|
};
|
|
11704
11743
|
}
|
|
11705
11744
|
function getDomainCoordinates(props, domain) {
|
|
11706
|
-
var
|
|
11707
|
-
|
|
11708
|
-
|
|
11745
|
+
var horizontal = props.horizontal;
|
|
11746
|
+
var scale = props.scale; // FIXME: add support for DomainTuple: [number, number]
|
|
11747
|
+
|
|
11748
|
+
var domainObj = domain || {
|
|
11709
11749
|
x: scale.x.domain(),
|
|
11710
11750
|
y: scale.y.domain()
|
|
11711
11751
|
};
|
|
11712
11752
|
return {
|
|
11713
|
-
x: horizontal ? [scale.y(
|
|
11714
|
-
y: horizontal ? [scale.x(
|
|
11753
|
+
x: horizontal ? [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])] : [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])],
|
|
11754
|
+
y: horizontal ? [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])] : [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])]
|
|
11715
11755
|
};
|
|
11716
11756
|
} // eslint-disable-next-line max-params
|
|
11717
11757
|
|
|
@@ -11749,7 +11789,7 @@ function getBounds(props) {
|
|
|
11749
11789
|
var point2 = getDataCoordinates(props, scale, x2, y2);
|
|
11750
11790
|
|
|
11751
11791
|
var makeBound = function (a, b) {
|
|
11752
|
-
return [
|
|
11792
|
+
return [_index__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _index__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
|
|
11753
11793
|
};
|
|
11754
11794
|
|
|
11755
11795
|
return {
|
|
@@ -11757,6 +11797,7 @@ function getBounds(props) {
|
|
|
11757
11797
|
y: makeBound(point1.y, point2.y)
|
|
11758
11798
|
};
|
|
11759
11799
|
}
|
|
11800
|
+
//# sourceMappingURL=selection.js.map
|
|
11760
11801
|
|
|
11761
11802
|
/***/ }),
|
|
11762
11803
|
|
|
@@ -11772,8 +11813,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11772
11813
|
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
11773
11814
|
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
11774
11815
|
/* harmony export */ });
|
|
11775
|
-
/* eslint-disable func-style */
|
|
11776
|
-
|
|
11777
11816
|
/**
|
|
11778
11817
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
11779
11818
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -11830,6 +11869,7 @@ function getColorScale(name) {
|
|
|
11830
11869
|
};
|
|
11831
11870
|
return name ? scales[name] : scales.grayscale;
|
|
11832
11871
|
}
|
|
11872
|
+
//# sourceMappingURL=style.js.map
|
|
11833
11873
|
|
|
11834
11874
|
/***/ }),
|
|
11835
11875
|
|
|
@@ -12034,8 +12074,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
12034
12074
|
|
|
12035
12075
|
|
|
12036
12076
|
var convertLengthToPixels = function (length, fontSize) {
|
|
12037
|
-
var
|
|
12038
|
-
|
|
12077
|
+
var _length$match;
|
|
12078
|
+
|
|
12079
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
12080
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
12039
12081
|
var result;
|
|
12040
12082
|
|
|
12041
12083
|
if (!attribute) {
|
|
@@ -12101,9 +12143,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
12101
12143
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
12102
12144
|
return total + lineStyle.lineHeight * height;
|
|
12103
12145
|
}, 0);
|
|
12104
|
-
};
|
|
12105
|
-
|
|
12146
|
+
};
|
|
12106
12147
|
|
|
12148
|
+
// Stubbable implementation.
|
|
12107
12149
|
var _approximateTextSizeInternal = {
|
|
12108
12150
|
impl: function (text, style) {
|
|
12109
12151
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -12122,7 +12164,7 @@ var _approximateTextSizeInternal = {
|
|
|
12122
12164
|
};
|
|
12123
12165
|
/**
|
|
12124
12166
|
* Predict text size by font params.
|
|
12125
|
-
* @param {string} text Content for width calculation.
|
|
12167
|
+
* @param {string|string[]} text Content for width calculation.
|
|
12126
12168
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
12127
12169
|
* @param {string} style.fontFamily Text fontFamily.
|
|
12128
12170
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -12135,6 +12177,7 @@ var _approximateTextSizeInternal = {
|
|
|
12135
12177
|
var approximateTextSize = function (text, style) {
|
|
12136
12178
|
return _approximateTextSizeInternal.impl(text, style);
|
|
12137
12179
|
};
|
|
12180
|
+
//# sourceMappingURL=textsize.js.map
|
|
12138
12181
|
|
|
12139
12182
|
/***/ }),
|
|
12140
12183
|
|
|
@@ -12165,6 +12208,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
12165
12208
|
});
|
|
12166
12209
|
TimerContext.displayName = "TimerContext";
|
|
12167
12210
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
12211
|
+
//# sourceMappingURL=timer-context.js.map
|
|
12168
12212
|
|
|
12169
12213
|
/***/ }),
|
|
12170
12214
|
|
|
@@ -12190,11 +12234,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
12190
12234
|
|
|
12191
12235
|
var Timer = /*#__PURE__*/function () {
|
|
12192
12236
|
function Timer() {
|
|
12237
|
+
var _this = this;
|
|
12238
|
+
|
|
12193
12239
|
_classCallCheck(this, Timer);
|
|
12194
12240
|
|
|
12241
|
+
this.shouldAnimate = void 0;
|
|
12242
|
+
this.subscribers = void 0;
|
|
12243
|
+
this.activeSubscriptions = void 0;
|
|
12244
|
+
this.timer = void 0;
|
|
12245
|
+
|
|
12246
|
+
this.loop = function () {
|
|
12247
|
+
_this.subscribers.forEach(function (s) {
|
|
12248
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
12249
|
+
});
|
|
12250
|
+
};
|
|
12251
|
+
|
|
12195
12252
|
this.shouldAnimate = true;
|
|
12196
12253
|
this.subscribers = [];
|
|
12197
|
-
this.loop = this.loop.bind(this);
|
|
12198
12254
|
this.timer = null;
|
|
12199
12255
|
this.activeSubscriptions = 0;
|
|
12200
12256
|
}
|
|
@@ -12209,13 +12265,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12209
12265
|
value: function resumeAnimation() {
|
|
12210
12266
|
this.shouldAnimate = true;
|
|
12211
12267
|
}
|
|
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
12268
|
}, {
|
|
12220
12269
|
key: "start",
|
|
12221
12270
|
value: function start() {
|
|
@@ -12262,6 +12311,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12262
12311
|
}();
|
|
12263
12312
|
|
|
12264
12313
|
|
|
12314
|
+
//# sourceMappingURL=timer.js.map
|
|
12265
12315
|
|
|
12266
12316
|
/***/ }),
|
|
12267
12317
|
|
|
@@ -12300,7 +12350,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12300
12350
|
|
|
12301
12351
|
/*
|
|
12302
12352
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
12303
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
12353
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
12304
12354
|
starts with these characters.
|
|
12305
12355
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
12306
12356
|
*/
|
|
@@ -12309,6 +12359,7 @@ var USER_PROPS_SAFELIST = {
|
|
|
12309
12359
|
startsWith: ["data-", "aria-"],
|
|
12310
12360
|
exactMatch: []
|
|
12311
12361
|
};
|
|
12362
|
+
|
|
12312
12363
|
/**
|
|
12313
12364
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
12314
12365
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -12317,7 +12368,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
12317
12368
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
12318
12369
|
* otherwise
|
|
12319
12370
|
*/
|
|
12320
|
-
|
|
12321
12371
|
var doesPropStartWith = function (key) {
|
|
12322
12372
|
var startsWith = false;
|
|
12323
12373
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -12394,14 +12444,15 @@ var getSafeUserProps = function (props) {
|
|
|
12394
12444
|
/**
|
|
12395
12445
|
* Wraps a component and adds safe user props
|
|
12396
12446
|
*
|
|
12397
|
-
* @param {
|
|
12447
|
+
* @param {ReactElement} component: parent component
|
|
12398
12448
|
* @param {Object} props: props to be filtered
|
|
12399
|
-
* @returns {
|
|
12449
|
+
* @returns {ReactElement} modified component
|
|
12400
12450
|
*/
|
|
12401
12451
|
|
|
12402
12452
|
var withSafeUserProps = function (component, props) {
|
|
12403
12453
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
12404
12454
|
};
|
|
12455
|
+
//# sourceMappingURL=user-props.js.map
|
|
12405
12456
|
|
|
12406
12457
|
/***/ }),
|
|
12407
12458
|
|
|
@@ -12519,7 +12570,7 @@ var Flyout = function (props) {
|
|
|
12519
12570
|
}));
|
|
12520
12571
|
};
|
|
12521
12572
|
|
|
12522
|
-
Flyout.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.primitiveProps), {}, {
|
|
12573
|
+
Flyout.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.CommonProps.primitiveProps), {}, {
|
|
12523
12574
|
center: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
12524
12575
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
12525
12576
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
@@ -12538,11 +12589,12 @@ Flyout.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTE
|
|
|
12538
12589
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
12539
12590
|
});
|
|
12540
12591
|
Flyout.defaultProps = {
|
|
12541
|
-
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__
|
|
12592
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Path, null),
|
|
12542
12593
|
role: "presentation",
|
|
12543
12594
|
shapeRendering: "auto"
|
|
12544
12595
|
};
|
|
12545
12596
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Flyout);
|
|
12597
|
+
//# sourceMappingURL=flyout.js.map
|
|
12546
12598
|
|
|
12547
12599
|
/***/ }),
|
|
12548
12600
|
|
|
@@ -12605,7 +12657,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
12605
12657
|
|
|
12606
12658
|
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
12659
|
|
|
12608
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
12660
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
12609
12661
|
|
|
12610
12662
|
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
12663
|
|
|
@@ -12615,9 +12667,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
12615
12667
|
|
|
12616
12668
|
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
12669
|
|
|
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; }
|
|
12670
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
12621
12671
|
|
|
12622
12672
|
|
|
12623
12673
|
|
|
@@ -12690,7 +12740,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
12690
12740
|
}, {
|
|
12691
12741
|
key: "getStyles",
|
|
12692
12742
|
value: function getStyles(props) {
|
|
12693
|
-
var theme = props.theme || victory_core__WEBPACK_IMPORTED_MODULE_7__
|
|
12743
|
+
var theme = props.theme || victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryTheme.grayscale;
|
|
12694
12744
|
var defaultLabelStyles = theme && theme.tooltip && theme.tooltip.style ? theme.tooltip.style : {};
|
|
12695
12745
|
var baseLabelStyle = Array.isArray(props.style) ? props.style.map(function (s) {
|
|
12696
12746
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_3___default()({}, s, defaultLabelStyles);
|
|
@@ -13069,7 +13119,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
13069
13119
|
var renderInPortal = props.renderInPortal;
|
|
13070
13120
|
|
|
13071
13121
|
if (!active) {
|
|
13072
|
-
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__
|
|
13122
|
+
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, null) : null;
|
|
13073
13123
|
}
|
|
13074
13124
|
|
|
13075
13125
|
var evaluatedProps = this.getEvaluatedProps(props);
|
|
@@ -13082,7 +13132,7 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
13082
13132
|
role: "presentation",
|
|
13083
13133
|
transform: calculatedValues.transform
|
|
13084
13134
|
}, children);
|
|
13085
|
-
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__
|
|
13135
|
+
return renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, tooltip) : tooltip;
|
|
13086
13136
|
}
|
|
13087
13137
|
}, {
|
|
13088
13138
|
key: "render",
|
|
@@ -13095,11 +13145,9 @@ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
|
|
|
13095
13145
|
return VictoryTooltip;
|
|
13096
13146
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
13097
13147
|
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
-
_defineProperty(VictoryTooltip, "propTypes", {
|
|
13148
|
+
VictoryTooltip.displayName = "VictoryTooltip";
|
|
13149
|
+
VictoryTooltip.role = "tooltip";
|
|
13150
|
+
VictoryTooltip.propTypes = {
|
|
13103
13151
|
activateData: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
13104
13152
|
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
13153
|
activePoints: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
@@ -13151,17 +13199,16 @@ _defineProperty(VictoryTooltip, "propTypes", {
|
|
|
13151
13199
|
width: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13152
13200
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number),
|
|
13153
13201
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number)
|
|
13154
|
-
}
|
|
13155
|
-
|
|
13156
|
-
_defineProperty(VictoryTooltip, "defaultProps", {
|
|
13202
|
+
};
|
|
13203
|
+
VictoryTooltip.defaultProps = {
|
|
13157
13204
|
active: false,
|
|
13158
13205
|
renderInPortal: true,
|
|
13159
|
-
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__
|
|
13206
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_13__.VictoryLabel, null),
|
|
13160
13207
|
flyoutComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_flyout__WEBPACK_IMPORTED_MODULE_14__["default"], null),
|
|
13161
13208
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement("g", null)
|
|
13162
|
-
}
|
|
13209
|
+
};
|
|
13163
13210
|
|
|
13164
|
-
|
|
13211
|
+
VictoryTooltip.defaultEvents = function (props) {
|
|
13165
13212
|
var activate = props.activateData ? [{
|
|
13166
13213
|
target: "labels",
|
|
13167
13214
|
mutation: function () {
|
|
@@ -13229,9 +13276,10 @@ _defineProperty(VictoryTooltip, "defaultEvents", function (props) {
|
|
|
13229
13276
|
}
|
|
13230
13277
|
}
|
|
13231
13278
|
}];
|
|
13232
|
-
}
|
|
13279
|
+
};
|
|
13233
13280
|
|
|
13234
13281
|
|
|
13282
|
+
//# sourceMappingURL=victory-tooltip.js.map
|
|
13235
13283
|
|
|
13236
13284
|
/***/ }),
|
|
13237
13285
|
|