victory-canvas 36.6.3 → 36.6.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # victory-canvas
2
2
 
3
+ ## 36.6.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Added explicit `any` type defs (fixes [#2358](https://github.com/FormidableLabs/victory/issues/2358)) ([`57ed0fe30`](https://github.com/FormidableLabs/victory/commit/57ed0fe304dbc8753da1126a02d44de8004e96aa))
8
+
9
+ * Allow data accessors to accept any data types (fixes [#2360](https://github.com/FormidableLabs/victory/issues/2360)) ([#2436](https://github.com/FormidableLabs/victory/pull/2436))
10
+
11
+ * Updated dependencies [[`9a6319cff`](https://github.com/FormidableLabs/victory/commit/9a6319cffbc480711b8c286dcae00575081170f0)]:
12
+ - victory-core@36.6.4
13
+ - victory-bar@36.6.4
14
+
3
15
  ## 36.6.3
4
16
 
5
17
  ### Patch Changes
package/es/index.d.ts CHANGED
@@ -66,8 +66,8 @@ export class CanvasGroup extends React.Component<CanvasGroupProps, any> {}
66
66
 
67
67
  export interface CanvasContextValue {
68
68
  canvasRef: React.RefObject<HTMLCanvasElement>;
69
- clear(ctx): void;
70
- clip(ctx): void;
69
+ clear(ctx: CanvasRenderingContext2D): void;
70
+ clip(ctx: CanvasRenderingContext2D): void;
71
71
  }
72
72
 
73
73
  export const useCanvasContext: () => CanvasContextValue;
package/lib/index.d.ts CHANGED
@@ -66,8 +66,8 @@ export class CanvasGroup extends React.Component<CanvasGroupProps, any> {}
66
66
 
67
67
  export interface CanvasContextValue {
68
68
  canvasRef: React.RefObject<HTMLCanvasElement>;
69
- clear(ctx): void;
70
- clip(ctx): void;
69
+ clear(ctx: CanvasRenderingContext2D): void;
70
+ clip(ctx: CanvasRenderingContext2D): void;
71
71
  }
72
72
 
73
73
  export const useCanvasContext: () => CanvasContextValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-canvas",
3
- "version": "36.6.3",
3
+ "version": "36.6.4",
4
4
  "description": "HTML5 Canvas Components for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,8 +22,8 @@
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
24
  "prop-types": "^15.8.1",
25
- "victory-bar": "^36.6.3",
26
- "victory-core": "^36.6.3"
25
+ "victory-bar": "^36.6.4",
26
+ "victory-core": "^36.6.4"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": ">=16.6.0"
package/src/index.d.ts CHANGED
@@ -66,8 +66,8 @@ export class CanvasGroup extends React.Component<CanvasGroupProps, any> {}
66
66
 
67
67
  export interface CanvasContextValue {
68
68
  canvasRef: React.RefObject<HTMLCanvasElement>;
69
- clear(ctx): void;
70
- clip(ctx): void;
69
+ clear(ctx: CanvasRenderingContext2D): void;
70
+ clip(ctx: CanvasRenderingContext2D): void;
71
71
  }
72
72
 
73
73
  export const useCanvasContext: () => CanvasContextValue;