victory-group 36.4.1 → 36.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/victory-group.js +255 -275
- package/dist/victory-group.min.js +1 -1
- package/package.json +5 -5
- package/src/helper-methods.js +0 -1
package/dist/victory-group.js
CHANGED
|
@@ -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,18 +7372,162 @@ 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");
|
|
7386
|
+
}
|
|
7387
|
+
|
|
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;
|
|
7530
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
7531
|
|
|
7532
7532
|
|
|
7533
7533
|
/***/ }),
|
|
@@ -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,15 @@ _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
|
-
_defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"]);
|
|
7843
|
-
|
|
7844
|
-
|
|
7843
|
+
};
|
|
7844
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
7845
7845
|
|
|
7846
7846
|
/***/ }),
|
|
7847
7847
|
|
|
@@ -7854,19 +7854,18 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
7854
7854
|
"use strict";
|
|
7855
7855
|
__webpack_require__.r(__webpack_exports__);
|
|
7856
7856
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7857
|
-
/* harmony export */ "
|
|
7857
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
7858
7858
|
/* harmony export */ });
|
|
7859
7859
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7860
7860
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7861
7861
|
|
|
7862
|
+
|
|
7862
7863
|
/**
|
|
7863
7864
|
* The React context object consumers may use to access the context of the
|
|
7864
7865
|
* portal.
|
|
7865
7866
|
*/
|
|
7866
|
-
|
|
7867
7867
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
7868
7868
|
PortalContext.displayName = "PortalContext";
|
|
7869
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PortalContext);
|
|
7870
7869
|
|
|
7871
7870
|
/***/ }),
|
|
7872
7871
|
|
|
@@ -7879,7 +7878,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
7879
7878
|
"use strict";
|
|
7880
7879
|
__webpack_require__.r(__webpack_exports__);
|
|
7881
7880
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7882
|
-
/* harmony export */ "
|
|
7881
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
7883
7882
|
/* harmony export */ });
|
|
7884
7883
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
7885
7884
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7898,7 +7897,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7898
7897
|
|
|
7899
7898
|
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
7899
|
|
|
7901
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7900
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7902
7901
|
|
|
7903
7902
|
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
7903
|
|
|
@@ -7908,10 +7907,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7908
7907
|
|
|
7909
7908
|
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
7909
|
|
|
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
|
-
|
|
7910
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7915
7911
|
|
|
7916
7912
|
|
|
7917
7913
|
|
|
@@ -7927,32 +7923,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
7927
7923
|
_classCallCheck(this, Portal);
|
|
7928
7924
|
|
|
7929
7925
|
_this = _super.call(this, props);
|
|
7926
|
+
_this.map = void 0;
|
|
7927
|
+
_this.index = void 0;
|
|
7928
|
+
|
|
7929
|
+
_this.portalRegister = function () {
|
|
7930
|
+
return ++_this.index;
|
|
7931
|
+
};
|
|
7932
|
+
|
|
7933
|
+
_this.portalUpdate = function (key, element) {
|
|
7934
|
+
_this.map[key] = element;
|
|
7935
|
+
|
|
7936
|
+
_this.forceUpdate();
|
|
7937
|
+
};
|
|
7938
|
+
|
|
7939
|
+
_this.portalDeregister = function (key) {
|
|
7940
|
+
delete _this.map[key];
|
|
7941
|
+
|
|
7942
|
+
_this.forceUpdate();
|
|
7943
|
+
};
|
|
7944
|
+
|
|
7930
7945
|
_this.map = {};
|
|
7931
7946
|
_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
7947
|
return _this;
|
|
7936
7948
|
}
|
|
7937
7949
|
|
|
7938
7950
|
_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
7951
|
key: "getChildren",
|
|
7957
7952
|
value: function getChildren() {
|
|
7958
7953
|
var _this2 = this;
|
|
@@ -7974,18 +7969,14 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
7974
7969
|
|
|
7975
7970
|
return Portal;
|
|
7976
7971
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
_defineProperty(Portal, "propTypes", {
|
|
7972
|
+
Portal.displayName = "Portal";
|
|
7973
|
+
Portal.propTypes = {
|
|
7981
7974
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7982
7975
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
7983
7976
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
7984
7977
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
7985
7978
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
7986
|
-
}
|
|
7987
|
-
|
|
7988
|
-
|
|
7979
|
+
};
|
|
7989
7980
|
|
|
7990
7981
|
/***/ }),
|
|
7991
7982
|
|
|
@@ -7998,7 +7989,7 @@ _defineProperty(Portal, "propTypes", {
|
|
|
7998
7989
|
"use strict";
|
|
7999
7990
|
__webpack_require__.r(__webpack_exports__);
|
|
8000
7991
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8001
|
-
/* harmony export */ "
|
|
7992
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
8002
7993
|
/* harmony export */ });
|
|
8003
7994
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8004
7995
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8045,7 +8036,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
8045
8036
|
|
|
8046
8037
|
var strokeLinecap = "round";
|
|
8047
8038
|
var strokeLinejoin = "round";
|
|
8048
|
-
|
|
8039
|
+
var grayscale = {
|
|
8049
8040
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
8050
8041
|
style: {
|
|
8051
8042
|
data: {
|
|
@@ -8260,7 +8251,7 @@ var strokeLinejoin = "round";
|
|
|
8260
8251
|
}
|
|
8261
8252
|
}
|
|
8262
8253
|
}, baseProps)
|
|
8263
|
-
}
|
|
8254
|
+
};
|
|
8264
8255
|
|
|
8265
8256
|
/***/ }),
|
|
8266
8257
|
|
|
@@ -8273,7 +8264,7 @@ var strokeLinejoin = "round";
|
|
|
8273
8264
|
"use strict";
|
|
8274
8265
|
__webpack_require__.r(__webpack_exports__);
|
|
8275
8266
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8276
|
-
/* harmony export */ "
|
|
8267
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
8277
8268
|
/* harmony export */ });
|
|
8278
8269
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8279
8270
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8330,7 +8321,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
8330
8321
|
var strokeDasharray = "10, 5";
|
|
8331
8322
|
var strokeLinecap = "round";
|
|
8332
8323
|
var strokeLinejoin = "round";
|
|
8333
|
-
|
|
8324
|
+
var material = {
|
|
8334
8325
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
8335
8326
|
style: {
|
|
8336
8327
|
data: {
|
|
@@ -8562,7 +8553,7 @@ var strokeLinejoin = "round";
|
|
|
8562
8553
|
}
|
|
8563
8554
|
}
|
|
8564
8555
|
}, baseProps)
|
|
8565
|
-
}
|
|
8556
|
+
};
|
|
8566
8557
|
|
|
8567
8558
|
/***/ }),
|
|
8568
8559
|
|
|
@@ -8575,16 +8566,17 @@ var strokeLinejoin = "round";
|
|
|
8575
8566
|
"use strict";
|
|
8576
8567
|
__webpack_require__.r(__webpack_exports__);
|
|
8577
8568
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8578
|
-
/* harmony export */ "
|
|
8569
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
8579
8570
|
/* harmony export */ });
|
|
8580
|
-
/* harmony import */ var
|
|
8581
|
-
/* harmony import */ var
|
|
8571
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
8572
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
8582
8573
|
|
|
8583
8574
|
|
|
8584
|
-
|
|
8585
|
-
|
|
8586
|
-
grayscale:
|
|
8587
|
-
|
|
8575
|
+
|
|
8576
|
+
var VictoryTheme = {
|
|
8577
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
8578
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
8579
|
+
};
|
|
8588
8580
|
|
|
8589
8581
|
/***/ }),
|
|
8590
8582
|
|
|
@@ -8665,7 +8657,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
8665
8657
|
|
|
8666
8658
|
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
8659
|
|
|
8668
|
-
/* eslint-disable func-style */
|
|
8669
8660
|
|
|
8670
8661
|
|
|
8671
8662
|
|
|
@@ -9101,8 +9092,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9101
9092
|
|
|
9102
9093
|
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
9094
|
|
|
9104
|
-
/* eslint-disable func-style */
|
|
9105
|
-
|
|
9106
9095
|
/* eslint-disable no-use-before-define */
|
|
9107
9096
|
function isNonEmptyArray(collection) {
|
|
9108
9097
|
return Array.isArray(collection) && collection.length > 0;
|
|
@@ -9369,8 +9358,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9369
9358
|
|
|
9370
9359
|
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
9360
|
|
|
9372
|
-
/* eslint-disable func-style */
|
|
9373
|
-
|
|
9374
9361
|
/* eslint-disable no-use-before-define */
|
|
9375
9362
|
|
|
9376
9363
|
|
|
@@ -9864,8 +9851,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
9864
9851
|
|
|
9865
9852
|
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
9853
|
|
|
9867
|
-
/* eslint-disable func-style */
|
|
9868
|
-
|
|
9869
9854
|
/* eslint-disable no-use-before-define */
|
|
9870
9855
|
|
|
9871
9856
|
|
|
@@ -10810,8 +10795,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10810
10795
|
|
|
10811
10796
|
|
|
10812
10797
|
|
|
10813
|
-
/* eslint-disable func-style */
|
|
10814
|
-
|
|
10815
10798
|
/* eslint-disable no-use-before-define */
|
|
10816
10799
|
|
|
10817
10800
|
|
|
@@ -11357,7 +11340,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11357
11340
|
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
11358
11341
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
11359
11342
|
/* harmony export */ });
|
|
11360
|
-
/* eslint-disable func-style */
|
|
11361
11343
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
11362
11344
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
11363
11345
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -11405,7 +11387,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11405
11387
|
|
|
11406
11388
|
/* eslint-disable no-console */
|
|
11407
11389
|
// TODO: Use "warning" npm module like React is switching to.
|
|
11408
|
-
// eslint-disable-next-line func-style
|
|
11409
11390
|
function warn(message) {
|
|
11410
11391
|
if (true) {
|
|
11411
11392
|
if (console && console.warn) {
|
|
@@ -11875,8 +11856,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11875
11856
|
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
11876
11857
|
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
11877
11858
|
/* harmony export */ });
|
|
11878
|
-
/* eslint-disable func-style */
|
|
11879
|
-
|
|
11880
11859
|
/**
|
|
11881
11860
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
11882
11861
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -11988,11 +11967,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
11988
11967
|
|
|
11989
11968
|
var Timer = /*#__PURE__*/function () {
|
|
11990
11969
|
function Timer() {
|
|
11970
|
+
var _this = this;
|
|
11971
|
+
|
|
11991
11972
|
_classCallCheck(this, Timer);
|
|
11992
11973
|
|
|
11974
|
+
this.shouldAnimate = void 0;
|
|
11975
|
+
this.subscribers = void 0;
|
|
11976
|
+
this.activeSubscriptions = void 0;
|
|
11977
|
+
this.timer = void 0;
|
|
11978
|
+
|
|
11979
|
+
this.loop = function () {
|
|
11980
|
+
_this.subscribers.forEach(function (s) {
|
|
11981
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
11982
|
+
});
|
|
11983
|
+
};
|
|
11984
|
+
|
|
11993
11985
|
this.shouldAnimate = true;
|
|
11994
11986
|
this.subscribers = [];
|
|
11995
|
-
this.loop = this.loop.bind(this);
|
|
11996
11987
|
this.timer = null;
|
|
11997
11988
|
this.activeSubscriptions = 0;
|
|
11998
11989
|
}
|
|
@@ -12007,13 +11998,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
12007
11998
|
value: function resumeAnimation() {
|
|
12008
11999
|
this.shouldAnimate = true;
|
|
12009
12000
|
}
|
|
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
12001
|
}, {
|
|
12018
12002
|
key: "start",
|
|
12019
12003
|
value: function start() {
|
|
@@ -13218,7 +13202,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
13218
13202
|
|
|
13219
13203
|
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
13204
|
|
|
13221
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
13205
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
13222
13206
|
|
|
13223
13207
|
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
13208
|
|
|
@@ -13228,15 +13212,16 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
13228
13212
|
|
|
13229
13213
|
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
13214
|
|
|
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
|
-
|
|
13215
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
13235
13216
|
|
|
13236
13217
|
|
|
13237
13218
|
|
|
13238
13219
|
|
|
13239
13220
|
|
|
13221
|
+
// DISCLAIMER:
|
|
13222
|
+
// This file is not currently tested, and it is first on the list of files
|
|
13223
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
13224
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
13240
13225
|
|
|
13241
13226
|
var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
13242
13227
|
_inherits(VictorySharedEvents, _React$Component);
|
|
@@ -13520,11 +13505,9 @@ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
|
|
|
13520
13505
|
return VictorySharedEvents;
|
|
13521
13506
|
}((react__WEBPACK_IMPORTED_MODULE_7___default().Component));
|
|
13522
13507
|
|
|
13523
|
-
|
|
13524
|
-
|
|
13525
|
-
|
|
13526
|
-
|
|
13527
|
-
_defineProperty(VictorySharedEvents, "propTypes", {
|
|
13508
|
+
VictorySharedEvents.displayName = "VictorySharedEvents";
|
|
13509
|
+
VictorySharedEvents.role = "shared-event-wrapper";
|
|
13510
|
+
VictorySharedEvents.propTypes = {
|
|
13528
13511
|
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
13512
|
container: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node),
|
|
13530
13513
|
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,14 +13525,11 @@ _defineProperty(VictorySharedEvents, "propTypes", {
|
|
|
13542
13525
|
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
13526
|
})),
|
|
13544
13527
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_12___default().node)
|
|
13545
|
-
}
|
|
13546
|
-
|
|
13547
|
-
_defineProperty(VictorySharedEvents, "defaultProps", {
|
|
13528
|
+
};
|
|
13529
|
+
VictorySharedEvents.defaultProps = {
|
|
13548
13530
|
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
|
-
|
|
13531
|
+
};
|
|
13532
|
+
VictorySharedEvents.contextType = victory_core__WEBPACK_IMPORTED_MODULE_14__["default"];
|
|
13553
13533
|
|
|
13554
13534
|
|
|
13555
13535
|
/***/ }),
|