victory 37.0.1-next.2 → 37.0.2
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/CHANGELOG.md +2 -31
- package/dist/victory.js +238 -256
- package/dist/victory.min.js +1 -1
- package/es/index.d.ts +27 -27
- package/lib/index.d.ts +27 -27
- package/package.json +31 -28
package/dist/victory.js
CHANGED
|
@@ -8189,13 +8189,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8189
8189
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
8190
8190
|
/* harmony export */ "Area": function() { return /* binding */ Area; }
|
|
8191
8191
|
/* harmony export */ });
|
|
8192
|
-
/* harmony import */ var
|
|
8193
|
-
/* harmony import */ var
|
|
8194
|
-
/* harmony import */ var
|
|
8195
|
-
/* harmony import */ var
|
|
8196
|
-
/* harmony import */ var
|
|
8197
|
-
/* harmony import */ var
|
|
8198
|
-
/* harmony import */ var
|
|
8192
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
8193
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
8194
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
8195
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
8196
|
+
/* harmony import */ var victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-vendor/d3-shape */ "../../victory-vendor/es/d3-shape.js");
|
|
8197
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/line-helpers.js");
|
|
8198
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
8199
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
8200
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
8201
|
+
|
|
8199
8202
|
/* eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/
|
|
8200
8203
|
|
|
8201
8204
|
|
|
@@ -8224,16 +8227,16 @@ const getCartesianArea = props => {
|
|
|
8224
8227
|
horizontal,
|
|
8225
8228
|
scale
|
|
8226
8229
|
} = props;
|
|
8227
|
-
const interpolationFunction =
|
|
8228
|
-
return horizontal ?
|
|
8230
|
+
const interpolationFunction = victory_core__WEBPACK_IMPORTED_MODULE_3__.getInterpolationFunction(props);
|
|
8231
|
+
return horizontal ? victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_2__.area().defined(defined).curve(interpolationFunction).x0(getY0Accessor(scale)).x1(getYAccessor(scale)).y(getXAccessor(scale)) : victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_2__.area().defined(defined).curve(interpolationFunction).x(getXAccessor(scale)).y1(getYAccessor(scale)).y0(getY0Accessor(scale));
|
|
8229
8232
|
};
|
|
8230
8233
|
const getAreaFunction = props => {
|
|
8231
8234
|
const {
|
|
8232
8235
|
polar,
|
|
8233
8236
|
scale
|
|
8234
8237
|
} = props;
|
|
8235
|
-
const interpolationFunction =
|
|
8236
|
-
return polar ?
|
|
8238
|
+
const interpolationFunction = victory_core__WEBPACK_IMPORTED_MODULE_3__.getInterpolationFunction(props);
|
|
8239
|
+
return polar ? victory_vendor_d3_shape__WEBPACK_IMPORTED_MODULE_2__.radialArea().defined(defined).curve(interpolationFunction).angle(getAngleAccessor(scale)).outerRadius(getYAccessor(scale)).innerRadius(getY0Accessor(scale)) : getCartesianArea(props);
|
|
8237
8240
|
};
|
|
8238
8241
|
const evaluateProps = props => {
|
|
8239
8242
|
/**
|
|
@@ -8244,13 +8247,13 @@ const evaluateProps = props => {
|
|
|
8244
8247
|
* `style`
|
|
8245
8248
|
* `tabIndex`
|
|
8246
8249
|
*/
|
|
8247
|
-
const ariaLabel =
|
|
8248
|
-
const desc =
|
|
8249
|
-
const id =
|
|
8250
|
-
const style =
|
|
8250
|
+
const ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.ariaLabel, props);
|
|
8251
|
+
const desc = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.desc, props);
|
|
8252
|
+
const id = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.id, props);
|
|
8253
|
+
const style = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateStyle(Object.assign({
|
|
8251
8254
|
fill: "black"
|
|
8252
8255
|
}, props.style), props);
|
|
8253
|
-
const tabIndex =
|
|
8256
|
+
const tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_4__.evaluateProp(props.tabIndex, props);
|
|
8254
8257
|
return Object.assign({}, props, {
|
|
8255
8258
|
ariaLabel,
|
|
8256
8259
|
desc,
|
|
@@ -8260,8 +8263,8 @@ const evaluateProps = props => {
|
|
|
8260
8263
|
});
|
|
8261
8264
|
};
|
|
8262
8265
|
const defaultProps = {
|
|
8263
|
-
groupComponent: /*#__PURE__*/
|
|
8264
|
-
pathComponent: /*#__PURE__*/
|
|
8266
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
|
|
8267
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.Path, null),
|
|
8265
8268
|
role: "presentation",
|
|
8266
8269
|
shapeRendering: "auto"
|
|
8267
8270
|
};
|
|
@@ -8270,10 +8273,7 @@ const defaultProps = {
|
|
|
8270
8273
|
* The area primitive used by VictoryArea
|
|
8271
8274
|
*/
|
|
8272
8275
|
const Area = initialProps => {
|
|
8273
|
-
const props = evaluateProps({
|
|
8274
|
-
...defaultProps,
|
|
8275
|
-
...initialProps
|
|
8276
|
-
});
|
|
8276
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
8277
8277
|
const {
|
|
8278
8278
|
ariaLabel,
|
|
8279
8279
|
role,
|
|
@@ -8291,12 +8291,12 @@ const Area = initialProps => {
|
|
|
8291
8291
|
desc,
|
|
8292
8292
|
tabIndex
|
|
8293
8293
|
} = props;
|
|
8294
|
-
const userProps =
|
|
8294
|
+
const userProps = victory_core__WEBPACK_IMPORTED_MODULE_6__.getSafeUserProps(props);
|
|
8295
8295
|
const defaultTransform = polar && origin ? `translate(${origin.x}, ${origin.y})` : undefined;
|
|
8296
8296
|
const transform = props.transform || defaultTransform;
|
|
8297
8297
|
const renderLine = style.stroke && style.stroke !== "none" && style.stroke !== "transparent";
|
|
8298
8298
|
const areaFunction = getAreaFunction(props);
|
|
8299
|
-
const lineFunction = renderLine &&
|
|
8299
|
+
const lineFunction = renderLine && victory_core__WEBPACK_IMPORTED_MODULE_3__.getLineFunction(props);
|
|
8300
8300
|
const areaStroke = style.stroke ? "none" : style.fill;
|
|
8301
8301
|
const sharedProps = {
|
|
8302
8302
|
"aria-label": ariaLabel,
|
|
@@ -8308,7 +8308,7 @@ const Area = initialProps => {
|
|
|
8308
8308
|
clipPath,
|
|
8309
8309
|
tabIndex
|
|
8310
8310
|
};
|
|
8311
|
-
const area = /*#__PURE__*/
|
|
8311
|
+
const area = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(pathComponent, Object.assign({
|
|
8312
8312
|
key: `${id}-area`,
|
|
8313
8313
|
style: Object.assign({}, style, {
|
|
8314
8314
|
stroke: areaStroke
|
|
@@ -8317,14 +8317,14 @@ const Area = initialProps => {
|
|
|
8317
8317
|
desc,
|
|
8318
8318
|
tabIndex
|
|
8319
8319
|
}, sharedProps, userProps));
|
|
8320
|
-
const line = renderLine ? /*#__PURE__*/
|
|
8320
|
+
const line = renderLine ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(pathComponent, Object.assign({
|
|
8321
8321
|
key: `${id}-area-stroke`,
|
|
8322
8322
|
style: Object.assign({}, style, {
|
|
8323
8323
|
fill: "none"
|
|
8324
8324
|
}),
|
|
8325
8325
|
d: lineFunction(data)
|
|
8326
8326
|
}, sharedProps)) : null;
|
|
8327
|
-
return renderLine ? /*#__PURE__*/
|
|
8327
|
+
return renderLine ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(groupComponent, userProps, [area, line]) : area;
|
|
8328
8328
|
};
|
|
8329
8329
|
|
|
8330
8330
|
/***/ }),
|
|
@@ -9550,12 +9550,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9550
9550
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9551
9551
|
/* harmony export */ "Bar": function() { return /* binding */ Bar; }
|
|
9552
9552
|
/* harmony export */ });
|
|
9553
|
-
/* harmony import */ var
|
|
9554
|
-
/* harmony import */ var
|
|
9555
|
-
/* harmony import */ var
|
|
9556
|
-
/* harmony import */ var
|
|
9557
|
-
/* harmony import */ var
|
|
9558
|
-
/* harmony import */ var
|
|
9553
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
9554
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9555
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9556
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9557
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
9558
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
9559
|
+
/* harmony import */ var _bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./bar-helper-methods */ "../../victory-bar/es/bar-helper-methods.js");
|
|
9560
|
+
/* harmony import */ var _path_helper_methods__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./path-helper-methods */ "../../victory-bar/es/path-helper-methods.js");
|
|
9561
|
+
|
|
9559
9562
|
|
|
9560
9563
|
|
|
9561
9564
|
|
|
@@ -9573,18 +9576,18 @@ const evaluateProps = props => {
|
|
|
9573
9576
|
* `id`
|
|
9574
9577
|
* `tabIndex`
|
|
9575
9578
|
*/
|
|
9576
|
-
const style = (0,
|
|
9577
|
-
const barWidth = (0,
|
|
9579
|
+
const style = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getStyle)(props.style, props);
|
|
9580
|
+
const barWidth = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getBarWidth)(props.barWidth, Object.assign({}, props, {
|
|
9578
9581
|
style
|
|
9579
9582
|
}));
|
|
9580
|
-
const cornerRadius = (0,
|
|
9583
|
+
const cornerRadius = (0,_bar_helper_methods__WEBPACK_IMPORTED_MODULE_2__.getCornerRadius)(props.cornerRadius, Object.assign({}, props, {
|
|
9581
9584
|
style,
|
|
9582
9585
|
barWidth
|
|
9583
9586
|
}));
|
|
9584
|
-
const ariaLabel =
|
|
9585
|
-
const desc =
|
|
9586
|
-
const id =
|
|
9587
|
-
const tabIndex =
|
|
9587
|
+
const ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.ariaLabel, props);
|
|
9588
|
+
const desc = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.desc, props);
|
|
9589
|
+
const id = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.id, props);
|
|
9590
|
+
const tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.tabIndex, props);
|
|
9588
9591
|
return Object.assign({}, props, {
|
|
9589
9592
|
ariaLabel,
|
|
9590
9593
|
style,
|
|
@@ -9596,17 +9599,14 @@ const evaluateProps = props => {
|
|
|
9596
9599
|
});
|
|
9597
9600
|
};
|
|
9598
9601
|
const defaultProps = {
|
|
9599
|
-
pathComponent: /*#__PURE__*/
|
|
9602
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Path, null),
|
|
9600
9603
|
role: "presentation",
|
|
9601
9604
|
shapeRendering: "auto"
|
|
9602
9605
|
};
|
|
9603
9606
|
|
|
9604
9607
|
// eslint-disable-next-line prefer-arrow-callback
|
|
9605
|
-
const Bar = /*#__PURE__*/(0,
|
|
9606
|
-
const props = evaluateProps({
|
|
9607
|
-
...defaultProps,
|
|
9608
|
-
...initialProps
|
|
9609
|
-
});
|
|
9608
|
+
const Bar = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function Bar(initialProps, ref) {
|
|
9609
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
9610
9610
|
const {
|
|
9611
9611
|
polar,
|
|
9612
9612
|
origin,
|
|
@@ -9614,12 +9614,12 @@ const Bar = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)(funct
|
|
|
9614
9614
|
barWidth,
|
|
9615
9615
|
cornerRadius
|
|
9616
9616
|
} = props;
|
|
9617
|
-
const path = polar ? (0,
|
|
9617
|
+
const path = polar ? (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_5__.getPolarBarPath)(props, cornerRadius) : (0,_path_helper_methods__WEBPACK_IMPORTED_MODULE_5__.getBarPath)(props, barWidth, cornerRadius);
|
|
9618
9618
|
const defaultTransform = polar && origin ? `translate(${origin.x}, ${origin.y})` : undefined;
|
|
9619
9619
|
if (!props.pathComponent) {
|
|
9620
9620
|
return null;
|
|
9621
9621
|
}
|
|
9622
|
-
return /*#__PURE__*/
|
|
9622
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
9623
9623
|
...props.events,
|
|
9624
9624
|
"aria-label": props.ariaLabel,
|
|
9625
9625
|
style,
|
|
@@ -12689,10 +12689,7 @@ const defaultProps = {
|
|
|
12689
12689
|
shapeRendering: "auto"
|
|
12690
12690
|
};
|
|
12691
12691
|
const Candle = props => {
|
|
12692
|
-
const modifiedProps = evaluateProps({
|
|
12693
|
-
...defaultProps,
|
|
12694
|
-
...props
|
|
12695
|
-
});
|
|
12692
|
+
const modifiedProps = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, props, defaultProps));
|
|
12696
12693
|
const {
|
|
12697
12694
|
ariaLabel,
|
|
12698
12695
|
events,
|
|
@@ -14077,10 +14074,7 @@ const defaultProps = {
|
|
|
14077
14074
|
theme: victory_core__WEBPACK_IMPORTED_MODULE_8__.VictoryTheme.grayscale
|
|
14078
14075
|
};
|
|
14079
14076
|
const VictoryChartImpl = initialProps => {
|
|
14080
|
-
const propsWithDefaults = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => ({
|
|
14081
|
-
...defaultProps,
|
|
14082
|
-
...initialProps
|
|
14083
|
-
}), [initialProps]);
|
|
14077
|
+
const propsWithDefaults = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps), [initialProps]);
|
|
14084
14078
|
const role = "chart";
|
|
14085
14079
|
const {
|
|
14086
14080
|
getAnimationProps,
|
|
@@ -15542,10 +15536,7 @@ const defaultProps = {
|
|
|
15542
15536
|
lineHeight: 1
|
|
15543
15537
|
};
|
|
15544
15538
|
const VictoryLabel = initialProps => {
|
|
15545
|
-
const props = evaluateProps({
|
|
15546
|
-
...defaultProps,
|
|
15547
|
-
...initialProps
|
|
15548
|
-
});
|
|
15539
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
|
|
15549
15540
|
if (props.text === null || props.text === undefined) {
|
|
15550
15541
|
return null;
|
|
15551
15542
|
}
|
|
@@ -15749,10 +15740,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15749
15740
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15750
15741
|
/* harmony export */ "Arc": function() { return /* binding */ Arc; }
|
|
15751
15742
|
/* harmony export */ });
|
|
15752
|
-
/* harmony import */ var
|
|
15753
|
-
/* harmony import */ var
|
|
15754
|
-
/* harmony import */ var
|
|
15755
|
-
/* harmony import */ var
|
|
15743
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
15744
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
15745
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
15746
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
15747
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
15748
|
+
/* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js");
|
|
15749
|
+
|
|
15756
15750
|
/* eslint no-magic-numbers: ["error", { "ignore": [0, 1, 2, 180] }]*/
|
|
15757
15751
|
|
|
15758
15752
|
|
|
@@ -15768,12 +15762,12 @@ const getArcPath = props => {
|
|
|
15768
15762
|
} = props;
|
|
15769
15763
|
// Always draw the path as two arcs so that complete circles may be rendered.
|
|
15770
15764
|
const halfAngle = Math.abs(endAngle - startAngle) / 2 + startAngle;
|
|
15771
|
-
const x1 = cx + r * Math.cos(
|
|
15772
|
-
const y1 = cy - r * Math.sin(
|
|
15773
|
-
const x2 = cx + r * Math.cos(
|
|
15774
|
-
const y2 = cy - r * Math.sin(
|
|
15775
|
-
const x3 = cx + r * Math.cos(
|
|
15776
|
-
const y3 = cy - r * Math.sin(
|
|
15765
|
+
const x1 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(startAngle));
|
|
15766
|
+
const y1 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(startAngle));
|
|
15767
|
+
const x2 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(halfAngle));
|
|
15768
|
+
const y2 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(halfAngle));
|
|
15769
|
+
const x3 = cx + r * Math.cos(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(endAngle));
|
|
15770
|
+
const y3 = cy - r * Math.sin(_victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.degreesToRadians(endAngle));
|
|
15777
15771
|
const largerArcFlag1 = halfAngle - startAngle <= 180 ? 0 : 1;
|
|
15778
15772
|
const largerArcFlag2 = endAngle - halfAngle <= 180 ? 0 : 1;
|
|
15779
15773
|
const arcStart = closedPath ? ` M ${cx}, ${cy} L ${x1}, ${y1}` : `M ${x1}, ${y1}`;
|
|
@@ -15791,14 +15785,14 @@ const evaluateProps = props => {
|
|
|
15791
15785
|
* `style`
|
|
15792
15786
|
* `tabIndex`
|
|
15793
15787
|
*/
|
|
15794
|
-
const ariaLabel =
|
|
15795
|
-
const desc =
|
|
15796
|
-
const id =
|
|
15797
|
-
const style =
|
|
15788
|
+
const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
15789
|
+
const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
15790
|
+
const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
15791
|
+
const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(Object.assign({
|
|
15798
15792
|
stroke: "black",
|
|
15799
15793
|
fill: "none"
|
|
15800
15794
|
}, props.style), props);
|
|
15801
|
-
const tabIndex =
|
|
15795
|
+
const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
15802
15796
|
return Object.assign({}, props, {
|
|
15803
15797
|
ariaLabel,
|
|
15804
15798
|
desc,
|
|
@@ -15808,16 +15802,13 @@ const evaluateProps = props => {
|
|
|
15808
15802
|
});
|
|
15809
15803
|
};
|
|
15810
15804
|
const defaultProps = {
|
|
15811
|
-
pathComponent: /*#__PURE__*/
|
|
15805
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_3__.Path, null),
|
|
15812
15806
|
role: "presentation",
|
|
15813
15807
|
shapeRendering: "auto"
|
|
15814
15808
|
};
|
|
15815
15809
|
const Arc = initialProps => {
|
|
15816
|
-
const props = evaluateProps({
|
|
15817
|
-
|
|
15818
|
-
...initialProps
|
|
15819
|
-
});
|
|
15820
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.pathComponent, {
|
|
15810
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
15811
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
15821
15812
|
...props.events,
|
|
15822
15813
|
"aria-label": props.ariaLabel,
|
|
15823
15814
|
d: getArcPath(props),
|
|
@@ -15845,11 +15836,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15845
15836
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15846
15837
|
/* harmony export */ "Background": function() { return /* binding */ Background; }
|
|
15847
15838
|
/* harmony export */ });
|
|
15848
|
-
/* harmony import */ var
|
|
15849
|
-
/* harmony import */ var
|
|
15850
|
-
/* harmony import */ var
|
|
15851
|
-
/* harmony import */ var
|
|
15852
|
-
/* harmony import */ var
|
|
15839
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
15840
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
15841
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
15842
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
15843
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
15844
|
+
/* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
15845
|
+
/* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./circle */ "../../victory-core/es/victory-primitives/circle.js");
|
|
15846
|
+
|
|
15853
15847
|
|
|
15854
15848
|
|
|
15855
15849
|
|
|
@@ -15859,23 +15853,20 @@ const evaluateProps = props => {
|
|
|
15859
15853
|
* Potential evaluated prop is:
|
|
15860
15854
|
* `id`
|
|
15861
15855
|
*/
|
|
15862
|
-
const id =
|
|
15856
|
+
const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
15863
15857
|
return Object.assign({}, props, {
|
|
15864
15858
|
id
|
|
15865
15859
|
});
|
|
15866
15860
|
};
|
|
15867
15861
|
const defaultProps = {
|
|
15868
|
-
circleComponent: /*#__PURE__*/
|
|
15869
|
-
rectComponent: /*#__PURE__*/
|
|
15862
|
+
circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_circle__WEBPACK_IMPORTED_MODULE_3__.Circle, null),
|
|
15863
|
+
rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_4__.Rect, null),
|
|
15870
15864
|
role: "presentation",
|
|
15871
15865
|
shapeRendering: "auto"
|
|
15872
15866
|
};
|
|
15873
15867
|
const Background = initialProps => {
|
|
15874
|
-
const props = evaluateProps({
|
|
15875
|
-
|
|
15876
|
-
...initialProps
|
|
15877
|
-
});
|
|
15878
|
-
return props.polar ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.circleComponent, {
|
|
15868
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
15869
|
+
return props.polar ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.circleComponent, {
|
|
15879
15870
|
...props.events,
|
|
15880
15871
|
style: props.style,
|
|
15881
15872
|
role: props.role,
|
|
@@ -15884,7 +15875,7 @@ const Background = initialProps => {
|
|
|
15884
15875
|
cy: props.y,
|
|
15885
15876
|
r: props.height,
|
|
15886
15877
|
className: props.className
|
|
15887
|
-
}) : /*#__PURE__*/
|
|
15878
|
+
}) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.rectComponent, {
|
|
15888
15879
|
...props.events,
|
|
15889
15880
|
style: props.style,
|
|
15890
15881
|
role: props.role,
|
|
@@ -15912,10 +15903,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15912
15903
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15913
15904
|
/* harmony export */ "Border": function() { return /* binding */ Border; }
|
|
15914
15905
|
/* harmony export */ });
|
|
15915
|
-
/* harmony import */ var
|
|
15916
|
-
/* harmony import */ var
|
|
15917
|
-
/* harmony import */ var
|
|
15918
|
-
/* harmony import */ var
|
|
15906
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
15907
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
15908
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
15909
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
15910
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
15911
|
+
/* harmony import */ var _rect__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./rect */ "../../victory-core/es/victory-primitives/rect.js");
|
|
15912
|
+
|
|
15919
15913
|
|
|
15920
15914
|
|
|
15921
15915
|
|
|
@@ -15928,13 +15922,13 @@ const evaluateProps = props => {
|
|
|
15928
15922
|
* `style`
|
|
15929
15923
|
* `tabIndex`
|
|
15930
15924
|
*/
|
|
15931
|
-
const ariaLabel =
|
|
15932
|
-
const desc =
|
|
15933
|
-
const id =
|
|
15934
|
-
const style =
|
|
15925
|
+
const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
15926
|
+
const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
15927
|
+
const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
15928
|
+
const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(Object.assign({
|
|
15935
15929
|
fill: "none"
|
|
15936
15930
|
}, props.style), props);
|
|
15937
|
-
const tabIndex =
|
|
15931
|
+
const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
15938
15932
|
return Object.assign({}, props, {
|
|
15939
15933
|
ariaLabel,
|
|
15940
15934
|
desc,
|
|
@@ -15944,16 +15938,13 @@ const evaluateProps = props => {
|
|
|
15944
15938
|
});
|
|
15945
15939
|
};
|
|
15946
15940
|
const defaultProps = {
|
|
15947
|
-
rectComponent: /*#__PURE__*/
|
|
15941
|
+
rectComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_rect__WEBPACK_IMPORTED_MODULE_3__.Rect, null),
|
|
15948
15942
|
role: "presentation",
|
|
15949
15943
|
shapeRendering: "auto"
|
|
15950
15944
|
};
|
|
15951
15945
|
const Border = initialProps => {
|
|
15952
|
-
const props = evaluateProps({
|
|
15953
|
-
|
|
15954
|
-
...initialProps
|
|
15955
|
-
});
|
|
15956
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.rectComponent, {
|
|
15946
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
15947
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.rectComponent, {
|
|
15957
15948
|
...props.events,
|
|
15958
15949
|
"aria-label": props.ariaLabel,
|
|
15959
15950
|
style: props.style,
|
|
@@ -16100,10 +16091,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16100
16091
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16101
16092
|
/* harmony export */ "LineSegment": function() { return /* binding */ LineSegment; }
|
|
16102
16093
|
/* harmony export */ });
|
|
16103
|
-
/* harmony import */ var
|
|
16104
|
-
/* harmony import */ var
|
|
16105
|
-
/* harmony import */ var
|
|
16106
|
-
/* harmony import */ var
|
|
16094
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
16095
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
16096
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
16097
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
16098
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
16099
|
+
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
16100
|
+
|
|
16107
16101
|
|
|
16108
16102
|
|
|
16109
16103
|
|
|
@@ -16116,13 +16110,13 @@ const evaluateProps = props => {
|
|
|
16116
16110
|
* `style`
|
|
16117
16111
|
* `tabIndex`
|
|
16118
16112
|
*/
|
|
16119
|
-
const ariaLabel =
|
|
16120
|
-
const desc =
|
|
16121
|
-
const id =
|
|
16122
|
-
const style =
|
|
16113
|
+
const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
16114
|
+
const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
16115
|
+
const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
16116
|
+
const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(Object.assign({
|
|
16123
16117
|
stroke: "black"
|
|
16124
16118
|
}, props.style), props);
|
|
16125
|
-
const tabIndex =
|
|
16119
|
+
const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
16126
16120
|
return Object.assign({}, props, {
|
|
16127
16121
|
ariaLabel,
|
|
16128
16122
|
desc,
|
|
@@ -16132,16 +16126,13 @@ const evaluateProps = props => {
|
|
|
16132
16126
|
});
|
|
16133
16127
|
};
|
|
16134
16128
|
const defaultProps = {
|
|
16135
|
-
lineComponent: /*#__PURE__*/
|
|
16129
|
+
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
|
|
16136
16130
|
role: "presentation",
|
|
16137
16131
|
shapeRendering: "auto"
|
|
16138
16132
|
};
|
|
16139
16133
|
const LineSegment = initialProps => {
|
|
16140
|
-
const props = evaluateProps({
|
|
16141
|
-
|
|
16142
|
-
...initialProps
|
|
16143
|
-
});
|
|
16144
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.lineComponent, {
|
|
16134
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
16135
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
|
|
16145
16136
|
...props.events,
|
|
16146
16137
|
"aria-label": props.ariaLabel,
|
|
16147
16138
|
style: props.style,
|
|
@@ -16257,12 +16248,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16257
16248
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16258
16249
|
/* harmony export */ "Point": function() { return /* binding */ Point; }
|
|
16259
16250
|
/* harmony export */ });
|
|
16260
|
-
/* harmony import */ var
|
|
16261
|
-
/* harmony import */ var
|
|
16262
|
-
/* harmony import */ var
|
|
16263
|
-
/* harmony import */ var
|
|
16264
|
-
/* harmony import */ var
|
|
16265
|
-
/* harmony import */ var
|
|
16251
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
16252
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
16253
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
16254
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
16255
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
16256
|
+
/* harmony import */ var _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/point-path-helpers */ "../../victory-core/es/victory-util/point-path-helpers.js");
|
|
16257
|
+
/* harmony import */ var _victory_util_user_props__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/user-props */ "../../victory-core/es/victory-util/user-props.js");
|
|
16258
|
+
/* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./path */ "../../victory-core/es/victory-primitives/path.js");
|
|
16259
|
+
|
|
16266
16260
|
|
|
16267
16261
|
|
|
16268
16262
|
|
|
@@ -16278,7 +16272,7 @@ const getPath = props => {
|
|
|
16278
16272
|
if (props.getPath) {
|
|
16279
16273
|
return props.getPath(x, y, size);
|
|
16280
16274
|
}
|
|
16281
|
-
const pathFunctions =
|
|
16275
|
+
const pathFunctions = _victory_util_point_path_helpers__WEBPACK_IMPORTED_MODULE_2__;
|
|
16282
16276
|
const symbolFunction = typeof pathFunctions[symbol] === "function" ? pathFunctions[symbol] : pathFunctions.circle;
|
|
16283
16277
|
return symbolFunction(x, y, size);
|
|
16284
16278
|
};
|
|
@@ -16293,13 +16287,13 @@ const evaluateProps = props => {
|
|
|
16293
16287
|
* `symbol`
|
|
16294
16288
|
* `tabIndex`
|
|
16295
16289
|
*/
|
|
16296
|
-
const ariaLabel =
|
|
16297
|
-
const desc =
|
|
16298
|
-
const id =
|
|
16299
|
-
const size =
|
|
16300
|
-
const style =
|
|
16301
|
-
const symbol =
|
|
16302
|
-
const tabIndex =
|
|
16290
|
+
const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.ariaLabel, props);
|
|
16291
|
+
const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.desc, props);
|
|
16292
|
+
const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.id, props);
|
|
16293
|
+
const size = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.size, props);
|
|
16294
|
+
const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateStyle(props.style, props);
|
|
16295
|
+
const symbol = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.symbol, props);
|
|
16296
|
+
const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_3__.evaluateProp(props.tabIndex, props);
|
|
16303
16297
|
return Object.assign({}, props, {
|
|
16304
16298
|
ariaLabel,
|
|
16305
16299
|
desc,
|
|
@@ -16311,17 +16305,14 @@ const evaluateProps = props => {
|
|
|
16311
16305
|
});
|
|
16312
16306
|
};
|
|
16313
16307
|
const defaultProps = {
|
|
16314
|
-
pathComponent: /*#__PURE__*/
|
|
16308
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_path__WEBPACK_IMPORTED_MODULE_4__.Path, null),
|
|
16315
16309
|
role: "presentation",
|
|
16316
16310
|
shapeRendering: "auto"
|
|
16317
16311
|
};
|
|
16318
16312
|
const Point = initialProps => {
|
|
16319
|
-
const props = evaluateProps({
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
});
|
|
16323
|
-
const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_4__.getSafeUserProps(props);
|
|
16324
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(props.pathComponent, {
|
|
16313
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
16314
|
+
const userProps = _victory_util_user_props__WEBPACK_IMPORTED_MODULE_5__.getSafeUserProps(props);
|
|
16315
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
16325
16316
|
...props.events,
|
|
16326
16317
|
"aria-label": props.ariaLabel,
|
|
16327
16318
|
d: getPath(props),
|
|
@@ -16469,10 +16460,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16469
16460
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16470
16461
|
/* harmony export */ "Whisker": function() { return /* binding */ Whisker; }
|
|
16471
16462
|
/* harmony export */ });
|
|
16472
|
-
/* harmony import */ var
|
|
16473
|
-
/* harmony import */ var
|
|
16474
|
-
/* harmony import */ var
|
|
16475
|
-
/* harmony import */ var
|
|
16463
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
16464
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
16465
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
16466
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
16467
|
+
/* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
|
|
16468
|
+
/* harmony import */ var _line__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./line */ "../../victory-core/es/victory-primitives/line.js");
|
|
16469
|
+
|
|
16476
16470
|
|
|
16477
16471
|
|
|
16478
16472
|
|
|
@@ -16485,11 +16479,11 @@ const evaluateProps = props => {
|
|
|
16485
16479
|
* `style`
|
|
16486
16480
|
* `tabIndex`
|
|
16487
16481
|
*/
|
|
16488
|
-
const ariaLabel =
|
|
16489
|
-
const desc =
|
|
16490
|
-
const id =
|
|
16491
|
-
const style =
|
|
16492
|
-
const tabIndex =
|
|
16482
|
+
const ariaLabel = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
16483
|
+
const desc = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.desc, props);
|
|
16484
|
+
const id = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
16485
|
+
const style = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(props.style, props);
|
|
16486
|
+
const tabIndex = _victory_util_helpers__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
16493
16487
|
return Object.assign({}, props, {
|
|
16494
16488
|
ariaLabel,
|
|
16495
16489
|
desc,
|
|
@@ -16499,16 +16493,13 @@ const evaluateProps = props => {
|
|
|
16499
16493
|
});
|
|
16500
16494
|
};
|
|
16501
16495
|
const defaultProps = {
|
|
16502
|
-
groupComponent: /*#__PURE__*/
|
|
16503
|
-
lineComponent: /*#__PURE__*/
|
|
16496
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
|
|
16497
|
+
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_line__WEBPACK_IMPORTED_MODULE_3__.Line, null),
|
|
16504
16498
|
role: "presentation",
|
|
16505
16499
|
shapeRendering: "auto"
|
|
16506
16500
|
};
|
|
16507
16501
|
const Whisker = initialProps => {
|
|
16508
|
-
const props = evaluateProps({
|
|
16509
|
-
...defaultProps,
|
|
16510
|
-
...initialProps
|
|
16511
|
-
});
|
|
16502
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
16512
16503
|
const {
|
|
16513
16504
|
ariaLabel,
|
|
16514
16505
|
groupComponent,
|
|
@@ -16536,10 +16527,10 @@ const Whisker = initialProps => {
|
|
|
16536
16527
|
role,
|
|
16537
16528
|
shapeRendering
|
|
16538
16529
|
};
|
|
16539
|
-
return /*#__PURE__*/
|
|
16530
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(groupComponent, {}, [/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(lineComponent, Object.assign({
|
|
16540
16531
|
key: "major-whisker",
|
|
16541
16532
|
"aria-label": ariaLabel
|
|
16542
|
-
}, baseProps, majorWhisker)), /*#__PURE__*/
|
|
16533
|
+
}, baseProps, majorWhisker)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(lineComponent, Object.assign({
|
|
16543
16534
|
key: "minor-whisker",
|
|
16544
16535
|
"aria-label": ariaLabel
|
|
16545
16536
|
}, baseProps, minorWhisker))]);
|
|
@@ -22890,17 +22881,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22890
22881
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
22891
22882
|
/* harmony export */ "ErrorBar": function() { return /* binding */ ErrorBar; }
|
|
22892
22883
|
/* harmony export */ });
|
|
22893
|
-
/* harmony import */ var
|
|
22894
|
-
/* harmony import */ var
|
|
22895
|
-
/* harmony import */ var
|
|
22896
|
-
/* harmony import */ var
|
|
22897
|
-
/* harmony import */ var
|
|
22884
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
22885
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
22886
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
22887
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
22888
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
22889
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/line.js");
|
|
22890
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
22891
|
+
|
|
22898
22892
|
/* eslint-disable max-statements */
|
|
22899
22893
|
|
|
22900
22894
|
|
|
22901
22895
|
const renderBorder = (props, error, type) => {
|
|
22902
22896
|
const vertical = type === "right" || type === "left";
|
|
22903
|
-
return /*#__PURE__*/
|
|
22897
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
|
|
22904
22898
|
...props.events,
|
|
22905
22899
|
role: props.role,
|
|
22906
22900
|
shapeRendering: props.shapeRendering,
|
|
@@ -22917,7 +22911,7 @@ const renderBorder = (props, error, type) => {
|
|
|
22917
22911
|
};
|
|
22918
22912
|
const renderCross = (props, error, type) => {
|
|
22919
22913
|
const vertical = type === "top" || type === "bottom";
|
|
22920
|
-
return /*#__PURE__*/
|
|
22914
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.lineComponent, {
|
|
22921
22915
|
...props.events,
|
|
22922
22916
|
role: props.role,
|
|
22923
22917
|
shapeRendering: props.shapeRendering,
|
|
@@ -22976,12 +22970,12 @@ const evaluateProps = props => {
|
|
|
22976
22970
|
* `style`
|
|
22977
22971
|
* `tabIndex`
|
|
22978
22972
|
*/
|
|
22979
|
-
const ariaLabel =
|
|
22980
|
-
const id =
|
|
22981
|
-
const style =
|
|
22973
|
+
const ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
22974
|
+
const id = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
22975
|
+
const style = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(Object.assign({
|
|
22982
22976
|
stroke: "black"
|
|
22983
22977
|
}, props.style), props);
|
|
22984
|
-
const tabIndex =
|
|
22978
|
+
const tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
22985
22979
|
return Object.assign({}, props, {
|
|
22986
22980
|
ariaLabel,
|
|
22987
22981
|
id,
|
|
@@ -22995,27 +22989,24 @@ const evaluateProps = props => {
|
|
|
22995
22989
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
22996
22990
|
|
|
22997
22991
|
const defaultProps = {
|
|
22998
|
-
groupComponent: /*#__PURE__*/
|
|
22999
|
-
lineComponent: /*#__PURE__*/
|
|
22992
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
|
|
22993
|
+
lineComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.Line, null),
|
|
23000
22994
|
role: "presentation",
|
|
23001
22995
|
shapeRendering: "auto"
|
|
23002
22996
|
};
|
|
23003
22997
|
const ErrorBar = initialProps => {
|
|
23004
|
-
const props = evaluateProps({
|
|
23005
|
-
...defaultProps,
|
|
23006
|
-
...initialProps
|
|
23007
|
-
});
|
|
22998
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
23008
22999
|
const {
|
|
23009
23000
|
groupComponent
|
|
23010
23001
|
} = props;
|
|
23011
|
-
const userProps =
|
|
23002
|
+
const userProps = victory_core__WEBPACK_IMPORTED_MODULE_4__.getSafeUserProps(props);
|
|
23012
23003
|
const {
|
|
23013
23004
|
tabIndex,
|
|
23014
23005
|
ariaLabel
|
|
23015
23006
|
} = props;
|
|
23016
23007
|
const error = calculateError(props);
|
|
23017
23008
|
const children = [error.right ? renderBorder(props, error, "right") : null, error.left ? renderBorder(props, error, "left") : null, error.bottom ? renderBorder(props, error, "bottom") : null, error.top ? renderBorder(props, error, "top") : null, error.right ? renderCross(props, error, "right") : null, error.left ? renderCross(props, error, "left") : null, error.bottom ? renderCross(props, error, "bottom") : null, error.top ? renderCross(props, error, "top") : null].filter(Boolean);
|
|
23018
|
-
return /*#__PURE__*/
|
|
23009
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(groupComponent, {
|
|
23019
23010
|
tabIndex,
|
|
23020
23011
|
"aria-label": ariaLabel,
|
|
23021
23012
|
...userProps
|
|
@@ -23712,10 +23703,7 @@ const VictoryGroupBase = initialProps => {
|
|
|
23712
23703
|
setAnimationState,
|
|
23713
23704
|
getProps
|
|
23714
23705
|
} = victory_core__WEBPACK_IMPORTED_MODULE_6__.useAnimationState();
|
|
23715
|
-
const propsWithDefaults = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => ({
|
|
23716
|
-
...defaultProps,
|
|
23717
|
-
...initialProps
|
|
23718
|
-
}), [initialProps]);
|
|
23706
|
+
const propsWithDefaults = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps), [initialProps]);
|
|
23719
23707
|
const props = getProps(propsWithDefaults);
|
|
23720
23708
|
const modifiedProps = victory_core__WEBPACK_IMPORTED_MODULE_7__.modifyProps(props, fallbackProps, role);
|
|
23721
23709
|
const {
|
|
@@ -24761,12 +24749,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24761
24749
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24762
24750
|
/* harmony export */ "Curve": function() { return /* binding */ Curve; }
|
|
24763
24751
|
/* harmony export */ });
|
|
24764
|
-
/* harmony import */ var
|
|
24765
|
-
/* harmony import */ var
|
|
24766
|
-
/* harmony import */ var
|
|
24767
|
-
/* harmony import */ var
|
|
24768
|
-
/* harmony import */ var
|
|
24769
|
-
/* harmony import */ var
|
|
24752
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
24753
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
24754
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
24755
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
24756
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
24757
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
24758
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
24759
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/line-helpers.js");
|
|
24760
|
+
|
|
24770
24761
|
/* eslint no-magic-numbers: ["error", { "ignore": [-1, 0, 1, 2] }]*/
|
|
24771
24762
|
|
|
24772
24763
|
|
|
@@ -24778,14 +24769,14 @@ const evaluateProps = props => {
|
|
|
24778
24769
|
* `style`
|
|
24779
24770
|
* `tabIndex`
|
|
24780
24771
|
*/
|
|
24781
|
-
const ariaLabel =
|
|
24782
|
-
const id =
|
|
24783
|
-
const style =
|
|
24772
|
+
const ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
24773
|
+
const id = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
24774
|
+
const style = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(Object.assign({
|
|
24784
24775
|
fill: "none",
|
|
24785
24776
|
stroke: "black",
|
|
24786
24777
|
pointerEvents: "stroke"
|
|
24787
24778
|
}, props.style), props);
|
|
24788
|
-
const tabIndex =
|
|
24779
|
+
const tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
24789
24780
|
return Object.assign({}, props, {
|
|
24790
24781
|
ariaLabel,
|
|
24791
24782
|
id,
|
|
@@ -24794,24 +24785,21 @@ const evaluateProps = props => {
|
|
|
24794
24785
|
});
|
|
24795
24786
|
};
|
|
24796
24787
|
const defaultProps = {
|
|
24797
|
-
pathComponent: /*#__PURE__*/
|
|
24788
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.Path, null),
|
|
24798
24789
|
role: "presentation",
|
|
24799
24790
|
shapeRendering: "auto"
|
|
24800
24791
|
};
|
|
24801
24792
|
const Curve = initialProps => {
|
|
24802
|
-
const props = evaluateProps({
|
|
24803
|
-
|
|
24804
|
-
...initialProps
|
|
24805
|
-
});
|
|
24806
|
-
const userProps = victory_core__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
|
|
24793
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
24794
|
+
const userProps = victory_core__WEBPACK_IMPORTED_MODULE_4__.getSafeUserProps(props);
|
|
24807
24795
|
const {
|
|
24808
24796
|
polar,
|
|
24809
24797
|
origin
|
|
24810
24798
|
} = props;
|
|
24811
|
-
const lineFunction =
|
|
24799
|
+
const lineFunction = victory_core__WEBPACK_IMPORTED_MODULE_5__.getLineFunction(props);
|
|
24812
24800
|
const defaultTransform = polar && origin ? `translate(${origin.x}, ${origin.y})` : undefined;
|
|
24813
24801
|
const d = lineFunction(props.data);
|
|
24814
|
-
return /*#__PURE__*/
|
|
24802
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
24815
24803
|
...props.events,
|
|
24816
24804
|
...userProps,
|
|
24817
24805
|
"aria-label": props.ariaLabel,
|
|
@@ -25524,10 +25512,7 @@ const defaultProps = {
|
|
|
25524
25512
|
shapeRendering: "auto"
|
|
25525
25513
|
};
|
|
25526
25514
|
const Slice = initialProps => {
|
|
25527
|
-
const props = evaluateProps({
|
|
25528
|
-
...defaultProps,
|
|
25529
|
-
...initialProps
|
|
25530
|
-
});
|
|
25515
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
25531
25516
|
const defaultTransform = props.origin ? `translate(${props.origin.x}, ${props.origin.y})` : undefined;
|
|
25532
25517
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
25533
25518
|
...props.events,
|
|
@@ -27557,10 +27542,7 @@ const VictoryStackBase = initialProps => {
|
|
|
27557
27542
|
const {
|
|
27558
27543
|
role
|
|
27559
27544
|
} = VictoryStack;
|
|
27560
|
-
const propsWithDefaults = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => ({
|
|
27561
|
-
...defaultProps,
|
|
27562
|
-
...initialProps
|
|
27563
|
-
}), [initialProps]);
|
|
27545
|
+
const propsWithDefaults = react__WEBPACK_IMPORTED_MODULE_2___default().useMemo(() => lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps), [initialProps]);
|
|
27564
27546
|
const {
|
|
27565
27547
|
setAnimationState,
|
|
27566
27548
|
getAnimationProps,
|
|
@@ -27671,11 +27653,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27671
27653
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27672
27654
|
/* harmony export */ "Flyout": function() { return /* binding */ Flyout; }
|
|
27673
27655
|
/* harmony export */ });
|
|
27674
|
-
/* harmony import */ var
|
|
27675
|
-
/* harmony import */ var
|
|
27676
|
-
/* harmony import */ var
|
|
27677
|
-
/* harmony import */ var
|
|
27678
|
-
/* harmony import */ var
|
|
27656
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
27657
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
27658
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
27659
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
27660
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
27661
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
27662
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
27663
|
+
|
|
27679
27664
|
|
|
27680
27665
|
|
|
27681
27666
|
const getVerticalPath = props => {
|
|
@@ -27756,8 +27741,8 @@ const evaluateProps = props => {
|
|
|
27756
27741
|
* `id`
|
|
27757
27742
|
* `style`
|
|
27758
27743
|
*/
|
|
27759
|
-
const id =
|
|
27760
|
-
const style =
|
|
27744
|
+
const id = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
27745
|
+
const style = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(props.style, props);
|
|
27761
27746
|
return {
|
|
27762
27747
|
...props,
|
|
27763
27748
|
id,
|
|
@@ -27765,23 +27750,20 @@ const evaluateProps = props => {
|
|
|
27765
27750
|
};
|
|
27766
27751
|
};
|
|
27767
27752
|
const defaultProps = {
|
|
27768
|
-
pathComponent: /*#__PURE__*/
|
|
27753
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.Path, null),
|
|
27769
27754
|
role: "presentation",
|
|
27770
27755
|
shapeRendering: "auto"
|
|
27771
27756
|
};
|
|
27772
27757
|
const Flyout = initialProps => {
|
|
27773
|
-
const props = evaluateProps({
|
|
27774
|
-
|
|
27775
|
-
...initialProps
|
|
27776
|
-
});
|
|
27777
|
-
const userProps = victory_core__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
|
|
27758
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
27759
|
+
const userProps = victory_core__WEBPACK_IMPORTED_MODULE_4__.getSafeUserProps(props);
|
|
27778
27760
|
|
|
27779
27761
|
// check for required props for this subcomponent
|
|
27780
27762
|
// they should be passed in from the wrapper
|
|
27781
|
-
|
|
27782
|
-
|
|
27783
|
-
|
|
27784
|
-
|
|
27763
|
+
victory_core__WEBPACK_IMPORTED_MODULE_4__.assert(props.height, "Flyout props[height] is undefined");
|
|
27764
|
+
victory_core__WEBPACK_IMPORTED_MODULE_4__.assert(props.width, "Flyout props[width] is undefined");
|
|
27765
|
+
victory_core__WEBPACK_IMPORTED_MODULE_4__.assert(props.x, "Flyout props[x] is undefined");
|
|
27766
|
+
victory_core__WEBPACK_IMPORTED_MODULE_4__.assert(props.y, "Flyout props[y] is undefined");
|
|
27785
27767
|
const flyoutPathProps = {
|
|
27786
27768
|
center: props.center || {
|
|
27787
27769
|
x: 0,
|
|
@@ -27798,7 +27780,7 @@ const Flyout = initialProps => {
|
|
|
27798
27780
|
x: props.x,
|
|
27799
27781
|
y: props.y
|
|
27800
27782
|
};
|
|
27801
|
-
return /*#__PURE__*/
|
|
27783
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
27802
27784
|
...props.events,
|
|
27803
27785
|
...userProps,
|
|
27804
27786
|
style: props.style,
|
|
@@ -29493,13 +29475,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29493
29475
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29494
29476
|
/* harmony export */ "Voronoi": function() { return /* binding */ Voronoi; }
|
|
29495
29477
|
/* harmony export */ });
|
|
29496
|
-
/* harmony import */ var
|
|
29497
|
-
/* harmony import */ var
|
|
29498
|
-
/* harmony import */ var
|
|
29499
|
-
/* harmony import */ var
|
|
29500
|
-
/* harmony import */ var
|
|
29501
|
-
/* harmony import */ var
|
|
29502
|
-
/* harmony import */ var
|
|
29478
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
|
|
29479
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
29480
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
29481
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
29482
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
29483
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
29484
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/circle.js");
|
|
29485
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/clip-path.js");
|
|
29486
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
29487
|
+
|
|
29503
29488
|
|
|
29504
29489
|
|
|
29505
29490
|
const getVoronoiPath = props => {
|
|
@@ -29517,11 +29502,11 @@ function evaluateProps(props) {
|
|
|
29517
29502
|
* `style`
|
|
29518
29503
|
* `tabIndex
|
|
29519
29504
|
*/
|
|
29520
|
-
const ariaLabel =
|
|
29521
|
-
const id =
|
|
29522
|
-
const size =
|
|
29523
|
-
const style =
|
|
29524
|
-
const tabIndex =
|
|
29505
|
+
const ariaLabel = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.ariaLabel, props);
|
|
29506
|
+
const id = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
29507
|
+
const size = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.size, props);
|
|
29508
|
+
const style = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(props.style, props);
|
|
29509
|
+
const tabIndex = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.tabIndex, props);
|
|
29525
29510
|
return Object.assign({}, props, {
|
|
29526
29511
|
ariaLabel,
|
|
29527
29512
|
id,
|
|
@@ -29531,18 +29516,15 @@ function evaluateProps(props) {
|
|
|
29531
29516
|
});
|
|
29532
29517
|
}
|
|
29533
29518
|
const defaultProps = {
|
|
29534
|
-
pathComponent: /*#__PURE__*/
|
|
29535
|
-
circleComponent: /*#__PURE__*/
|
|
29536
|
-
clipPathComponent: /*#__PURE__*/
|
|
29537
|
-
groupComponent: /*#__PURE__*/
|
|
29519
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.Path, null),
|
|
29520
|
+
circleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.Circle, null),
|
|
29521
|
+
clipPathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.ClipPath, null),
|
|
29522
|
+
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null),
|
|
29538
29523
|
role: "presentation",
|
|
29539
29524
|
shapeRendering: "auto"
|
|
29540
29525
|
};
|
|
29541
29526
|
const Voronoi = initialProps => {
|
|
29542
|
-
const props = evaluateProps({
|
|
29543
|
-
...defaultProps,
|
|
29544
|
-
...initialProps
|
|
29545
|
-
});
|
|
29527
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
29546
29528
|
const {
|
|
29547
29529
|
ariaLabel,
|
|
29548
29530
|
role,
|
|
@@ -29565,9 +29547,9 @@ const Voronoi = initialProps => {
|
|
|
29565
29547
|
transform,
|
|
29566
29548
|
...events
|
|
29567
29549
|
};
|
|
29568
|
-
const userProps =
|
|
29550
|
+
const userProps = victory_core__WEBPACK_IMPORTED_MODULE_6__.getSafeUserProps(props);
|
|
29569
29551
|
if (size) {
|
|
29570
|
-
const circle = /*#__PURE__*/
|
|
29552
|
+
const circle = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.circleComponent, {
|
|
29571
29553
|
...sharedProps,
|
|
29572
29554
|
key: `${props.id}-circle-clip`,
|
|
29573
29555
|
clipPath: `url(#${props.clipId})`,
|
|
@@ -29575,16 +29557,16 @@ const Voronoi = initialProps => {
|
|
|
29575
29557
|
cy: props.y,
|
|
29576
29558
|
r: size
|
|
29577
29559
|
});
|
|
29578
|
-
const voronoiClipPath = /*#__PURE__*/
|
|
29560
|
+
const voronoiClipPath = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.clipPathComponent, {
|
|
29579
29561
|
key: `${props.id}-voronoi-clip`,
|
|
29580
29562
|
clipId: props.clipId
|
|
29581
|
-
}, /*#__PURE__*/
|
|
29563
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
29582
29564
|
d: voronoiPath,
|
|
29583
29565
|
className
|
|
29584
29566
|
}));
|
|
29585
|
-
return /*#__PURE__*/
|
|
29567
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.groupComponent, {}, [voronoiClipPath, circle]);
|
|
29586
29568
|
}
|
|
29587
|
-
return /*#__PURE__*/
|
|
29569
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
29588
29570
|
...sharedProps,
|
|
29589
29571
|
...userProps,
|
|
29590
29572
|
d: voronoiPath
|