victory-voronoi 36.4.0 → 36.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/victory-voronoi.js +1109 -974
- package/dist/victory-voronoi.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-voronoi.js +21 -28
- package/es/voronoi.js +6 -3
- package/lib/helper-methods.js +2 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/victory-voronoi.js +21 -29
- package/lib/voronoi.js +5 -2
- package/package.json +5 -5
- package/src/helper-methods.js +7 -7
- package/src/index.d.ts +1 -1
- package/src/victory-voronoi.js +11 -12
- package/src/voronoi.js +18 -9
package/dist/victory-voronoi.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
exports["VictoryVoronoi"] = factory(require("react"));
|
|
8
8
|
else
|
|
9
9
|
root["VictoryVoronoi"] = factory(root["React"]);
|
|
10
|
-
})(self,
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE_react__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ var __webpack_modules__ = ({
|
|
13
13
|
|
|
@@ -226,6 +226,8 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
226
226
|
|
|
227
227
|
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; }
|
|
228
228
|
|
|
229
|
+
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; }
|
|
230
|
+
|
|
229
231
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
230
232
|
|
|
231
233
|
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); } }
|
|
@@ -234,7 +236,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
234
236
|
|
|
235
237
|
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); }
|
|
236
238
|
|
|
237
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
239
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
238
240
|
|
|
239
241
|
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); }; }
|
|
240
242
|
|
|
@@ -244,9 +246,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
244
246
|
|
|
245
247
|
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; } }
|
|
246
248
|
|
|
247
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
248
|
-
|
|
249
|
-
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; }
|
|
249
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
250
250
|
|
|
251
251
|
|
|
252
252
|
|
|
@@ -287,50 +287,42 @@ var VictoryVoronoi = /*#__PURE__*/function (_React$Component) {
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
var children = this.renderData(props);
|
|
290
|
-
var
|
|
291
|
-
return
|
|
290
|
+
var component = props.standalone ? this.renderContainer(props.containerComponent, children) : children;
|
|
291
|
+
return victory_core__WEBPACK_IMPORTED_MODULE_2__.withSafeUserProps(component, props);
|
|
292
292
|
}
|
|
293
293
|
}]);
|
|
294
294
|
|
|
295
295
|
return VictoryVoronoi;
|
|
296
296
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
297
297
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
_defineProperty(VictoryVoronoi, "defaultTransitions", victory_core__WEBPACK_IMPORTED_MODULE_3__.discreteTransitions());
|
|
305
|
-
|
|
306
|
-
_defineProperty(VictoryVoronoi, "propTypes", _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_4__.dataProps), {}, {
|
|
298
|
+
VictoryVoronoi.animationWhitelist = ["data", "domain", "height", "padding", "samples", "size", "style", "width"];
|
|
299
|
+
VictoryVoronoi.displayName = "VictoryVoronoi";
|
|
300
|
+
VictoryVoronoi.role = "voronoi";
|
|
301
|
+
VictoryVoronoi.defaultTransitions = victory_core__WEBPACK_IMPORTED_MODULE_3__.discreteTransitions();
|
|
302
|
+
VictoryVoronoi.propTypes = _objectSpread(_objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.baseProps), victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.dataProps), {}, {
|
|
307
303
|
size: victory_core__WEBPACK_IMPORTED_MODULE_5__.nonNegative
|
|
308
|
-
})
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__["default"], null),
|
|
304
|
+
});
|
|
305
|
+
VictoryVoronoi.defaultProps = {
|
|
306
|
+
containerComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer, null),
|
|
312
307
|
dataComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_voronoi__WEBPACK_IMPORTED_MODULE_7__["default"], null),
|
|
313
|
-
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__
|
|
308
|
+
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryLabel, null),
|
|
314
309
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", {
|
|
315
310
|
role: "presentation"
|
|
316
311
|
}),
|
|
317
312
|
samples: 50,
|
|
318
313
|
sortOrder: "ascending",
|
|
319
314
|
standalone: true,
|
|
320
|
-
theme: victory_core__WEBPACK_IMPORTED_MODULE_9__
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
_defineProperty(VictoryVoronoi, "getData", victory_core__WEBPACK_IMPORTED_MODULE_11__.getData);
|
|
315
|
+
theme: victory_core__WEBPACK_IMPORTED_MODULE_9__.VictoryTheme.grayscale
|
|
316
|
+
};
|
|
317
|
+
VictoryVoronoi.getDomain = victory_core__WEBPACK_IMPORTED_MODULE_10__.getDomain;
|
|
318
|
+
VictoryVoronoi.getData = victory_core__WEBPACK_IMPORTED_MODULE_11__.getData;
|
|
326
319
|
|
|
327
|
-
|
|
320
|
+
VictoryVoronoi.getBaseProps = function (props) {
|
|
328
321
|
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_12__.getBaseProps)(props, fallbackProps);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
_defineProperty(VictoryVoronoi, "expectedComponents", ["dataComponent", "labelComponent", "groupComponent", "containerComponent"]);
|
|
322
|
+
};
|
|
332
323
|
|
|
333
|
-
|
|
324
|
+
VictoryVoronoi.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
325
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,victory_core__WEBPACK_IMPORTED_MODULE_13__.addEvents)(VictoryVoronoi));
|
|
334
326
|
|
|
335
327
|
/***/ }),
|
|
336
328
|
|
|
@@ -349,13 +341,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
349
341
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
350
342
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
351
343
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
352
|
-
/* harmony import */ var
|
|
353
|
-
/* harmony import */ var
|
|
354
|
-
/* harmony import */ var
|
|
344
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
345
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_5__);
|
|
346
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
347
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
355
348
|
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
|
|
356
|
-
/* harmony import */ var
|
|
357
|
-
/* harmony import */ var
|
|
358
|
-
/* harmony import */ var
|
|
349
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
350
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/circle.js");
|
|
351
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/clip-path.js");
|
|
359
352
|
|
|
360
353
|
|
|
361
354
|
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; }
|
|
@@ -383,11 +376,11 @@ var evaluateProps = function (props) {
|
|
|
383
376
|
* `style`
|
|
384
377
|
* `tabIndex
|
|
385
378
|
*/
|
|
386
|
-
var ariaLabel =
|
|
387
|
-
var id =
|
|
388
|
-
var size =
|
|
389
|
-
var style =
|
|
390
|
-
var tabIndex =
|
|
379
|
+
var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
380
|
+
var id = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
381
|
+
var size = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.size, props);
|
|
382
|
+
var style = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(props.style, props);
|
|
383
|
+
var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
391
384
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
|
|
392
385
|
ariaLabel: ariaLabel,
|
|
393
386
|
id: id,
|
|
@@ -421,6 +414,8 @@ var Voronoi = function (props) {
|
|
|
421
414
|
transform: transform
|
|
422
415
|
}, events);
|
|
423
416
|
|
|
417
|
+
var userProps = victory_core__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
|
|
418
|
+
|
|
424
419
|
if (size) {
|
|
425
420
|
var circle = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.circleComponent, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
426
421
|
key: "".concat(props.id, "-circle-clip"),
|
|
@@ -439,27 +434,27 @@ var Voronoi = function (props) {
|
|
|
439
434
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.groupComponent, {}, [voronoiClipPath, circle]);
|
|
440
435
|
}
|
|
441
436
|
|
|
442
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, _objectSpread(_objectSpread({}, sharedProps), {}, {
|
|
437
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, _objectSpread(_objectSpread(_objectSpread({}, sharedProps), userProps), {}, {
|
|
443
438
|
d: voronoiPath
|
|
444
439
|
}));
|
|
445
440
|
};
|
|
446
441
|
|
|
447
|
-
Voronoi.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.primitiveProps), {}, {
|
|
448
|
-
circleComponent: (
|
|
449
|
-
clipId:
|
|
450
|
-
clipPathComponent: (
|
|
451
|
-
datum: (
|
|
452
|
-
groupComponent: (
|
|
453
|
-
pathComponent: (
|
|
454
|
-
polygon: (
|
|
455
|
-
size: (
|
|
456
|
-
x: (
|
|
457
|
-
y: (
|
|
442
|
+
Voronoi.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.CommonProps.primitiveProps), {}, {
|
|
443
|
+
circleComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
444
|
+
clipId: prop_types__WEBPACK_IMPORTED_MODULE_5___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_5___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_5___default().string)]),
|
|
445
|
+
clipPathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
446
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().object),
|
|
447
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
448
|
+
pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().element),
|
|
449
|
+
polygon: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().array),
|
|
450
|
+
size: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
451
|
+
x: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number),
|
|
452
|
+
y: (prop_types__WEBPACK_IMPORTED_MODULE_5___default().number)
|
|
458
453
|
});
|
|
459
454
|
Voronoi.defaultProps = {
|
|
460
|
-
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
461
|
-
circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
462
|
-
clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
|
455
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.Path, null),
|
|
456
|
+
circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.Circle, null),
|
|
457
|
+
clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.ClipPath, null),
|
|
463
458
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
|
|
464
459
|
role: "presentation",
|
|
465
460
|
shapeRendering: "auto"
|
|
@@ -5848,7 +5843,7 @@ var printWarning = function() {};
|
|
|
5848
5843
|
if (true) {
|
|
5849
5844
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5850
5845
|
var loggedTypeFailures = {};
|
|
5851
|
-
var has =
|
|
5846
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
5852
5847
|
|
|
5853
5848
|
printWarning = function(text) {
|
|
5854
5849
|
var message = 'Warning: ' + text;
|
|
@@ -5860,7 +5855,7 @@ if (true) {
|
|
|
5860
5855
|
// This error was thrown as a convenience so that you can use this stack
|
|
5861
5856
|
// to find the callsite that caused this warning to fire.
|
|
5862
5857
|
throw new Error(message);
|
|
5863
|
-
} catch (x) {}
|
|
5858
|
+
} catch (x) { /**/ }
|
|
5864
5859
|
};
|
|
5865
5860
|
}
|
|
5866
5861
|
|
|
@@ -5889,7 +5884,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
5889
5884
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
5890
5885
|
var err = Error(
|
|
5891
5886
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
5892
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
5887
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
5888
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
5893
5889
|
);
|
|
5894
5890
|
err.name = 'Invariant Violation';
|
|
5895
5891
|
throw err;
|
|
@@ -5956,13 +5952,13 @@ module.exports = checkPropTypes;
|
|
|
5956
5952
|
|
|
5957
5953
|
|
|
5958
5954
|
|
|
5959
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
5955
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
5960
5956
|
var assign = __webpack_require__(/*! object-assign */ "../../../node_modules/object-assign/index.js");
|
|
5961
5957
|
|
|
5962
5958
|
var ReactPropTypesSecret = __webpack_require__(/*! ./lib/ReactPropTypesSecret */ "../../../node_modules/prop-types/lib/ReactPropTypesSecret.js");
|
|
5959
|
+
var has = __webpack_require__(/*! ./lib/has */ "../../../node_modules/prop-types/lib/has.js");
|
|
5963
5960
|
var checkPropTypes = __webpack_require__(/*! ./checkPropTypes */ "../../../node_modules/prop-types/checkPropTypes.js");
|
|
5964
5961
|
|
|
5965
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
5966
5962
|
var printWarning = function() {};
|
|
5967
5963
|
|
|
5968
5964
|
if (true) {
|
|
@@ -6063,6 +6059,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6063
6059
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
6064
6060
|
var ReactPropTypes = {
|
|
6065
6061
|
array: createPrimitiveTypeChecker('array'),
|
|
6062
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
6066
6063
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
6067
6064
|
func: createPrimitiveTypeChecker('function'),
|
|
6068
6065
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -6108,8 +6105,9 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6108
6105
|
* is prohibitively expensive if they are created too often, such as what
|
|
6109
6106
|
* happens in oneOfType() for any type before the one that matched.
|
|
6110
6107
|
*/
|
|
6111
|
-
function PropTypeError(message) {
|
|
6108
|
+
function PropTypeError(message, data) {
|
|
6112
6109
|
this.message = message;
|
|
6110
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
6113
6111
|
this.stack = '';
|
|
6114
6112
|
}
|
|
6115
6113
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -6144,7 +6142,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6144
6142
|
) {
|
|
6145
6143
|
printWarning(
|
|
6146
6144
|
'You are manually calling a React.PropTypes validation ' +
|
|
6147
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
6145
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
6148
6146
|
'and will throw in the standalone `prop-types` package. ' +
|
|
6149
6147
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
6150
6148
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -6183,7 +6181,10 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6183
6181
|
// 'of type `object`'.
|
|
6184
6182
|
var preciseType = getPreciseType(propValue);
|
|
6185
6183
|
|
|
6186
|
-
return new PropTypeError(
|
|
6184
|
+
return new PropTypeError(
|
|
6185
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
6186
|
+
{expectedType: expectedType}
|
|
6187
|
+
);
|
|
6187
6188
|
}
|
|
6188
6189
|
return null;
|
|
6189
6190
|
}
|
|
@@ -6327,14 +6328,19 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6327
6328
|
}
|
|
6328
6329
|
|
|
6329
6330
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6331
|
+
var expectedTypes = [];
|
|
6330
6332
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
6331
6333
|
var checker = arrayOfTypeCheckers[i];
|
|
6332
|
-
|
|
6334
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
6335
|
+
if (checkerResult == null) {
|
|
6333
6336
|
return null;
|
|
6334
6337
|
}
|
|
6338
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
6339
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
6340
|
+
}
|
|
6335
6341
|
}
|
|
6336
|
-
|
|
6337
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
6342
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
6343
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
6338
6344
|
}
|
|
6339
6345
|
return createChainableTypeChecker(validate);
|
|
6340
6346
|
}
|
|
@@ -6349,6 +6355,13 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6349
6355
|
return createChainableTypeChecker(validate);
|
|
6350
6356
|
}
|
|
6351
6357
|
|
|
6358
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
6359
|
+
return new PropTypeError(
|
|
6360
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
6361
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
6362
|
+
);
|
|
6363
|
+
}
|
|
6364
|
+
|
|
6352
6365
|
function createShapeTypeChecker(shapeTypes) {
|
|
6353
6366
|
function validate(props, propName, componentName, location, propFullName) {
|
|
6354
6367
|
var propValue = props[propName];
|
|
@@ -6358,8 +6371,8 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6358
6371
|
}
|
|
6359
6372
|
for (var key in shapeTypes) {
|
|
6360
6373
|
var checker = shapeTypes[key];
|
|
6361
|
-
if (
|
|
6362
|
-
|
|
6374
|
+
if (typeof checker !== 'function') {
|
|
6375
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6363
6376
|
}
|
|
6364
6377
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
6365
6378
|
if (error) {
|
|
@@ -6378,16 +6391,18 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6378
6391
|
if (propType !== 'object') {
|
|
6379
6392
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
6380
6393
|
}
|
|
6381
|
-
// We need to check all keys in case some are required but missing from
|
|
6382
|
-
// props.
|
|
6394
|
+
// We need to check all keys in case some are required but missing from props.
|
|
6383
6395
|
var allKeys = assign({}, props[propName], shapeTypes);
|
|
6384
6396
|
for (var key in allKeys) {
|
|
6385
6397
|
var checker = shapeTypes[key];
|
|
6398
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
6399
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
6400
|
+
}
|
|
6386
6401
|
if (!checker) {
|
|
6387
6402
|
return new PropTypeError(
|
|
6388
6403
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
6389
6404
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
6390
|
-
'\nValid keys: ' +
|
|
6405
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
6391
6406
|
);
|
|
6392
6407
|
}
|
|
6393
6408
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
@@ -6556,7 +6571,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
|
|
|
6556
6571
|
*/
|
|
6557
6572
|
|
|
6558
6573
|
if (true) {
|
|
6559
|
-
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/react-is/index.js");
|
|
6574
|
+
var ReactIs = __webpack_require__(/*! react-is */ "../../../node_modules/prop-types/node_modules/react-is/index.js");
|
|
6560
6575
|
|
|
6561
6576
|
// By explicitly using `prop-types` you are opting into new development behavior.
|
|
6562
6577
|
// http://fb.me/prop-types-in-prod
|
|
@@ -6590,115 +6605,21 @@ module.exports = ReactPropTypesSecret;
|
|
|
6590
6605
|
|
|
6591
6606
|
/***/ }),
|
|
6592
6607
|
|
|
6593
|
-
/***/ "../../../node_modules/
|
|
6594
|
-
|
|
6595
|
-
!*** ../../../node_modules/
|
|
6596
|
-
|
|
6608
|
+
/***/ "../../../node_modules/prop-types/lib/has.js":
|
|
6609
|
+
/*!***************************************************!*\
|
|
6610
|
+
!*** ../../../node_modules/prop-types/lib/has.js ***!
|
|
6611
|
+
\***************************************************/
|
|
6597
6612
|
/***/ ((module) => {
|
|
6598
6613
|
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
var isArray = Array.isArray;
|
|
6603
|
-
var keyList = Object.keys;
|
|
6604
|
-
var hasProp = Object.prototype.hasOwnProperty;
|
|
6605
|
-
var hasElementType = typeof Element !== 'undefined';
|
|
6606
|
-
|
|
6607
|
-
function equal(a, b) {
|
|
6608
|
-
// fast-deep-equal index.js 2.0.1
|
|
6609
|
-
if (a === b) return true;
|
|
6610
|
-
|
|
6611
|
-
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
6612
|
-
var arrA = isArray(a)
|
|
6613
|
-
, arrB = isArray(b)
|
|
6614
|
-
, i
|
|
6615
|
-
, length
|
|
6616
|
-
, key;
|
|
6617
|
-
|
|
6618
|
-
if (arrA && arrB) {
|
|
6619
|
-
length = a.length;
|
|
6620
|
-
if (length != b.length) return false;
|
|
6621
|
-
for (i = length; i-- !== 0;)
|
|
6622
|
-
if (!equal(a[i], b[i])) return false;
|
|
6623
|
-
return true;
|
|
6624
|
-
}
|
|
6625
|
-
|
|
6626
|
-
if (arrA != arrB) return false;
|
|
6627
|
-
|
|
6628
|
-
var dateA = a instanceof Date
|
|
6629
|
-
, dateB = b instanceof Date;
|
|
6630
|
-
if (dateA != dateB) return false;
|
|
6631
|
-
if (dateA && dateB) return a.getTime() == b.getTime();
|
|
6632
|
-
|
|
6633
|
-
var regexpA = a instanceof RegExp
|
|
6634
|
-
, regexpB = b instanceof RegExp;
|
|
6635
|
-
if (regexpA != regexpB) return false;
|
|
6636
|
-
if (regexpA && regexpB) return a.toString() == b.toString();
|
|
6637
|
-
|
|
6638
|
-
var keys = keyList(a);
|
|
6639
|
-
length = keys.length;
|
|
6640
|
-
|
|
6641
|
-
if (length !== keyList(b).length)
|
|
6642
|
-
return false;
|
|
6643
|
-
|
|
6644
|
-
for (i = length; i-- !== 0;)
|
|
6645
|
-
if (!hasProp.call(b, keys[i])) return false;
|
|
6646
|
-
// end fast-deep-equal
|
|
6647
|
-
|
|
6648
|
-
// start react-fast-compare
|
|
6649
|
-
// custom handling for DOM elements
|
|
6650
|
-
if (hasElementType && a instanceof Element && b instanceof Element)
|
|
6651
|
-
return a === b;
|
|
6652
|
-
|
|
6653
|
-
// custom handling for React
|
|
6654
|
-
for (i = length; i-- !== 0;) {
|
|
6655
|
-
key = keys[i];
|
|
6656
|
-
if (key === '_owner' && a.$$typeof) {
|
|
6657
|
-
// React-specific: avoid traversing React elements' _owner.
|
|
6658
|
-
// _owner contains circular references
|
|
6659
|
-
// and is not needed when comparing the actual elements (and not their owners)
|
|
6660
|
-
// .$$typeof and ._store on just reasonable markers of a react element
|
|
6661
|
-
continue;
|
|
6662
|
-
} else {
|
|
6663
|
-
// all other properties should be traversed as usual
|
|
6664
|
-
if (!equal(a[key], b[key])) return false;
|
|
6665
|
-
}
|
|
6666
|
-
}
|
|
6667
|
-
// end react-fast-compare
|
|
6668
|
-
|
|
6669
|
-
// fast-deep-equal index.js 2.0.1
|
|
6670
|
-
return true;
|
|
6671
|
-
}
|
|
6672
|
-
|
|
6673
|
-
return a !== a && b !== b;
|
|
6674
|
-
}
|
|
6675
|
-
// end fast-deep-equal
|
|
6676
|
-
|
|
6677
|
-
module.exports = function exportedEqual(a, b) {
|
|
6678
|
-
try {
|
|
6679
|
-
return equal(a, b);
|
|
6680
|
-
} catch (error) {
|
|
6681
|
-
if ((error.message && error.message.match(/stack|recursion/i)) || (error.number === -2146828260)) {
|
|
6682
|
-
// warn on circular references, don't crash
|
|
6683
|
-
// browsers give this different errors name and messages:
|
|
6684
|
-
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
6685
|
-
// firefox: "InternalError", too much recursion"
|
|
6686
|
-
// edge: "Error", "Out of stack space"
|
|
6687
|
-
console.warn('Warning: react-fast-compare does not handle circular references.', error.name, error.message);
|
|
6688
|
-
return false;
|
|
6689
|
-
}
|
|
6690
|
-
// some other error. we should definitely know about these
|
|
6691
|
-
throw error;
|
|
6692
|
-
}
|
|
6693
|
-
};
|
|
6614
|
+
module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
6694
6615
|
|
|
6695
6616
|
|
|
6696
6617
|
/***/ }),
|
|
6697
6618
|
|
|
6698
|
-
/***/ "../../../node_modules/react-is/cjs/react-is.development.js":
|
|
6699
|
-
|
|
6700
|
-
!*** ../../../node_modules/react-is/cjs/react-is.development.js ***!
|
|
6701
|
-
|
|
6619
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js":
|
|
6620
|
+
/*!******************************************************************************************!*\
|
|
6621
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js ***!
|
|
6622
|
+
\******************************************************************************************/
|
|
6702
6623
|
/***/ ((__unused_webpack_module, exports) => {
|
|
6703
6624
|
|
|
6704
6625
|
"use strict";
|
|
@@ -6887,18 +6808,162 @@ exports.typeOf = typeOf;
|
|
|
6887
6808
|
|
|
6888
6809
|
/***/ }),
|
|
6889
6810
|
|
|
6890
|
-
/***/ "../../../node_modules/react-is/index.js":
|
|
6891
|
-
|
|
6892
|
-
!*** ../../../node_modules/react-is/index.js ***!
|
|
6893
|
-
|
|
6811
|
+
/***/ "../../../node_modules/prop-types/node_modules/react-is/index.js":
|
|
6812
|
+
/*!***********************************************************************!*\
|
|
6813
|
+
!*** ../../../node_modules/prop-types/node_modules/react-is/index.js ***!
|
|
6814
|
+
\***********************************************************************/
|
|
6894
6815
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
6895
6816
|
|
|
6896
6817
|
"use strict";
|
|
6897
6818
|
|
|
6898
6819
|
|
|
6899
6820
|
if (false) {} else {
|
|
6900
|
-
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/react-is/cjs/react-is.development.js");
|
|
6821
|
+
module.exports = __webpack_require__(/*! ./cjs/react-is.development.js */ "../../../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js");
|
|
6822
|
+
}
|
|
6823
|
+
|
|
6824
|
+
|
|
6825
|
+
/***/ }),
|
|
6826
|
+
|
|
6827
|
+
/***/ "../../../node_modules/react-fast-compare/index.js":
|
|
6828
|
+
/*!*********************************************************!*\
|
|
6829
|
+
!*** ../../../node_modules/react-fast-compare/index.js ***!
|
|
6830
|
+
\*********************************************************/
|
|
6831
|
+
/***/ ((module) => {
|
|
6832
|
+
|
|
6833
|
+
/* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
|
|
6834
|
+
|
|
6835
|
+
var hasElementType = typeof Element !== 'undefined';
|
|
6836
|
+
var hasMap = typeof Map === 'function';
|
|
6837
|
+
var hasSet = typeof Set === 'function';
|
|
6838
|
+
var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
|
|
6839
|
+
|
|
6840
|
+
// Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
|
|
6841
|
+
|
|
6842
|
+
function equal(a, b) {
|
|
6843
|
+
// START: fast-deep-equal es6/index.js 3.1.1
|
|
6844
|
+
if (a === b) return true;
|
|
6845
|
+
|
|
6846
|
+
if (a && b && typeof a == 'object' && typeof b == 'object') {
|
|
6847
|
+
if (a.constructor !== b.constructor) return false;
|
|
6848
|
+
|
|
6849
|
+
var length, i, keys;
|
|
6850
|
+
if (Array.isArray(a)) {
|
|
6851
|
+
length = a.length;
|
|
6852
|
+
if (length != b.length) return false;
|
|
6853
|
+
for (i = length; i-- !== 0;)
|
|
6854
|
+
if (!equal(a[i], b[i])) return false;
|
|
6855
|
+
return true;
|
|
6856
|
+
}
|
|
6857
|
+
|
|
6858
|
+
// START: Modifications:
|
|
6859
|
+
// 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
|
|
6860
|
+
// to co-exist with es5.
|
|
6861
|
+
// 2. Replace `for of` with es5 compliant iteration using `for`.
|
|
6862
|
+
// Basically, take:
|
|
6863
|
+
//
|
|
6864
|
+
// ```js
|
|
6865
|
+
// for (i of a.entries())
|
|
6866
|
+
// if (!b.has(i[0])) return false;
|
|
6867
|
+
// ```
|
|
6868
|
+
//
|
|
6869
|
+
// ... and convert to:
|
|
6870
|
+
//
|
|
6871
|
+
// ```js
|
|
6872
|
+
// it = a.entries();
|
|
6873
|
+
// while (!(i = it.next()).done)
|
|
6874
|
+
// if (!b.has(i.value[0])) return false;
|
|
6875
|
+
// ```
|
|
6876
|
+
//
|
|
6877
|
+
// **Note**: `i` access switches to `i.value`.
|
|
6878
|
+
var it;
|
|
6879
|
+
if (hasMap && (a instanceof Map) && (b instanceof Map)) {
|
|
6880
|
+
if (a.size !== b.size) return false;
|
|
6881
|
+
it = a.entries();
|
|
6882
|
+
while (!(i = it.next()).done)
|
|
6883
|
+
if (!b.has(i.value[0])) return false;
|
|
6884
|
+
it = a.entries();
|
|
6885
|
+
while (!(i = it.next()).done)
|
|
6886
|
+
if (!equal(i.value[1], b.get(i.value[0]))) return false;
|
|
6887
|
+
return true;
|
|
6888
|
+
}
|
|
6889
|
+
|
|
6890
|
+
if (hasSet && (a instanceof Set) && (b instanceof Set)) {
|
|
6891
|
+
if (a.size !== b.size) return false;
|
|
6892
|
+
it = a.entries();
|
|
6893
|
+
while (!(i = it.next()).done)
|
|
6894
|
+
if (!b.has(i.value[0])) return false;
|
|
6895
|
+
return true;
|
|
6896
|
+
}
|
|
6897
|
+
// END: Modifications
|
|
6898
|
+
|
|
6899
|
+
if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
|
|
6900
|
+
length = a.length;
|
|
6901
|
+
if (length != b.length) return false;
|
|
6902
|
+
for (i = length; i-- !== 0;)
|
|
6903
|
+
if (a[i] !== b[i]) return false;
|
|
6904
|
+
return true;
|
|
6905
|
+
}
|
|
6906
|
+
|
|
6907
|
+
if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
|
|
6908
|
+
if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
|
|
6909
|
+
if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
|
|
6910
|
+
|
|
6911
|
+
keys = Object.keys(a);
|
|
6912
|
+
length = keys.length;
|
|
6913
|
+
if (length !== Object.keys(b).length) return false;
|
|
6914
|
+
|
|
6915
|
+
for (i = length; i-- !== 0;)
|
|
6916
|
+
if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
|
|
6917
|
+
// END: fast-deep-equal
|
|
6918
|
+
|
|
6919
|
+
// START: react-fast-compare
|
|
6920
|
+
// custom handling for DOM elements
|
|
6921
|
+
if (hasElementType && a instanceof Element) return false;
|
|
6922
|
+
|
|
6923
|
+
// custom handling for React/Preact
|
|
6924
|
+
for (i = length; i-- !== 0;) {
|
|
6925
|
+
if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
|
|
6926
|
+
// React-specific: avoid traversing React elements' _owner
|
|
6927
|
+
// Preact-specific: avoid traversing Preact elements' __v and __o
|
|
6928
|
+
// __v = $_original / $_vnode
|
|
6929
|
+
// __o = $_owner
|
|
6930
|
+
// These properties contain circular references and are not needed when
|
|
6931
|
+
// comparing the actual elements (and not their owners)
|
|
6932
|
+
// .$$typeof and ._store on just reasonable markers of elements
|
|
6933
|
+
|
|
6934
|
+
continue;
|
|
6935
|
+
}
|
|
6936
|
+
|
|
6937
|
+
// all other properties should be traversed as usual
|
|
6938
|
+
if (!equal(a[keys[i]], b[keys[i]])) return false;
|
|
6939
|
+
}
|
|
6940
|
+
// END: react-fast-compare
|
|
6941
|
+
|
|
6942
|
+
// START: fast-deep-equal
|
|
6943
|
+
return true;
|
|
6944
|
+
}
|
|
6945
|
+
|
|
6946
|
+
return a !== a && b !== b;
|
|
6901
6947
|
}
|
|
6948
|
+
// end fast-deep-equal
|
|
6949
|
+
|
|
6950
|
+
module.exports = function isEqual(a, b) {
|
|
6951
|
+
try {
|
|
6952
|
+
return equal(a, b);
|
|
6953
|
+
} catch (error) {
|
|
6954
|
+
if (((error.message || '').match(/stack|recursion/i))) {
|
|
6955
|
+
// warn on circular references, don't crash
|
|
6956
|
+
// browsers give this different errors name and messages:
|
|
6957
|
+
// chrome/safari: "RangeError", "Maximum call stack size exceeded"
|
|
6958
|
+
// firefox: "InternalError", too much recursion"
|
|
6959
|
+
// edge: "Error", "Out of stack space"
|
|
6960
|
+
console.warn('react-fast-compare cannot handle circular refs');
|
|
6961
|
+
return false;
|
|
6962
|
+
}
|
|
6963
|
+
// some other error. we should definitely know about these
|
|
6964
|
+
throw error;
|
|
6965
|
+
}
|
|
6966
|
+
};
|
|
6902
6967
|
|
|
6903
6968
|
|
|
6904
6969
|
/***/ }),
|
|
@@ -6912,11 +6977,11 @@ if (false) {} else {
|
|
|
6912
6977
|
"use strict";
|
|
6913
6978
|
__webpack_require__.r(__webpack_exports__);
|
|
6914
6979
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6915
|
-
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
6916
|
-
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
6917
6980
|
/* harmony export */ "interpolateFunction": () => (/* binding */ interpolateFunction),
|
|
6981
|
+
/* harmony export */ "interpolateImmediate": () => (/* binding */ interpolateImmediate),
|
|
6918
6982
|
/* harmony export */ "interpolateObject": () => (/* binding */ interpolateObject),
|
|
6919
6983
|
/* harmony export */ "interpolateString": () => (/* binding */ interpolateString),
|
|
6984
|
+
/* harmony export */ "isInterpolatable": () => (/* binding */ isInterpolatable),
|
|
6920
6985
|
/* harmony export */ "victoryInterpolator": () => (/* binding */ victoryInterpolator)
|
|
6921
6986
|
/* harmony export */ });
|
|
6922
6987
|
/* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/lodash/orderBy.js");
|
|
@@ -6961,7 +7026,7 @@ var isInterpolatable = function (obj) {
|
|
|
6961
7026
|
// component is only going to call the function (in which case it's
|
|
6962
7027
|
// safely interpolatable) or if it's going to access special properties
|
|
6963
7028
|
// (in which case our function generated from `interpolateFunction` will
|
|
6964
|
-
// most likely cause an error. We could check for enumerable properties
|
|
7029
|
+
// most likely cause an error). We could check for enumerable properties
|
|
6965
7030
|
// on the function object here to see if it's a "plain" function, but
|
|
6966
7031
|
// let's just require that components prevent such function props from
|
|
6967
7032
|
// being animated in the first place.
|
|
@@ -7013,7 +7078,7 @@ var interpolateFunction = function (a, b) {
|
|
|
7013
7078
|
}
|
|
7014
7079
|
|
|
7015
7080
|
return function () {
|
|
7016
|
-
/* eslint-disable no-invalid-this */
|
|
7081
|
+
/* eslint-disable no-invalid-this, prefer-rest-params */
|
|
7017
7082
|
var aval = typeof a === "function" ? a.apply(this, arguments) : a;
|
|
7018
7083
|
var bval = typeof b === "function" ? b.apply(this, arguments) : b;
|
|
7019
7084
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(aval, bval)(t);
|
|
@@ -7126,15 +7191,18 @@ var victoryInterpolator = function (a, b) {
|
|
|
7126
7191
|
}
|
|
7127
7192
|
|
|
7128
7193
|
if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
|
|
7194
|
+
// @ts-expect-error These generics are tough, but they work :)
|
|
7129
7195
|
return interpolateObject(a, b);
|
|
7130
7196
|
}
|
|
7131
7197
|
|
|
7132
7198
|
if (typeof a === "string" || typeof b === "string") {
|
|
7133
7199
|
return interpolateString(a, b);
|
|
7134
|
-
}
|
|
7200
|
+
} // @ts-expect-error These generics are tough, but they work :)
|
|
7201
|
+
|
|
7135
7202
|
|
|
7136
7203
|
return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__["default"])(a, b);
|
|
7137
7204
|
};
|
|
7205
|
+
//# sourceMappingURL=util.js.map
|
|
7138
7206
|
|
|
7139
7207
|
/***/ }),
|
|
7140
7208
|
|
|
@@ -7147,17 +7215,17 @@ var victoryInterpolator = function (a, b) {
|
|
|
7147
7215
|
"use strict";
|
|
7148
7216
|
__webpack_require__.r(__webpack_exports__);
|
|
7149
7217
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7150
|
-
/* harmony export */ "
|
|
7218
|
+
/* harmony export */ "VictoryAnimation": () => (/* binding */ VictoryAnimation)
|
|
7151
7219
|
/* harmony export */ });
|
|
7152
7220
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
7153
7221
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
7154
|
-
/* harmony import */ var
|
|
7155
|
-
/* harmony import */ var
|
|
7156
|
-
/* harmony import */ var
|
|
7157
|
-
/* harmony import */ var
|
|
7222
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7223
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
7224
|
+
/* harmony import */ var victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-ease */ "../../victory-vendor/es/d3-ease.js");
|
|
7225
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./util */ "../../victory-core/es/victory-animation/util.js");
|
|
7158
7226
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
7159
|
-
/* harmony import */ var
|
|
7160
|
-
/* harmony import */ var
|
|
7227
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
7228
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_1__);
|
|
7161
7229
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
7162
7230
|
|
|
7163
7231
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -7178,7 +7246,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7178
7246
|
|
|
7179
7247
|
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); }
|
|
7180
7248
|
|
|
7181
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7249
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7182
7250
|
|
|
7183
7251
|
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); }; }
|
|
7184
7252
|
|
|
@@ -7188,9 +7256,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7188
7256
|
|
|
7189
7257
|
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; } }
|
|
7190
7258
|
|
|
7191
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7192
|
-
|
|
7193
|
-
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; }
|
|
7259
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7194
7260
|
|
|
7195
7261
|
/*global setTimeout:false */
|
|
7196
7262
|
|
|
@@ -7199,7 +7265,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
7199
7265
|
|
|
7200
7266
|
|
|
7201
7267
|
|
|
7202
|
-
|
|
7203
7268
|
var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
7204
7269
|
_inherits(VictoryAnimation, _React$Component);
|
|
7205
7270
|
|
|
@@ -7213,6 +7278,56 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7213
7278
|
_this = _super.call(this, props, context);
|
|
7214
7279
|
/* defaults */
|
|
7215
7280
|
|
|
7281
|
+
_this.interpolator = void 0;
|
|
7282
|
+
_this.queue = void 0;
|
|
7283
|
+
_this.ease = void 0;
|
|
7284
|
+
_this.timer = void 0;
|
|
7285
|
+
_this.loopID = void 0;
|
|
7286
|
+
|
|
7287
|
+
_this.functionToBeRunEachFrame = function (elapsed, duration) {
|
|
7288
|
+
/*
|
|
7289
|
+
step can generate imprecise values, sometimes greater than 1
|
|
7290
|
+
if this happens set the state to 1 and return, cancelling the timer
|
|
7291
|
+
*/
|
|
7292
|
+
duration = duration !== undefined ? duration : _this.props.duration;
|
|
7293
|
+
var step = duration ? elapsed / duration : 1;
|
|
7294
|
+
|
|
7295
|
+
if (step >= 1) {
|
|
7296
|
+
_this.setState({
|
|
7297
|
+
data: _this.interpolator(1),
|
|
7298
|
+
animationInfo: {
|
|
7299
|
+
progress: 1,
|
|
7300
|
+
animating: false,
|
|
7301
|
+
terminating: true
|
|
7302
|
+
}
|
|
7303
|
+
});
|
|
7304
|
+
|
|
7305
|
+
if (_this.loopID) {
|
|
7306
|
+
_this.timer.unsubscribe(_this.loopID);
|
|
7307
|
+
}
|
|
7308
|
+
|
|
7309
|
+
_this.queue.shift();
|
|
7310
|
+
|
|
7311
|
+
_this.traverseQueue();
|
|
7312
|
+
|
|
7313
|
+
return;
|
|
7314
|
+
}
|
|
7315
|
+
/*
|
|
7316
|
+
if we're not at the end of the timer, set the state by passing
|
|
7317
|
+
current step value that's transformed by the ease function to the
|
|
7318
|
+
interpolator, which is cached for performance whenever props are received
|
|
7319
|
+
*/
|
|
7320
|
+
|
|
7321
|
+
|
|
7322
|
+
_this.setState({
|
|
7323
|
+
data: _this.interpolator(_this.ease(step)),
|
|
7324
|
+
animationInfo: {
|
|
7325
|
+
progress: step,
|
|
7326
|
+
animating: step < 1
|
|
7327
|
+
}
|
|
7328
|
+
});
|
|
7329
|
+
};
|
|
7330
|
+
|
|
7216
7331
|
_this.state = {
|
|
7217
7332
|
data: Array.isArray(_this.props.data) ? _this.props.data[0] : _this.props.data,
|
|
7218
7333
|
animationInfo: {
|
|
@@ -7224,13 +7339,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7224
7339
|
_this.queue = Array.isArray(_this.props.data) ? _this.props.data.slice(1) : [];
|
|
7225
7340
|
/* build easing function */
|
|
7226
7341
|
|
|
7227
|
-
_this.ease =
|
|
7228
|
-
/*
|
|
7229
|
-
There is no autobinding of this in ES6 classes
|
|
7230
|
-
so we bind functionToBeRunEachFrame to current instance of victory animation class
|
|
7231
|
-
*/
|
|
7232
|
-
|
|
7233
|
-
_this.functionToBeRunEachFrame = _this.functionToBeRunEachFrame.bind(_assertThisInitialized(_this));
|
|
7342
|
+
_this.ease = victory_vendor_d3_ease__WEBPACK_IMPORTED_MODULE_2__[_this.toNewName(_this.props.easing)];
|
|
7234
7343
|
_this.timer = _this.context.animationTimer;
|
|
7235
7344
|
return _this;
|
|
7236
7345
|
}
|
|
@@ -7246,7 +7355,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7246
7355
|
}, {
|
|
7247
7356
|
key: "componentDidUpdate",
|
|
7248
7357
|
value: function componentDidUpdate(prevProps) {
|
|
7249
|
-
var equalProps =
|
|
7358
|
+
var equalProps = react_fast_compare__WEBPACK_IMPORTED_MODULE_1___default()(this.props, prevProps);
|
|
7250
7359
|
|
|
7251
7360
|
if (!equalProps) {
|
|
7252
7361
|
/* If the previous animation didn't finish, force it to complete before starting a new one */
|
|
@@ -7315,7 +7424,7 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7315
7424
|
var data = this.queue[0];
|
|
7316
7425
|
/* compare cached version to next props */
|
|
7317
7426
|
|
|
7318
|
-
this.interpolator = (0,
|
|
7427
|
+
this.interpolator = (0,_util__WEBPACK_IMPORTED_MODULE_3__.victoryInterpolator)(this.state.data, data);
|
|
7319
7428
|
/* reset step to zero */
|
|
7320
7429
|
|
|
7321
7430
|
if (this.props.delay) {
|
|
@@ -7331,49 +7440,6 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7331
7440
|
}
|
|
7332
7441
|
/* every frame we... */
|
|
7333
7442
|
|
|
7334
|
-
}, {
|
|
7335
|
-
key: "functionToBeRunEachFrame",
|
|
7336
|
-
value: function functionToBeRunEachFrame(elapsed, duration) {
|
|
7337
|
-
/*
|
|
7338
|
-
step can generate imprecise values, sometimes greater than 1
|
|
7339
|
-
if this happens set the state to 1 and return, cancelling the timer
|
|
7340
|
-
*/
|
|
7341
|
-
duration = duration !== undefined ? duration : this.props.duration;
|
|
7342
|
-
var step = duration ? elapsed / duration : 1;
|
|
7343
|
-
|
|
7344
|
-
if (step >= 1) {
|
|
7345
|
-
this.setState({
|
|
7346
|
-
data: this.interpolator(1),
|
|
7347
|
-
animationInfo: {
|
|
7348
|
-
progress: 1,
|
|
7349
|
-
animating: false,
|
|
7350
|
-
terminating: true
|
|
7351
|
-
}
|
|
7352
|
-
});
|
|
7353
|
-
|
|
7354
|
-
if (this.loopID) {
|
|
7355
|
-
this.timer.unsubscribe(this.loopID);
|
|
7356
|
-
}
|
|
7357
|
-
|
|
7358
|
-
this.queue.shift();
|
|
7359
|
-
this.traverseQueue();
|
|
7360
|
-
return;
|
|
7361
|
-
}
|
|
7362
|
-
/*
|
|
7363
|
-
if we're not at the end of the timer, set the state by passing
|
|
7364
|
-
current step value that's transformed by the ease function to the
|
|
7365
|
-
interpolator, which is cached for performance whenever props are received
|
|
7366
|
-
*/
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
this.setState({
|
|
7370
|
-
data: this.interpolator(this.ease(step)),
|
|
7371
|
-
animationInfo: {
|
|
7372
|
-
progress: step,
|
|
7373
|
-
animating: step < 1
|
|
7374
|
-
}
|
|
7375
|
-
});
|
|
7376
|
-
}
|
|
7377
7443
|
}, {
|
|
7378
7444
|
key: "render",
|
|
7379
7445
|
value: function render() {
|
|
@@ -7383,28 +7449,23 @@ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
|
|
|
7383
7449
|
|
|
7384
7450
|
return VictoryAnimation;
|
|
7385
7451
|
}((react__WEBPACK_IMPORTED_MODULE_0___default().Component));
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
});
|
|
7397
|
-
|
|
7398
|
-
_defineProperty(VictoryAnimation, "defaultProps", {
|
|
7452
|
+
VictoryAnimation.displayName = "VictoryAnimation";
|
|
7453
|
+
VictoryAnimation.propTypes = {
|
|
7454
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
|
|
7455
|
+
data: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().array)]),
|
|
7456
|
+
delay: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7457
|
+
duration: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
7458
|
+
easing: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["back", "backIn", "backOut", "backInOut", "bounce", "bounceIn", "bounceOut", "bounceInOut", "circle", "circleIn", "circleOut", "circleInOut", "linear", "linearIn", "linearOut", "linearInOut", "cubic", "cubicIn", "cubicOut", "cubicInOut", "elastic", "elasticIn", "elasticOut", "elasticInOut", "exp", "expIn", "expOut", "expInOut", "poly", "polyIn", "polyOut", "polyInOut", "quad", "quadIn", "quadOut", "quadInOut", "sin", "sinIn", "sinOut", "sinInOut"]),
|
|
7459
|
+
onEnd: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)
|
|
7460
|
+
};
|
|
7461
|
+
VictoryAnimation.defaultProps = {
|
|
7399
7462
|
data: {},
|
|
7400
7463
|
delay: 0,
|
|
7401
7464
|
duration: 1000,
|
|
7402
7465
|
easing: "quadInOut"
|
|
7403
|
-
}
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7466
|
+
};
|
|
7467
|
+
VictoryAnimation.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_5__["default"];
|
|
7468
|
+
//# sourceMappingURL=victory-animation.js.map
|
|
7408
7469
|
|
|
7409
7470
|
/***/ }),
|
|
7410
7471
|
|
|
@@ -7417,7 +7478,7 @@ _defineProperty(VictoryAnimation, "contextType", _victory_util_timer_context__WE
|
|
|
7417
7478
|
"use strict";
|
|
7418
7479
|
__webpack_require__.r(__webpack_exports__);
|
|
7419
7480
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7420
|
-
/* harmony export */ "
|
|
7481
|
+
/* harmony export */ "VictoryContainer": () => (/* binding */ VictoryContainer)
|
|
7421
7482
|
/* harmony export */ });
|
|
7422
7483
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
7423
7484
|
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7431,26 +7492,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7431
7492
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_4__);
|
|
7432
7493
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "react");
|
|
7433
7494
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
|
|
7434
|
-
/* harmony import */ var
|
|
7435
|
-
/* harmony import */ var
|
|
7495
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7496
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
7436
7497
|
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
7437
7498
|
/* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
|
|
7438
|
-
/* harmony import */ var
|
|
7499
|
+
/* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
7439
7500
|
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
7440
|
-
/* harmony import */ var
|
|
7441
|
-
/* harmony import */ var
|
|
7501
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7502
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
7442
7503
|
|
|
7443
7504
|
|
|
7444
7505
|
|
|
7445
7506
|
|
|
7446
7507
|
|
|
7447
7508
|
|
|
7448
|
-
function _extends() { _extends = Object.assign
|
|
7509
|
+
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); }
|
|
7449
7510
|
|
|
7450
7511
|
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; }
|
|
7451
7512
|
|
|
7452
7513
|
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; }
|
|
7453
7514
|
|
|
7515
|
+
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; }
|
|
7516
|
+
|
|
7454
7517
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7455
7518
|
|
|
7456
7519
|
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); } }
|
|
@@ -7459,7 +7522,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
7459
7522
|
|
|
7460
7523
|
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); }
|
|
7461
7524
|
|
|
7462
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
7525
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
7463
7526
|
|
|
7464
7527
|
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); }; }
|
|
7465
7528
|
|
|
@@ -7469,10 +7532,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
7469
7532
|
|
|
7470
7533
|
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; } }
|
|
7471
7534
|
|
|
7472
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7473
|
-
|
|
7474
|
-
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; }
|
|
7475
|
-
|
|
7535
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
7476
7536
|
|
|
7477
7537
|
|
|
7478
7538
|
|
|
@@ -7487,13 +7547,18 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7487
7547
|
|
|
7488
7548
|
var _super = _createSuper(VictoryContainer);
|
|
7489
7549
|
|
|
7550
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7551
|
+
// @ts-expect-error Ref will be initialized on mount
|
|
7490
7552
|
function VictoryContainer(props) {
|
|
7491
7553
|
var _this;
|
|
7492
7554
|
|
|
7493
7555
|
_classCallCheck(this, VictoryContainer);
|
|
7494
7556
|
|
|
7495
7557
|
_this = _super.call(this, props);
|
|
7496
|
-
_this.containerId =
|
|
7558
|
+
_this.containerId = void 0;
|
|
7559
|
+
_this.portalRef = void 0;
|
|
7560
|
+
_this.containerRef = void 0;
|
|
7561
|
+
_this.shouldHandleWheel = void 0;
|
|
7497
7562
|
|
|
7498
7563
|
_this.savePortalRef = function (portal) {
|
|
7499
7564
|
_this.portalRef = portal;
|
|
@@ -7512,18 +7577,21 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7512
7577
|
return _this.portalRef.portalDeregister(key);
|
|
7513
7578
|
};
|
|
7514
7579
|
|
|
7515
|
-
_this.saveContainerRef =
|
|
7580
|
+
_this.saveContainerRef = function (container) {
|
|
7581
|
+
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_0___default()(_this.props.containerRef)) {
|
|
7582
|
+
_this.props.containerRef(container);
|
|
7583
|
+
}
|
|
7584
|
+
|
|
7516
7585
|
_this.containerRef = container;
|
|
7517
7586
|
return container;
|
|
7518
7587
|
};
|
|
7519
|
-
_this.shouldHandleWheel = props && props.events && props.events.onWheel;
|
|
7520
7588
|
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
};
|
|
7525
|
-
}
|
|
7589
|
+
_this.handleWheel = function (e) {
|
|
7590
|
+
return e.preventDefault();
|
|
7591
|
+
};
|
|
7526
7592
|
|
|
7593
|
+
_this.containerId = !lodash_isObject__WEBPACK_IMPORTED_MODULE_1___default()(props) || props.containerId === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("victory-container-") : props.containerId;
|
|
7594
|
+
_this.shouldHandleWheel = !!(props && props.events && props.events.onWheel);
|
|
7527
7595
|
return _this;
|
|
7528
7596
|
}
|
|
7529
7597
|
|
|
@@ -7616,7 +7684,7 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7616
7684
|
preserveAspectRatio: svgProps.preserveAspectRatio,
|
|
7617
7685
|
style: portalSvgStyle
|
|
7618
7686
|
};
|
|
7619
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(
|
|
7687
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_6__.PortalContext.Provider, {
|
|
7620
7688
|
value: {
|
|
7621
7689
|
portalUpdate: this.portalUpdate,
|
|
7622
7690
|
portalRegister: this.portalRegister,
|
|
@@ -7651,8 +7719,8 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7651
7719
|
tabIndex = _this$props.tabIndex,
|
|
7652
7720
|
preserveAspectRatio = _this$props.preserveAspectRatio,
|
|
7653
7721
|
role = _this$props.role;
|
|
7654
|
-
var style = responsive ? this.props.style :
|
|
7655
|
-
var userProps =
|
|
7722
|
+
var style = responsive ? this.props.style : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.omit(this.props.style, ["height", "width"]);
|
|
7723
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(this.props);
|
|
7656
7724
|
|
|
7657
7725
|
var svgProps = lodash_assign__WEBPACK_IMPORTED_MODULE_4___default()(_objectSpread({
|
|
7658
7726
|
width: width,
|
|
@@ -7671,53 +7739,47 @@ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
|
|
|
7671
7739
|
|
|
7672
7740
|
return VictoryContainer;
|
|
7673
7741
|
}((react__WEBPACK_IMPORTED_MODULE_5___default().Component));
|
|
7674
|
-
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().func),
|
|
7686
|
-
desc: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().string),
|
|
7687
|
-
events: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().object),
|
|
7742
|
+
VictoryContainer.displayName = "VictoryContainer";
|
|
7743
|
+
VictoryContainer.role = "container";
|
|
7744
|
+
VictoryContainer.propTypes = {
|
|
7745
|
+
"aria-describedby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7746
|
+
"aria-labelledby": (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7747
|
+
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)]),
|
|
7748
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7749
|
+
containerId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
7750
|
+
containerRef: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().func),
|
|
7751
|
+
desc: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7752
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7688
7753
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7689
|
-
name: (
|
|
7690
|
-
origin:
|
|
7754
|
+
name: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7755
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_9___default().shape({
|
|
7691
7756
|
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative,
|
|
7692
7757
|
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7693
7758
|
}),
|
|
7694
|
-
ouiaId:
|
|
7695
|
-
ouiaSafe: (
|
|
7696
|
-
ouiaType: (
|
|
7697
|
-
polar: (
|
|
7698
|
-
portalComponent: (
|
|
7759
|
+
ouiaId: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string)]),
|
|
7760
|
+
ouiaSafe: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7761
|
+
ouiaType: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7762
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7763
|
+
portalComponent: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().element),
|
|
7699
7764
|
portalZIndex: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.integer,
|
|
7700
|
-
preserveAspectRatio: (
|
|
7701
|
-
responsive: (
|
|
7702
|
-
role: (
|
|
7703
|
-
style: (
|
|
7704
|
-
tabIndex: (
|
|
7705
|
-
theme: (
|
|
7706
|
-
title: (
|
|
7765
|
+
preserveAspectRatio: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7766
|
+
responsive: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool),
|
|
7767
|
+
role: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7768
|
+
style: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7769
|
+
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().number),
|
|
7770
|
+
theme: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),
|
|
7771
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().string),
|
|
7707
7772
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_10__.nonNegative
|
|
7708
|
-
}
|
|
7709
|
-
|
|
7710
|
-
_defineProperty(VictoryContainer, "defaultProps", {
|
|
7773
|
+
};
|
|
7774
|
+
VictoryContainer.defaultProps = {
|
|
7711
7775
|
className: "VictoryContainer",
|
|
7712
|
-
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__
|
|
7776
|
+
portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_11__.Portal, null),
|
|
7713
7777
|
portalZIndex: 99,
|
|
7714
7778
|
responsive: true,
|
|
7715
7779
|
role: "img"
|
|
7716
|
-
}
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7720
|
-
|
|
7780
|
+
};
|
|
7781
|
+
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
7782
|
+
//# sourceMappingURL=victory-container.js.map
|
|
7721
7783
|
|
|
7722
7784
|
/***/ }),
|
|
7723
7785
|
|
|
@@ -7730,7 +7792,7 @@ _defineProperty(VictoryContainer, "contextType", _victory_util_timer_context__WE
|
|
|
7730
7792
|
"use strict";
|
|
7731
7793
|
__webpack_require__.r(__webpack_exports__);
|
|
7732
7794
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
7733
|
-
/* harmony export */ "
|
|
7795
|
+
/* harmony export */ "VictoryLabel": () => (/* binding */ VictoryLabel)
|
|
7734
7796
|
/* harmony export */ });
|
|
7735
7797
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
7736
7798
|
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -7738,20 +7800,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7738
7800
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
|
|
7739
7801
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
7740
7802
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
|
|
7741
|
-
/* harmony import */ var
|
|
7742
|
-
/* harmony import */ var
|
|
7743
|
-
/* harmony import */ var
|
|
7744
|
-
/* harmony import */ var
|
|
7803
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
7804
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_11__);
|
|
7805
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
7806
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
7745
7807
|
/* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
|
|
7746
|
-
/* harmony import */ var
|
|
7747
|
-
/* harmony import */ var
|
|
7748
|
-
/* harmony import */ var
|
|
7749
|
-
/* harmony import */ var
|
|
7750
|
-
/* harmony import */ var
|
|
7751
|
-
/* harmony import */ var
|
|
7752
|
-
/* harmony import */ var
|
|
7753
|
-
/* harmony import */ var
|
|
7808
|
+
/* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
7809
|
+
/* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
|
|
7810
|
+
/* harmony import */ var _victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../victory-primitives/tspan */ "../../victory-core/es/victory-primitives/tspan.js");
|
|
7811
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
7812
|
+
/* harmony import */ var _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/label-helpers */ "../../victory-core/es/victory-util/label-helpers.js");
|
|
7813
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
7814
|
+
/* harmony import */ var _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-util/prop-types */ "../../victory-core/es/victory-util/prop-types.js");
|
|
7815
|
+
/* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
|
|
7754
7816
|
/* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
|
|
7817
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
7755
7818
|
|
|
7756
7819
|
|
|
7757
7820
|
|
|
@@ -7786,6 +7849,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
7786
7849
|
|
|
7787
7850
|
|
|
7788
7851
|
|
|
7852
|
+
|
|
7789
7853
|
var defaultStyles = {
|
|
7790
7854
|
fill: "#252525",
|
|
7791
7855
|
fontSize: 14,
|
|
@@ -7798,7 +7862,7 @@ var getPosition = function (props, dimension) {
|
|
|
7798
7862
|
return 0;
|
|
7799
7863
|
}
|
|
7800
7864
|
|
|
7801
|
-
var scaledPoint =
|
|
7865
|
+
var scaledPoint = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.scalePoint(props, props.datum);
|
|
7802
7866
|
return scaledPoint[dimension];
|
|
7803
7867
|
};
|
|
7804
7868
|
|
|
@@ -7815,7 +7879,7 @@ var getFontSize = function (style) {
|
|
|
7815
7879
|
if (!isNaN(fontSize)) {
|
|
7816
7880
|
return fontSize;
|
|
7817
7881
|
} else {
|
|
7818
|
-
|
|
7882
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_5__.warn("fontSize should be expressed as a number of pixels");
|
|
7819
7883
|
return defaultStyles.fontSize;
|
|
7820
7884
|
}
|
|
7821
7885
|
}
|
|
@@ -7836,7 +7900,7 @@ var shouldUseMultilineBackgrounds = function (props) {
|
|
|
7836
7900
|
|
|
7837
7901
|
var getStyles = function (style, props) {
|
|
7838
7902
|
if (props.disableInlineStyles) {
|
|
7839
|
-
var baseStyles =
|
|
7903
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
7840
7904
|
return {
|
|
7841
7905
|
// Font size is necessary to calculate the y position of the label
|
|
7842
7906
|
fontSize: getFontSize(baseStyles)
|
|
@@ -7845,7 +7909,7 @@ var getStyles = function (style, props) {
|
|
|
7845
7909
|
|
|
7846
7910
|
var getSingleStyle = function (s) {
|
|
7847
7911
|
s = s ? lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, s, defaultStyles) : defaultStyles;
|
|
7848
|
-
var baseStyles =
|
|
7912
|
+
var baseStyles = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
7849
7913
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, baseStyles, {
|
|
7850
7914
|
fontSize: getFontSize(baseStyles)
|
|
7851
7915
|
});
|
|
@@ -7862,28 +7926,28 @@ var getBackgroundStyles = function (style, props) {
|
|
|
7862
7926
|
}
|
|
7863
7927
|
|
|
7864
7928
|
return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(function (s) {
|
|
7865
|
-
return
|
|
7866
|
-
}) :
|
|
7929
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(s, props);
|
|
7930
|
+
}) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(style, props);
|
|
7867
7931
|
};
|
|
7868
7932
|
|
|
7869
7933
|
var getBackgroundPadding = function (props) {
|
|
7870
7934
|
if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
|
|
7871
7935
|
return props.backgroundPadding.map(function (backgroundPadding) {
|
|
7872
|
-
var padding =
|
|
7873
|
-
return
|
|
7936
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(backgroundPadding, props);
|
|
7937
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
7874
7938
|
padding: padding
|
|
7875
7939
|
});
|
|
7876
7940
|
});
|
|
7877
7941
|
} else {
|
|
7878
|
-
var padding =
|
|
7879
|
-
return
|
|
7942
|
+
var padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.backgroundPadding, props);
|
|
7943
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.getPadding({
|
|
7880
7944
|
padding: padding
|
|
7881
7945
|
});
|
|
7882
7946
|
}
|
|
7883
7947
|
};
|
|
7884
7948
|
|
|
7885
7949
|
var getLineHeight = function (props) {
|
|
7886
|
-
var lineHeight =
|
|
7950
|
+
var lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.lineHeight, props);
|
|
7887
7951
|
|
|
7888
7952
|
if (Array.isArray(lineHeight)) {
|
|
7889
7953
|
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
|
|
@@ -7899,11 +7963,11 @@ var getContent = function (text, props) {
|
|
|
7899
7963
|
|
|
7900
7964
|
if (Array.isArray(text)) {
|
|
7901
7965
|
return text.map(function (line) {
|
|
7902
|
-
return
|
|
7966
|
+
return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(line, props);
|
|
7903
7967
|
});
|
|
7904
7968
|
}
|
|
7905
7969
|
|
|
7906
|
-
var child =
|
|
7970
|
+
var child = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(text, props);
|
|
7907
7971
|
|
|
7908
7972
|
if (child === undefined || child === null) {
|
|
7909
7973
|
return undefined;
|
|
@@ -7913,10 +7977,10 @@ var getContent = function (text, props) {
|
|
|
7913
7977
|
};
|
|
7914
7978
|
|
|
7915
7979
|
var getDy = function (props, verticalAnchor, lineHeight) {
|
|
7916
|
-
var dy = props.dy ?
|
|
7980
|
+
var dy = props.dy ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dy, props) : 0;
|
|
7917
7981
|
var length = props.inline ? 1 : props.text.length;
|
|
7918
|
-
var capHeight =
|
|
7919
|
-
var anchor = verticalAnchor ?
|
|
7982
|
+
var capHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.capHeight, props);
|
|
7983
|
+
var anchor = verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(verticalAnchor, props) : "middle";
|
|
7920
7984
|
|
|
7921
7985
|
var fontSizes = _toConsumableArray(Array(length).keys()).map(function (i) {
|
|
7922
7986
|
return getSingleValue(props.style, i).fontSize;
|
|
@@ -7944,15 +8008,15 @@ var getDy = function (props, verticalAnchor, lineHeight) {
|
|
|
7944
8008
|
var getTransform = function (props, x, y) {
|
|
7945
8009
|
var polar = props.polar;
|
|
7946
8010
|
var style = getSingleValue(props.style);
|
|
7947
|
-
var defaultAngle = polar ?
|
|
7948
|
-
var baseAngle = style.angle === undefined ?
|
|
8011
|
+
var defaultAngle = polar ? _victory_util_label_helpers__WEBPACK_IMPORTED_MODULE_6__.getPolarAngle(props) : 0;
|
|
8012
|
+
var baseAngle = style.angle === undefined ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.angle, props) : style.angle;
|
|
7949
8013
|
var angle = baseAngle === undefined ? defaultAngle : baseAngle;
|
|
7950
8014
|
var transform = props.transform || style.transform;
|
|
7951
|
-
var transformPart = transform &&
|
|
8015
|
+
var transformPart = transform && _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(transform, props);
|
|
7952
8016
|
var rotatePart = angle && {
|
|
7953
8017
|
rotate: [angle, x, y]
|
|
7954
8018
|
};
|
|
7955
|
-
return transformPart || angle ?
|
|
8019
|
+
return transformPart || angle ? _victory_util_style__WEBPACK_IMPORTED_MODULE_7__.toTransformString(transformPart, rotatePart) : undefined;
|
|
7956
8020
|
};
|
|
7957
8021
|
|
|
7958
8022
|
var getXCoordinate = function (calculatedProps, labelSizeWidth) {
|
|
@@ -8033,7 +8097,7 @@ var getFullBackground = function (calculatedProps, tspanValues) {
|
|
|
8033
8097
|
x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
|
|
8034
8098
|
y: yCoordinate
|
|
8035
8099
|
};
|
|
8036
|
-
return /*#__PURE__*/
|
|
8100
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8037
8101
|
};
|
|
8038
8102
|
|
|
8039
8103
|
var getInlineXOffset = function (calculatedProps, textElements, index) {
|
|
@@ -8115,7 +8179,7 @@ var getChildBackgrounds = function (calculatedProps, tspanValues) {
|
|
|
8115
8179
|
x: xCoord - padding.left,
|
|
8116
8180
|
y: yCoord
|
|
8117
8181
|
};
|
|
8118
|
-
return /*#__PURE__*/
|
|
8182
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
|
|
8119
8183
|
});
|
|
8120
8184
|
};
|
|
8121
8185
|
|
|
@@ -8166,7 +8230,7 @@ var evaluateProps = function (props) {
|
|
|
8166
8230
|
style: style,
|
|
8167
8231
|
backgroundStyle: backgroundStyle
|
|
8168
8232
|
}));
|
|
8169
|
-
var id =
|
|
8233
|
+
var id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
|
|
8170
8234
|
return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
|
|
8171
8235
|
backgroundStyle: backgroundStyle,
|
|
8172
8236
|
backgroundPadding: backgroundPadding,
|
|
@@ -8177,13 +8241,13 @@ var evaluateProps = function (props) {
|
|
|
8177
8241
|
};
|
|
8178
8242
|
|
|
8179
8243
|
var getCalculatedProps = function (props) {
|
|
8180
|
-
var ariaLabel =
|
|
8244
|
+
var ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
|
|
8181
8245
|
var style = getSingleValue(props.style);
|
|
8182
8246
|
var lineHeight = getLineHeight(props);
|
|
8183
|
-
var direction = props.direction ?
|
|
8184
|
-
var textAnchor = props.textAnchor ?
|
|
8185
|
-
var verticalAnchor = props.verticalAnchor ?
|
|
8186
|
-
var dx = props.dx ?
|
|
8247
|
+
var direction = props.direction ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.direction, props) : "inherit";
|
|
8248
|
+
var textAnchor = props.textAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.textAnchor, props) : style.textAnchor || "start";
|
|
8249
|
+
var verticalAnchor = props.verticalAnchor ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.verticalAnchor, props) : style.verticalAnchor || "middle";
|
|
8250
|
+
var dx = props.dx ? _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.dx, props) : 0;
|
|
8187
8251
|
var dy = getDy(props, verticalAnchor, lineHeight);
|
|
8188
8252
|
var x = props.x !== undefined ? props.x : getPosition(props, "x");
|
|
8189
8253
|
var y = props.y !== undefined ? props.y : getPosition(props, "y");
|
|
@@ -8222,6 +8286,7 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8222
8286
|
tabIndex = calculatedProps.tabIndex,
|
|
8223
8287
|
tspanComponent = calculatedProps.tspanComponent,
|
|
8224
8288
|
textComponent = calculatedProps.textComponent;
|
|
8289
|
+
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_8__.getSafeUserProps(calculatedProps);
|
|
8225
8290
|
|
|
8226
8291
|
var textProps = _objectSpread(_objectSpread({
|
|
8227
8292
|
"aria-label": ariaLabel,
|
|
@@ -8234,10 +8299,10 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8234
8299
|
transform: transform,
|
|
8235
8300
|
className: className,
|
|
8236
8301
|
title: title,
|
|
8237
|
-
desc:
|
|
8238
|
-
tabIndex:
|
|
8302
|
+
desc: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(desc, calculatedProps),
|
|
8303
|
+
tabIndex: _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(tabIndex, calculatedProps),
|
|
8239
8304
|
id: id
|
|
8240
|
-
});
|
|
8305
|
+
}, userProps);
|
|
8241
8306
|
|
|
8242
8307
|
var tspans = text.map(function (line, i) {
|
|
8243
8308
|
var currentStyle = tspanValues[i].style;
|
|
@@ -8250,9 +8315,9 @@ var renderLabel = function (calculatedProps, tspanValues) {
|
|
|
8250
8315
|
style: currentStyle,
|
|
8251
8316
|
children: line
|
|
8252
8317
|
};
|
|
8253
|
-
return /*#__PURE__*/
|
|
8318
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(tspanComponent, tspanProps);
|
|
8254
8319
|
});
|
|
8255
|
-
return /*#__PURE__*/
|
|
8320
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(textComponent, textProps, tspans);
|
|
8256
8321
|
};
|
|
8257
8322
|
|
|
8258
8323
|
var VictoryLabel = function (props) {
|
|
@@ -8277,6 +8342,7 @@ var VictoryLabel = function (props) {
|
|
|
8277
8342
|
fontSize: currentStyle.fontSize || defaultStyles.fontSize,
|
|
8278
8343
|
capHeight: capHeightPx,
|
|
8279
8344
|
text: line,
|
|
8345
|
+
// @ts-expect-error TODO: This looks like a bug:
|
|
8280
8346
|
textSize: _victory_util_textsize__WEBPACK_IMPORTED_MODULE_9__.approximateTextSize(line, currentStyle),
|
|
8281
8347
|
lineHeight: currentLineHeight,
|
|
8282
8348
|
backgroundPadding: getSingleValue(backgroundPadding, i)
|
|
@@ -8287,71 +8353,75 @@ var VictoryLabel = function (props) {
|
|
|
8287
8353
|
if (props.backgroundStyle) {
|
|
8288
8354
|
var backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
|
|
8289
8355
|
var children = [backgroundElement, label];
|
|
8290
|
-
var backgroundWithLabel = /*#__PURE__*/
|
|
8291
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
8356
|
+
var backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.groupComponent, {}, children);
|
|
8357
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
|
|
8292
8358
|
}
|
|
8293
8359
|
|
|
8294
|
-
return props.renderInPortal ? /*#__PURE__*/
|
|
8360
|
+
return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_10__.VictoryPortal, null, label) : label;
|
|
8295
8361
|
};
|
|
8296
|
-
|
|
8297
8362
|
VictoryLabel.displayName = "VictoryLabel";
|
|
8298
8363
|
VictoryLabel.role = "label";
|
|
8299
8364
|
VictoryLabel.defaultStyles = defaultStyles;
|
|
8300
8365
|
VictoryLabel.propTypes = {
|
|
8301
|
-
active: (
|
|
8302
|
-
angle:
|
|
8303
|
-
ariaLabel:
|
|
8304
|
-
backgroundComponent: (
|
|
8305
|
-
backgroundPadding:
|
|
8306
|
-
backgroundStyle:
|
|
8307
|
-
capHeight:
|
|
8308
|
-
className: (
|
|
8309
|
-
data: (
|
|
8310
|
-
datum: (
|
|
8311
|
-
|
|
8312
|
-
|
|
8313
|
-
|
|
8314
|
-
|
|
8315
|
-
|
|
8316
|
-
|
|
8317
|
-
|
|
8318
|
-
|
|
8319
|
-
|
|
8320
|
-
|
|
8321
|
-
|
|
8322
|
-
|
|
8323
|
-
|
|
8324
|
-
|
|
8366
|
+
active: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8367
|
+
angle: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8368
|
+
ariaLabel: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8369
|
+
backgroundComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8370
|
+
backgroundPadding: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8371
|
+
backgroundStyle: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8372
|
+
capHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8373
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
8374
|
+
data: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array),
|
|
8375
|
+
datum: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().any),
|
|
8376
|
+
// @ts-expect-error "Function is not assignable to string"
|
|
8377
|
+
desc: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8378
|
+
direction: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["rtl", "ltr", "inherit"]),
|
|
8379
|
+
dx: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8380
|
+
dy: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8381
|
+
events: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object),
|
|
8382
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8383
|
+
id: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8384
|
+
index: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
8385
|
+
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8386
|
+
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
8387
|
+
lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8388
|
+
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
8389
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
8390
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
8325
8391
|
}),
|
|
8326
|
-
polar: (
|
|
8327
|
-
renderInPortal: (
|
|
8328
|
-
scale:
|
|
8329
|
-
x:
|
|
8330
|
-
y:
|
|
8392
|
+
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8393
|
+
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
8394
|
+
scale: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
8395
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale,
|
|
8396
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.scale
|
|
8331
8397
|
}),
|
|
8332
|
-
style:
|
|
8333
|
-
tabIndex:
|
|
8334
|
-
text:
|
|
8335
|
-
|
|
8336
|
-
|
|
8337
|
-
|
|
8338
|
-
|
|
8339
|
-
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8398
|
+
style: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8399
|
+
tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8400
|
+
text: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
8401
|
+
// @ts-expect-error Function is not assignable to string"
|
|
8402
|
+
textAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end", "inherit"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8403
|
+
textComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8404
|
+
title: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string),
|
|
8405
|
+
transform: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().object), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8406
|
+
tspanComponent: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().element),
|
|
8407
|
+
// @ts-expect-error Function is not assignable to string"
|
|
8408
|
+
verticalAnchor: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["start", "middle", "end"]), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func)]),
|
|
8409
|
+
// @ts-expect-error Number is not assignable to string
|
|
8410
|
+
x: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)]),
|
|
8411
|
+
// @ts-expect-error Number is not assignable to string
|
|
8412
|
+
y: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().string)])
|
|
8343
8413
|
};
|
|
8344
8414
|
VictoryLabel.defaultProps = {
|
|
8345
|
-
backgroundComponent: /*#__PURE__*/
|
|
8346
|
-
groupComponent: /*#__PURE__*/
|
|
8415
|
+
backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_13__.Rect, null),
|
|
8416
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement("g", null),
|
|
8347
8417
|
direction: "inherit",
|
|
8348
|
-
textComponent: /*#__PURE__*/
|
|
8349
|
-
tspanComponent: /*#__PURE__*/
|
|
8418
|
+
textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_14__.Text, null),
|
|
8419
|
+
tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_15__.TSpan, null),
|
|
8350
8420
|
capHeight: 0.71,
|
|
8351
8421
|
// Magic number from d3.
|
|
8352
8422
|
lineHeight: 1
|
|
8353
8423
|
};
|
|
8354
|
-
|
|
8424
|
+
//# sourceMappingURL=victory-label.js.map
|
|
8355
8425
|
|
|
8356
8426
|
/***/ }),
|
|
8357
8427
|
|
|
@@ -8364,19 +8434,19 @@ VictoryLabel.defaultProps = {
|
|
|
8364
8434
|
"use strict";
|
|
8365
8435
|
__webpack_require__.r(__webpack_exports__);
|
|
8366
8436
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8367
|
-
/* harmony export */ "
|
|
8437
|
+
/* harmony export */ "PortalContext": () => (/* binding */ PortalContext)
|
|
8368
8438
|
/* harmony export */ });
|
|
8369
8439
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8370
8440
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8371
8441
|
|
|
8442
|
+
|
|
8372
8443
|
/**
|
|
8373
8444
|
* The React context object consumers may use to access the context of the
|
|
8374
8445
|
* portal.
|
|
8375
8446
|
*/
|
|
8376
|
-
|
|
8377
8447
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
8378
8448
|
PortalContext.displayName = "PortalContext";
|
|
8379
|
-
|
|
8449
|
+
//# sourceMappingURL=portal-context.js.map
|
|
8380
8450
|
|
|
8381
8451
|
/***/ }),
|
|
8382
8452
|
|
|
@@ -8389,7 +8459,7 @@ PortalContext.displayName = "PortalContext";
|
|
|
8389
8459
|
"use strict";
|
|
8390
8460
|
__webpack_require__.r(__webpack_exports__);
|
|
8391
8461
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8392
|
-
/* harmony export */ "
|
|
8462
|
+
/* harmony export */ "Portal": () => (/* binding */ Portal)
|
|
8393
8463
|
/* harmony export */ });
|
|
8394
8464
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
8395
8465
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8408,7 +8478,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8408
8478
|
|
|
8409
8479
|
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); }
|
|
8410
8480
|
|
|
8411
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8481
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8412
8482
|
|
|
8413
8483
|
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); }; }
|
|
8414
8484
|
|
|
@@ -8418,10 +8488,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8418
8488
|
|
|
8419
8489
|
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; } }
|
|
8420
8490
|
|
|
8421
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8422
|
-
|
|
8423
|
-
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; }
|
|
8424
|
-
|
|
8491
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8425
8492
|
|
|
8426
8493
|
|
|
8427
8494
|
|
|
@@ -8437,32 +8504,31 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8437
8504
|
_classCallCheck(this, Portal);
|
|
8438
8505
|
|
|
8439
8506
|
_this = _super.call(this, props);
|
|
8507
|
+
_this.map = void 0;
|
|
8508
|
+
_this.index = void 0;
|
|
8509
|
+
|
|
8510
|
+
_this.portalRegister = function () {
|
|
8511
|
+
return ++_this.index;
|
|
8512
|
+
};
|
|
8513
|
+
|
|
8514
|
+
_this.portalUpdate = function (key, element) {
|
|
8515
|
+
_this.map[key] = element;
|
|
8516
|
+
|
|
8517
|
+
_this.forceUpdate();
|
|
8518
|
+
};
|
|
8519
|
+
|
|
8520
|
+
_this.portalDeregister = function (key) {
|
|
8521
|
+
delete _this.map[key];
|
|
8522
|
+
|
|
8523
|
+
_this.forceUpdate();
|
|
8524
|
+
};
|
|
8525
|
+
|
|
8440
8526
|
_this.map = {};
|
|
8441
8527
|
_this.index = 1;
|
|
8442
|
-
_this.portalUpdate = _this.portalUpdate.bind(_assertThisInitialized(_this));
|
|
8443
|
-
_this.portalRegister = _this.portalRegister.bind(_assertThisInitialized(_this));
|
|
8444
|
-
_this.portalDeregister = _this.portalDeregister.bind(_assertThisInitialized(_this));
|
|
8445
8528
|
return _this;
|
|
8446
8529
|
}
|
|
8447
8530
|
|
|
8448
8531
|
_createClass(Portal, [{
|
|
8449
|
-
key: "portalRegister",
|
|
8450
|
-
value: function portalRegister() {
|
|
8451
|
-
return ++this.index;
|
|
8452
|
-
}
|
|
8453
|
-
}, {
|
|
8454
|
-
key: "portalUpdate",
|
|
8455
|
-
value: function portalUpdate(key, element) {
|
|
8456
|
-
this.map[key] = element;
|
|
8457
|
-
this.forceUpdate();
|
|
8458
|
-
}
|
|
8459
|
-
}, {
|
|
8460
|
-
key: "portalDeregister",
|
|
8461
|
-
value: function portalDeregister(key) {
|
|
8462
|
-
delete this.map[key];
|
|
8463
|
-
this.forceUpdate();
|
|
8464
|
-
}
|
|
8465
|
-
}, {
|
|
8466
8532
|
key: "getChildren",
|
|
8467
8533
|
value: function getChildren() {
|
|
8468
8534
|
var _this2 = this;
|
|
@@ -8484,18 +8550,15 @@ var Portal = /*#__PURE__*/function (_React$Component) {
|
|
|
8484
8550
|
|
|
8485
8551
|
return Portal;
|
|
8486
8552
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
|
|
8490
|
-
_defineProperty(Portal, "propTypes", {
|
|
8553
|
+
Portal.displayName = "Portal";
|
|
8554
|
+
Portal.propTypes = {
|
|
8491
8555
|
className: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8492
8556
|
height: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
|
|
8493
8557
|
style: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
|
|
8494
8558
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
8495
8559
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
8496
|
-
}
|
|
8497
|
-
|
|
8498
|
-
|
|
8560
|
+
};
|
|
8561
|
+
//# sourceMappingURL=portal.js.map
|
|
8499
8562
|
|
|
8500
8563
|
/***/ }),
|
|
8501
8564
|
|
|
@@ -8508,16 +8571,16 @@ _defineProperty(Portal, "propTypes", {
|
|
|
8508
8571
|
"use strict";
|
|
8509
8572
|
__webpack_require__.r(__webpack_exports__);
|
|
8510
8573
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8511
|
-
/* harmony export */ "
|
|
8574
|
+
/* harmony export */ "VictoryPortal": () => (/* binding */ VictoryPortal)
|
|
8512
8575
|
/* harmony export */ });
|
|
8513
8576
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
8514
8577
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
8515
8578
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8516
8579
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8517
|
-
/* harmony import */ var
|
|
8518
|
-
/* harmony import */ var
|
|
8519
|
-
/* harmony import */ var
|
|
8520
|
-
/* harmony import */ var
|
|
8580
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
8581
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
8582
|
+
/* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
|
|
8583
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
8521
8584
|
/* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
|
|
8522
8585
|
|
|
8523
8586
|
|
|
@@ -8529,7 +8592,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
8529
8592
|
|
|
8530
8593
|
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); }
|
|
8531
8594
|
|
|
8532
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
8595
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
8533
8596
|
|
|
8534
8597
|
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); }; }
|
|
8535
8598
|
|
|
@@ -8539,10 +8602,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
8539
8602
|
|
|
8540
8603
|
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; } }
|
|
8541
8604
|
|
|
8542
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8543
|
-
|
|
8544
|
-
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; }
|
|
8545
|
-
|
|
8605
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
8546
8606
|
|
|
8547
8607
|
|
|
8548
8608
|
|
|
@@ -8555,9 +8615,20 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8555
8615
|
var _super = _createSuper(VictoryPortal);
|
|
8556
8616
|
|
|
8557
8617
|
function VictoryPortal() {
|
|
8618
|
+
var _this;
|
|
8619
|
+
|
|
8558
8620
|
_classCallCheck(this, VictoryPortal);
|
|
8559
8621
|
|
|
8560
|
-
|
|
8622
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
8623
|
+
args[_key] = arguments[_key];
|
|
8624
|
+
}
|
|
8625
|
+
|
|
8626
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
8627
|
+
_this.checkedContext = void 0;
|
|
8628
|
+
_this.renderInPlace = void 0;
|
|
8629
|
+
_this.element = void 0;
|
|
8630
|
+
_this.portalKey = void 0;
|
|
8631
|
+
return _this;
|
|
8561
8632
|
}
|
|
8562
8633
|
|
|
8563
8634
|
_createClass(VictoryPortal, [{
|
|
@@ -8566,7 +8637,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8566
8637
|
if (!this.checkedContext) {
|
|
8567
8638
|
if (typeof this.context.portalUpdate !== "function") {
|
|
8568
8639
|
var msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
|
|
8569
|
-
|
|
8640
|
+
_victory_util_log__WEBPACK_IMPORTED_MODULE_2__.warn(msg);
|
|
8570
8641
|
this.renderInPlace = true;
|
|
8571
8642
|
}
|
|
8572
8643
|
|
|
@@ -8612,7 +8683,7 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8612
8683
|
standalone: false
|
|
8613
8684
|
} : {};
|
|
8614
8685
|
|
|
8615
|
-
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps,
|
|
8686
|
+
var newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.omit(this.props, ["children", "groupComponent"]));
|
|
8616
8687
|
|
|
8617
8688
|
var child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
|
|
8618
8689
|
return this.renderPortal(child);
|
|
@@ -8621,23 +8692,17 @@ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
|
|
|
8621
8692
|
|
|
8622
8693
|
return VictoryPortal;
|
|
8623
8694
|
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().element)
|
|
8632
|
-
});
|
|
8633
|
-
|
|
8634
|
-
_defineProperty(VictoryPortal, "defaultProps", {
|
|
8695
|
+
VictoryPortal.displayName = "VictoryPortal";
|
|
8696
|
+
VictoryPortal.role = "portal";
|
|
8697
|
+
VictoryPortal.propTypes = {
|
|
8698
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().node),
|
|
8699
|
+
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element)
|
|
8700
|
+
};
|
|
8701
|
+
VictoryPortal.defaultProps = {
|
|
8635
8702
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
8636
|
-
}
|
|
8637
|
-
|
|
8638
|
-
|
|
8639
|
-
|
|
8640
|
-
|
|
8703
|
+
};
|
|
8704
|
+
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
8705
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
8641
8706
|
|
|
8642
8707
|
/***/ }),
|
|
8643
8708
|
|
|
@@ -8650,33 +8715,37 @@ _defineProperty(VictoryPortal, "contextType", _portal_context__WEBPACK_IMPORTED_
|
|
|
8650
8715
|
"use strict";
|
|
8651
8716
|
__webpack_require__.r(__webpack_exports__);
|
|
8652
8717
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8653
|
-
/* harmony export */ "
|
|
8718
|
+
/* harmony export */ "Circle": () => (/* binding */ Circle)
|
|
8654
8719
|
/* harmony export */ });
|
|
8655
8720
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8656
8721
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8657
8722
|
var _excluded = ["desc"];
|
|
8658
8723
|
|
|
8659
|
-
function _extends() { _extends = Object.assign
|
|
8724
|
+
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); }
|
|
8660
8725
|
|
|
8661
8726
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8662
8727
|
|
|
8663
8728
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8664
8729
|
|
|
8665
8730
|
|
|
8666
|
-
|
|
8667
8731
|
var Circle = function (props) {
|
|
8668
8732
|
// eslint-disable-next-line react/prop-types
|
|
8669
8733
|
var desc = props.desc,
|
|
8670
8734
|
rest = _objectWithoutProperties(props, _excluded);
|
|
8671
8735
|
|
|
8672
|
-
return desc ?
|
|
8736
|
+
return desc ?
|
|
8737
|
+
/*#__PURE__*/
|
|
8738
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8739
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", _extends({
|
|
8673
8740
|
vectorEffect: "non-scaling-stroke"
|
|
8674
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
8741
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
8742
|
+
/*#__PURE__*/
|
|
8743
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8744
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("circle", _extends({
|
|
8675
8745
|
vectorEffect: "non-scaling-stroke"
|
|
8676
8746
|
}, rest));
|
|
8677
8747
|
};
|
|
8678
|
-
|
|
8679
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Circle);
|
|
8748
|
+
//# sourceMappingURL=circle.js.map
|
|
8680
8749
|
|
|
8681
8750
|
/***/ }),
|
|
8682
8751
|
|
|
@@ -8689,7 +8758,7 @@ var Circle = function (props) {
|
|
|
8689
8758
|
"use strict";
|
|
8690
8759
|
__webpack_require__.r(__webpack_exports__);
|
|
8691
8760
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8692
|
-
/* harmony export */ "
|
|
8761
|
+
/* harmony export */ "ClipPath": () => (/* binding */ ClipPath)
|
|
8693
8762
|
/* harmony export */ });
|
|
8694
8763
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8695
8764
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8697,18 +8766,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8697
8766
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
|
|
8698
8767
|
|
|
8699
8768
|
|
|
8700
|
-
|
|
8701
8769
|
var ClipPath = function (props) {
|
|
8702
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("defs", null,
|
|
8770
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("defs", null,
|
|
8771
|
+
/*#__PURE__*/
|
|
8772
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8773
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("clipPath", {
|
|
8703
8774
|
id: props.clipId
|
|
8704
8775
|
}, props.children));
|
|
8705
8776
|
};
|
|
8706
|
-
|
|
8707
8777
|
ClipPath.propTypes = {
|
|
8708
8778
|
children: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)]),
|
|
8709
8779
|
clipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)])
|
|
8710
8780
|
};
|
|
8711
|
-
|
|
8781
|
+
//# sourceMappingURL=clip-path.js.map
|
|
8712
8782
|
|
|
8713
8783
|
/***/ }),
|
|
8714
8784
|
|
|
@@ -8721,7 +8791,7 @@ ClipPath.propTypes = {
|
|
|
8721
8791
|
"use strict";
|
|
8722
8792
|
__webpack_require__.r(__webpack_exports__);
|
|
8723
8793
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8724
|
-
/* harmony export */ "
|
|
8794
|
+
/* harmony export */ "Path": () => (/* binding */ Path)
|
|
8725
8795
|
/* harmony export */ });
|
|
8726
8796
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8727
8797
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8732,16 +8802,20 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
8732
8802
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8733
8803
|
|
|
8734
8804
|
|
|
8735
|
-
|
|
8736
8805
|
var Path = function (props) {
|
|
8737
8806
|
// eslint-disable-next-line react/prop-types
|
|
8738
8807
|
var desc = props.desc,
|
|
8739
8808
|
rest = _objectWithoutProperties(props, _excluded);
|
|
8740
8809
|
|
|
8741
|
-
return desc ?
|
|
8810
|
+
return desc ?
|
|
8811
|
+
/*#__PURE__*/
|
|
8812
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8813
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
8814
|
+
/*#__PURE__*/
|
|
8815
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8816
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
8742
8817
|
};
|
|
8743
|
-
|
|
8744
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Path);
|
|
8818
|
+
//# sourceMappingURL=path.js.map
|
|
8745
8819
|
|
|
8746
8820
|
/***/ }),
|
|
8747
8821
|
|
|
@@ -8754,33 +8828,37 @@ var Path = function (props) {
|
|
|
8754
8828
|
"use strict";
|
|
8755
8829
|
__webpack_require__.r(__webpack_exports__);
|
|
8756
8830
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8757
|
-
/* harmony export */ "
|
|
8831
|
+
/* harmony export */ "Rect": () => (/* binding */ Rect)
|
|
8758
8832
|
/* harmony export */ });
|
|
8759
8833
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8760
8834
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8761
8835
|
var _excluded = ["desc"];
|
|
8762
8836
|
|
|
8763
|
-
function _extends() { _extends = Object.assign
|
|
8837
|
+
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); }
|
|
8764
8838
|
|
|
8765
8839
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8766
8840
|
|
|
8767
8841
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
8768
8842
|
|
|
8769
8843
|
|
|
8770
|
-
|
|
8771
8844
|
var Rect = function (props) {
|
|
8772
8845
|
// eslint-disable-next-line react/prop-types
|
|
8773
8846
|
var desc = props.desc,
|
|
8774
8847
|
rest = _objectWithoutProperties(props, _excluded);
|
|
8775
8848
|
|
|
8776
|
-
return desc ?
|
|
8849
|
+
return desc ?
|
|
8850
|
+
/*#__PURE__*/
|
|
8851
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8852
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
8777
8853
|
vectorEffect: "non-scaling-stroke"
|
|
8778
|
-
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
8854
|
+
}, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc)) :
|
|
8855
|
+
/*#__PURE__*/
|
|
8856
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8857
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("rect", _extends({
|
|
8779
8858
|
vectorEffect: "non-scaling-stroke"
|
|
8780
8859
|
}, rest));
|
|
8781
8860
|
};
|
|
8782
|
-
|
|
8783
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Rect);
|
|
8861
|
+
//# sourceMappingURL=rect.js.map
|
|
8784
8862
|
|
|
8785
8863
|
/***/ }),
|
|
8786
8864
|
|
|
@@ -8793,7 +8871,7 @@ var Rect = function (props) {
|
|
|
8793
8871
|
"use strict";
|
|
8794
8872
|
__webpack_require__.r(__webpack_exports__);
|
|
8795
8873
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8796
|
-
/* harmony export */ "
|
|
8874
|
+
/* harmony export */ "Text": () => (/* binding */ Text)
|
|
8797
8875
|
/* harmony export */ });
|
|
8798
8876
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8799
8877
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8807,22 +8885,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
8807
8885
|
|
|
8808
8886
|
|
|
8809
8887
|
|
|
8810
|
-
|
|
8811
8888
|
var Text = function (props) {
|
|
8812
8889
|
var children = props.children,
|
|
8813
8890
|
title = props.title,
|
|
8814
8891
|
desc = props.desc,
|
|
8815
8892
|
rest = _objectWithoutProperties(props, _excluded);
|
|
8816
8893
|
|
|
8817
|
-
return
|
|
8894
|
+
return (
|
|
8895
|
+
/*#__PURE__*/
|
|
8896
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8897
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("text", rest, title && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", null, title), desc && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", null, desc), children)
|
|
8898
|
+
);
|
|
8818
8899
|
};
|
|
8819
|
-
|
|
8820
8900
|
Text.propTypes = {
|
|
8821
8901
|
children: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
|
8822
8902
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
8823
8903
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
8824
8904
|
};
|
|
8825
|
-
|
|
8905
|
+
//# sourceMappingURL=text.js.map
|
|
8826
8906
|
|
|
8827
8907
|
/***/ }),
|
|
8828
8908
|
|
|
@@ -8835,17 +8915,19 @@ Text.propTypes = {
|
|
|
8835
8915
|
"use strict";
|
|
8836
8916
|
__webpack_require__.r(__webpack_exports__);
|
|
8837
8917
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8838
|
-
/* harmony export */ "
|
|
8918
|
+
/* harmony export */ "TSpan": () => (/* binding */ TSpan)
|
|
8839
8919
|
/* harmony export */ });
|
|
8840
8920
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
8841
8921
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
8842
8922
|
|
|
8843
|
-
|
|
8844
8923
|
var TSpan = function (props) {
|
|
8845
|
-
return
|
|
8924
|
+
return (
|
|
8925
|
+
/*#__PURE__*/
|
|
8926
|
+
// @ts-expect-error FIXME: "id cannot be a number"
|
|
8927
|
+
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
8928
|
+
);
|
|
8846
8929
|
};
|
|
8847
|
-
|
|
8848
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TSpan);
|
|
8930
|
+
//# sourceMappingURL=tspan.js.map
|
|
8849
8931
|
|
|
8850
8932
|
/***/ }),
|
|
8851
8933
|
|
|
@@ -8858,7 +8940,7 @@ var TSpan = function (props) {
|
|
|
8858
8940
|
"use strict";
|
|
8859
8941
|
__webpack_require__.r(__webpack_exports__);
|
|
8860
8942
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8861
|
-
/* harmony export */ "
|
|
8943
|
+
/* harmony export */ "grayscale": () => (/* binding */ grayscale)
|
|
8862
8944
|
/* harmony export */ });
|
|
8863
8945
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
8864
8946
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -8905,7 +8987,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
8905
8987
|
|
|
8906
8988
|
var strokeLinecap = "round";
|
|
8907
8989
|
var strokeLinejoin = "round";
|
|
8908
|
-
|
|
8990
|
+
var grayscale = {
|
|
8909
8991
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
8910
8992
|
style: {
|
|
8911
8993
|
data: {
|
|
@@ -9120,7 +9202,8 @@ var strokeLinejoin = "round";
|
|
|
9120
9202
|
}
|
|
9121
9203
|
}
|
|
9122
9204
|
}, baseProps)
|
|
9123
|
-
}
|
|
9205
|
+
};
|
|
9206
|
+
//# sourceMappingURL=grayscale.js.map
|
|
9124
9207
|
|
|
9125
9208
|
/***/ }),
|
|
9126
9209
|
|
|
@@ -9133,7 +9216,7 @@ var strokeLinejoin = "round";
|
|
|
9133
9216
|
"use strict";
|
|
9134
9217
|
__webpack_require__.r(__webpack_exports__);
|
|
9135
9218
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9136
|
-
/* harmony export */ "
|
|
9219
|
+
/* harmony export */ "material": () => (/* binding */ material)
|
|
9137
9220
|
/* harmony export */ });
|
|
9138
9221
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9139
9222
|
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -9190,7 +9273,7 @@ var centeredLabelStyles = lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
|
9190
9273
|
var strokeDasharray = "10, 5";
|
|
9191
9274
|
var strokeLinecap = "round";
|
|
9192
9275
|
var strokeLinejoin = "round";
|
|
9193
|
-
|
|
9276
|
+
var material = {
|
|
9194
9277
|
area: lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
9195
9278
|
style: {
|
|
9196
9279
|
data: {
|
|
@@ -9422,7 +9505,8 @@ var strokeLinejoin = "round";
|
|
|
9422
9505
|
}
|
|
9423
9506
|
}
|
|
9424
9507
|
}, baseProps)
|
|
9425
|
-
}
|
|
9508
|
+
};
|
|
9509
|
+
//# sourceMappingURL=material.js.map
|
|
9426
9510
|
|
|
9427
9511
|
/***/ }),
|
|
9428
9512
|
|
|
@@ -9435,16 +9519,18 @@ var strokeLinejoin = "round";
|
|
|
9435
9519
|
"use strict";
|
|
9436
9520
|
__webpack_require__.r(__webpack_exports__);
|
|
9437
9521
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9438
|
-
/* harmony export */ "
|
|
9522
|
+
/* harmony export */ "VictoryTheme": () => (/* binding */ VictoryTheme)
|
|
9439
9523
|
/* harmony export */ });
|
|
9440
|
-
/* harmony import */ var
|
|
9441
|
-
/* harmony import */ var
|
|
9524
|
+
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
9525
|
+
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
9442
9526
|
|
|
9443
9527
|
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
grayscale:
|
|
9447
|
-
|
|
9528
|
+
|
|
9529
|
+
var VictoryTheme = {
|
|
9530
|
+
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
9531
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
9532
|
+
};
|
|
9533
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
9448
9534
|
|
|
9449
9535
|
/***/ }),
|
|
9450
9536
|
|
|
@@ -9457,33 +9543,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9457
9543
|
"use strict";
|
|
9458
9544
|
__webpack_require__.r(__webpack_exports__);
|
|
9459
9545
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9460
|
-
/* harmony export */ "
|
|
9546
|
+
/* harmony export */ "VictoryTransition": () => (/* binding */ VictoryTransition)
|
|
9461
9547
|
/* harmony export */ });
|
|
9462
|
-
/* harmony import */ var
|
|
9463
|
-
/* harmony import */ var
|
|
9464
|
-
/* harmony import */ var
|
|
9465
|
-
/* harmony import */ var
|
|
9466
|
-
/* harmony import */ var
|
|
9467
|
-
/* harmony import */ var
|
|
9468
|
-
/* harmony import */ var
|
|
9469
|
-
/* harmony import */ var
|
|
9470
|
-
/* harmony import */ var
|
|
9471
|
-
/* harmony import */ var
|
|
9472
|
-
/* harmony import */ var
|
|
9473
|
-
/* harmony import */ var
|
|
9474
|
-
/* harmony import */ var
|
|
9475
|
-
/* harmony import */ var
|
|
9476
|
-
/* harmony import */ var
|
|
9477
|
-
/* harmony import */ var
|
|
9478
|
-
/* harmony import */ var
|
|
9479
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
9480
|
-
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_6__);
|
|
9481
|
-
|
|
9548
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
9549
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
|
|
9550
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
9551
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_1__);
|
|
9552
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
9553
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
|
|
9554
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
|
|
9555
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
|
|
9556
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
9557
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);
|
|
9558
|
+
/* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
|
|
9559
|
+
/* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
|
|
9560
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
9561
|
+
/* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
|
|
9562
|
+
/* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
|
|
9563
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
9564
|
+
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
|
|
9482
9565
|
|
|
9483
9566
|
|
|
9484
9567
|
|
|
9485
9568
|
|
|
9486
|
-
function _extends() { _extends = Object.assign
|
|
9569
|
+
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); }
|
|
9487
9570
|
|
|
9488
9571
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9489
9572
|
|
|
@@ -9493,7 +9576,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9493
9576
|
|
|
9494
9577
|
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); }
|
|
9495
9578
|
|
|
9496
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9579
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9497
9580
|
|
|
9498
9581
|
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); }; }
|
|
9499
9582
|
|
|
@@ -9503,10 +9586,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9503
9586
|
|
|
9504
9587
|
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; } }
|
|
9505
9588
|
|
|
9506
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9507
|
-
|
|
9508
|
-
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; }
|
|
9509
|
-
|
|
9589
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9510
9590
|
|
|
9511
9591
|
|
|
9512
9592
|
|
|
@@ -9527,6 +9607,9 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9527
9607
|
_classCallCheck(this, VictoryTransition);
|
|
9528
9608
|
|
|
9529
9609
|
_this = _super.call(this, props, context);
|
|
9610
|
+
_this.continuous = void 0;
|
|
9611
|
+
_this.timer = void 0;
|
|
9612
|
+
_this.transitionProps = void 0;
|
|
9530
9613
|
_this.state = {
|
|
9531
9614
|
nodesShouldLoad: false,
|
|
9532
9615
|
nodesDoneLoad: false
|
|
@@ -9534,7 +9617,6 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9534
9617
|
var child = _this.props.children;
|
|
9535
9618
|
var polar = child.props.polar;
|
|
9536
9619
|
_this.continuous = !polar && child.type && child.type.continuous === true;
|
|
9537
|
-
_this.getTransitionState = _this.getTransitionState.bind(_assertThisInitialized(_this));
|
|
9538
9620
|
_this.timer = _this.context.transitionTimer;
|
|
9539
9621
|
return _this;
|
|
9540
9622
|
}
|
|
@@ -9551,7 +9633,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9551
9633
|
value: function shouldComponentUpdate(nextProps) {
|
|
9552
9634
|
var _this2 = this;
|
|
9553
9635
|
|
|
9554
|
-
if (!
|
|
9636
|
+
if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default()(this.props, nextProps)) {
|
|
9555
9637
|
this.timer.bypassAnimation();
|
|
9556
9638
|
this.setState(this.getTransitionState(this.props, nextProps), function () {
|
|
9557
9639
|
return _this2.timer.resumeAnimation();
|
|
@@ -9580,10 +9662,10 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9580
9662
|
nextProps: nextProps
|
|
9581
9663
|
};
|
|
9582
9664
|
} else {
|
|
9583
|
-
var oldChildren =
|
|
9584
|
-
var nextChildren =
|
|
9665
|
+
var oldChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children);
|
|
9666
|
+
var nextChildren = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(nextProps.children);
|
|
9585
9667
|
|
|
9586
|
-
var _Transitions$getIniti =
|
|
9668
|
+
var _Transitions$getIniti = _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getInitialTransitionState(oldChildren, nextChildren),
|
|
9587
9669
|
nodesWillExit = _Transitions$getIniti.nodesWillExit,
|
|
9588
9670
|
nodesWillEnter = _Transitions$getIniti.nodesWillEnter,
|
|
9589
9671
|
childrenTransitions = _Transitions$getIniti.childrenTransitions,
|
|
@@ -9604,18 +9686,18 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9604
9686
|
value: function getDomainFromChildren(props, axis) {
|
|
9605
9687
|
var getChildDomains = function (children) {
|
|
9606
9688
|
return children.reduce(function (memo, child) {
|
|
9607
|
-
if (child.type &&
|
|
9689
|
+
if (child.type && lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(child.type.getDomain)) {
|
|
9608
9690
|
var childDomain = child.props && child.type.getDomain(child.props, axis);
|
|
9609
9691
|
return childDomain ? memo.concat(childDomain) : memo;
|
|
9610
9692
|
} else if (child.props && child.props.children) {
|
|
9611
|
-
return memo.concat(getChildDomains(
|
|
9693
|
+
return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children)));
|
|
9612
9694
|
}
|
|
9613
9695
|
|
|
9614
9696
|
return memo;
|
|
9615
9697
|
}, []);
|
|
9616
9698
|
};
|
|
9617
9699
|
|
|
9618
|
-
var child =
|
|
9700
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
9619
9701
|
var childProps = child.props || {};
|
|
9620
9702
|
var domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
|
|
9621
9703
|
|
|
@@ -9623,7 +9705,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9623
9705
|
return domain;
|
|
9624
9706
|
} else {
|
|
9625
9707
|
var childDomains = getChildDomains([child]);
|
|
9626
|
-
return childDomains.length === 0 ? [0, 1] : [
|
|
9708
|
+
return childDomains.length === 0 ? [0, 1] : [_victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMinValue(childDomains), _victory_util_collection__WEBPACK_IMPORTED_MODULE_6__.getMaxValue(childDomains)];
|
|
9627
9709
|
}
|
|
9628
9710
|
}
|
|
9629
9711
|
}, {
|
|
@@ -9638,10 +9720,12 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9638
9720
|
}, {
|
|
9639
9721
|
key: "pickDomainProps",
|
|
9640
9722
|
value: function pickDomainProps(props) {
|
|
9641
|
-
var
|
|
9723
|
+
var _props$animate;
|
|
9724
|
+
|
|
9725
|
+
var parentState = (_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.parentState;
|
|
9642
9726
|
|
|
9643
9727
|
if (parentState && parentState.nodesWillExit) {
|
|
9644
|
-
return this.
|
|
9728
|
+
return this.continuous || parentState.continuous ? parentState.nextProps || this.state.nextProps || props : props;
|
|
9645
9729
|
}
|
|
9646
9730
|
|
|
9647
9731
|
return this.continuous && this.state.nodesWillExit ? this.state.nextProps || props : props;
|
|
@@ -9650,7 +9734,7 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9650
9734
|
key: "getClipWidth",
|
|
9651
9735
|
value: function getClipWidth(props, child) {
|
|
9652
9736
|
var getDefaultClipWidth = function () {
|
|
9653
|
-
var range =
|
|
9737
|
+
var range = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_7__.getRange(child.props, "x");
|
|
9654
9738
|
return range ? Math.abs(range[1] - range[0]) : props.width;
|
|
9655
9739
|
};
|
|
9656
9740
|
|
|
@@ -9660,13 +9744,14 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9660
9744
|
}, {
|
|
9661
9745
|
key: "render",
|
|
9662
9746
|
value: function render() {
|
|
9663
|
-
var
|
|
9747
|
+
var _this$props$animate,
|
|
9748
|
+
_this3 = this;
|
|
9664
9749
|
|
|
9665
9750
|
var props = this.pickProps();
|
|
9666
|
-
var getTransitionProps =
|
|
9751
|
+
var getTransitionProps = (_this$props$animate = this.props.animate) !== null && _this$props$animate !== void 0 && _this$props$animate.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, function (newState) {
|
|
9667
9752
|
return _this3.setState(newState);
|
|
9668
9753
|
});
|
|
9669
|
-
var child =
|
|
9754
|
+
var child = react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children)[0];
|
|
9670
9755
|
var transitionProps = getTransitionProps(child);
|
|
9671
9756
|
this.transitionProps = transitionProps;
|
|
9672
9757
|
var domain = {
|
|
@@ -9675,29 +9760,29 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9675
9760
|
};
|
|
9676
9761
|
var clipWidth = this.getClipWidth(props, child);
|
|
9677
9762
|
|
|
9678
|
-
var combinedProps =
|
|
9763
|
+
var combinedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
9679
9764
|
domain: domain,
|
|
9680
9765
|
clipWidth: clipWidth
|
|
9681
9766
|
}, transitionProps, child.props);
|
|
9682
9767
|
|
|
9683
9768
|
var animationWhitelist = props.animationWhitelist || [];
|
|
9684
9769
|
var whitelist = animationWhitelist.concat(["clipWidth"]);
|
|
9685
|
-
var propsToAnimate = whitelist.length ?
|
|
9686
|
-
return /*#__PURE__*/
|
|
9770
|
+
var propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
|
|
9771
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
|
|
9687
9772
|
data: propsToAnimate
|
|
9688
9773
|
}), function (newProps) {
|
|
9689
9774
|
if (child.props.groupComponent) {
|
|
9690
|
-
var groupComponent = _this3.continuous ? /*#__PURE__*/
|
|
9775
|
+
var groupComponent = _this3.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child.props.groupComponent, {
|
|
9691
9776
|
clipWidth: newProps.clipWidth || 0
|
|
9692
9777
|
}) : child.props.groupComponent;
|
|
9693
|
-
return /*#__PURE__*/
|
|
9778
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
9694
9779
|
animate: null,
|
|
9695
9780
|
animating: true,
|
|
9696
9781
|
groupComponent: groupComponent
|
|
9697
9782
|
}, newProps, combinedProps));
|
|
9698
9783
|
}
|
|
9699
9784
|
|
|
9700
|
-
return /*#__PURE__*/
|
|
9785
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
9701
9786
|
animate: null,
|
|
9702
9787
|
animating: true
|
|
9703
9788
|
}, newProps, combinedProps));
|
|
@@ -9706,19 +9791,15 @@ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
|
|
|
9706
9791
|
}]);
|
|
9707
9792
|
|
|
9708
9793
|
return VictoryTransition;
|
|
9709
|
-
}((
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
_defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_11__["default"]);
|
|
9720
|
-
|
|
9721
|
-
|
|
9794
|
+
}((react__WEBPACK_IMPORTED_MODULE_3___default().Component));
|
|
9795
|
+
VictoryTransition.displayName = "VictoryTransition";
|
|
9796
|
+
VictoryTransition.propTypes = {
|
|
9797
|
+
animate: prop_types__WEBPACK_IMPORTED_MODULE_9___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object)]),
|
|
9798
|
+
animationWhitelist: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().array),
|
|
9799
|
+
children: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().node)
|
|
9800
|
+
};
|
|
9801
|
+
VictoryTransition.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_10__["default"];
|
|
9802
|
+
//# sourceMappingURL=victory-transition.js.map
|
|
9722
9803
|
|
|
9723
9804
|
/***/ }),
|
|
9724
9805
|
|
|
@@ -9731,33 +9812,32 @@ _defineProperty(VictoryTransition, "contextType", _victory_util_timer_context__W
|
|
|
9731
9812
|
"use strict";
|
|
9732
9813
|
__webpack_require__.r(__webpack_exports__);
|
|
9733
9814
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9734
|
-
/* harmony export */ "
|
|
9815
|
+
/* harmony export */ "addEvents": () => (/* binding */ addEvents)
|
|
9735
9816
|
/* harmony export */ });
|
|
9736
|
-
/* harmony import */ var
|
|
9737
|
-
/* harmony import */ var
|
|
9738
|
-
/* harmony import */ var
|
|
9739
|
-
/* harmony import */ var
|
|
9740
|
-
/* harmony import */ var
|
|
9741
|
-
/* harmony import */ var
|
|
9742
|
-
/* harmony import */ var
|
|
9743
|
-
/* harmony import */ var
|
|
9744
|
-
/* harmony import */ var
|
|
9745
|
-
/* harmony import */ var
|
|
9746
|
-
/* harmony import */ var
|
|
9747
|
-
/* harmony import */ var
|
|
9748
|
-
/* harmony import */ var
|
|
9749
|
-
/* harmony import */ var
|
|
9750
|
-
/* harmony import */ var
|
|
9751
|
-
/* harmony import */ var
|
|
9752
|
-
/* harmony import */ var
|
|
9753
|
-
/* harmony import */ var
|
|
9817
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/without */ "../../../node_modules/lodash/without.js");
|
|
9818
|
+
/* harmony import */ var lodash_without__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_without__WEBPACK_IMPORTED_MODULE_0__);
|
|
9819
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/lodash/pick.js");
|
|
9820
|
+
/* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_1__);
|
|
9821
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
9822
|
+
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_2__);
|
|
9823
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
|
|
9824
|
+
/* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_3__);
|
|
9825
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
|
|
9826
|
+
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_4__);
|
|
9827
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/lodash/isEmpty.js");
|
|
9828
|
+
/* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5__);
|
|
9829
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash/difference */ "../../../node_modules/lodash/difference.js");
|
|
9830
|
+
/* harmony import */ var lodash_difference__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash_difference__WEBPACK_IMPORTED_MODULE_6__);
|
|
9831
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
9832
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_7__);
|
|
9833
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
|
|
9834
|
+
/* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_8__);
|
|
9754
9835
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react */ "react");
|
|
9755
9836
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__);
|
|
9756
9837
|
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./events */ "../../victory-core/es/victory-util/events.js");
|
|
9757
9838
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/react-fast-compare/index.js");
|
|
9758
9839
|
/* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_10__);
|
|
9759
9840
|
/* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js");
|
|
9760
|
-
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
9761
9841
|
|
|
9762
9842
|
|
|
9763
9843
|
|
|
@@ -9788,7 +9868,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
9788
9868
|
|
|
9789
9869
|
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); }
|
|
9790
9870
|
|
|
9791
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
9871
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9792
9872
|
|
|
9793
9873
|
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); }; }
|
|
9794
9874
|
|
|
@@ -9798,7 +9878,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
9798
9878
|
|
|
9799
9879
|
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; } }
|
|
9800
9880
|
|
|
9801
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9881
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
9802
9882
|
|
|
9803
9883
|
/*global window:false */
|
|
9804
9884
|
|
|
@@ -9806,9 +9886,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
9806
9886
|
|
|
9807
9887
|
|
|
9808
9888
|
|
|
9809
|
-
|
|
9889
|
+
// DISCLAIMER:
|
|
9890
|
+
// This file is not currently tested, and it is first on the list of files
|
|
9891
|
+
// to refactor in our current refactoring effort. Please do not make changes
|
|
9892
|
+
// to this file without manual testing and/or refactoring and adding tests.
|
|
9810
9893
|
var datumHasXandY = function (datum) {
|
|
9811
|
-
return !
|
|
9894
|
+
return !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_3___default()(datum._y);
|
|
9812
9895
|
}; // used for checking state changes. Expected components can be passed in via options
|
|
9813
9896
|
|
|
9814
9897
|
|
|
@@ -9820,44 +9903,45 @@ var defaultComponents = [{
|
|
|
9820
9903
|
}, {
|
|
9821
9904
|
name: "labels"
|
|
9822
9905
|
}];
|
|
9823
|
-
|
|
9824
|
-
|
|
9825
|
-
|
|
9906
|
+
function addEvents(WrappedComponent) {
|
|
9907
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
9908
|
+
|
|
9909
|
+
// @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
|
|
9910
|
+
var AddEventsMixin = /*#__PURE__*/function (_WrappedComponent) {
|
|
9911
|
+
_inherits(AddEventsMixin, _WrappedComponent);
|
|
9826
9912
|
|
|
9827
|
-
var _super = _createSuper(
|
|
9913
|
+
var _super = _createSuper(AddEventsMixin);
|
|
9828
9914
|
|
|
9829
|
-
function
|
|
9915
|
+
function AddEventsMixin(props) {
|
|
9830
9916
|
var _this;
|
|
9831
9917
|
|
|
9832
|
-
_classCallCheck(this,
|
|
9918
|
+
_classCallCheck(this, AddEventsMixin);
|
|
9833
9919
|
|
|
9834
9920
|
_this = _super.call(this, props);
|
|
9835
|
-
var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
9836
|
-
var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
|
|
9837
9921
|
_this.state = {};
|
|
9922
|
+
_this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
|
|
9923
|
+
_this.getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
|
|
9838
9924
|
|
|
9839
9925
|
_this.getEvents = function (p, target, eventKey) {
|
|
9840
|
-
return
|
|
9926
|
+
return _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.call(_assertThisInitialized(_this), p, target, eventKey, _this.getScopedEvents);
|
|
9841
9927
|
};
|
|
9842
9928
|
|
|
9843
|
-
_this.
|
|
9844
|
-
|
|
9845
|
-
var calculatedValues = _this.getCalculatedValues(props);
|
|
9846
|
-
|
|
9847
|
-
_this.cacheValues(calculatedValues);
|
|
9848
|
-
|
|
9849
|
-
_this.externalMutations = _this.getExternalMutations(props);
|
|
9850
|
-
_this.calculatedState = _this.getStateChanges(props);
|
|
9929
|
+
_this.externalMutations = _this.getExternalMutations(_this.props);
|
|
9930
|
+
_this.calculatedState = _this.getStateChanges(_this.props);
|
|
9851
9931
|
_this.globalEvents = {};
|
|
9852
9932
|
_this.prevGlobalEventKeys = [];
|
|
9853
9933
|
_this.boundGlobalEvents = {};
|
|
9934
|
+
|
|
9935
|
+
_this.cacheValues(_this.getCalculatedValues(props));
|
|
9936
|
+
|
|
9854
9937
|
return _this;
|
|
9855
9938
|
}
|
|
9856
9939
|
|
|
9857
|
-
_createClass(
|
|
9940
|
+
_createClass(AddEventsMixin, [{
|
|
9858
9941
|
key: "shouldComponentUpdate",
|
|
9859
9942
|
value: function shouldComponentUpdate(nextProps) {
|
|
9860
|
-
var externalMutations = this.getExternalMutations(nextProps);
|
|
9943
|
+
var externalMutations = this.getExternalMutations(nextProps); // @ts-expect-error "Property 'animating' does not exist on type EventMixinCommonProps"
|
|
9944
|
+
|
|
9861
9945
|
var animating = this.props.animating || this.props.animate;
|
|
9862
9946
|
var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
|
|
9863
9947
|
|
|
@@ -9887,7 +9971,7 @@ var defaultComponents = [{
|
|
|
9887
9971
|
value: function componentDidMount() {
|
|
9888
9972
|
var _this2 = this;
|
|
9889
9973
|
|
|
9890
|
-
var globalEventKeys =
|
|
9974
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
9891
9975
|
|
|
9892
9976
|
globalEventKeys.forEach(function (key) {
|
|
9893
9977
|
return _this2.addGlobalListener(key);
|
|
@@ -9902,15 +9986,15 @@ var defaultComponents = [{
|
|
|
9902
9986
|
var calculatedState = this.getStateChanges(prevProps);
|
|
9903
9987
|
this.calculatedState = calculatedState;
|
|
9904
9988
|
|
|
9905
|
-
var globalEventKeys =
|
|
9989
|
+
var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(this.globalEvents);
|
|
9906
9990
|
|
|
9907
|
-
var removedGlobalEventKeys =
|
|
9991
|
+
var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(this.prevGlobalEventKeys, globalEventKeys);
|
|
9908
9992
|
|
|
9909
9993
|
removedGlobalEventKeys.forEach(function (key) {
|
|
9910
9994
|
return _this3.removeGlobalListener(key);
|
|
9911
9995
|
});
|
|
9912
9996
|
|
|
9913
|
-
var addedGlobalEventKeys =
|
|
9997
|
+
var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_6___default()(globalEventKeys, this.prevGlobalEventKeys);
|
|
9914
9998
|
|
|
9915
9999
|
addedGlobalEventKeys.forEach(function (key) {
|
|
9916
10000
|
return _this3.addGlobalListener(key);
|
|
@@ -9956,12 +10040,11 @@ var defaultComponents = [{
|
|
|
9956
10040
|
}
|
|
9957
10041
|
|
|
9958
10042
|
var getState = function (key, type) {
|
|
9959
|
-
var result =
|
|
10043
|
+
var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
|
|
9960
10044
|
|
|
9961
|
-
return
|
|
10045
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(result) ? undefined : result;
|
|
9962
10046
|
};
|
|
9963
10047
|
|
|
9964
|
-
options = options || {};
|
|
9965
10048
|
var components = options.components || defaultComponents;
|
|
9966
10049
|
var stateChanges = components.map(function (component) {
|
|
9967
10050
|
if (!props.standalone && component.name === "parent") {
|
|
@@ -9978,9 +10061,9 @@ var defaultComponents = [{
|
|
|
9978
10061
|
}, {
|
|
9979
10062
|
key: "applyExternalMutations",
|
|
9980
10063
|
value: function applyExternalMutations(props, externalMutations) {
|
|
9981
|
-
if (!
|
|
10064
|
+
if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalMutations)) {
|
|
9982
10065
|
var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
|
|
9983
|
-
memo =
|
|
10066
|
+
memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
|
|
9984
10067
|
return memo;
|
|
9985
10068
|
}, []);
|
|
9986
10069
|
var compiledCallbacks = callbacks.length ? function () {
|
|
@@ -9997,12 +10080,12 @@ var defaultComponents = [{
|
|
|
9997
10080
|
var sharedEvents = props.sharedEvents;
|
|
9998
10081
|
var components = WrappedComponent.expectedComponents;
|
|
9999
10082
|
var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
|
|
10000
|
-
var getSharedEventState = sharedEvents &&
|
|
10083
|
+
var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_4___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
|
|
10001
10084
|
return undefined;
|
|
10002
10085
|
};
|
|
10003
10086
|
var baseProps = this.getBaseProps(props, getSharedEventState);
|
|
10004
10087
|
|
|
10005
|
-
var dataKeys =
|
|
10088
|
+
var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(baseProps).filter(function (key) {
|
|
10006
10089
|
return key !== "parent";
|
|
10007
10090
|
});
|
|
10008
10091
|
|
|
@@ -10022,32 +10105,32 @@ var defaultComponents = [{
|
|
|
10022
10105
|
value: function getExternalMutations(props) {
|
|
10023
10106
|
var sharedEvents = props.sharedEvents,
|
|
10024
10107
|
externalEventMutations = props.externalEventMutations;
|
|
10025
|
-
return
|
|
10108
|
+
return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_5___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
|
|
10026
10109
|
}
|
|
10027
10110
|
}, {
|
|
10028
10111
|
key: "cacheValues",
|
|
10029
10112
|
value: function cacheValues(obj) {
|
|
10030
10113
|
var _this7 = this;
|
|
10031
10114
|
|
|
10032
|
-
|
|
10115
|
+
lodash_keys__WEBPACK_IMPORTED_MODULE_2___default()(obj).forEach(function (key) {
|
|
10033
10116
|
_this7[key] = obj[key];
|
|
10034
10117
|
});
|
|
10035
10118
|
}
|
|
10036
10119
|
}, {
|
|
10037
10120
|
key: "getBaseProps",
|
|
10038
10121
|
value: function getBaseProps(props, getSharedEventState) {
|
|
10039
|
-
getSharedEventState = getSharedEventState || this.getSharedEventState;
|
|
10122
|
+
getSharedEventState = getSharedEventState || this.getSharedEventState.bind(this);
|
|
10040
10123
|
var sharedParentState = getSharedEventState("parent", "parent");
|
|
10041
10124
|
var parentState = this.getEventState("parent", "parent");
|
|
10042
10125
|
|
|
10043
|
-
var baseParentProps =
|
|
10126
|
+
var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentState, sharedParentState);
|
|
10044
10127
|
|
|
10045
10128
|
var parentPropsList = baseParentProps.parentControlledProps;
|
|
10046
|
-
var parentProps = parentPropsList ?
|
|
10129
|
+
var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_1___default()(baseParentProps, parentPropsList) : {};
|
|
10047
10130
|
|
|
10048
|
-
var modifiedProps =
|
|
10131
|
+
var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, parentProps, props);
|
|
10049
10132
|
|
|
10050
|
-
return
|
|
10133
|
+
return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
|
|
10051
10134
|
}
|
|
10052
10135
|
}, {
|
|
10053
10136
|
key: "getAllEvents",
|
|
@@ -10075,21 +10158,21 @@ var defaultComponents = [{
|
|
|
10075
10158
|
if (this.hasEvents) {
|
|
10076
10159
|
var baseEvents = this.getEvents(this.props, type, key);
|
|
10077
10160
|
|
|
10078
|
-
var componentProps =
|
|
10161
|
+
var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10079
10162
|
index: index,
|
|
10080
10163
|
key: id
|
|
10081
10164
|
}, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
|
|
10082
10165
|
id: id
|
|
10083
10166
|
});
|
|
10084
10167
|
|
|
10085
|
-
var events =
|
|
10168
|
+
var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
|
|
10086
10169
|
|
|
10087
|
-
return
|
|
10170
|
+
return lodash_assign__WEBPACK_IMPORTED_MODULE_8___default()({}, componentProps, {
|
|
10088
10171
|
events: events
|
|
10089
10172
|
});
|
|
10090
10173
|
}
|
|
10091
10174
|
|
|
10092
|
-
return
|
|
10175
|
+
return lodash_defaults__WEBPACK_IMPORTED_MODULE_7___default()({
|
|
10093
10176
|
index: index,
|
|
10094
10177
|
key: id
|
|
10095
10178
|
}, component.props, baseProps, {
|
|
@@ -10112,11 +10195,14 @@ var defaultComponents = [{
|
|
|
10112
10195
|
}, {
|
|
10113
10196
|
key: "animateComponent",
|
|
10114
10197
|
value: function animateComponent(props, defaultAnimationWhitelist) {
|
|
10115
|
-
var
|
|
10116
|
-
|
|
10198
|
+
var _props$animate;
|
|
10199
|
+
|
|
10200
|
+
var animationWhitelist = typeof props.animate === "object" && ((_props$animate = props.animate) === null || _props$animate === void 0 ? void 0 : _props$animate.animationWhitelist) || defaultAnimationWhitelist;
|
|
10201
|
+
var Comp = this.constructor;
|
|
10202
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.VictoryTransition, {
|
|
10117
10203
|
animate: props.animate,
|
|
10118
10204
|
animationWhitelist: animationWhitelist
|
|
10119
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(
|
|
10205
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default().createElement(Comp, props));
|
|
10120
10206
|
} // Used by `VictoryLine` and `VictoryArea`
|
|
10121
10207
|
|
|
10122
10208
|
}, {
|
|
@@ -10128,7 +10214,7 @@ var defaultComponents = [{
|
|
|
10128
10214
|
labelComponent = props.labelComponent,
|
|
10129
10215
|
groupComponent = props.groupComponent;
|
|
10130
10216
|
|
|
10131
|
-
var dataKeys =
|
|
10217
|
+
var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_0___default()(this.dataKeys, "all");
|
|
10132
10218
|
|
|
10133
10219
|
var labelComponents = dataKeys.reduce(function (memo, key) {
|
|
10134
10220
|
var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
|
|
@@ -10152,7 +10238,6 @@ var defaultComponents = [{
|
|
|
10152
10238
|
var dataComponent = props.dataComponent,
|
|
10153
10239
|
labelComponent = props.labelComponent,
|
|
10154
10240
|
groupComponent = props.groupComponent;
|
|
10155
|
-
var userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_13__.getSafeUserProps(props);
|
|
10156
10241
|
var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
|
|
10157
10242
|
var dataProps = _this9.getComponentProps(dataComponent, "data", index);
|
|
10158
10243
|
|
|
@@ -10172,14 +10257,16 @@ var defaultComponents = [{
|
|
|
10172
10257
|
return undefined;
|
|
10173
10258
|
}).filter(Boolean);
|
|
10174
10259
|
var children = [].concat(_toConsumableArray(dataComponents), _toConsumableArray(labelComponents));
|
|
10175
|
-
|
|
10176
|
-
return this.renderContainer(group, children);
|
|
10260
|
+
return this.renderContainer(groupComponent, children);
|
|
10177
10261
|
}
|
|
10178
10262
|
}]);
|
|
10179
10263
|
|
|
10180
|
-
return
|
|
10264
|
+
return AddEventsMixin;
|
|
10181
10265
|
}(WrappedComponent);
|
|
10182
|
-
|
|
10266
|
+
|
|
10267
|
+
return AddEventsMixin;
|
|
10268
|
+
}
|
|
10269
|
+
//# sourceMappingURL=add-events.js.map
|
|
10183
10270
|
|
|
10184
10271
|
/***/ }),
|
|
10185
10272
|
|
|
@@ -10192,14 +10279,14 @@ var defaultComponents = [{
|
|
|
10192
10279
|
"use strict";
|
|
10193
10280
|
__webpack_require__.r(__webpack_exports__);
|
|
10194
10281
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10195
|
-
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
10196
10282
|
/* harmony export */ "containsDates": () => (/* binding */ containsDates),
|
|
10197
10283
|
/* harmony export */ "containsNumbers": () => (/* binding */ containsNumbers),
|
|
10198
10284
|
/* harmony export */ "containsOnlyStrings": () => (/* binding */ containsOnlyStrings),
|
|
10199
|
-
/* harmony export */ "
|
|
10200
|
-
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined),
|
|
10285
|
+
/* harmony export */ "containsStrings": () => (/* binding */ containsStrings),
|
|
10201
10286
|
/* harmony export */ "getMaxValue": () => (/* binding */ getMaxValue),
|
|
10202
|
-
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue)
|
|
10287
|
+
/* harmony export */ "getMinValue": () => (/* binding */ getMinValue),
|
|
10288
|
+
/* harmony export */ "isArrayOfArrays": () => (/* binding */ isArrayOfArrays),
|
|
10289
|
+
/* harmony export */ "removeUndefined": () => (/* binding */ removeUndefined)
|
|
10203
10290
|
/* harmony export */ });
|
|
10204
10291
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
10205
10292
|
|
|
@@ -10213,9 +10300,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10213
10300
|
|
|
10214
10301
|
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; }
|
|
10215
10302
|
|
|
10216
|
-
/* eslint-disable func-style */
|
|
10217
|
-
|
|
10218
|
-
/* eslint-disable no-use-before-define */
|
|
10219
10303
|
function isNonEmptyArray(collection) {
|
|
10220
10304
|
return Array.isArray(collection) && collection.length > 0;
|
|
10221
10305
|
}
|
|
@@ -10254,7 +10338,8 @@ function getMaxValue(arr) {
|
|
|
10254
10338
|
}
|
|
10255
10339
|
|
|
10256
10340
|
var array = arr.concat(values);
|
|
10257
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
10341
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
10342
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
10258
10343
|
}
|
|
10259
10344
|
function getMinValue(arr) {
|
|
10260
10345
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -10262,8 +10347,10 @@ function getMinValue(arr) {
|
|
|
10262
10347
|
}
|
|
10263
10348
|
|
|
10264
10349
|
var array = arr.concat(values);
|
|
10265
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
10350
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
10351
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
10266
10352
|
}
|
|
10353
|
+
//# sourceMappingURL=collection.js.map
|
|
10267
10354
|
|
|
10268
10355
|
/***/ }),
|
|
10269
10356
|
|
|
@@ -10276,9 +10363,7 @@ function getMinValue(arr) {
|
|
|
10276
10363
|
"use strict";
|
|
10277
10364
|
__webpack_require__.r(__webpack_exports__);
|
|
10278
10365
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10279
|
-
/* harmony export */ "
|
|
10280
|
-
/* harmony export */ "baseProps": () => (/* binding */ baseProps),
|
|
10281
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
10366
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
10282
10367
|
/* harmony export */ });
|
|
10283
10368
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
10284
10369
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -10286,26 +10371,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10286
10371
|
|
|
10287
10372
|
|
|
10288
10373
|
var dataProps = {
|
|
10374
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10289
10375
|
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({
|
|
10290
10376
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
10291
10377
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
10292
10378
|
})]),
|
|
10379
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10293
10380
|
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)]),
|
|
10294
10381
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10295
10382
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10296
10383
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10297
10384
|
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)]),
|
|
10298
10385
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10299
|
-
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))]),
|
|
10386
|
+
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))]),
|
|
10300
10387
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
10301
10388
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10302
10389
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10303
10390
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10304
10391
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10305
10392
|
}),
|
|
10306
|
-
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))]),
|
|
10307
|
-
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))]),
|
|
10308
|
-
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))])
|
|
10393
|
+
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))]),
|
|
10394
|
+
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))]),
|
|
10395
|
+
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))])
|
|
10309
10396
|
};
|
|
10310
10397
|
var baseProps = {
|
|
10311
10398
|
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)]),
|
|
@@ -10314,14 +10401,17 @@ var baseProps = {
|
|
|
10314
10401
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
10315
10402
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
10316
10403
|
})]),
|
|
10404
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10317
10405
|
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({
|
|
10318
10406
|
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)]),
|
|
10319
10407
|
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)])
|
|
10320
10408
|
})]),
|
|
10409
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10321
10410
|
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({
|
|
10322
10411
|
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)]),
|
|
10323
10412
|
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)])
|
|
10324
10413
|
})]),
|
|
10414
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10325
10415
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10326
10416
|
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))]),
|
|
10327
10417
|
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))])
|
|
@@ -10332,20 +10422,23 @@ var baseProps = {
|
|
|
10332
10422
|
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)]),
|
|
10333
10423
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
10334
10424
|
})),
|
|
10425
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10335
10426
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10336
|
-
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
10427
|
+
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
10337
10428
|
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)]),
|
|
10338
10429
|
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)]),
|
|
10339
|
-
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default()
|
|
10430
|
+
mutation: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
10340
10431
|
target: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)])
|
|
10341
10432
|
})),
|
|
10342
10433
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
10343
10434
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
10344
10435
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
10436
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10345
10437
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10346
10438
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10347
10439
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
10348
10440
|
}),
|
|
10441
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10349
10442
|
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({
|
|
10350
10443
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10351
10444
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -10354,17 +10447,19 @@ var baseProps = {
|
|
|
10354
10447
|
})]),
|
|
10355
10448
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
10356
10449
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10357
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
10358
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
10450
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
10451
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
10359
10452
|
})]),
|
|
10360
10453
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10361
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
10362
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
10454
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
10455
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
10363
10456
|
})]),
|
|
10457
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10364
10458
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10365
10459
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
10366
10460
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
10367
10461
|
}),
|
|
10462
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10368
10463
|
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({
|
|
10369
10464
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
10370
10465
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -10384,6 +10479,7 @@ var primitiveProps = {
|
|
|
10384
10479
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
10385
10480
|
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)]),
|
|
10386
10481
|
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)]),
|
|
10482
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
10387
10483
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
10388
10484
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
10389
10485
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -10399,6 +10495,12 @@ var primitiveProps = {
|
|
|
10399
10495
|
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)]),
|
|
10400
10496
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
10401
10497
|
};
|
|
10498
|
+
var CommonProps = {
|
|
10499
|
+
dataProps: dataProps,
|
|
10500
|
+
baseProps: baseProps,
|
|
10501
|
+
primitiveProps: primitiveProps
|
|
10502
|
+
};
|
|
10503
|
+
//# sourceMappingURL=common-props.js.map
|
|
10402
10504
|
|
|
10403
10505
|
/***/ }),
|
|
10404
10506
|
|
|
@@ -10411,10 +10513,10 @@ var primitiveProps = {
|
|
|
10411
10513
|
"use strict";
|
|
10412
10514
|
__webpack_require__.r(__webpack_exports__);
|
|
10413
10515
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10414
|
-
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
10415
10516
|
/* harmony export */ "createStringMap": () => (/* binding */ createStringMap),
|
|
10416
10517
|
/* harmony export */ "downsample": () => (/* binding */ downsample),
|
|
10417
10518
|
/* harmony export */ "formatData": () => (/* binding */ formatData),
|
|
10519
|
+
/* harmony export */ "formatDataFromDomain": () => (/* binding */ formatDataFromDomain),
|
|
10418
10520
|
/* harmony export */ "generateData": () => (/* binding */ generateData),
|
|
10419
10521
|
/* harmony export */ "getCategories": () => (/* binding */ getCategories),
|
|
10420
10522
|
/* harmony export */ "getData": () => (/* binding */ getData),
|
|
@@ -10481,8 +10583,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
10481
10583
|
|
|
10482
10584
|
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; }
|
|
10483
10585
|
|
|
10484
|
-
/* eslint-disable func-style */
|
|
10485
|
-
|
|
10486
10586
|
/* eslint-disable no-use-before-define */
|
|
10487
10587
|
|
|
10488
10588
|
|
|
@@ -10914,6 +11014,7 @@ function isDataComponent(component) {
|
|
|
10914
11014
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
10915
11015
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
10916
11016
|
}
|
|
11017
|
+
//# sourceMappingURL=data.js.map
|
|
10917
11018
|
|
|
10918
11019
|
/***/ }),
|
|
10919
11020
|
|
|
@@ -10926,11 +11027,10 @@ function isDataComponent(component) {
|
|
|
10926
11027
|
"use strict";
|
|
10927
11028
|
__webpack_require__.r(__webpack_exports__);
|
|
10928
11029
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10929
|
-
/* harmony export */ "continuousTransitions": () => (/* binding */ continuousTransitions),
|
|
10930
11030
|
/* harmony export */ "continuousPolarTransitions": () => (/* binding */ continuousPolarTransitions),
|
|
11031
|
+
/* harmony export */ "continuousTransitions": () => (/* binding */ continuousTransitions),
|
|
10931
11032
|
/* harmony export */ "discreteTransitions": () => (/* binding */ discreteTransitions)
|
|
10932
11033
|
/* harmony export */ });
|
|
10933
|
-
/* eslint-disable func-style */
|
|
10934
11034
|
function continuousTransitions() {
|
|
10935
11035
|
return {
|
|
10936
11036
|
onLoad: {
|
|
@@ -11037,6 +11137,7 @@ function discreteTransitions() {
|
|
|
11037
11137
|
}
|
|
11038
11138
|
};
|
|
11039
11139
|
}
|
|
11140
|
+
//# sourceMappingURL=default-transitions.js.map
|
|
11040
11141
|
|
|
11041
11142
|
/***/ }),
|
|
11042
11143
|
|
|
@@ -11099,8 +11200,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11099
11200
|
|
|
11100
11201
|
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; }
|
|
11101
11202
|
|
|
11102
|
-
/* eslint-disable func-style */
|
|
11103
|
-
|
|
11104
11203
|
/* eslint-disable no-use-before-define */
|
|
11105
11204
|
|
|
11106
11205
|
|
|
@@ -11140,8 +11239,9 @@ function getDomainPadding(props, axis) {
|
|
|
11140
11239
|
}
|
|
11141
11240
|
|
|
11142
11241
|
function getFlatData(dataset, axis) {
|
|
11242
|
+
var axisKey = "_".concat(axis);
|
|
11143
11243
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
11144
|
-
return datum[
|
|
11244
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
11145
11245
|
});
|
|
11146
11246
|
}
|
|
11147
11247
|
|
|
@@ -11206,7 +11306,9 @@ function padDomain(domain, props, axis) {
|
|
|
11206
11306
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
11207
11307
|
// Naive initial padding calculation
|
|
11208
11308
|
var initialPadding = {
|
|
11309
|
+
// @ts-expect-error `max/min` might be dates
|
|
11209
11310
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
11311
|
+
// @ts-expect-error `max/min` might be dates
|
|
11210
11312
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
11211
11313
|
}; // Adjust the domain by the initial padding
|
|
11212
11314
|
|
|
@@ -11491,6 +11593,7 @@ function isDomainComponent(component) {
|
|
|
11491
11593
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
11492
11594
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
11493
11595
|
}
|
|
11596
|
+
//# sourceMappingURL=domain.js.map
|
|
11494
11597
|
|
|
11495
11598
|
/***/ }),
|
|
11496
11599
|
|
|
@@ -11503,18 +11606,18 @@ function isDomainComponent(component) {
|
|
|
11503
11606
|
"use strict";
|
|
11504
11607
|
__webpack_require__.r(__webpack_exports__);
|
|
11505
11608
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11506
|
-
/* harmony export */ "
|
|
11507
|
-
/* harmony export */ "
|
|
11508
|
-
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
11609
|
+
/* harmony export */ "emulateReactEvent": () => (/* binding */ emulateReactEvent),
|
|
11610
|
+
/* harmony export */ "getComponentEvents": () => (/* binding */ getComponentEvents),
|
|
11509
11611
|
/* harmony export */ "getEventState": () => (/* binding */ getEventState),
|
|
11510
|
-
/* harmony export */ "
|
|
11511
|
-
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
11612
|
+
/* harmony export */ "getEvents": () => (/* binding */ getEvents),
|
|
11512
11613
|
/* harmony export */ "getExternalMutation": () => (/* binding */ getExternalMutation),
|
|
11513
|
-
/* harmony export */ "
|
|
11614
|
+
/* harmony export */ "getExternalMutations": () => (/* binding */ getExternalMutations),
|
|
11615
|
+
/* harmony export */ "getExternalMutationsWithChildren": () => (/* binding */ getExternalMutationsWithChildren),
|
|
11514
11616
|
/* harmony export */ "getGlobalEventNameFromKey": () => (/* binding */ getGlobalEventNameFromKey),
|
|
11515
11617
|
/* harmony export */ "getGlobalEvents": () => (/* binding */ getGlobalEvents),
|
|
11516
|
-
/* harmony export */ "
|
|
11517
|
-
/* harmony export */ "
|
|
11618
|
+
/* harmony export */ "getPartialEvents": () => (/* binding */ getPartialEvents),
|
|
11619
|
+
/* harmony export */ "getScopedEvents": () => (/* binding */ getScopedEvents),
|
|
11620
|
+
/* harmony export */ "omitGlobalEvents": () => (/* binding */ omitGlobalEvents)
|
|
11518
11621
|
/* harmony export */ });
|
|
11519
11622
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
11520
11623
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -11559,15 +11662,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
11559
11662
|
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; }
|
|
11560
11663
|
|
|
11561
11664
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
11665
|
+
|
|
11562
11666
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
11563
11667
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
11564
11668
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
11565
11669
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
11566
11670
|
* (i.e. VictoryChart) in the case of shared events
|
|
11567
11671
|
*/
|
|
11568
|
-
// eslint-disable-next-line max-params
|
|
11569
|
-
|
|
11570
|
-
|
|
11672
|
+
// eslint-disable-next-line max-params
|
|
11673
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
11674
|
+
getScopedEvents) {
|
|
11571
11675
|
var _this = this;
|
|
11572
11676
|
|
|
11573
11677
|
// Returns all events that apply to a particular target element
|
|
@@ -11790,24 +11894,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
11790
11894
|
return memo;
|
|
11791
11895
|
}, {});
|
|
11792
11896
|
}
|
|
11793
|
-
/*
|
|
11897
|
+
/*
|
|
11898
|
+
* Returns a partially applied event handler for a specific target element
|
|
11794
11899
|
* This allows event handlers to have access to props controlling each element
|
|
11795
11900
|
*/
|
|
11796
11901
|
|
|
11797
11902
|
function getPartialEvents(events, eventKey, childProps) {
|
|
11798
|
-
|
|
11903
|
+
if (!events) return {};
|
|
11904
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
11799
11905
|
var appliedEvent = function (evt) {
|
|
11800
11906
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
11801
11907
|
};
|
|
11802
11908
|
|
|
11803
11909
|
memo[eventName] = appliedEvent;
|
|
11804
11910
|
return memo;
|
|
11805
|
-
}, {})
|
|
11911
|
+
}, {});
|
|
11806
11912
|
}
|
|
11913
|
+
|
|
11807
11914
|
/* Returns the property of the state object corresponding to event changes for
|
|
11808
11915
|
* a particular element
|
|
11809
11916
|
*/
|
|
11810
|
-
|
|
11917
|
+
// eslint-disable-next-line max-params
|
|
11811
11918
|
function getEventState(eventKey, namespace, childType) {
|
|
11812
11919
|
// Mandatory usage: `getEventState.bind(this)`
|
|
11813
11920
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -11992,6 +12099,7 @@ var emulateReactEvent = function (event) {
|
|
|
11992
12099
|
nativeEvent: event
|
|
11993
12100
|
});
|
|
11994
12101
|
};
|
|
12102
|
+
//# sourceMappingURL=events.js.map
|
|
11995
12103
|
|
|
11996
12104
|
/***/ }),
|
|
11997
12105
|
|
|
@@ -12004,25 +12112,25 @@ var emulateReactEvent = function (event) {
|
|
|
12004
12112
|
"use strict";
|
|
12005
12113
|
__webpack_require__.r(__webpack_exports__);
|
|
12006
12114
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12007
|
-
/* harmony export */ "
|
|
12008
|
-
/* harmony export */ "
|
|
12009
|
-
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint),
|
|
12010
|
-
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
12011
|
-
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
12012
|
-
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
12013
|
-
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
12115
|
+
/* harmony export */ "createAccessor": () => (/* binding */ createAccessor),
|
|
12116
|
+
/* harmony export */ "degreesToRadians": () => (/* binding */ degreesToRadians),
|
|
12014
12117
|
/* harmony export */ "evaluateProp": () => (/* binding */ evaluateProp),
|
|
12015
12118
|
/* harmony export */ "evaluateStyle": () => (/* binding */ evaluateStyle),
|
|
12016
|
-
/* harmony export */ "
|
|
12017
|
-
/* harmony export */ "
|
|
12018
|
-
/* harmony export */ "
|
|
12119
|
+
/* harmony export */ "getCurrentAxis": () => (/* binding */ getCurrentAxis),
|
|
12120
|
+
/* harmony export */ "getDefaultStyles": () => (/* binding */ getDefaultStyles),
|
|
12121
|
+
/* harmony export */ "getPadding": () => (/* binding */ getPadding),
|
|
12122
|
+
/* harmony export */ "getPoint": () => (/* binding */ getPoint),
|
|
12019
12123
|
/* harmony export */ "getPolarOrigin": () => (/* binding */ getPolarOrigin),
|
|
12124
|
+
/* harmony export */ "getRadius": () => (/* binding */ getRadius),
|
|
12020
12125
|
/* harmony export */ "getRange": () => (/* binding */ getRange),
|
|
12021
|
-
/* harmony export */ "
|
|
12126
|
+
/* harmony export */ "getStyles": () => (/* binding */ getStyles),
|
|
12127
|
+
/* harmony export */ "isHorizontal": () => (/* binding */ isHorizontal),
|
|
12128
|
+
/* harmony export */ "isTooltip": () => (/* binding */ isTooltip),
|
|
12022
12129
|
/* harmony export */ "modifyProps": () => (/* binding */ modifyProps),
|
|
12023
|
-
/* harmony export */ "
|
|
12130
|
+
/* harmony export */ "omit": () => (/* binding */ omit),
|
|
12131
|
+
/* harmony export */ "radiansToDegrees": () => (/* binding */ radiansToDegrees),
|
|
12024
12132
|
/* harmony export */ "reduceChildren": () => (/* binding */ reduceChildren),
|
|
12025
|
-
/* harmony export */ "
|
|
12133
|
+
/* harmony export */ "scalePoint": () => (/* binding */ scalePoint)
|
|
12026
12134
|
/* harmony export */ });
|
|
12027
12135
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/keys */ "../../../node_modules/lodash/keys.js");
|
|
12028
12136
|
/* harmony import */ var lodash_keys__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_keys__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12045,8 +12153,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12045
12153
|
|
|
12046
12154
|
|
|
12047
12155
|
|
|
12048
|
-
/* eslint-disable func-style */
|
|
12049
|
-
|
|
12050
12156
|
/* eslint-disable no-use-before-define */
|
|
12051
12157
|
|
|
12052
12158
|
|
|
@@ -12075,7 +12181,7 @@ function getPolarRange(props, axis) {
|
|
|
12075
12181
|
|
|
12076
12182
|
/**
|
|
12077
12183
|
* creates an object with some keys excluded
|
|
12078
|
-
* replacement for lodash.omit for performance. does not
|
|
12184
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
12079
12185
|
* @param {Object} originalObject: created object will be based on this object
|
|
12080
12186
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
12081
12187
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -12088,6 +12194,7 @@ function omit(originalObject) {
|
|
|
12088
12194
|
var newObject = {};
|
|
12089
12195
|
|
|
12090
12196
|
for (var key in originalObject) {
|
|
12197
|
+
// @ts-expect-error String is not assignable to Key
|
|
12091
12198
|
if (ks.indexOf(key) >= 0) {
|
|
12092
12199
|
continue;
|
|
12093
12200
|
}
|
|
@@ -12320,7 +12427,9 @@ function reduceChildren(children, iteratee) {
|
|
|
12320
12427
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
12321
12428
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
12322
12429
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
12323
|
-
return
|
|
12430
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
12431
|
+
memo.concat(item)
|
|
12432
|
+
);
|
|
12324
12433
|
};
|
|
12325
12434
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
12326
12435
|
|
|
@@ -12364,7 +12473,7 @@ function reduceChildren(children, iteratee) {
|
|
|
12364
12473
|
/**
|
|
12365
12474
|
* @param {Object} props: the props object
|
|
12366
12475
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
12367
|
-
* children or nested children are
|
|
12476
|
+
* children or nested children are horizontal
|
|
12368
12477
|
*/
|
|
12369
12478
|
|
|
12370
12479
|
function isHorizontal(props) {
|
|
@@ -12387,6 +12496,7 @@ function isHorizontal(props) {
|
|
|
12387
12496
|
|
|
12388
12497
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
12389
12498
|
}
|
|
12499
|
+
//# sourceMappingURL=helpers.js.map
|
|
12390
12500
|
|
|
12391
12501
|
/***/ }),
|
|
12392
12502
|
|
|
@@ -12400,17 +12510,16 @@ function isHorizontal(props) {
|
|
|
12400
12510
|
__webpack_require__.r(__webpack_exports__);
|
|
12401
12511
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12402
12512
|
/* harmony export */ "IMMUTABLE_ITERABLE": () => (/* binding */ IMMUTABLE_ITERABLE),
|
|
12403
|
-
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
12404
12513
|
/* harmony export */ "IMMUTABLE_LIST": () => (/* binding */ IMMUTABLE_LIST),
|
|
12405
12514
|
/* harmony export */ "IMMUTABLE_MAP": () => (/* binding */ IMMUTABLE_MAP),
|
|
12406
|
-
/* harmony export */ "
|
|
12407
|
-
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
12515
|
+
/* harmony export */ "IMMUTABLE_RECORD": () => (/* binding */ IMMUTABLE_RECORD),
|
|
12408
12516
|
/* harmony export */ "isImmutable": () => (/* binding */ isImmutable),
|
|
12517
|
+
/* harmony export */ "isIterable": () => (/* binding */ isIterable),
|
|
12409
12518
|
/* harmony export */ "isList": () => (/* binding */ isList),
|
|
12410
12519
|
/* harmony export */ "isMap": () => (/* binding */ isMap),
|
|
12520
|
+
/* harmony export */ "isRecord": () => (/* binding */ isRecord),
|
|
12411
12521
|
/* harmony export */ "shallowToJS": () => (/* binding */ shallowToJS)
|
|
12412
12522
|
/* harmony export */ });
|
|
12413
|
-
/* eslint-disable func-style */
|
|
12414
12523
|
var IMMUTABLE_ITERABLE = "@@__IMMUTABLE_ITERABLE__@@";
|
|
12415
12524
|
var IMMUTABLE_RECORD = "@@__IMMUTABLE_RECORD__@@";
|
|
12416
12525
|
var IMMUTABLE_LIST = "@@__IMMUTABLE_LIST__@@";
|
|
@@ -12431,15 +12540,16 @@ function isMap(x) {
|
|
|
12431
12540
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
12432
12541
|
}
|
|
12433
12542
|
function shallowToJS(x, whitelist) {
|
|
12434
|
-
return isIterable(x) ? x.reduce(function (
|
|
12543
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
12435
12544
|
if (whitelist && whitelist[key]) {
|
|
12436
12545
|
curr = shallowToJS(curr);
|
|
12437
12546
|
}
|
|
12438
12547
|
|
|
12439
|
-
|
|
12440
|
-
return
|
|
12548
|
+
result[key] = curr;
|
|
12549
|
+
return result;
|
|
12441
12550
|
}, isList(x) ? [] : {}) : x;
|
|
12442
12551
|
}
|
|
12552
|
+
//# sourceMappingURL=immutable.js.map
|
|
12443
12553
|
|
|
12444
12554
|
/***/ }),
|
|
12445
12555
|
|
|
@@ -12452,20 +12562,18 @@ function shallowToJS(x, whitelist) {
|
|
|
12452
12562
|
"use strict";
|
|
12453
12563
|
__webpack_require__.r(__webpack_exports__);
|
|
12454
12564
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12455
|
-
/* harmony export */ "
|
|
12565
|
+
/* harmony export */ "getDegrees": () => (/* binding */ getDegrees),
|
|
12566
|
+
/* harmony export */ "getPolarAngle": () => (/* binding */ getPolarAngle),
|
|
12456
12567
|
/* harmony export */ "getPolarTextAnchor": () => (/* binding */ getPolarTextAnchor),
|
|
12457
12568
|
/* harmony export */ "getPolarVerticalAnchor": () => (/* binding */ getPolarVerticalAnchor),
|
|
12458
|
-
/* harmony export */ "
|
|
12459
|
-
/* harmony export */ "
|
|
12460
|
-
/* harmony export */ "getProps": () => (/* binding */ getProps)
|
|
12569
|
+
/* harmony export */ "getProps": () => (/* binding */ getProps),
|
|
12570
|
+
/* harmony export */ "getText": () => (/* binding */ getText)
|
|
12461
12571
|
/* harmony export */ });
|
|
12462
12572
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
12463
12573
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
12464
12574
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
12465
12575
|
|
|
12466
12576
|
|
|
12467
|
-
/* eslint-disable func-style */
|
|
12468
|
-
|
|
12469
12577
|
/* eslint-disable no-use-before-define */
|
|
12470
12578
|
|
|
12471
12579
|
|
|
@@ -12699,6 +12807,7 @@ function getProps(props, index) {
|
|
|
12699
12807
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
12700
12808
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
12701
12809
|
}
|
|
12810
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
12702
12811
|
|
|
12703
12812
|
/***/ }),
|
|
12704
12813
|
|
|
@@ -12717,7 +12826,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12717
12826
|
|
|
12718
12827
|
/* eslint-disable no-console */
|
|
12719
12828
|
// TODO: Use "warning" npm module like React is switching to.
|
|
12720
|
-
// eslint-disable-next-line func-style
|
|
12721
12829
|
function warn(message) {
|
|
12722
12830
|
if (true) {
|
|
12723
12831
|
if (console && console.warn) {
|
|
@@ -12725,6 +12833,7 @@ function warn(message) {
|
|
|
12725
12833
|
}
|
|
12726
12834
|
}
|
|
12727
12835
|
}
|
|
12836
|
+
//# sourceMappingURL=log.js.map
|
|
12728
12837
|
|
|
12729
12838
|
/***/ }),
|
|
12730
12839
|
|
|
@@ -12737,27 +12846,25 @@ function warn(message) {
|
|
|
12737
12846
|
"use strict";
|
|
12738
12847
|
__webpack_require__.r(__webpack_exports__);
|
|
12739
12848
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12740
|
-
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
12741
12849
|
/* harmony export */ "allOfType": () => (/* binding */ allOfType),
|
|
12742
|
-
/* harmony export */ "
|
|
12743
|
-
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
12744
|
-
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
12850
|
+
/* harmony export */ "deprecated": () => (/* binding */ deprecated),
|
|
12745
12851
|
/* harmony export */ "domain": () => (/* binding */ domain),
|
|
12746
|
-
/* harmony export */ "
|
|
12852
|
+
/* harmony export */ "greaterThanZero": () => (/* binding */ greaterThanZero),
|
|
12747
12853
|
/* harmony export */ "homogeneousArray": () => (/* binding */ homogeneousArray),
|
|
12854
|
+
/* harmony export */ "integer": () => (/* binding */ integer),
|
|
12748
12855
|
/* harmony export */ "matchDataLength": () => (/* binding */ matchDataLength),
|
|
12749
|
-
/* harmony export */ "
|
|
12856
|
+
/* harmony export */ "nonNegative": () => (/* binding */ nonNegative),
|
|
12857
|
+
/* harmony export */ "regExp": () => (/* binding */ regExp),
|
|
12858
|
+
/* harmony export */ "scale": () => (/* binding */ scale)
|
|
12750
12859
|
/* harmony export */ });
|
|
12751
12860
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isRegExp */ "../../../node_modules/lodash/isRegExp.js");
|
|
12752
12861
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
12753
12862
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
12754
12863
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
12755
|
-
/* harmony import */ var
|
|
12756
|
-
/* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
|
|
12757
|
-
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
12864
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
12758
12865
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
12759
12866
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
12760
|
-
|
|
12867
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
12761
12868
|
|
|
12762
12869
|
|
|
12763
12870
|
|
|
@@ -12765,6 +12872,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12765
12872
|
|
|
12766
12873
|
|
|
12767
12874
|
|
|
12875
|
+
|
|
12876
|
+
|
|
12768
12877
|
/**
|
|
12769
12878
|
* Return a new validator based on `validator` but with the option to chain
|
|
12770
12879
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -12772,30 +12881,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
12772
12881
|
* @param {Function} validator Validation function.
|
|
12773
12882
|
* @returns {Function} Validator with `isRequired` option.
|
|
12774
12883
|
*/
|
|
12775
|
-
|
|
12776
12884
|
var makeChainable = function (validator) {
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12885
|
+
var createChainable = function (isRequired) {
|
|
12886
|
+
return function (props, propName, componentName) {
|
|
12887
|
+
var value = props[propName];
|
|
12780
12888
|
|
|
12781
|
-
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
|
|
12889
|
+
if (value === undefined || value === null) {
|
|
12890
|
+
if (isRequired) {
|
|
12891
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
12892
|
+
}
|
|
12785
12893
|
|
|
12786
|
-
|
|
12787
|
-
|
|
12894
|
+
return null;
|
|
12895
|
+
}
|
|
12788
12896
|
|
|
12789
|
-
|
|
12790
|
-
|
|
12791
|
-
|
|
12897
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
12898
|
+
rest[_key - 3] = arguments[_key];
|
|
12899
|
+
}
|
|
12792
12900
|
|
|
12793
|
-
|
|
12901
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
12902
|
+
};
|
|
12794
12903
|
};
|
|
12795
12904
|
|
|
12796
|
-
var chainable =
|
|
12797
|
-
|
|
12798
|
-
|
|
12905
|
+
var chainable = Object.assign(createChainable(false), {
|
|
12906
|
+
isRequired: createChainable(true)
|
|
12907
|
+
});
|
|
12799
12908
|
return chainable;
|
|
12800
12909
|
};
|
|
12801
12910
|
|
|
@@ -12825,7 +12934,7 @@ var getConstructor = function (value) {
|
|
|
12825
12934
|
};
|
|
12826
12935
|
/**
|
|
12827
12936
|
* Get the name of the constructor used to create `value`, using
|
|
12828
|
-
* `Object.
|
|
12937
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
12829
12938
|
* "null" or "undefined", respectively.
|
|
12830
12939
|
* @param {*} value Instance to return the constructor name of.
|
|
12831
12940
|
* @returns {String} Name of the constructor.
|
|
@@ -12855,10 +12964,11 @@ function deprecated(propType, explanation) {
|
|
|
12855
12964
|
var value = props[propName];
|
|
12856
12965
|
|
|
12857
12966
|
if (value !== null && value !== undefined) {
|
|
12858
|
-
|
|
12967
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
12859
12968
|
}
|
|
12860
12969
|
|
|
12861
|
-
|
|
12970
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
12971
|
+
return null;
|
|
12862
12972
|
};
|
|
12863
12973
|
}
|
|
12864
12974
|
/**
|
|
@@ -12877,7 +12987,7 @@ function allOfType(validators) {
|
|
|
12877
12987
|
|
|
12878
12988
|
return validators.reduce(function (result, validator) {
|
|
12879
12989
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
12880
|
-
},
|
|
12990
|
+
}, null);
|
|
12881
12991
|
});
|
|
12882
12992
|
}
|
|
12883
12993
|
/**
|
|
@@ -12891,7 +13001,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
12891
13001
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
12892
13002
|
}
|
|
12893
13003
|
|
|
12894
|
-
return
|
|
13004
|
+
return null;
|
|
12895
13005
|
});
|
|
12896
13006
|
/**
|
|
12897
13007
|
* Check that the value is an integer.
|
|
@@ -12904,7 +13014,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
12904
13014
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
12905
13015
|
}
|
|
12906
13016
|
|
|
12907
|
-
return
|
|
13017
|
+
return null;
|
|
12908
13018
|
});
|
|
12909
13019
|
/**
|
|
12910
13020
|
* Check that the value is greater than zero.
|
|
@@ -12917,7 +13027,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
12917
13027
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
12918
13028
|
}
|
|
12919
13029
|
|
|
12920
|
-
return
|
|
13030
|
+
return null;
|
|
12921
13031
|
});
|
|
12922
13032
|
/**
|
|
12923
13033
|
* Check that the value is an Array of two unique values.
|
|
@@ -12930,32 +13040,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
12930
13040
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
12931
13041
|
}
|
|
12932
13042
|
|
|
12933
|
-
return
|
|
13043
|
+
return null;
|
|
12934
13044
|
});
|
|
12935
13045
|
/**
|
|
12936
13046
|
* Check that the value looks like a d3 `scale` function.
|
|
12937
13047
|
*/
|
|
12938
13048
|
|
|
12939
13049
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
12940
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
12941
|
-
|
|
12942
|
-
var validScale = function (scl) {
|
|
12943
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
12944
|
-
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);
|
|
12945
|
-
} else if (typeof scl === "string") {
|
|
12946
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
12947
|
-
}
|
|
12948
|
-
|
|
12949
|
-
return false;
|
|
12950
|
-
};
|
|
12951
|
-
|
|
12952
13050
|
var value = props[propName];
|
|
12953
13051
|
|
|
12954
|
-
if (!validScale(value)) {
|
|
13052
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
12955
13053
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
12956
13054
|
}
|
|
12957
13055
|
|
|
12958
|
-
return
|
|
13056
|
+
return null;
|
|
12959
13057
|
});
|
|
12960
13058
|
/**
|
|
12961
13059
|
* Check that an array contains items of the same type.
|
|
@@ -12969,7 +13067,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
12969
13067
|
}
|
|
12970
13068
|
|
|
12971
13069
|
if (values.length < 2) {
|
|
12972
|
-
return
|
|
13070
|
+
return null;
|
|
12973
13071
|
}
|
|
12974
13072
|
|
|
12975
13073
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -12984,7 +13082,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
12984
13082
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
12985
13083
|
}
|
|
12986
13084
|
|
|
12987
|
-
return
|
|
13085
|
+
return null;
|
|
12988
13086
|
});
|
|
12989
13087
|
/**
|
|
12990
13088
|
* Check that array prop length matches props.data.length
|
|
@@ -12995,7 +13093,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
12995
13093
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
12996
13094
|
}
|
|
12997
13095
|
|
|
12998
|
-
return
|
|
13096
|
+
return null;
|
|
12999
13097
|
});
|
|
13000
13098
|
/**
|
|
13001
13099
|
* Check that the value is a regular expression
|
|
@@ -13006,8 +13104,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
13006
13104
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
13007
13105
|
}
|
|
13008
13106
|
|
|
13009
|
-
return
|
|
13107
|
+
return null;
|
|
13010
13108
|
});
|
|
13109
|
+
//# sourceMappingURL=prop-types.js.map
|
|
13011
13110
|
|
|
13012
13111
|
/***/ }),
|
|
13013
13112
|
|
|
@@ -13020,12 +13119,13 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
13020
13119
|
"use strict";
|
|
13021
13120
|
__webpack_require__.r(__webpack_exports__);
|
|
13022
13121
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13023
|
-
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
13024
13122
|
/* harmony export */ "getBaseScale": () => (/* binding */ getBaseScale),
|
|
13025
13123
|
/* harmony export */ "getDefaultScale": () => (/* binding */ getDefaultScale),
|
|
13124
|
+
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
13026
13125
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
13027
13126
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
13028
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
13127
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
13128
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
13029
13129
|
/* harmony export */ });
|
|
13030
13130
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
13031
13131
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -13043,8 +13143,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13043
13143
|
|
|
13044
13144
|
|
|
13045
13145
|
|
|
13046
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13146
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
13047
13147
|
|
|
13148
|
+
// Private Functions
|
|
13048
13149
|
function toNewName(scale) {
|
|
13049
13150
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
13050
13151
|
var capitalize = function (s) {
|
|
@@ -13114,7 +13215,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
13114
13215
|
|
|
13115
13216
|
|
|
13116
13217
|
function getScaleFromName(name) {
|
|
13117
|
-
|
|
13218
|
+
if (validScale(name)) {
|
|
13219
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
13220
|
+
|
|
13221
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
13222
|
+
}
|
|
13223
|
+
|
|
13224
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
13118
13225
|
}
|
|
13119
13226
|
function getBaseScale(props, axis) {
|
|
13120
13227
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -13124,7 +13231,7 @@ function getBaseScale(props, axis) {
|
|
|
13124
13231
|
}
|
|
13125
13232
|
|
|
13126
13233
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
13127
|
-
return
|
|
13234
|
+
return getScaleFromName(defaultScale);
|
|
13128
13235
|
}
|
|
13129
13236
|
function getDefaultScale() {
|
|
13130
13237
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -13137,7 +13244,7 @@ function getScaleFromProps(props, axis) {
|
|
|
13137
13244
|
var scale = props.scale[axis] || props.scale;
|
|
13138
13245
|
|
|
13139
13246
|
if (validScale(scale)) {
|
|
13140
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
13247
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
13141
13248
|
}
|
|
13142
13249
|
|
|
13143
13250
|
return undefined;
|
|
@@ -13172,6 +13279,7 @@ function getType(scale) {
|
|
|
13172
13279
|
})[0];
|
|
13173
13280
|
return scaleType ? scaleType.name : undefined;
|
|
13174
13281
|
}
|
|
13282
|
+
//# sourceMappingURL=scale.js.map
|
|
13175
13283
|
|
|
13176
13284
|
/***/ }),
|
|
13177
13285
|
|
|
@@ -13184,11 +13292,9 @@ function getType(scale) {
|
|
|
13184
13292
|
"use strict";
|
|
13185
13293
|
__webpack_require__.r(__webpack_exports__);
|
|
13186
13294
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13187
|
-
/* harmony export */ "
|
|
13188
|
-
/* harmony export */ "
|
|
13295
|
+
/* harmony export */ "getColorScale": () => (/* binding */ getColorScale),
|
|
13296
|
+
/* harmony export */ "toTransformString": () => (/* binding */ toTransformString)
|
|
13189
13297
|
/* harmony export */ });
|
|
13190
|
-
/* eslint-disable func-style */
|
|
13191
|
-
|
|
13192
13298
|
/**
|
|
13193
13299
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
13194
13300
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -13245,6 +13351,7 @@ function getColorScale(name) {
|
|
|
13245
13351
|
};
|
|
13246
13352
|
return name ? scales[name] : scales.grayscale;
|
|
13247
13353
|
}
|
|
13354
|
+
//# sourceMappingURL=style.js.map
|
|
13248
13355
|
|
|
13249
13356
|
/***/ }),
|
|
13250
13357
|
|
|
@@ -13257,9 +13364,9 @@ function getColorScale(name) {
|
|
|
13257
13364
|
"use strict";
|
|
13258
13365
|
__webpack_require__.r(__webpack_exports__);
|
|
13259
13366
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13260
|
-
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels),
|
|
13261
13367
|
/* harmony export */ "_approximateTextSizeInternal": () => (/* binding */ _approximateTextSizeInternal),
|
|
13262
|
-
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize)
|
|
13368
|
+
/* harmony export */ "approximateTextSize": () => (/* binding */ approximateTextSize),
|
|
13369
|
+
/* harmony export */ "convertLengthToPixels": () => (/* binding */ convertLengthToPixels)
|
|
13263
13370
|
/* harmony export */ });
|
|
13264
13371
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/lodash/defaults.js");
|
|
13265
13372
|
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -13449,8 +13556,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
13449
13556
|
|
|
13450
13557
|
|
|
13451
13558
|
var convertLengthToPixels = function (length, fontSize) {
|
|
13452
|
-
var
|
|
13453
|
-
|
|
13559
|
+
var _length$match;
|
|
13560
|
+
|
|
13561
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
13562
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
13454
13563
|
var result;
|
|
13455
13564
|
|
|
13456
13565
|
if (!attribute) {
|
|
@@ -13516,9 +13625,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
13516
13625
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
13517
13626
|
return total + lineStyle.lineHeight * height;
|
|
13518
13627
|
}, 0);
|
|
13519
|
-
};
|
|
13520
|
-
|
|
13628
|
+
};
|
|
13521
13629
|
|
|
13630
|
+
// Stubbable implementation.
|
|
13522
13631
|
var _approximateTextSizeInternal = {
|
|
13523
13632
|
impl: function (text, style) {
|
|
13524
13633
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -13537,7 +13646,7 @@ var _approximateTextSizeInternal = {
|
|
|
13537
13646
|
};
|
|
13538
13647
|
/**
|
|
13539
13648
|
* Predict text size by font params.
|
|
13540
|
-
* @param {string} text Content for width calculation.
|
|
13649
|
+
* @param {string|string[]} text Content for width calculation.
|
|
13541
13650
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
13542
13651
|
* @param {string} style.fontFamily Text fontFamily.
|
|
13543
13652
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -13550,6 +13659,7 @@ var _approximateTextSizeInternal = {
|
|
|
13550
13659
|
var approximateTextSize = function (text, style) {
|
|
13551
13660
|
return _approximateTextSizeInternal.impl(text, style);
|
|
13552
13661
|
};
|
|
13662
|
+
//# sourceMappingURL=textsize.js.map
|
|
13553
13663
|
|
|
13554
13664
|
/***/ }),
|
|
13555
13665
|
|
|
@@ -13580,6 +13690,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
13580
13690
|
});
|
|
13581
13691
|
TimerContext.displayName = "TimerContext";
|
|
13582
13692
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
13693
|
+
//# sourceMappingURL=timer-context.js.map
|
|
13583
13694
|
|
|
13584
13695
|
/***/ }),
|
|
13585
13696
|
|
|
@@ -13605,11 +13716,23 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
13605
13716
|
|
|
13606
13717
|
var Timer = /*#__PURE__*/function () {
|
|
13607
13718
|
function Timer() {
|
|
13719
|
+
var _this = this;
|
|
13720
|
+
|
|
13608
13721
|
_classCallCheck(this, Timer);
|
|
13609
13722
|
|
|
13723
|
+
this.shouldAnimate = void 0;
|
|
13724
|
+
this.subscribers = void 0;
|
|
13725
|
+
this.activeSubscriptions = void 0;
|
|
13726
|
+
this.timer = void 0;
|
|
13727
|
+
|
|
13728
|
+
this.loop = function () {
|
|
13729
|
+
_this.subscribers.forEach(function (s) {
|
|
13730
|
+
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
13731
|
+
});
|
|
13732
|
+
};
|
|
13733
|
+
|
|
13610
13734
|
this.shouldAnimate = true;
|
|
13611
13735
|
this.subscribers = [];
|
|
13612
|
-
this.loop = this.loop.bind(this);
|
|
13613
13736
|
this.timer = null;
|
|
13614
13737
|
this.activeSubscriptions = 0;
|
|
13615
13738
|
}
|
|
@@ -13624,13 +13747,6 @@ var Timer = /*#__PURE__*/function () {
|
|
|
13624
13747
|
value: function resumeAnimation() {
|
|
13625
13748
|
this.shouldAnimate = true;
|
|
13626
13749
|
}
|
|
13627
|
-
}, {
|
|
13628
|
-
key: "loop",
|
|
13629
|
-
value: function loop() {
|
|
13630
|
-
this.subscribers.forEach(function (s) {
|
|
13631
|
-
s.callback((0,victory_vendor_d3_timer__WEBPACK_IMPORTED_MODULE_0__.now)() - s.startTime, s.duration);
|
|
13632
|
-
});
|
|
13633
|
-
}
|
|
13634
13750
|
}, {
|
|
13635
13751
|
key: "start",
|
|
13636
13752
|
value: function start() {
|
|
@@ -13677,6 +13793,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
13677
13793
|
}();
|
|
13678
13794
|
|
|
13679
13795
|
|
|
13796
|
+
//# sourceMappingURL=timer.js.map
|
|
13680
13797
|
|
|
13681
13798
|
/***/ }),
|
|
13682
13799
|
|
|
@@ -13767,7 +13884,7 @@ function getChildData(child) {
|
|
|
13767
13884
|
}
|
|
13768
13885
|
/**
|
|
13769
13886
|
* If a parent component has animation enabled, calculate the transitions
|
|
13770
|
-
* for any data of any child component that supports data transitions
|
|
13887
|
+
* for any data of any child component that supports data transitions.
|
|
13771
13888
|
* Data transitions are defined as any two datasets where data nodes exist
|
|
13772
13889
|
* in the first set and not the second, in the second and not the first,
|
|
13773
13890
|
* or both.
|
|
@@ -13896,7 +14013,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
|
|
|
13896
14013
|
|
|
13897
14014
|
if (exitingNodes) {
|
|
13898
14015
|
// After the exit transition occurs, trigger the animations for
|
|
13899
|
-
// nodes that are neither exiting
|
|
14016
|
+
// nodes that are neither exiting nor entering.
|
|
13900
14017
|
animate.onEnd = cb;
|
|
13901
14018
|
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.
|
|
13902
14019
|
|
|
@@ -13966,7 +14083,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
|
|
|
13966
14083
|
* and its index in the parent's children array.
|
|
13967
14084
|
*
|
|
13968
14085
|
* In particular, this will include an `animate` object that is set appropriately
|
|
13969
|
-
* so that each child will be
|
|
14086
|
+
* so that each child will be synchronized for each stage of a transition
|
|
13970
14087
|
* animation. It will also include a transformed `data` object, where each datum
|
|
13971
14088
|
* is transformed by `animate.onExit` and `animate.onEnter` `before` and `after`
|
|
13972
14089
|
* functions.
|
|
@@ -14111,6 +14228,7 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
14111
14228
|
};
|
|
14112
14229
|
};
|
|
14113
14230
|
}
|
|
14231
|
+
//# sourceMappingURL=transitions.js.map
|
|
14114
14232
|
|
|
14115
14233
|
/***/ }),
|
|
14116
14234
|
|
|
@@ -14123,8 +14241,11 @@ function getTransitionPropsFactory(props, state, setState) {
|
|
|
14123
14241
|
"use strict";
|
|
14124
14242
|
__webpack_require__.r(__webpack_exports__);
|
|
14125
14243
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14126
|
-
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps)
|
|
14244
|
+
/* harmony export */ "getSafeUserProps": () => (/* binding */ getSafeUserProps),
|
|
14245
|
+
/* harmony export */ "withSafeUserProps": () => (/* binding */ withSafeUserProps)
|
|
14127
14246
|
/* harmony export */ });
|
|
14247
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
14248
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
14128
14249
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
14129
14250
|
|
|
14130
14251
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -14143,16 +14264,19 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
14143
14264
|
|
|
14144
14265
|
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; }
|
|
14145
14266
|
|
|
14267
|
+
|
|
14146
14268
|
/*
|
|
14147
14269
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
14148
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
14270
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
14149
14271
|
starts with these characters.
|
|
14150
14272
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
14151
14273
|
*/
|
|
14274
|
+
|
|
14152
14275
|
var USER_PROPS_SAFELIST = {
|
|
14153
14276
|
startsWith: ["data-", "aria-"],
|
|
14154
14277
|
exactMatch: []
|
|
14155
14278
|
};
|
|
14279
|
+
|
|
14156
14280
|
/**
|
|
14157
14281
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
14158
14282
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -14161,7 +14285,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
14161
14285
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
14162
14286
|
* otherwise
|
|
14163
14287
|
*/
|
|
14164
|
-
|
|
14165
14288
|
var doesPropStartWith = function (key) {
|
|
14166
14289
|
var startsWith = false;
|
|
14167
14290
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -14235,6 +14358,18 @@ var getSafeUserProps = function (props) {
|
|
|
14235
14358
|
return [key, getValue(value, props)];
|
|
14236
14359
|
}));
|
|
14237
14360
|
};
|
|
14361
|
+
/**
|
|
14362
|
+
* Wraps a component and adds safe user props
|
|
14363
|
+
*
|
|
14364
|
+
* @param {ReactElement} component: parent component
|
|
14365
|
+
* @param {Object} props: props to be filtered
|
|
14366
|
+
* @returns {ReactElement} modified component
|
|
14367
|
+
*/
|
|
14368
|
+
|
|
14369
|
+
var withSafeUserProps = function (component, props) {
|
|
14370
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
14371
|
+
};
|
|
14372
|
+
//# sourceMappingURL=user-props.js.map
|
|
14238
14373
|
|
|
14239
14374
|
/***/ }),
|
|
14240
14375
|
|
|
@@ -14354,8 +14489,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14354
14489
|
"use strict";
|
|
14355
14490
|
__webpack_require__.r(__webpack_exports__);
|
|
14356
14491
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14357
|
-
/* harmony export */ "
|
|
14358
|
-
/* harmony export */ "
|
|
14492
|
+
/* harmony export */ "addBeach": () => (/* binding */ addBeach),
|
|
14493
|
+
/* harmony export */ "removeBeach": () => (/* binding */ removeBeach)
|
|
14359
14494
|
/* harmony export */ });
|
|
14360
14495
|
/* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RedBlackTree */ "../node_modules/d3-voronoi/src/RedBlackTree.js");
|
|
14361
14496
|
/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Cell */ "../node_modules/d3-voronoi/src/Cell.js");
|
|
@@ -14568,11 +14703,11 @@ function rightBreakPoint(arc, directrix) {
|
|
|
14568
14703
|
"use strict";
|
|
14569
14704
|
__webpack_require__.r(__webpack_exports__);
|
|
14570
14705
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14571
|
-
/* harmony export */ "createCell": () => (/* binding */ createCell),
|
|
14572
|
-
/* harmony export */ "cellHalfedgeStart": () => (/* binding */ cellHalfedgeStart),
|
|
14573
14706
|
/* harmony export */ "cellHalfedgeEnd": () => (/* binding */ cellHalfedgeEnd),
|
|
14574
|
-
/* harmony export */ "
|
|
14575
|
-
/* harmony export */ "clipCells": () => (/* binding */ clipCells)
|
|
14707
|
+
/* harmony export */ "cellHalfedgeStart": () => (/* binding */ cellHalfedgeStart),
|
|
14708
|
+
/* harmony export */ "clipCells": () => (/* binding */ clipCells),
|
|
14709
|
+
/* harmony export */ "createCell": () => (/* binding */ createCell),
|
|
14710
|
+
/* harmony export */ "sortCellHalfedges": () => (/* binding */ sortCellHalfedges)
|
|
14576
14711
|
/* harmony export */ });
|
|
14577
14712
|
/* harmony import */ var _Edge__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Edge */ "../node_modules/d3-voronoi/src/Edge.js");
|
|
14578
14713
|
/* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Diagram */ "../node_modules/d3-voronoi/src/Diagram.js");
|
|
@@ -14715,9 +14850,9 @@ function clipCells(x0, y0, x1, y1) {
|
|
|
14715
14850
|
"use strict";
|
|
14716
14851
|
__webpack_require__.r(__webpack_exports__);
|
|
14717
14852
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14718
|
-
/* harmony export */ "firstCircle": () => (/* binding */ firstCircle),
|
|
14719
14853
|
/* harmony export */ "attachCircle": () => (/* binding */ attachCircle),
|
|
14720
|
-
/* harmony export */ "detachCircle": () => (/* binding */ detachCircle)
|
|
14854
|
+
/* harmony export */ "detachCircle": () => (/* binding */ detachCircle),
|
|
14855
|
+
/* harmony export */ "firstCircle": () => (/* binding */ firstCircle)
|
|
14721
14856
|
/* harmony export */ });
|
|
14722
14857
|
/* harmony import */ var _RedBlackTree__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./RedBlackTree */ "../node_modules/d3-voronoi/src/RedBlackTree.js");
|
|
14723
14858
|
/* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Diagram */ "../node_modules/d3-voronoi/src/Diagram.js");
|
|
@@ -14812,13 +14947,13 @@ function detachCircle(arc) {
|
|
|
14812
14947
|
"use strict";
|
|
14813
14948
|
__webpack_require__.r(__webpack_exports__);
|
|
14814
14949
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14815
|
-
/* harmony export */ "epsilon": () => (/* binding */ epsilon),
|
|
14816
|
-
/* harmony export */ "epsilon2": () => (/* binding */ epsilon2),
|
|
14817
14950
|
/* harmony export */ "beaches": () => (/* binding */ beaches),
|
|
14818
14951
|
/* harmony export */ "cells": () => (/* binding */ cells),
|
|
14819
14952
|
/* harmony export */ "circles": () => (/* binding */ circles),
|
|
14953
|
+
/* harmony export */ "default": () => (/* binding */ Diagram),
|
|
14820
14954
|
/* harmony export */ "edges": () => (/* binding */ edges),
|
|
14821
|
-
/* harmony export */ "
|
|
14955
|
+
/* harmony export */ "epsilon": () => (/* binding */ epsilon),
|
|
14956
|
+
/* harmony export */ "epsilon2": () => (/* binding */ epsilon2)
|
|
14822
14957
|
/* harmony export */ });
|
|
14823
14958
|
/* harmony import */ var _Beach__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Beach */ "../node_modules/d3-voronoi/src/Beach.js");
|
|
14824
14959
|
/* harmony import */ var _Cell__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Cell */ "../node_modules/d3-voronoi/src/Cell.js");
|
|
@@ -14980,10 +15115,10 @@ Diagram.prototype = {
|
|
|
14980
15115
|
"use strict";
|
|
14981
15116
|
__webpack_require__.r(__webpack_exports__);
|
|
14982
15117
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14983
|
-
/* harmony export */ "
|
|
15118
|
+
/* harmony export */ "clipEdges": () => (/* binding */ clipEdges),
|
|
14984
15119
|
/* harmony export */ "createBorderEdge": () => (/* binding */ createBorderEdge),
|
|
14985
|
-
/* harmony export */ "
|
|
14986
|
-
/* harmony export */ "
|
|
15120
|
+
/* harmony export */ "createEdge": () => (/* binding */ createEdge),
|
|
15121
|
+
/* harmony export */ "setEdgeEnd": () => (/* binding */ setEdgeEnd)
|
|
14987
15122
|
/* harmony export */ });
|
|
14988
15123
|
/* harmony import */ var _Diagram__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Diagram */ "../node_modules/d3-voronoi/src/Diagram.js");
|
|
14989
15124
|
|
|
@@ -15575,9 +15710,9 @@ function ascending(a, b) {
|
|
|
15575
15710
|
"use strict";
|
|
15576
15711
|
__webpack_require__.r(__webpack_exports__);
|
|
15577
15712
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15578
|
-
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
15579
|
-
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
15580
15713
|
/* harmony export */ "bisectCenter": () => (/* binding */ bisectCenter),
|
|
15714
|
+
/* harmony export */ "bisectLeft": () => (/* binding */ bisectLeft),
|
|
15715
|
+
/* harmony export */ "bisectRight": () => (/* binding */ bisectRight),
|
|
15581
15716
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
15582
15717
|
/* harmony export */ });
|
|
15583
15718
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
@@ -15963,9 +16098,9 @@ function range(start, stop, step) {
|
|
|
15963
16098
|
"use strict";
|
|
15964
16099
|
__webpack_require__.r(__webpack_exports__);
|
|
15965
16100
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15966
|
-
/* harmony export */ "
|
|
16101
|
+
/* harmony export */ "ascendingDefined": () => (/* binding */ ascendingDefined),
|
|
15967
16102
|
/* harmony export */ "compareDefined": () => (/* binding */ compareDefined),
|
|
15968
|
-
/* harmony export */ "
|
|
16103
|
+
/* harmony export */ "default": () => (/* binding */ sort)
|
|
15969
16104
|
/* harmony export */ });
|
|
15970
16105
|
/* harmony import */ var _ascending_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ascending.js */ "../../victory-vendor/node_modules/d3-array/src/ascending.js");
|
|
15971
16106
|
/* harmony import */ var _permute_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./permute.js */ "../../victory-vendor/node_modules/d3-array/src/permute.js");
|
|
@@ -16093,14 +16228,14 @@ function tickStep(start, stop, count) {
|
|
|
16093
16228
|
__webpack_require__.r(__webpack_exports__);
|
|
16094
16229
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16095
16230
|
/* harmony export */ "Color": () => (/* binding */ Color),
|
|
16096
|
-
/* harmony export */ "
|
|
16231
|
+
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
16097
16232
|
/* harmony export */ "brighter": () => (/* binding */ brighter),
|
|
16233
|
+
/* harmony export */ "darker": () => (/* binding */ darker),
|
|
16098
16234
|
/* harmony export */ "default": () => (/* binding */ color),
|
|
16099
|
-
/* harmony export */ "
|
|
16100
|
-
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
16101
|
-
/* harmony export */ "Rgb": () => (/* binding */ Rgb),
|
|
16235
|
+
/* harmony export */ "hsl": () => (/* binding */ hsl),
|
|
16102
16236
|
/* harmony export */ "hslConvert": () => (/* binding */ hslConvert),
|
|
16103
|
-
/* harmony export */ "
|
|
16237
|
+
/* harmony export */ "rgb": () => (/* binding */ rgb),
|
|
16238
|
+
/* harmony export */ "rgbConvert": () => (/* binding */ rgbConvert)
|
|
16104
16239
|
/* harmony export */ });
|
|
16105
16240
|
/* harmony import */ var _define_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./define.js */ "../../victory-vendor/node_modules/d3-color/src/define.js");
|
|
16106
16241
|
|
|
@@ -16539,8 +16674,8 @@ function extend(parent, definition) {
|
|
|
16539
16674
|
__webpack_require__.r(__webpack_exports__);
|
|
16540
16675
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16541
16676
|
/* harmony export */ "backIn": () => (/* binding */ backIn),
|
|
16542
|
-
/* harmony export */ "
|
|
16543
|
-
/* harmony export */ "
|
|
16677
|
+
/* harmony export */ "backInOut": () => (/* binding */ backInOut),
|
|
16678
|
+
/* harmony export */ "backOut": () => (/* binding */ backOut)
|
|
16544
16679
|
/* harmony export */ });
|
|
16545
16680
|
var overshoot = 1.70158;
|
|
16546
16681
|
|
|
@@ -16593,8 +16728,8 @@ var backInOut = (function custom(s) {
|
|
|
16593
16728
|
__webpack_require__.r(__webpack_exports__);
|
|
16594
16729
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16595
16730
|
/* harmony export */ "bounceIn": () => (/* binding */ bounceIn),
|
|
16596
|
-
/* harmony export */ "
|
|
16597
|
-
/* harmony export */ "
|
|
16731
|
+
/* harmony export */ "bounceInOut": () => (/* binding */ bounceInOut),
|
|
16732
|
+
/* harmony export */ "bounceOut": () => (/* binding */ bounceOut)
|
|
16598
16733
|
/* harmony export */ });
|
|
16599
16734
|
var b1 = 4 / 11,
|
|
16600
16735
|
b2 = 6 / 11,
|
|
@@ -16632,8 +16767,8 @@ function bounceInOut(t) {
|
|
|
16632
16767
|
__webpack_require__.r(__webpack_exports__);
|
|
16633
16768
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16634
16769
|
/* harmony export */ "circleIn": () => (/* binding */ circleIn),
|
|
16635
|
-
/* harmony export */ "
|
|
16636
|
-
/* harmony export */ "
|
|
16770
|
+
/* harmony export */ "circleInOut": () => (/* binding */ circleInOut),
|
|
16771
|
+
/* harmony export */ "circleOut": () => (/* binding */ circleOut)
|
|
16637
16772
|
/* harmony export */ });
|
|
16638
16773
|
function circleIn(t) {
|
|
16639
16774
|
return 1 - Math.sqrt(1 - t * t);
|
|
@@ -16660,8 +16795,8 @@ function circleInOut(t) {
|
|
|
16660
16795
|
__webpack_require__.r(__webpack_exports__);
|
|
16661
16796
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16662
16797
|
/* harmony export */ "cubicIn": () => (/* binding */ cubicIn),
|
|
16663
|
-
/* harmony export */ "
|
|
16664
|
-
/* harmony export */ "
|
|
16798
|
+
/* harmony export */ "cubicInOut": () => (/* binding */ cubicInOut),
|
|
16799
|
+
/* harmony export */ "cubicOut": () => (/* binding */ cubicOut)
|
|
16665
16800
|
/* harmony export */ });
|
|
16666
16801
|
function cubicIn(t) {
|
|
16667
16802
|
return t * t * t;
|
|
@@ -16688,8 +16823,8 @@ function cubicInOut(t) {
|
|
|
16688
16823
|
__webpack_require__.r(__webpack_exports__);
|
|
16689
16824
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16690
16825
|
/* harmony export */ "elasticIn": () => (/* binding */ elasticIn),
|
|
16691
|
-
/* harmony export */ "
|
|
16692
|
-
/* harmony export */ "
|
|
16826
|
+
/* harmony export */ "elasticInOut": () => (/* binding */ elasticInOut),
|
|
16827
|
+
/* harmony export */ "elasticOut": () => (/* binding */ elasticOut)
|
|
16693
16828
|
/* harmony export */ });
|
|
16694
16829
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16695
16830
|
|
|
@@ -16752,8 +16887,8 @@ var elasticInOut = (function custom(a, p) {
|
|
|
16752
16887
|
__webpack_require__.r(__webpack_exports__);
|
|
16753
16888
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16754
16889
|
/* harmony export */ "expIn": () => (/* binding */ expIn),
|
|
16755
|
-
/* harmony export */ "
|
|
16756
|
-
/* harmony export */ "
|
|
16890
|
+
/* harmony export */ "expInOut": () => (/* binding */ expInOut),
|
|
16891
|
+
/* harmony export */ "expOut": () => (/* binding */ expOut)
|
|
16757
16892
|
/* harmony export */ });
|
|
16758
16893
|
/* harmony import */ var _math_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./math.js */ "../../victory-vendor/node_modules/d3-ease/src/math.js");
|
|
16759
16894
|
|
|
@@ -16782,43 +16917,43 @@ function expInOut(t) {
|
|
|
16782
16917
|
"use strict";
|
|
16783
16918
|
__webpack_require__.r(__webpack_exports__);
|
|
16784
16919
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16785
|
-
/* harmony export */ "
|
|
16786
|
-
/* harmony export */ "
|
|
16787
|
-
/* harmony export */ "
|
|
16788
|
-
/* harmony export */ "
|
|
16789
|
-
/* harmony export */ "
|
|
16920
|
+
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16921
|
+
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16922
|
+
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16923
|
+
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16924
|
+
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16925
|
+
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16926
|
+
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16927
|
+
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16928
|
+
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16929
|
+
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16930
|
+
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16931
|
+
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16790
16932
|
/* harmony export */ "easeCubic": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16791
16933
|
/* harmony export */ "easeCubicIn": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicIn),
|
|
16792
|
-
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16793
16934
|
/* harmony export */ "easeCubicInOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicInOut),
|
|
16935
|
+
/* harmony export */ "easeCubicOut": () => (/* reexport safe */ _cubic_js__WEBPACK_IMPORTED_MODULE_2__.cubicOut),
|
|
16936
|
+
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16937
|
+
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16938
|
+
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut),
|
|
16939
|
+
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16940
|
+
/* harmony export */ "easeExp": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16941
|
+
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16942
|
+
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16943
|
+
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16944
|
+
/* harmony export */ "easeLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_0__.linear),
|
|
16794
16945
|
/* harmony export */ "easePoly": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
16795
16946
|
/* harmony export */ "easePolyIn": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyIn),
|
|
16796
|
-
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
16797
16947
|
/* harmony export */ "easePolyInOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyInOut),
|
|
16948
|
+
/* harmony export */ "easePolyOut": () => (/* reexport safe */ _poly_js__WEBPACK_IMPORTED_MODULE_3__.polyOut),
|
|
16949
|
+
/* harmony export */ "easeQuad": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
16950
|
+
/* harmony export */ "easeQuadIn": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadIn),
|
|
16951
|
+
/* harmony export */ "easeQuadInOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadInOut),
|
|
16952
|
+
/* harmony export */ "easeQuadOut": () => (/* reexport safe */ _quad_js__WEBPACK_IMPORTED_MODULE_1__.quadOut),
|
|
16798
16953
|
/* harmony export */ "easeSin": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16799
16954
|
/* harmony export */ "easeSinIn": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinIn),
|
|
16800
|
-
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut),
|
|
16801
16955
|
/* harmony export */ "easeSinInOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinInOut),
|
|
16802
|
-
/* harmony export */ "
|
|
16803
|
-
/* harmony export */ "easeExpIn": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expIn),
|
|
16804
|
-
/* harmony export */ "easeExpOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expOut),
|
|
16805
|
-
/* harmony export */ "easeExpInOut": () => (/* reexport safe */ _exp_js__WEBPACK_IMPORTED_MODULE_5__.expInOut),
|
|
16806
|
-
/* harmony export */ "easeCircle": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16807
|
-
/* harmony export */ "easeCircleIn": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleIn),
|
|
16808
|
-
/* harmony export */ "easeCircleOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleOut),
|
|
16809
|
-
/* harmony export */ "easeCircleInOut": () => (/* reexport safe */ _circle_js__WEBPACK_IMPORTED_MODULE_6__.circleInOut),
|
|
16810
|
-
/* harmony export */ "easeBounce": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16811
|
-
/* harmony export */ "easeBounceIn": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceIn),
|
|
16812
|
-
/* harmony export */ "easeBounceOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceOut),
|
|
16813
|
-
/* harmony export */ "easeBounceInOut": () => (/* reexport safe */ _bounce_js__WEBPACK_IMPORTED_MODULE_7__.bounceInOut),
|
|
16814
|
-
/* harmony export */ "easeBack": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16815
|
-
/* harmony export */ "easeBackIn": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backIn),
|
|
16816
|
-
/* harmony export */ "easeBackOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backOut),
|
|
16817
|
-
/* harmony export */ "easeBackInOut": () => (/* reexport safe */ _back_js__WEBPACK_IMPORTED_MODULE_8__.backInOut),
|
|
16818
|
-
/* harmony export */ "easeElastic": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16819
|
-
/* harmony export */ "easeElasticIn": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticIn),
|
|
16820
|
-
/* harmony export */ "easeElasticOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticOut),
|
|
16821
|
-
/* harmony export */ "easeElasticInOut": () => (/* reexport safe */ _elastic_js__WEBPACK_IMPORTED_MODULE_9__.elasticInOut)
|
|
16956
|
+
/* harmony export */ "easeSinOut": () => (/* reexport safe */ _sin_js__WEBPACK_IMPORTED_MODULE_4__.sinOut)
|
|
16822
16957
|
/* harmony export */ });
|
|
16823
16958
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-ease/src/linear.js");
|
|
16824
16959
|
/* harmony import */ var _quad_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./quad.js */ "../../victory-vendor/node_modules/d3-ease/src/quad.js");
|
|
@@ -16898,8 +17033,8 @@ function tpmt(x) {
|
|
|
16898
17033
|
__webpack_require__.r(__webpack_exports__);
|
|
16899
17034
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16900
17035
|
/* harmony export */ "polyIn": () => (/* binding */ polyIn),
|
|
16901
|
-
/* harmony export */ "
|
|
16902
|
-
/* harmony export */ "
|
|
17036
|
+
/* harmony export */ "polyInOut": () => (/* binding */ polyInOut),
|
|
17037
|
+
/* harmony export */ "polyOut": () => (/* binding */ polyOut)
|
|
16903
17038
|
/* harmony export */ });
|
|
16904
17039
|
var exponent = 3;
|
|
16905
17040
|
|
|
@@ -16952,8 +17087,8 @@ var polyInOut = (function custom(e) {
|
|
|
16952
17087
|
__webpack_require__.r(__webpack_exports__);
|
|
16953
17088
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16954
17089
|
/* harmony export */ "quadIn": () => (/* binding */ quadIn),
|
|
16955
|
-
/* harmony export */ "
|
|
16956
|
-
/* harmony export */ "
|
|
17090
|
+
/* harmony export */ "quadInOut": () => (/* binding */ quadInOut),
|
|
17091
|
+
/* harmony export */ "quadOut": () => (/* binding */ quadOut)
|
|
16957
17092
|
/* harmony export */ });
|
|
16958
17093
|
function quadIn(t) {
|
|
16959
17094
|
return t * t;
|
|
@@ -16980,8 +17115,8 @@ function quadInOut(t) {
|
|
|
16980
17115
|
__webpack_require__.r(__webpack_exports__);
|
|
16981
17116
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16982
17117
|
/* harmony export */ "sinIn": () => (/* binding */ sinIn),
|
|
16983
|
-
/* harmony export */ "
|
|
16984
|
-
/* harmony export */ "
|
|
17118
|
+
/* harmony export */ "sinInOut": () => (/* binding */ sinInOut),
|
|
17119
|
+
/* harmony export */ "sinOut": () => (/* binding */ sinOut)
|
|
16985
17120
|
/* harmony export */ });
|
|
16986
17121
|
var pi = Math.PI,
|
|
16987
17122
|
halfPi = pi / 2;
|
|
@@ -17010,9 +17145,9 @@ function sinInOut(t) {
|
|
|
17010
17145
|
"use strict";
|
|
17011
17146
|
__webpack_require__.r(__webpack_exports__);
|
|
17012
17147
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17148
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
17013
17149
|
/* harmony export */ "format": () => (/* binding */ format),
|
|
17014
|
-
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
17015
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
17150
|
+
/* harmony export */ "formatPrefix": () => (/* binding */ formatPrefix)
|
|
17016
17151
|
/* harmony export */ });
|
|
17017
17152
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-format/src/locale.js");
|
|
17018
17153
|
|
|
@@ -17158,8 +17293,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17158
17293
|
"use strict";
|
|
17159
17294
|
__webpack_require__.r(__webpack_exports__);
|
|
17160
17295
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17161
|
-
/* harmony export */ "
|
|
17162
|
-
/* harmony export */ "
|
|
17296
|
+
/* harmony export */ "default": () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__),
|
|
17297
|
+
/* harmony export */ "prefixExponent": () => (/* binding */ prefixExponent)
|
|
17163
17298
|
/* harmony export */ });
|
|
17164
17299
|
/* harmony import */ var _formatDecimal_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./formatDecimal.js */ "../../victory-vendor/node_modules/d3-format/src/formatDecimal.js");
|
|
17165
17300
|
|
|
@@ -17218,8 +17353,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17218
17353
|
"use strict";
|
|
17219
17354
|
__webpack_require__.r(__webpack_exports__);
|
|
17220
17355
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17221
|
-
/* harmony export */ "
|
|
17222
|
-
/* harmony export */ "
|
|
17356
|
+
/* harmony export */ "FormatSpecifier": () => (/* binding */ FormatSpecifier),
|
|
17357
|
+
/* harmony export */ "default": () => (/* binding */ formatSpecifier)
|
|
17223
17358
|
/* harmony export */ });
|
|
17224
17359
|
// [[fill]align][sign][symbol][0][width][,][.precision][~][type]
|
|
17225
17360
|
var re = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
@@ -17701,9 +17836,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17701
17836
|
"use strict";
|
|
17702
17837
|
__webpack_require__.r(__webpack_exports__);
|
|
17703
17838
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17704
|
-
/* harmony export */ "
|
|
17839
|
+
/* harmony export */ "default": () => (/* binding */ nogamma),
|
|
17705
17840
|
/* harmony export */ "gamma": () => (/* binding */ gamma),
|
|
17706
|
-
/* harmony export */ "
|
|
17841
|
+
/* harmony export */ "hue": () => (/* binding */ hue)
|
|
17707
17842
|
/* harmony export */ });
|
|
17708
17843
|
/* harmony import */ var _constant_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./constant.js */ "../../victory-vendor/node_modules/d3-interpolate/src/constant.js");
|
|
17709
17844
|
|
|
@@ -18263,10 +18398,10 @@ function constants(x) {
|
|
|
18263
18398
|
"use strict";
|
|
18264
18399
|
__webpack_require__.r(__webpack_exports__);
|
|
18265
18400
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18266
|
-
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
18267
18401
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
18268
|
-
/* harmony export */ "
|
|
18269
|
-
/* harmony export */ "
|
|
18402
|
+
/* harmony export */ "default": () => (/* binding */ continuous),
|
|
18403
|
+
/* harmony export */ "identity": () => (/* binding */ identity),
|
|
18404
|
+
/* harmony export */ "transformer": () => (/* binding */ transformer)
|
|
18270
18405
|
/* harmony export */ });
|
|
18271
18406
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisect.js");
|
|
18272
18407
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -18414,9 +18549,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18414
18549
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18415
18550
|
/* harmony export */ "default": () => (/* binding */ diverging),
|
|
18416
18551
|
/* harmony export */ "divergingLog": () => (/* binding */ divergingLog),
|
|
18417
|
-
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog),
|
|
18418
18552
|
/* harmony export */ "divergingPow": () => (/* binding */ divergingPow),
|
|
18419
|
-
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt)
|
|
18553
|
+
/* harmony export */ "divergingSqrt": () => (/* binding */ divergingSqrt),
|
|
18554
|
+
/* harmony export */ "divergingSymlog": () => (/* binding */ divergingSymlog)
|
|
18420
18555
|
/* harmony export */ });
|
|
18421
18556
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/piecewise.js");
|
|
18422
18557
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
@@ -18591,32 +18726,32 @@ function identity(domain) {
|
|
|
18591
18726
|
__webpack_require__.r(__webpack_exports__);
|
|
18592
18727
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18593
18728
|
/* harmony export */ "scaleBand": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__["default"]),
|
|
18594
|
-
/* harmony export */ "
|
|
18729
|
+
/* harmony export */ "scaleDiverging": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__["default"]),
|
|
18730
|
+
/* harmony export */ "scaleDivergingLog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingLog),
|
|
18731
|
+
/* harmony export */ "scaleDivergingPow": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingPow),
|
|
18732
|
+
/* harmony export */ "scaleDivergingSqrt": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSqrt),
|
|
18733
|
+
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18595
18734
|
/* harmony export */ "scaleIdentity": () => (/* reexport safe */ _identity_js__WEBPACK_IMPORTED_MODULE_1__["default"]),
|
|
18735
|
+
/* harmony export */ "scaleImplicit": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__.implicit),
|
|
18596
18736
|
/* harmony export */ "scaleLinear": () => (/* reexport safe */ _linear_js__WEBPACK_IMPORTED_MODULE_2__["default"]),
|
|
18597
18737
|
/* harmony export */ "scaleLog": () => (/* reexport safe */ _log_js__WEBPACK_IMPORTED_MODULE_3__["default"]),
|
|
18598
|
-
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18599
18738
|
/* harmony export */ "scaleOrdinal": () => (/* reexport safe */ _ordinal_js__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
18600
|
-
/* harmony export */ "
|
|
18739
|
+
/* harmony export */ "scalePoint": () => (/* reexport safe */ _band_js__WEBPACK_IMPORTED_MODULE_0__.point),
|
|
18601
18740
|
/* harmony export */ "scalePow": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
18602
|
-
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18603
|
-
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18604
18741
|
/* harmony export */ "scaleQuantile": () => (/* reexport safe */ _quantile_js__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
18605
18742
|
/* harmony export */ "scaleQuantize": () => (/* reexport safe */ _quantize_js__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
18606
|
-
/* harmony export */ "
|
|
18607
|
-
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18608
|
-
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18743
|
+
/* harmony export */ "scaleRadial": () => (/* reexport safe */ _radial_js__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
18609
18744
|
/* harmony export */ "scaleSequential": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
18610
18745
|
/* harmony export */ "scaleSequentialLog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialLog),
|
|
18611
18746
|
/* harmony export */ "scaleSequentialPow": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialPow),
|
|
18747
|
+
/* harmony export */ "scaleSequentialQuantile": () => (/* reexport safe */ _sequentialQuantile_js__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
18612
18748
|
/* harmony export */ "scaleSequentialSqrt": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSqrt),
|
|
18613
18749
|
/* harmony export */ "scaleSequentialSymlog": () => (/* reexport safe */ _sequential_js__WEBPACK_IMPORTED_MODULE_13__.sequentialSymlog),
|
|
18614
|
-
/* harmony export */ "
|
|
18615
|
-
/* harmony export */ "
|
|
18616
|
-
/* harmony export */ "
|
|
18617
|
-
/* harmony export */ "
|
|
18618
|
-
/* harmony export */ "
|
|
18619
|
-
/* harmony export */ "scaleDivergingSymlog": () => (/* reexport safe */ _diverging_js__WEBPACK_IMPORTED_MODULE_15__.divergingSymlog),
|
|
18750
|
+
/* harmony export */ "scaleSqrt": () => (/* reexport safe */ _pow_js__WEBPACK_IMPORTED_MODULE_6__.sqrt),
|
|
18751
|
+
/* harmony export */ "scaleSymlog": () => (/* reexport safe */ _symlog_js__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
18752
|
+
/* harmony export */ "scaleThreshold": () => (/* reexport safe */ _threshold_js__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
18753
|
+
/* harmony export */ "scaleTime": () => (/* reexport safe */ _time_js__WEBPACK_IMPORTED_MODULE_11__["default"]),
|
|
18754
|
+
/* harmony export */ "scaleUtc": () => (/* reexport safe */ _utcTime_js__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
18620
18755
|
/* harmony export */ "tickFormat": () => (/* reexport safe */ _tickFormat_js__WEBPACK_IMPORTED_MODULE_16__["default"])
|
|
18621
18756
|
/* harmony export */ });
|
|
18622
18757
|
/* harmony import */ var _band_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./band.js */ "../../victory-vendor/node_modules/d3-scale/src/band.js");
|
|
@@ -18682,8 +18817,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18682
18817
|
"use strict";
|
|
18683
18818
|
__webpack_require__.r(__webpack_exports__);
|
|
18684
18819
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18685
|
-
/* harmony export */ "
|
|
18686
|
-
/* harmony export */ "
|
|
18820
|
+
/* harmony export */ "initInterpolator": () => (/* binding */ initInterpolator),
|
|
18821
|
+
/* harmony export */ "initRange": () => (/* binding */ initRange)
|
|
18687
18822
|
/* harmony export */ });
|
|
18688
18823
|
function initRange(domain, range) {
|
|
18689
18824
|
switch (arguments.length) {
|
|
@@ -18724,8 +18859,8 @@ function initInterpolator(domain, interpolator) {
|
|
|
18724
18859
|
"use strict";
|
|
18725
18860
|
__webpack_require__.r(__webpack_exports__);
|
|
18726
18861
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18727
|
-
/* harmony export */ "
|
|
18728
|
-
/* harmony export */ "
|
|
18862
|
+
/* harmony export */ "default": () => (/* binding */ linear),
|
|
18863
|
+
/* harmony export */ "linearish": () => (/* binding */ linearish)
|
|
18729
18864
|
/* harmony export */ });
|
|
18730
18865
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
18731
18866
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -18814,8 +18949,8 @@ function linear() {
|
|
|
18814
18949
|
"use strict";
|
|
18815
18950
|
__webpack_require__.r(__webpack_exports__);
|
|
18816
18951
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18817
|
-
/* harmony export */ "
|
|
18818
|
-
/* harmony export */ "
|
|
18952
|
+
/* harmony export */ "default": () => (/* binding */ log),
|
|
18953
|
+
/* harmony export */ "loggish": () => (/* binding */ loggish)
|
|
18819
18954
|
/* harmony export */ });
|
|
18820
18955
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
18821
18956
|
/* harmony import */ var d3_format__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-format */ "../../victory-vendor/node_modules/d3-format/src/formatSpecifier.js");
|
|
@@ -19027,8 +19162,8 @@ function number(x) {
|
|
|
19027
19162
|
"use strict";
|
|
19028
19163
|
__webpack_require__.r(__webpack_exports__);
|
|
19029
19164
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19030
|
-
/* harmony export */ "
|
|
19031
|
-
/* harmony export */ "
|
|
19165
|
+
/* harmony export */ "default": () => (/* binding */ ordinal),
|
|
19166
|
+
/* harmony export */ "implicit": () => (/* binding */ implicit)
|
|
19032
19167
|
/* harmony export */ });
|
|
19033
19168
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/internmap/src/index.js");
|
|
19034
19169
|
/* harmony import */ var _init_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./init.js */ "../../victory-vendor/node_modules/d3-scale/src/init.js");
|
|
@@ -19091,8 +19226,8 @@ function ordinal() {
|
|
|
19091
19226
|
"use strict";
|
|
19092
19227
|
__webpack_require__.r(__webpack_exports__);
|
|
19093
19228
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19094
|
-
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
19095
19229
|
/* harmony export */ "default": () => (/* binding */ pow),
|
|
19230
|
+
/* harmony export */ "powish": () => (/* binding */ powish),
|
|
19096
19231
|
/* harmony export */ "sqrt": () => (/* binding */ sqrt)
|
|
19097
19232
|
/* harmony export */ });
|
|
19098
19233
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
@@ -19396,9 +19531,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19396
19531
|
/* harmony export */ "copy": () => (/* binding */ copy),
|
|
19397
19532
|
/* harmony export */ "default": () => (/* binding */ sequential),
|
|
19398
19533
|
/* harmony export */ "sequentialLog": () => (/* binding */ sequentialLog),
|
|
19399
|
-
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog),
|
|
19400
19534
|
/* harmony export */ "sequentialPow": () => (/* binding */ sequentialPow),
|
|
19401
|
-
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt)
|
|
19535
|
+
/* harmony export */ "sequentialSqrt": () => (/* binding */ sequentialSqrt),
|
|
19536
|
+
/* harmony export */ "sequentialSymlog": () => (/* binding */ sequentialSymlog)
|
|
19402
19537
|
/* harmony export */ });
|
|
19403
19538
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/value.js");
|
|
19404
19539
|
/* harmony import */ var d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-interpolate */ "../../victory-vendor/node_modules/d3-interpolate/src/round.js");
|
|
@@ -19586,8 +19721,8 @@ function sequentialQuantile() {
|
|
|
19586
19721
|
"use strict";
|
|
19587
19722
|
__webpack_require__.r(__webpack_exports__);
|
|
19588
19723
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19589
|
-
/* harmony export */ "
|
|
19590
|
-
/* harmony export */ "
|
|
19724
|
+
/* harmony export */ "default": () => (/* binding */ symlog),
|
|
19725
|
+
/* harmony export */ "symlogish": () => (/* binding */ symlogish)
|
|
19591
19726
|
/* harmony export */ });
|
|
19592
19727
|
/* harmony import */ var _linear_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./linear.js */ "../../victory-vendor/node_modules/d3-scale/src/linear.js");
|
|
19593
19728
|
/* harmony import */ var _continuous_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./continuous.js */ "../../victory-vendor/node_modules/d3-scale/src/continuous.js");
|
|
@@ -19879,11 +20014,11 @@ function utcTime() {
|
|
|
19879
20014
|
"use strict";
|
|
19880
20015
|
__webpack_require__.r(__webpack_exports__);
|
|
19881
20016
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20017
|
+
/* harmony export */ "default": () => (/* binding */ defaultLocale),
|
|
19882
20018
|
/* harmony export */ "timeFormat": () => (/* binding */ timeFormat),
|
|
19883
20019
|
/* harmony export */ "timeParse": () => (/* binding */ timeParse),
|
|
19884
20020
|
/* harmony export */ "utcFormat": () => (/* binding */ utcFormat),
|
|
19885
|
-
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
19886
|
-
/* harmony export */ "default": () => (/* binding */ defaultLocale)
|
|
20021
|
+
/* harmony export */ "utcParse": () => (/* binding */ utcParse)
|
|
19887
20022
|
/* harmony export */ });
|
|
19888
20023
|
/* harmony import */ var _locale_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./locale.js */ "../../victory-vendor/node_modules/d3-time-format/src/locale.js");
|
|
19889
20024
|
|
|
@@ -20633,8 +20768,8 @@ function formatUnixTimestampSeconds(d) {
|
|
|
20633
20768
|
"use strict";
|
|
20634
20769
|
__webpack_require__.r(__webpack_exports__);
|
|
20635
20770
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20636
|
-
/* harmony export */ "
|
|
20637
|
-
/* harmony export */ "
|
|
20771
|
+
/* harmony export */ "days": () => (/* binding */ days),
|
|
20772
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
20638
20773
|
/* harmony export */ });
|
|
20639
20774
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
20640
20775
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -20663,12 +20798,12 @@ var days = day.range;
|
|
|
20663
20798
|
"use strict";
|
|
20664
20799
|
__webpack_require__.r(__webpack_exports__);
|
|
20665
20800
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20666
|
-
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
20667
|
-
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
20668
|
-
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
20669
20801
|
/* harmony export */ "durationDay": () => (/* binding */ durationDay),
|
|
20670
|
-
/* harmony export */ "
|
|
20802
|
+
/* harmony export */ "durationHour": () => (/* binding */ durationHour),
|
|
20803
|
+
/* harmony export */ "durationMinute": () => (/* binding */ durationMinute),
|
|
20671
20804
|
/* harmony export */ "durationMonth": () => (/* binding */ durationMonth),
|
|
20805
|
+
/* harmony export */ "durationSecond": () => (/* binding */ durationSecond),
|
|
20806
|
+
/* harmony export */ "durationWeek": () => (/* binding */ durationWeek),
|
|
20672
20807
|
/* harmony export */ "durationYear": () => (/* binding */ durationYear)
|
|
20673
20808
|
/* harmony export */ });
|
|
20674
20809
|
const durationSecond = 1000;
|
|
@@ -20950,10 +21085,10 @@ var seconds = second.range;
|
|
|
20950
21085
|
"use strict";
|
|
20951
21086
|
__webpack_require__.r(__webpack_exports__);
|
|
20952
21087
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20953
|
-
/* harmony export */ "
|
|
20954
|
-
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
21088
|
+
/* harmony export */ "timeTickInterval": () => (/* binding */ timeTickInterval),
|
|
20955
21089
|
/* harmony export */ "timeTicks": () => (/* binding */ timeTicks),
|
|
20956
|
-
/* harmony export */ "
|
|
21090
|
+
/* harmony export */ "utcTickInterval": () => (/* binding */ utcTickInterval),
|
|
21091
|
+
/* harmony export */ "utcTicks": () => (/* binding */ utcTicks)
|
|
20957
21092
|
/* harmony export */ });
|
|
20958
21093
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/bisector.js");
|
|
20959
21094
|
/* harmony import */ var d3_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-array */ "../../victory-vendor/node_modules/d3-array/src/ticks.js");
|
|
@@ -21180,20 +21315,20 @@ var utcMonths = utcMonth.range;
|
|
|
21180
21315
|
"use strict";
|
|
21181
21316
|
__webpack_require__.r(__webpack_exports__);
|
|
21182
21317
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21183
|
-
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
21184
|
-
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
21185
|
-
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
21186
|
-
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
21187
|
-
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
21188
21318
|
/* harmony export */ "utcFriday": () => (/* binding */ utcFriday),
|
|
21319
|
+
/* harmony export */ "utcFridays": () => (/* binding */ utcFridays),
|
|
21320
|
+
/* harmony export */ "utcMonday": () => (/* binding */ utcMonday),
|
|
21321
|
+
/* harmony export */ "utcMondays": () => (/* binding */ utcMondays),
|
|
21189
21322
|
/* harmony export */ "utcSaturday": () => (/* binding */ utcSaturday),
|
|
21323
|
+
/* harmony export */ "utcSaturdays": () => (/* binding */ utcSaturdays),
|
|
21324
|
+
/* harmony export */ "utcSunday": () => (/* binding */ utcSunday),
|
|
21190
21325
|
/* harmony export */ "utcSundays": () => (/* binding */ utcSundays),
|
|
21191
|
-
/* harmony export */ "
|
|
21192
|
-
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
21193
|
-
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays),
|
|
21326
|
+
/* harmony export */ "utcThursday": () => (/* binding */ utcThursday),
|
|
21194
21327
|
/* harmony export */ "utcThursdays": () => (/* binding */ utcThursdays),
|
|
21195
|
-
/* harmony export */ "
|
|
21196
|
-
/* harmony export */ "
|
|
21328
|
+
/* harmony export */ "utcTuesday": () => (/* binding */ utcTuesday),
|
|
21329
|
+
/* harmony export */ "utcTuesdays": () => (/* binding */ utcTuesdays),
|
|
21330
|
+
/* harmony export */ "utcWednesday": () => (/* binding */ utcWednesday),
|
|
21331
|
+
/* harmony export */ "utcWednesdays": () => (/* binding */ utcWednesdays)
|
|
21197
21332
|
/* harmony export */ });
|
|
21198
21333
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
21199
21334
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21282,20 +21417,20 @@ var utcYears = utcYear.range;
|
|
|
21282
21417
|
"use strict";
|
|
21283
21418
|
__webpack_require__.r(__webpack_exports__);
|
|
21284
21419
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21285
|
-
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
21286
|
-
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
21287
|
-
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
21288
|
-
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
21289
|
-
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
21290
21420
|
/* harmony export */ "friday": () => (/* binding */ friday),
|
|
21421
|
+
/* harmony export */ "fridays": () => (/* binding */ fridays),
|
|
21422
|
+
/* harmony export */ "monday": () => (/* binding */ monday),
|
|
21423
|
+
/* harmony export */ "mondays": () => (/* binding */ mondays),
|
|
21291
21424
|
/* harmony export */ "saturday": () => (/* binding */ saturday),
|
|
21425
|
+
/* harmony export */ "saturdays": () => (/* binding */ saturdays),
|
|
21426
|
+
/* harmony export */ "sunday": () => (/* binding */ sunday),
|
|
21292
21427
|
/* harmony export */ "sundays": () => (/* binding */ sundays),
|
|
21293
|
-
/* harmony export */ "
|
|
21294
|
-
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
21295
|
-
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays),
|
|
21428
|
+
/* harmony export */ "thursday": () => (/* binding */ thursday),
|
|
21296
21429
|
/* harmony export */ "thursdays": () => (/* binding */ thursdays),
|
|
21297
|
-
/* harmony export */ "
|
|
21298
|
-
/* harmony export */ "
|
|
21430
|
+
/* harmony export */ "tuesday": () => (/* binding */ tuesday),
|
|
21431
|
+
/* harmony export */ "tuesdays": () => (/* binding */ tuesdays),
|
|
21432
|
+
/* harmony export */ "wednesday": () => (/* binding */ wednesday),
|
|
21433
|
+
/* harmony export */ "wednesdays": () => (/* binding */ wednesdays)
|
|
21299
21434
|
/* harmony export */ });
|
|
21300
21435
|
/* harmony import */ var _interval_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./interval.js */ "../../victory-vendor/node_modules/d3-time/src/interval.js");
|
|
21301
21436
|
/* harmony import */ var _duration_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./duration.js */ "../../victory-vendor/node_modules/d3-time/src/duration.js");
|
|
@@ -21384,8 +21519,8 @@ var years = year.range;
|
|
|
21384
21519
|
"use strict";
|
|
21385
21520
|
__webpack_require__.r(__webpack_exports__);
|
|
21386
21521
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21387
|
-
/* harmony export */ "now": () => (/* binding */ now),
|
|
21388
21522
|
/* harmony export */ "Timer": () => (/* binding */ Timer),
|
|
21523
|
+
/* harmony export */ "now": () => (/* binding */ now),
|
|
21389
21524
|
/* harmony export */ "timer": () => (/* binding */ timer),
|
|
21390
21525
|
/* harmony export */ "timerFlush": () => (/* binding */ timerFlush)
|
|
21391
21526
|
/* harmony export */ });
|