victory-cursor-container 37.3.2 → 37.3.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-cursor-container",
3
- "version": "37.3.2",
3
+ "version": "37.3.4",
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.2"
24
+ "victory-core": "37.3.4"
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"
@@ -1,5 +1,5 @@
1
1
  import { Helpers, Selection, SVGCoordinateType } from "victory-core";
2
- import { throttle } from "lodash";
2
+ import throttle from "lodash/throttle";
3
3
 
4
4
  const ON_MOUSE_MOVE_THROTTLE_MS = 16;
5
5
 
@@ -12,7 +12,8 @@ import {
12
12
  DomainTuple,
13
13
  PaddingProps,
14
14
  } from "victory-core";
15
- import { defaults, isObject } from "lodash";
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;
@@ -94,9 +95,9 @@ export const useVictoryCursorContainer = (
94
95
  return isObject(c.props) && c.props.padding !== undefined;
95
96
  })
96
97
  : props.children;
97
- return Helpers.getPadding(child?.props);
98
+ return Helpers.getPadding(child?.props?.padding);
98
99
  }
99
- return Helpers.getPadding(props);
100
+ return Helpers.getPadding(props.padding);
100
101
  };
101
102
 
102
103
  const getCursorElements = () => {