victory-canvas 36.5.2 → 36.5.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/es/index.d.ts CHANGED
@@ -63,3 +63,11 @@ export interface CanvasGroupProps {
63
63
  }
64
64
 
65
65
  export class CanvasGroup extends React.Component<CanvasGroupProps, any> {}
66
+
67
+ export interface CanvasContextValue {
68
+ canvasRef: React.RefObject<HTMLCanvasElement>;
69
+ clear(ctx): void;
70
+ clip(ctx): void;
71
+ }
72
+
73
+ export const useCanvasContext: () => CanvasContextValue;
package/lib/index.d.ts CHANGED
@@ -63,3 +63,11 @@ export interface CanvasGroupProps {
63
63
  }
64
64
 
65
65
  export class CanvasGroup extends React.Component<CanvasGroupProps, any> {}
66
+
67
+ export interface CanvasContextValue {
68
+ canvasRef: React.RefObject<HTMLCanvasElement>;
69
+ clear(ctx): void;
70
+ clip(ctx): void;
71
+ }
72
+
73
+ export const useCanvasContext: () => CanvasContextValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-canvas",
3
- "version": "36.5.2",
3
+ "version": "36.5.3",
4
4
  "description": "HTML5 Canvas Components for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "lodash": "^4.17.19",
23
23
  "prop-types": "^15.8.1",
24
- "victory-core": "^36.5.2"
24
+ "victory-core": "^36.5.3"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.6.0"
@@ -30,5 +30,5 @@
30
30
  "version": "yarn run nps build-libs && nps build-dists"
31
31
  },
32
32
  "sideEffects": false,
33
- "gitHead": "def218e9749ecafc159ef458dd03a8b92e227666"
33
+ "gitHead": "55338af3c57eacca5956e53c08a58e47ba41d01e"
34
34
  }
package/src/index.d.ts CHANGED
@@ -63,3 +63,11 @@ export interface CanvasGroupProps {
63
63
  }
64
64
 
65
65
  export class CanvasGroup extends React.Component<CanvasGroupProps, any> {}
66
+
67
+ export interface CanvasContextValue {
68
+ canvasRef: React.RefObject<HTMLCanvasElement>;
69
+ clear(ctx): void;
70
+ clip(ctx): void;
71
+ }
72
+
73
+ export const useCanvasContext: () => CanvasContextValue;