victory-voronoi-container 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 +4 -5
- package/dist/victory-voronoi-container.js +19 -22
- package/dist/victory-voronoi-container.min.js +1 -1
- package/es/index.d.ts +2 -2
- package/es/victory-voronoi-container.d.ts +174 -174
- package/es/voronoi-helpers.d.ts +60 -60
- package/lib/index.d.ts +2 -2
- package/lib/victory-voronoi-container.d.ts +174 -174
- package/lib/voronoi-helpers.d.ts +60 -60
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# victory-voronoi-container
|
|
2
2
|
|
|
3
|
-
## 37.0.
|
|
3
|
+
## 37.0.2
|
|
4
|
+
|
|
5
|
+
## 37.0.1
|
|
4
6
|
|
|
5
7
|
### Patch Changes
|
|
6
8
|
|
|
7
|
-
-
|
|
8
|
-
- Updated dependencies [22ac23249]
|
|
9
|
-
- victory-tooltip@37.0.1-next.2
|
|
10
|
-
- victory-core@37.0.1-next.2
|
|
9
|
+
- Fix the signature of class static functions in components ([#2840](https://github.com/FormidableLabs/victory/pull/2840))
|
|
11
10
|
|
|
12
11
|
## 37.0.0
|
|
13
12
|
|
|
@@ -6648,10 +6648,7 @@ const defaultProps = {
|
|
|
6648
6648
|
lineHeight: 1
|
|
6649
6649
|
};
|
|
6650
6650
|
const VictoryLabel = initialProps => {
|
|
6651
|
-
const props = evaluateProps({
|
|
6652
|
-
...defaultProps,
|
|
6653
|
-
...initialProps
|
|
6654
|
-
});
|
|
6651
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()({}, initialProps, defaultProps));
|
|
6655
6652
|
if (props.text === null || props.text === undefined) {
|
|
6656
6653
|
return null;
|
|
6657
6654
|
}
|
|
@@ -9776,11 +9773,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9776
9773
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9777
9774
|
/* harmony export */ "Flyout": function() { return /* binding */ Flyout; }
|
|
9778
9775
|
/* harmony export */ });
|
|
9779
|
-
/* harmony import */ var
|
|
9780
|
-
/* harmony import */ var
|
|
9781
|
-
/* harmony import */ var
|
|
9782
|
-
/* harmony import */ var
|
|
9783
|
-
/* harmony import */ var
|
|
9776
|
+
/* 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");
|
|
9777
|
+
/* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
|
|
9778
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
9779
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
9780
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/helpers.js");
|
|
9781
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-primitives/path.js");
|
|
9782
|
+
/* harmony import */ var victory_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! victory-core */ "../../victory-core/es/victory-util/user-props.js");
|
|
9783
|
+
|
|
9784
9784
|
|
|
9785
9785
|
|
|
9786
9786
|
const getVerticalPath = props => {
|
|
@@ -9861,8 +9861,8 @@ const evaluateProps = props => {
|
|
|
9861
9861
|
* `id`
|
|
9862
9862
|
* `style`
|
|
9863
9863
|
*/
|
|
9864
|
-
const id =
|
|
9865
|
-
const style =
|
|
9864
|
+
const id = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateProp(props.id, props);
|
|
9865
|
+
const style = victory_core__WEBPACK_IMPORTED_MODULE_2__.evaluateStyle(props.style, props);
|
|
9866
9866
|
return {
|
|
9867
9867
|
...props,
|
|
9868
9868
|
id,
|
|
@@ -9870,23 +9870,20 @@ const evaluateProps = props => {
|
|
|
9870
9870
|
};
|
|
9871
9871
|
};
|
|
9872
9872
|
const defaultProps = {
|
|
9873
|
-
pathComponent: /*#__PURE__*/
|
|
9873
|
+
pathComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_3__.Path, null),
|
|
9874
9874
|
role: "presentation",
|
|
9875
9875
|
shapeRendering: "auto"
|
|
9876
9876
|
};
|
|
9877
9877
|
const Flyout = initialProps => {
|
|
9878
|
-
const props = evaluateProps({
|
|
9879
|
-
|
|
9880
|
-
...initialProps
|
|
9881
|
-
});
|
|
9882
|
-
const userProps = victory_core__WEBPACK_IMPORTED_MODULE_3__.getSafeUserProps(props);
|
|
9878
|
+
const props = evaluateProps(lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()({}, initialProps, defaultProps));
|
|
9879
|
+
const userProps = victory_core__WEBPACK_IMPORTED_MODULE_4__.getSafeUserProps(props);
|
|
9883
9880
|
|
|
9884
9881
|
// check for required props for this subcomponent
|
|
9885
9882
|
// they should be passed in from the wrapper
|
|
9886
|
-
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9883
|
+
victory_core__WEBPACK_IMPORTED_MODULE_4__.assert(props.height, "Flyout props[height] is undefined");
|
|
9884
|
+
victory_core__WEBPACK_IMPORTED_MODULE_4__.assert(props.width, "Flyout props[width] is undefined");
|
|
9885
|
+
victory_core__WEBPACK_IMPORTED_MODULE_4__.assert(props.x, "Flyout props[x] is undefined");
|
|
9886
|
+
victory_core__WEBPACK_IMPORTED_MODULE_4__.assert(props.y, "Flyout props[y] is undefined");
|
|
9890
9887
|
const flyoutPathProps = {
|
|
9891
9888
|
center: props.center || {
|
|
9892
9889
|
x: 0,
|
|
@@ -9903,7 +9900,7 @@ const Flyout = initialProps => {
|
|
|
9903
9900
|
x: props.x,
|
|
9904
9901
|
y: props.y
|
|
9905
9902
|
};
|
|
9906
|
-
return /*#__PURE__*/
|
|
9903
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(props.pathComponent, {
|
|
9907
9904
|
...props.events,
|
|
9908
9905
|
...userProps,
|
|
9909
9906
|
style: props.style,
|