victory-cursor-container 36.9.1 → 36.9.2-next.0
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 +11 -0
- package/dist/victory-cursor-container.js +1538 -2119
- package/dist/victory-cursor-container.min.js +1 -1
- package/es/cursor-helpers.d.ts +32 -32
- package/es/cursor-helpers.js +79 -112
- package/es/index.d.ts +2 -2
- package/es/victory-cursor-container.d.ts +133 -133
- package/es/victory-cursor-container.js +138 -205
- package/lib/cursor-helpers.d.ts +32 -32
- package/lib/cursor-helpers.js +80 -122
- package/lib/index.d.ts +2 -2
- package/lib/index.js +0 -4
- package/lib/victory-cursor-container.d.ts +133 -133
- package/lib/victory-cursor-container.js +138 -215
- package/package.json +6 -9
- package/src/cursor-helpers.tsx +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-cursor-container",
|
|
3
|
-
"version": "36.9.
|
|
3
|
+
"version": "36.9.2-next.0",
|
|
4
4
|
"description": "Interactive Cursor Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,14 +21,11 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-core": "^36.9.
|
|
24
|
+
"victory-core": "^36.9.2-next.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.6.0"
|
|
28
28
|
},
|
|
29
|
-
"publishConfig": {
|
|
30
|
-
"provenance": true
|
|
31
|
-
},
|
|
32
29
|
"wireit": {
|
|
33
30
|
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
|
|
34
31
|
"### DO NOT MODIFY THESE MANUALLY ####": {},
|
|
@@ -241,7 +238,7 @@
|
|
|
241
238
|
]
|
|
242
239
|
},
|
|
243
240
|
"jest": {
|
|
244
|
-
"command": "
|
|
241
|
+
"command": "jest --passWithNoTests",
|
|
245
242
|
"files": [
|
|
246
243
|
"src/**/*.test.*",
|
|
247
244
|
"../../.babelrc.js",
|
|
@@ -250,9 +247,9 @@
|
|
|
250
247
|
],
|
|
251
248
|
"output": [],
|
|
252
249
|
"dependencies": [
|
|
253
|
-
"build
|
|
254
|
-
"../victory-vendor:build
|
|
255
|
-
"../victory-voronoi:build
|
|
250
|
+
"../victory-core:build",
|
|
251
|
+
"../victory-vendor:build",
|
|
252
|
+
"../victory-voronoi:build"
|
|
256
253
|
],
|
|
257
254
|
"packageLocks": [
|
|
258
255
|
"pnpm-lock.yaml"
|
package/src/cursor-helpers.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Selection, SVGCoordinateType } from "victory-core";
|
|
2
|
-
import { throttle,
|
|
1
|
+
import { Helpers, Selection, SVGCoordinateType } from "victory-core";
|
|
2
|
+
import { throttle, mapValues } from "lodash";
|
|
3
3
|
|
|
4
4
|
const ON_MOUSE_MOVE_THROTTLE_MS = 16;
|
|
5
5
|
|
|
@@ -46,7 +46,7 @@ class CursorHelpersClass {
|
|
|
46
46
|
cursorValue = null;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
if (isFunction(onCursorChange)) {
|
|
49
|
+
if (Helpers.isFunction(onCursorChange)) {
|
|
50
50
|
if (cursorValue) {
|
|
51
51
|
const value = cursorDimension
|
|
52
52
|
? cursorValue[cursorDimension]
|
|
@@ -76,7 +76,7 @@ class CursorHelpersClass {
|
|
|
76
76
|
onTouchEnd = (evt, targetProps) => {
|
|
77
77
|
const { onCursorChange } = targetProps;
|
|
78
78
|
|
|
79
|
-
if (isFunction(targetProps.onCursorChange)) {
|
|
79
|
+
if (Helpers.isFunction(targetProps.onCursorChange)) {
|
|
80
80
|
onCursorChange(null, targetProps);
|
|
81
81
|
}
|
|
82
82
|
|