victory-group 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-group.js +405 -376
- package/dist/victory-group.min.js +1 -1
- package/es/helper-methods.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -1
- package/es/victory-group.js +2 -1
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/victory-group.js +2 -1
- package/package.json +5 -5
- package/src/helper-methods.js +13 -14
- package/src/index.d.ts +1 -1
- package/src/victory-group.js +15 -15
package/dist/victory-group.js
CHANGED
|
@@ -433,7 +433,7 @@ var VictoryGroup = function (initialProps) {
|
|
|
433
433
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(container, container.props, newChildren);
|
|
434
434
|
};
|
|
435
435
|
|
|
436
|
-
VictoryGroup.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_12__.dataProps), {}, {
|
|
436
|
+
VictoryGroup.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_12__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_12__.CommonProps.dataProps), {}, {
|
|
437
437
|
children: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().node)]),
|
|
438
438
|
color: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_13___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_13___default().func)]),
|
|
439
439
|
colorScale: prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_13___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_13___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_13___default().oneOf(["grayscale", "qualitative", "heatmap", "warm", "cool", "red", "green", "blue"])]),
|
|
@@ -441,12 +441,12 @@ VictoryGroup.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_c
|
|
|
441
441
|
offset: (prop_types__WEBPACK_IMPORTED_MODULE_13___default().number)
|
|
442
442
|
});
|
|
443
443
|
VictoryGroup.defaultProps = {
|
|
444
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_14__
|
|
444
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_14__.VictoryContainer, null),
|
|
445
445
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
446
446
|
samples: 50,
|
|
447
447
|
sortOrder: "ascending",
|
|
448
448
|
standalone: true,
|
|
449
|
-
theme: victory_core__WEBPACK_IMPORTED_MODULE_15__
|
|
449
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_15__.VictoryTheme.grayscale
|
|
450
450
|
}; // We need to attatch the static properties to the memoized version, or else
|
|
451
451
|
// VictoryChart will not be able to get this component's role type
|
|
452
452
|
|
|
@@ -6516,7 +6516,7 @@ module.exports = checkPropTypes;
|
|
|
6516
6516
|
|
|
6517
6517
|
|
|
6518
6518
|
|
|
6519
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6519
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6520
6520
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
6521
6521
|
|
|
6522
6522
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
@@ -7135,7 +7135,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
7135
7135
|
*/
|
|
7136
7136
|
|
|
7137
7137
|
if (true) {
|
|
7138
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
7138
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
7139
7139
|
|
|
7140
7140
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
7141
7141
|
// http://fb.me/prop-types-in-prod
|
|
@@ -7180,154 +7180,10 @@ module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
|
7180
7180
|
|
|
7181
7181
|
/***/ }),
|
|
7182
7182
|
|
|
7183
|
-
/***/ "../../../node_modules/react-
|
|
7184
|
-
|
|
7185
|
-
!*** ../../../node_modules/react-
|
|
7186
|
-
|
|
7187
|
-
/***/ ((module) => {
|
|
7188
|
-
|
|
7189
|
-
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7190
|
-
|
|
7191
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
7192
|
-
var hasMap = typeof Map === 'function';
|
|
7193
|
-
var hasSet = typeof Set === 'function';
|
|
7194
|
-
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7195
|
-
|
|
7196
|
-
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7197
|
-
|
|
7198
|
-
function equal(a, b) {
|
|
7199
|
-
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7200
|
-
if (a === b) return true;
|
|
7201
|
-
|
|
7202
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7203
|
-
if (a.constructor !== b.constructor) return false;
|
|
7204
|
-
|
|
7205
|
-
var length, i, keys;
|
|
7206
|
-
if (Array.isArray(a)) {
|
|
7207
|
-
length = a.length;
|
|
7208
|
-
if (length != b.length) return false;
|
|
7209
|
-
for (i = length; i-- !== 0;)
|
|
7210
|
-
if (!equal(a[i], b[i])) return false;
|
|
7211
|
-
return true;
|
|
7212
|
-
}
|
|
7213
|
-
|
|
7214
|
-
// START: Modifications:
|
|
7215
|
-
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7216
|
-
// to co-exist with es5.
|
|
7217
|
-
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7218
|
-
// Basically, take:
|
|
7219
|
-
//
|
|
7220
|
-
// ```js
|
|
7221
|
-
// for (i of a.entries())
|
|
7222
|
-
// if (!b.has(i[0])) return false;
|
|
7223
|
-
// ```
|
|
7224
|
-
//
|
|
7225
|
-
// ... and convert to:
|
|
7226
|
-
//
|
|
7227
|
-
// ```js
|
|
7228
|
-
// it = a.entries();
|
|
7229
|
-
// while (!(i = it.next()).done)
|
|
7230
|
-
// if (!b.has(i.value[0])) return false;
|
|
7231
|
-
// ```
|
|
7232
|
-
//
|
|
7233
|
-
// **Note**: `i` access switches to `i.value`.
|
|
7234
|
-
var it;
|
|
7235
|
-
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7236
|
-
if (a.size !== b.size) return false;
|
|
7237
|
-
it = a.entries();
|
|
7238
|
-
while (!(i = it.next()).done)
|
|
7239
|
-
if (!b.has(i.value[0])) return false;
|
|
7240
|
-
it = a.entries();
|
|
7241
|
-
while (!(i = it.next()).done)
|
|
7242
|
-
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7243
|
-
return true;
|
|
7244
|
-
}
|
|
7245
|
-
|
|
7246
|
-
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7247
|
-
if (a.size !== b.size) return false;
|
|
7248
|
-
it = a.entries();
|
|
7249
|
-
while (!(i = it.next()).done)
|
|
7250
|
-
if (!b.has(i.value[0])) return false;
|
|
7251
|
-
return true;
|
|
7252
|
-
}
|
|
7253
|
-
// END: Modifications
|
|
7254
|
-
|
|
7255
|
-
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7256
|
-
length = a.length;
|
|
7257
|
-
if (length != b.length) return false;
|
|
7258
|
-
for (i = length; i-- !== 0;)
|
|
7259
|
-
if (a[i] !== b[i]) return false;
|
|
7260
|
-
return true;
|
|
7261
|
-
}
|
|
7262
|
-
|
|
7263
|
-
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7264
|
-
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7265
|
-
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7266
|
-
|
|
7267
|
-
keys = Object.keys(a);
|
|
7268
|
-
length = keys.length;
|
|
7269
|
-
if (length !== Object.keys(b).length) return false;
|
|
7270
|
-
|
|
7271
|
-
for (i = length; i-- !== 0;)
|
|
7272
|
-
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7273
|
-
// END: fast-deep-equal
|
|
7274
|
-
|
|
7275
|
-
// START: react-fast-compare
|
|
7276
|
-
// custom handling for DOM elements
|
|
7277
|
-
if (hasElementType && a instanceof Element) return false;
|
|
7278
|
-
|
|
7279
|
-
// custom handling for React/Preact
|
|
7280
|
-
for (i = length; i-- !== 0;) {
|
|
7281
|
-
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7282
|
-
// React-specific: avoid traversing React elements' _owner
|
|
7283
|
-
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7284
|
-
// __v = $_original / $_vnode
|
|
7285
|
-
// __o = $_owner
|
|
7286
|
-
// These properties contain circular references and are not needed when
|
|
7287
|
-
// comparing the actual elements (and not their owners)
|
|
7288
|
-
// .$$typeof and ._store on just reasonable markers of elements
|
|
7289
|
-
|
|
7290
|
-
continue;
|
|
7291
|
-
}
|
|
7292
|
-
|
|
7293
|
-
// all other properties should be traversed as usual
|
|
7294
|
-
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7295
|
-
}
|
|
7296
|
-
// END: react-fast-compare
|
|
7297
|
-
|
|
7298
|
-
// START: fast-deep-equal
|
|
7299
|
-
return true;
|
|
7300
|
-
}
|
|
7301
|
-
|
|
7302
|
-
return a !== a && b !== b;
|
|
7303
|
-
}
|
|
7304
|
-
// end fast-deep-equal
|
|
7305
|
-
|
|
7306
|
-
module.exports = function isEqual(a, b) {
|
|
7307
|
-
try {
|
|
7308
|
-
return equal(a, b);
|
|
7309
|
-
} catch (error) {
|
|
7310
|
-
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7311
|
-
// warn on circular references, don't crash
|
|
7312
|
-
// browsers give this different errors name and messages:
|
|
7313
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7314
|
-
// firefox: "InternalError", too much recursion"
|
|
7315
|
-
// edge: "Error", "Out of stack space"
|
|
7316
|
-
console.warn('react-fast-compare cannot handle circular refs');
|
|
7317
|
-
return false;
|
|
7318
|
-
}
|
|
7319
|
-
// some other error. we should definitely know about these
|
|
7320
|
-
throw error;
|
|
7321
|
-
}
|
|
7322
|
-
};
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
/***/ }),
|
|
7326
|
-
|
|
7327
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
7328
|
-
/*!******************************************************************!*\
|
|
7329
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
7330
|
-
\******************************************************************/
|
|
7183
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
7184
|
+
/*!******************************************************************************************!*\
|
|
7185
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
7186
|
+
\******************************************************************************************/
|
|
7331
7187
|
/***/ ((__unused_webpack_module, exports) => {
|
|
7332
7188
|
|
|
7333
7189
|
"use strict";
|
|
@@ -7516,20 +7372,164 @@ exports.typeOf = typeOf;
|
|
|
7516
7372
|
|
|
7517
7373
|
/***/ }),
|
|
7518
7374
|
|
|
7519
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
7520
|
-
|
|
7521
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
7522
|
-
|
|
7375
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
7376
|
+
/*!***********************************************************************!*\
|
|
7377
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
7378
|
+
\***********************************************************************/
|
|
7523
7379
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
7524
7380
|
|
|
7525
7381
|
"use strict";
|
|
7526
7382
|
|
|
7527
7383
|
|
|
7528
7384
|
if (false) {} else {
|
|
7529
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
7385
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
7530
7386
|
}
|
|
7531
7387
|
|
|
7532
7388
|
|
|
7389
|
+
/***/ }),
|
|
7390
|
+
|
|
7391
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
7392
|
+
/*!*********************************************************!*\
|
|
7393
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
7394
|
+
\*********************************************************/
|
|
7395
|
+
/***/ ((module) => {
|
|
7396
|
+
|
|
7397
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
7398
|
+
|
|
7399
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
7400
|
+
var hasMap = typeof Map === 'function';
|
|
7401
|
+
var hasSet = typeof Set === 'function';
|
|
7402
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
7403
|
+
|
|
7404
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
7405
|
+
|
|
7406
|
+
function equal(a, b) {
|
|
7407
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
7408
|
+
if (a === b) return true;
|
|
7409
|
+
|
|
7410
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
7411
|
+
if (a.constructor !== b.constructor) return false;
|
|
7412
|
+
|
|
7413
|
+
var length, i, keys;
|
|
7414
|
+
if (Array.isArray(a)) {
|
|
7415
|
+
length = a.length;
|
|
7416
|
+
if (length != b.length) return false;
|
|
7417
|
+
for (i = length; i-- !== 0;)
|
|
7418
|
+
if (!equal(a[i], b[i])) return false;
|
|
7419
|
+
return true;
|
|
7420
|
+
}
|
|
7421
|
+
|
|
7422
|
+
// START: Modifications:
|
|
7423
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
7424
|
+
// to co-exist with es5.
|
|
7425
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
7426
|
+
// Basically, take:
|
|
7427
|
+
//
|
|
7428
|
+
// ```js
|
|
7429
|
+
// for (i of a.entries())
|
|
7430
|
+
// if (!b.has(i[0])) return false;
|
|
7431
|
+
// ```
|
|
7432
|
+
//
|
|
7433
|
+
// ... and convert to:
|
|
7434
|
+
//
|
|
7435
|
+
// ```js
|
|
7436
|
+
// it = a.entries();
|
|
7437
|
+
// while (!(i = it.next()).done)
|
|
7438
|
+
// if (!b.has(i.value[0])) return false;
|
|
7439
|
+
// ```
|
|
7440
|
+
//
|
|
7441
|
+
// **Note**: `i` access switches to `i.value`.
|
|
7442
|
+
var it;
|
|
7443
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
7444
|
+
if (a.size !== b.size) return false;
|
|
7445
|
+
it = a.entries();
|
|
7446
|
+
while (!(i = it.next()).done)
|
|
7447
|
+
if (!b.has(i.value[0])) return false;
|
|
7448
|
+
it = a.entries();
|
|
7449
|
+
while (!(i = it.next()).done)
|
|
7450
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
7451
|
+
return true;
|
|
7452
|
+
}
|
|
7453
|
+
|
|
7454
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
7455
|
+
if (a.size !== b.size) return false;
|
|
7456
|
+
it = a.entries();
|
|
7457
|
+
while (!(i = it.next()).done)
|
|
7458
|
+
if (!b.has(i.value[0])) return false;
|
|
7459
|
+
return true;
|
|
7460
|
+
}
|
|
7461
|
+
// END: Modifications
|
|
7462
|
+
|
|
7463
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
7464
|
+
length = a.length;
|
|
7465
|
+
if (length != b.length) return false;
|
|
7466
|
+
for (i = length; i-- !== 0;)
|
|
7467
|
+
if (a[i] !== b[i]) return false;
|
|
7468
|
+
return true;
|
|
7469
|
+
}
|
|
7470
|
+
|
|
7471
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
7472
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
7473
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
7474
|
+
|
|
7475
|
+
keys = Object.keys(a);
|
|
7476
|
+
length = keys.length;
|
|
7477
|
+
if (length !== Object.keys(b).length) return false;
|
|
7478
|
+
|
|
7479
|
+
for (i = length; i-- !== 0;)
|
|
7480
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
7481
|
+
// END: fast-deep-equal
|
|
7482
|
+
|
|
7483
|
+
// START: react-fast-compare
|
|
7484
|
+
// custom handling for DOM elements
|
|
7485
|
+
if (hasElementType && a instanceof Element) return false;
|
|
7486
|
+
|
|
7487
|
+
// custom handling for React/Preact
|
|
7488
|
+
for (i = length; i-- !== 0;) {
|
|
7489
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
7490
|
+
// React-specific: avoid traversing React elements' _owner
|
|
7491
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
7492
|
+
// __v = $_original / $_vnode
|
|
7493
|
+
// __o = $_owner
|
|
7494
|
+
// These properties contain circular references and are not needed when
|
|
7495
|
+
// comparing the actual elements (and not their owners)
|
|
7496
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
7497
|
+
|
|
7498
|
+
continue;
|
|
7499
|
+
}
|
|
7500
|
+
|
|
7501
|
+
// all other properties should be traversed as usual
|
|
7502
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
7503
|
+
}
|
|
7504
|
+
// END: react-fast-compare
|
|
7505
|
+
|
|
7506
|
+
// START: fast-deep-equal
|
|
7507
|
+
return true;
|
|
7508
|
+
}
|
|
7509
|
+
|
|
7510
|
+
return a !== a && b !== b;
|
|
7511
|
+
}
|
|
7512
|
+
// end fast-deep-equal
|
|
7513
|
+
|
|
7514
|
+
module.exports = function isEqual(a, b) {
|
|
7515
|
+
try {
|
|
7516
|
+
return equal(a, b);
|
|
7517
|
+
} catch (error) {
|
|
7518
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
7519
|
+
// warn on circular references, don't crash
|
|
7520
|
+
// browsers give this different errors name and messages:
|
|
7521
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
7522
|
+
// firefox: "InternalError", too much recursion"
|
|
7523
|
+
// edge: "Error", "Out of stack space"
|
|
7524
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
7525
|
+
return false;
|
|
7526
|
+
}
|
|
7527
|
+
// some other error. we should definitely know about these
|
|
7528
|
+
throw error;
|
|
7529
|
+
}
|
|
7530
|
+
};
|
|
7531
|
+
|
|
7532
|
+
|
|
7533
7533
|
/***/ }),
|
|
7534
7534
|
|
|
7535
7535
|
/***/ "../../victory-core/es/victory-container/victory-container.js":
|
|
@@ -7541,7 +7541,7 @@ if (false) {} else {
|
|
|
7541
7541
|
"use strict";
|
|
7542
7542
|
__webpack_require__.r(__webpack_exports__);
|
|
7543
7543
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7544
|
-
/* harmony export */ "
|
|
7544
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
7545
7545
|
/* harmony export */ });
|
|
7546
7546
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7547
7547
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7569,12 +7569,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7569
7569
|
|
|
7570
7570
|
|
|
7571
7571
|
|
|
7572
|
-
function _extends() { _extends = Object.assign
|
|
7572
|
+
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); }
|
|
7573
7573
|
|
|
7574
7574
|
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; }
|
|
7575
7575
|
|
|
7576
7576
|
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; }
|
|
7577
7577
|
|
|
7578
|
+
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; }
|
|
7579
|
+
|
|
7578
7580
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7579
7581
|
|
|
7580
7582
|
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); } }
|
|
@@ -7583,7 +7585,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7583
7585
|
|
|
7584
7586
|
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); }
|
|
7585
7587
|
|
|
7586
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7588
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7587
7589
|
|
|
7588
7590
|
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); }; }
|
|
7589
7591
|
|
|
@@ -7593,10 +7595,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7593
7595
|
|
|
7594
7596
|
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; } }
|
|
7595
7597
|
|
|
7596
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7597
|
-
|
|
7598
|
-
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; }
|
|
7599
|
-
|
|
7598
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7600
7599
|
|
|
7601
7600
|
|
|
7602
7601
|
|
|
@@ -7611,13 +7610,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7611
7610
|
|
|
7612
7611
|
var _super = _createSuper(VictoryContainer);
|
|
7613
7612
|
|
|
7613
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7614
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7614
7615
|
function VictoryContainer(props) {
|
|
7615
7616
|
var _this;
|
|
7616
7617
|
|
|
7617
7618
|
_classCallCheck(this, VictoryContainer);
|
|
7618
7619
|
|
|
7619
7620
|
_this = _super.call(this, props);
|
|
7620
|
-
_this.containerId =
|
|
7621
|
+
_this.containerId = void 0;
|
|
7622
|
+
_this.portalRef = void 0;
|
|
7623
|
+
_this.containerRef = void 0;
|
|
7624
|
+
_this.shouldHandleWheel = void 0;
|
|
7621
7625
|
|
|
7622
7626
|
_this.savePortalRef = function (portal) {
|
|
7623
7627
|
_this.portalRef = portal;
|
|
@@ -7636,18 +7640,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7636
7640
|
return _this.portalRef.portalDeregister(key);
|
|
7637
7641
|
};
|
|
7638
7642
|
|
|
7639
|
-
_this.saveContainerRef =
|
|
7643
|
+
_this.saveContainerRef = function (container) {
|
|
7644
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
7645
|
+
_this.props.containerRef(container);
|
|
7646
|
+
}
|
|
7647
|
+
|
|
7640
7648
|
_this.containerRef = container;
|
|
7641
7649
|
return container;
|
|
7642
7650
|
};
|
|
7643
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
7644
7651
|
|
|
7645
|
-
|
|
7646
|
-
|
|
7647
|
-
|
|
7648
|
-
};
|
|
7649
|
-
}
|
|
7652
|
+
_this.handleWheel = function (e) {
|
|
7653
|
+
return e.preventDefault();
|
|
7654
|
+
};
|
|
7650
7655
|
|
|
7656
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
7657
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
7651
7658
|
return _this;
|
|
7652
7659
|
}
|
|
7653
7660
|
|
|
@@ -7740,7 +7747,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7740
7747
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
7741
7748
|
style: portalSvgStyle
|
|
7742
7749
|
};
|
|
7743
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__
|
|
7750
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
7744
7751
|
value: {
|
|
7745
7752
|
portalUpdate: this.portalUpdate,
|
|
7746
7753
|
portalRegister: this.portalRegister,
|
|
@@ -7795,12 +7802,9 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7795
7802
|
|
|
7796
7803
|
return VictoryContainer;
|
|
7797
7804
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
7798
|
-
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
_defineProperty(VictoryContainer, "role", "container");
|
|
7802
|
-
|
|
7803
|
-
_defineProperty(VictoryContainer, "propTypes", {
|
|
7805
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
7806
|
+
VictoryContainer.role = "container";
|
|
7807
|
+
VictoryContainer.propTypes = {
|
|
7804
7808
|
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7805
7809
|
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7806
7810
|
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)]),
|
|
@@ -7829,19 +7833,16 @@ _defineProperty(VictoryContainer, "propTypes", {
|
|
|
7829
7833
|
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7830
7834
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7831
7835
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7832
|
-
}
|
|
7833
|
-
|
|
7834
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
7836
|
+
};
|
|
7837
|
+
VictoryContainer.defaultProps = {
|
|
7835
7838
|
className: "VictoryContainer",
|
|
7836
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
7839
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
7837
7840
|
portalZIndex: 99,
|
|
7838
7841
|
responsive: true,
|
|
7839
7842
|
role: "img"
|
|
7840
|
-
}
|
|
7841
|
-
|
|
7842
|
-
|
|
7843
|
-
|
|
7844
|
-
|
|
7843
|
+
};
|
|
7844
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
7845
|
+
//# sourceMappingURL=victory-container.js.map
|
|
7845
7846
|
|
|
7846
7847
|
/***/ }),
|
|
7847
7848
|
|
|
@@ -7854,19 +7855,19 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
7854
7855
|
"use strict";
|
|
7855
7856
|
__webpack_require__.r(__webpack_exports__);
|
|
7856
7857
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7857
|
-
/* harmony export */ "
|
|
7858
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
7858
7859
|
/* harmony export */ });
|
|
7859
7860
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7860
7861
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7861
7862
|
|
|
7863
|
+
|
|
7862
7864
|
/**
|
|
7863
7865
|
* The React context object consumers may use to access the context of the
|
|
7864
7866
|
* portal.
|
|
7865
7867
|
*/
|
|
7866
|
-
|
|
7867
7868
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
7868
7869
|
PortalContext.displayName = "PortalContext";
|
|
7869
|
-
|
|
7870
|
+
//# sourceMappingURL=portal-context.js.map
|
|
7870
7871
|
|
|
7871
7872
|
/***/ }),
|
|
7872
7873
|
|
|
@@ -7879,7 +7880,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
7879
7880
|
"use strict";
|
|
7880
7881
|
__webpack_require__.r(__webpack_exports__);
|
|
7881
7882
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7882
|
-
/* harmony export */ "
|
|
7883
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
7883
7884
|
/* harmony export */ });
|
|
7884
7885
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
7885
7886
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7898,7 +7899,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7898
7899
|
|
|
7899
7900
|
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); }
|
|
7900
7901
|
|
|
7901
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7902
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7902
7903
|
|
|
7903
7904
|
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); }; }
|
|
7904
7905
|
|
|
@@ -7908,10 +7909,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7908
7909
|
|
|
7909
7910
|
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; } }
|
|
7910
7911
|
|
|
7911
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7912
|
-
|
|
7913
|
-
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; }
|
|
7914
|
-
|
|
7912
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7915
7913
|
|
|
7916
7914
|
|
|
7917
7915
|
|
|
@@ -7927,32 +7925,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
7927
7925
|
_classCallCheck(this, Portal);
|
|
7928
7926
|
|
|
7929
7927
|
_this = _super.call(this, props);
|
|
7928
|
+
_this.map = void 0;
|
|
7929
|
+
_this.index = void 0;
|
|
7930
|
+
|
|
7931
|
+
_this.portalRegister = function () {
|
|
7932
|
+
return ++_this.index;
|
|
7933
|
+
};
|
|
7934
|
+
|
|
7935
|
+
_this.portalUpdate = function (key, element) {
|
|
7936
|
+
_this.map[key] = element;
|
|
7937
|
+
|
|
7938
|
+
_this.forceUpdate();
|
|
7939
|
+
};
|
|
7940
|
+
|
|
7941
|
+
_this.portalDeregister = function (key) {
|
|
7942
|
+
delete _this.map[key];
|
|
7943
|
+
|
|
7944
|
+
_this.forceUpdate();
|
|
7945
|
+
};
|
|
7946
|
+
|
|
7930
7947
|
_this.map = {};
|
|
7931
7948
|
_this.index = 1;
|
|
7932
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
7933
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
7934
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
7935
7949
|
return _this;
|
|
7936
7950
|
}
|
|
7937
7951
|
|
|
7938
7952
|
_createClass(Portal, [{
|
|
7939
|
-
key: "portalRegister",
|
|
7940
|
-
value: function portalRegister() {
|
|
7941
|
-
return ++this.index;
|
|
7942
|
-
}
|
|
7943
|
-
}, {
|
|
7944
|
-
key: "portalUpdate",
|
|
7945
|
-
value: function portalUpdate(key, element) {
|
|
7946
|
-
this.map[key] = element;
|
|
7947
|
-
this.forceUpdate();
|
|
7948
|
-
}
|
|
7949
|
-
}, {
|
|
7950
|
-
key: "portalDeregister",
|
|
7951
|
-
value: function portalDeregister(key) {
|
|
7952
|
-
delete this.map[key];
|
|
7953
|
-
this.forceUpdate();
|
|
7954
|
-
}
|
|
7955
|
-
}, {
|
|
7956
7953
|
key: "getChildren",
|
|
7957
7954
|
value: function getChildren() {
|
|
7958
7955
|
var _this2 = this;
|
|
@@ -7974,18 +7971,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
7974
7971
|
|
|
7975
7972
|
return Portal;
|
|
7976
7973
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
_defineProperty(Portal, "propTypes", {
|
|
7974
|
+
Portal.displayName = "Portal";
|
|
7975
|
+
Portal.propTypes = {
|
|
7981
7976
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7982
7977
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
7983
7978
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
7984
7979
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7985
7980
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
7986
|
-
}
|
|
7987
|
-
|
|
7988
|
-
|
|
7981
|
+
};
|
|
7982
|
+
//# sourceMappingURL=portal.js.map
|
|
7989
7983
|
|
|
7990
7984
|
/***/ }),
|
|
7991
7985
|
|
|
@@ -7998,7 +7992,7 @@ _defineProperty(Portal, "propTypes", {
|
|
|
7998
7992
|
"use strict";
|
|
7999
7993
|
__webpack_require__.r(__webpack_exports__);
|
|
8000
7994
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8001
|
-
/* harmony export */ "
|
|
7995
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
8002
7996
|
/* harmony export */ });
|
|
8003
7997
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8004
7998
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8045,7 +8039,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
8045
8039
|
|
|
8046
8040
|
var strokeLinecap = "round";
|
|
8047
8041
|
var strokeLinejoin = "round";
|
|
8048
|
-
|
|
8042
|
+
var grayscale = {
|
|
8049
8043
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
8050
8044
|
style: {
|
|
8051
8045
|
data: {
|
|
@@ -8260,7 +8254,8 @@ var strokeLinejoin = "round";
|
|
|
8260
8254
|
}
|
|
8261
8255
|
}
|
|
8262
8256
|
}, baseProps)
|
|
8263
|
-
}
|
|
8257
|
+
};
|
|
8258
|
+
//# sourceMappingURL=grayscale.js.map
|
|
8264
8259
|
|
|
8265
8260
|
/***/ }),
|
|
8266
8261
|
|
|
@@ -8273,7 +8268,7 @@ var strokeLinejoin = "round";
|
|
|
8273
8268
|
"use strict";
|
|
8274
8269
|
__webpack_require__.r(__webpack_exports__);
|
|
8275
8270
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8276
|
-
/* harmony export */ "
|
|
8271
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
8277
8272
|
/* harmony export */ });
|
|
8278
8273
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8279
8274
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8330,7 +8325,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
8330
8325
|
var strokeDasharray = "10, 5";
|
|
8331
8326
|
var strokeLinecap = "round";
|
|
8332
8327
|
var strokeLinejoin = "round";
|
|
8333
|
-
|
|
8328
|
+
var material = {
|
|
8334
8329
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
8335
8330
|
style: {
|
|
8336
8331
|
data: {
|
|
@@ -8562,7 +8557,8 @@ var strokeLinejoin = "round";
|
|
|
8562
8557
|
}
|
|
8563
8558
|
}
|
|
8564
8559
|
}, baseProps)
|
|
8565
|
-
}
|
|
8560
|
+
};
|
|
8561
|
+
//# sourceMappingURL=material.js.map
|
|
8566
8562
|
|
|
8567
8563
|
/***/ }),
|
|
8568
8564
|
|
|
@@ -8575,16 +8571,18 @@ var strokeLinejoin = "round";
|
|
|
8575
8571
|
"use strict";
|
|
8576
8572
|
__webpack_require__.r(__webpack_exports__);
|
|
8577
8573
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8578
|
-
/* harmony export */ "
|
|
8574
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
8579
8575
|
/* harmony export */ });
|
|
8580
|
-
/* harmony import */ var
|
|
8581
|
-
/* harmony import */ var
|
|
8576
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
8577
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
8582
8578
|
|
|
8583
8579
|
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
grayscale:
|
|
8587
|
-
|
|
8580
|
+
|
|
8581
|
+
var VictoryTheme = {
|
|
8582
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
8583
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
8584
|
+
};
|
|
8585
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
8588
8586
|
|
|
8589
8587
|
/***/ }),
|
|
8590
8588
|
|
|
@@ -8665,7 +8663,7 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
8665
8663
|
|
|
8666
8664
|
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; }
|
|
8667
8665
|
|
|
8668
|
-
|
|
8666
|
+
|
|
8669
8667
|
|
|
8670
8668
|
|
|
8671
8669
|
|
|
@@ -8676,7 +8674,6 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
8676
8674
|
* @param {Boolean} horizontal: true for horizontal charts
|
|
8677
8675
|
* @returns {String} the dimension appropriate for the axis given its props
|
|
8678
8676
|
*/
|
|
8679
|
-
|
|
8680
8677
|
function getAxis(props) {
|
|
8681
8678
|
var dependentAxis = props.dependentAxis;
|
|
8682
8679
|
return dependentAxis ? "y" : "x";
|
|
@@ -8862,7 +8859,7 @@ function getTickArray(props) {
|
|
|
8862
8859
|
}) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
|
|
8863
8860
|
}
|
|
8864
8861
|
|
|
8865
|
-
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(
|
|
8862
|
+
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
|
|
8866
8863
|
|
|
8867
8864
|
var buildTickArray = function (arr) {
|
|
8868
8865
|
var newTickArray = [];
|
|
@@ -8907,11 +8904,11 @@ function getTickFormat(props, scale) {
|
|
|
8907
8904
|
return defaultTickFormat || scaleTickFormat;
|
|
8908
8905
|
} else if (tickFormat && Array.isArray(tickFormat)) {
|
|
8909
8906
|
var tickArray = getTickArray(props);
|
|
8910
|
-
var tickArrayIndices = tickArray ? tickArray.map(function (v) {
|
|
8907
|
+
var tickArrayIndices = tickArray === null || tickArray === void 0 ? void 0 : tickArray.map(function (v) {
|
|
8911
8908
|
return v.index;
|
|
8912
|
-
})
|
|
8909
|
+
});
|
|
8913
8910
|
var filteredTickFormat = tickFormat.filter(function (t, index) {
|
|
8914
|
-
return tickArrayIndices.includes(index);
|
|
8911
|
+
return tickArrayIndices === null || tickArrayIndices === void 0 ? void 0 : tickArrayIndices.includes(index);
|
|
8915
8912
|
});
|
|
8916
8913
|
return function (x, index) {
|
|
8917
8914
|
return filteredTickFormat[index];
|
|
@@ -8945,7 +8942,8 @@ function downsampleTicks(ticks, tickCount) {
|
|
|
8945
8942
|
});
|
|
8946
8943
|
}
|
|
8947
8944
|
|
|
8948
|
-
function getTicks(props, scale
|
|
8945
|
+
function getTicks(props, scale) {
|
|
8946
|
+
var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
8949
8947
|
var tickCount = props.tickCount;
|
|
8950
8948
|
var tickArray = getTickArray(props);
|
|
8951
8949
|
var tickValues = tickArray ? tickArray.map(function (v) {
|
|
@@ -9068,6 +9066,7 @@ function modifyProps(props, fallbackProps) {
|
|
|
9068
9066
|
theme: theme
|
|
9069
9067
|
}), fallbackProps, "axis");
|
|
9070
9068
|
}
|
|
9069
|
+
//# sourceMappingURL=axis.js.map
|
|
9071
9070
|
|
|
9072
9071
|
/***/ }),
|
|
9073
9072
|
|
|
@@ -9101,9 +9100,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9101
9100
|
|
|
9102
9101
|
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; }
|
|
9103
9102
|
|
|
9104
|
-
/* eslint-disable func-style */
|
|
9105
|
-
|
|
9106
|
-
/* eslint-disable no-use-before-define */
|
|
9107
9103
|
function isNonEmptyArray(collection) {
|
|
9108
9104
|
return Array.isArray(collection) && collection.length > 0;
|
|
9109
9105
|
}
|
|
@@ -9142,7 +9138,8 @@ function getMaxValue(arr) {
|
|
|
9142
9138
|
}
|
|
9143
9139
|
|
|
9144
9140
|
var array = arr.concat(values);
|
|
9145
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
9141
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9142
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
9146
9143
|
}
|
|
9147
9144
|
function getMinValue(arr) {
|
|
9148
9145
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -9150,8 +9147,10 @@ function getMinValue(arr) {
|
|
|
9150
9147
|
}
|
|
9151
9148
|
|
|
9152
9149
|
var array = arr.concat(values);
|
|
9153
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
9150
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
9151
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
9154
9152
|
}
|
|
9153
|
+
//# sourceMappingURL=collection.js.map
|
|
9155
9154
|
|
|
9156
9155
|
/***/ }),
|
|
9157
9156
|
|
|
@@ -9164,9 +9163,7 @@ function getMinValue(arr) {
|
|
|
9164
9163
|
"use strict";
|
|
9165
9164
|
__webpack_require__.r(__webpack_exports__);
|
|
9166
9165
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9167
|
-
/* harmony export */ "
|
|
9168
|
-
/* harmony export */ "dataProps": () => (/* binding */ dataProps),
|
|
9169
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
9166
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
9170
9167
|
/* harmony export */ });
|
|
9171
9168
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9172
9169
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9174,26 +9171,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9174
9171
|
|
|
9175
9172
|
|
|
9176
9173
|
var dataProps = {
|
|
9174
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9177
9175
|
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({
|
|
9178
9176
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
9179
9177
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
9180
9178
|
})]),
|
|
9179
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9181
9180
|
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)]),
|
|
9182
9181
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9183
9182
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9184
9183
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9185
9184
|
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)]),
|
|
9186
9185
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9187
|
-
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))]),
|
|
9186
|
+
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))]),
|
|
9188
9187
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
9189
9188
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9190
9189
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9191
9190
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9192
9191
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9193
9192
|
}),
|
|
9194
|
-
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))]),
|
|
9195
|
-
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))]),
|
|
9196
|
-
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))])
|
|
9193
|
+
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))]),
|
|
9194
|
+
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))]),
|
|
9195
|
+
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))])
|
|
9197
9196
|
};
|
|
9198
9197
|
var baseProps = {
|
|
9199
9198
|
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)]),
|
|
@@ -9202,14 +9201,17 @@ var baseProps = {
|
|
|
9202
9201
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9203
9202
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9204
9203
|
})]),
|
|
9204
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9205
9205
|
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({
|
|
9206
9206
|
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)]),
|
|
9207
9207
|
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)])
|
|
9208
9208
|
})]),
|
|
9209
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9209
9210
|
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({
|
|
9210
9211
|
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)]),
|
|
9211
9212
|
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)])
|
|
9212
9213
|
})]),
|
|
9214
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9213
9215
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9214
9216
|
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))]),
|
|
9215
9217
|
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))])
|
|
@@ -9220,6 +9222,7 @@ var baseProps = {
|
|
|
9220
9222
|
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)]),
|
|
9221
9223
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
9222
9224
|
})),
|
|
9225
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9223
9226
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9224
9227
|
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
9225
9228
|
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)]),
|
|
@@ -9230,10 +9233,12 @@ var baseProps = {
|
|
|
9230
9233
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
9231
9234
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
9232
9235
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
9236
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9233
9237
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9234
9238
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9235
9239
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
9236
9240
|
}),
|
|
9241
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9237
9242
|
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({
|
|
9238
9243
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9239
9244
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -9242,17 +9247,19 @@ var baseProps = {
|
|
|
9242
9247
|
})]),
|
|
9243
9248
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
9244
9249
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9245
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
9246
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
9250
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
9251
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
9247
9252
|
})]),
|
|
9248
9253
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9249
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
9250
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
9254
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
9255
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
9251
9256
|
})]),
|
|
9257
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9252
9258
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9253
9259
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
9254
9260
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
9255
9261
|
}),
|
|
9262
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9256
9263
|
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({
|
|
9257
9264
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
9258
9265
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -9272,6 +9279,7 @@ var primitiveProps = {
|
|
|
9272
9279
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
9273
9280
|
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)]),
|
|
9274
9281
|
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)]),
|
|
9282
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
9275
9283
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
9276
9284
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
9277
9285
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -9287,6 +9295,12 @@ var primitiveProps = {
|
|
|
9287
9295
|
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)]),
|
|
9288
9296
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
9289
9297
|
};
|
|
9298
|
+
var CommonProps = {
|
|
9299
|
+
dataProps: dataProps,
|
|
9300
|
+
baseProps: baseProps,
|
|
9301
|
+
primitiveProps: primitiveProps
|
|
9302
|
+
};
|
|
9303
|
+
//# sourceMappingURL=common-props.js.map
|
|
9290
9304
|
|
|
9291
9305
|
/***/ }),
|
|
9292
9306
|
|
|
@@ -9369,8 +9383,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9369
9383
|
|
|
9370
9384
|
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; }
|
|
9371
9385
|
|
|
9372
|
-
/* eslint-disable func-style */
|
|
9373
|
-
|
|
9374
9386
|
/* eslint-disable no-use-before-define */
|
|
9375
9387
|
|
|
9376
9388
|
|
|
@@ -9802,6 +9814,7 @@ function isDataComponent(component) {
|
|
|
9802
9814
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
9803
9815
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
9804
9816
|
}
|
|
9817
|
+
//# sourceMappingURL=data.js.map
|
|
9805
9818
|
|
|
9806
9819
|
/***/ }),
|
|
9807
9820
|
|
|
@@ -9864,8 +9877,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9864
9877
|
|
|
9865
9878
|
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; }
|
|
9866
9879
|
|
|
9867
|
-
/* eslint-disable func-style */
|
|
9868
|
-
|
|
9869
9880
|
/* eslint-disable no-use-before-define */
|
|
9870
9881
|
|
|
9871
9882
|
|
|
@@ -9905,8 +9916,9 @@ function getDomainPadding(props, axis) {
|
|
|
9905
9916
|
}
|
|
9906
9917
|
|
|
9907
9918
|
function getFlatData(dataset, axis) {
|
|
9919
|
+
var axisKey = "_".concat(axis);
|
|
9908
9920
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
9909
|
-
return datum[
|
|
9921
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
9910
9922
|
});
|
|
9911
9923
|
}
|
|
9912
9924
|
|
|
@@ -9971,7 +9983,9 @@ function padDomain(domain, props, axis) {
|
|
|
9971
9983
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
9972
9984
|
// Naive initial padding calculation
|
|
9973
9985
|
var initialPadding = {
|
|
9986
|
+
// @ts-expect-error `max/min` might be dates
|
|
9974
9987
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
9988
|
+
// @ts-expect-error `max/min` might be dates
|
|
9975
9989
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
9976
9990
|
}; // Adjust the domain by the initial padding
|
|
9977
9991
|
|
|
@@ -10256,6 +10270,7 @@ function isDomainComponent(component) {
|
|
|
10256
10270
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
10257
10271
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
10258
10272
|
}
|
|
10273
|
+
//# sourceMappingURL=domain.js.map
|
|
10259
10274
|
|
|
10260
10275
|
/***/ }),
|
|
10261
10276
|
|
|
@@ -10324,15 +10339,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10324
10339
|
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; }
|
|
10325
10340
|
|
|
10326
10341
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
10342
|
+
|
|
10327
10343
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
10328
10344
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
10329
10345
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
10330
10346
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
10331
10347
|
* (i.e. VictoryChart) in the case of shared events
|
|
10332
10348
|
*/
|
|
10333
|
-
// eslint-disable-next-line max-params
|
|
10334
|
-
|
|
10335
|
-
|
|
10349
|
+
// eslint-disable-next-line max-params
|
|
10350
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
10351
|
+
getScopedEvents) {
|
|
10336
10352
|
var _this = this;
|
|
10337
10353
|
|
|
10338
10354
|
// Returns all events that apply to a particular target element
|
|
@@ -10555,24 +10571,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
10555
10571
|
return memo;
|
|
10556
10572
|
}, {});
|
|
10557
10573
|
}
|
|
10558
|
-
/*
|
|
10574
|
+
/*
|
|
10575
|
+
* Returns a partially applied event handler for a specific target element
|
|
10559
10576
|
* This allows event handlers to have access to props controlling each element
|
|
10560
10577
|
*/
|
|
10561
10578
|
|
|
10562
10579
|
function getPartialEvents(events, eventKey, childProps) {
|
|
10563
|
-
|
|
10580
|
+
if (!events) return {};
|
|
10581
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
10564
10582
|
var appliedEvent = function (evt) {
|
|
10565
10583
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
10566
10584
|
};
|
|
10567
10585
|
|
|
10568
10586
|
memo[eventName] = appliedEvent;
|
|
10569
10587
|
return memo;
|
|
10570
|
-
}, {})
|
|
10588
|
+
}, {});
|
|
10571
10589
|
}
|
|
10590
|
+
|
|
10572
10591
|
/* Returns the property of the state object corresponding to event changes for
|
|
10573
10592
|
* a particular element
|
|
10574
10593
|
*/
|
|
10575
|
-
|
|
10594
|
+
// eslint-disable-next-line max-params
|
|
10576
10595
|
function getEventState(eventKey, namespace, childType) {
|
|
10577
10596
|
// Mandatory usage: `getEventState.bind(this)`
|
|
10578
10597
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -10757,6 +10776,7 @@ var emulateReactEvent = function (event) {
|
|
|
10757
10776
|
nativeEvent: event
|
|
10758
10777
|
});
|
|
10759
10778
|
};
|
|
10779
|
+
//# sourceMappingURL=events.js.map
|
|
10760
10780
|
|
|
10761
10781
|
/***/ }),
|
|
10762
10782
|
|
|
@@ -10810,8 +10830,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10810
10830
|
|
|
10811
10831
|
|
|
10812
10832
|
|
|
10813
|
-
/* eslint-disable func-style */
|
|
10814
|
-
|
|
10815
10833
|
/* eslint-disable no-use-before-define */
|
|
10816
10834
|
|
|
10817
10835
|
|
|
@@ -10840,7 +10858,7 @@ function getPolarRange(props, axis) {
|
|
|
10840
10858
|
|
|
10841
10859
|
/**
|
|
10842
10860
|
* creates an object with some keys excluded
|
|
10843
|
-
* replacement for lodash.omit for performance. does not
|
|
10861
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
10844
10862
|
* @param {Object} originalObject: created object will be based on this object
|
|
10845
10863
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
10846
10864
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -10853,6 +10871,7 @@ function omit(originalObject) {
|
|
|
10853
10871
|
var newObject = {};
|
|
10854
10872
|
|
|
10855
10873
|
for (var key in originalObject) {
|
|
10874
|
+
// @ts-expect-error String is not assignable to Key
|
|
10856
10875
|
if (ks.indexOf(key) >= 0) {
|
|
10857
10876
|
continue;
|
|
10858
10877
|
}
|
|
@@ -11085,7 +11104,9 @@ function reduceChildren(children, iteratee) {
|
|
|
11085
11104
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
11086
11105
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
11087
11106
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
11088
|
-
return
|
|
11107
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
11108
|
+
memo.concat(item)
|
|
11109
|
+
);
|
|
11089
11110
|
};
|
|
11090
11111
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
11091
11112
|
|
|
@@ -11129,7 +11150,7 @@ function reduceChildren(children, iteratee) {
|
|
|
11129
11150
|
/**
|
|
11130
11151
|
* @param {Object} props: the props object
|
|
11131
11152
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
11132
|
-
* children or nested children are
|
|
11153
|
+
* children or nested children are horizontal
|
|
11133
11154
|
*/
|
|
11134
11155
|
|
|
11135
11156
|
function isHorizontal(props) {
|
|
@@ -11152,6 +11173,7 @@ function isHorizontal(props) {
|
|
|
11152
11173
|
|
|
11153
11174
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
11154
11175
|
}
|
|
11176
|
+
//# sourceMappingURL=helpers.js.map
|
|
11155
11177
|
|
|
11156
11178
|
/***/ }),
|
|
11157
11179
|
|
|
@@ -11310,6 +11332,7 @@ var useAnimationState = function () {
|
|
|
11310
11332
|
getProps: getProps
|
|
11311
11333
|
};
|
|
11312
11334
|
};
|
|
11335
|
+
//# sourceMappingURL=use-animation-state.js.map
|
|
11313
11336
|
|
|
11314
11337
|
/***/ }),
|
|
11315
11338
|
|
|
@@ -11327,13 +11350,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11327
11350
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
11328
11351
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
11329
11352
|
|
|
11330
|
-
|
|
11353
|
+
function usePreviousProps(props) {
|
|
11331
11354
|
var ref = react__WEBPACK_IMPORTED_MODULE_0___default().useRef();
|
|
11332
11355
|
react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(function () {
|
|
11333
11356
|
ref.current = props;
|
|
11334
11357
|
});
|
|
11335
|
-
return ref.current
|
|
11336
|
-
}
|
|
11358
|
+
return ref.current;
|
|
11359
|
+
}
|
|
11360
|
+
//# sourceMappingURL=use-previous-props.js.map
|
|
11337
11361
|
|
|
11338
11362
|
/***/ }),
|
|
11339
11363
|
|
|
@@ -11357,7 +11381,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11357
11381
|
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
11358
11382
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
11359
11383
|
/* harmony export */ });
|
|
11360
|
-
/* eslint-disable func-style */
|
|
11361
11384
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
11362
11385
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
11363
11386
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -11378,15 +11401,16 @@ function isMap(x) {
|
|
|
11378
11401
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
11379
11402
|
}
|
|
11380
11403
|
function shallowToJS(x, whitelist) {
|
|
11381
|
-
return isIterable(x) ? x.reduce(function (
|
|
11404
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
11382
11405
|
if (whitelist && whitelist[key]) {
|
|
11383
11406
|
curr = shallowToJS(curr);
|
|
11384
11407
|
}
|
|
11385
11408
|
|
|
11386
|
-
|
|
11387
|
-
return
|
|
11409
|
+
result[key] = curr;
|
|
11410
|
+
return result;
|
|
11388
11411
|
}, isList(x) ? [] : {}) : x;
|
|
11389
11412
|
}
|
|
11413
|
+
//# sourceMappingURL=immutable.js.map
|
|
11390
11414
|
|
|
11391
11415
|
/***/ }),
|
|
11392
11416
|
|
|
@@ -11405,7 +11429,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11405
11429
|
|
|
11406
11430
|
/* eslint-disable no-console */
|
|
11407
11431
|
// TODO: Use "warning" npm module like React is switching to.
|
|
11408
|
-
// eslint-disable-next-line func-style
|
|
11409
11432
|
function warn(message) {
|
|
11410
11433
|
if (true) {
|
|
11411
11434
|
if (console && console.warn) {
|
|
@@ -11413,6 +11436,7 @@ function warn(message) {
|
|
|
11413
11436
|
}
|
|
11414
11437
|
}
|
|
11415
11438
|
}
|
|
11439
|
+
//# sourceMappingURL=log.js.map
|
|
11416
11440
|
|
|
11417
11441
|
/***/ }),
|
|
11418
11442
|
|
|
@@ -11440,12 +11464,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11440
11464
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
11441
11465
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
11442
11466
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
11443
|
-
/* harmony import */ var
|
|
11444
|
-
/* harmony import */ var
|
|
11445
|
-
/* harmony import */ var
|
|
11446
|
-
/* harmony import */ var
|
|
11447
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
11448
|
-
|
|
11467
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
11468
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
11469
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
11470
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
11449
11471
|
|
|
11450
11472
|
|
|
11451
11473
|
|
|
@@ -11453,6 +11475,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11453
11475
|
|
|
11454
11476
|
|
|
11455
11477
|
|
|
11478
|
+
|
|
11479
|
+
|
|
11456
11480
|
/**
|
|
11457
11481
|
* Return a new validator based on `validator` but with the option to chain
|
|
11458
11482
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -11460,30 +11484,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
11460
11484
|
* @param {Function} validator Validation function.
|
|
11461
11485
|
* @returns {Function} Validator with `isRequired` option.
|
|
11462
11486
|
*/
|
|
11463
|
-
|
|
11464
11487
|
var makeChainable = function (validator) {
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11488
|
+
var createChainable = function (isRequired) {
|
|
11489
|
+
return function (props, propName, componentName) {
|
|
11490
|
+
var value = props[propName];
|
|
11468
11491
|
|
|
11469
|
-
|
|
11470
|
-
|
|
11471
|
-
|
|
11472
|
-
|
|
11492
|
+
if (value === undefined || value === null) {
|
|
11493
|
+
if (isRequired) {
|
|
11494
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
11495
|
+
}
|
|
11473
11496
|
|
|
11474
|
-
|
|
11475
|
-
|
|
11497
|
+
return null;
|
|
11498
|
+
}
|
|
11476
11499
|
|
|
11477
|
-
|
|
11478
|
-
|
|
11479
|
-
|
|
11500
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
11501
|
+
rest[_key - 3] = arguments[_key];
|
|
11502
|
+
}
|
|
11480
11503
|
|
|
11481
|
-
|
|
11504
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11505
|
+
};
|
|
11482
11506
|
};
|
|
11483
11507
|
|
|
11484
|
-
var chainable =
|
|
11485
|
-
|
|
11486
|
-
|
|
11508
|
+
var chainable = Object.assign(createChainable(false), {
|
|
11509
|
+
isRequired: createChainable(true)
|
|
11510
|
+
});
|
|
11487
11511
|
return chainable;
|
|
11488
11512
|
};
|
|
11489
11513
|
|
|
@@ -11513,7 +11537,7 @@ var getConstructor = function (value) {
|
|
|
11513
11537
|
};
|
|
11514
11538
|
/**
|
|
11515
11539
|
* Get the name of the constructor used to create `value`, using
|
|
11516
|
-
* `Object.
|
|
11540
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
11517
11541
|
* "null" or "undefined", respectively.
|
|
11518
11542
|
* @param {*} value Instance to return the constructor name of.
|
|
11519
11543
|
* @returns {String} Name of the constructor.
|
|
@@ -11543,10 +11567,11 @@ function deprecated(propType, explanation) {
|
|
|
11543
11567
|
var value = props[propName];
|
|
11544
11568
|
|
|
11545
11569
|
if (value !== null && value !== undefined) {
|
|
11546
|
-
|
|
11570
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
11547
11571
|
}
|
|
11548
11572
|
|
|
11549
|
-
|
|
11573
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
11574
|
+
return null;
|
|
11550
11575
|
};
|
|
11551
11576
|
}
|
|
11552
11577
|
/**
|
|
@@ -11565,7 +11590,7 @@ function allOfType(validators) {
|
|
|
11565
11590
|
|
|
11566
11591
|
return validators.reduce(function (result, validator) {
|
|
11567
11592
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
11568
|
-
},
|
|
11593
|
+
}, null);
|
|
11569
11594
|
});
|
|
11570
11595
|
}
|
|
11571
11596
|
/**
|
|
@@ -11579,7 +11604,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
11579
11604
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
11580
11605
|
}
|
|
11581
11606
|
|
|
11582
|
-
return
|
|
11607
|
+
return null;
|
|
11583
11608
|
});
|
|
11584
11609
|
/**
|
|
11585
11610
|
* Check that the value is an integer.
|
|
@@ -11592,7 +11617,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
11592
11617
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
11593
11618
|
}
|
|
11594
11619
|
|
|
11595
|
-
return
|
|
11620
|
+
return null;
|
|
11596
11621
|
});
|
|
11597
11622
|
/**
|
|
11598
11623
|
* Check that the value is greater than zero.
|
|
@@ -11605,7 +11630,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
11605
11630
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
11606
11631
|
}
|
|
11607
11632
|
|
|
11608
|
-
return
|
|
11633
|
+
return null;
|
|
11609
11634
|
});
|
|
11610
11635
|
/**
|
|
11611
11636
|
* Check that the value is an Array of two unique values.
|
|
@@ -11618,32 +11643,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
11618
11643
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
11619
11644
|
}
|
|
11620
11645
|
|
|
11621
|
-
return
|
|
11646
|
+
return null;
|
|
11622
11647
|
});
|
|
11623
11648
|
/**
|
|
11624
11649
|
* Check that the value looks like a d3 `scale` function.
|
|
11625
11650
|
*/
|
|
11626
11651
|
|
|
11627
11652
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
11628
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11629
|
-
|
|
11630
|
-
var validScale = function (scl) {
|
|
11631
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
11632
|
-
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);
|
|
11633
|
-
} else if (typeof scl === "string") {
|
|
11634
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
11635
|
-
}
|
|
11636
|
-
|
|
11637
|
-
return false;
|
|
11638
|
-
};
|
|
11639
|
-
|
|
11640
11653
|
var value = props[propName];
|
|
11641
11654
|
|
|
11642
|
-
if (!validScale(value)) {
|
|
11655
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
11643
11656
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
11644
11657
|
}
|
|
11645
11658
|
|
|
11646
|
-
return
|
|
11659
|
+
return null;
|
|
11647
11660
|
});
|
|
11648
11661
|
/**
|
|
11649
11662
|
* Check that an array contains items of the same type.
|
|
@@ -11657,7 +11670,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11657
11670
|
}
|
|
11658
11671
|
|
|
11659
11672
|
if (values.length < 2) {
|
|
11660
|
-
return
|
|
11673
|
+
return null;
|
|
11661
11674
|
}
|
|
11662
11675
|
|
|
11663
11676
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -11672,7 +11685,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
11672
11685
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
11673
11686
|
}
|
|
11674
11687
|
|
|
11675
|
-
return
|
|
11688
|
+
return null;
|
|
11676
11689
|
});
|
|
11677
11690
|
/**
|
|
11678
11691
|
* Check that array prop length matches props.data.length
|
|
@@ -11683,7 +11696,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
11683
11696
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
11684
11697
|
}
|
|
11685
11698
|
|
|
11686
|
-
return
|
|
11699
|
+
return null;
|
|
11687
11700
|
});
|
|
11688
11701
|
/**
|
|
11689
11702
|
* Check that the value is a regular expression
|
|
@@ -11694,8 +11707,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
11694
11707
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
11695
11708
|
}
|
|
11696
11709
|
|
|
11697
|
-
return
|
|
11710
|
+
return null;
|
|
11698
11711
|
});
|
|
11712
|
+
//# sourceMappingURL=prop-types.js.map
|
|
11699
11713
|
|
|
11700
11714
|
/***/ }),
|
|
11701
11715
|
|
|
@@ -11713,7 +11727,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11713
11727
|
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
11714
11728
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
11715
11729
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
11716
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
11730
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
11731
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
11717
11732
|
/* harmony export */ });
|
|
11718
11733
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
11719
11734
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11731,8 +11746,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11731
11746
|
|
|
11732
11747
|
|
|
11733
11748
|
|
|
11734
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11749
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
11735
11750
|
|
|
11751
|
+
// Private Functions
|
|
11736
11752
|
function toNewName(scale) {
|
|
11737
11753
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
11738
11754
|
var capitalize = function (s) {
|
|
@@ -11802,7 +11818,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
11802
11818
|
|
|
11803
11819
|
|
|
11804
11820
|
function getScaleFromName(name) {
|
|
11805
|
-
|
|
11821
|
+
if (validScale(name)) {
|
|
11822
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
11823
|
+
|
|
11824
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
11825
|
+
}
|
|
11826
|
+
|
|
11827
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
11806
11828
|
}
|
|
11807
11829
|
function getBaseScale(props, axis) {
|
|
11808
11830
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -11812,7 +11834,7 @@ function getBaseScale(props, axis) {
|
|
|
11812
11834
|
}
|
|
11813
11835
|
|
|
11814
11836
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
11815
|
-
return
|
|
11837
|
+
return getScaleFromName(defaultScale);
|
|
11816
11838
|
}
|
|
11817
11839
|
function getDefaultScale() {
|
|
11818
11840
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -11825,7 +11847,7 @@ function getScaleFromProps(props, axis) {
|
|
|
11825
11847
|
var scale = props.scale[axis] || props.scale;
|
|
11826
11848
|
|
|
11827
11849
|
if (validScale(scale)) {
|
|
11828
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
11850
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
11829
11851
|
}
|
|
11830
11852
|
|
|
11831
11853
|
return undefined;
|
|
@@ -11860,6 +11882,7 @@ function getType(scale) {
|
|
|
11860
11882
|
})[0];
|
|
11861
11883
|
return scaleType ? scaleType.name : undefined;
|
|
11862
11884
|
}
|
|
11885
|
+
//# sourceMappingURL=scale.js.map
|
|
11863
11886
|
|
|
11864
11887
|
/***/ }),
|
|
11865
11888
|
|
|
@@ -11875,8 +11898,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11875
11898
|
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
11876
11899
|
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
11877
11900
|
/* harmony export */ });
|
|
11878
|
-
/* eslint-disable func-style */
|
|
11879
|
-
|
|
11880
11901
|
/**
|
|
11881
11902
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
11882
11903
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -11933,6 +11954,7 @@ function getColorScale(name) {
|
|
|
11933
11954
|
};
|
|
11934
11955
|
return name ? scales[name] : scales.grayscale;
|
|
11935
11956
|
}
|
|
11957
|
+
//# sourceMappingURL=style.js.map
|
|
11936
11958
|
|
|
11937
11959
|
/***/ }),
|
|
11938
11960
|
|
|
@@ -11963,6 +11985,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
11963
11985
|
});
|
|
11964
11986
|
TimerContext.displayName = "TimerContext";
|
|
11965
11987
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
11988
|
+
//# sourceMappingURL=timer-context.js.map
|
|
11966
11989
|
|
|
11967
11990
|
/***/ }),
|
|
11968
11991
|
|
|
@@ -11988,11 +12011,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
11988
12011
|
|
|
11989
12012
|
var Timer = /*#__PURE__*/function () {
|
|
11990
12013
|
function Timer() {
|
|
12014
|
+
var _this = this;
|
|
12015
|
+
|
|
11991
12016
|
_classCallCheck(this, Timer);
|
|
11992
12017
|
|
|
12018
|
+
this.shouldAnimate = void 0;
|
|
12019
|
+
this.subscribers = void 0;
|
|
12020
|
+
this.activeSubscriptions = void 0;
|
|
12021
|
+
this.timer = void 0;
|
|
12022
|
+
|
|
12023
|
+
this.loop = function () {
|
|
12024
|
+
_this.subscribers.forEach(function (s) {
|
|
12025
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
12026
|
+
});
|
|
12027
|
+
};
|
|
12028
|
+
|
|
11993
12029
|
this.shouldAnimate = true;
|
|
11994
12030
|
this.subscribers = [];
|
|
11995
|
-
this.loop = this.loop.bind(this);
|
|
11996
12031
|
this.timer = null;
|
|
11997
12032
|
this.activeSubscriptions = 0;
|
|
11998
12033
|
}
|
|
@@ -12007,13 +12042,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12007
12042
|
value: function resumeAnimation() {
|
|
12008
12043
|
this.shouldAnimate = true;
|
|
12009
12044
|
}
|
|
12010
|
-
}, {
|
|
12011
|
-
key: "loop",
|
|
12012
|
-
value: function loop() {
|
|
12013
|
-
this.subscribers.forEach(function (s) {
|
|
12014
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
12015
|
-
});
|
|
12016
|
-
}
|
|
12017
12045
|
}, {
|
|
12018
12046
|
key: "start",
|
|
12019
12047
|
value: function start() {
|
|
@@ -12060,6 +12088,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12060
12088
|
}();
|
|
12061
12089
|
|
|
12062
12090
|
|
|
12091
|
+
//# sourceMappingURL=timer.js.map
|
|
12063
12092
|
|
|
12064
12093
|
/***/ }),
|
|
12065
12094
|
|
|
@@ -12150,7 +12179,7 @@ function getChildData(child) {
|
|
|
12150
12179
|
}
|
|
12151
12180
|
/**
|
|
12152
12181
|
* If a parent component has animation enabled, calculate the transitions
|
|
12153
|
-
* for any data of any child component that supports data transitions
|
|
12182
|
+
* for any data of any child component that supports data transitions.
|
|
12154
12183
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
12155
12184
|
* in the first set and not the second, in the second and not the first,
|
|
12156
12185
|
* or both.
|
|
@@ -12279,7 +12308,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
12279
12308
|
|
|
12280
12309
|
if (exitingNodes) {
|
|
12281
12310
|
// After the exit transition occurs, trigger the animations for
|
|
12282
|
-
// nodes that are neither exiting
|
|
12311
|
+
// nodes that are neither exiting nor entering.
|
|
12283
12312
|
animate.onEnd = cb;
|
|
12284
12313
|
var before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_1___default()); // If nodes need to exit, transform them with the provided onExit.before function.
|
|
12285
12314
|
|
|
@@ -12349,7 +12378,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
12349
12378
|
* and its index in the parent's children array.
|
|
12350
12379
|
*
|
|
12351
12380
|
* In particular, this will include an `animate` object that is set appropriately
|
|
12352
|
-
* so that each child will be
|
|
12381
|
+
* so that each child will be synchronized for each stage of a transition
|
|
12353
12382
|
* animation. It will also include a transformed `data` object, where each datum
|
|
12354
12383
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
12355
12384
|
* functions.
|
|
@@ -12494,6 +12523,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
12494
12523
|
};
|
|
12495
12524
|
};
|
|
12496
12525
|
}
|
|
12526
|
+
//# sourceMappingURL=transitions.js.map
|
|
12497
12527
|
|
|
12498
12528
|
/***/ }),
|
|
12499
12529
|
|
|
@@ -12532,7 +12562,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12532
12562
|
|
|
12533
12563
|
/*
|
|
12534
12564
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
12535
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
12565
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
12536
12566
|
starts with these characters.
|
|
12537
12567
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
12538
12568
|
*/
|
|
@@ -12541,6 +12571,7 @@ var USER_PROPS_SAFELIST = {
|
|
|
12541
12571
|
startsWith: ["data-", "aria-"],
|
|
12542
12572
|
exactMatch: []
|
|
12543
12573
|
};
|
|
12574
|
+
|
|
12544
12575
|
/**
|
|
12545
12576
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
12546
12577
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -12549,7 +12580,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
12549
12580
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
12550
12581
|
* otherwise
|
|
12551
12582
|
*/
|
|
12552
|
-
|
|
12553
12583
|
var doesPropStartWith = function (key) {
|
|
12554
12584
|
var startsWith = false;
|
|
12555
12585
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -12626,14 +12656,15 @@ var getSafeUserProps = function (props) {
|
|
|
12626
12656
|
/**
|
|
12627
12657
|
* Wraps a component and adds safe user props
|
|
12628
12658
|
*
|
|
12629
|
-
* @param {
|
|
12659
|
+
* @param {ReactElement} component: parent component
|
|
12630
12660
|
* @param {Object} props: props to be filtered
|
|
12631
|
-
* @returns {
|
|
12661
|
+
* @returns {ReactElement} modified component
|
|
12632
12662
|
*/
|
|
12633
12663
|
|
|
12634
12664
|
var withSafeUserProps = function (component, props) {
|
|
12635
12665
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
12636
12666
|
};
|
|
12667
|
+
//# sourceMappingURL=user-props.js.map
|
|
12637
12668
|
|
|
12638
12669
|
/***/ }),
|
|
12639
12670
|
|
|
@@ -12846,7 +12877,7 @@ function getData(props, childComponents) {
|
|
|
12846
12877
|
}
|
|
12847
12878
|
|
|
12848
12879
|
childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
12849
|
-
return getDataFromChildren(childComponents);
|
|
12880
|
+
return getDataFromChildren(props, childComponents);
|
|
12850
12881
|
}
|
|
12851
12882
|
function getWidth(props, groupLength, seriesLength) {
|
|
12852
12883
|
var datasets = props.datasets,
|
|
@@ -12908,7 +12939,7 @@ function getDefaultDomainPadding(props, axis, childComponents) {
|
|
|
12908
12939
|
function getDomainFromChildren(props, axis, childComponents) {
|
|
12909
12940
|
// eslint-disable-line max-statements, complexity, max-len
|
|
12910
12941
|
var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
12911
|
-
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props
|
|
12942
|
+
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props) : undefined;
|
|
12912
12943
|
var polar = props.polar,
|
|
12913
12944
|
startAngle = props.startAngle,
|
|
12914
12945
|
endAngle = props.endAngle,
|
|
@@ -13142,6 +13173,7 @@ function getCategories(props, childComponents, allStrings) {
|
|
|
13142
13173
|
y: yCategories.length > 0 ? yCategories : undefined
|
|
13143
13174
|
};
|
|
13144
13175
|
}
|
|
13176
|
+
//# sourceMappingURL=wrapper.js.map
|
|
13145
13177
|
|
|
13146
13178
|
/***/ }),
|
|
13147
13179
|
|
|
@@ -13218,7 +13250,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
13218
13250
|
|
|
13219
13251
|
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); }
|
|
13220
13252
|
|
|
13221
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
13253
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
13222
13254
|
|
|
13223
13255
|
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); }; }
|
|
13224
13256
|
|
|
@@ -13228,15 +13260,16 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
13228
13260
|
|
|
13229
13261
|
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; } }
|
|
13230
13262
|
|
|
13231
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13232
|
-
|
|
13233
|
-
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; }
|
|
13234
|
-
|
|
13263
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13235
13264
|
|
|
13236
13265
|
|
|
13237
13266
|
|
|
13238
13267
|
|
|
13239
13268
|
|
|
13269
|
+
// DISCLAIMER:
|
|
13270
|
+
// This file is not currently tested, and it is first on the list of files
|
|
13271
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
13272
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
13240
13273
|
|
|
13241
13274
|
var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
13242
13275
|
_inherits(VictorySharedEvents, _React$Component);
|
|
@@ -13520,11 +13553,9 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13520
13553
|
return VictorySharedEvents;
|
|
13521
13554
|
}((react__WEBPACK_IMPORTED_MODULE_7___default().Component));
|
|
13522
13555
|
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
_defineProperty(VictorySharedEvents, "propTypes", {
|
|
13556
|
+
VictorySharedEvents.displayName = "VictorySharedEvents";
|
|
13557
|
+
VictorySharedEvents.role = "shared-event-wrapper";
|
|
13558
|
+
VictorySharedEvents.propTypes = {
|
|
13528
13559
|
children: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_12___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)]),
|
|
13529
13560
|
container: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node),
|
|
13530
13561
|
eventKey: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().func), victory_core__WEBPACK_IMPORTED_MODULE_13__.allOfType([victory_core__WEBPACK_IMPORTED_MODULE_13__.integer, victory_core__WEBPACK_IMPORTED_MODULE_13__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().string)]),
|
|
@@ -13542,15 +13573,13 @@ _defineProperty(VictorySharedEvents, "propTypes", {
|
|
|
13542
13573
|
target: prop_types__WEBPACK_IMPORTED_MODULE_12___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_12___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_12___default().array)])
|
|
13543
13574
|
})),
|
|
13544
13575
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)
|
|
13545
|
-
}
|
|
13546
|
-
|
|
13547
|
-
_defineProperty(VictorySharedEvents, "defaultProps", {
|
|
13576
|
+
};
|
|
13577
|
+
VictorySharedEvents.defaultProps = {
|
|
13548
13578
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default().createElement("g", null)
|
|
13549
|
-
}
|
|
13550
|
-
|
|
13551
|
-
_defineProperty(VictorySharedEvents, "contextType", victory_core__WEBPACK_IMPORTED_MODULE_14__["default"]);
|
|
13552
|
-
|
|
13579
|
+
};
|
|
13580
|
+
VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_14__["default"];
|
|
13553
13581
|
|
|
13582
|
+
//# sourceMappingURL=victory-shared-events.js.map
|
|
13554
13583
|
|
|
13555
13584
|
/***/ }),
|
|
13556
13585
|
|