victory-cursor-container 36.6.1 → 36.6.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
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# victory-cursor-container
|
|
2
2
|
|
|
3
|
+
## 36.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fixed broken import (fixes [#2426](https://github.com/FormidableLabs/victory/issues/2426)) ([#2427](https://github.com/FormidableLabs/victory/pull/2427))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- victory-core@36.6.2
|
|
11
|
+
|
|
3
12
|
## 36.6.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -8703,7 +8703,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8703
8703
|
/* harmony export */ "getParentSVG": () => (/* binding */ getParentSVG),
|
|
8704
8704
|
/* harmony export */ "getSVGEventCoordinates": () => (/* binding */ getSVGEventCoordinates)
|
|
8705
8705
|
/* harmony export */ });
|
|
8706
|
-
/* harmony import */ var
|
|
8706
|
+
/* harmony import */ var _collection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./collection */ "../../victory-core/es/victory-util/collection.js");
|
|
8707
8707
|
|
|
8708
8708
|
|
|
8709
8709
|
// Private Functions
|
|
@@ -8810,7 +8810,7 @@ function getBounds(props) {
|
|
|
8810
8810
|
var point2 = getDataCoordinates(props, scale, x2, y2);
|
|
8811
8811
|
|
|
8812
8812
|
var makeBound = function (a, b) {
|
|
8813
|
-
return [
|
|
8813
|
+
return [_collection__WEBPACK_IMPORTED_MODULE_0__.getMinValue([a, b]), _collection__WEBPACK_IMPORTED_MODULE_0__.getMaxValue([a, b])];
|
|
8814
8814
|
};
|
|
8815
8815
|
|
|
8816
8816
|
return {
|
package/es/cursor-helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import {
|
|
2
|
+
import { Selection } from "victory-core";
|
|
3
3
|
declare class CursorHelpersClass {
|
|
4
4
|
getDimension(props: any): any;
|
|
5
5
|
withinBounds(point: any, bounds: any): boolean;
|
|
@@ -8,7 +8,7 @@ declare class CursorHelpersClass {
|
|
|
8
8
|
target: string;
|
|
9
9
|
eventKey: string;
|
|
10
10
|
mutation: () => {
|
|
11
|
-
cursorValue: SVGCoordinateType | null;
|
|
11
|
+
cursorValue: Selection.SVGCoordinateType | null;
|
|
12
12
|
parentSVG: any;
|
|
13
13
|
};
|
|
14
14
|
}[]>;
|
|
@@ -16,7 +16,7 @@ declare class CursorHelpersClass {
|
|
|
16
16
|
target: string;
|
|
17
17
|
eventKey: string;
|
|
18
18
|
mutation: () => {
|
|
19
|
-
cursorValue: SVGCoordinateType | null;
|
|
19
|
+
cursorValue: Selection.SVGCoordinateType | null;
|
|
20
20
|
parentSVG: any;
|
|
21
21
|
};
|
|
22
22
|
}[];
|
package/lib/cursor-helpers.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import {
|
|
2
|
+
import { Selection } from "victory-core";
|
|
3
3
|
declare class CursorHelpersClass {
|
|
4
4
|
getDimension(props: any): any;
|
|
5
5
|
withinBounds(point: any, bounds: any): boolean;
|
|
@@ -8,7 +8,7 @@ declare class CursorHelpersClass {
|
|
|
8
8
|
target: string;
|
|
9
9
|
eventKey: string;
|
|
10
10
|
mutation: () => {
|
|
11
|
-
cursorValue: SVGCoordinateType | null;
|
|
11
|
+
cursorValue: Selection.SVGCoordinateType | null;
|
|
12
12
|
parentSVG: any;
|
|
13
13
|
};
|
|
14
14
|
}[]>;
|
|
@@ -16,7 +16,7 @@ declare class CursorHelpersClass {
|
|
|
16
16
|
target: string;
|
|
17
17
|
eventKey: string;
|
|
18
18
|
mutation: () => {
|
|
19
|
-
cursorValue: SVGCoordinateType | null;
|
|
19
|
+
cursorValue: Selection.SVGCoordinateType | null;
|
|
20
20
|
parentSVG: any;
|
|
21
21
|
};
|
|
22
22
|
}[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-cursor-container",
|
|
3
|
-
"version": "36.6.
|
|
3
|
+
"version": "36.6.2",
|
|
4
4
|
"description": "Interactive Cursor Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
24
|
"prop-types": "^15.8.1",
|
|
25
|
-
"victory-core": "^36.6.
|
|
25
|
+
"victory-core": "^36.6.2"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.6.0"
|
package/src/cursor-helpers.tsx
CHANGED