victory 36.0.1 → 36.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/victory.js CHANGED
@@ -12164,6 +12164,37 @@ function baseAssignValue(object, key, value) {
12164
12164
  module.exports = baseAssignValue;
12165
12165
 
12166
12166
 
12167
+ /***/ }),
12168
+
12169
+ /***/ "../../../node_modules/lodash/_baseClone.js":
12170
+ /*!**************************************************!*\
12171
+ !*** ../../../node_modules/lodash/_baseClone.js ***!
12172
+ \**************************************************/
12173
+ /***/ ((module) => {
12174
+
12175
+ /**
12176
+ * This method returns the first argument it receives.
12177
+ *
12178
+ * @static
12179
+ * @since 0.1.0
12180
+ * @memberOf _
12181
+ * @category Util
12182
+ * @param {*} value Any value.
12183
+ * @returns {*} Returns `value`.
12184
+ * @example
12185
+ *
12186
+ * var object = { 'a': 1 };
12187
+ *
12188
+ * console.log(_.identity(object) === object);
12189
+ * // => true
12190
+ */
12191
+ function identity(value) {
12192
+ return value;
12193
+ }
12194
+
12195
+ module.exports = identity;
12196
+
12197
+
12167
12198
  /***/ }),
12168
12199
 
12169
12200
  /***/ "../../../node_modules/lodash/_baseDelay.js":
@@ -13285,6 +13316,47 @@ function baseSet(object, path, value, customizer) {
13285
13316
  module.exports = baseSet;
13286
13317
 
13287
13318
 
13319
+ /***/ }),
13320
+
13321
+ /***/ "../../../node_modules/lodash/_baseSlice.js":
13322
+ /*!**************************************************!*\
13323
+ !*** ../../../node_modules/lodash/_baseSlice.js ***!
13324
+ \**************************************************/
13325
+ /***/ ((module) => {
13326
+
13327
+ /**
13328
+ * The base implementation of `_.slice` without an iteratee call guard.
13329
+ *
13330
+ * @private
13331
+ * @param {Array} array The array to slice.
13332
+ * @param {number} [start=0] The start position.
13333
+ * @param {number} [end=array.length] The end position.
13334
+ * @returns {Array} Returns the slice of `array`.
13335
+ */
13336
+ function baseSlice(array, start, end) {
13337
+ var index = -1,
13338
+ length = array.length;
13339
+
13340
+ if (start < 0) {
13341
+ start = -start > length ? 0 : (length + start);
13342
+ }
13343
+ end = end > length ? length : end;
13344
+ if (end < 0) {
13345
+ end += length;
13346
+ }
13347
+ length = start > end ? 0 : ((end - start) >>> 0);
13348
+ start >>>= 0;
13349
+
13350
+ var result = Array(length);
13351
+ while (++index < length) {
13352
+ result[index] = array[index + start];
13353
+ }
13354
+ return result;
13355
+ }
13356
+
13357
+ module.exports = baseSlice;
13358
+
13359
+
13288
13360
  /***/ }),
13289
13361
 
13290
13362
  /***/ "../../../node_modules/lodash/_baseSortBy.js":
@@ -13600,6 +13672,36 @@ function baseUniq(array, iteratee, comparator) {
13600
13672
  module.exports = baseUniq;
13601
13673
 
13602
13674
 
13675
+ /***/ }),
13676
+
13677
+ /***/ "../../../node_modules/lodash/_baseUnset.js":
13678
+ /*!**************************************************!*\
13679
+ !*** ../../../node_modules/lodash/_baseUnset.js ***!
13680
+ \**************************************************/
13681
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
13682
+
13683
+ var castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/lodash/_castPath.js"),
13684
+ last = __webpack_require__(/*! ./last */ "../../../node_modules/lodash/last.js"),
13685
+ parent = __webpack_require__(/*! ./_parent */ "../../../node_modules/lodash/_parent.js"),
13686
+ toKey = __webpack_require__(/*! ./_toKey */ "../../../node_modules/lodash/_toKey.js");
13687
+
13688
+ /**
13689
+ * The base implementation of `_.unset`.
13690
+ *
13691
+ * @private
13692
+ * @param {Object} object The object to modify.
13693
+ * @param {Array|string} path The property path to unset.
13694
+ * @returns {boolean} Returns `true` if the property is deleted, else `false`.
13695
+ */
13696
+ function baseUnset(object, path) {
13697
+ path = castPath(path, object);
13698
+ object = parent(object, path);
13699
+ return object == null || delete object[toKey(last(path))];
13700
+ }
13701
+
13702
+ module.exports = baseUnset;
13703
+
13704
+
13603
13705
  /***/ }),
13604
13706
 
13605
13707
  /***/ "../../../node_modules/lodash/_baseValues.js":
@@ -14245,6 +14347,32 @@ function createToPairs(keysFunc) {
14245
14347
  module.exports = createToPairs;
14246
14348
 
14247
14349
 
14350
+ /***/ }),
14351
+
14352
+ /***/ "../../../node_modules/lodash/_customOmitClone.js":
14353
+ /*!********************************************************!*\
14354
+ !*** ../../../node_modules/lodash/_customOmitClone.js ***!
14355
+ \********************************************************/
14356
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
14357
+
14358
+ var isPlainObject = __webpack_require__(/*! ./isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
14359
+
14360
+ /**
14361
+ * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain
14362
+ * objects.
14363
+ *
14364
+ * @private
14365
+ * @param {*} value The value to inspect.
14366
+ * @param {string} key The key of the property to inspect.
14367
+ * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
14368
+ */
14369
+ function customOmitClone(value) {
14370
+ return isPlainObject(value) ? undefined : value;
14371
+ }
14372
+
14373
+ module.exports = customOmitClone;
14374
+
14375
+
14248
14376
  /***/ }),
14249
14377
 
14250
14378
  /***/ "../../../node_modules/lodash/_defineProperty.js":
@@ -15380,6 +15508,32 @@ function overRest(func, start, transform) {
15380
15508
  module.exports = overRest;
15381
15509
 
15382
15510
 
15511
+ /***/ }),
15512
+
15513
+ /***/ "../../../node_modules/lodash/_parent.js":
15514
+ /*!***********************************************!*\
15515
+ !*** ../../../node_modules/lodash/_parent.js ***!
15516
+ \***********************************************/
15517
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
15518
+
15519
+ var baseGet = __webpack_require__(/*! ./_baseGet */ "../../../node_modules/lodash/_baseGet.js"),
15520
+ baseSlice = __webpack_require__(/*! ./_baseSlice */ "../../../node_modules/lodash/_baseSlice.js");
15521
+
15522
+ /**
15523
+ * Gets the parent value at `path` of `object`.
15524
+ *
15525
+ * @private
15526
+ * @param {Object} object The object to query.
15527
+ * @param {Array} path The path to get the parent value of.
15528
+ * @returns {*} Returns the parent value.
15529
+ */
15530
+ function parent(object, path) {
15531
+ return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));
15532
+ }
15533
+
15534
+ module.exports = parent;
15535
+
15536
+
15383
15537
  /***/ }),
15384
15538
 
15385
15539
  /***/ "../../../node_modules/lodash/_root.js":
@@ -17717,6 +17871,73 @@ var now = function() {
17717
17871
  module.exports = now;
17718
17872
 
17719
17873
 
17874
+ /***/ }),
17875
+
17876
+ /***/ "../../../node_modules/lodash/omit.js":
17877
+ /*!********************************************!*\
17878
+ !*** ../../../node_modules/lodash/omit.js ***!
17879
+ \********************************************/
17880
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
17881
+
17882
+ var arrayMap = __webpack_require__(/*! ./_arrayMap */ "../../../node_modules/lodash/_arrayMap.js"),
17883
+ baseClone = __webpack_require__(/*! ./_baseClone */ "../../../node_modules/lodash/_baseClone.js"),
17884
+ baseUnset = __webpack_require__(/*! ./_baseUnset */ "../../../node_modules/lodash/_baseUnset.js"),
17885
+ castPath = __webpack_require__(/*! ./_castPath */ "../../../node_modules/lodash/_castPath.js"),
17886
+ copyObject = __webpack_require__(/*! ./_copyObject */ "../../../node_modules/lodash/_copyObject.js"),
17887
+ customOmitClone = __webpack_require__(/*! ./_customOmitClone */ "../../../node_modules/lodash/_customOmitClone.js"),
17888
+ flatRest = __webpack_require__(/*! ./_flatRest */ "../../../node_modules/lodash/_flatRest.js"),
17889
+ getAllKeysIn = __webpack_require__(/*! ./_getAllKeysIn */ "../../../node_modules/lodash/_getAllKeysIn.js");
17890
+
17891
+ /** Used to compose bitmasks for cloning. */
17892
+ var CLONE_DEEP_FLAG = 1,
17893
+ CLONE_FLAT_FLAG = 2,
17894
+ CLONE_SYMBOLS_FLAG = 4;
17895
+
17896
+ /**
17897
+ * The opposite of `_.pick`; this method creates an object composed of the
17898
+ * own and inherited enumerable property paths of `object` that are not omitted.
17899
+ *
17900
+ * **Note:** This method is considerably slower than `_.pick`.
17901
+ *
17902
+ * @static
17903
+ * @since 0.1.0
17904
+ * @memberOf _
17905
+ * @category Object
17906
+ * @param {Object} object The source object.
17907
+ * @param {...(string|string[])} [paths] The property paths to omit.
17908
+ * @returns {Object} Returns the new object.
17909
+ * @example
17910
+ *
17911
+ * var object = { 'a': 1, 'b': '2', 'c': 3 };
17912
+ *
17913
+ * _.omit(object, ['a', 'c']);
17914
+ * // => { 'b': '2' }
17915
+ */
17916
+ var omit = flatRest(function(object, paths) {
17917
+ var result = {};
17918
+ if (object == null) {
17919
+ return result;
17920
+ }
17921
+ var isDeep = false;
17922
+ paths = arrayMap(paths, function(path) {
17923
+ path = castPath(path, object);
17924
+ isDeep || (isDeep = path.length > 1);
17925
+ return path;
17926
+ });
17927
+ copyObject(object, getAllKeysIn(object), result);
17928
+ if (isDeep) {
17929
+ result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);
17930
+ }
17931
+ var length = paths.length;
17932
+ while (length--) {
17933
+ baseUnset(result, paths[length]);
17934
+ }
17935
+ return result;
17936
+ });
17937
+
17938
+ module.exports = omit;
17939
+
17940
+
17720
17941
  /***/ }),
17721
17942
 
17722
17943
  /***/ "../../../node_modules/lodash/omitBy.js":
@@ -20227,9 +20448,7 @@ var options = {
20227
20448
  }]
20228
20449
  };
20229
20450
 
20230
- var VictoryArea =
20231
- /*#__PURE__*/
20232
- function (_React$Component) {
20451
+ var VictoryArea = /*#__PURE__*/function (_React$Component) {
20233
20452
  _inherits(VictoryArea, _React$Component);
20234
20453
 
20235
20454
  function VictoryArea() {
@@ -21073,9 +21292,7 @@ var options = {
21073
21292
  }]
21074
21293
  };
21075
21294
 
21076
- var VictoryAxis =
21077
- /*#__PURE__*/
21078
- function (_React$Component) {
21295
+ var VictoryAxis = /*#__PURE__*/function (_React$Component) {
21079
21296
  _inherits(VictoryAxis, _React$Component);
21080
21297
 
21081
21298
  function VictoryAxis() {
@@ -21364,56 +21581,29 @@ Object.defineProperty(VictoryAxis, "expectedComponents", {
21364
21581
 
21365
21582
  /***/ }),
21366
21583
 
21367
- /***/ "../../victory-bar/es/bar.js":
21368
- /*!***********************************!*\
21369
- !*** ../../victory-bar/es/bar.js ***!
21370
- \***********************************/
21584
+ /***/ "../../victory-bar/es/bar-helper-methods.js":
21585
+ /*!**************************************************!*\
21586
+ !*** ../../victory-bar/es/bar-helper-methods.js ***!
21587
+ \**************************************************/
21371
21588
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21372
21589
 
21373
21590
  "use strict";
21374
21591
  __webpack_require__.r(__webpack_exports__);
21375
21592
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21376
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21593
+ /* harmony export */ "getBarWidth": () => (/* binding */ getBarWidth),
21594
+ /* harmony export */ "getCornerRadius": () => (/* binding */ getCornerRadius),
21595
+ /* harmony export */ "getStyle": () => (/* binding */ getStyle)
21377
21596
  /* harmony export */ });
21378
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
21379
- /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_0__);
21380
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
21381
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
21597
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
21598
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
21599
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isNil */ "../../../node_modules/lodash/isNil.js");
21600
+ /* harmony import */ var lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isNil__WEBPACK_IMPORTED_MODULE_1__);
21382
21601
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
21383
21602
  /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_2__);
21384
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
21385
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
21386
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
21387
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
21388
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
21389
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
21390
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
21391
- /* harmony import */ var _path_helper_methods__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./path-helper-methods */ "../../victory-bar/es/path-helper-methods.js");
21392
-
21393
-
21394
-
21395
-
21396
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
21397
-
21398
- 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; }
21399
-
21400
-
21401
-
21402
-
21403
-
21603
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
21404
21604
 
21405
- var getBarPath = function (props, width, cornerRadius) {
21406
- if (props.getPath) {
21407
- return (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_5__.getCustomBarPath)(props, width);
21408
- }
21409
21605
 
21410
- return props.horizontal ? (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_5__.getHorizontalBarPath)(props, width, cornerRadius) : (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_5__.getVerticalBarPath)(props, width, cornerRadius);
21411
- };
21412
21606
 
21413
- var getPolarBarPath = function (props, cornerRadius) {
21414
- // TODO Radial bars
21415
- return (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_5__.getVerticalPolarBarPath)(props, cornerRadius);
21416
- };
21417
21607
 
21418
21608
  var getBarWidth = function (barWidth, props) {
21419
21609
  var scale = props.scale,
@@ -21422,7 +21612,7 @@ var getBarWidth = function (barWidth, props) {
21422
21612
  style = props.style;
21423
21613
 
21424
21614
  if (barWidth) {
21425
- return victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(barWidth, props);
21615
+ return victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(barWidth, props);
21426
21616
  } else if (style.width) {
21427
21617
  return style.width;
21428
21618
  }
@@ -21444,10 +21634,10 @@ var getCornerRadiusFromObject = function (cornerRadius, props) {
21444
21634
  };
21445
21635
 
21446
21636
  var updateCornerRadius = function (corner, fallback) {
21447
- if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(cornerRadius[corner])) {
21448
- realCornerRadius[corner] = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(cornerRadius[corner], props);
21449
- } else if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_0___default()(cornerRadius[fallback])) {
21450
- realCornerRadius[corner] = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(cornerRadius[fallback], props);
21637
+ if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(cornerRadius[corner])) {
21638
+ realCornerRadius[corner] = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(cornerRadius[corner], props);
21639
+ } else if (!lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(cornerRadius[fallback])) {
21640
+ realCornerRadius[corner] = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(cornerRadius[fallback], props);
21451
21641
  }
21452
21642
  };
21453
21643
 
@@ -21470,15 +21660,14 @@ var getCornerRadius = function (cornerRadius, props) {
21470
21660
  return realCornerRadius;
21471
21661
  }
21472
21662
 
21473
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(cornerRadius)) {
21663
+ if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(cornerRadius)) {
21474
21664
  return getCornerRadiusFromObject(cornerRadius, props);
21475
21665
  } else {
21476
- realCornerRadius.topLeft = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(cornerRadius, props);
21477
- realCornerRadius.topRight = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(cornerRadius, props);
21666
+ realCornerRadius.topLeft = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(cornerRadius, props);
21667
+ realCornerRadius.topRight = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(cornerRadius, props);
21478
21668
  return realCornerRadius;
21479
21669
  }
21480
21670
  };
21481
-
21482
21671
  var getStyle = function () {
21483
21672
  var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
21484
21673
  var props = arguments.length > 1 ? arguments[1] : undefined;
@@ -21492,9 +21681,45 @@ var getStyle = function () {
21492
21681
  fill: "black",
21493
21682
  stroke: stroke
21494
21683
  };
21495
- return victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()(baseStyle, style), props);
21684
+ return victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()(baseStyle, style), props);
21496
21685
  };
21497
21686
 
21687
+ /***/ }),
21688
+
21689
+ /***/ "../../victory-bar/es/bar.js":
21690
+ /*!***********************************!*\
21691
+ !*** ../../victory-bar/es/bar.js ***!
21692
+ \***********************************/
21693
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
21694
+
21695
+ "use strict";
21696
+ __webpack_require__.r(__webpack_exports__);
21697
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21698
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21699
+ /* harmony export */ });
21700
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
21701
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
21702
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
21703
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
21704
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
21705
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
21706
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
21707
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
21708
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
21709
+ /* harmony import */ var _bar_helper_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bar-helper-methods */ "../../victory-bar/es/bar-helper-methods.js");
21710
+ /* harmony import */ var _path_helper_methods__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./path-helper-methods */ "../../victory-bar/es/path-helper-methods.js");
21711
+
21712
+
21713
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
21714
+
21715
+ 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; }
21716
+
21717
+
21718
+
21719
+
21720
+
21721
+
21722
+
21498
21723
  var evaluateProps = function (props) {
21499
21724
  /**
21500
21725
  * Potential evaluated props of following must be evaluated in this order:
@@ -21508,19 +21733,19 @@ var evaluateProps = function (props) {
21508
21733
  * `id`
21509
21734
  * `tabIndex`
21510
21735
  */
21511
- var style = getStyle(props.style, props);
21512
- var barWidth = getBarWidth(props.barWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
21736
+ var style = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getStyle)(props.style, props);
21737
+ var barWidth = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getBarWidth)(props.barWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
21513
21738
  style: style
21514
21739
  }));
21515
- var cornerRadius = getCornerRadius(props.cornerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
21740
+ var cornerRadius = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_3__.getCornerRadius)(props.cornerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
21516
21741
  style: style,
21517
21742
  barWidth: barWidth
21518
21743
  }));
21519
- var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(props.ariaLabel, props);
21520
- var desc = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(props.desc, props);
21521
- var id = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(props.id, props);
21522
- var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(props.tabIndex, props);
21523
- return lodash_assign__WEBPACK_IMPORTED_MODULE_2___default()({}, props, {
21744
+ var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
21745
+ var desc = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.desc, props);
21746
+ var id = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
21747
+ var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.tabIndex, props);
21748
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
21524
21749
  ariaLabel: ariaLabel,
21525
21750
  style: style,
21526
21751
  barWidth: barWidth,
@@ -21539,9 +21764,9 @@ var Bar = function (props) {
21539
21764
  style = _props.style,
21540
21765
  barWidth = _props.barWidth,
21541
21766
  cornerRadius = _props.cornerRadius;
21542
- var path = polar ? getPolarBarPath(props, cornerRadius) : getBarPath(props, barWidth, cornerRadius);
21767
+ var path = polar ? (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_5__.getPolarBarPath)(props, cornerRadius) : (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_5__.getBarPath)(props, barWidth, cornerRadius);
21543
21768
  var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;
21544
- return react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(props.pathComponent, _objectSpread({}, props.events, {
21769
+ return react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(props.pathComponent, _objectSpread({}, props.events, {
21545
21770
  "aria-label": props.ariaLabel,
21546
21771
  style: style,
21547
21772
  d: path,
@@ -21556,30 +21781,30 @@ var Bar = function (props) {
21556
21781
  }));
21557
21782
  };
21558
21783
 
21559
- Bar.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_7__.primitiveProps, {
21560
- alignment: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOf(["start", "middle", "end"]),
21561
- barRatio: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
21562
- barWidth: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
21563
- cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func), prop_types__WEBPACK_IMPORTED_MODULE_4___default().shape({
21564
- top: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
21565
- topLeft: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
21566
- topRight: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
21567
- bottom: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
21568
- bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)]),
21569
- bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_4___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_4___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func)])
21784
+ Bar.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.primitiveProps, {
21785
+ alignment: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(["start", "middle", "end"]),
21786
+ barRatio: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
21787
+ barWidth: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
21788
+ cornerRadius: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func), prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
21789
+ top: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
21790
+ topLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
21791
+ topRight: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
21792
+ bottom: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
21793
+ bottomLeft: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)]),
21794
+ bottomRight: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func)])
21570
21795
  })]),
21571
- datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().object),
21572
- getPath: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().func),
21573
- horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().bool),
21574
- pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
21575
- width: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
21576
- x: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
21577
- y: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
21578
- y0: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number)
21796
+ datum: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object),
21797
+ getPath: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
21798
+ horizontal: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
21799
+ pathComponent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().element),
21800
+ width: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
21801
+ x: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
21802
+ y: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
21803
+ y0: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
21579
21804
  });
21580
21805
  Bar.defaultProps = {
21581
21806
  defaultBarWidth: 8,
21582
- pathComponent: react__WEBPACK_IMPORTED_MODULE_3___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.default, null),
21807
+ pathComponent: react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_7__.default, null),
21583
21808
  role: "presentation",
21584
21809
  shapeRendering: "auto"
21585
21810
  };
@@ -21899,7 +22124,9 @@ __webpack_require__.r(__webpack_exports__);
21899
22124
  /* harmony export */ "getCustomBarPath": () => (/* binding */ getCustomBarPath),
21900
22125
  /* harmony export */ "getVerticalBarPath": () => (/* binding */ getVerticalBarPath),
21901
22126
  /* harmony export */ "getHorizontalBarPath": () => (/* binding */ getHorizontalBarPath),
21902
- /* harmony export */ "getVerticalPolarBarPath": () => (/* binding */ getVerticalPolarBarPath)
22127
+ /* harmony export */ "getVerticalPolarBarPath": () => (/* binding */ getVerticalPolarBarPath),
22128
+ /* harmony export */ "getBarPath": () => (/* binding */ getBarPath),
22129
+ /* harmony export */ "getPolarBarPath": () => (/* binding */ getPolarBarPath)
21903
22130
  /* harmony export */ });
21904
22131
  /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/arc.js");
21905
22132
  /* harmony import */ var _geometry_helper_methods__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./geometry-helper-methods */ "../../victory-bar/es/geometry-helper-methods.js");
@@ -22374,6 +22601,17 @@ var getVerticalPolarBarPath = function (props, cornerRadius) {
22374
22601
  }, "");
22375
22602
  return "".concat(path, " z");
22376
22603
  };
22604
+ var getBarPath = function (props, width, cornerRadius) {
22605
+ if (props.getPath) {
22606
+ return getCustomBarPath(props, width);
22607
+ }
22608
+
22609
+ return props.horizontal ? getHorizontalBarPath(props, width, cornerRadius) : getVerticalBarPath(props, width, cornerRadius);
22610
+ };
22611
+ var getPolarBarPath = function (props, cornerRadius) {
22612
+ // TODO Radial bars
22613
+ return getVerticalPolarBarPath(props, cornerRadius);
22614
+ };
22377
22615
 
22378
22616
  /***/ }),
22379
22617
 
@@ -22442,9 +22680,7 @@ var defaultData = [{
22442
22680
  y: 4
22443
22681
  }];
22444
22682
 
22445
- var VictoryBar =
22446
- /*#__PURE__*/
22447
- function (_React$Component) {
22683
+ var VictoryBar = /*#__PURE__*/function (_React$Component) {
22448
22684
  _inherits(VictoryBar, _React$Component);
22449
22685
 
22450
22686
  function VictoryBar() {
@@ -23301,9 +23537,7 @@ var options = {
23301
23537
  }]
23302
23538
  };
23303
23539
 
23304
- var VictoryBoxPlot =
23305
- /*#__PURE__*/
23306
- function (_React$Component) {
23540
+ var VictoryBoxPlot = /*#__PURE__*/function (_React$Component) {
23307
23541
  _inherits(VictoryBoxPlot, _React$Component);
23308
23542
 
23309
23543
  function VictoryBoxPlot() {
@@ -24141,9 +24375,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
24141
24375
  var brushContainerMixin = function (base) {
24142
24376
  var _class, _temp;
24143
24377
 
24144
- return _temp = _class =
24145
- /*#__PURE__*/
24146
- function (_base) {
24378
+ return _temp = _class = /*#__PURE__*/function (_base) {
24147
24379
  _inherits(VictoryBrushContainer, _base);
24148
24380
 
24149
24381
  function VictoryBrushContainer() {
@@ -24563,9 +24795,7 @@ var fallbackProps = {
24563
24795
  }
24564
24796
  };
24565
24797
 
24566
- var VictoryBrushLine =
24567
- /*#__PURE__*/
24568
- function (_React$Component) {
24798
+ var VictoryBrushLine = /*#__PURE__*/function (_React$Component) {
24569
24799
  _inherits(VictoryBrushLine, _React$Component);
24570
24800
 
24571
24801
  function VictoryBrushLine() {
@@ -25921,9 +26151,7 @@ var datumHasXandY = function (datum) {
25921
26151
  return !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._x) && !lodash_isNil__WEBPACK_IMPORTED_MODULE_1___default()(datum._y);
25922
26152
  };
25923
26153
 
25924
- var VictoryCandlestick =
25925
- /*#__PURE__*/
25926
- function (_React$Component) {
26154
+ var VictoryCandlestick = /*#__PURE__*/function (_React$Component) {
25927
26155
  _inherits(VictoryCandlestick, _React$Component);
25928
26156
 
25929
26157
  function VictoryCandlestick() {
@@ -26139,6 +26367,388 @@ Object.defineProperty(VictoryCandlestick, "expectedComponents", {
26139
26367
 
26140
26368
  /***/ }),
26141
26369
 
26370
+ /***/ "../../victory-canvas/es/canvas-bar.js":
26371
+ /*!*********************************************!*\
26372
+ !*** ../../victory-canvas/es/canvas-bar.js ***!
26373
+ \*********************************************/
26374
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26375
+
26376
+ "use strict";
26377
+ __webpack_require__.r(__webpack_exports__);
26378
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26379
+ /* harmony export */ "usePreviousValue": () => (/* binding */ usePreviousValue),
26380
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
26381
+ /* harmony export */ });
26382
+ /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/omit */ "../../../node_modules/lodash/omit.js");
26383
+ /* harmony import */ var lodash_omit__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_omit__WEBPACK_IMPORTED_MODULE_0__);
26384
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
26385
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_1__);
26386
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
26387
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
26388
+ /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/bar-helper-methods.js");
26389
+ /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/path-helper-methods.js");
26390
+ /* harmony import */ var victory_bar__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-bar */ "../../victory-bar/es/bar.js");
26391
+ /* harmony import */ var _hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./hooks/use-canvas-context */ "../../victory-canvas/es/hooks/use-canvas-context.js");
26392
+
26393
+
26394
+
26395
+
26396
+
26397
+
26398
+ var evaluateProps = function (props) {
26399
+ /**
26400
+ * Potential evaluated props of following must be evaluated in this order:
26401
+ * 1) `style`
26402
+ * 2) `barWidth`
26403
+ * 3) `cornerRadius`
26404
+ */
26405
+ var style = (0,victory_bar__WEBPACK_IMPORTED_MODULE_3__.getStyle)(props.style, props);
26406
+ var barWidth = (0,victory_bar__WEBPACK_IMPORTED_MODULE_3__.getBarWidth)(props.barWidth, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
26407
+ style: style
26408
+ }));
26409
+ var cornerRadius = (0,victory_bar__WEBPACK_IMPORTED_MODULE_3__.getCornerRadius)(props.cornerRadius, lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
26410
+ style: style,
26411
+ barWidth: barWidth
26412
+ }));
26413
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_1___default()({}, props, {
26414
+ style: style,
26415
+ barWidth: barWidth,
26416
+ cornerRadius: cornerRadius
26417
+ });
26418
+ };
26419
+
26420
+ var usePreviousValue = function (value) {
26421
+ var ref = react__WEBPACK_IMPORTED_MODULE_2___default().useRef();
26422
+ react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(function () {
26423
+ ref.current = value;
26424
+ });
26425
+ return ref.current;
26426
+ };
26427
+
26428
+ var CanvasBar = function (initialProps) {
26429
+ var _useCanvasContext = (0,_hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_4__.useCanvasContext)(),
26430
+ canvasRef = _useCanvasContext.canvasRef;
26431
+
26432
+ var props = evaluateProps(initialProps);
26433
+ var polar = props.polar,
26434
+ style = props.style,
26435
+ barWidth = props.barWidth,
26436
+ cornerRadius = props.cornerRadius,
26437
+ origin = props.origin;
26438
+ var path2d = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(function () {
26439
+ var p = polar ? (0,victory_bar__WEBPACK_IMPORTED_MODULE_5__.getPolarBarPath)(props, cornerRadius) : (0,victory_bar__WEBPACK_IMPORTED_MODULE_5__.getBarPath)(props, barWidth, cornerRadius);
26440
+ return new Path2D(p);
26441
+ }, [polar, barWidth, cornerRadius, props]);
26442
+ var previousPath = usePreviousValue(path2d);
26443
+ var draw = react__WEBPACK_IMPORTED_MODULE_2___default().useCallback(function (ctx, path) {
26444
+ ctx.fillStyle = style.fill;
26445
+ ctx.strokeStyle = style.stroke;
26446
+ ctx.globalAlpha = style.fillOpacity;
26447
+ ctx.lineWidth = style.strokeWidth;
26448
+
26449
+ if (polar) {
26450
+ ctx.translate(origin.x, origin.y);
26451
+ }
26452
+
26453
+ ctx.fill(path);
26454
+ ctx.setTransform(1, 0, 0, 1, 0, 0);
26455
+ }, [style, origin, polar]); // This will clear the previous bar without clearing the entire canvas
26456
+
26457
+ var clearPreviousPath = react__WEBPACK_IMPORTED_MODULE_2___default().useCallback(function (ctx) {
26458
+ if (previousPath) {
26459
+ ctx.save(); // This ensures that the entire shape is erased
26460
+
26461
+ ctx.lineWidth = style.strokeWidth + 2;
26462
+ ctx.globalCompositeOperation = "destination-out";
26463
+ draw(ctx, previousPath);
26464
+ ctx.stroke(previousPath);
26465
+ ctx.restore();
26466
+ }
26467
+ }, [draw, previousPath, style]);
26468
+ react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(function () {
26469
+ var ctx = canvasRef.current.getContext("2d");
26470
+ clearPreviousPath(ctx);
26471
+ draw(ctx, path2d);
26472
+ }, [canvasRef, draw, polar, barWidth, cornerRadius, props, path2d, clearPreviousPath]);
26473
+ return null;
26474
+ };
26475
+
26476
+ CanvasBar.propTypes = lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(victory_bar__WEBPACK_IMPORTED_MODULE_6__.default.propTypes, "pathComponent");
26477
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanvasBar);
26478
+
26479
+ /***/ }),
26480
+
26481
+ /***/ "../../victory-canvas/es/canvas-curve.js":
26482
+ /*!***********************************************!*\
26483
+ !*** ../../victory-canvas/es/canvas-curve.js ***!
26484
+ \***********************************************/
26485
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26486
+
26487
+ "use strict";
26488
+ __webpack_require__.r(__webpack_exports__);
26489
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26490
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
26491
+ /* harmony export */ });
26492
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
26493
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
26494
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
26495
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
26496
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/line-helpers.js");
26497
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
26498
+ /* harmony import */ var _hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hooks/use-canvas-context */ "../../victory-canvas/es/hooks/use-canvas-context.js");
26499
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
26500
+
26501
+ 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; }
26502
+
26503
+
26504
+
26505
+
26506
+
26507
+
26508
+ var CanvasCurve = function (props) {
26509
+ var _useCanvasContext = (0,_hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_2__.useCanvasContext)(),
26510
+ canvasRef = _useCanvasContext.canvasRef,
26511
+ clear = _useCanvasContext.clear,
26512
+ clip = _useCanvasContext.clip;
26513
+
26514
+ var style = props.style,
26515
+ data = props.data;
26516
+ var stroke = style.stroke,
26517
+ strokeWidth = style.strokeWidth;
26518
+ var draw = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback(function (ctx) {
26519
+ var line = victory_core__WEBPACK_IMPORTED_MODULE_3__.getLineFunction(props);
26520
+ ctx.strokeStyle = stroke;
26521
+ ctx.lineWidth = strokeWidth;
26522
+ line.context(ctx)(data);
26523
+ ctx.stroke();
26524
+ }, [data, props, stroke, strokeWidth]);
26525
+ react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(function () {
26526
+ var ctx = canvasRef.current.getContext("2d");
26527
+ clear(ctx);
26528
+ draw(ctx);
26529
+ clip(ctx);
26530
+ }, [canvasRef, draw, clear, clip]);
26531
+ return null;
26532
+ };
26533
+
26534
+ CanvasCurve.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_4__.primitiveProps, {
26535
+ interpolation: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
26536
+ openCurve: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
26537
+ origin: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
26538
+ polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
26539
+ });
26540
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanvasCurve);
26541
+
26542
+ /***/ }),
26543
+
26544
+ /***/ "../../victory-canvas/es/canvas-group.js":
26545
+ /*!***********************************************!*\
26546
+ !*** ../../victory-canvas/es/canvas-group.js ***!
26547
+ \***********************************************/
26548
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26549
+
26550
+ "use strict";
26551
+ __webpack_require__.r(__webpack_exports__);
26552
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26553
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
26554
+ /* harmony export */ });
26555
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
26556
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
26557
+ /* harmony import */ var _hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./hooks/use-canvas-context */ "../../victory-canvas/es/hooks/use-canvas-context.js");
26558
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
26559
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_1__);
26560
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/prop-types.js");
26561
+
26562
+
26563
+
26564
+
26565
+
26566
+ var CanvasGroup = function (props) {
26567
+ var canvasRef = react__WEBPACK_IMPORTED_MODULE_0___default().useRef();
26568
+ var children = props.children,
26569
+ width = props.width,
26570
+ height = props.height,
26571
+ clipWidth = props.clipWidth,
26572
+ padding = props.padding;
26573
+ var clear = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback(function (ctx) {
26574
+ return ctx.clearRect(0, 0, width, height);
26575
+ }, [width, height]); // This needs to be called in the child component to ensure it is called after the
26576
+ // shape is drawn
26577
+
26578
+ var clip = react__WEBPACK_IMPORTED_MODULE_0___default().useCallback(function (ctx) {
26579
+ var maxClipWidth = width - padding.right - padding.left;
26580
+ ctx.clearRect(width - padding.right, 0, (maxClipWidth - clipWidth) * -1, height);
26581
+ }, [width, height, padding, clipWidth]);
26582
+ return react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_2__.CanvasContext.Provider, {
26583
+ value: {
26584
+ canvasRef: canvasRef,
26585
+ clear: clear,
26586
+ clip: clip
26587
+ }
26588
+ }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement("foreignObject", {
26589
+ width: width,
26590
+ height: height,
26591
+ x: 0,
26592
+ y: 0
26593
+ }, react__WEBPACK_IMPORTED_MODULE_0___default().createElement("canvas", {
26594
+ width: width,
26595
+ height: height,
26596
+ ref: canvasRef
26597
+ })), children);
26598
+ };
26599
+
26600
+ CanvasGroup.propTypes = {
26601
+ "aria-label": (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
26602
+ 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)]),
26603
+ className: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
26604
+ clipWidth: victory_core__WEBPACK_IMPORTED_MODULE_3__.nonNegative,
26605
+ height: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
26606
+ padding: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
26607
+ top: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
26608
+ bottom: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
26609
+ left: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
26610
+ right: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
26611
+ })]),
26612
+ width: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number)
26613
+ };
26614
+ CanvasGroup.role = "container";
26615
+ CanvasGroup.displayName = "CanvasGroup";
26616
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanvasGroup);
26617
+
26618
+ /***/ }),
26619
+
26620
+ /***/ "../../victory-canvas/es/canvas-point.js":
26621
+ /*!***********************************************!*\
26622
+ !*** ../../victory-canvas/es/canvas-point.js ***!
26623
+ \***********************************************/
26624
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26625
+
26626
+ "use strict";
26627
+ __webpack_require__.r(__webpack_exports__);
26628
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26629
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
26630
+ /* harmony export */ });
26631
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/assign */ "../../../node_modules/lodash/assign.js");
26632
+ /* harmony import */ var lodash_assign__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_assign__WEBPACK_IMPORTED_MODULE_0__);
26633
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
26634
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
26635
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
26636
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
26637
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/point-path-helpers.js");
26638
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
26639
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
26640
+ /* harmony import */ var _hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./hooks/use-canvas-context */ "../../victory-canvas/es/hooks/use-canvas-context.js");
26641
+
26642
+
26643
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
26644
+
26645
+ 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; }
26646
+
26647
+
26648
+
26649
+
26650
+
26651
+
26652
+ var getPath = function (props) {
26653
+ var x = props.x,
26654
+ y = props.y,
26655
+ size = props.size,
26656
+ symbol = props.symbol;
26657
+
26658
+ if (props.getPath) {
26659
+ return props.getPath(x, y, size);
26660
+ }
26661
+
26662
+ var pathFunctions = {
26663
+ circle: victory_core__WEBPACK_IMPORTED_MODULE_3__.default.circle,
26664
+ square: victory_core__WEBPACK_IMPORTED_MODULE_3__.default.square,
26665
+ diamond: victory_core__WEBPACK_IMPORTED_MODULE_3__.default.diamond,
26666
+ triangleDown: victory_core__WEBPACK_IMPORTED_MODULE_3__.default.triangleDown,
26667
+ triangleUp: victory_core__WEBPACK_IMPORTED_MODULE_3__.default.triangleUp,
26668
+ plus: victory_core__WEBPACK_IMPORTED_MODULE_3__.default.plus,
26669
+ minus: victory_core__WEBPACK_IMPORTED_MODULE_3__.default.minus,
26670
+ star: victory_core__WEBPACK_IMPORTED_MODULE_3__.default.star,
26671
+ cross: victory_core__WEBPACK_IMPORTED_MODULE_3__.default.cross
26672
+ };
26673
+ var symbolFunction = typeof pathFunctions[symbol] === "function" ? pathFunctions[symbol] : pathFunctions.circle;
26674
+ return symbolFunction(x, y, size);
26675
+ };
26676
+
26677
+ var evaluateProps = function (props) {
26678
+ /**
26679
+ * Potential evaluated props are:
26680
+ * `size`
26681
+ * `style`
26682
+ * `symbol`
26683
+ */
26684
+ var size = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.size, props);
26685
+ var style = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(props.style, props);
26686
+ var symbol = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.symbol, props);
26687
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
26688
+ size: size,
26689
+ style: style,
26690
+ symbol: symbol
26691
+ });
26692
+ };
26693
+
26694
+ var CanvasPoint = function (initialProps) {
26695
+ var _useCanvasContext = (0,_hooks_use_canvas_context__WEBPACK_IMPORTED_MODULE_5__.useCanvasContext)(),
26696
+ canvasRef = _useCanvasContext.canvasRef;
26697
+
26698
+ var props = evaluateProps(initialProps);
26699
+ var draw = react__WEBPACK_IMPORTED_MODULE_1___default().useCallback(function (ctx) {
26700
+ var style = props.style;
26701
+ var path = getPath(props);
26702
+ ctx.fillStyle = style.fill; // eslint-disable-next-line no-undef
26703
+
26704
+ var path2d = new Path2D(path);
26705
+ ctx.fill(path2d);
26706
+ }, [props]);
26707
+ react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(function () {
26708
+ var ctx = canvasRef.current.getContext("2d");
26709
+ draw(ctx); // eslint-disable-next-line react-hooks/exhaustive-deps
26710
+ }, []);
26711
+ return null;
26712
+ };
26713
+
26714
+ CanvasPoint.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.primitiveProps, {
26715
+ datum: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
26716
+ size: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func)]),
26717
+ x: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number),
26718
+ y: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().number)
26719
+ });
26720
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CanvasPoint);
26721
+
26722
+ /***/ }),
26723
+
26724
+ /***/ "../../victory-canvas/es/hooks/use-canvas-context.js":
26725
+ /*!***********************************************************!*\
26726
+ !*** ../../victory-canvas/es/hooks/use-canvas-context.js ***!
26727
+ \***********************************************************/
26728
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
26729
+
26730
+ "use strict";
26731
+ __webpack_require__.r(__webpack_exports__);
26732
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
26733
+ /* harmony export */ "CanvasContext": () => (/* binding */ CanvasContext),
26734
+ /* harmony export */ "useCanvasContext": () => (/* binding */ useCanvasContext)
26735
+ /* harmony export */ });
26736
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
26737
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
26738
+
26739
+ var CanvasContext = react__WEBPACK_IMPORTED_MODULE_0___default().createContext();
26740
+ var useCanvasContext = function () {
26741
+ var context = react__WEBPACK_IMPORTED_MODULE_0___default().useContext(CanvasContext);
26742
+
26743
+ if (!context) {
26744
+ throw new Error("This component must be wrapped in a CanvasContext.Provider component.\n Try setting groupComponent={<CanvasGroup />} in your chart component.");
26745
+ }
26746
+
26747
+ return context;
26748
+ };
26749
+
26750
+ /***/ }),
26751
+
26142
26752
  /***/ "../../victory-chart/es/helper-methods.js":
26143
26753
  /*!************************************************!*\
26144
26754
  !*** ../../victory-chart/es/helper-methods.js ***!
@@ -26618,9 +27228,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
26618
27228
 
26619
27229
 
26620
27230
 
26621
- var VictoryAccessibleGroup =
26622
- /*#__PURE__*/
26623
- function (_React$Component) {
27231
+ var VictoryAccessibleGroup = /*#__PURE__*/function (_React$Component) {
26624
27232
  _inherits(VictoryAccessibleGroup, _React$Component);
26625
27233
 
26626
27234
  function VictoryAccessibleGroup() {
@@ -26971,9 +27579,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
26971
27579
 
26972
27580
 
26973
27581
 
26974
- var VictoryAnimation =
26975
- /*#__PURE__*/
26976
- function (_React$Component) {
27582
+ var VictoryAnimation = /*#__PURE__*/function (_React$Component) {
26977
27583
  _inherits(VictoryAnimation, _React$Component);
26978
27584
 
26979
27585
  function VictoryAnimation(props, context) {
@@ -27260,9 +27866,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
27260
27866
 
27261
27867
 
27262
27868
 
27263
- var VictoryClipContainer =
27264
- /*#__PURE__*/
27265
- function (_React$Component) {
27869
+ var VictoryClipContainer = /*#__PURE__*/function (_React$Component) {
27266
27870
  _inherits(VictoryClipContainer, _React$Component);
27267
27871
 
27268
27872
  function VictoryClipContainer(props) {
@@ -27573,9 +28177,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
27573
28177
 
27574
28178
 
27575
28179
 
27576
- var VictoryContainer =
27577
- /*#__PURE__*/
27578
- function (_React$Component) {
28180
+ var VictoryContainer = /*#__PURE__*/function (_React$Component) {
27579
28181
  _inherits(VictoryContainer, _React$Component);
27580
28182
 
27581
28183
  function VictoryContainer(props) {
@@ -28521,9 +29123,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
28521
29123
 
28522
29124
 
28523
29125
 
28524
- var Portal =
28525
- /*#__PURE__*/
28526
- function (_React$Component) {
29126
+ var Portal = /*#__PURE__*/function (_React$Component) {
28527
29127
  _inherits(Portal, _React$Component);
28528
29128
 
28529
29129
  function Portal(props) {
@@ -28642,9 +29242,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
28642
29242
 
28643
29243
 
28644
29244
 
28645
- var VictoryPortal =
28646
- /*#__PURE__*/
28647
- function (_React$Component) {
29245
+ var VictoryPortal = /*#__PURE__*/function (_React$Component) {
28648
29246
  _inherits(VictoryPortal, _React$Component);
28649
29247
 
28650
29248
  function VictoryPortal() {
@@ -29248,95 +29846,6 @@ var Line = function (props) {
29248
29846
 
29249
29847
  /***/ }),
29250
29848
 
29251
- /***/ "../../victory-core/es/victory-primitives/path-helpers.js":
29252
- /*!****************************************************************!*\
29253
- !*** ../../victory-core/es/victory-primitives/path-helpers.js ***!
29254
- \****************************************************************/
29255
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
29256
-
29257
- "use strict";
29258
- __webpack_require__.r(__webpack_exports__);
29259
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
29260
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
29261
- /* harmony export */ });
29262
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js");
29263
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__);
29264
-
29265
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
29266
- circle: function (x, y, size) {
29267
- return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
29268
- },
29269
- square: function (x, y, size) {
29270
- var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
29271
-
29272
- var x0 = x - baseSize;
29273
- var y1 = y + baseSize;
29274
- var distance = x + baseSize - x0;
29275
- return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(distance, "\n h-").concat(distance, "\n z");
29276
- },
29277
- diamond: function (x, y, size) {
29278
- var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
29279
-
29280
- var length = Math.sqrt(2 * (baseSize * baseSize));
29281
- return "M ".concat(x, ", ").concat(y + length, "\n l ").concat(length, ", -").concat(length, "\n l -").concat(length, ", -").concat(length, "\n l -").concat(length, ", ").concat(length, "\n l ").concat(length, ", ").concat(length, "\n z");
29282
- },
29283
- triangleDown: function (x, y, size) {
29284
- var height = size / 2 * Math.sqrt(3);
29285
- var x0 = x - size;
29286
- var x1 = x + size;
29287
- var y0 = y - size;
29288
- var y1 = y + height;
29289
- return "M ".concat(x0, ", ").concat(y0, "\n L ").concat(x1, ", ").concat(y0, "\n L ").concat(x, ", ").concat(y1, "\n z");
29290
- },
29291
- triangleUp: function (x, y, size) {
29292
- var height = size / 2 * Math.sqrt(3);
29293
- var x0 = x - size;
29294
- var x1 = x + size;
29295
- var y0 = y - height;
29296
- var y1 = y + size;
29297
- return "M ".concat(x0, ", ").concat(y1, "\n L ").concat(x1, ", ").concat(y1, "\n L ").concat(x, ", ").concat(y0, "\n z");
29298
- },
29299
- plus: function (x, y, size) {
29300
- var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
29301
-
29302
- var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
29303
-
29304
- return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n v-").concat(distance, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance, "\n z");
29305
- },
29306
- cross: function (x, y, size) {
29307
- var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers
29308
-
29309
- var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
29310
-
29311
- return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n v-").concat(distance * 2, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance * 2, "\n z");
29312
- },
29313
- minus: function (x, y, size) {
29314
- var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
29315
-
29316
- var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers
29317
-
29318
- var x0 = x - baseSize;
29319
- var y1 = y + lineHeight / 2;
29320
- var distance = x + baseSize - x0;
29321
- return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(lineHeight, "\n h-").concat(distance, "\n z");
29322
- },
29323
- star: function (x, y, size) {
29324
- var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers
29325
-
29326
- var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
29327
- // eslint-disable-next-line no-magic-numbers
29328
-
29329
- var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) {
29330
- var length = index % 2 === 0 ? baseSize : baseSize / 2;
29331
- return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y);
29332
- });
29333
-
29334
- return "M ".concat(starCoords.join("L"), " z");
29335
- }
29336
- });
29337
-
29338
- /***/ }),
29339
-
29340
29849
  /***/ "../../victory-core/es/victory-primitives/path.js":
29341
29850
  /*!********************************************************!*\
29342
29851
  !*** ../../victory-core/es/victory-primitives/path.js ***!
@@ -29384,7 +29893,7 @@ __webpack_require__.r(__webpack_exports__);
29384
29893
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
29385
29894
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
29386
29895
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
29387
- /* harmony import */ var _path_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./path-helpers */ "../../victory-core/es/victory-primitives/path-helpers.js");
29896
+ /* harmony import */ var _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/point-path-helpers */ "../../victory-core/es/victory-util/point-path-helpers.js");
29388
29897
  /* harmony import */ var _victory_util_common_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/common-props */ "../../victory-core/es/victory-util/common-props.js");
29389
29898
  /* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js");
29390
29899
 
@@ -29411,15 +29920,15 @@ var getPath = function (props) {
29411
29920
  }
29412
29921
 
29413
29922
  var pathFunctions = {
29414
- circle: _path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.circle,
29415
- square: _path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.square,
29416
- diamond: _path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.diamond,
29417
- triangleDown: _path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.triangleDown,
29418
- triangleUp: _path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.triangleUp,
29419
- plus: _path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.plus,
29420
- minus: _path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.minus,
29421
- star: _path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.star,
29422
- cross: _path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.cross
29923
+ circle: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.circle,
29924
+ square: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.square,
29925
+ diamond: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.diamond,
29926
+ triangleDown: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.triangleDown,
29927
+ triangleUp: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.triangleUp,
29928
+ plus: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.plus,
29929
+ minus: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.minus,
29930
+ star: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.star,
29931
+ cross: _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_3__.default.cross
29423
29932
  };
29424
29933
  var symbolFunction = typeof pathFunctions[symbol] === "function" ? pathFunctions[symbol] : pathFunctions.circle;
29425
29934
  return symbolFunction(x, y, size);
@@ -30360,9 +30869,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
30360
30869
 
30361
30870
 
30362
30871
 
30363
- var VictoryTransition =
30364
- /*#__PURE__*/
30365
- function (_React$Component) {
30872
+ var VictoryTransition = /*#__PURE__*/function (_React$Component) {
30366
30873
  _inherits(VictoryTransition, _React$Component);
30367
30874
 
30368
30875
  function VictoryTransition(props, context) {
@@ -30663,365 +31170,362 @@ var defaultComponents = [{
30663
31170
  name: "labels"
30664
31171
  }];
30665
31172
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function (WrappedComponent, options) {
30666
- return (
30667
- /*#__PURE__*/
30668
- function (_WrappedComponent) {
30669
- _inherits(addEvents, _WrappedComponent);
31173
+ return /*#__PURE__*/function (_WrappedComponent) {
31174
+ _inherits(addEvents, _WrappedComponent);
30670
31175
 
30671
- function addEvents(props) {
30672
- var _this;
31176
+ function addEvents(props) {
31177
+ var _this;
30673
31178
 
30674
- _classCallCheck(this, addEvents);
31179
+ _classCallCheck(this, addEvents);
30675
31180
 
30676
- _this = _possibleConstructorReturn(this, (addEvents.__proto__ || Object.getPrototypeOf(addEvents)).call(this, props));
30677
- var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
30678
- var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
30679
- _this.state = {};
31181
+ _this = _possibleConstructorReturn(this, (addEvents.__proto__ || Object.getPrototypeOf(addEvents)).call(this, props));
31182
+ var getScopedEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getScopedEvents.bind(_assertThisInitialized(_this));
31183
+ var boundGetEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getEvents.bind(_assertThisInitialized(_this));
31184
+ _this.state = {};
30680
31185
 
30681
- _this.getEvents = function (p, target, eventKey) {
30682
- return boundGetEvents(p, target, eventKey, getScopedEvents);
30683
- };
30684
-
30685
- _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
30686
-
30687
- var calculatedValues = _this.getCalculatedValues(props);
31186
+ _this.getEvents = function (p, target, eventKey) {
31187
+ return boundGetEvents(p, target, eventKey, getScopedEvents);
31188
+ };
30688
31189
 
30689
- _this.cacheValues(calculatedValues);
31190
+ _this.getEventState = _events__WEBPACK_IMPORTED_MODULE_11__.getEventState.bind(_assertThisInitialized(_this));
30690
31191
 
30691
- _this.externalMutations = _this.getExternalMutations(props);
30692
- _this.calculatedState = _this.getStateChanges(props);
30693
- _this.globalEvents = {};
30694
- _this.prevGlobalEventKeys = [];
30695
- _this.boundGlobalEvents = {};
30696
- return _this;
30697
- }
31192
+ var calculatedValues = _this.getCalculatedValues(props);
30698
31193
 
30699
- _createClass(addEvents, [{
30700
- key: "shouldComponentUpdate",
30701
- value: function shouldComponentUpdate(nextProps) {
30702
- var externalMutations = this.getExternalMutations(nextProps);
30703
- var animating = this.props.animating || this.props.animate;
30704
- var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
31194
+ _this.cacheValues(calculatedValues);
30705
31195
 
30706
- if (animating || newMutation) {
30707
- this.cacheValues(this.getCalculatedValues(nextProps));
30708
- this.externalMutations = externalMutations;
30709
- this.applyExternalMutations(nextProps, externalMutations);
30710
- return true;
30711
- }
31196
+ _this.externalMutations = _this.getExternalMutations(props);
31197
+ _this.calculatedState = _this.getStateChanges(props);
31198
+ _this.globalEvents = {};
31199
+ _this.prevGlobalEventKeys = [];
31200
+ _this.boundGlobalEvents = {};
31201
+ return _this;
31202
+ }
30712
31203
 
30713
- var calculatedState = this.getStateChanges(nextProps);
31204
+ _createClass(addEvents, [{
31205
+ key: "shouldComponentUpdate",
31206
+ value: function shouldComponentUpdate(nextProps) {
31207
+ var externalMutations = this.getExternalMutations(nextProps);
31208
+ var animating = this.props.animating || this.props.animate;
31209
+ var newMutation = !react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(externalMutations, this.externalMutations);
30714
31210
 
30715
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.calculatedState, calculatedState)) {
30716
- this.cacheValues(this.getCalculatedValues(nextProps));
30717
- return true;
30718
- }
31211
+ if (animating || newMutation) {
31212
+ this.cacheValues(this.getCalculatedValues(nextProps));
31213
+ this.externalMutations = externalMutations;
31214
+ this.applyExternalMutations(nextProps, externalMutations);
31215
+ return true;
31216
+ }
30719
31217
 
30720
- if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps)) {
30721
- this.cacheValues(this.getCalculatedValues(nextProps));
30722
- return true;
30723
- }
31218
+ var calculatedState = this.getStateChanges(nextProps);
30724
31219
 
30725
- return false;
31220
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.calculatedState, calculatedState)) {
31221
+ this.cacheValues(this.getCalculatedValues(nextProps));
31222
+ return true;
30726
31223
  }
30727
- }, {
30728
- key: "componentDidMount",
30729
- value: function componentDidMount() {
30730
- var _this2 = this;
30731
-
30732
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
30733
31224
 
30734
- globalEventKeys.forEach(function (key) {
30735
- return _this2.addGlobalListener(key);
30736
- });
30737
- this.prevGlobalEventKeys = globalEventKeys;
31225
+ if (!react_fast_compare__WEBPACK_IMPORTED_MODULE_10___default()(this.props, nextProps)) {
31226
+ this.cacheValues(this.getCalculatedValues(nextProps));
31227
+ return true;
30738
31228
  }
30739
- }, {
30740
- key: "componentDidUpdate",
30741
- value: function componentDidUpdate(prevProps) {
30742
- var _this3 = this;
30743
31229
 
30744
- var calculatedState = this.getStateChanges(prevProps);
30745
- this.calculatedState = calculatedState;
31230
+ return false;
31231
+ }
31232
+ }, {
31233
+ key: "componentDidMount",
31234
+ value: function componentDidMount() {
31235
+ var _this2 = this;
30746
31236
 
30747
- var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
31237
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
30748
31238
 
30749
- var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
31239
+ globalEventKeys.forEach(function (key) {
31240
+ return _this2.addGlobalListener(key);
31241
+ });
31242
+ this.prevGlobalEventKeys = globalEventKeys;
31243
+ }
31244
+ }, {
31245
+ key: "componentDidUpdate",
31246
+ value: function componentDidUpdate(prevProps) {
31247
+ var _this3 = this;
30750
31248
 
30751
- removedGlobalEventKeys.forEach(function (key) {
30752
- return _this3.removeGlobalListener(key);
30753
- });
31249
+ var calculatedState = this.getStateChanges(prevProps);
31250
+ this.calculatedState = calculatedState;
30754
31251
 
30755
- var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
31252
+ var globalEventKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(this.globalEvents);
30756
31253
 
30757
- addedGlobalEventKeys.forEach(function (key) {
30758
- return _this3.addGlobalListener(key);
30759
- });
30760
- this.prevGlobalEventKeys = globalEventKeys;
30761
- }
30762
- }, {
30763
- key: "componentWillUnmount",
30764
- value: function componentWillUnmount() {
30765
- var _this4 = this;
31254
+ var removedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(this.prevGlobalEventKeys, globalEventKeys);
30766
31255
 
30767
- this.prevGlobalEventKeys.forEach(function (key) {
30768
- return _this4.removeGlobalListener(key);
30769
- });
30770
- }
30771
- }, {
30772
- key: "addGlobalListener",
30773
- value: function addGlobalListener(key) {
30774
- var _this5 = this;
31256
+ removedGlobalEventKeys.forEach(function (key) {
31257
+ return _this3.removeGlobalListener(key);
31258
+ });
30775
31259
 
30776
- var boundListener = function (event) {
30777
- var listener = _this5.globalEvents[key];
30778
- return listener && listener(_events__WEBPACK_IMPORTED_MODULE_11__.emulateReactEvent(event));
30779
- };
31260
+ var addedGlobalEventKeys = lodash_difference__WEBPACK_IMPORTED_MODULE_0___default()(globalEventKeys, this.prevGlobalEventKeys);
30780
31261
 
30781
- this.boundGlobalEvents[key] = boundListener;
30782
- window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), boundListener);
30783
- }
30784
- }, {
30785
- key: "removeGlobalListener",
30786
- value: function removeGlobalListener(key) {
30787
- window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
30788
- } // compile all state changes from own and parent state. Order doesn't matter, as any state
30789
- // state change should trigger a re-render
31262
+ addedGlobalEventKeys.forEach(function (key) {
31263
+ return _this3.addGlobalListener(key);
31264
+ });
31265
+ this.prevGlobalEventKeys = globalEventKeys;
31266
+ }
31267
+ }, {
31268
+ key: "componentWillUnmount",
31269
+ value: function componentWillUnmount() {
31270
+ var _this4 = this;
30790
31271
 
30791
- }, {
30792
- key: "getStateChanges",
30793
- value: function getStateChanges(props) {
30794
- var _this6 = this;
31272
+ this.prevGlobalEventKeys.forEach(function (key) {
31273
+ return _this4.removeGlobalListener(key);
31274
+ });
31275
+ }
31276
+ }, {
31277
+ key: "addGlobalListener",
31278
+ value: function addGlobalListener(key) {
31279
+ var _this5 = this;
30795
31280
 
30796
- if (!this.hasEvents) {
30797
- return {};
30798
- }
31281
+ var boundListener = function (event) {
31282
+ var listener = _this5.globalEvents[key];
31283
+ return listener && listener(_events__WEBPACK_IMPORTED_MODULE_11__.emulateReactEvent(event));
31284
+ };
30799
31285
 
30800
- var getState = function (key, type) {
30801
- var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
31286
+ this.boundGlobalEvents[key] = boundListener;
31287
+ window.addEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), boundListener);
31288
+ }
31289
+ }, {
31290
+ key: "removeGlobalListener",
31291
+ value: function removeGlobalListener(key) {
31292
+ window.removeEventListener(_events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEventNameFromKey(key), this.boundGlobalEvents[key]);
31293
+ } // compile all state changes from own and parent state. Order doesn't matter, as any state
31294
+ // state change should trigger a re-render
30802
31295
 
30803
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
30804
- };
31296
+ }, {
31297
+ key: "getStateChanges",
31298
+ value: function getStateChanges(props) {
31299
+ var _this6 = this;
30805
31300
 
30806
- options = options || {};
30807
- var components = options.components || defaultComponents;
30808
- var stateChanges = components.map(function (component) {
30809
- if (!props.standalone && component.name === "parent") {
30810
- // don't check for changes on parent props for non-standalone components
30811
- return undefined;
30812
- } else {
30813
- return component.index !== undefined ? getState(component.index, component.name) : _this6.dataKeys.map(function (key) {
30814
- return getState(key, component.name);
30815
- }).filter(Boolean);
30816
- }
30817
- }).filter(Boolean);
30818
- return stateChanges;
30819
- }
30820
- }, {
30821
- key: "applyExternalMutations",
30822
- value: function applyExternalMutations(props, externalMutations) {
30823
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
30824
- var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
30825
- memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
30826
- return memo;
30827
- }, []);
30828
- var compiledCallbacks = callbacks.length ? function () {
30829
- callbacks.forEach(function (c) {
30830
- return c();
30831
- });
30832
- } : undefined;
30833
- this.setState(externalMutations, compiledCallbacks);
30834
- }
31301
+ if (!this.hasEvents) {
31302
+ return {};
30835
31303
  }
30836
- }, {
30837
- key: "getCalculatedValues",
30838
- value: function getCalculatedValues(props) {
30839
- var sharedEvents = props.sharedEvents;
30840
- var components = WrappedComponent.expectedComponents;
30841
- var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
30842
- var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
30843
- return undefined;
30844
- };
30845
- var baseProps = this.getBaseProps(props, getSharedEventState);
30846
31304
 
30847
- var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
30848
- return key !== "parent";
30849
- });
31305
+ var getState = function (key, type) {
31306
+ var result = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _this6.getEventState(key, type), _this6.getSharedEventState(key, type));
30850
31307
 
30851
- var hasEvents = props.events || props.sharedEvents || componentEvents;
30852
- var events = this.getAllEvents(props);
30853
- return {
30854
- componentEvents: componentEvents,
30855
- getSharedEventState: getSharedEventState,
30856
- baseProps: baseProps,
30857
- dataKeys: dataKeys,
30858
- hasEvents: hasEvents,
30859
- events: events
30860
- };
30861
- }
30862
- }, {
30863
- key: "getExternalMutations",
30864
- value: function getExternalMutations(props) {
30865
- var sharedEvents = props.sharedEvents,
30866
- externalEventMutations = props.externalEventMutations;
30867
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
30868
- }
30869
- }, {
30870
- key: "cacheValues",
30871
- value: function cacheValues(obj) {
30872
- var _this7 = this;
31308
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
31309
+ };
30873
31310
 
30874
- lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
30875
- _this7[key] = obj[key];
30876
- });
31311
+ options = options || {};
31312
+ var components = options.components || defaultComponents;
31313
+ var stateChanges = components.map(function (component) {
31314
+ if (!props.standalone && component.name === "parent") {
31315
+ // don't check for changes on parent props for non-standalone components
31316
+ return undefined;
31317
+ } else {
31318
+ return component.index !== undefined ? getState(component.index, component.name) : _this6.dataKeys.map(function (key) {
31319
+ return getState(key, component.name);
31320
+ }).filter(Boolean);
31321
+ }
31322
+ }).filter(Boolean);
31323
+ return stateChanges;
31324
+ }
31325
+ }, {
31326
+ key: "applyExternalMutations",
31327
+ value: function applyExternalMutations(props, externalMutations) {
31328
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
31329
+ var callbacks = props.externalEventMutations.reduce(function (memo, mutation) {
31330
+ memo = lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(mutation.callback) ? memo.concat(mutation.callback) : memo;
31331
+ return memo;
31332
+ }, []);
31333
+ var compiledCallbacks = callbacks.length ? function () {
31334
+ callbacks.forEach(function (c) {
31335
+ return c();
31336
+ });
31337
+ } : undefined;
31338
+ this.setState(externalMutations, compiledCallbacks);
30877
31339
  }
30878
- }, {
30879
- key: "getBaseProps",
30880
- value: function getBaseProps(props, getSharedEventState) {
30881
- getSharedEventState = getSharedEventState || this.getSharedEventState;
30882
- var sharedParentState = getSharedEventState("parent", "parent");
30883
- var parentState = this.getEventState("parent", "parent");
31340
+ }
31341
+ }, {
31342
+ key: "getCalculatedValues",
31343
+ value: function getCalculatedValues(props) {
31344
+ var sharedEvents = props.sharedEvents;
31345
+ var components = WrappedComponent.expectedComponents;
31346
+ var componentEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getComponentEvents(props, components);
31347
+ var getSharedEventState = sharedEvents && lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(sharedEvents.getEventState) ? sharedEvents.getEventState : function () {
31348
+ return undefined;
31349
+ };
31350
+ var baseProps = this.getBaseProps(props, getSharedEventState);
30884
31351
 
30885
- var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
31352
+ var dataKeys = lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(baseProps).filter(function (key) {
31353
+ return key !== "parent";
31354
+ });
30886
31355
 
30887
- var parentPropsList = baseParentProps.parentControlledProps;
30888
- var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
31356
+ var hasEvents = props.events || props.sharedEvents || componentEvents;
31357
+ var events = this.getAllEvents(props);
31358
+ return {
31359
+ componentEvents: componentEvents,
31360
+ getSharedEventState: getSharedEventState,
31361
+ baseProps: baseProps,
31362
+ dataKeys: dataKeys,
31363
+ hasEvents: hasEvents,
31364
+ events: events
31365
+ };
31366
+ }
31367
+ }, {
31368
+ key: "getExternalMutations",
31369
+ value: function getExternalMutations(props) {
31370
+ var sharedEvents = props.sharedEvents,
31371
+ externalEventMutations = props.externalEventMutations;
31372
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_11__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
31373
+ }
31374
+ }, {
31375
+ key: "cacheValues",
31376
+ value: function cacheValues(obj) {
31377
+ var _this7 = this;
30889
31378
 
30890
- var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
31379
+ lodash_keys__WEBPACK_IMPORTED_MODULE_6___default()(obj).forEach(function (key) {
31380
+ _this7[key] = obj[key];
31381
+ });
31382
+ }
31383
+ }, {
31384
+ key: "getBaseProps",
31385
+ value: function getBaseProps(props, getSharedEventState) {
31386
+ getSharedEventState = getSharedEventState || this.getSharedEventState;
31387
+ var sharedParentState = getSharedEventState("parent", "parent");
31388
+ var parentState = this.getEventState("parent", "parent");
30891
31389
 
30892
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
30893
- }
30894
- }, {
30895
- key: "getAllEvents",
30896
- value: function getAllEvents(props) {
30897
- if (Array.isArray(this.componentEvents)) {
30898
- var _componentEvents;
31390
+ var baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentState, sharedParentState);
30899
31391
 
30900
- return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
30901
- }
31392
+ var parentPropsList = baseParentProps.parentControlledProps;
31393
+ var parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_4___default()(baseParentProps, parentPropsList) : {};
30902
31394
 
30903
- return props.events;
30904
- }
30905
- }, {
30906
- key: "getComponentProps",
30907
- value: function getComponentProps(component, type, index) {
30908
- var name = this.props.name || WrappedComponent.role;
30909
- var key = this.dataKeys && this.dataKeys[index] || index;
30910
- var id = "".concat(name, "-").concat(type, "-").concat(key);
30911
- var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key];
30912
-
30913
- if (!baseProps && !this.hasEvents) {
30914
- return undefined;
30915
- }
31395
+ var modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, parentProps, props);
30916
31396
 
30917
- if (this.hasEvents) {
30918
- var baseEvents = this.getEvents(this.props, type, key);
31397
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_5___default()(WrappedComponent.getBaseProps) ? WrappedComponent.getBaseProps(modifiedProps) : {};
31398
+ }
31399
+ }, {
31400
+ key: "getAllEvents",
31401
+ value: function getAllEvents(props) {
31402
+ if (Array.isArray(this.componentEvents)) {
31403
+ var _componentEvents;
30919
31404
 
30920
- var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
30921
- index: index,
30922
- key: id
30923
- }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
30924
- id: id
30925
- });
31405
+ return Array.isArray(props.events) ? (_componentEvents = this.componentEvents).concat.apply(_componentEvents, _toConsumableArray(props.events)) : this.componentEvents;
31406
+ }
30926
31407
 
30927
- var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
31408
+ return props.events;
31409
+ }
31410
+ }, {
31411
+ key: "getComponentProps",
31412
+ value: function getComponentProps(component, type, index) {
31413
+ var name = this.props.name || WrappedComponent.role;
31414
+ var key = this.dataKeys && this.dataKeys[index] || index;
31415
+ var id = "".concat(name, "-").concat(type, "-").concat(key);
31416
+ var baseProps = this.baseProps[key] && this.baseProps[key][type] || this.baseProps[key];
31417
+
31418
+ if (!baseProps && !this.hasEvents) {
31419
+ return undefined;
31420
+ }
30928
31421
 
30929
- return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
30930
- events: events
30931
- });
30932
- }
31422
+ if (this.hasEvents) {
31423
+ var baseEvents = this.getEvents(this.props, type, key);
30933
31424
 
30934
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
31425
+ var componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
30935
31426
  index: index,
30936
31427
  key: id
30937
- }, component.props, baseProps, {
31428
+ }, this.getEventState(key, type), this.getSharedEventState(key, type), component.props, baseProps, {
30938
31429
  id: id
30939
31430
  });
31431
+
31432
+ var events = lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({}, _events__WEBPACK_IMPORTED_MODULE_11__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
31433
+
31434
+ return lodash_assign__WEBPACK_IMPORTED_MODULE_7___default()({}, componentProps, {
31435
+ events: events
31436
+ });
30940
31437
  }
30941
- }, {
30942
- key: "renderContainer",
30943
- value: function renderContainer(component, children) {
30944
- var isContainer = component.type && component.type.role === "container";
30945
- var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
30946
-
30947
- if (parentProps.events) {
30948
- this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(parentProps.events);
30949
- parentProps.events = _events__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(parentProps.events);
30950
- }
30951
31438
 
30952
- return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(component, parentProps, children);
31439
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_8___default()({
31440
+ index: index,
31441
+ key: id
31442
+ }, component.props, baseProps, {
31443
+ id: id
31444
+ });
31445
+ }
31446
+ }, {
31447
+ key: "renderContainer",
31448
+ value: function renderContainer(component, children) {
31449
+ var isContainer = component.type && component.type.role === "container";
31450
+ var parentProps = isContainer ? this.getComponentProps(component, "parent", "parent") : {};
31451
+
31452
+ if (parentProps.events) {
31453
+ this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_11__.getGlobalEvents(parentProps.events);
31454
+ parentProps.events = _events__WEBPACK_IMPORTED_MODULE_11__.omitGlobalEvents(parentProps.events);
30953
31455
  }
30954
- }, {
30955
- key: "animateComponent",
30956
- value: function animateComponent(props, defaultAnimationWhitelist) {
30957
- var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
30958
- return react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.default, {
30959
- animate: props.animate,
30960
- animationWhitelist: animationWhitelist
30961
- }, react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
30962
- } // Used by `VictoryLine` and `VictoryArea`
30963
31456
 
30964
- }, {
30965
- key: "renderContinuousData",
30966
- value: function renderContinuousData(props) {
30967
- var _this8 = this;
31457
+ return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(component, parentProps, children);
31458
+ }
31459
+ }, {
31460
+ key: "animateComponent",
31461
+ value: function animateComponent(props, defaultAnimationWhitelist) {
31462
+ var animationWhitelist = props.animate && props.animate.animationWhitelist ? props.animate.animationWhitelist : defaultAnimationWhitelist;
31463
+ return react__WEBPACK_IMPORTED_MODULE_9___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_12__.default, {
31464
+ animate: props.animate,
31465
+ animationWhitelist: animationWhitelist
31466
+ }, react__WEBPACK_IMPORTED_MODULE_9___default().createElement(this.constructor, props));
31467
+ } // Used by `VictoryLine` and `VictoryArea`
30968
31468
 
30969
- var dataComponent = props.dataComponent,
30970
- labelComponent = props.labelComponent,
30971
- groupComponent = props.groupComponent;
31469
+ }, {
31470
+ key: "renderContinuousData",
31471
+ value: function renderContinuousData(props) {
31472
+ var _this8 = this;
30972
31473
 
30973
- var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
31474
+ var dataComponent = props.dataComponent,
31475
+ labelComponent = props.labelComponent,
31476
+ groupComponent = props.groupComponent;
30974
31477
 
30975
- var labelComponents = dataKeys.reduce(function (memo, key) {
30976
- var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
31478
+ var dataKeys = lodash_without__WEBPACK_IMPORTED_MODULE_3___default()(this.dataKeys, "all");
30977
31479
 
30978
- if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
30979
- memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps));
30980
- }
31480
+ var labelComponents = dataKeys.reduce(function (memo, key) {
31481
+ var labelProps = _this8.getComponentProps(labelComponent, "labels", key);
30981
31482
 
30982
- return memo;
30983
- }, []);
30984
- var dataProps = this.getComponentProps(dataComponent, "data", "all");
30985
- var children = [react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
30986
- return this.renderContainer(groupComponent, children);
30987
- }
30988
- }, {
30989
- key: "renderData",
30990
- value: function renderData(props) {
30991
- var _this9 = this;
30992
-
30993
- var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
30994
- var dataComponent = props.dataComponent,
30995
- labelComponent = props.labelComponent,
30996
- groupComponent = props.groupComponent;
30997
- var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
30998
- var dataProps = _this9.getComponentProps(dataComponent, "data", index);
30999
-
31000
- if (shouldRenderDatum(dataProps.datum)) {
31001
- validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps));
31002
- }
31483
+ if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
31484
+ memo = memo.concat(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps));
31485
+ }
31003
31486
 
31004
- return validDataComponents;
31005
- }, []);
31006
- var labelComponents = this.dataKeys.map(function (_dataKey, index) {
31007
- var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
31487
+ return memo;
31488
+ }, []);
31489
+ var dataProps = this.getComponentProps(dataComponent, "data", "all");
31490
+ var children = [react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps)].concat(_toConsumableArray(labelComponents));
31491
+ return this.renderContainer(groupComponent, children);
31492
+ }
31493
+ }, {
31494
+ key: "renderData",
31495
+ value: function renderData(props) {
31496
+ var _this9 = this;
31008
31497
 
31009
- if (labelProps.text !== undefined && labelProps.text !== null) {
31010
- return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps);
31011
- }
31498
+ var shouldRenderDatum = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : datumHasXandY;
31499
+ var dataComponent = props.dataComponent,
31500
+ labelComponent = props.labelComponent,
31501
+ groupComponent = props.groupComponent;
31502
+ var dataComponents = this.dataKeys.reduce(function (validDataComponents, _dataKey, index) {
31503
+ var dataProps = _this9.getComponentProps(dataComponent, "data", index);
31012
31504
 
31013
- return undefined;
31014
- }).filter(Boolean);
31505
+ if (shouldRenderDatum(dataProps.datum)) {
31506
+ validDataComponents.push(react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(dataComponent, dataProps));
31507
+ }
31015
31508
 
31016
- var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents));
31509
+ return validDataComponents;
31510
+ }, []);
31511
+ var labelComponents = this.dataKeys.map(function (_dataKey, index) {
31512
+ var labelProps = _this9.getComponentProps(labelComponent, "labels", index);
31017
31513
 
31018
- return this.renderContainer(groupComponent, children);
31019
- }
31020
- }]);
31514
+ if (labelProps.text !== undefined && labelProps.text !== null) {
31515
+ return react__WEBPACK_IMPORTED_MODULE_9___default().cloneElement(labelComponent, labelProps);
31516
+ }
31021
31517
 
31022
- return addEvents;
31023
- }(WrappedComponent)
31024
- );
31518
+ return undefined;
31519
+ }).filter(Boolean);
31520
+
31521
+ var children = _toConsumableArray(dataComponents).concat(_toConsumableArray(labelComponents));
31522
+
31523
+ return this.renderContainer(groupComponent, children);
31524
+ }
31525
+ }]);
31526
+
31527
+ return addEvents;
31528
+ }(WrappedComponent);
31025
31529
  });
31026
31530
 
31027
31531
  /***/ }),
@@ -34165,6 +34669,68 @@ function getProps(props, index) {
34165
34669
 
34166
34670
  /***/ }),
34167
34671
 
34672
+ /***/ "../../victory-core/es/victory-util/line-helpers.js":
34673
+ /*!**********************************************************!*\
34674
+ !*** ../../victory-core/es/victory-util/line-helpers.js ***!
34675
+ \**********************************************************/
34676
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
34677
+
34678
+ "use strict";
34679
+ __webpack_require__.r(__webpack_exports__);
34680
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
34681
+ /* harmony export */ "getLineFunction": () => (/* binding */ getLineFunction)
34682
+ /* harmony export */ });
34683
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/lineRadial.js");
34684
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/index.js");
34685
+ /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/line.js");
34686
+
34687
+
34688
+ var defined = function (d) {
34689
+ var y = d._y1 !== undefined ? d._y1 : d._y;
34690
+ return y !== null && y !== undefined && d._y0 !== null;
34691
+ };
34692
+
34693
+ var getXAccessor = function (scale) {
34694
+ return function (d) {
34695
+ return scale.x(d._x1 !== undefined ? d._x1 : d._x);
34696
+ };
34697
+ };
34698
+
34699
+ var getYAccessor = function (scale) {
34700
+ return function (d) {
34701
+ return scale.y(d._y1 !== undefined ? d._y1 : d._y);
34702
+ };
34703
+ };
34704
+
34705
+ var getAngleAccessor = function (scale) {
34706
+ return function (d) {
34707
+ var x = scale.x(d._x1 !== undefined ? d._x1 : d._x);
34708
+ return -1 * x + Math.PI / 2;
34709
+ };
34710
+ };
34711
+
34712
+ var toNewName = function (interpolation) {
34713
+ // d3 shape changed the naming scheme for interpolators from "basis" -> "curveBasis" etc.
34714
+ var capitalize = function (s) {
34715
+ return s && s[0].toUpperCase() + s.slice(1);
34716
+ };
34717
+
34718
+ return "curve".concat(capitalize(interpolation));
34719
+ };
34720
+
34721
+ var getLineFunction = function (props) {
34722
+ var polar = props.polar,
34723
+ scale = props.scale,
34724
+ horizontal = props.horizontal;
34725
+ var defaultOpenCurve = polar ? false : true;
34726
+ var openCurve = props.openCurve === undefined ? defaultOpenCurve : props.openCurve;
34727
+ var interpolationFunction = typeof props.interpolation === "function" && props.interpolation;
34728
+ var interpolationName = typeof props.interpolation === "string" && (!openCurve ? "".concat(toNewName(props.interpolation), "Closed") : toNewName(props.interpolation));
34729
+ return polar ? d3_shape__WEBPACK_IMPORTED_MODULE_0__.default().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_1__[interpolationName]).angle(getAngleAccessor(scale)).radius(getYAccessor(scale)) : d3_shape__WEBPACK_IMPORTED_MODULE_2__.default().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_1__[interpolationName]).x(horizontal ? getYAccessor(scale) : getXAccessor(scale)).y(horizontal ? getXAccessor(scale) : getYAccessor(scale));
34730
+ };
34731
+
34732
+ /***/ }),
34733
+
34168
34734
  /***/ "../../victory-core/es/victory-util/log.js":
34169
34735
  /*!*************************************************!*\
34170
34736
  !*** ../../victory-core/es/victory-util/log.js ***!
@@ -34191,6 +34757,95 @@ function warn(message) {
34191
34757
 
34192
34758
  /***/ }),
34193
34759
 
34760
+ /***/ "../../victory-core/es/victory-util/point-path-helpers.js":
34761
+ /*!****************************************************************!*\
34762
+ !*** ../../victory-core/es/victory-util/point-path-helpers.js ***!
34763
+ \****************************************************************/
34764
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
34765
+
34766
+ "use strict";
34767
+ __webpack_require__.r(__webpack_exports__);
34768
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
34769
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
34770
+ /* harmony export */ });
34771
+ /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/lodash/range.js");
34772
+ /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__);
34773
+
34774
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
34775
+ circle: function (x, y, size) {
34776
+ return "M ".concat(x, ", ").concat(y, "\n m ").concat(-size, ", 0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(size * 2, ",0\n a ").concat(size, ", ").concat(size, " 0 1,0 ").concat(-size * 2, ",0");
34777
+ },
34778
+ square: function (x, y, size) {
34779
+ var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
34780
+
34781
+ var x0 = x - baseSize;
34782
+ var y1 = y + baseSize;
34783
+ var distance = x + baseSize - x0;
34784
+ return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(distance, "\n h-").concat(distance, "\n z");
34785
+ },
34786
+ diamond: function (x, y, size) {
34787
+ var baseSize = 0.87 * size; // eslint-disable-line no-magic-numbers
34788
+
34789
+ var length = Math.sqrt(2 * (baseSize * baseSize));
34790
+ return "M ".concat(x, ", ").concat(y + length, "\n l ").concat(length, ", -").concat(length, "\n l -").concat(length, ", -").concat(length, "\n l -").concat(length, ", ").concat(length, "\n l ").concat(length, ", ").concat(length, "\n z");
34791
+ },
34792
+ triangleDown: function (x, y, size) {
34793
+ var height = size / 2 * Math.sqrt(3);
34794
+ var x0 = x - size;
34795
+ var x1 = x + size;
34796
+ var y0 = y - size;
34797
+ var y1 = y + height;
34798
+ return "M ".concat(x0, ", ").concat(y0, "\n L ").concat(x1, ", ").concat(y0, "\n L ").concat(x, ", ").concat(y1, "\n z");
34799
+ },
34800
+ triangleUp: function (x, y, size) {
34801
+ var height = size / 2 * Math.sqrt(3);
34802
+ var x0 = x - size;
34803
+ var x1 = x + size;
34804
+ var y0 = y - height;
34805
+ var y1 = y + size;
34806
+ return "M ".concat(x0, ", ").concat(y1, "\n L ").concat(x1, ", ").concat(y1, "\n L ").concat(x, ", ").concat(y0, "\n z");
34807
+ },
34808
+ plus: function (x, y, size) {
34809
+ var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
34810
+
34811
+ var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
34812
+
34813
+ return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize, "\n v-").concat(distance, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance, "\n z");
34814
+ },
34815
+ cross: function (x, y, size) {
34816
+ var baseSize = 0.8 * size; // eslint-disable-line no-magic-numbers
34817
+
34818
+ var distance = baseSize / 1.5; // eslint-disable-line no-magic-numbers
34819
+
34820
+ return "\n M ".concat(x - distance / 2, ", ").concat(y + baseSize + distance, "\n v-").concat(distance * 2, "\n h-").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v-").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h").concat(distance, "\n v").concat(distance, "\n h-").concat(distance, "\n v").concat(distance * 2, "\n z");
34821
+ },
34822
+ minus: function (x, y, size) {
34823
+ var baseSize = 1.1 * size; // eslint-disable-line no-magic-numbers
34824
+
34825
+ var lineHeight = baseSize - baseSize * 0.3; // eslint-disable-line no-magic-numbers
34826
+
34827
+ var x0 = x - baseSize;
34828
+ var y1 = y + lineHeight / 2;
34829
+ var distance = x + baseSize - x0;
34830
+ return "M ".concat(x0, ", ").concat(y1, "\n h").concat(distance, "\n v-").concat(lineHeight, "\n h-").concat(distance, "\n z");
34831
+ },
34832
+ star: function (x, y, size) {
34833
+ var baseSize = 1.35 * size; // eslint-disable-line no-magic-numbers
34834
+
34835
+ var angle = Math.PI / 5; // eslint-disable-line no-magic-numbers
34836
+ // eslint-disable-next-line no-magic-numbers
34837
+
34838
+ var starCoords = lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(10).map(function (index) {
34839
+ var length = index % 2 === 0 ? baseSize : baseSize / 2;
34840
+ return "".concat(length * Math.sin(angle * (index + 1)) + x, ",\n ").concat(length * Math.cos(angle * (index + 1)) + y);
34841
+ });
34842
+
34843
+ return "M ".concat(starCoords.join("L"), " z");
34844
+ }
34845
+ });
34846
+
34847
+ /***/ }),
34848
+
34194
34849
  /***/ "../../victory-core/es/victory-util/prop-types.js":
34195
34850
  /*!********************************************************!*\
34196
34851
  !*** ../../victory-core/es/victory-util/prop-types.js ***!
@@ -35186,9 +35841,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
35186
35841
 
35187
35842
 
35188
35843
 
35189
- var Timer =
35190
- /*#__PURE__*/
35191
- function () {
35844
+ var Timer = /*#__PURE__*/function () {
35192
35845
  function Timer() {
35193
35846
  _classCallCheck(this, Timer);
35194
35847
 
@@ -36363,9 +37016,7 @@ var combineContainerMixins = function (mixins, Container) {
36363
37016
  var match = Class.displayName.match(/Victory(.*)Container/);
36364
37017
  return match[1] || "";
36365
37018
  }).join("");
36366
- return _temp = _class =
36367
- /*#__PURE__*/
36368
- function (_NaiveCombinedContain) {
37019
+ return _temp = _class = /*#__PURE__*/function (_NaiveCombinedContain) {
36369
37020
  _inherits(VictoryCombinedContainer, _NaiveCombinedContain);
36370
37021
 
36371
37022
  function VictoryCombinedContainer() {
@@ -36639,9 +37290,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
36639
37290
  var cursorContainerMixin = function (base) {
36640
37291
  var _class, _temp;
36641
37292
 
36642
- return _temp = _class =
36643
- /*#__PURE__*/
36644
- function (_base) {
37293
+ return _temp = _class = /*#__PURE__*/function (_base) {
36645
37294
  _inherits(VictoryCursorContainer, _base);
36646
37295
 
36647
37296
  function VictoryCursorContainer() {
@@ -37340,9 +37989,7 @@ var defaultData = [{
37340
37989
  errorY: 0.4
37341
37990
  }];
37342
37991
 
37343
- var VictoryErrorBar =
37344
- /*#__PURE__*/
37345
- function (_React$Component) {
37992
+ var VictoryErrorBar = /*#__PURE__*/function (_React$Component) {
37346
37993
  _inherits(VictoryErrorBar, _React$Component);
37347
37994
 
37348
37995
  function VictoryErrorBar() {
@@ -38223,9 +38870,7 @@ var fallbackProps = {
38223
38870
  padding: 50
38224
38871
  };
38225
38872
  var defaultData = [];
38226
- var VictoryHistogram =
38227
- /*#__PURE__*/
38228
- function (_React$Component) {
38873
+ var VictoryHistogram = /*#__PURE__*/function (_React$Component) {
38229
38874
  _inherits(VictoryHistogram, _React$Component);
38230
38875
 
38231
38876
  function VictoryHistogram() {
@@ -39306,9 +39951,7 @@ var defaultLegendData = [{
39306
39951
  name: "Series 2"
39307
39952
  }];
39308
39953
 
39309
- var VictoryLegend =
39310
- /*#__PURE__*/
39311
- function (_React$Component) {
39954
+ var VictoryLegend = /*#__PURE__*/function (_React$Component) {
39312
39955
  _inherits(VictoryLegend, _React$Component);
39313
39956
 
39314
39957
  function VictoryLegend() {
@@ -39518,12 +40161,10 @@ __webpack_require__.r(__webpack_exports__);
39518
40161
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
39519
40162
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
39520
40163
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
39521
- /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/lineRadial.js");
39522
- /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/index.js");
39523
- /* harmony import */ var d3_shape__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! d3-shape */ "../../../node_modules/d3-shape/src/line.js");
39524
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
39525
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
39526
- /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
40164
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
40165
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/line-helpers.js");
40166
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/common-props.js");
40167
+ /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
39527
40168
 
39528
40169
 
39529
40170
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
@@ -39535,51 +40176,6 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
39535
40176
 
39536
40177
 
39537
40178
 
39538
-
39539
- var defined = function (d) {
39540
- var y = d._y1 !== undefined ? d._y1 : d._y;
39541
- return y !== null && y !== undefined && d._y0 !== null;
39542
- };
39543
-
39544
- var getXAccessor = function (scale) {
39545
- return function (d) {
39546
- return scale.x(d._x1 !== undefined ? d._x1 : d._x);
39547
- };
39548
- };
39549
-
39550
- var getYAccessor = function (scale) {
39551
- return function (d) {
39552
- return scale.y(d._y1 !== undefined ? d._y1 : d._y);
39553
- };
39554
- };
39555
-
39556
- var getAngleAccessor = function (scale) {
39557
- return function (d) {
39558
- var x = scale.x(d._x1 !== undefined ? d._x1 : d._x);
39559
- return -1 * x + Math.PI / 2;
39560
- };
39561
- };
39562
-
39563
- var toNewName = function (interpolation) {
39564
- // d3 shape changed the naming scheme for interpolators from "basis" -> "curveBasis" etc.
39565
- var capitalize = function (s) {
39566
- return s && s[0].toUpperCase() + s.slice(1);
39567
- };
39568
-
39569
- return "curve".concat(capitalize(interpolation));
39570
- };
39571
-
39572
- var getLineFunction = function (props) {
39573
- var polar = props.polar,
39574
- scale = props.scale,
39575
- horizontal = props.horizontal;
39576
- var defaultOpenCurve = polar ? false : true;
39577
- var openCurve = props.openCurve === undefined ? defaultOpenCurve : props.openCurve;
39578
- var interpolationFunction = typeof props.interpolation === "function" && props.interpolation;
39579
- var interpolationName = typeof props.interpolation === "string" && (!openCurve ? "".concat(toNewName(props.interpolation), "Closed") : toNewName(props.interpolation));
39580
- return polar ? d3_shape__WEBPACK_IMPORTED_MODULE_3__.default().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_4__[interpolationName]).angle(getAngleAccessor(scale)).radius(getYAccessor(scale)) : d3_shape__WEBPACK_IMPORTED_MODULE_5__.default().defined(defined).curve(interpolationFunction || d3_shape__WEBPACK_IMPORTED_MODULE_4__[interpolationName]).x(horizontal ? getYAccessor(scale) : getXAccessor(scale)).y(horizontal ? getXAccessor(scale) : getYAccessor(scale));
39581
- };
39582
-
39583
40179
  var evaluateProps = function (props) {
39584
40180
  /**
39585
40181
  * Potential evaluated props are:
@@ -39588,13 +40184,13 @@ var evaluateProps = function (props) {
39588
40184
  * `style`
39589
40185
  * `tabIndex`
39590
40186
  */
39591
- var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(props.ariaLabel, props);
39592
- var id = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(props.id, props);
39593
- var style = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
40187
+ var ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.ariaLabel, props);
40188
+ var id = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.id, props);
40189
+ var style = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({
39594
40190
  fill: "none",
39595
40191
  stroke: "black"
39596
40192
  }, props.style), props);
39597
- var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_6__.evaluateProp(props.tabIndex, props);
40193
+ var tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.tabIndex, props);
39598
40194
  return lodash_assign__WEBPACK_IMPORTED_MODULE_0___default()({}, props, {
39599
40195
  ariaLabel: ariaLabel,
39600
40196
  id: id,
@@ -39608,7 +40204,7 @@ var Curve = function (props) {
39608
40204
  var _props = props,
39609
40205
  polar = _props.polar,
39610
40206
  origin = _props.origin;
39611
- var lineFunction = getLineFunction(props);
40207
+ var lineFunction = victory_core__WEBPACK_IMPORTED_MODULE_4__.getLineFunction(props);
39612
40208
  var defaultTransform = polar && origin ? "translate(".concat(origin.x, ", ").concat(origin.y, ")") : undefined;
39613
40209
  return react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, _objectSpread({}, props.events, {
39614
40210
  "aria-label": props.ariaLabel,
@@ -39623,7 +40219,7 @@ var Curve = function (props) {
39623
40219
  }));
39624
40220
  };
39625
40221
 
39626
- Curve.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_7__.primitiveProps, {
40222
+ Curve.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.primitiveProps, {
39627
40223
  interpolation: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_2___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func)]),
39628
40224
  openCurve: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
39629
40225
  origin: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().object),
@@ -39631,7 +40227,7 @@ Curve.propTypes = _objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_7__.pr
39631
40227
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
39632
40228
  });
39633
40229
  Curve.defaultProps = {
39634
- pathComponent: react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_8__.default, null),
40230
+ pathComponent: react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_6__.default, null),
39635
40231
  role: "presentation",
39636
40232
  shapeRendering: "auto"
39637
40233
  };
@@ -39830,9 +40426,7 @@ var options = {
39830
40426
  }]
39831
40427
  };
39832
40428
 
39833
- var VictoryLine =
39834
- /*#__PURE__*/
39835
- function (_React$Component) {
40429
+ var VictoryLine = /*#__PURE__*/function (_React$Component) {
39836
40430
  _inherits(VictoryLine, _React$Component);
39837
40431
 
39838
40432
  function VictoryLine() {
@@ -40482,9 +41076,7 @@ var fallbackProps = {
40482
41076
  labelPosition: "centroid"
40483
41077
  };
40484
41078
 
40485
- var VictoryPie =
40486
- /*#__PURE__*/
40487
- function (_React$Component) {
41079
+ var VictoryPie = /*#__PURE__*/function (_React$Component) {
40488
41080
  _inherits(VictoryPie, _React$Component);
40489
41081
 
40490
41082
  function VictoryPie() {
@@ -41214,9 +41806,7 @@ var options = {
41214
41806
  }]
41215
41807
  };
41216
41808
 
41217
- var VictoryPolarAxis =
41218
- /*#__PURE__*/
41219
- function (_React$Component) {
41809
+ var VictoryPolarAxis = /*#__PURE__*/function (_React$Component) {
41220
41810
  _inherits(VictoryPolarAxis, _React$Component);
41221
41811
 
41222
41812
  function VictoryPolarAxis() {
@@ -41716,9 +42306,7 @@ var fallbackProps = {
41716
42306
  symbol: "circle"
41717
42307
  };
41718
42308
 
41719
- var VictoryScatter =
41720
- /*#__PURE__*/
41721
- function (_React$Component) {
42309
+ var VictoryScatter = /*#__PURE__*/function (_React$Component) {
41722
42310
  _inherits(VictoryScatter, _React$Component);
41723
42311
 
41724
42312
  function VictoryScatter() {
@@ -42175,9 +42763,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
42175
42763
  var selectionContainerMixin = function (base) {
42176
42764
  var _class, _temp;
42177
42765
 
42178
- return _temp = _class =
42179
- /*#__PURE__*/
42180
- function (_base) {
42766
+ return _temp = _class = /*#__PURE__*/function (_base) {
42181
42767
  _inherits(VictorySelectionContainer, _base);
42182
42768
 
42183
42769
  function VictorySelectionContainer() {
@@ -42366,9 +42952,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
42366
42952
 
42367
42953
 
42368
42954
 
42369
- var VictorySharedEvents =
42370
- /*#__PURE__*/
42371
- function (_React$Component) {
42955
+ var VictorySharedEvents = /*#__PURE__*/function (_React$Component) {
42372
42956
  _inherits(VictorySharedEvents, _React$Component);
42373
42957
 
42374
42958
  function VictorySharedEvents(props) {
@@ -43356,9 +43940,7 @@ var fallbackProps = {
43356
43940
  pointerWidth: 10
43357
43941
  };
43358
43942
 
43359
- var VictoryTooltip =
43360
- /*#__PURE__*/
43361
- function (_React$Component) {
43943
+ var VictoryTooltip = /*#__PURE__*/function (_React$Component) {
43362
43944
  _inherits(VictoryTooltip, _React$Component);
43363
43945
 
43364
43946
  function VictoryTooltip(props) {
@@ -44047,9 +44629,7 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
44047
44629
  var voronoiContainerMixin = function (base) {
44048
44630
  var _class, _temp;
44049
44631
 
44050
- return _temp = _class =
44051
- /*#__PURE__*/
44052
- function (_base) {
44632
+ return _temp = _class = /*#__PURE__*/function (_base) {
44053
44633
  _inherits(VictoryVoronoiContainer, _base);
44054
44634
 
44055
44635
  function VictoryVoronoiContainer() {
@@ -44851,9 +45431,7 @@ var fallbackProps = {
44851
45431
  padding: 50
44852
45432
  };
44853
45433
 
44854
- var VictoryVoronoi =
44855
- /*#__PURE__*/
44856
- function (_React$Component) {
45434
+ var VictoryVoronoi = /*#__PURE__*/function (_React$Component) {
44857
45435
  _inherits(VictoryVoronoi, _React$Component);
44858
45436
 
44859
45437
  function VictoryVoronoi() {
@@ -45158,9 +45736,7 @@ var DEFAULT_DOWNSAMPLE = 150;
45158
45736
  var zoomContainerMixin = function (base) {
45159
45737
  var _class, _temp;
45160
45738
 
45161
- return _temp = _class =
45162
- /*#__PURE__*/
45163
- function (_base) {
45739
+ return _temp = _class = /*#__PURE__*/function (_base) {
45164
45740
  _inherits(VictoryZoomContainer, _base);
45165
45741
 
45166
45742
  function VictoryZoomContainer() {
@@ -46030,7 +46606,12 @@ __webpack_require__.r(__webpack_exports__);
46030
46606
  /* harmony export */ "VictoryLegend": () => (/* reexport safe */ victory_legend__WEBPACK_IMPORTED_MODULE_72__.default),
46031
46607
  /* harmony export */ "VictorySharedEvents": () => (/* reexport safe */ victory_shared_events__WEBPACK_IMPORTED_MODULE_73__.default),
46032
46608
  /* harmony export */ "VictoryAxis": () => (/* reexport safe */ victory_axis__WEBPACK_IMPORTED_MODULE_74__.default),
46033
- /* harmony export */ "VictoryPolarAxis": () => (/* reexport safe */ victory_polar_axis__WEBPACK_IMPORTED_MODULE_75__.default)
46609
+ /* harmony export */ "VictoryPolarAxis": () => (/* reexport safe */ victory_polar_axis__WEBPACK_IMPORTED_MODULE_75__.default),
46610
+ /* harmony export */ "CanvasGroup": () => (/* reexport safe */ victory_canvas__WEBPACK_IMPORTED_MODULE_76__.default),
46611
+ /* harmony export */ "CanvasCurve": () => (/* reexport safe */ victory_canvas__WEBPACK_IMPORTED_MODULE_77__.default),
46612
+ /* harmony export */ "CanvasPoint": () => (/* reexport safe */ victory_canvas__WEBPACK_IMPORTED_MODULE_78__.default),
46613
+ /* harmony export */ "CanvasBar": () => (/* reexport safe */ victory_canvas__WEBPACK_IMPORTED_MODULE_79__.default),
46614
+ /* harmony export */ "useCanvasContext": () => (/* reexport safe */ victory_canvas__WEBPACK_IMPORTED_MODULE_80__.useCanvasContext)
46034
46615
  /* harmony export */ });
46035
46616
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/background.js");
46036
46617
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/border.js");
@@ -46108,6 +46689,12 @@ __webpack_require__.r(__webpack_exports__);
46108
46689
  /* harmony import */ var victory_shared_events__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! victory-shared-events */ "../../victory-shared-events/es/victory-shared-events.js");
46109
46690
  /* harmony import */ var victory_axis__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! victory-axis */ "../../victory-axis/es/victory-axis.js");
46110
46691
  /* harmony import */ var victory_polar_axis__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! victory-polar-axis */ "../../victory-polar-axis/es/victory-polar-axis.js");
46692
+ /* harmony import */ var victory_canvas__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! victory-canvas */ "../../victory-canvas/es/canvas-group.js");
46693
+ /* harmony import */ var victory_canvas__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! victory-canvas */ "../../victory-canvas/es/canvas-curve.js");
46694
+ /* harmony import */ var victory_canvas__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! victory-canvas */ "../../victory-canvas/es/canvas-point.js");
46695
+ /* harmony import */ var victory_canvas__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! victory-canvas */ "../../victory-canvas/es/canvas-bar.js");
46696
+ /* harmony import */ var victory_canvas__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! victory-canvas */ "../../victory-canvas/es/hooks/use-canvas-context.js");
46697
+
46111
46698
 
46112
46699
 
46113
46700