victory-cursor-container 37.3.2 → 37.3.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/CHANGELOG.md +8 -0
- package/dist/victory-cursor-container.js +191 -145
- package/dist/victory-cursor-container.min.js +1 -1
- package/es/cursor-helpers.d.ts +0 -1
- package/es/cursor-helpers.js +2 -2
- package/es/victory-cursor-container.d.ts +36 -36
- package/es/victory-cursor-container.js +7 -7
- package/lib/cursor-helpers.d.ts +0 -1
- package/lib/cursor-helpers.js +2 -2
- package/lib/victory-cursor-container.d.ts +36 -36
- package/lib/victory-cursor-container.js +7 -7
- package/package.json +2 -30
- package/src/cursor-helpers.tsx +1 -1
- package/src/victory-cursor-container.tsx +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-cursor-container",
|
|
3
|
-
"version": "37.3.
|
|
3
|
+
"version": "37.3.3",
|
|
4
4
|
"description": "Interactive Cursor Component for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-core": "37.3.
|
|
24
|
+
"victory-core": "37.3.3"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.6.0"
|
|
@@ -180,32 +180,6 @@
|
|
|
180
180
|
"pnpm-lock.yaml"
|
|
181
181
|
]
|
|
182
182
|
},
|
|
183
|
-
"format": {
|
|
184
|
-
"command": "nps format:pkg",
|
|
185
|
-
"files": [
|
|
186
|
-
"src/**",
|
|
187
|
-
"*.json",
|
|
188
|
-
"../../.prettierignore",
|
|
189
|
-
"../../.prettierrc.json"
|
|
190
|
-
],
|
|
191
|
-
"output": [],
|
|
192
|
-
"packageLocks": [
|
|
193
|
-
"pnpm-lock.yaml"
|
|
194
|
-
]
|
|
195
|
-
},
|
|
196
|
-
"format:fix": {
|
|
197
|
-
"command": "pnpm run format || nps format:pkg:fix",
|
|
198
|
-
"files": [
|
|
199
|
-
"src/**",
|
|
200
|
-
"*.json",
|
|
201
|
-
"../../.prettierignore",
|
|
202
|
-
"../../.prettierrc.json"
|
|
203
|
-
],
|
|
204
|
-
"output": [],
|
|
205
|
-
"packageLocks": [
|
|
206
|
-
"pnpm-lock.yaml"
|
|
207
|
-
]
|
|
208
|
-
},
|
|
209
183
|
"lint": {
|
|
210
184
|
"command": "eslint src",
|
|
211
185
|
"files": [
|
|
@@ -268,8 +242,6 @@
|
|
|
268
242
|
"check": "wireit",
|
|
269
243
|
"types:check": "wireit",
|
|
270
244
|
"types:create": "wireit",
|
|
271
|
-
"format": "wireit",
|
|
272
|
-
"format:fix": "wireit",
|
|
273
245
|
"lint": "wireit",
|
|
274
246
|
"lint:fix": "wireit",
|
|
275
247
|
"jest": "wireit"
|
package/src/cursor-helpers.tsx
CHANGED
|
@@ -12,7 +12,8 @@ import {
|
|
|
12
12
|
DomainTuple,
|
|
13
13
|
PaddingProps,
|
|
14
14
|
} from "victory-core";
|
|
15
|
-
import
|
|
15
|
+
import defaults from "lodash/defaults";
|
|
16
|
+
import isObject from "lodash/isObject";
|
|
16
17
|
import { CursorHelpers } from "./cursor-helpers";
|
|
17
18
|
|
|
18
19
|
export type CursorCoordinatesPropType = CoordinatesPropType | number;
|
|
@@ -96,7 +97,7 @@ export const useVictoryCursorContainer = (
|
|
|
96
97
|
: props.children;
|
|
97
98
|
return Helpers.getPadding(child?.props);
|
|
98
99
|
}
|
|
99
|
-
return Helpers.getPadding(props);
|
|
100
|
+
return Helpers.getPadding(props.padding);
|
|
100
101
|
};
|
|
101
102
|
|
|
102
103
|
const getCursorElements = () => {
|