victory-create-container 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.
- package/dist/victory-create-container.js +201 -119
- package/dist/victory-create-container.min.js +1 -1
- package/es/create-container.js +2 -1
- package/es/index.d.ts +8 -1
- package/es/index.js +2 -1
- package/lib/create-container.js +2 -1
- package/lib/index.d.ts +8 -1
- package/lib/index.js +2 -1
- package/package.json +8 -8
- package/src/create-container.js +12 -12
- package/src/index.d.ts +8 -1
- package/src/index.js +1 -1
|
@@ -9457,6 +9457,7 @@ var Helpers = {
|
|
|
9457
9457
|
trailing: false
|
|
9458
9458
|
})
|
|
9459
9459
|
}));
|
|
9460
|
+
//# sourceMappingURL=brush-helpers.js.map
|
|
9460
9461
|
|
|
9461
9462
|
/***/ }),
|
|
9462
9463
|
|
|
@@ -9736,6 +9737,7 @@ var brushContainerMixin = function (base) {
|
|
|
9736
9737
|
}, _class;
|
|
9737
9738
|
};
|
|
9738
9739
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (brushContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer));
|
|
9740
|
+
//# sourceMappingURL=victory-brush-container.js.map
|
|
9739
9741
|
|
|
9740
9742
|
/***/ }),
|
|
9741
9743
|
|
|
@@ -10046,6 +10048,7 @@ VictoryClipContainer.defaultProps = {
|
|
|
10046
10048
|
clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_victory_primitives_clip_path__WEBPACK_IMPORTED_MODULE_11__.ClipPath, null),
|
|
10047
10049
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement("g", null)
|
|
10048
10050
|
};
|
|
10051
|
+
//# sourceMappingURL=victory-clip-container.js.map
|
|
10049
10052
|
|
|
10050
10053
|
/***/ }),
|
|
10051
10054
|
|
|
@@ -10359,6 +10362,7 @@ VictoryContainer.defaultProps = {
|
|
|
10359
10362
|
role: "img"
|
|
10360
10363
|
};
|
|
10361
10364
|
VictoryContainer.contextType = _victory_util_timer_context__WEBPACK_IMPORTED_MODULE_12__["default"];
|
|
10365
|
+
//# sourceMappingURL=victory-container.js.map
|
|
10362
10366
|
|
|
10363
10367
|
/***/ }),
|
|
10364
10368
|
|
|
@@ -10964,10 +10968,9 @@ VictoryLabel.propTypes = {
|
|
|
10964
10968
|
inline: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
10965
10969
|
labelPlacement: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOf(["parallel", "perpendicular", "vertical"]),
|
|
10966
10970
|
lineHeight: prop_types__WEBPACK_IMPORTED_MODULE_11___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_11___default().string), _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative, (prop_types__WEBPACK_IMPORTED_MODULE_11___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_11___default().array)]),
|
|
10967
|
-
// @ts-expect-error "x is required in origin"
|
|
10968
10971
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_11___default().shape({
|
|
10969
|
-
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative,
|
|
10970
|
-
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative
|
|
10972
|
+
x: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired,
|
|
10973
|
+
y: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_12__.nonNegative.isRequired
|
|
10971
10974
|
}),
|
|
10972
10975
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
10973
10976
|
renderInPortal: (prop_types__WEBPACK_IMPORTED_MODULE_11___default().bool),
|
|
@@ -11001,6 +11004,7 @@ VictoryLabel.defaultProps = {
|
|
|
11001
11004
|
// Magic number from d3.
|
|
11002
11005
|
lineHeight: 1
|
|
11003
11006
|
};
|
|
11007
|
+
//# sourceMappingURL=victory-label.js.map
|
|
11004
11008
|
|
|
11005
11009
|
/***/ }),
|
|
11006
11010
|
|
|
@@ -11025,6 +11029,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11025
11029
|
*/
|
|
11026
11030
|
var PortalContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createContext({});
|
|
11027
11031
|
PortalContext.displayName = "PortalContext";
|
|
11032
|
+
//# sourceMappingURL=portal-context.js.map
|
|
11028
11033
|
|
|
11029
11034
|
/***/ }),
|
|
11030
11035
|
|
|
@@ -11136,6 +11141,7 @@ Portal.propTypes = {
|
|
|
11136
11141
|
viewBox: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
|
11137
11142
|
width: _victory_util_prop_types__WEBPACK_IMPORTED_MODULE_3__.nonNegative
|
|
11138
11143
|
};
|
|
11144
|
+
//# sourceMappingURL=portal.js.map
|
|
11139
11145
|
|
|
11140
11146
|
/***/ }),
|
|
11141
11147
|
|
|
@@ -11279,6 +11285,7 @@ VictoryPortal.defaultProps = {
|
|
|
11279
11285
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
|
|
11280
11286
|
};
|
|
11281
11287
|
VictoryPortal.contextType = _portal_context__WEBPACK_IMPORTED_MODULE_5__.PortalContext;
|
|
11288
|
+
//# sourceMappingURL=victory-portal.js.map
|
|
11282
11289
|
|
|
11283
11290
|
/***/ }),
|
|
11284
11291
|
|
|
@@ -11321,6 +11328,7 @@ var Circle = function (props) {
|
|
|
11321
11328
|
vectorEffect: "non-scaling-stroke"
|
|
11322
11329
|
}, rest));
|
|
11323
11330
|
};
|
|
11331
|
+
//# sourceMappingURL=circle.js.map
|
|
11324
11332
|
|
|
11325
11333
|
/***/ }),
|
|
11326
11334
|
|
|
@@ -11353,6 +11361,7 @@ ClipPath.propTypes = {
|
|
|
11353
11361
|
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)]),
|
|
11354
11362
|
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)])
|
|
11355
11363
|
};
|
|
11364
|
+
//# sourceMappingURL=clip-path.js.map
|
|
11356
11365
|
|
|
11357
11366
|
/***/ }),
|
|
11358
11367
|
|
|
@@ -11433,7 +11442,7 @@ var LineSegment = function (props) {
|
|
|
11433
11442
|
clipPath: props.clipPath
|
|
11434
11443
|
}));
|
|
11435
11444
|
};
|
|
11436
|
-
LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.primitiveProps), {}, {
|
|
11445
|
+
LineSegment.propTypes = _objectSpread(_objectSpread({}, _victory_util_common_props__WEBPACK_IMPORTED_MODULE_3__.CommonProps.primitiveProps), {}, {
|
|
11437
11446
|
datum: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().any),
|
|
11438
11447
|
lineComponent: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().element),
|
|
11439
11448
|
x1: (prop_types__WEBPACK_IMPORTED_MODULE_4___default().number),
|
|
@@ -11446,6 +11455,7 @@ LineSegment.defaultProps = {
|
|
|
11446
11455
|
role: "presentation",
|
|
11447
11456
|
shapeRendering: "auto"
|
|
11448
11457
|
};
|
|
11458
|
+
//# sourceMappingURL=line-segment.js.map
|
|
11449
11459
|
|
|
11450
11460
|
/***/ }),
|
|
11451
11461
|
|
|
@@ -11488,6 +11498,7 @@ var Line = function (props) {
|
|
|
11488
11498
|
vectorEffect: "non-scaling-stroke"
|
|
11489
11499
|
}, rest));
|
|
11490
11500
|
};
|
|
11501
|
+
//# sourceMappingURL=line.js.map
|
|
11491
11502
|
|
|
11492
11503
|
/***/ }),
|
|
11493
11504
|
|
|
@@ -11524,6 +11535,7 @@ var Path = function (props) {
|
|
|
11524
11535
|
// @ts-expect-error FIXME: "id cannot be a number"
|
|
11525
11536
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("path", rest);
|
|
11526
11537
|
};
|
|
11538
|
+
//# sourceMappingURL=path.js.map
|
|
11527
11539
|
|
|
11528
11540
|
/***/ }),
|
|
11529
11541
|
|
|
@@ -11566,6 +11578,7 @@ var Rect = function (props) {
|
|
|
11566
11578
|
vectorEffect: "non-scaling-stroke"
|
|
11567
11579
|
}, rest));
|
|
11568
11580
|
};
|
|
11581
|
+
//# sourceMappingURL=rect.js.map
|
|
11569
11582
|
|
|
11570
11583
|
/***/ }),
|
|
11571
11584
|
|
|
@@ -11609,6 +11622,7 @@ Text.propTypes = {
|
|
|
11609
11622
|
desc: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
|
11610
11623
|
title: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
|
11611
11624
|
};
|
|
11625
|
+
//# sourceMappingURL=text.js.map
|
|
11612
11626
|
|
|
11613
11627
|
/***/ }),
|
|
11614
11628
|
|
|
@@ -11633,6 +11647,7 @@ var TSpan = function (props) {
|
|
|
11633
11647
|
react__WEBPACK_IMPORTED_MODULE_0___default().createElement("tspan", props)
|
|
11634
11648
|
);
|
|
11635
11649
|
};
|
|
11650
|
+
//# sourceMappingURL=tspan.js.map
|
|
11636
11651
|
|
|
11637
11652
|
/***/ }),
|
|
11638
11653
|
|
|
@@ -11908,6 +11923,7 @@ var grayscale = {
|
|
|
11908
11923
|
}
|
|
11909
11924
|
}, baseProps)
|
|
11910
11925
|
};
|
|
11926
|
+
//# sourceMappingURL=grayscale.js.map
|
|
11911
11927
|
|
|
11912
11928
|
/***/ }),
|
|
11913
11929
|
|
|
@@ -12210,6 +12226,7 @@ var material = {
|
|
|
12210
12226
|
}
|
|
12211
12227
|
}, baseProps)
|
|
12212
12228
|
};
|
|
12229
|
+
//# sourceMappingURL=material.js.map
|
|
12213
12230
|
|
|
12214
12231
|
/***/ }),
|
|
12215
12232
|
|
|
@@ -12233,6 +12250,7 @@ var VictoryTheme = {
|
|
|
12233
12250
|
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
12234
12251
|
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
12235
12252
|
};
|
|
12253
|
+
//# sourceMappingURL=victory-theme.js.map
|
|
12236
12254
|
|
|
12237
12255
|
/***/ }),
|
|
12238
12256
|
|
|
@@ -12317,13 +12335,13 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
12317
12335
|
|
|
12318
12336
|
|
|
12319
12337
|
|
|
12338
|
+
|
|
12320
12339
|
/**
|
|
12321
12340
|
* Returns the axis (x or y) of a particular axis component
|
|
12322
12341
|
* @param {Object} props: the props object.
|
|
12323
12342
|
* @param {Boolean} horizontal: true for horizontal charts
|
|
12324
12343
|
* @returns {String} the dimension appropriate for the axis given its props
|
|
12325
12344
|
*/
|
|
12326
|
-
|
|
12327
12345
|
function getAxis(props) {
|
|
12328
12346
|
var dependentAxis = props.dependentAxis;
|
|
12329
12347
|
return dependentAxis ? "y" : "x";
|
|
@@ -12509,7 +12527,7 @@ function getTickArray(props) {
|
|
|
12509
12527
|
}) : lodash_range__WEBPACK_IMPORTED_MODULE_4___default()(1, tickValues.length + 1);
|
|
12510
12528
|
}
|
|
12511
12529
|
|
|
12512
|
-
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat(
|
|
12530
|
+
var tickArray = ticks ? lodash_uniq__WEBPACK_IMPORTED_MODULE_5___default()(ticks) : getTicksFromFormat();
|
|
12513
12531
|
|
|
12514
12532
|
var buildTickArray = function (arr) {
|
|
12515
12533
|
var newTickArray = [];
|
|
@@ -12554,11 +12572,11 @@ function getTickFormat(props, scale) {
|
|
|
12554
12572
|
return defaultTickFormat || scaleTickFormat;
|
|
12555
12573
|
} else if (tickFormat && Array.isArray(tickFormat)) {
|
|
12556
12574
|
var tickArray = getTickArray(props);
|
|
12557
|
-
var tickArrayIndices = tickArray ? tickArray.map(function (v) {
|
|
12575
|
+
var tickArrayIndices = tickArray === null || tickArray === void 0 ? void 0 : tickArray.map(function (v) {
|
|
12558
12576
|
return v.index;
|
|
12559
|
-
})
|
|
12577
|
+
});
|
|
12560
12578
|
var filteredTickFormat = tickFormat.filter(function (t, index) {
|
|
12561
|
-
return tickArrayIndices.includes(index);
|
|
12579
|
+
return tickArrayIndices === null || tickArrayIndices === void 0 ? void 0 : tickArrayIndices.includes(index);
|
|
12562
12580
|
});
|
|
12563
12581
|
return function (x, index) {
|
|
12564
12582
|
return filteredTickFormat[index];
|
|
@@ -12592,7 +12610,8 @@ function downsampleTicks(ticks, tickCount) {
|
|
|
12592
12610
|
});
|
|
12593
12611
|
}
|
|
12594
12612
|
|
|
12595
|
-
function getTicks(props, scale
|
|
12613
|
+
function getTicks(props, scale) {
|
|
12614
|
+
var filterZero = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
12596
12615
|
var tickCount = props.tickCount;
|
|
12597
12616
|
var tickArray = getTickArray(props);
|
|
12598
12617
|
var tickValues = tickArray ? tickArray.map(function (v) {
|
|
@@ -12715,6 +12734,7 @@ function modifyProps(props, fallbackProps) {
|
|
|
12715
12734
|
theme: theme
|
|
12716
12735
|
}), fallbackProps, "axis");
|
|
12717
12736
|
}
|
|
12737
|
+
//# sourceMappingURL=axis.js.map
|
|
12718
12738
|
|
|
12719
12739
|
/***/ }),
|
|
12720
12740
|
|
|
@@ -12748,7 +12768,6 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
12748
12768
|
|
|
12749
12769
|
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; }
|
|
12750
12770
|
|
|
12751
|
-
/* eslint-disable no-use-before-define */
|
|
12752
12771
|
function isNonEmptyArray(collection) {
|
|
12753
12772
|
return Array.isArray(collection) && collection.length > 0;
|
|
12754
12773
|
}
|
|
@@ -12787,7 +12806,8 @@ function getMaxValue(arr) {
|
|
|
12787
12806
|
}
|
|
12788
12807
|
|
|
12789
12808
|
var array = arr.concat(values);
|
|
12790
|
-
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array)))
|
|
12809
|
+
return containsDates(array) ? new Date(Math.max.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
12810
|
+
: Math.max.apply(Math, _toConsumableArray(array));
|
|
12791
12811
|
}
|
|
12792
12812
|
function getMinValue(arr) {
|
|
12793
12813
|
for (var _len2 = arguments.length, values = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
@@ -12795,8 +12815,10 @@ function getMinValue(arr) {
|
|
|
12795
12815
|
}
|
|
12796
12816
|
|
|
12797
12817
|
var array = arr.concat(values);
|
|
12798
|
-
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array)))
|
|
12818
|
+
return containsDates(array) ? new Date(Math.min.apply(Math, _toConsumableArray(array))) // Dates will be coerced to numbers
|
|
12819
|
+
: Math.min.apply(Math, _toConsumableArray(array));
|
|
12799
12820
|
}
|
|
12821
|
+
//# sourceMappingURL=collection.js.map
|
|
12800
12822
|
|
|
12801
12823
|
/***/ }),
|
|
12802
12824
|
|
|
@@ -12809,9 +12831,7 @@ function getMinValue(arr) {
|
|
|
12809
12831
|
"use strict";
|
|
12810
12832
|
__webpack_require__.r(__webpack_exports__);
|
|
12811
12833
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12812
|
-
/* harmony export */ "
|
|
12813
|
-
/* harmony export */ "dataProps": () => (/* binding */ dataProps),
|
|
12814
|
-
/* harmony export */ "primitiveProps": () => (/* binding */ primitiveProps)
|
|
12834
|
+
/* harmony export */ "CommonProps": () => (/* binding */ CommonProps)
|
|
12815
12835
|
/* harmony export */ });
|
|
12816
12836
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
12817
12837
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -12819,26 +12839,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12819
12839
|
|
|
12820
12840
|
|
|
12821
12841
|
var dataProps = {
|
|
12842
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12822
12843
|
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({
|
|
12823
12844
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)),
|
|
12824
12845
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_0___default().string))
|
|
12825
12846
|
})]),
|
|
12847
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12826
12848
|
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)]),
|
|
12827
12849
|
dataComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12828
12850
|
disableInlineStyles: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12829
12851
|
labelComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12830
12852
|
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)]),
|
|
12831
12853
|
samples: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
12832
|
-
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))]),
|
|
12854
|
+
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))]),
|
|
12833
12855
|
sortOrder: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(["ascending", "descending"]),
|
|
12834
12856
|
style: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12835
12857
|
parent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12836
12858
|
data: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12837
12859
|
labels: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
12838
12860
|
}),
|
|
12839
|
-
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))]),
|
|
12840
|
-
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))]),
|
|
12841
|
-
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))])
|
|
12861
|
+
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))]),
|
|
12862
|
+
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))]),
|
|
12863
|
+
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))])
|
|
12842
12864
|
};
|
|
12843
12865
|
var baseProps = {
|
|
12844
12866
|
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)]),
|
|
@@ -12847,14 +12869,17 @@ var baseProps = {
|
|
|
12847
12869
|
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
12848
12870
|
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
12849
12871
|
})]),
|
|
12872
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12850
12873
|
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({
|
|
12851
12874
|
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)]),
|
|
12852
12875
|
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)])
|
|
12853
12876
|
})]),
|
|
12877
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12854
12878
|
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({
|
|
12855
12879
|
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)]),
|
|
12856
12880
|
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)])
|
|
12857
12881
|
})]),
|
|
12882
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12858
12883
|
domainPadding: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12859
12884
|
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))]),
|
|
12860
12885
|
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))])
|
|
@@ -12865,6 +12890,7 @@ var baseProps = {
|
|
|
12865
12890
|
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)]),
|
|
12866
12891
|
eventHandlers: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object)
|
|
12867
12892
|
})),
|
|
12893
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12868
12894
|
externalEventMutations: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12869
12895
|
callback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
|
12870
12896
|
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)]),
|
|
@@ -12875,10 +12901,12 @@ var baseProps = {
|
|
|
12875
12901
|
groupComponent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().element),
|
|
12876
12902
|
height: _prop_types__WEBPACK_IMPORTED_MODULE_1__.nonNegative,
|
|
12877
12903
|
name: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
|
12904
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12878
12905
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12879
12906
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12880
12907
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
12881
12908
|
}),
|
|
12909
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12882
12910
|
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({
|
|
12883
12911
|
top: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12884
12912
|
bottom: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
@@ -12887,17 +12915,19 @@ var baseProps = {
|
|
|
12887
12915
|
})]),
|
|
12888
12916
|
polar: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
|
12889
12917
|
range: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.domain, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12890
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain,
|
|
12891
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain
|
|
12918
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired,
|
|
12919
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.domain.isRequired
|
|
12892
12920
|
})]),
|
|
12893
12921
|
scale: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([_prop_types__WEBPACK_IMPORTED_MODULE_1__.scale, prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12894
|
-
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale,
|
|
12895
|
-
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale
|
|
12922
|
+
x: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired,
|
|
12923
|
+
y: _prop_types__WEBPACK_IMPORTED_MODULE_1__.scale.isRequired
|
|
12896
12924
|
})]),
|
|
12925
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12897
12926
|
sharedEvents: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12898
12927
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().array),
|
|
12899
12928
|
getEventState: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func)
|
|
12900
12929
|
}),
|
|
12930
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12901
12931
|
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({
|
|
12902
12932
|
x: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)]),
|
|
12903
12933
|
y: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)])
|
|
@@ -12917,6 +12947,7 @@ var primitiveProps = {
|
|
|
12917
12947
|
events: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
|
12918
12948
|
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)]),
|
|
12919
12949
|
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)]),
|
|
12950
|
+
// @ts-expect-error TODO: synchronize the type with this PropTypes
|
|
12920
12951
|
origin: prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
|
12921
12952
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number),
|
|
12922
12953
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().number)
|
|
@@ -12932,6 +12963,12 @@ var primitiveProps = {
|
|
|
12932
12963
|
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)]),
|
|
12933
12964
|
transform: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
|
12934
12965
|
};
|
|
12966
|
+
var CommonProps = {
|
|
12967
|
+
dataProps: dataProps,
|
|
12968
|
+
baseProps: baseProps,
|
|
12969
|
+
primitiveProps: primitiveProps
|
|
12970
|
+
};
|
|
12971
|
+
//# sourceMappingURL=common-props.js.map
|
|
12935
12972
|
|
|
12936
12973
|
/***/ }),
|
|
12937
12974
|
|
|
@@ -13445,6 +13482,7 @@ function isDataComponent(component) {
|
|
|
13445
13482
|
var whitelist = ["area", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
13446
13483
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_2___default()(whitelist, role);
|
|
13447
13484
|
}
|
|
13485
|
+
//# sourceMappingURL=data.js.map
|
|
13448
13486
|
|
|
13449
13487
|
/***/ }),
|
|
13450
13488
|
|
|
@@ -13546,8 +13584,9 @@ function getDomainPadding(props, axis) {
|
|
|
13546
13584
|
}
|
|
13547
13585
|
|
|
13548
13586
|
function getFlatData(dataset, axis) {
|
|
13587
|
+
var axisKey = "_".concat(axis);
|
|
13549
13588
|
return lodash_flatten__WEBPACK_IMPORTED_MODULE_5___default()(dataset).map(function (datum) {
|
|
13550
|
-
return datum[
|
|
13589
|
+
return datum[axisKey] && datum[axisKey][1] !== undefined ? datum[axisKey][1] : datum[axisKey];
|
|
13551
13590
|
});
|
|
13552
13591
|
}
|
|
13553
13592
|
|
|
@@ -13612,7 +13651,9 @@ function padDomain(domain, props, axis) {
|
|
|
13612
13651
|
if (addsQuadrants && singleQuadrantDomainPadding !== false) {
|
|
13613
13652
|
// Naive initial padding calculation
|
|
13614
13653
|
var initialPadding = {
|
|
13654
|
+
// @ts-expect-error `max/min` might be dates
|
|
13615
13655
|
left: Math.abs(max - min) * padding.left / rangeExtent,
|
|
13656
|
+
// @ts-expect-error `max/min` might be dates
|
|
13616
13657
|
right: Math.abs(max - min) * padding.right / rangeExtent
|
|
13617
13658
|
}; // Adjust the domain by the initial padding
|
|
13618
13659
|
|
|
@@ -13897,6 +13938,7 @@ function isDomainComponent(component) {
|
|
|
13897
13938
|
var whitelist = ["area", "axis", "bar", "boxplot", "candlestick", "errorbar", "group", "histogram", "line", "pie", "scatter", "stack", "voronoi"];
|
|
13898
13939
|
return lodash_includes__WEBPACK_IMPORTED_MODULE_1___default()(whitelist, role);
|
|
13899
13940
|
}
|
|
13941
|
+
//# sourceMappingURL=domain.js.map
|
|
13900
13942
|
|
|
13901
13943
|
/***/ }),
|
|
13902
13944
|
|
|
@@ -13965,15 +14007,16 @@ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToAr
|
|
|
13965
14007
|
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; }
|
|
13966
14008
|
|
|
13967
14009
|
var GLOBAL_EVENT_REGEX = /^onGlobal(.*)$/;
|
|
14010
|
+
|
|
13968
14011
|
/* Returns all own and shared events that should be attached to a single target element,
|
|
13969
14012
|
* i.e. an individual bar specified by target: "data", eventKey: [index].
|
|
13970
14013
|
* Returned events are scoped to the appropriate state. Either that of the component itself
|
|
13971
14014
|
* (i.e. VictoryBar) in the case of own events, or that of the parent component
|
|
13972
14015
|
* (i.e. VictoryChart) in the case of shared events
|
|
13973
14016
|
*/
|
|
13974
|
-
// eslint-disable-next-line max-params
|
|
13975
|
-
|
|
13976
|
-
|
|
14017
|
+
// eslint-disable-next-line max-params
|
|
14018
|
+
function getEvents(props, target, eventKey, // eslint-disable-next-line no-shadow
|
|
14019
|
+
getScopedEvents) {
|
|
13977
14020
|
var _this = this;
|
|
13978
14021
|
|
|
13979
14022
|
// Returns all events that apply to a particular target element
|
|
@@ -14196,24 +14239,27 @@ function getScopedEvents(events, namespace, childType, baseProps) {
|
|
|
14196
14239
|
return memo;
|
|
14197
14240
|
}, {});
|
|
14198
14241
|
}
|
|
14199
|
-
/*
|
|
14242
|
+
/*
|
|
14243
|
+
* Returns a partially applied event handler for a specific target element
|
|
14200
14244
|
* This allows event handlers to have access to props controlling each element
|
|
14201
14245
|
*/
|
|
14202
14246
|
|
|
14203
14247
|
function getPartialEvents(events, eventKey, childProps) {
|
|
14204
|
-
|
|
14248
|
+
if (!events) return {};
|
|
14249
|
+
return lodash_keys__WEBPACK_IMPORTED_MODULE_0___default()(events).reduce(function (memo, eventName) {
|
|
14205
14250
|
var appliedEvent = function (evt) {
|
|
14206
14251
|
return events[eventName](evt, childProps, eventKey, eventName);
|
|
14207
14252
|
};
|
|
14208
14253
|
|
|
14209
14254
|
memo[eventName] = appliedEvent;
|
|
14210
14255
|
return memo;
|
|
14211
|
-
}, {})
|
|
14256
|
+
}, {});
|
|
14212
14257
|
}
|
|
14258
|
+
|
|
14213
14259
|
/* Returns the property of the state object corresponding to event changes for
|
|
14214
14260
|
* a particular element
|
|
14215
14261
|
*/
|
|
14216
|
-
|
|
14262
|
+
// eslint-disable-next-line max-params
|
|
14217
14263
|
function getEventState(eventKey, namespace, childType) {
|
|
14218
14264
|
// Mandatory usage: `getEventState.bind(this)`
|
|
14219
14265
|
// eslint-disable-next-line no-invalid-this
|
|
@@ -14398,6 +14444,7 @@ var emulateReactEvent = function (event) {
|
|
|
14398
14444
|
nativeEvent: event
|
|
14399
14445
|
});
|
|
14400
14446
|
};
|
|
14447
|
+
//# sourceMappingURL=events.js.map
|
|
14401
14448
|
|
|
14402
14449
|
/***/ }),
|
|
14403
14450
|
|
|
@@ -14479,7 +14526,7 @@ function getPolarRange(props, axis) {
|
|
|
14479
14526
|
|
|
14480
14527
|
/**
|
|
14481
14528
|
* creates an object with some keys excluded
|
|
14482
|
-
* replacement for lodash.omit for performance. does not
|
|
14529
|
+
* replacement for lodash.omit for performance. does not mimic the entire lodash.omit api
|
|
14483
14530
|
* @param {Object} originalObject: created object will be based on this object
|
|
14484
14531
|
* @param {Array<String>} ks: an array of keys to omit from the new object
|
|
14485
14532
|
* @returns {Object} new object with same properties as originalObject
|
|
@@ -14492,6 +14539,7 @@ function omit(originalObject) {
|
|
|
14492
14539
|
var newObject = {};
|
|
14493
14540
|
|
|
14494
14541
|
for (var key in originalObject) {
|
|
14542
|
+
// @ts-expect-error String is not assignable to Key
|
|
14495
14543
|
if (ks.indexOf(key) >= 0) {
|
|
14496
14544
|
continue;
|
|
14497
14545
|
}
|
|
@@ -14724,7 +14772,9 @@ function reduceChildren(children, iteratee) {
|
|
|
14724
14772
|
var parentProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
14725
14773
|
var initialMemo = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
14726
14774
|
var combine = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function (memo, item) {
|
|
14727
|
-
return
|
|
14775
|
+
return (// @ts-expect-error These defaults are hard to type
|
|
14776
|
+
memo.concat(item)
|
|
14777
|
+
);
|
|
14728
14778
|
};
|
|
14729
14779
|
var sharedProps = ["data", "domain", "categories", "polar", "startAngle", "endAngle", "minDomain", "maxDomain", "horizontal"];
|
|
14730
14780
|
|
|
@@ -14768,7 +14818,7 @@ function reduceChildren(children, iteratee) {
|
|
|
14768
14818
|
/**
|
|
14769
14819
|
* @param {Object} props: the props object
|
|
14770
14820
|
* @returns {Boolean} returns true if the props object contains `horizontal: true` of if any
|
|
14771
|
-
* children or nested children are
|
|
14821
|
+
* children or nested children are horizontal
|
|
14772
14822
|
*/
|
|
14773
14823
|
|
|
14774
14824
|
function isHorizontal(props) {
|
|
@@ -14791,6 +14841,7 @@ function isHorizontal(props) {
|
|
|
14791
14841
|
|
|
14792
14842
|
return traverseChildren(react__WEBPACK_IMPORTED_MODULE_6___default().Children.toArray(props.children));
|
|
14793
14843
|
}
|
|
14844
|
+
//# sourceMappingURL=helpers.js.map
|
|
14794
14845
|
|
|
14795
14846
|
/***/ }),
|
|
14796
14847
|
|
|
@@ -14834,15 +14885,16 @@ function isMap(x) {
|
|
|
14834
14885
|
return !!(x && x[IMMUTABLE_MAP]);
|
|
14835
14886
|
}
|
|
14836
14887
|
function shallowToJS(x, whitelist) {
|
|
14837
|
-
return isIterable(x) ? x.reduce(function (
|
|
14888
|
+
return isIterable(x) ? x.reduce(function (result, curr, key) {
|
|
14838
14889
|
if (whitelist && whitelist[key]) {
|
|
14839
14890
|
curr = shallowToJS(curr);
|
|
14840
14891
|
}
|
|
14841
14892
|
|
|
14842
|
-
|
|
14843
|
-
return
|
|
14893
|
+
result[key] = curr;
|
|
14894
|
+
return result;
|
|
14844
14895
|
}, isList(x) ? [] : {}) : x;
|
|
14845
14896
|
}
|
|
14897
|
+
//# sourceMappingURL=immutable.js.map
|
|
14846
14898
|
|
|
14847
14899
|
/***/ }),
|
|
14848
14900
|
|
|
@@ -15100,6 +15152,7 @@ function getProps(props, index) {
|
|
|
15100
15152
|
var tooltipTheme = theme && theme.tooltip || {};
|
|
15101
15153
|
return lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, labelProps, _helpers__WEBPACK_IMPORTED_MODULE_1__.omit(tooltipTheme, ["style"]));
|
|
15102
15154
|
}
|
|
15155
|
+
//# sourceMappingURL=label-helpers.js.map
|
|
15103
15156
|
|
|
15104
15157
|
/***/ }),
|
|
15105
15158
|
|
|
@@ -15125,6 +15178,7 @@ function warn(message) {
|
|
|
15125
15178
|
}
|
|
15126
15179
|
}
|
|
15127
15180
|
}
|
|
15181
|
+
//# sourceMappingURL=log.js.map
|
|
15128
15182
|
|
|
15129
15183
|
/***/ }),
|
|
15130
15184
|
|
|
@@ -15152,12 +15206,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15152
15206
|
/* harmony import */ var lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isRegExp__WEBPACK_IMPORTED_MODULE_0__);
|
|
15153
15207
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/find */ "../../../node_modules/lodash/find.js");
|
|
15154
15208
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
15155
|
-
/* harmony import */ var
|
|
15156
|
-
/* harmony import */ var
|
|
15157
|
-
/* harmony import */ var
|
|
15158
|
-
/* harmony import */ var
|
|
15159
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_4__);
|
|
15160
|
-
|
|
15209
|
+
/* harmony import */ var _log__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./log */ "../../victory-core/es/victory-util/log.js");
|
|
15210
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "../../../node_modules/prop-types/index.js");
|
|
15211
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
15212
|
+
/* harmony import */ var _scale__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./scale */ "../../victory-core/es/victory-util/scale.js");
|
|
15161
15213
|
|
|
15162
15214
|
|
|
15163
15215
|
|
|
@@ -15165,6 +15217,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
15165
15217
|
|
|
15166
15218
|
|
|
15167
15219
|
|
|
15220
|
+
|
|
15221
|
+
|
|
15168
15222
|
/**
|
|
15169
15223
|
* Return a new validator based on `validator` but with the option to chain
|
|
15170
15224
|
* `isRequired` onto the validation. This is nearly identical to how React
|
|
@@ -15172,30 +15226,30 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
15172
15226
|
* @param {Function} validator Validation function.
|
|
15173
15227
|
* @returns {Function} Validator with `isRequired` option.
|
|
15174
15228
|
*/
|
|
15175
|
-
|
|
15176
15229
|
var makeChainable = function (validator) {
|
|
15177
|
-
|
|
15178
|
-
|
|
15179
|
-
|
|
15230
|
+
var createChainable = function (isRequired) {
|
|
15231
|
+
return function (props, propName, componentName) {
|
|
15232
|
+
var value = props[propName];
|
|
15180
15233
|
|
|
15181
|
-
|
|
15182
|
-
|
|
15183
|
-
|
|
15184
|
-
|
|
15234
|
+
if (value === undefined || value === null) {
|
|
15235
|
+
if (isRequired) {
|
|
15236
|
+
return new Error("Required `".concat(propName, "` was not specified in `").concat(componentName, "`."));
|
|
15237
|
+
}
|
|
15185
15238
|
|
|
15186
|
-
|
|
15187
|
-
|
|
15239
|
+
return null;
|
|
15240
|
+
}
|
|
15188
15241
|
|
|
15189
|
-
|
|
15190
|
-
|
|
15191
|
-
|
|
15242
|
+
for (var _len = arguments.length, rest = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {
|
|
15243
|
+
rest[_key - 3] = arguments[_key];
|
|
15244
|
+
}
|
|
15192
15245
|
|
|
15193
|
-
|
|
15246
|
+
return validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
15247
|
+
};
|
|
15194
15248
|
};
|
|
15195
15249
|
|
|
15196
|
-
var chainable =
|
|
15197
|
-
|
|
15198
|
-
|
|
15250
|
+
var chainable = Object.assign(createChainable(false), {
|
|
15251
|
+
isRequired: createChainable(true)
|
|
15252
|
+
});
|
|
15199
15253
|
return chainable;
|
|
15200
15254
|
};
|
|
15201
15255
|
|
|
@@ -15225,7 +15279,7 @@ var getConstructor = function (value) {
|
|
|
15225
15279
|
};
|
|
15226
15280
|
/**
|
|
15227
15281
|
* Get the name of the constructor used to create `value`, using
|
|
15228
|
-
* `Object.
|
|
15282
|
+
* `Object.prototype.toString`. If the value is null or undefined, return
|
|
15229
15283
|
* "null" or "undefined", respectively.
|
|
15230
15284
|
* @param {*} value Instance to return the constructor name of.
|
|
15231
15285
|
* @returns {String} Name of the constructor.
|
|
@@ -15255,10 +15309,11 @@ function deprecated(propType, explanation) {
|
|
|
15255
15309
|
var value = props[propName];
|
|
15256
15310
|
|
|
15257
15311
|
if (value !== null && value !== undefined) {
|
|
15258
|
-
|
|
15312
|
+
_log__WEBPACK_IMPORTED_MODULE_2__.warn("\"".concat(propName, "\" property of \"").concat(componentName, "\" has been deprecated ").concat(explanation));
|
|
15259
15313
|
}
|
|
15260
15314
|
|
|
15261
|
-
|
|
15315
|
+
prop_types__WEBPACK_IMPORTED_MODULE_3___default().checkPropTypes(_defineProperty({}, propName, propType), props, propName, componentName);
|
|
15316
|
+
return null;
|
|
15262
15317
|
};
|
|
15263
15318
|
}
|
|
15264
15319
|
/**
|
|
@@ -15277,7 +15332,7 @@ function allOfType(validators) {
|
|
|
15277
15332
|
|
|
15278
15333
|
return validators.reduce(function (result, validator) {
|
|
15279
15334
|
return result || validator.apply(void 0, [props, propName, componentName].concat(rest));
|
|
15280
|
-
},
|
|
15335
|
+
}, null);
|
|
15281
15336
|
});
|
|
15282
15337
|
}
|
|
15283
15338
|
/**
|
|
@@ -15291,7 +15346,7 @@ var nonNegative = makeChainable(function (props, propName, componentName) {
|
|
|
15291
15346
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a non-negative number."));
|
|
15292
15347
|
}
|
|
15293
15348
|
|
|
15294
|
-
return
|
|
15349
|
+
return null;
|
|
15295
15350
|
});
|
|
15296
15351
|
/**
|
|
15297
15352
|
* Check that the value is an integer.
|
|
@@ -15304,7 +15359,7 @@ var integer = makeChainable(function (props, propName, componentName) {
|
|
|
15304
15359
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an integer."));
|
|
15305
15360
|
}
|
|
15306
15361
|
|
|
15307
|
-
return
|
|
15362
|
+
return null;
|
|
15308
15363
|
});
|
|
15309
15364
|
/**
|
|
15310
15365
|
* Check that the value is greater than zero.
|
|
@@ -15317,7 +15372,7 @@ var greaterThanZero = makeChainable(function (props, propName, componentName) {
|
|
|
15317
15372
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a number greater than zero."));
|
|
15318
15373
|
}
|
|
15319
15374
|
|
|
15320
|
-
return
|
|
15375
|
+
return null;
|
|
15321
15376
|
});
|
|
15322
15377
|
/**
|
|
15323
15378
|
* Check that the value is an Array of two unique values.
|
|
@@ -15330,32 +15385,20 @@ var domain = makeChainable(function (props, propName, componentName) {
|
|
|
15330
15385
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be an array of two unique numeric values."));
|
|
15331
15386
|
}
|
|
15332
15387
|
|
|
15333
|
-
return
|
|
15388
|
+
return null;
|
|
15334
15389
|
});
|
|
15335
15390
|
/**
|
|
15336
15391
|
* Check that the value looks like a d3 `scale` function.
|
|
15337
15392
|
*/
|
|
15338
15393
|
|
|
15339
15394
|
var scale = makeChainable(function (props, propName, componentName) {
|
|
15340
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
15341
|
-
|
|
15342
|
-
var validScale = function (scl) {
|
|
15343
|
-
if (lodash_isFunction__WEBPACK_IMPORTED_MODULE_2___default()(scl)) {
|
|
15344
|
-
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);
|
|
15345
|
-
} else if (typeof scl === "string") {
|
|
15346
|
-
return supportedScaleStrings.indexOf(scl) !== -1;
|
|
15347
|
-
}
|
|
15348
|
-
|
|
15349
|
-
return false;
|
|
15350
|
-
};
|
|
15351
|
-
|
|
15352
15395
|
var value = props[propName];
|
|
15353
15396
|
|
|
15354
|
-
if (!validScale(value)) {
|
|
15397
|
+
if (!_scale__WEBPACK_IMPORTED_MODULE_4__.validScale(value)) {
|
|
15355
15398
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a d3 scale."));
|
|
15356
15399
|
}
|
|
15357
15400
|
|
|
15358
|
-
return
|
|
15401
|
+
return null;
|
|
15359
15402
|
});
|
|
15360
15403
|
/**
|
|
15361
15404
|
* Check that an array contains items of the same type.
|
|
@@ -15369,7 +15412,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
15369
15412
|
}
|
|
15370
15413
|
|
|
15371
15414
|
if (values.length < 2) {
|
|
15372
|
-
return
|
|
15415
|
+
return null;
|
|
15373
15416
|
}
|
|
15374
15417
|
|
|
15375
15418
|
var comparisonConstructor = getConstructor(values[0]);
|
|
@@ -15384,7 +15427,7 @@ var homogeneousArray = makeChainable(function (props, propName, componentName) {
|
|
|
15384
15427
|
return new Error("Expected `".concat(propName, "` in `").concat(componentName, "` to be a ") + "homogeneous array, but found types `".concat(constructorName, "` and ") + "`".concat(otherConstructorName, "`."));
|
|
15385
15428
|
}
|
|
15386
15429
|
|
|
15387
|
-
return
|
|
15430
|
+
return null;
|
|
15388
15431
|
});
|
|
15389
15432
|
/**
|
|
15390
15433
|
* Check that array prop length matches props.data.length
|
|
@@ -15395,7 +15438,7 @@ var matchDataLength = makeChainable(function (props, propName) {
|
|
|
15395
15438
|
return new Error("Length of data and ".concat(propName, " arrays must match."));
|
|
15396
15439
|
}
|
|
15397
15440
|
|
|
15398
|
-
return
|
|
15441
|
+
return null;
|
|
15399
15442
|
});
|
|
15400
15443
|
/**
|
|
15401
15444
|
* Check that the value is a regular expression
|
|
@@ -15406,8 +15449,9 @@ var regExp = makeChainable(function (props, propName, componentName) {
|
|
|
15406
15449
|
return new Error("`".concat(propName, "` in `").concat(componentName, "` must be a regular expression."));
|
|
15407
15450
|
}
|
|
15408
15451
|
|
|
15409
|
-
return
|
|
15452
|
+
return null;
|
|
15410
15453
|
});
|
|
15454
|
+
//# sourceMappingURL=prop-types.js.map
|
|
15411
15455
|
|
|
15412
15456
|
/***/ }),
|
|
15413
15457
|
|
|
@@ -15425,7 +15469,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15425
15469
|
/* harmony export */ "getScaleFromName": () => (/* binding */ getScaleFromName),
|
|
15426
15470
|
/* harmony export */ "getScaleFromProps": () => (/* binding */ getScaleFromProps),
|
|
15427
15471
|
/* harmony export */ "getScaleType": () => (/* binding */ getScaleType),
|
|
15428
|
-
/* harmony export */ "getType": () => (/* binding */ getType)
|
|
15472
|
+
/* harmony export */ "getType": () => (/* binding */ getType),
|
|
15473
|
+
/* harmony export */ "validScale": () => (/* binding */ validScale)
|
|
15429
15474
|
/* harmony export */ });
|
|
15430
15475
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/isPlainObject */ "../../../node_modules/lodash/isPlainObject.js");
|
|
15431
15476
|
/* harmony import */ var lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_isPlainObject__WEBPACK_IMPORTED_MODULE_0__);
|
|
@@ -15443,8 +15488,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15443
15488
|
|
|
15444
15489
|
|
|
15445
15490
|
|
|
15446
|
-
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
15491
|
+
var supportedScaleStrings = ["linear", "time", "log", "sqrt"];
|
|
15447
15492
|
|
|
15493
|
+
// Private Functions
|
|
15448
15494
|
function toNewName(scale) {
|
|
15449
15495
|
// d3 scale changed the naming scheme for scale from "linear" -> "scaleLinear" etc.
|
|
15450
15496
|
var capitalize = function (s) {
|
|
@@ -15514,7 +15560,13 @@ function getScaleTypeFromData(props, axis) {
|
|
|
15514
15560
|
|
|
15515
15561
|
|
|
15516
15562
|
function getScaleFromName(name) {
|
|
15517
|
-
|
|
15563
|
+
if (validScale(name)) {
|
|
15564
|
+
var methodName = toNewName(name); // @ts-expect-error scaleTime is not directly compatible with our D3Scale definition
|
|
15565
|
+
|
|
15566
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_5__[methodName]();
|
|
15567
|
+
}
|
|
15568
|
+
|
|
15569
|
+
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
15518
15570
|
}
|
|
15519
15571
|
function getBaseScale(props, axis) {
|
|
15520
15572
|
var scale = getScaleFromProps(props, axis);
|
|
@@ -15524,7 +15576,7 @@ function getBaseScale(props, axis) {
|
|
|
15524
15576
|
}
|
|
15525
15577
|
|
|
15526
15578
|
var defaultScale = getScaleFromDomain(props, axis) || getScaleTypeFromData(props, axis);
|
|
15527
|
-
return
|
|
15579
|
+
return getScaleFromName(defaultScale);
|
|
15528
15580
|
}
|
|
15529
15581
|
function getDefaultScale() {
|
|
15530
15582
|
return victory_vendor_d3_scale__WEBPACK_IMPORTED_MODULE_6__["default"]();
|
|
@@ -15537,7 +15589,7 @@ function getScaleFromProps(props, axis) {
|
|
|
15537
15589
|
var scale = props.scale[axis] || props.scale;
|
|
15538
15590
|
|
|
15539
15591
|
if (validScale(scale)) {
|
|
15540
|
-
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale :
|
|
15592
|
+
return lodash_isFunction__WEBPACK_IMPORTED_MODULE_1___default()(scale) ? scale : getScaleFromName(scale);
|
|
15541
15593
|
}
|
|
15542
15594
|
|
|
15543
15595
|
return undefined;
|
|
@@ -15572,6 +15624,7 @@ function getType(scale) {
|
|
|
15572
15624
|
})[0];
|
|
15573
15625
|
return scaleType ? scaleType.name : undefined;
|
|
15574
15626
|
}
|
|
15627
|
+
//# sourceMappingURL=scale.js.map
|
|
15575
15628
|
|
|
15576
15629
|
/***/ }),
|
|
15577
15630
|
|
|
@@ -15590,10 +15643,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15590
15643
|
/* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
|
|
15591
15644
|
/* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
|
|
15592
15645
|
/* harmony export */ });
|
|
15593
|
-
/* harmony import */ var
|
|
15594
|
-
|
|
15595
|
-
// Private Functions
|
|
15646
|
+
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index */ "../../victory-core/es/victory-util/collection.js");
|
|
15647
|
+
|
|
15596
15648
|
|
|
15649
|
+
// Private Functions
|
|
15597
15650
|
function transformTarget(target, matrix, dimension) {
|
|
15598
15651
|
var a = matrix.a,
|
|
15599
15652
|
d = matrix.d,
|
|
@@ -15604,11 +15657,20 @@ function transformTarget(target, matrix, dimension) {
|
|
|
15604
15657
|
|
|
15605
15658
|
function getTransformationMatrix(svg) {
|
|
15606
15659
|
return svg.getScreenCTM().inverse();
|
|
15660
|
+
}
|
|
15661
|
+
|
|
15662
|
+
function isNativeTouchEvent(nativeEvent) {
|
|
15663
|
+
return !!(nativeEvent && nativeEvent.identifier !== undefined);
|
|
15664
|
+
}
|
|
15665
|
+
|
|
15666
|
+
function isReactTouchEvent(evt) {
|
|
15667
|
+
return evt.changedTouches && evt.changedTouches.length > 0;
|
|
15607
15668
|
} // Exported Functions
|
|
15608
15669
|
|
|
15609
15670
|
|
|
15610
15671
|
function getParentSVG(evt) {
|
|
15611
|
-
if (evt.nativeEvent
|
|
15672
|
+
if (isNativeTouchEvent(evt.nativeEvent)) {
|
|
15673
|
+
// @ts-expect-error Seems like a superfluous check.
|
|
15612
15674
|
return undefined;
|
|
15613
15675
|
}
|
|
15614
15676
|
|
|
@@ -15623,7 +15685,7 @@ function getParentSVG(evt) {
|
|
|
15623
15685
|
return getParent(evt.target);
|
|
15624
15686
|
}
|
|
15625
15687
|
function getSVGEventCoordinates(evt, svg) {
|
|
15626
|
-
if (evt.nativeEvent
|
|
15688
|
+
if (isNativeTouchEvent(evt.nativeEvent)) {
|
|
15627
15689
|
// react-native override. relies on the RN.View being the _exact_ same size as its child SVG.
|
|
15628
15690
|
// this should be fine: the svg is the only child of View and the View shirks to its children
|
|
15629
15691
|
return {
|
|
@@ -15632,24 +15694,25 @@ function getSVGEventCoordinates(evt, svg) {
|
|
|
15632
15694
|
};
|
|
15633
15695
|
}
|
|
15634
15696
|
|
|
15635
|
-
|
|
15636
|
-
svg = svg || getParentSVG(
|
|
15697
|
+
var location = isReactTouchEvent(evt) ? evt.changedTouches[0] : evt;
|
|
15698
|
+
svg = svg || getParentSVG(location);
|
|
15637
15699
|
var matrix = getTransformationMatrix(svg);
|
|
15638
15700
|
return {
|
|
15639
|
-
x: transformTarget(
|
|
15640
|
-
y: transformTarget(
|
|
15701
|
+
x: transformTarget(location.clientX, matrix, "x"),
|
|
15702
|
+
y: transformTarget(location.clientY, matrix, "y")
|
|
15641
15703
|
};
|
|
15642
15704
|
}
|
|
15643
15705
|
function getDomainCoordinates(props, domain) {
|
|
15644
|
-
var
|
|
15645
|
-
|
|
15646
|
-
|
|
15706
|
+
var horizontal = props.horizontal;
|
|
15707
|
+
var scale = props.scale; // FIXME: add support for DomainTuple: [number, number]
|
|
15708
|
+
|
|
15709
|
+
var domainObj = domain || {
|
|
15647
15710
|
x: scale.x.domain(),
|
|
15648
15711
|
y: scale.y.domain()
|
|
15649
15712
|
};
|
|
15650
15713
|
return {
|
|
15651
|
-
x: horizontal ? [scale.y(
|
|
15652
|
-
y: horizontal ? [scale.x(
|
|
15714
|
+
x: horizontal ? [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])] : [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])],
|
|
15715
|
+
y: horizontal ? [scale.x(domainObj.x[0]), scale.x(domainObj.x[1])] : [scale.y(domainObj.y[0]), scale.y(domainObj.y[1])]
|
|
15653
15716
|
};
|
|
15654
15717
|
} // eslint-disable-next-line max-params
|
|
15655
15718
|
|
|
@@ -15687,7 +15750,7 @@ function getBounds(props) {
|
|
|
15687
15750
|
var point2 = getDataCoordinates(props, scale, x2, y2);
|
|
15688
15751
|
|
|
15689
15752
|
var makeBound = function (a, b) {
|
|
15690
|
-
return [
|
|
15753
|
+
return [_index__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _index__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
|
|
15691
15754
|
};
|
|
15692
15755
|
|
|
15693
15756
|
return {
|
|
@@ -15695,6 +15758,7 @@ function getBounds(props) {
|
|
|
15695
15758
|
y: makeBound(point1.y, point2.y)
|
|
15696
15759
|
};
|
|
15697
15760
|
}
|
|
15761
|
+
//# sourceMappingURL=selection.js.map
|
|
15698
15762
|
|
|
15699
15763
|
/***/ }),
|
|
15700
15764
|
|
|
@@ -15766,6 +15830,7 @@ function getColorScale(name) {
|
|
|
15766
15830
|
};
|
|
15767
15831
|
return name ? scales[name] : scales.grayscale;
|
|
15768
15832
|
}
|
|
15833
|
+
//# sourceMappingURL=style.js.map
|
|
15769
15834
|
|
|
15770
15835
|
/***/ }),
|
|
15771
15836
|
|
|
@@ -15970,8 +16035,10 @@ var _getSizeWithRotate = function (axisSize, dependentSize, angle) {
|
|
|
15970
16035
|
|
|
15971
16036
|
|
|
15972
16037
|
var convertLengthToPixels = function (length, fontSize) {
|
|
15973
|
-
var
|
|
15974
|
-
|
|
16038
|
+
var _length$match;
|
|
16039
|
+
|
|
16040
|
+
var attribute = (_length$match = length.match(/[a-zA-Z%]+/)) === null || _length$match === void 0 ? void 0 : _length$match[0];
|
|
16041
|
+
var value = Number(length.match(/[0-9.,]+/));
|
|
15975
16042
|
var result;
|
|
15976
16043
|
|
|
15977
16044
|
if (!attribute) {
|
|
@@ -16037,9 +16104,9 @@ var _approximateTextHeightInternal = function (text, style) {
|
|
|
16037
16104
|
var height = containsCaps ? lineStyle.fontSize * coefficients.lineCapitalCoef : lineStyle.fontSize;
|
|
16038
16105
|
return total + lineStyle.lineHeight * height;
|
|
16039
16106
|
}, 0);
|
|
16040
|
-
};
|
|
16041
|
-
|
|
16107
|
+
};
|
|
16042
16108
|
|
|
16109
|
+
// Stubbable implementation.
|
|
16043
16110
|
var _approximateTextSizeInternal = {
|
|
16044
16111
|
impl: function (text, style) {
|
|
16045
16112
|
var angle = Array.isArray(style) ? style[0] && style[0].angle : style && style.angle;
|
|
@@ -16058,7 +16125,7 @@ var _approximateTextSizeInternal = {
|
|
|
16058
16125
|
};
|
|
16059
16126
|
/**
|
|
16060
16127
|
* Predict text size by font params.
|
|
16061
|
-
* @param {string} text Content for width calculation.
|
|
16128
|
+
* @param {string|string[]} text Content for width calculation.
|
|
16062
16129
|
* @param {Object} style Text styles, ,fontFamily, fontSize, etc.
|
|
16063
16130
|
* @param {string} style.fontFamily Text fontFamily.
|
|
16064
16131
|
* @param {(number|string)} style.fontSize Text fontSize.
|
|
@@ -16071,6 +16138,7 @@ var _approximateTextSizeInternal = {
|
|
|
16071
16138
|
var approximateTextSize = function (text, style) {
|
|
16072
16139
|
return _approximateTextSizeInternal.impl(text, style);
|
|
16073
16140
|
};
|
|
16141
|
+
//# sourceMappingURL=textsize.js.map
|
|
16074
16142
|
|
|
16075
16143
|
/***/ }),
|
|
16076
16144
|
|
|
@@ -16101,6 +16169,7 @@ var TimerContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cre
|
|
|
16101
16169
|
});
|
|
16102
16170
|
TimerContext.displayName = "TimerContext";
|
|
16103
16171
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TimerContext);
|
|
16172
|
+
//# sourceMappingURL=timer-context.js.map
|
|
16104
16173
|
|
|
16105
16174
|
/***/ }),
|
|
16106
16175
|
|
|
@@ -16203,6 +16272,7 @@ var Timer = /*#__PURE__*/function () {
|
|
|
16203
16272
|
}();
|
|
16204
16273
|
|
|
16205
16274
|
|
|
16275
|
+
//# sourceMappingURL=timer.js.map
|
|
16206
16276
|
|
|
16207
16277
|
/***/ }),
|
|
16208
16278
|
|
|
@@ -16241,7 +16311,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
16241
16311
|
|
|
16242
16312
|
/*
|
|
16243
16313
|
USER_PROPS_SAFELIST is to contain any string deemed safe for user props.
|
|
16244
|
-
The startsWidth array will contain the start of any accepted user-prop that
|
|
16314
|
+
The startsWidth array will contain the start of any accepted user-prop that
|
|
16245
16315
|
starts with these characters.
|
|
16246
16316
|
The exactMatch will contain a list of exact prop names that are accepted.
|
|
16247
16317
|
*/
|
|
@@ -16250,6 +16320,7 @@ var USER_PROPS_SAFELIST = {
|
|
|
16250
16320
|
startsWith: ["data-", "aria-"],
|
|
16251
16321
|
exactMatch: []
|
|
16252
16322
|
};
|
|
16323
|
+
|
|
16253
16324
|
/**
|
|
16254
16325
|
* doesPropStartWith: Function that takes a prop's key and runs it against all
|
|
16255
16326
|
* options in the USER_PROPS_SAFELIST and checks to see if it starts with any
|
|
@@ -16258,7 +16329,6 @@ var USER_PROPS_SAFELIST = {
|
|
|
16258
16329
|
* @returns {Boolean}: returns true if the key starts with an option or false if
|
|
16259
16330
|
* otherwise
|
|
16260
16331
|
*/
|
|
16261
|
-
|
|
16262
16332
|
var doesPropStartWith = function (key) {
|
|
16263
16333
|
var startsWith = false;
|
|
16264
16334
|
USER_PROPS_SAFELIST.startsWith.forEach(function (starterString) {
|
|
@@ -16335,14 +16405,15 @@ var getSafeUserProps = function (props) {
|
|
|
16335
16405
|
/**
|
|
16336
16406
|
* Wraps a component and adds safe user props
|
|
16337
16407
|
*
|
|
16338
|
-
* @param {
|
|
16408
|
+
* @param {ReactElement} component: parent component
|
|
16339
16409
|
* @param {Object} props: props to be filtered
|
|
16340
|
-
* @returns {
|
|
16410
|
+
* @returns {ReactElement} modified component
|
|
16341
16411
|
*/
|
|
16342
16412
|
|
|
16343
16413
|
var withSafeUserProps = function (component, props) {
|
|
16344
16414
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0__.cloneElement(component, getSafeUserProps(props));
|
|
16345
16415
|
};
|
|
16416
|
+
//# sourceMappingURL=user-props.js.map
|
|
16346
16417
|
|
|
16347
16418
|
/***/ }),
|
|
16348
16419
|
|
|
@@ -16555,7 +16626,7 @@ function getData(props, childComponents) {
|
|
|
16555
16626
|
}
|
|
16556
16627
|
|
|
16557
16628
|
childComponents = childComponents || react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
16558
|
-
return getDataFromChildren(childComponents);
|
|
16629
|
+
return getDataFromChildren(props, childComponents);
|
|
16559
16630
|
}
|
|
16560
16631
|
function getWidth(props, groupLength, seriesLength) {
|
|
16561
16632
|
var datasets = props.datasets,
|
|
@@ -16617,7 +16688,7 @@ function getDefaultDomainPadding(props, axis, childComponents) {
|
|
|
16617
16688
|
function getDomainFromChildren(props, axis, childComponents) {
|
|
16618
16689
|
// eslint-disable-line max-statements, complexity, max-len
|
|
16619
16690
|
var children = childComponents ? childComponents.slice(0) : react__WEBPACK_IMPORTED_MODULE_9___default().Children.toArray(props.children);
|
|
16620
|
-
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props
|
|
16691
|
+
var parentData = props.data ? _data__WEBPACK_IMPORTED_MODULE_12__.getData(props) : undefined;
|
|
16621
16692
|
var polar = props.polar,
|
|
16622
16693
|
startAngle = props.startAngle,
|
|
16623
16694
|
endAngle = props.endAngle,
|
|
@@ -16851,6 +16922,7 @@ function getCategories(props, childComponents, allStrings) {
|
|
|
16851
16922
|
y: yCategories.length > 0 ? yCategories : undefined
|
|
16852
16923
|
};
|
|
16853
16924
|
}
|
|
16925
|
+
//# sourceMappingURL=wrapper.js.map
|
|
16854
16926
|
|
|
16855
16927
|
/***/ }),
|
|
16856
16928
|
|
|
@@ -16972,6 +17044,7 @@ var CursorHelpers = {
|
|
|
16972
17044
|
onMouseLeave: CursorHelpers.onMouseMove.bind(CursorHelpers),
|
|
16973
17045
|
onTouchEnd: CursorHelpers.onTouchEnd.bind(CursorHelpers)
|
|
16974
17046
|
}));
|
|
17047
|
+
//# sourceMappingURL=cursor-helpers.js.map
|
|
16975
17048
|
|
|
16976
17049
|
/***/ }),
|
|
16977
17050
|
|
|
@@ -17237,6 +17310,7 @@ var cursorContainerMixin = function (base) {
|
|
|
17237
17310
|
}, _class;
|
|
17238
17311
|
};
|
|
17239
17312
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (cursorContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryContainer));
|
|
17313
|
+
//# sourceMappingURL=victory-cursor-container.js.map
|
|
17240
17314
|
|
|
17241
17315
|
/***/ }),
|
|
17242
17316
|
|
|
@@ -17535,6 +17609,7 @@ var SelectionHelpers = {
|
|
|
17535
17609
|
trailing: false
|
|
17536
17610
|
})
|
|
17537
17611
|
}));
|
|
17612
|
+
//# sourceMappingURL=selection-helpers.js.map
|
|
17538
17613
|
|
|
17539
17614
|
/***/ }),
|
|
17540
17615
|
|
|
@@ -17691,6 +17766,7 @@ var selectionContainerMixin = function (base) {
|
|
|
17691
17766
|
}, _class;
|
|
17692
17767
|
};
|
|
17693
17768
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (selectionContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_1__.VictoryContainer));
|
|
17769
|
+
//# sourceMappingURL=victory-selection-container.js.map
|
|
17694
17770
|
|
|
17695
17771
|
/***/ }),
|
|
17696
17772
|
|
|
@@ -17808,7 +17884,7 @@ var Flyout = function (props) {
|
|
|
17808
17884
|
}));
|
|
17809
17885
|
};
|
|
17810
17886
|
|
|
17811
|
-
Flyout.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.primitiveProps), {}, {
|
|
17887
|
+
Flyout.propTypes = _objectSpread(_objectSpread({}, victory_core__WEBPACK_IMPORTED_MODULE_5__.CommonProps.primitiveProps), {}, {
|
|
17812
17888
|
center: prop_types__WEBPACK_IMPORTED_MODULE_6___default().shape({
|
|
17813
17889
|
x: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number),
|
|
17814
17890
|
y: (prop_types__WEBPACK_IMPORTED_MODULE_6___default().number)
|
|
@@ -17832,6 +17908,7 @@ Flyout.defaultProps = {
|
|
|
17832
17908
|
shapeRendering: "auto"
|
|
17833
17909
|
};
|
|
17834
17910
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Flyout);
|
|
17911
|
+
//# sourceMappingURL=flyout.js.map
|
|
17835
17912
|
|
|
17836
17913
|
/***/ }),
|
|
17837
17914
|
|
|
@@ -18516,6 +18593,7 @@ VictoryTooltip.defaultEvents = function (props) {
|
|
|
18516
18593
|
};
|
|
18517
18594
|
|
|
18518
18595
|
|
|
18596
|
+
//# sourceMappingURL=victory-tooltip.js.map
|
|
18519
18597
|
|
|
18520
18598
|
/***/ }),
|
|
18521
18599
|
|
|
@@ -18896,6 +18974,7 @@ var voronoiContainerMixin = function (base) {
|
|
|
18896
18974
|
}, _class;
|
|
18897
18975
|
};
|
|
18898
18976
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (voronoiContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer));
|
|
18977
|
+
//# sourceMappingURL=victory-voronoi-container.js.map
|
|
18899
18978
|
|
|
18900
18979
|
/***/ }),
|
|
18901
18980
|
|
|
@@ -19221,6 +19300,7 @@ var VoronoiHelpers = {
|
|
|
19221
19300
|
trailing: false
|
|
19222
19301
|
})
|
|
19223
19302
|
});
|
|
19303
|
+
//# sourceMappingURL=voronoi-helpers.js.map
|
|
19224
19304
|
|
|
19225
19305
|
/***/ }),
|
|
19226
19306
|
|
|
@@ -19521,6 +19601,7 @@ var zoomContainerMixin = function (base) {
|
|
|
19521
19601
|
}, _class;
|
|
19522
19602
|
};
|
|
19523
19603
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (zoomContainerMixin(victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryContainer));
|
|
19604
|
+
//# sourceMappingURL=victory-zoom-container.js.map
|
|
19524
19605
|
|
|
19525
19606
|
/***/ }),
|
|
19526
19607
|
|
|
@@ -19953,6 +20034,7 @@ var RawZoomHelpers = {
|
|
|
19953
20034
|
trailing: false
|
|
19954
20035
|
})
|
|
19955
20036
|
});
|
|
20037
|
+
//# sourceMappingURL=zoom-helpers.js.map
|
|
19956
20038
|
|
|
19957
20039
|
/***/ }),
|
|
19958
20040
|
|