victory-create-container 36.6.0 → 36.6.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.
@@ -9457,7 +9457,6 @@ var BrushHelpers = _objectSpread(_objectSpread({}, Helpers), {}, {
9457
9457
  trailing: false
9458
9458
  })
9459
9459
  });
9460
- //# sourceMappingURL=brush-helpers.js.map
9461
9460
 
9462
9461
  /***/ }),
9463
9462
 
@@ -9737,7 +9736,6 @@ var brushContainerMixin = function (base) {
9737
9736
  }, _class;
9738
9737
  };
9739
9738
  var VictoryBrushContainer = brushContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer);
9740
- //# sourceMappingURL=victory-brush-container.js.map
9741
9739
 
9742
9740
  /***/ }),
9743
9741
 
@@ -10048,7 +10046,6 @@ VictoryClipContainer.defaultProps = {
10048
10046
  clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_11__.ClipPath, null),
10049
10047
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement("g", null)
10050
10048
  };
10051
- //# sourceMappingURL=victory-clip-container.js.map
10052
10049
 
10053
10050
  /***/ }),
10054
10051
 
@@ -10362,7 +10359,6 @@ VictoryContainer.defaultProps = {
10362
10359
  role: "img"
10363
10360
  };
10364
10361
  VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
10365
- //# sourceMappingURL=victory-container.js.map
10366
10362
 
10367
10363
  /***/ }),
10368
10364
 
@@ -11004,7 +11000,6 @@ VictoryLabel.defaultProps = {
11004
11000
  // Magic number from d3.
11005
11001
  lineHeight: 1
11006
11002
  };
11007
- //# sourceMappingURL=victory-label.js.map
11008
11003
 
11009
11004
  /***/ }),
11010
11005
 
@@ -11029,7 +11024,6 @@ __webpack_require__.r(__webpack_exports__);
11029
11024
  */
11030
11025
  var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
11031
11026
  PortalContext.displayName = "PortalContext";
11032
- //# sourceMappingURL=portal-context.js.map
11033
11027
 
11034
11028
  /***/ }),
11035
11029
 
@@ -11141,7 +11135,6 @@ Portal.propTypes = {
11141
11135
  viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
11142
11136
  width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
11143
11137
  };
11144
- //# sourceMappingURL=portal.js.map
11145
11138
 
11146
11139
  /***/ }),
11147
11140
 
@@ -11285,7 +11278,6 @@ VictoryPortal.defaultProps = {
11285
11278
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
11286
11279
  };
11287
11280
  VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
11288
- //# sourceMappingURL=victory-portal.js.map
11289
11281
 
11290
11282
  /***/ }),
11291
11283
 
@@ -11328,7 +11320,6 @@ var Circle = function (props) {
11328
11320
  vectorEffect: "non-scaling-stroke"
11329
11321
  }, rest));
11330
11322
  };
11331
- //# sourceMappingURL=circle.js.map
11332
11323
 
11333
11324
  /***/ }),
11334
11325
 
@@ -11361,7 +11352,6 @@ ClipPath.propTypes = {
11361
11352
  children: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_1___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node)]),
11362
11353
  clipId: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)])
11363
11354
  };
11364
- //# sourceMappingURL=clip-path.js.map
11365
11355
 
11366
11356
  /***/ }),
11367
11357
 
@@ -11455,7 +11445,6 @@ LineSegment.defaultProps = {
11455
11445
  role: "presentation",
11456
11446
  shapeRendering: "auto"
11457
11447
  };
11458
- //# sourceMappingURL=line-segment.js.map
11459
11448
 
11460
11449
  /***/ }),
11461
11450
 
@@ -11498,7 +11487,6 @@ var Line = function (props) {
11498
11487
  vectorEffect: "non-scaling-stroke"
11499
11488
  }, rest));
11500
11489
  };
11501
- //# sourceMappingURL=line.js.map
11502
11490
 
11503
11491
  /***/ }),
11504
11492
 
@@ -11535,7 +11523,6 @@ var Path = function (props) {
11535
11523
  // @ts-expect-error FIXME: "id cannot be a number"
11536
11524
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
11537
11525
  };
11538
- //# sourceMappingURL=path.js.map
11539
11526
 
11540
11527
  /***/ }),
11541
11528
 
@@ -11578,7 +11565,6 @@ var Rect = function (props) {
11578
11565
  vectorEffect: "non-scaling-stroke"
11579
11566
  }, rest));
11580
11567
  };
11581
- //# sourceMappingURL=rect.js.map
11582
11568
 
11583
11569
  /***/ }),
11584
11570
 
@@ -11622,7 +11608,6 @@ Text.propTypes = {
11622
11608
  desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
11623
11609
  title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
11624
11610
  };
11625
- //# sourceMappingURL=text.js.map
11626
11611
 
11627
11612
  /***/ }),
11628
11613
 
@@ -11647,7 +11632,6 @@ var TSpan = function (props) {
11647
11632
  react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
11648
11633
  );
11649
11634
  };
11650
- //# sourceMappingURL=tspan.js.map
11651
11635
 
11652
11636
  /***/ }),
11653
11637
 
@@ -11923,7 +11907,6 @@ var grayscale = {
11923
11907
  }
11924
11908
  }, baseProps)
11925
11909
  };
11926
- //# sourceMappingURL=grayscale.js.map
11927
11910
 
11928
11911
  /***/ }),
11929
11912
 
@@ -12226,7 +12209,6 @@ var material = {
12226
12209
  }
12227
12210
  }, baseProps)
12228
12211
  };
12229
- //# sourceMappingURL=material.js.map
12230
12212
 
12231
12213
  /***/ }),
12232
12214
 
@@ -12250,7 +12232,6 @@ var VictoryTheme = {
12250
12232
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
12251
12233
  material: _material__WEBPACK_IMPORTED_MODULE_1__.material
12252
12234
  };
12253
- //# sourceMappingURL=victory-theme.js.map
12254
12235
 
12255
12236
  /***/ }),
12256
12237
 
@@ -12736,7 +12717,6 @@ function modifyProps(props, fallbackProps) {
12736
12717
  theme: theme
12737
12718
  }), fallbackProps, "axis");
12738
12719
  }
12739
- //# sourceMappingURL=axis.js.map
12740
12720
 
12741
12721
  /***/ }),
12742
12722
 
@@ -12820,7 +12800,6 @@ function getMinValue(arr) {
12820
12800
  return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
12821
12801
  : Math.min.apply(Math, _toConsumableArray(array));
12822
12802
  }
12823
- //# sourceMappingURL=collection.js.map
12824
12803
 
12825
12804
  /***/ }),
12826
12805
 
@@ -12970,7 +12949,6 @@ var CommonProps = {
12970
12949
  baseProps: baseProps,
12971
12950
  primitiveProps: primitiveProps
12972
12951
  };
12973
- //# sourceMappingURL=common-props.js.map
12974
12952
 
12975
12953
  /***/ }),
12976
12954
 
@@ -13484,7 +13462,6 @@ function isDataComponent(component) {
13484
13462
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
13485
13463
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
13486
13464
  }
13487
- //# sourceMappingURL=data.js.map
13488
13465
 
13489
13466
  /***/ }),
13490
13467
 
@@ -13940,7 +13917,6 @@ function isDomainComponent(component) {
13940
13917
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
13941
13918
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
13942
13919
  }
13943
- //# sourceMappingURL=domain.js.map
13944
13920
 
13945
13921
  /***/ }),
13946
13922
 
@@ -14446,7 +14422,6 @@ var emulateReactEvent = function (event) {
14446
14422
  nativeEvent: event
14447
14423
  });
14448
14424
  };
14449
- //# sourceMappingURL=events.js.map
14450
14425
 
14451
14426
  /***/ }),
14452
14427
 
@@ -14843,7 +14818,6 @@ function isHorizontal(props) {
14843
14818
 
14844
14819
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
14845
14820
  }
14846
- //# sourceMappingURL=helpers.js.map
14847
14821
 
14848
14822
  /***/ }),
14849
14823
 
@@ -14896,7 +14870,6 @@ function shallowToJS(x, whitelist) {
14896
14870
  return result;
14897
14871
  }, isList(x) ? [] : {}) : x;
14898
14872
  }
14899
- //# sourceMappingURL=immutable.js.map
14900
14873
 
14901
14874
  /***/ }),
14902
14875
 
@@ -15154,7 +15127,6 @@ function getProps(props, index) {
15154
15127
  var tooltipTheme = theme && theme.tooltip || {};
15155
15128
  return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
15156
15129
  }
15157
- //# sourceMappingURL=label-helpers.js.map
15158
15130
 
15159
15131
  /***/ }),
15160
15132
 
@@ -15180,7 +15152,6 @@ function warn(message) {
15180
15152
  }
15181
15153
  }
15182
15154
  }
15183
- //# sourceMappingURL=log.js.map
15184
15155
 
15185
15156
  /***/ }),
15186
15157
 
@@ -15453,7 +15424,6 @@ var regExp = makeChainable(function (props, propName, componentName) {
15453
15424
 
15454
15425
  return null;
15455
15426
  });
15456
- //# sourceMappingURL=prop-types.js.map
15457
15427
 
15458
15428
  /***/ }),
15459
15429
 
@@ -15625,7 +15595,6 @@ function getType(scale) {
15625
15595
  })[0];
15626
15596
  return scaleType ? scaleType.name : undefined;
15627
15597
  }
15628
- //# sourceMappingURL=scale.js.map
15629
15598
 
15630
15599
  /***/ }),
15631
15600
 
@@ -15644,7 +15613,7 @@ __webpack_require__.r(__webpack_exports__);
15644
15613
  /* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
15645
15614
  /* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
15646
15615
  /* harmony export */ });
15647
- /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "../../victory-core/es/victory-util/collection.js");
15616
+ /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
15648
15617
 
15649
15618
 
15650
15619
  // Private Functions
@@ -15751,7 +15720,7 @@ function getBounds(props) {
15751
15720
  var point2 = getDataCoordinates(props, scale, x2, y2);
15752
15721
 
15753
15722
  var makeBound = function (a, b) {
15754
- return [_index__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _index__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
15723
+ return [_collection__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _collection__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
15755
15724
  };
15756
15725
 
15757
15726
  return {
@@ -15759,7 +15728,6 @@ function getBounds(props) {
15759
15728
  y: makeBound(point1.y, point2.y)
15760
15729
  };
15761
15730
  }
15762
- //# sourceMappingURL=selection.js.map
15763
15731
 
15764
15732
  /***/ }),
15765
15733
 
@@ -15831,7 +15799,6 @@ function getColorScale(name) {
15831
15799
  };
15832
15800
  return name ? scales[name] : scales.grayscale;
15833
15801
  }
15834
- //# sourceMappingURL=style.js.map
15835
15802
 
15836
15803
  /***/ }),
15837
15804
 
@@ -16139,7 +16106,6 @@ var _approximateTextSizeInternal = {
16139
16106
  var approximateTextSize = function (text, style) {
16140
16107
  return _approximateTextSizeInternal.impl(text, style);
16141
16108
  };
16142
- //# sourceMappingURL=textsize.js.map
16143
16109
 
16144
16110
  /***/ }),
16145
16111
 
@@ -16170,7 +16136,6 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
16170
16136
  });
16171
16137
  TimerContext.displayName = "TimerContext";
16172
16138
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
16173
- //# sourceMappingURL=timer-context.js.map
16174
16139
 
16175
16140
  /***/ }),
16176
16141
 
@@ -16273,7 +16238,6 @@ var Timer = /*#__PURE__*/function () {
16273
16238
  }();
16274
16239
 
16275
16240
 
16276
- //# sourceMappingURL=timer.js.map
16277
16241
 
16278
16242
  /***/ }),
16279
16243
 
@@ -16320,7 +16284,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
16320
16284
  var USER_PROPS_SAFELIST = {
16321
16285
  startsWith: ["data-", "aria-"],
16322
16286
  exactMatch: []
16323
- };
16287
+ }; // Normally we'd use Template Literal Types, but we're avoiding it to maximize TS compatibility with TS < 4.1
16288
+
16289
+ // `data-${string}` | `aria-${string}`;
16324
16290
 
16325
16291
  /**
16326
16292
  * doesPropStartWith: Function that takes a prop's key and runs it against all
@@ -16414,7 +16380,6 @@ var getSafeUserProps = function (props) {
16414
16380
  var withSafeUserProps = function (component, props) {
16415
16381
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
16416
16382
  };
16417
- //# sourceMappingURL=user-props.js.map
16418
16383
 
16419
16384
  /***/ }),
16420
16385
 
@@ -16923,7 +16888,6 @@ function getCategories(props, childComponents, allStrings) {
16923
16888
  y: yCategories.length > 0 ? yCategories : undefined
16924
16889
  };
16925
16890
  }
16926
- //# sourceMappingURL=wrapper.js.map
16927
16891
 
16928
16892
  /***/ }),
16929
16893
 
@@ -16936,7 +16900,7 @@ function getCategories(props, childComponents, allStrings) {
16936
16900
  "use strict";
16937
16901
  __webpack_require__.r(__webpack_exports__);
16938
16902
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16939
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16903
+ /* harmony export */ "CursorHelpers": () => (/* binding */ CursorHelpers)
16940
16904
  /* harmony export */ });
16941
16905
  /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/mapValues */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/mapValues.js");
16942
16906
  /* harmony import */ var lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_mapValues__WEBPACK_IMPORTED_MODULE_0__);
@@ -16949,103 +16913,137 @@ __webpack_require__.r(__webpack_exports__);
16949
16913
 
16950
16914
 
16951
16915
 
16952
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
16916
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
16953
16917
 
16954
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
16918
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
16955
16919
 
16956
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
16920
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
16957
16921
 
16958
16922
 
16959
16923
  var ON_MOUSE_MOVE_THROTTLE_MS = 16;
16960
- var CursorHelpers = {
16961
- getDimension: function (props) {
16962
- var horizontal = props.horizontal,
16963
- cursorDimension = props.cursorDimension;
16964
16924
 
16965
- if (!horizontal || !cursorDimension) {
16966
- return cursorDimension;
16967
- }
16925
+ var CursorHelpersClass = /*#__PURE__*/function () {
16926
+ function CursorHelpersClass() {
16927
+ var _this = this;
16968
16928
 
16969
- return cursorDimension === "x" ? "y" : "x";
16970
- },
16971
- withinBounds: function (point, bounds) {
16972
- var _mapValues2 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(bounds, Number),
16973
- x1 = _mapValues2.x1,
16974
- x2 = _mapValues2.x2,
16975
- y1 = _mapValues2.y1,
16976
- y2 = _mapValues2.y2;
16929
+ _classCallCheck(this, CursorHelpersClass);
16977
16930
 
16978
- var _mapValues3 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(point, Number),
16979
- x = _mapValues3.x,
16980
- y = _mapValues3.y;
16931
+ this.handleMouseMove = function (evt, targetProps) {
16932
+ var onCursorChange = targetProps.onCursorChange,
16933
+ domain = targetProps.domain;
16981
16934
 
16982
- return x >= Math.min(x1, x2) && x <= Math.max(x1, x2) && y >= Math.min(y1, y2) && y <= Math.max(y1, y2);
16983
- },
16984
- onMouseMove: function (evt, targetProps) {
16985
- var onCursorChange = targetProps.onCursorChange,
16986
- domain = targetProps.domain;
16987
- var cursorDimension = this.getDimension(targetProps);
16988
- var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_3__.getParentSVG(evt);
16989
- var cursorSVGPosition = victory_core__WEBPACK_IMPORTED_MODULE_3__.getSVGEventCoordinates(evt, parentSVG);
16990
- var cursorValue = victory_core__WEBPACK_IMPORTED_MODULE_3__.getDataCoordinates(targetProps, targetProps.scale, cursorSVGPosition.x, cursorSVGPosition.y);
16991
- var inBounds = this.withinBounds(cursorValue, {
16992
- x1: domain.x[0],
16993
- x2: domain.x[1],
16994
- y1: domain.y[0],
16995
- y2: domain.y[1]
16996
- });
16935
+ var cursorDimension = _this.getDimension(targetProps);
16997
16936
 
16998
- if (!inBounds) {
16999
- cursorValue = null;
17000
- }
16937
+ var parentSVG = targetProps.parentSVG || victory_core__WEBPACK_IMPORTED_MODULE_3__.getParentSVG(evt);
16938
+ var cursorSVGPosition = victory_core__WEBPACK_IMPORTED_MODULE_3__.getSVGEventCoordinates(evt, parentSVG);
16939
+ var cursorValue = victory_core__WEBPACK_IMPORTED_MODULE_3__.getDataCoordinates(targetProps, targetProps.scale, cursorSVGPosition.x, cursorSVGPosition.y);
16940
+
16941
+ var inBounds = _this.withinBounds(cursorValue, {
16942
+ x1: domain.x[0],
16943
+ x2: domain.x[1],
16944
+ y1: domain.y[0],
16945
+ y2: domain.y[1]
16946
+ });
17001
16947
 
17002
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(onCursorChange)) {
17003
- if (inBounds) {
17004
- var value = cursorDimension ? cursorValue[cursorDimension] : cursorValue;
17005
- onCursorChange(value, targetProps);
17006
- } else if (cursorValue !== targetProps.cursorValue) {
17007
- onCursorChange(targetProps.defaultCursorValue || null, targetProps);
16948
+ if (!inBounds) {
16949
+ cursorValue = null;
17008
16950
  }
17009
- }
17010
16951
 
17011
- return [{
17012
- target: "parent",
17013
- eventKey: "parent",
17014
- mutation: function () {
17015
- return {
17016
- cursorValue: cursorValue,
17017
- parentSVG: parentSVG
17018
- };
16952
+ if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(onCursorChange)) {
16953
+ if (cursorValue) {
16954
+ var value = cursorDimension ? cursorValue[cursorDimension] : cursorValue;
16955
+ onCursorChange(value, targetProps);
16956
+ } else if (cursorValue !== targetProps.cursorValue) {
16957
+ onCursorChange(targetProps.defaultCursorValue || null, targetProps);
16958
+ }
17019
16959
  }
17020
- }];
17021
- },
17022
- onTouchEnd: function (evt, targetProps) {
17023
- var onCursorChange = targetProps.onCursorChange;
17024
16960
 
17025
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(targetProps.onCursorChange)) {
17026
- onCursorChange(null, targetProps);
17027
- }
16961
+ return [{
16962
+ target: "parent",
16963
+ eventKey: "parent",
16964
+ mutation: function () {
16965
+ return {
16966
+ cursorValue: cursorValue,
16967
+ parentSVG: parentSVG
16968
+ };
16969
+ }
16970
+ }];
16971
+ };
17028
16972
 
17029
- return [{
17030
- target: "parent",
17031
- eventKey: "parent",
17032
- mutation: function () {
17033
- return {
17034
- cursorValue: null
17035
- };
16973
+ this.onMouseMove = lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default()(this.handleMouseMove, ON_MOUSE_MOVE_THROTTLE_MS, {
16974
+ leading: true,
16975
+ trailing: false
16976
+ });
16977
+ this.onMouseLeave = this.handleMouseMove;
16978
+
16979
+ this.onTouchEnd = function (evt, targetProps) {
16980
+ var onCursorChange = targetProps.onCursorChange;
16981
+
16982
+ if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(targetProps.onCursorChange)) {
16983
+ onCursorChange(null, targetProps);
17036
16984
  }
17037
- }];
16985
+
16986
+ return [{
16987
+ target: "parent",
16988
+ eventKey: "parent",
16989
+ mutation: function () {
16990
+ return {
16991
+ cursorValue: null
16992
+ };
16993
+ }
16994
+ }];
16995
+ };
17038
16996
  }
17039
- };
17040
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_objectSpread(_objectSpread({}, CursorHelpers), {}, {
17041
- onMouseMove: lodash_throttle__WEBPACK_IMPORTED_MODULE_2___default()(CursorHelpers.onMouseMove.bind(CursorHelpers), ON_MOUSE_MOVE_THROTTLE_MS, {
17042
- leading: true,
17043
- trailing: false
17044
- }),
16997
+
16998
+ _createClass(CursorHelpersClass, [{
16999
+ key: "getDimension",
17000
+ value: function getDimension(props) {
17001
+ var horizontal = props.horizontal,
17002
+ cursorDimension = props.cursorDimension;
17003
+
17004
+ if (!horizontal || !cursorDimension) {
17005
+ return cursorDimension;
17006
+ }
17007
+
17008
+ return cursorDimension === "x" ? "y" : "x";
17009
+ }
17010
+ }, {
17011
+ key: "withinBounds",
17012
+ value: function withinBounds(point, bounds) {
17013
+ var _mapValues2 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(bounds, Number),
17014
+ x1 = _mapValues2.x1,
17015
+ x2 = _mapValues2.x2,
17016
+ y1 = _mapValues2.y1,
17017
+ y2 = _mapValues2.y2;
17018
+
17019
+ var _mapValues3 = lodash_mapValues__WEBPACK_IMPORTED_MODULE_0___default()(point, Number),
17020
+ x = _mapValues3.x,
17021
+ y = _mapValues3.y;
17022
+
17023
+ return x >= Math.min(x1, x2) && x <= Math.max(x1, x2) && y >= Math.min(y1, y2) && y <= Math.max(y1, y2);
17024
+ }
17025
+ }]);
17026
+
17027
+ return CursorHelpersClass;
17028
+ }();
17029
+
17030
+ var CursorHelpers = new CursorHelpersClass();
17031
+ /* {
17032
+ ...CursorHelpers,
17033
+ onMouseMove: throttle(
17034
+ CursorHelpers.onMouseMove.bind(CursorHelpers),
17035
+ ON_MOUSE_MOVE_THROTTLE_MS,
17036
+ {
17037
+ leading: true,
17038
+ trailing: false,
17039
+ },
17040
+ ),
17045
17041
  onMouseLeave: CursorHelpers.onMouseMove.bind(CursorHelpers),
17046
- onTouchEnd: CursorHelpers.onTouchEnd.bind(CursorHelpers)
17047
- }));
17048
- //# sourceMappingURL=cursor-helpers.js.map
17042
+ onTouchEnd: CursorHelpers.onTouchEnd.bind(CursorHelpers),
17043
+ };
17044
+
17045
+
17046
+ */
17049
17047
 
17050
17048
  /***/ }),
17051
17049
 
@@ -17058,8 +17056,8 @@ var CursorHelpers = {
17058
17056
  "use strict";
17059
17057
  __webpack_require__.r(__webpack_exports__);
17060
17058
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17061
- /* harmony export */ "cursorContainerMixin": () => (/* binding */ cursorContainerMixin),
17062
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17059
+ /* harmony export */ "VictoryCursorContainer": () => (/* binding */ VictoryCursorContainer),
17060
+ /* harmony export */ "cursorContainerMixin": () => (/* binding */ cursorContainerMixin)
17063
17061
  /* harmony export */ });
17064
17062
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isObject */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js");
17065
17063
  /* harmony import */ var lodash_isObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -17122,11 +17120,12 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
17122
17120
 
17123
17121
 
17124
17122
 
17125
- var cursorContainerMixin = function (base) {
17123
+ function cursorContainerMixin(Base) {
17126
17124
  var _class;
17127
17125
 
17128
- return _class = /*#__PURE__*/function (_base) {
17129
- _inherits(VictoryCursorContainer, _base);
17126
+ // @ts-expect-error "TS2545: A mixin class must have a constructor with a single rest parameter of type 'any[]'."
17127
+ return _class = /*#__PURE__*/function (_Base) {
17128
+ _inherits(VictoryCursorContainer, _Base);
17130
17129
 
17131
17130
  var _super = _createSuper(VictoryCursorContainer);
17132
17131
 
@@ -17196,7 +17195,7 @@ var cursorContainerMixin = function (base) {
17196
17195
  name = props.name,
17197
17196
  horizontal = props.horizontal,
17198
17197
  theme = props.theme;
17199
- var cursorDimension = _cursor_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].getDimension(props);
17198
+ var cursorDimension = _cursor_helpers__WEBPACK_IMPORTED_MODULE_5__.CursorHelpers.getDimension(props);
17200
17199
  var cursorValue = this.getCursorPosition(props);
17201
17200
  var cursorLabelOffset = this.getCursorLabelOffset(props);
17202
17201
 
@@ -17269,7 +17268,7 @@ var cursorContainerMixin = function (base) {
17269
17268
  }]);
17270
17269
 
17271
17270
  return VictoryCursorContainer;
17272
- }(base), _class.displayName = "VictoryCursorContainer", _class.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer.propTypes), {}, {
17271
+ }(Base), _class.displayName = "VictoryCursorContainer", _class.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer.propTypes), {}, {
17273
17272
  cursorDimension: prop_types__WEBPACK_IMPORTED_MODULE_7___default().oneOf(["x", "y"]),
17274
17273
  cursorLabel: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().func),
17275
17274
  cursorLabelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_7___default().element),
@@ -17295,23 +17294,22 @@ var cursorContainerMixin = function (base) {
17295
17294
  target: "parent",
17296
17295
  eventHandlers: {
17297
17296
  onMouseLeave: function (evt, targetProps) {
17298
- return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onMouseLeave(evt, targetProps);
17297
+ return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_5__.CursorHelpers.onMouseLeave(evt, targetProps);
17299
17298
  },
17300
17299
  onTouchCancel: function () {
17301
17300
  return [];
17302
17301
  },
17303
17302
  onMouseMove: function (evt, targetProps) {
17304
- return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onMouseMove(evt, targetProps);
17303
+ return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_5__.CursorHelpers.onMouseMove(evt, targetProps);
17305
17304
  },
17306
17305
  onTouchMove: function (evt, targetProps) {
17307
- return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_5__["default"].onMouseMove(evt, targetProps);
17306
+ return props.disable ? {} : _cursor_helpers__WEBPACK_IMPORTED_MODULE_5__.CursorHelpers.onMouseMove(evt, targetProps);
17308
17307
  }
17309
17308
  }
17310
17309
  }];
17311
17310
  }, _class;
17312
- };
17313
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cursorContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer));
17314
- //# sourceMappingURL=victory-cursor-container.js.map
17311
+ }
17312
+ var VictoryCursorContainer = cursorContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer);
17315
17313
 
17316
17314
  /***/ }),
17317
17315
 
@@ -17611,7 +17609,6 @@ var SelectionHelpers = {
17611
17609
  trailing: false
17612
17610
  })
17613
17611
  }));
17614
- //# sourceMappingURL=selection-helpers.js.map
17615
17612
 
17616
17613
  /***/ }),
17617
17614
 
@@ -17768,7 +17765,6 @@ var selectionContainerMixin = function (base) {
17768
17765
  }, _class;
17769
17766
  };
17770
17767
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (selectionContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_1__.VictoryContainer));
17771
- //# sourceMappingURL=victory-selection-container.js.map
17772
17768
 
17773
17769
  /***/ }),
17774
17770
 
@@ -17910,7 +17906,6 @@ Flyout.defaultProps = {
17910
17906
  shapeRendering: "auto"
17911
17907
  };
17912
17908
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Flyout);
17913
- //# sourceMappingURL=flyout.js.map
17914
17909
 
17915
17910
  /***/ }),
17916
17911
 
@@ -18595,7 +18590,6 @@ VictoryTooltip.defaultEvents = function (props) {
18595
18590
  };
18596
18591
 
18597
18592
 
18598
- //# sourceMappingURL=victory-tooltip.js.map
18599
18593
 
18600
18594
  /***/ }),
18601
18595
 
@@ -19002,7 +18996,6 @@ var voronoiContainerMixin = function (base) {
19002
18996
  }, _class;
19003
18997
  };
19004
18998
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (voronoiContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer));
19005
- //# sourceMappingURL=victory-voronoi-container.js.map
19006
18999
 
19007
19000
  /***/ }),
19008
19001
 
@@ -19328,7 +19321,6 @@ var VoronoiHelpers = {
19328
19321
  trailing: false
19329
19322
  })
19330
19323
  });
19331
- //# sourceMappingURL=voronoi-helpers.js.map
19332
19324
 
19333
19325
  /***/ }),
19334
19326
 
@@ -19629,7 +19621,6 @@ var zoomContainerMixin = function (base) {
19629
19621
  }, _class;
19630
19622
  };
19631
19623
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (zoomContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer));
19632
- //# sourceMappingURL=victory-zoom-container.js.map
19633
19624
 
19634
19625
  /***/ }),
19635
19626
 
@@ -20062,7 +20053,6 @@ var RawZoomHelpers = {
20062
20053
  trailing: false
20063
20054
  })
20064
20055
  });
20065
- //# sourceMappingURL=zoom-helpers.js.map
20066
20056
 
20067
20057
  /***/ }),
20068
20058