victory-brush-line 36.5.0 → 36.5.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.
@@ -6989,7 +6989,7 @@ var Border = function (props) {
6989
6989
  clipPath: props.clipPath
6990
6990
  }));
6991
6991
  };
6992
- Border.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
6992
+ Border.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
6993
6993
  height: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
6994
6994
  rectComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
6995
6995
  width: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -7001,6 +7001,7 @@ Border.defaultProps = {
7001
7001
  role: "presentation",
7002
7002
  shapeRendering: "auto"
7003
7003
  };
7004
+ //# sourceMappingURL=border.js.map
7004
7005
 
7005
7006
  /***/ }),
7006
7007
 
@@ -7081,7 +7082,7 @@ var LineSegment = function (props) {
7081
7082
  clipPath: props.clipPath
7082
7083
  }));
7083
7084
  };
7084
- LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
7085
+ LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
7085
7086
  datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
7086
7087
  lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
7087
7088
  x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
@@ -7094,6 +7095,7 @@ LineSegment.defaultProps = {
7094
7095
  role: "presentation",
7095
7096
  shapeRendering: "auto"
7096
7097
  };
7098
+ //# sourceMappingURL=line-segment.js.map
7097
7099
 
7098
7100
  /***/ }),
7099
7101
 
@@ -7136,6 +7138,7 @@ var Line = function (props) {
7136
7138
  vectorEffect: "non-scaling-stroke"
7137
7139
  }, rest));
7138
7140
  };
7141
+ //# sourceMappingURL=line.js.map
7139
7142
 
7140
7143
  /***/ }),
7141
7144
 
@@ -7178,6 +7181,7 @@ var Rect = function (props) {
7178
7181
  vectorEffect: "non-scaling-stroke"
7179
7182
  }, rest));
7180
7183
  };
7184
+ //# sourceMappingURL=rect.js.map
7181
7185
 
7182
7186
  /***/ }),
7183
7187
 
@@ -7211,7 +7215,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
7211
7215
 
7212
7216
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
7213
7217
 
7214
- /* eslint-disable no-use-before-define */
7215
7218
  function isNonEmptyArray(collection) {
7216
7219
  return Array.isArray(collection) && collection.length > 0;
7217
7220
  }
@@ -7250,7 +7253,8 @@ function getMaxValue(arr) {
7250
7253
  }
7251
7254
 
7252
7255
  var array = arr.concat(values);
7253
- return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) : Math.max.apply(Math, _toConsumableArray(array));
7256
+ return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
7257
+ : Math.max.apply(Math, _toConsumableArray(array));
7254
7258
  }
7255
7259
  function getMinValue(arr) {
7256
7260
  for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -7258,8 +7262,10 @@ function getMinValue(arr) {
7258
7262
  }
7259
7263
 
7260
7264
  var array = arr.concat(values);
7261
- return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) : Math.min.apply(Math, _toConsumableArray(array));
7265
+ return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
7266
+ : Math.min.apply(Math, _toConsumableArray(array));
7262
7267
  }
7268
+ //# sourceMappingURL=collection.js.map
7263
7269
 
7264
7270
  /***/ }),
7265
7271
 
@@ -7272,9 +7278,7 @@ function getMinValue(arr) {
7272
7278
  "use strict";
7273
7279
  __webpack_require__.r(__webpack_exports__);
7274
7280
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7275
- /* harmony export */ "baseProps": () => (/* binding */ baseProps),
7276
- /* harmony export */ "dataProps": () => (/* binding */ dataProps),
7277
- /* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
7281
+ /* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
7278
7282
  /* harmony export */ });
7279
7283
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
7280
7284
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
@@ -7282,26 +7286,28 @@ __webpack_require__.r(__webpack_exports__);
7282
7286
 
7283
7287
 
7284
7288
  var dataProps = {
7289
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7285
7290
  categories: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7286
7291
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
7287
7292
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
7288
7293
  })]),
7294
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7289
7295
  data: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
7290
7296
  dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
7291
7297
  disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
7292
7298
  labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
7293
7299
  labels: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
7294
7300
  samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
7295
- sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
7301
+ sortKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
7296
7302
  sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
7297
7303
  style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7298
7304
  parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
7299
7305
  data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
7300
7306
  labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
7301
7307
  }),
7302
- x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
7303
- y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))]),
7304
- y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))])
7308
+ x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
7309
+ y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))]),
7310
+ y0: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string.isRequired))])
7305
7311
  };
7306
7312
  var baseProps = {
7307
7313
  animate: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)]),
@@ -7310,14 +7316,17 @@ var baseProps = {
7310
7316
  x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
7311
7317
  y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
7312
7318
  })]),
7319
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7313
7320
  maxDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7314
7321
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
7315
7322
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
7316
7323
  })]),
7324
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7317
7325
  minDomain: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7318
7326
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)]),
7319
7327
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Date)])
7320
7328
  })]),
7329
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7321
7330
  domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7322
7331
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))]),
7323
7332
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().number))])
@@ -7328,6 +7337,7 @@ var baseProps = {
7328
7337
  eventKey: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().array), _prop_types__WEBPACK_IMPORTED_MODULE_1__.allOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.integer, _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative]), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
7329
7338
  eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
7330
7339
  })),
7340
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7331
7341
  externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7332
7342
  callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
7333
7343
  childName: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array)]),
@@ -7338,10 +7348,12 @@ var baseProps = {
7338
7348
  groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
7339
7349
  height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
7340
7350
  name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
7351
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7341
7352
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7342
7353
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
7343
7354
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
7344
7355
  }),
7356
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7345
7357
  padding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7346
7358
  top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
7347
7359
  bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
@@ -7350,17 +7362,19 @@ var baseProps = {
7350
7362
  })]),
7351
7363
  polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
7352
7364
  range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7353
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
7354
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
7365
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
7366
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
7355
7367
  })]),
7356
7368
  scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7357
- x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
7358
- y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
7369
+ x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
7370
+ y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
7359
7371
  })]),
7372
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7360
7373
  sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7361
7374
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
7362
7375
  getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
7363
7376
  }),
7377
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7364
7378
  singleQuadrantDomainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7365
7379
  x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
7366
7380
  y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
@@ -7380,6 +7394,7 @@ var primitiveProps = {
7380
7394
  events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
7381
7395
  id: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
7382
7396
  index: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)]),
7397
+ // @ts-expect-error TODO: synchronize the type with this PropTypes
7383
7398
  origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
7384
7399
  x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
7385
7400
  y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
@@ -7395,6 +7410,12 @@ var primitiveProps = {
7395
7410
  tabIndex: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().number), (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)]),
7396
7411
  transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
7397
7412
  };
7413
+ var CommonProps = {
7414
+ dataProps: dataProps,
7415
+ baseProps: baseProps,
7416
+ primitiveProps: primitiveProps
7417
+ };
7418
+ //# sourceMappingURL=common-props.js.map
7398
7419
 
7399
7420
  /***/ }),
7400
7421
 
@@ -7908,6 +7929,7 @@ function isDataComponent(component) {
7908
7929
  var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
7909
7930
  return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
7910
7931
  }
7932
+ //# sourceMappingURL=data.js.map
7911
7933
 
7912
7934
  /***/ }),
7913
7935
 
@@ -8009,8 +8031,9 @@ function getDomainPadding(props, axis) {
8009
8031
  }
8010
8032
 
8011
8033
  function getFlatData(dataset, axis) {
8034
+ var axisKey = "_".concat(axis);
8012
8035
  return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
8013
- return datum["_".concat(axis)] && datum["_".concat(axis)][1] !== undefined ? datum["_".concat(axis)][1] : datum["_".concat(axis)];
8036
+ return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
8014
8037
  });
8015
8038
  }
8016
8039
 
@@ -8075,7 +8098,9 @@ function padDomain(domain, props, axis) {
8075
8098
  if (addsQuadrants && singleQuadrantDomainPadding !== false) {
8076
8099
  // Naive initial padding calculation
8077
8100
  var initialPadding = {
8101
+ // @ts-expect-error `max/min` might be dates
8078
8102
  left: Math.abs(max - min) * padding.left / rangeExtent,
8103
+ // @ts-expect-error `max/min` might be dates
8079
8104
  right: Math.abs(max - min) * padding.right / rangeExtent
8080
8105
  }; // Adjust the domain by the initial padding
8081
8106
 
@@ -8360,6 +8385,7 @@ function isDomainComponent(component) {
8360
8385
  var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
8361
8386
  return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
8362
8387
  }
8388
+ //# sourceMappingURL=domain.js.map
8363
8389
 
8364
8390
  /***/ }),
8365
8391
 
@@ -8441,7 +8467,7 @@ function getPolarRange(props, axis) {
8441
8467
 
8442
8468
  /**
8443
8469
  * creates an object with some keys excluded
8444
- * replacement for lodash.omit for performance. does not mimick the entire lodash.omit api
8470
+ * replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
8445
8471
  * @param {Object} originalObject: created object will be based on this object
8446
8472
  * @param {Array<String>} ks: an array of keys to omit from the new object
8447
8473
  * @returns {Object} new object with same properties as originalObject
@@ -8454,6 +8480,7 @@ function omit(originalObject) {
8454
8480
  var newObject = {};
8455
8481
 
8456
8482
  for (var key in originalObject) {
8483
+ // @ts-expect-error String is not assignable to Key
8457
8484
  if (ks.indexOf(key) >= 0) {
8458
8485
  continue;
8459
8486
  }
@@ -8686,7 +8713,9 @@ function reduceChildren(children, iteratee) {
8686
8713
  var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
8687
8714
  var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
8688
8715
  var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
8689
- return memo.concat(item);
8716
+ return (// @ts-expect-error These defaults are hard to type
8717
+ memo.concat(item)
8718
+ );
8690
8719
  };
8691
8720
  var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
8692
8721
 
@@ -8730,7 +8759,7 @@ function reduceChildren(children, iteratee) {
8730
8759
  /**
8731
8760
  * @param {Object} props: the props object
8732
8761
  * @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
8733
- * children or nested children are hoizontal
8762
+ * children or nested children are horizontal
8734
8763
  */
8735
8764
 
8736
8765
  function isHorizontal(props) {
@@ -8753,6 +8782,7 @@ function isHorizontal(props) {
8753
8782
 
8754
8783
  return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
8755
8784
  }
8785
+ //# sourceMappingURL=helpers.js.map
8756
8786
 
8757
8787
  /***/ }),
8758
8788
 
@@ -8796,15 +8826,16 @@ function isMap(x) {
8796
8826
  return !!(x && x[IMMUTABLE_MAP]);
8797
8827
  }
8798
8828
  function shallowToJS(x, whitelist) {
8799
- return isIterable(x) ? x.reduce(function (prev, curr, key) {
8829
+ return isIterable(x) ? x.reduce(function (result, curr, key) {
8800
8830
  if (whitelist && whitelist[key]) {
8801
8831
  curr = shallowToJS(curr);
8802
8832
  }
8803
8833
 
8804
- prev[key] = curr;
8805
- return prev;
8834
+ result[key] = curr;
8835
+ return result;
8806
8836
  }, isList(x) ? [] : {}) : x;
8807
8837
  }
8838
+ //# sourceMappingURL=immutable.js.map
8808
8839
 
8809
8840
  /***/ }),
8810
8841
 
@@ -8830,6 +8861,7 @@ function warn(message) {
8830
8861
  }
8831
8862
  }
8832
8863
  }
8864
+ //# sourceMappingURL=log.js.map
8833
8865
 
8834
8866
  /***/ }),
8835
8867
 
@@ -8857,12 +8889,10 @@ __webpack_require__.r(__webpack_exports__);
8857
8889
  /* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
8858
8890
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
8859
8891
  /* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
8860
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isFunction */ "../../../node_modules/lodash/isFunction.js");
8861
- /* harmony import */ var lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isFunction__WEBPACK_IMPORTED_MODULE_2__);
8862
- /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
8863
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
8864
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
8865
-
8892
+ /* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
8893
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
8894
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
8895
+ /* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
8866
8896
 
8867
8897
 
8868
8898
 
@@ -8870,6 +8900,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8870
8900
 
8871
8901
 
8872
8902
 
8903
+
8904
+
8873
8905
  /**
8874
8906
  * Return a new validator based on `validator` but with the option to chain
8875
8907
  * `isRequired` onto the validation. This is nearly identical to how React
@@ -8877,30 +8909,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
8877
8909
  * @param {Function} validator Validation function.
8878
8910
  * @returns {Function} Validator with `isRequired` option.
8879
8911
  */
8880
-
8881
8912
  var makeChainable = function (validator) {
8882
- /* eslint-disable max-params */
8883
- var _chainable = function (isRequired, props, propName, componentName) {
8884
- var value = props[propName];
8913
+ var createChainable = function (isRequired) {
8914
+ return function (props, propName, componentName) {
8915
+ var value = props[propName];
8885
8916
 
8886
- if (value === undefined || value === null) {
8887
- if (isRequired) {
8888
- return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
8889
- }
8917
+ if (value === undefined || value === null) {
8918
+ if (isRequired) {
8919
+ return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
8920
+ }
8890
8921
 
8891
- return null;
8892
- }
8922
+ return null;
8923
+ }
8893
8924
 
8894
- for (var _len = arguments.length, rest = new Array(_len > 4 ? _len - 4 : 0), _key = 4; _key < _len; _key++) {
8895
- rest[_key - 4] = arguments[_key];
8896
- }
8925
+ for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
8926
+ rest[_key - 3] = arguments[_key];
8927
+ }
8897
8928
 
8898
- return validator.apply(void 0, [props, propName, componentName].concat(rest));
8929
+ return validator.apply(void 0, [props, propName, componentName].concat(rest));
8930
+ };
8899
8931
  };
8900
8932
 
8901
- var chainable = _chainable.bind(null, false);
8902
-
8903
- chainable.isRequired = _chainable.bind(null, true);
8933
+ var chainable = Object.assign(createChainable(false), {
8934
+ isRequired: createChainable(true)
8935
+ });
8904
8936
  return chainable;
8905
8937
  };
8906
8938
 
@@ -8930,7 +8962,7 @@ var getConstructor = function (value) {
8930
8962
  };
8931
8963
  /**
8932
8964
  * Get the name of the constructor used to create `value`, using
8933
- * `Object.protoype.toString`. If the value is null or undefined, return
8965
+ * `Object.prototype.toString`. If the value is null or undefined, return
8934
8966
  * "null" or "undefined", respectively.
8935
8967
  * @param {*} value Instance to return the constructor name of.
8936
8968
  * @returns {String} Name of the constructor.
@@ -8960,10 +8992,11 @@ function deprecated(propType, explanation) {
8960
8992
  var value = props[propName];
8961
8993
 
8962
8994
  if (value !== null && value !== undefined) {
8963
- _log__WEBPACK_IMPORTED_MODULE_3__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
8995
+ _log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
8964
8996
  }
8965
8997
 
8966
- return prop_types__WEBPACK_IMPORTED_MODULE_4___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
8998
+ prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
8999
+ return null;
8967
9000
  };
8968
9001
  }
8969
9002
  /**
@@ -8982,7 +9015,7 @@ function allOfType(validators) {
8982
9015
 
8983
9016
  return validators.reduce(function (result, validator) {
8984
9017
  return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
8985
- }, undefined);
9018
+ }, null);
8986
9019
  });
8987
9020
  }
8988
9021
  /**
@@ -8996,7 +9029,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
8996
9029
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
8997
9030
  }
8998
9031
 
8999
- return undefined;
9032
+ return null;
9000
9033
  });
9001
9034
  /**
9002
9035
  * Check that the value is an integer.
@@ -9009,7 +9042,7 @@ var integer = makeChainable(function (props, propName, componentName) {
9009
9042
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
9010
9043
  }
9011
9044
 
9012
- return undefined;
9045
+ return null;
9013
9046
  });
9014
9047
  /**
9015
9048
  * Check that the value is greater than zero.
@@ -9022,7 +9055,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
9022
9055
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
9023
9056
  }
9024
9057
 
9025
- return undefined;
9058
+ return null;
9026
9059
  });
9027
9060
  /**
9028
9061
  * Check that the value is an Array of two unique values.
@@ -9035,32 +9068,20 @@ var domain = makeChainable(function (props, propName, componentName) {
9035
9068
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
9036
9069
  }
9037
9070
 
9038
- return undefined;
9071
+ return null;
9039
9072
  });
9040
9073
  /**
9041
9074
  * Check that the value looks like a d3 `scale` function.
9042
9075
  */
9043
9076
 
9044
9077
  var scale = makeChainable(function (props, propName, componentName) {
9045
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
9046
-
9047
- var validScale = function (scl) {
9048
- if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
9049
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.copy) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.domain) && lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl.range);
9050
- } else if (typeof scl === "string") {
9051
- return supportedScaleStrings.indexOf(scl) !== -1;
9052
- }
9053
-
9054
- return false;
9055
- };
9056
-
9057
9078
  var value = props[propName];
9058
9079
 
9059
- if (!validScale(value)) {
9080
+ if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
9060
9081
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
9061
9082
  }
9062
9083
 
9063
- return undefined;
9084
+ return null;
9064
9085
  });
9065
9086
  /**
9066
9087
  * Check that an array contains items of the same type.
@@ -9074,7 +9095,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
9074
9095
  }
9075
9096
 
9076
9097
  if (values.length < 2) {
9077
- return undefined;
9098
+ return null;
9078
9099
  }
9079
9100
 
9080
9101
  var comparisonConstructor = getConstructor(values[0]);
@@ -9089,7 +9110,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
9089
9110
  return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
9090
9111
  }
9091
9112
 
9092
- return undefined;
9113
+ return null;
9093
9114
  });
9094
9115
  /**
9095
9116
  * Check that array prop length matches props.data.length
@@ -9100,7 +9121,7 @@ var matchDataLength = makeChainable(function (props, propName) {
9100
9121
  return new Error("Length of data and ".concat(propName, " arrays must match."));
9101
9122
  }
9102
9123
 
9103
- return undefined;
9124
+ return null;
9104
9125
  });
9105
9126
  /**
9106
9127
  * Check that the value is a regular expression
@@ -9111,8 +9132,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
9111
9132
  return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
9112
9133
  }
9113
9134
 
9114
- return undefined;
9135
+ return null;
9115
9136
  });
9137
+ //# sourceMappingURL=prop-types.js.map
9116
9138
 
9117
9139
  /***/ }),
9118
9140
 
@@ -9130,7 +9152,8 @@ __webpack_require__.r(__webpack_exports__);
9130
9152
  /* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
9131
9153
  /* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
9132
9154
  /* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
9133
- /* harmony export */ "getType": () => (/* binding */ getType)
9155
+ /* harmony export */ "getType": () => (/* binding */ getType),
9156
+ /* harmony export */ "validScale": () => (/* binding */ validScale)
9134
9157
  /* harmony export */ });
9135
9158
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
9136
9159
  /* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
@@ -9148,8 +9171,9 @@ __webpack_require__.r(__webpack_exports__);
9148
9171
 
9149
9172
 
9150
9173
 
9151
- var supportedScaleStrings = ["linear", "time", "log", "sqrt"]; // Private Functions
9174
+ var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
9152
9175
 
9176
+ // Private Functions
9153
9177
  function toNewName(scale) {
9154
9178
  // d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
9155
9179
  var capitalize = function (s) {
@@ -9219,7 +9243,13 @@ function getScaleTypeFromData(props, axis) {
9219
9243
 
9220
9244
 
9221
9245
  function getScaleFromName(name) {
9222
- return validScale(name) ? victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(name)]() : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
9246
+ if (validScale(name)) {
9247
+ var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
9248
+
9249
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
9250
+ }
9251
+
9252
+ return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
9223
9253
  }
9224
9254
  function getBaseScale(props, axis) {
9225
9255
  var scale = getScaleFromProps(props, axis);
@@ -9229,7 +9259,7 @@ function getBaseScale(props, axis) {
9229
9259
  }
9230
9260
 
9231
9261
  var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
9232
- return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(defaultScale)]();
9262
+ return getScaleFromName(defaultScale);
9233
9263
  }
9234
9264
  function getDefaultScale() {
9235
9265
  return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
@@ -9242,7 +9272,7 @@ function getScaleFromProps(props, axis) {
9242
9272
  var scale = props.scale[axis] || props.scale;
9243
9273
 
9244
9274
  if (validScale(scale)) {
9245
- return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[toNewName(scale)]();
9275
+ return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
9246
9276
  }
9247
9277
 
9248
9278
  return undefined;
@@ -9277,6 +9307,7 @@ function getType(scale) {
9277
9307
  })[0];
9278
9308
  return scaleType ? scaleType.name : undefined;
9279
9309
  }
9310
+ //# sourceMappingURL=scale.js.map
9280
9311
 
9281
9312
  /***/ }),
9282
9313
 
@@ -9295,10 +9326,10 @@ __webpack_require__.r(__webpack_exports__);
9295
9326
  /* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
9296
9327
  /* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
9297
9328
  /* harmony export */ });
9298
- /* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
9299
- /* eslint-disable no-use-before-define */
9300
- // Private Functions
9329
+ /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "../../victory-core/es/victory-util/collection.js");
9330
+
9301
9331
 
9332
+ // Private Functions
9302
9333
  function transformTarget(target, matrix, dimension) {
9303
9334
  var a = matrix.a,
9304
9335
  d = matrix.d,
@@ -9309,11 +9340,20 @@ function transformTarget(target, matrix, dimension) {
9309
9340
 
9310
9341
  function getTransformationMatrix(svg) {
9311
9342
  return svg.getScreenCTM().inverse();
9343
+ }
9344
+
9345
+ function isNativeTouchEvent(nativeEvent) {
9346
+ return !!(nativeEvent && nativeEvent.identifier !== undefined);
9347
+ }
9348
+
9349
+ function isReactTouchEvent(evt) {
9350
+ return evt.changedTouches && evt.changedTouches.length > 0;
9312
9351
  } // Exported Functions
9313
9352
 
9314
9353
 
9315
9354
  function getParentSVG(evt) {
9316
- if (evt.nativeEvent && evt.nativeEvent.identifier !== undefined) {
9355
+ if (isNativeTouchEvent(evt.nativeEvent)) {
9356
+ // @ts-expect-error Seems like a superfluous check.
9317
9357
  return undefined;
9318
9358
  }
9319
9359
 
@@ -9328,7 +9368,7 @@ function getParentSVG(evt) {
9328
9368
  return getParent(evt.target);
9329
9369
  }
9330
9370
  function getSVGEventCoordinates(evt, svg) {
9331
- if (evt.nativeEvent && evt.nativeEvent.identifier !== undefined) {
9371
+ if (isNativeTouchEvent(evt.nativeEvent)) {
9332
9372
  // react-native override. relies on the RN.View being the _exact_ same size as its child SVG.
9333
9373
  // this should be fine: the svg is the only child of View and the View shirks to its children
9334
9374
  return {
@@ -9337,24 +9377,25 @@ function getSVGEventCoordinates(evt, svg) {
9337
9377
  };
9338
9378
  }
9339
9379
 
9340
- evt = evt.changedTouches && evt.changedTouches.length ? evt.changedTouches[0] : evt;
9341
- svg = svg || getParentSVG(evt);
9380
+ var location = isReactTouchEvent(evt) ? evt.changedTouches[0] : evt;
9381
+ svg = svg || getParentSVG(location);
9342
9382
  var matrix = getTransformationMatrix(svg);
9343
9383
  return {
9344
- x: transformTarget(evt.clientX, matrix, "x"),
9345
- y: transformTarget(evt.clientY, matrix, "y")
9384
+ x: transformTarget(location.clientX, matrix, "x"),
9385
+ y: transformTarget(location.clientY, matrix, "y")
9346
9386
  };
9347
9387
  }
9348
9388
  function getDomainCoordinates(props, domain) {
9349
- var scale = props.scale,
9350
- horizontal = props.horizontal;
9351
- domain = domain || {
9389
+ var horizontal = props.horizontal;
9390
+ var scale = props.scale; // FIXME: add support for DomainTuple: [number, number]
9391
+
9392
+ var domainObj = domain || {
9352
9393
  x: scale.x.domain(),
9353
9394
  y: scale.y.domain()
9354
9395
  };
9355
9396
  return {
9356
- x: horizontal ? [scale.y(domain.y[0]), scale.y(domain.y[1])] : [scale.x(domain.x[0]), scale.x(domain.x[1])],
9357
- y: horizontal ? [scale.x(domain.x[0]), scale.x(domain.x[1])] : [scale.y(domain.y[0]), scale.y(domain.y[1])]
9397
+ x: horizontal ? [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])] : [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])],
9398
+ y: horizontal ? [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])] : [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])]
9358
9399
  };
9359
9400
  } // eslint-disable-next-line max-params
9360
9401
 
@@ -9392,7 +9433,7 @@ function getBounds(props) {
9392
9433
  var point2 = getDataCoordinates(props, scale, x2, y2);
9393
9434
 
9394
9435
  var makeBound = function (a, b) {
9395
- return [_collection__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _collection__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
9436
+ return [_index__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _index__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
9396
9437
  };
9397
9438
 
9398
9439
  return {
@@ -9400,6 +9441,7 @@ function getBounds(props) {
9400
9441
  y: makeBound(point1.y, point2.y)
9401
9442
  };
9402
9443
  }
9444
+ //# sourceMappingURL=selection.js.map
9403
9445
 
9404
9446
  /***/ }),
9405
9447