victory-legend 37.3.2 → 37.3.3

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.
@@ -23,12 +23,12 @@ __webpack_require__.r(__webpack_exports__);
23
23
  /* harmony export */ "getBaseProps": function() { return /* binding */ getBaseProps; },
24
24
  /* harmony export */ "getDimensions": function() { return /* binding */ getDimensions; }
25
25
  /* harmony export */ });
26
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js");
27
- /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_0__);
26
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
27
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
28
28
  /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/groupBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/groupBy.js");
29
29
  /* harmony import */ var lodash_groupBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_groupBy__WEBPACK_IMPORTED_MODULE_1__);
30
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
31
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
30
+ /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/range */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/range.js");
31
+ /* harmony import */ var lodash_range__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_range__WEBPACK_IMPORTED_MODULE_2__);
32
32
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/style.js");
33
33
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
34
34
  /* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/textsize.js");
@@ -49,7 +49,7 @@ const getLabelStyles = props => {
49
49
  style
50
50
  } = props;
51
51
  return data.map((datum, index) => {
52
- const baseLabelStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, datum.labels, style.labels);
52
+ const baseLabelStyles = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, datum.labels, style.labels);
53
53
  return victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(baseLabelStyles, {
54
54
  datum,
55
55
  index,
@@ -67,11 +67,11 @@ const getStyles = function (props, styleObject) {
67
67
  width: "100%"
68
68
  };
69
69
  return {
70
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(style.parent, styleObject.parent, parentStyleProps),
71
- data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.data, styleObject.data),
72
- labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.labels, styleObject.labels),
73
- border: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.border, styleObject.border),
74
- title: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, style.title, styleObject.title)
70
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(style.parent, styleObject.parent, parentStyleProps),
71
+ data: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.data, styleObject.data),
72
+ labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.labels, styleObject.labels),
73
+ border: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.border, styleObject.border),
74
+ title: lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, style.title, styleObject.title)
75
75
  };
76
76
  };
77
77
  const getCalculatedValues = props => {
@@ -83,9 +83,7 @@ const getCalculatedValues = props => {
83
83
  const style = getStyles(props, defaultStyles);
84
84
  const colorScale = getColorScale(props);
85
85
  const isHorizontal = orientation === "horizontal";
86
- const borderPadding = victory_core__WEBPACK_IMPORTED_MODULE_4__.getPadding({
87
- padding: props.borderPadding
88
- });
86
+ const borderPadding = victory_core__WEBPACK_IMPORTED_MODULE_4__.getPadding(props.borderPadding);
89
87
  return Object.assign({}, props, {
90
88
  style,
91
89
  isHorizontal,
@@ -179,8 +177,8 @@ const getOffset = (datum, rowHeights, columnWidths) => {
179
177
  row
180
178
  } = datum;
181
179
  return {
182
- x: lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(column).reduce((memo, curr) => memo + columnWidths[curr], 0),
183
- y: lodash_range__WEBPACK_IMPORTED_MODULE_0___default()(row).reduce((memo, curr) => memo + rowHeights[curr], 0)
180
+ x: lodash_range__WEBPACK_IMPORTED_MODULE_2___default()(column).reduce((memo, curr) => memo + columnWidths[curr], 0),
181
+ y: lodash_range__WEBPACK_IMPORTED_MODULE_2___default()(row).reduce((memo, curr) => memo + rowHeights[curr], 0)
184
182
  };
185
183
  };
186
184
  const getAnchors = (titleOrientation, centerTitle) => {
@@ -206,7 +204,7 @@ const getTitleStyle = props => {
206
204
  const baseStyle = props.style && props.style.title || {};
207
205
  const componentStyle = titleComponent.props && titleComponent.props.style || {};
208
206
  const anchors = getAnchors(titleOrientation, centerTitle);
209
- return Array.isArray(componentStyle) ? componentStyle.map(obj => lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, obj, baseStyle, anchors)) : lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, componentStyle, baseStyle, anchors);
207
+ return Array.isArray(componentStyle) ? componentStyle.map(obj => lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, obj, baseStyle, anchors)) : lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, componentStyle, baseStyle, anchors);
210
208
  };
211
209
  const getTitleProps = (props, borderProps) => {
212
210
  const {
@@ -337,7 +335,7 @@ const getBaseProps = (initialProps, fallbackProps) => {
337
335
  };
338
336
  return groupedData.reduce((childProps, datum, i) => {
339
337
  const color = colorScale[i % colorScale.length];
340
- const dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, datum.symbol, style.data, {
338
+ const dataStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, datum.symbol, style.data, {
341
339
  fill: color
342
340
  });
343
341
  const eventKey = !victory_core__WEBPACK_IMPORTED_MODULE_4__.isNil(datum.eventKey) ? datum.eventKey : i;
@@ -5029,10 +5027,10 @@ __webpack_require__.r(__webpack_exports__);
5029
5027
  /* harmony export */ "isInterpolatable": function() { return /* binding */ isInterpolatable; },
5030
5028
  /* harmony export */ "victoryInterpolator": function() { return /* binding */ victoryInterpolator; }
5031
5029
  /* harmony export */ });
5032
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
5033
- /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_0__);
5034
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
5035
- /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1__);
5030
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isPlainObject.js");
5031
+ /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
5032
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/orderBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/orderBy.js");
5033
+ /* harmony import */ var lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_orderBy__WEBPACK_IMPORTED_MODULE_1__);
5036
5034
  /* harmony import */ var victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-interpolate */ "../../victory-vendor/es/d3-interpolate.js");
5037
5035
 
5038
5036
 
@@ -5058,7 +5056,7 @@ const isInterpolatable = function (obj) {
5058
5056
  return false;
5059
5057
  case "object":
5060
5058
  // Don't try to interpolate class instances (except Date or Array).
5061
- return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(obj);
5059
+ return obj instanceof Date || Array.isArray(obj) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(obj);
5062
5060
  case "function":
5063
5061
  // Careful! There may be extra properties on function objects that the
5064
5062
  // component expects to access - for instance, it may be a `d3.scale()`
@@ -5144,7 +5142,7 @@ const interpolateObject = function (startValue, endValue) {
5144
5142
  if (typeof x === "function" || typeof y === "function") {
5145
5143
  return interpolateFunction(x, y);
5146
5144
  }
5147
- if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(y)) {
5145
+ if (typeof x === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(x) || typeof y === "object" && lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(y)) {
5148
5146
  return interpolateObject(x, y);
5149
5147
  }
5150
5148
  return (0,victory_vendor_d3_interpolate__WEBPACK_IMPORTED_MODULE_2__.interpolate)(x, y);
@@ -5153,7 +5151,7 @@ const interpolateObject = function (startValue, endValue) {
5153
5151
  // When the value is an array, attempt to sort by "key" so that animating nodes may be identified
5154
5152
  // based on "key" instead of index
5155
5153
  const keyData = val => {
5156
- return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_0___default()(val, "key") : val;
5154
+ return Array.isArray(val) ? lodash_orderBy__WEBPACK_IMPORTED_MODULE_1___default()(val, "key") : val;
5157
5155
  };
5158
5156
  const i = {};
5159
5157
  const c = {};
@@ -5220,7 +5218,7 @@ const victoryInterpolator = function (a, b) {
5220
5218
  if (typeof a === "function" || typeof b === "function") {
5221
5219
  return interpolateFunction(a, b);
5222
5220
  }
5223
- if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_1___default()(b)) {
5221
+ if (lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(a) || lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default()(b)) {
5224
5222
  // @ts-expect-error These generics are tough, but they work :)
5225
5223
  return interpolateObject(a, b);
5226
5224
  }
@@ -5396,16 +5394,15 @@ __webpack_require__.r(__webpack_exports__);
5396
5394
  /* harmony export */ "VictoryContainer": function() { return /* binding */ VictoryContainer; },
5397
5395
  /* harmony export */ "useVictoryContainer": function() { return /* binding */ useVictoryContainer; }
5398
5396
  /* harmony export */ });
5399
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
5400
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
5401
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
5402
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
5397
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5398
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5399
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
5400
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1__);
5403
5401
  /* harmony import */ var _victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-portal/portal */ "../../victory-core/es/victory-portal/portal.js");
5404
5402
  /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
5405
5403
  /* harmony import */ var _victory_util__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util */ "../../victory-core/es/victory-util/merge-refs.js");
5406
5404
  /* harmony import */ var _victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-portal/portal-outlet */ "../../victory-core/es/victory-portal/portal-outlet.js");
5407
5405
  /* harmony import */ var _victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-portal/portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
5408
-
5409
5406
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5410
5407
 
5411
5408
 
@@ -5413,9 +5410,10 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
5413
5410
 
5414
5411
 
5415
5412
 
5413
+
5416
5414
  const defaultProps = {
5417
5415
  className: "VictoryContainer",
5418
- portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
5416
+ portalComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal__WEBPACK_IMPORTED_MODULE_2__.Portal, null),
5419
5417
  portalZIndex: 99,
5420
5418
  responsive: true,
5421
5419
  role: "img"
@@ -5432,10 +5430,10 @@ function useVictoryContainer(initialProps) {
5432
5430
  height,
5433
5431
  responsive
5434
5432
  } = props;
5435
- const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
5433
+ const localContainerRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
5436
5434
 
5437
5435
  // Generated ID stored in ref because it needs to persist across renders
5438
- const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()("victory-container-"));
5436
+ const generatedId = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_1___default()("victory-container-"));
5439
5437
  const containerId = props.containerId ?? generatedId.current;
5440
5438
  const getIdForElement = elName => `${containerId}-${elName}`;
5441
5439
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
@@ -5494,7 +5492,7 @@ const VictoryContainer = initialProps => {
5494
5492
  containerRef,
5495
5493
  localContainerRef
5496
5494
  } = useVictoryContainer(initialProps);
5497
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
5495
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
5498
5496
  if (!events?.onWheel) return;
5499
5497
  const handleWheel = e => e.preventDefault();
5500
5498
  const container = localContainerRef?.current;
@@ -5504,7 +5502,7 @@ const VictoryContainer = initialProps => {
5504
5502
  };
5505
5503
  // eslint-disable-next-line react-hooks/exhaustive-deps
5506
5504
  }, []);
5507
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
5505
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
5508
5506
  className: className,
5509
5507
  style: {
5510
5508
  ...style,
@@ -5518,7 +5516,7 @@ const VictoryContainer = initialProps => {
5518
5516
  "data-ouia-component-type": ouiaType,
5519
5517
  "data-ouia-safe": ouiaSafe,
5520
5518
  ref: (0,_victory_util__WEBPACK_IMPORTED_MODULE_4__.mergeRefs)([localContainerRef, containerRef])
5521
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalProvider, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("svg", _extends({
5519
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalProvider, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", _extends({
5522
5520
  width: width,
5523
5521
  height: height,
5524
5522
  tabIndex: tabIndex,
@@ -5531,11 +5529,11 @@ const VictoryContainer = initialProps => {
5531
5529
  ...dimensions,
5532
5530
  pointerEvents: "all"
5533
5531
  }
5534
- }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("title", {
5532
+ }, userProps, events), title ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("title", {
5535
5533
  id: titleId
5536
- }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("desc", {
5534
+ }, title) : null, desc ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("desc", {
5537
5535
  id: descId
5538
- }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("div", {
5536
+ }, desc) : null, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
5539
5537
  style: {
5540
5538
  ...dimensions,
5541
5539
  zIndex: portalZIndex,
@@ -5543,7 +5541,7 @@ const VictoryContainer = initialProps => {
5543
5541
  top: 0,
5544
5542
  left: 0
5545
5543
  }
5546
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
5544
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_portal_outlet__WEBPACK_IMPORTED_MODULE_6__.PortalOutlet, {
5547
5545
  as: portalComponent,
5548
5546
  width: width,
5549
5547
  height: height,
@@ -5570,12 +5568,12 @@ __webpack_require__.r(__webpack_exports__);
5570
5568
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5571
5569
  /* harmony export */ "VictoryLabel": function() { return /* binding */ VictoryLabel; }
5572
5570
  /* harmony export */ });
5573
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
5574
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
5571
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
5572
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
5575
5573
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
5576
5574
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
5577
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
5578
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
5575
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
5576
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
5579
5577
  /* harmony import */ var _victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../victory-portal/victory-portal */ "../../victory-core/es/victory-portal/victory-portal.js");
5580
5578
  /* harmony import */ var _victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-primitives/rect */ "../../victory-core/es/victory-primitives/rect.js");
5581
5579
  /* harmony import */ var _victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../victory-primitives/text */ "../../victory-core/es/victory-primitives/text.js");
@@ -5586,9 +5584,9 @@ __webpack_require__.r(__webpack_exports__);
5586
5584
  /* harmony import */ var _victory_util_style__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/style */ "../../victory-core/es/victory-util/style.js");
5587
5585
  /* harmony import */ var _victory_util_textsize__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../victory-util/textsize */ "../../victory-core/es/victory-util/textsize.js");
5588
5586
  /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
5587
+ /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
5589
5588
 
5590
5589
 
5591
- /* eslint no-magic-numbers: ["error", { "ignore": [-0.5, 0.5, 0, 1, 2] }]*/
5592
5590
 
5593
5591
 
5594
5592
 
@@ -5640,7 +5638,7 @@ const shouldUseMultilineBackgrounds = props => {
5640
5638
  backgroundStyle,
5641
5639
  backgroundPadding
5642
5640
  } = props;
5643
- return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(backgroundPadding);
5641
+ return Array.isArray(backgroundStyle) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundStyle) || Array.isArray(backgroundPadding) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(backgroundPadding);
5644
5642
  };
5645
5643
  const getStyles = (style, props) => {
5646
5644
  if (props.disableInlineStyles) {
@@ -5656,32 +5654,28 @@ const getStyles = (style, props) => {
5656
5654
  fontSize: getFontSize(baseStyles)
5657
5655
  });
5658
5656
  };
5659
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
5657
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => getSingleStyle(s)) : getSingleStyle(style);
5660
5658
  };
5661
5659
  const getBackgroundStyles = (style, props) => {
5662
5660
  if (!style) {
5663
5661
  return undefined;
5664
5662
  }
5665
- return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(style) ? style.map(s => _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(s, props)) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(style, props);
5663
+ return Array.isArray(style) && !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(style) ? style.map(s => _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(s, props)) : _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(style, props);
5666
5664
  };
5667
5665
  const getBackgroundPadding = props => {
5668
5666
  if (props.backgroundPadding && Array.isArray(props.backgroundPadding)) {
5669
5667
  return props.backgroundPadding.map(backgroundPadding => {
5670
5668
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(backgroundPadding, props);
5671
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
5672
- padding
5673
- });
5669
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
5674
5670
  });
5675
5671
  }
5676
5672
  const padding = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.backgroundPadding, props);
5677
- return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding({
5678
- padding
5679
- });
5673
+ return _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.getPadding(padding);
5680
5674
  };
5681
5675
  const getLineHeight = props => {
5682
5676
  const lineHeight = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.lineHeight, props);
5683
5677
  if (Array.isArray(lineHeight)) {
5684
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(lineHeight) ? [1] : lineHeight;
5678
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(lineHeight) ? [1] : lineHeight;
5685
5679
  }
5686
5680
  return lineHeight;
5687
5681
  };
@@ -5801,7 +5795,7 @@ const getFullBackground = (calculatedProps, tspanValues) => {
5801
5795
  x: inline ? xCoordinate - backgroundPadding.left : xCoordinate + dx - backgroundPadding.left,
5802
5796
  y: yCoordinate
5803
5797
  };
5804
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5798
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5805
5799
  };
5806
5800
  const getInlineXOffset = (calculatedProps, textElements, index) => {
5807
5801
  const {
@@ -5871,7 +5865,7 @@ const getChildBackgrounds = (calculatedProps, tspanValues) => {
5871
5865
  x: xCoord - padding.left,
5872
5866
  y: yCoord
5873
5867
  };
5874
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5868
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(backgroundComponent, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, backgroundComponent.props, backgroundProps));
5875
5869
  });
5876
5870
  };
5877
5871
  const getBackgroundElement = (calculatedProps, tspanValues) => {
@@ -6002,16 +5996,16 @@ const renderLabel = (calculatedProps, tspanValues) => {
6002
5996
  style: currentStyle,
6003
5997
  children: line
6004
5998
  };
6005
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(tspanComponent, tspanProps);
5999
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(tspanComponent, tspanProps);
6006
6000
  });
6007
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(textComponent, textProps, tspans);
6001
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(textComponent, textProps, tspans);
6008
6002
  };
6009
6003
  const defaultProps = {
6010
- backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6011
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null),
6004
+ backgroundComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_rect__WEBPACK_IMPORTED_MODULE_8__.Rect, null),
6005
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null),
6012
6006
  direction: "inherit",
6013
- textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6014
- tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6007
+ textComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_text__WEBPACK_IMPORTED_MODULE_9__.Text, null),
6008
+ tspanComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_primitives_tspan__WEBPACK_IMPORTED_MODULE_10__.TSpan, null),
6015
6009
  capHeight: 0.71,
6016
6010
  // Magic number from d3.
6017
6011
  lineHeight: 1
@@ -6048,10 +6042,10 @@ const VictoryLabel = initialProps => {
6048
6042
  if (props.backgroundStyle) {
6049
6043
  const backgroundElement = getBackgroundElement(calculatedProps, tspanValues);
6050
6044
  const children = [backgroundElement, label];
6051
- const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(props.groupComponent, {}, children);
6052
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6045
+ const backgroundWithLabel = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.groupComponent, {}, children);
6046
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, backgroundWithLabel) : backgroundWithLabel;
6053
6047
  }
6054
- return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6048
+ return props.renderInPortal ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_portal_victory_portal__WEBPACK_IMPORTED_MODULE_12__.VictoryPortal, null, label) : label;
6055
6049
  };
6056
6050
  VictoryLabel.displayName = "VictoryLabel";
6057
6051
  VictoryLabel.role = "label";
@@ -6177,12 +6171,12 @@ __webpack_require__.r(__webpack_exports__);
6177
6171
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6178
6172
  /* harmony export */ "VictoryPortal": function() { return /* binding */ VictoryPortal; }
6179
6173
  /* harmony export */ });
6180
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
6181
- /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
6174
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6175
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6182
6176
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6183
6177
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6184
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
6185
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
6178
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
6179
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
6186
6180
  /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
6187
6181
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6188
6182
  /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
@@ -6193,14 +6187,14 @@ __webpack_require__.r(__webpack_exports__);
6193
6187
 
6194
6188
 
6195
6189
  const defaultProps = {
6196
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null)
6190
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("g", null)
6197
6191
  };
6198
6192
  const VictoryPortal = initialProps => {
6199
6193
  const props = {
6200
6194
  ...defaultProps,
6201
6195
  ...initialProps
6202
6196
  };
6203
- const [id] = (0,react__WEBPACK_IMPORTED_MODULE_2__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()());
6197
+ const [id] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()());
6204
6198
  const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
6205
6199
  if (!portalContext) {
6206
6200
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
@@ -6218,12 +6212,12 @@ const VictoryPortal = initialProps => {
6218
6212
  const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.omit(props, ["children", "groupComponent"]), {
6219
6213
  key: childProps.key ?? id
6220
6214
  });
6221
- const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(children, newProps);
6222
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6215
+ const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(children, newProps);
6216
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6223
6217
  portalContext?.addChild(id, child);
6224
6218
  // eslint-disable-next-line react-hooks/exhaustive-deps
6225
6219
  }, [props.children]);
6226
- react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
6220
+ react__WEBPACK_IMPORTED_MODULE_0___default().useEffect(() => {
6227
6221
  return () => portalContext?.removeChild(id);
6228
6222
  // eslint-disable-next-line react-hooks/exhaustive-deps
6229
6223
  }, []);
@@ -6244,10 +6238,10 @@ __webpack_require__.r(__webpack_exports__);
6244
6238
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6245
6239
  /* harmony export */ "Border": function() { return /* binding */ Border; }
6246
6240
  /* harmony export */ });
6247
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6248
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
6249
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
6250
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6241
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6242
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6243
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6244
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6251
6245
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6252
6246
  /* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
6253
6247
 
@@ -6279,13 +6273,13 @@ const evaluateProps = props => {
6279
6273
  });
6280
6274
  };
6281
6275
  const defaultProps = {
6282
- rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
6276
+ rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
6283
6277
  role: "presentation",
6284
6278
  shapeRendering: "auto"
6285
6279
  };
6286
6280
  const Border = initialProps => {
6287
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
6288
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.rectComponent, {
6281
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
6282
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.rectComponent, {
6289
6283
  ...props.events,
6290
6284
  "aria-label": props.ariaLabel,
6291
6285
  style: props.style,
@@ -6358,10 +6352,10 @@ __webpack_require__.r(__webpack_exports__);
6358
6352
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6359
6353
  /* harmony export */ "Point": function() { return /* binding */ Point; }
6360
6354
  /* harmony export */ });
6361
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6362
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
6363
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
6364
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
6355
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
6356
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
6357
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
6358
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
6365
6359
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
6366
6360
  /* harmony import */ var _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/point-path-helpers */ "../../victory-core/es/victory-util/point-path-helpers.js");
6367
6361
  /* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
@@ -6415,14 +6409,14 @@ const evaluateProps = props => {
6415
6409
  });
6416
6410
  };
6417
6411
  const defaultProps = {
6418
- pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_4__.Path, null),
6412
+ pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_path__WEBPACK_IMPORTED_MODULE_4__.Path, null),
6419
6413
  role: "presentation",
6420
6414
  shapeRendering: "auto"
6421
6415
  };
6422
6416
  const Point = initialProps => {
6423
- const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
6417
+ const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
6424
6418
  const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_5__.getSafeUserProps(props);
6425
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
6419
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.pathComponent, {
6426
6420
  ...props.events,
6427
6421
  "aria-label": props.ariaLabel,
6428
6422
  d: getPath(props),
@@ -7692,22 +7686,22 @@ __webpack_require__.r(__webpack_exports__);
7692
7686
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7693
7687
  /* harmony export */ "VictoryTransition": function() { return /* binding */ VictoryTransition; }
7694
7688
  /* harmony export */ });
7695
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
7696
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
7689
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7690
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7697
7691
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
7698
7692
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7699
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
7700
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
7693
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
7694
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_2__);
7695
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
7696
+ /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
7701
7697
  /* harmony import */ var _victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-animation/victory-animation */ "../../victory-core/es/victory-animation/victory-animation.js");
7702
7698
  /* harmony import */ var _victory_util_collection__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../victory-util/collection */ "../../victory-core/es/victory-util/collection.js");
7703
7699
  /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
7704
7700
  /* harmony import */ var _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/timer-context */ "../../victory-core/es/victory-util/timer-context.js");
7705
7701
  /* harmony import */ var _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/transitions */ "../../victory-core/es/victory-util/transitions.js");
7706
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
7707
- /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_3__);
7702
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7708
7703
 
7709
7704
 
7710
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
7711
7705
 
7712
7706
 
7713
7707
 
@@ -7715,7 +7709,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
7715
7709
 
7716
7710
 
7717
7711
 
7718
- class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Component) {
7712
+ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component) {
7719
7713
  static displayName = "VictoryTransition";
7720
7714
  static contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_4__["default"];
7721
7715
  constructor(props, context) {
@@ -7758,8 +7752,8 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7758
7752
  nextProps
7759
7753
  };
7760
7754
  }
7761
- const oldChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children);
7762
- const nextChildren = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextProps.children);
7755
+ const oldChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children);
7756
+ const nextChildren = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextProps.children);
7763
7757
  const {
7764
7758
  nodesWillExit,
7765
7759
  nodesWillEnter,
@@ -7782,12 +7776,12 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7782
7776
  const childDomain = child.props && child.type.getDomain(child.props, axis);
7783
7777
  return childDomain ? memo.concat(childDomain) : memo;
7784
7778
  } else if (child.props && child.props.children) {
7785
- return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(child.props.children)));
7779
+ return memo.concat(getChildDomains(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children)));
7786
7780
  }
7787
7781
  return memo;
7788
7782
  }, []);
7789
7783
  };
7790
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
7784
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
7791
7785
  const childProps = child.props || {};
7792
7786
  const domain = Array.isArray(childProps.domain) ? childProps.domain : childProps.domain && childProps.domain[axis];
7793
7787
  if (!childProps.children && domain) {
@@ -7820,7 +7814,7 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7820
7814
  render() {
7821
7815
  const props = this.pickProps();
7822
7816
  const getTransitionProps = this.props.animate?.getTransitions ? this.props.animate.getTransitions : _victory_util_transitions__WEBPACK_IMPORTED_MODULE_5__.getTransitionPropsFactory(props, this.state, newState => this.setState(newState));
7823
- const child = react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(props.children)[0];
7817
+ const child = react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children)[0];
7824
7818
  const transitionProps = getTransitionProps(child);
7825
7819
  this.transitionProps = transitionProps;
7826
7820
  const domain = {
@@ -7834,21 +7828,21 @@ class VictoryTransition extends (react__WEBPACK_IMPORTED_MODULE_2___default().Co
7834
7828
  }, transitionProps, child.props);
7835
7829
  const animationWhitelist = props.animationWhitelist || [];
7836
7830
  const whitelist = animationWhitelist.concat(["clipWidth"]);
7837
- const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(combinedProps, whitelist) : combinedProps;
7838
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
7831
+ const propsToAnimate = whitelist.length ? lodash_pick__WEBPACK_IMPORTED_MODULE_2___default()(combinedProps, whitelist) : combinedProps;
7832
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_animation_victory_animation__WEBPACK_IMPORTED_MODULE_8__.VictoryAnimation, _extends({}, combinedProps.animate, {
7839
7833
  data: propsToAnimate
7840
7834
  }), newProps => {
7841
7835
  if (child.props.groupComponent) {
7842
- const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child.props.groupComponent, {
7836
+ const groupComponent = this.continuous ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child.props.groupComponent, {
7843
7837
  clipWidth: newProps.clipWidth || 0
7844
7838
  }) : child.props.groupComponent;
7845
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7839
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7846
7840
  animate: null,
7847
7841
  animating: true,
7848
7842
  groupComponent
7849
7843
  }, newProps, combinedProps));
7850
7844
  }
7851
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7845
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(child, lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
7852
7846
  animate: null,
7853
7847
  animating: true
7854
7848
  }, newProps, combinedProps));
@@ -7869,14 +7863,14 @@ __webpack_require__.r(__webpack_exports__);
7869
7863
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7870
7864
  /* harmony export */ "addEvents": function() { return /* binding */ addEvents; }
7871
7865
  /* harmony export */ });
7872
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
7873
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
7874
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
7875
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1__);
7876
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
7877
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
7878
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
7879
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
7866
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
7867
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
7868
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
7869
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
7870
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
7871
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2__);
7872
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
7873
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
7880
7874
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-fast-compare */ "../../../node_modules/.pnpm/react-fast-compare@3.2.0/node_modules/react-fast-compare/index.js");
7881
7875
  /* harmony import */ var react_fast_compare__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_fast_compare__WEBPACK_IMPORTED_MODULE_4__);
7882
7876
  /* harmony import */ var _victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../victory-transition/victory-transition */ "../../victory-core/es/victory-transition/victory-transition.js");
@@ -8023,8 +8017,8 @@ function addEvents(WrappedComponent, options) {
8023
8017
  return {};
8024
8018
  }
8025
8019
  const getState = (key, type) => {
8026
- const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
8027
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(result) ? undefined : result;
8020
+ const result = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, this.getEventState(key, type), this.getSharedEventState(key, type));
8021
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(result) ? undefined : result;
8028
8022
  };
8029
8023
  const components = options.components || defaultComponents;
8030
8024
  const stateChanges = components.map(component => {
@@ -8037,7 +8031,7 @@ function addEvents(WrappedComponent, options) {
8037
8031
  return stateChanges;
8038
8032
  }
8039
8033
  applyExternalMutations(props, externalMutations) {
8040
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalMutations)) {
8034
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalMutations)) {
8041
8035
  const callbacks = props.externalEventMutations.reduce((memo, mutation) => (0,_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(mutation.callback) ? memo.concat(mutation.callback) : memo, []);
8042
8036
  const compiledCallbacks = callbacks.length ? () => {
8043
8037
  callbacks.forEach(c => c());
@@ -8070,7 +8064,7 @@ function addEvents(WrappedComponent, options) {
8070
8064
  sharedEvents,
8071
8065
  externalEventMutations
8072
8066
  } = props;
8073
- return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_1___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8067
+ return lodash_isEmpty__WEBPACK_IMPORTED_MODULE_2___default()(externalEventMutations) || sharedEvents ? undefined : _events__WEBPACK_IMPORTED_MODULE_6__.getExternalMutations(externalEventMutations, this.baseProps, this.state);
8074
8068
  }
8075
8069
  cacheValues(obj) {
8076
8070
  Object.keys(obj).forEach(key => {
@@ -8081,10 +8075,10 @@ function addEvents(WrappedComponent, options) {
8081
8075
  const getSharedEventStateFunction = getSharedEventState || this.getSharedEventState.bind(this);
8082
8076
  const sharedParentState = getSharedEventStateFunction("parent", "parent");
8083
8077
  const parentState = this.getEventState("parent", "parent");
8084
- const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentState, sharedParentState);
8078
+ const baseParentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentState, sharedParentState);
8085
8079
  const parentPropsList = baseParentProps.parentControlledProps;
8086
- const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(baseParentProps, parentPropsList) : {};
8087
- const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parentProps, props);
8080
+ const parentProps = parentPropsList ? lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(baseParentProps, parentPropsList) : {};
8081
+ const modifiedProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parentProps, props);
8088
8082
  return typeof WrappedComponent.getBaseProps === "function" ? WrappedComponent.getBaseProps(modifiedProps) : {};
8089
8083
  }
8090
8084
  getAllEvents(props) {
@@ -8104,18 +8098,18 @@ function addEvents(WrappedComponent, options) {
8104
8098
  const currentProps = component && typeof component === "object" && "props" in component ? component.props : undefined;
8105
8099
  if (this.hasEvents) {
8106
8100
  const baseEvents = this.getEvents(this.props, type, key);
8107
- const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8101
+ const componentProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8108
8102
  index,
8109
8103
  key: id
8110
8104
  }, this.getEventState(key, type), this.getSharedEventState(key, type), currentProps, baseProps, {
8111
8105
  id
8112
8106
  });
8113
- const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8107
+ const events = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, _events__WEBPACK_IMPORTED_MODULE_6__.getPartialEvents(baseEvents, key, componentProps), componentProps.events);
8114
8108
  return Object.assign({}, componentProps, {
8115
8109
  events
8116
8110
  });
8117
8111
  }
8118
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8112
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8119
8113
  index,
8120
8114
  key: id
8121
8115
  }, currentProps, baseProps, {
@@ -8129,15 +8123,15 @@ function addEvents(WrappedComponent, options) {
8129
8123
  this.globalEvents = _events__WEBPACK_IMPORTED_MODULE_6__.getGlobalEvents(parentProps.events);
8130
8124
  parentProps.events = _events__WEBPACK_IMPORTED_MODULE_6__.omitGlobalEvents(parentProps.events);
8131
8125
  }
8132
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(component, parentProps, children);
8126
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(component, parentProps, children);
8133
8127
  }
8134
8128
  animateComponent(props, defaultAnimationWhitelist) {
8135
8129
  const animationWhitelist = typeof props.animate === "object" && props.animate?.animationWhitelist || defaultAnimationWhitelist;
8136
8130
  const Comp = this.constructor;
8137
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8131
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_victory_transition_victory_transition__WEBPACK_IMPORTED_MODULE_8__.VictoryTransition, {
8138
8132
  animate: props.animate,
8139
8133
  animationWhitelist: animationWhitelist
8140
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().createElement(Comp, props));
8134
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Comp, props));
8141
8135
  }
8142
8136
 
8143
8137
  // Used by `VictoryLine` and `VictoryArea`
@@ -8152,12 +8146,12 @@ function addEvents(WrappedComponent, options) {
8152
8146
  let newMemo = memo;
8153
8147
  const labelProps = this.getComponentProps(labelComponent, "labels", key);
8154
8148
  if (labelProps && labelProps.text !== undefined && labelProps.text !== null) {
8155
- newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps));
8149
+ newMemo = newMemo.concat( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps));
8156
8150
  }
8157
8151
  return newMemo;
8158
8152
  }, []);
8159
8153
  const dataProps = this.getComponentProps(dataComponent, "data", "all");
8160
- const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps), ...labelComponents];
8154
+ const children = [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps), ...labelComponents];
8161
8155
  return this.renderContainer(groupComponent, children);
8162
8156
  }
8163
8157
  renderData(props, shouldRenderDatum) {
@@ -8172,14 +8166,14 @@ function addEvents(WrappedComponent, options) {
8172
8166
  const dataComponents = this.dataKeys.reduce((validDataComponents, _dataKey, index) => {
8173
8167
  const dataProps = this.getComponentProps(dataComponent, "data", index);
8174
8168
  if (shouldRenderDatum(dataProps.datum)) {
8175
- validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(dataComponent, dataProps));
8169
+ validDataComponents.push( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(dataComponent, dataProps));
8176
8170
  }
8177
8171
  return validDataComponents;
8178
8172
  }, []);
8179
8173
  const labelComponents = this.dataKeys.map((_dataKey, index) => {
8180
8174
  const labelProps = this.getComponentProps(labelComponent, "labels", index);
8181
8175
  if (labelProps.text !== undefined && labelProps.text !== null) {
8182
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(labelComponent, labelProps);
8176
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(labelComponent, labelProps);
8183
8177
  }
8184
8178
  return undefined;
8185
8179
  }).filter(Boolean);
@@ -8286,14 +8280,14 @@ __webpack_require__.r(__webpack_exports__);
8286
8280
  /* harmony export */ "getScopedEvents": function() { return /* binding */ getScopedEvents; },
8287
8281
  /* harmony export */ "omitGlobalEvents": function() { return /* binding */ omitGlobalEvents; }
8288
8282
  /* harmony export */ });
8289
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
8290
- /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_0__);
8291
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
8292
- /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_1__);
8293
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/pickBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js");
8294
- /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_2__);
8295
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
8296
- /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3__);
8283
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isEmpty */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isEmpty.js");
8284
+ /* harmony import */ var lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0__);
8285
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/pickBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pickBy.js");
8286
+ /* harmony import */ var lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_pickBy__WEBPACK_IMPORTED_MODULE_1__);
8287
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/omitBy */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/omitBy.js");
8288
+ /* harmony import */ var lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_omitBy__WEBPACK_IMPORTED_MODULE_2__);
8289
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/uniq */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniq.js");
8290
+ /* harmony import */ var lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_uniq__WEBPACK_IMPORTED_MODULE_3__);
8297
8291
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
8298
8292
 
8299
8293
 
@@ -8369,7 +8363,7 @@ getScopedEvents) {
8369
8363
  */
8370
8364
  // eslint-disable-next-line max-params
8371
8365
  function getScopedEvents(events, namespace, childType, baseProps) {
8372
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(events)) {
8366
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(events)) {
8373
8367
  return {};
8374
8368
  }
8375
8369
 
@@ -8482,7 +8476,7 @@ function getScopedEvents(events, namespace, childType, baseProps) {
8482
8476
  // eslint-disable-next-line max-params
8483
8477
  const onEvent = (evt, childProps, eventKey, eventName) => {
8484
8478
  const eventReturn = events[eventName](evt, childProps, eventKey, this);
8485
- if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(eventReturn)) {
8479
+ if (!lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(eventReturn)) {
8486
8480
  const callbacks = compileCallbacks(eventReturn);
8487
8481
  this.setState(parseEventReturn(eventReturn, eventKey), callbacks);
8488
8482
  }
@@ -8543,7 +8537,7 @@ function getExternalMutationsWithChildren(mutations, baseProps, baseState, child
8543
8537
  const childState = baseState[childName];
8544
8538
  const mutation = getExternalMutations(mutations, baseProps[childName], baseState[childName], childName);
8545
8539
  memo[childName] = mutation ? mutation : childState;
8546
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
8540
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
8547
8541
  }, {});
8548
8542
  }
8549
8543
 
@@ -8579,7 +8573,7 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
8579
8573
  } else {
8580
8574
  // use keys from both state and props so that elements not intially included in baseProps
8581
8575
  // will be used. (i.e. labels)
8582
- const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_0___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
8576
+ const targets = lodash_uniq__WEBPACK_IMPORTED_MODULE_3___default()(Object.keys(keyProps).concat(Object.keys(keyState)));
8583
8577
  memo[eventKey] = targets.reduce((m, target) => {
8584
8578
  const identifier = {
8585
8579
  eventKey,
@@ -8588,10 +8582,10 @@ function getExternalMutations(mutations, baseProps, baseState, childName) {
8588
8582
  };
8589
8583
  const mutation = getExternalMutation(mutations, keyProps[target], keyState[target], identifier);
8590
8584
  m[target] = mutation !== undefined ? Object.assign({}, keyState[target], mutation) : keyState[target];
8591
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
8585
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(m, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
8592
8586
  }, {});
8593
8587
  }
8594
- return lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(v));
8588
+ return lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(memo, v => !lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(v));
8595
8589
  }, {});
8596
8590
  }
8597
8591
 
@@ -8623,11 +8617,11 @@ function getExternalMutation(mutations, baseProps, baseState, identifier) {
8623
8617
  }
8624
8618
  // find any mutation objects that match the target
8625
8619
  const targetMutations = scopedMutations.filter(m => filterMutations(m, "target"));
8626
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(targetMutations)) {
8620
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(targetMutations)) {
8627
8621
  return undefined;
8628
8622
  }
8629
8623
  const keyMutations = targetMutations.filter(m => filterMutations(m, "eventKey"));
8630
- if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_3___default()(keyMutations)) {
8624
+ if (lodash_isEmpty__WEBPACK_IMPORTED_MODULE_0___default()(keyMutations)) {
8631
8625
  return undefined;
8632
8626
  }
8633
8627
  return keyMutations.reduce((memo, curr) => {
@@ -8653,8 +8647,8 @@ function getGlobalEventNameFromKey(key) {
8653
8647
  const match = key.match(GLOBAL_EVENT_REGEX);
8654
8648
  return match && match[1] && match[1].toLowerCase();
8655
8649
  }
8656
- const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
8657
- const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
8650
+ const getGlobalEvents = events => lodash_pickBy__WEBPACK_IMPORTED_MODULE_1___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
8651
+ const omitGlobalEvents = events => lodash_omitBy__WEBPACK_IMPORTED_MODULE_2___default()(events, (_, key) => GLOBAL_EVENT_REGEX.test(key));
8658
8652
  const emulateReactEvent = event => Object.assign(event, {
8659
8653
  nativeEvent: event
8660
8654
  });
@@ -8695,40 +8689,45 @@ __webpack_require__.r(__webpack_exports__);
8695
8689
  /* harmony export */ "reduceChildren": function() { return /* binding */ reduceChildren; },
8696
8690
  /* harmony export */ "scalePoint": function() { return /* binding */ scalePoint; }
8697
8691
  /* harmony export */ });
8698
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
8699
- /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_0__);
8700
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
8701
- /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_1__);
8702
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8703
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_2__);
8704
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react */ "react");
8705
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_3__);
8706
-
8692
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
8693
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
8694
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
8695
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
8696
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/property */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/property.js");
8697
+ /* harmony import */ var lodash_property__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_property__WEBPACK_IMPORTED_MODULE_2__);
8698
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! lodash/pick */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
8699
+ /* harmony import */ var lodash_pick__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_pick__WEBPACK_IMPORTED_MODULE_3__);
8707
8700
 
8708
8701
 
8709
8702
 
8710
- // Private Functions
8711
8703
 
8712
- function getCartesianRange(props, axis) {
8713
- // determine how to lay the axis and what direction positive and negative are
8714
- const vertical = axis !== "x";
8715
- const padding = getPadding(props);
8704
+ /**
8705
+ * Determine the range of a cartesian axis
8706
+ */
8707
+ function getCartesianRange(options) {
8708
+ const vertical = options.axis !== "x";
8716
8709
  if (vertical) {
8717
- return [props.height - padding.bottom, padding.top];
8710
+ return [options.height - options.padding.bottom, options.padding.top];
8718
8711
  }
8719
- return [padding.left, props.width - padding.right];
8712
+ return [options.padding.left, options.width - options.padding.right];
8720
8713
  }
8721
- function getPolarRange(props, axis) {
8722
- if (axis === "x") {
8723
- const startAngle = degreesToRadians(props.startAngle || 0);
8724
- const endAngle = degreesToRadians(props.endAngle || 360);
8714
+
8715
+ /**
8716
+ * Determine the range of a polar axis in radians
8717
+ */
8718
+ function getPolarRange(options) {
8719
+ if (options.axis === "x") {
8720
+ const startAngle = degreesToRadians(options.startAngle || 0);
8721
+ const endAngle = degreesToRadians(options.endAngle || 360);
8725
8722
  return [startAngle, endAngle];
8726
8723
  }
8727
- return [props.innerRadius || 0, getRadius(props)];
8724
+ return [options.innerRadius || 0, getRadius({
8725
+ height: options.height,
8726
+ width: options.width,
8727
+ padding: options.padding
8728
+ })];
8728
8729
  }
8729
8730
 
8730
- // Exported Functions
8731
-
8732
8731
  /**
8733
8732
  * Creates an object composed of the inverted keys and values of object.
8734
8733
  * If object contains duplicate values, subsequent values overwrite property assignments of previous values.
@@ -8765,8 +8764,11 @@ function omit(originalObject, ks) {
8765
8764
  }
8766
8765
  return newObject;
8767
8766
  }
8767
+
8768
+ /**
8769
+ * Coalesce the x and y values from a data point
8770
+ */
8768
8771
  function getPoint(datum) {
8769
- const exists = val => val !== undefined;
8770
8772
  const {
8771
8773
  _x,
8772
8774
  _x1,
@@ -8777,16 +8779,20 @@ function getPoint(datum) {
8777
8779
  _y0,
8778
8780
  _voronoiY
8779
8781
  } = datum;
8780
- const defaultX = exists(_x1) ? _x1 : _x;
8781
- const defaultY = exists(_y1) ? _y1 : _y;
8782
+ const defaultX = _x1 ?? _x;
8783
+ const defaultY = _y1 ?? _y;
8782
8784
  const point = {
8783
- x: exists(_voronoiX) ? _voronoiX : defaultX,
8784
- x0: exists(_x0) ? _x0 : _x,
8785
- y: exists(_voronoiY) ? _voronoiY : defaultY,
8786
- y0: exists(_y0) ? _y0 : _y
8785
+ x: _voronoiX ?? defaultX,
8786
+ x0: _x0 ?? _x,
8787
+ y: _voronoiY ?? defaultY,
8788
+ y0: _y0 ?? _y
8787
8789
  };
8788
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, point, datum);
8790
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, point, datum);
8789
8791
  }
8792
+
8793
+ /**
8794
+ * Scale a point based on the origin, direction, and given scale function
8795
+ */
8790
8796
  function scalePoint(props, datum) {
8791
8797
  const {
8792
8798
  scale,
@@ -8809,11 +8815,11 @@ function scalePoint(props, datum) {
8809
8815
  y0: polar ? -y0 * Math.sin(x0) + origin.x : y0
8810
8816
  };
8811
8817
  }
8812
- function getPadding(props, name) {
8813
- if (name === void 0) {
8814
- name = "padding";
8815
- }
8816
- const padding = props[name];
8818
+
8819
+ /**
8820
+ * Returns a padding value from a number or partial padding values
8821
+ */
8822
+ function getPadding(padding) {
8817
8823
  const paddingVal = typeof padding === "number" ? padding : 0;
8818
8824
  const paddingObj = typeof padding === "object" ? padding : {};
8819
8825
  return {
@@ -8823,6 +8829,10 @@ function getPadding(props, name) {
8823
8829
  right: paddingObj.right || paddingVal
8824
8830
  };
8825
8831
  }
8832
+
8833
+ /**
8834
+ * Returns true if the component is defined as a tooltip
8835
+ */
8826
8836
  function isTooltip(component) {
8827
8837
  const labelRole = component && component.type && component.type.role;
8828
8838
  return labelRole === "tooltip";
@@ -8837,8 +8847,8 @@ function getDefaultStyles(props, role) {
8837
8847
  return defaultStyles;
8838
8848
  }
8839
8849
  const tooltipStyle = theme.tooltip && theme.tooltip.style || {};
8840
- const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, tooltipStyle, defaultStyles.labels);
8841
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, {
8850
+ const labelStyle = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, tooltipStyle, defaultStyles.labels);
8851
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, {
8842
8852
  labels: labelStyle
8843
8853
  }, defaultStyles);
8844
8854
  }
@@ -8846,7 +8856,7 @@ function getStyles(style, defaultStyles) {
8846
8856
  const width = "100%";
8847
8857
  const height = "100%";
8848
8858
  if (!style) {
8849
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({
8859
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({
8850
8860
  parent: {
8851
8861
  height,
8852
8862
  width
@@ -8862,14 +8872,18 @@ function getStyles(style, defaultStyles) {
8862
8872
  const defaultLabels = defaultStyles && defaultStyles.labels || {};
8863
8873
  const defaultData = defaultStyles && defaultStyles.data || {};
8864
8874
  return {
8865
- parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, parent, defaultParent, {
8875
+ parent: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, parent, defaultParent, {
8866
8876
  width,
8867
8877
  height
8868
8878
  }),
8869
- labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, labels, defaultLabels),
8870
- data: lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()({}, data, defaultData)
8879
+ labels: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, labels, defaultLabels),
8880
+ data: lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, data, defaultData)
8871
8881
  };
8872
8882
  }
8883
+
8884
+ /**
8885
+ * Returns the value of a prop or accessor function with the given props
8886
+ */
8873
8887
  function evaluateProp(prop, props) {
8874
8888
  return isFunction(prop) ? prop(props) : prop;
8875
8889
  }
@@ -8891,19 +8905,28 @@ function degreesToRadians(degrees) {
8891
8905
  function radiansToDegrees(radians) {
8892
8906
  return typeof radians === "number" ? radians / (Math.PI / 180) : radians;
8893
8907
  }
8894
- function getRadius(props) {
8908
+
8909
+ /**
8910
+ * Get the maximum radius that will fit in the container
8911
+ */
8912
+ function getRadius(options) {
8913
+ const {
8914
+ width,
8915
+ height,
8916
+ padding
8917
+ } = options;
8895
8918
  const {
8896
8919
  left,
8897
8920
  right,
8898
8921
  top,
8899
8922
  bottom
8900
- } = getPadding(props);
8901
- const {
8902
- width,
8903
- height
8904
- } = props;
8923
+ } = padding;
8905
8924
  return Math.min(width - left - right, height - top - bottom) / 2;
8906
8925
  }
8926
+
8927
+ /**
8928
+ * Returns the origin for a polar chart within the padded area
8929
+ */
8907
8930
  function getPolarOrigin(props) {
8908
8931
  const {
8909
8932
  width,
@@ -8914,7 +8937,7 @@ function getPolarOrigin(props) {
8914
8937
  bottom,
8915
8938
  left,
8916
8939
  right
8917
- } = getPadding(props);
8940
+ } = getPadding(props.padding);
8918
8941
  const radius = Math.min(width - left - right, height - top - bottom) / 2;
8919
8942
  const offsetWidth = width / 2 + left - right;
8920
8943
  const offsetHeight = height / 2 + top - bottom;
@@ -8923,13 +8946,30 @@ function getPolarOrigin(props) {
8923
8946
  y: offsetHeight + radius > height ? radius + top - bottom : offsetHeight
8924
8947
  };
8925
8948
  }
8949
+
8950
+ /**
8951
+ * Determine the range of an axis based on the given props
8952
+ */
8926
8953
  function getRange(props, axis) {
8927
8954
  if (props.range && props.range[axis]) {
8928
8955
  return props.range[axis];
8929
8956
  } else if (props.range && Array.isArray(props.range)) {
8930
8957
  return props.range;
8931
8958
  }
8932
- return props.polar ? getPolarRange(props, axis) : getCartesianRange(props, axis);
8959
+ return props.polar ? getPolarRange({
8960
+ axis,
8961
+ innerRadius: props.innerRadius,
8962
+ startAngle: props.startAngle,
8963
+ endAngle: props.endAngle,
8964
+ height: props.height,
8965
+ width: props.width,
8966
+ padding: getPadding(props.padding)
8967
+ }) : getCartesianRange({
8968
+ axis,
8969
+ height: props.height,
8970
+ width: props.width,
8971
+ padding: getPadding(props.padding)
8972
+ });
8933
8973
  }
8934
8974
 
8935
8975
  /**
@@ -8961,7 +9001,7 @@ function createAccessor(key) {
8961
9001
  return x => x;
8962
9002
  }
8963
9003
  // otherwise, assume it is an array index, property key or path (_.property handles all three)
8964
- return lodash_property__WEBPACK_IMPORTED_MODULE_1___default()(key);
9004
+ return lodash_property__WEBPACK_IMPORTED_MODULE_2___default()(key);
8965
9005
  }
8966
9006
  function modifyProps(props, fallbackProps, role) {
8967
9007
  const theme = props.theme && props.theme[role] ? props.theme[role] : {};
@@ -8970,7 +9010,7 @@ function modifyProps(props, fallbackProps, role) {
8970
9010
  const defaultObject = horizontal === undefined ? {} : {
8971
9011
  horizontal
8972
9012
  };
8973
- return lodash_defaults__WEBPACK_IMPORTED_MODULE_2___default()(defaultObject, props, themeProps, fallbackProps);
9013
+ return lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(defaultObject, props, themeProps, fallbackProps);
8974
9014
  }
8975
9015
 
8976
9016
  /**
@@ -9057,10 +9097,10 @@ initialMemo, combine) {
9057
9097
  const childRole = child.type && child.type.role;
9058
9098
  const childName = child.props.name || `${childRole}-${names[index]}`;
9059
9099
  if (child.props && child.props.children) {
9060
- const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(parentProps, sharedProps));
9061
- const nestedChildren = child.type && child.type.role === "stack" && isFunction(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(child.props.children).map(c => {
9062
- const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_0___default()(childProps, sharedProps));
9063
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default().cloneElement(c, nestedChildProps);
9100
+ const childProps = Object.assign({}, child.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(parentProps, sharedProps));
9101
+ const nestedChildren = child.type && child.type.role === "stack" && isFunction(child.type.getChildren) ? child.type.getChildren(childProps) : react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(child.props.children).map(c => {
9102
+ const nestedChildProps = Object.assign({}, c.props, lodash_pick__WEBPACK_IMPORTED_MODULE_3___default()(childProps, sharedProps));
9103
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(c, nestedChildProps);
9064
9104
  });
9065
9105
  const childNames = nestedChildren.map((c, i) => `${childName}-${i}`);
9066
9106
  const nestedResults = traverseChildren(nestedChildren, childNames, child);
@@ -9074,7 +9114,7 @@ initialMemo, combine) {
9074
9114
  return newMemo;
9075
9115
  }, initialMemo);
9076
9116
  };
9077
- const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_3__.isValidElement);
9117
+ const validChildren = children.filter(react__WEBPACK_IMPORTED_MODULE_0__.isValidElement);
9078
9118
  const childNames = validChildren.map((c, i) => i);
9079
9119
  return traverseChildren(validChildren, childNames);
9080
9120
  }
@@ -9094,10 +9134,10 @@ function isHorizontal(props) {
9094
9134
  if (memo || childProps.horizontal || !childProps.children) {
9095
9135
  return memo || childProps.horizontal;
9096
9136
  }
9097
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(childProps.children));
9137
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(childProps.children));
9098
9138
  }, false);
9099
9139
  };
9100
- return traverseChildren(react__WEBPACK_IMPORTED_MODULE_3___default().Children.toArray(props.children));
9140
+ return traverseChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(props.children));
9101
9141
  }
9102
9142
 
9103
9143
  /***/ }),
@@ -9118,9 +9158,10 @@ __webpack_require__.r(__webpack_exports__);
9118
9158
  /* harmony export */ "getProps": function() { return /* binding */ getProps; },
9119
9159
  /* harmony export */ "getText": function() { return /* binding */ getText; }
9120
9160
  /* harmony export */ });
9161
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9121
9162
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
9122
9163
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
9123
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./helpers */ "../../victory-core/es/victory-util/helpers.js");
9164
+
9124
9165
 
9125
9166
 
9126
9167
  // Private Functions
@@ -9366,11 +9407,12 @@ __webpack_require__.r(__webpack_exports__);
9366
9407
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
9367
9408
  /* harmony export */ "warn": function() { return /* binding */ warn; }
9368
9409
  /* harmony export */ });
9369
- /* global console */
9410
+ /* global console process */
9370
9411
  /* eslint-disable no-console */
9371
9412
 
9372
- // TODO: Use "warning" npm module like React is switching to.
9373
9413
  function warn(message) {
9414
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
9415
+ // @ts-ignore - Webpack DefinePlugin will replace process.env.NODE_ENV
9374
9416
  if (true) {
9375
9417
  if (console && console.warn) {
9376
9418
  console.warn(message);
@@ -9651,13 +9693,15 @@ __webpack_require__.r(__webpack_exports__);
9651
9693
  /* harmony export */ "approximateTextSize": function() { return /* binding */ approximateTextSize; },
9652
9694
  /* harmony export */ "convertLengthToPixels": function() { return /* binding */ convertLengthToPixels; }
9653
9695
  /* harmony export */ });
9654
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/memoize */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js");
9655
- /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_0__);
9656
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
9657
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
9658
-
9659
- // http://www.pearsonified.com/2012/01/characters-per-line.php
9696
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
9697
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
9698
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/memoize */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/memoize.js");
9699
+ /* harmony import */ var lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_memoize__WEBPACK_IMPORTED_MODULE_1__);
9700
+ // http://www.pearsonified.com/2012/01/characters-per-line.php
9660
9701
  /* eslint-disable no-magic-numbers */
9702
+
9703
+
9704
+
9661
9705
  // Based on measuring specific character widths
9662
9706
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
9663
9707
  // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
@@ -9836,7 +9880,7 @@ const convertLengthToPixels = (length, fontSize) => {
9836
9880
  };
9837
9881
  const _prepareParams = (inputStyle, index) => {
9838
9882
  const lineStyle = Array.isArray(inputStyle) ? inputStyle[index] : inputStyle;
9839
- const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, lineStyle, defaultStyle);
9883
+ const style = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, lineStyle, defaultStyle);
9840
9884
  return Object.assign({}, style, {
9841
9885
  fontFamily: style.fontFamily,
9842
9886
  letterSpacing: typeof style.letterSpacing === "number" ? style.letterSpacing : convertLengthToPixels(String(style.letterSpacing), style.fontSize),
@@ -9884,7 +9928,7 @@ const _approximateDimensionsInternal = (text, style) => {
9884
9928
  height: heightWithRotate * coefficients.heightOverlapCoef
9885
9929
  };
9886
9930
  };
9887
- const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()(() => {
9931
+ const _getMeasurementContainer = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()(() => {
9888
9932
  const element = document.createElementNS("http://www.w3.org/2000/svg", "svg");
9889
9933
  element.setAttribute("xlink", "http://www.w3.org/1999/xlink");
9890
9934
  element.setAttribute("width", "300");
@@ -9905,7 +9949,7 @@ const styleToKeyComponent = style => {
9905
9949
  }
9906
9950
  return `${style.angle}:${style.fontFamily}:${style.fontSize}:${style.letterSpacing}:${style.lineHeight}`;
9907
9951
  };
9908
- const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_0___default()((text, style) => {
9952
+ const _measureDimensionsInternal = lodash_memoize__WEBPACK_IMPORTED_MODULE_1___default()((text, style) => {
9909
9953
  let containerElement = _getMeasurementContainer();
9910
9954
  if (!containerElement.isConnected) {
9911
9955
  _getMeasurementContainer.cache.clear?.();
@@ -10075,12 +10119,12 @@ __webpack_require__.r(__webpack_exports__);
10075
10119
  /* harmony export */ "getInitialTransitionState": function() { return /* binding */ getInitialTransitionState; },
10076
10120
  /* harmony export */ "getTransitionPropsFactory": function() { return /* binding */ getTransitionPropsFactory; }
10077
10121
  /* harmony export */ });
10078
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
10079
- /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_0__);
10122
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
10123
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
10080
10124
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
10081
10125
  /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
10082
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
10083
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
10126
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/identity */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/identity.js");
10127
+ /* harmony import */ var lodash_identity__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_identity__WEBPACK_IMPORTED_MODULE_2__);
10084
10128
 
10085
10129
 
10086
10130
 
@@ -10171,13 +10215,13 @@ function getInitialTransitionState(oldChildren, nextChildren) {
10171
10215
  const getTransitionsFromChildren = (old, next) => {
10172
10216
  return old.map((child, idx) => {
10173
10217
  if (child && child.props && child.props.children && next[idx]) {
10174
- return getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(old[idx].props.children), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(next[idx].props.children));
10218
+ return getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(old[idx].props.children), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(next[idx].props.children));
10175
10219
  }
10176
10220
  // get Transition entering and exiting nodes
10177
10221
  return getTransition(child, next[idx]);
10178
10222
  });
10179
10223
  };
10180
- const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_2___default().Children.toArray(nextChildren));
10224
+ const childrenTransitions = getTransitionsFromChildren(react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(oldChildren), react__WEBPACK_IMPORTED_MODULE_0___default().Children.toArray(nextChildren));
10181
10225
  return {
10182
10226
  nodesWillExit,
10183
10227
  nodesWillEnter,
@@ -10191,7 +10235,7 @@ function getInitialTransitionState(oldChildren, nextChildren) {
10191
10235
  };
10192
10236
  }
10193
10237
  function getInitialChildProps(animate, data) {
10194
- const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
10238
+ const after = animate.onEnter && animate.onEnter.after ? animate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
10195
10239
  return {
10196
10240
  data: data.map((datum, idx) => Object.assign({}, datum, after(datum, idx, data)))
10197
10241
  };
@@ -10208,7 +10252,7 @@ function getChildBeforeLoad(animate, child, data, cb) {
10208
10252
  data
10209
10253
  };
10210
10254
  }
10211
- const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
10255
+ const before = newAnimate.onLoad && newAnimate.onLoad.before ? newAnimate.onLoad.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
10212
10256
  // If nodes need to exit, transform them with the provided onLoad.before function.
10213
10257
  const newData = data.map((datum, idx) => {
10214
10258
  return Object.assign({}, datum, before(datum, idx, data));
@@ -10230,7 +10274,7 @@ function getChildOnLoad(animate, data, cb) {
10230
10274
  data
10231
10275
  };
10232
10276
  }
10233
- const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
10277
+ const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
10234
10278
  // If nodes need to exit, transform them with the provided onLoad.after function.
10235
10279
  newData = data.map((datum, idx) => {
10236
10280
  return Object.assign({}, datum, after(datum, idx, data));
@@ -10252,7 +10296,7 @@ function getChildPropsOnExit(animate, child, data, exitingNodes, cb) {
10252
10296
  // After the exit transition occurs, trigger the animations for
10253
10297
  // nodes that are neither exiting nor entering.
10254
10298
  animate.onEnd = cb;
10255
- const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
10299
+ const before = animate.onExit && animate.onExit.before ? animate.onExit.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
10256
10300
  // If nodes need to exit, transform them with the provided onExit.before function.
10257
10301
  newData = data.map((datum, idx) => {
10258
10302
  const key = (datum.key || idx).toString();
@@ -10275,7 +10319,7 @@ function getChildPropsBeforeEnter(animate, child, data, enteringNodes, cb) {
10275
10319
  newAnimate = Object.assign({}, animate, {
10276
10320
  onEnd: cb
10277
10321
  });
10278
- const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
10322
+ const before = animate.onEnter && animate.onEnter.before ? animate.onEnter.before : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
10279
10323
  // We want the entering nodes to be included in the transition target
10280
10324
  // domain. However, we may not want these nodes to be displayed initially,
10281
10325
  // so perform the `onEnter.before` transformation on each node.
@@ -10302,7 +10346,7 @@ function getChildPropsOnEnter(animate, data, enteringNodes, cb) {
10302
10346
  // domain should encompass the nodes that will now enter. So perform
10303
10347
  // the `onEnter.after` transformation on each node.
10304
10348
  newAnimate.onEnd = cb;
10305
- const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_0___default());
10349
+ const after = newAnimate.onEnter && newAnimate.onEnter.after ? newAnimate.onEnter.after : (lodash_identity__WEBPACK_IMPORTED_MODULE_2___default());
10306
10350
  newData = data.map((datum, idx) => {
10307
10351
  const key = getDatumKey(datum, idx);
10308
10352
  return enteringNodes[key] ? Object.assign({}, datum, after(datum, idx, data)) : datum;