victory-canvas 37.0.2 → 37.0.3-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 +8 -0
- package/es/canvas-bar.d.ts +17 -17
- package/es/canvas-curve.d.ts +8 -8
- package/es/canvas-group.d.ts +13 -13
- package/es/canvas-point.d.ts +10 -10
- package/es/hooks/use-canvas-context.d.ts +8 -8
- package/es/index.d.ts +5 -5
- package/lib/canvas-bar.d.ts +17 -17
- package/lib/canvas-curve.d.ts +8 -8
- package/lib/canvas-group.d.ts +13 -13
- package/lib/canvas-point.d.ts +10 -10
- package/lib/hooks/use-canvas-context.d.ts +8 -8
- package/lib/index.d.ts +5 -5
- package/package.json +3 -6
package/CHANGELOG.md
CHANGED
package/es/canvas-bar.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { VictoryBarAlignmentType, VictoryBarCornerRadiusObject } from "victory-bar";
|
|
2
|
-
import { NumberOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
|
|
3
|
-
export interface CanvasBarProps extends VictoryCommonPrimitiveProps {
|
|
4
|
-
alignment?: VictoryBarAlignmentType;
|
|
5
|
-
barOffset?: number[];
|
|
6
|
-
barRatio?: number;
|
|
7
|
-
barWidth?: NumberOrCallback;
|
|
8
|
-
cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
|
|
9
|
-
datum?: any;
|
|
10
|
-
getPath?: (props: CanvasBarProps) => string;
|
|
11
|
-
horizontal?: boolean;
|
|
12
|
-
width?: number;
|
|
13
|
-
x?: number;
|
|
14
|
-
y?: number;
|
|
15
|
-
y0?: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const CanvasBar: (props: CanvasBarProps) => null;
|
|
1
|
+
import { VictoryBarAlignmentType, VictoryBarCornerRadiusObject } from "victory-bar";
|
|
2
|
+
import { NumberOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
|
|
3
|
+
export interface CanvasBarProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
alignment?: VictoryBarAlignmentType;
|
|
5
|
+
barOffset?: number[];
|
|
6
|
+
barRatio?: number;
|
|
7
|
+
barWidth?: NumberOrCallback;
|
|
8
|
+
cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
|
|
9
|
+
datum?: any;
|
|
10
|
+
getPath?: (props: CanvasBarProps) => string;
|
|
11
|
+
horizontal?: boolean;
|
|
12
|
+
width?: number;
|
|
13
|
+
x?: number;
|
|
14
|
+
y?: number;
|
|
15
|
+
y0?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const CanvasBar: (props: CanvasBarProps) => null;
|
|
18
18
|
//# sourceMappingURL=canvas-bar.d.ts.map
|
package/es/canvas-curve.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { NumberOrCallback, StringOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
-
export interface CanvasCurveProps extends VictoryCommonPrimitiveProps {
|
|
3
|
-
ariaLabel?: StringOrCallback;
|
|
4
|
-
interpolation?: string | Function;
|
|
5
|
-
openCurve?: boolean;
|
|
6
|
-
tabIndex?: NumberOrCallback;
|
|
7
|
-
}
|
|
8
|
-
export declare const CanvasCurve: (props: CanvasCurveProps) => null;
|
|
1
|
+
import { NumberOrCallback, StringOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
+
export interface CanvasCurveProps extends VictoryCommonPrimitiveProps {
|
|
3
|
+
ariaLabel?: StringOrCallback;
|
|
4
|
+
interpolation?: string | Function;
|
|
5
|
+
openCurve?: boolean;
|
|
6
|
+
tabIndex?: NumberOrCallback;
|
|
7
|
+
}
|
|
8
|
+
export declare const CanvasCurve: (props: CanvasCurveProps) => null;
|
|
9
9
|
//# sourceMappingURL=canvas-curve.d.ts.map
|
package/es/canvas-group.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { PaddingProps } from "victory-core";
|
|
3
|
-
export interface CanvasGroupProps {
|
|
4
|
-
children?: React.ReactNode | React.ReactNode[];
|
|
5
|
-
clipWidth?: number;
|
|
6
|
-
height?: number;
|
|
7
|
-
padding?: PaddingProps;
|
|
8
|
-
width?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const CanvasGroup: {
|
|
11
|
-
(props: CanvasGroupProps): JSX.Element;
|
|
12
|
-
role: string;
|
|
13
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PaddingProps } from "victory-core";
|
|
3
|
+
export interface CanvasGroupProps {
|
|
4
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
5
|
+
clipWidth?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
padding?: PaddingProps;
|
|
8
|
+
width?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const CanvasGroup: {
|
|
11
|
+
(props: CanvasGroupProps): JSX.Element;
|
|
12
|
+
role: string;
|
|
13
|
+
};
|
|
14
14
|
//# sourceMappingURL=canvas-group.d.ts.map
|
package/es/canvas-point.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ScatterSymbolType, VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
-
export interface CanvasPointProps extends VictoryCommonPrimitiveProps {
|
|
3
|
-
datum?: any;
|
|
4
|
-
getPath?: (x: number, y: number, size: number) => string;
|
|
5
|
-
size?: number | Function;
|
|
6
|
-
symbol?: ScatterSymbolType | Function;
|
|
7
|
-
x?: number;
|
|
8
|
-
y?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const CanvasPoint: (props: CanvasPointProps) => null;
|
|
1
|
+
import { ScatterSymbolType, VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
+
export interface CanvasPointProps extends VictoryCommonPrimitiveProps {
|
|
3
|
+
datum?: any;
|
|
4
|
+
getPath?: (x: number, y: number, size: number) => string;
|
|
5
|
+
size?: number | Function;
|
|
6
|
+
symbol?: ScatterSymbolType | Function;
|
|
7
|
+
x?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const CanvasPoint: (props: CanvasPointProps) => null;
|
|
11
11
|
//# sourceMappingURL=canvas-point.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare type CanvasContextValue = {
|
|
3
|
-
canvasRef: React.RefObject<HTMLCanvasElement>;
|
|
4
|
-
clear: (ctx: CanvasRenderingContext2D) => void;
|
|
5
|
-
clip: (ctx: CanvasRenderingContext2D) => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const CanvasContext: React.Context<CanvasContextValue | undefined>;
|
|
8
|
-
export declare const useCanvasContext: () => CanvasContextValue;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type CanvasContextValue = {
|
|
3
|
+
canvasRef: React.RefObject<HTMLCanvasElement>;
|
|
4
|
+
clear: (ctx: CanvasRenderingContext2D) => void;
|
|
5
|
+
clip: (ctx: CanvasRenderingContext2D) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const CanvasContext: React.Context<CanvasContextValue | undefined>;
|
|
8
|
+
export declare const useCanvasContext: () => CanvasContextValue;
|
|
9
9
|
//# sourceMappingURL=use-canvas-context.d.ts.map
|
package/es/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./canvas-bar";
|
|
2
|
-
export * from "./canvas-group";
|
|
3
|
-
export * from "./canvas-curve";
|
|
4
|
-
export * from "./canvas-point";
|
|
5
|
-
export { useCanvasContext } from "./hooks/use-canvas-context";
|
|
1
|
+
export * from "./canvas-bar";
|
|
2
|
+
export * from "./canvas-group";
|
|
3
|
+
export * from "./canvas-curve";
|
|
4
|
+
export * from "./canvas-point";
|
|
5
|
+
export { useCanvasContext } from "./hooks/use-canvas-context";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/canvas-bar.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { VictoryBarAlignmentType, VictoryBarCornerRadiusObject } from "victory-bar";
|
|
2
|
-
import { NumberOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
|
|
3
|
-
export interface CanvasBarProps extends VictoryCommonPrimitiveProps {
|
|
4
|
-
alignment?: VictoryBarAlignmentType;
|
|
5
|
-
barOffset?: number[];
|
|
6
|
-
barRatio?: number;
|
|
7
|
-
barWidth?: NumberOrCallback;
|
|
8
|
-
cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
|
|
9
|
-
datum?: any;
|
|
10
|
-
getPath?: (props: CanvasBarProps) => string;
|
|
11
|
-
horizontal?: boolean;
|
|
12
|
-
width?: number;
|
|
13
|
-
x?: number;
|
|
14
|
-
y?: number;
|
|
15
|
-
y0?: number;
|
|
16
|
-
}
|
|
17
|
-
export declare const CanvasBar: (props: CanvasBarProps) => null;
|
|
1
|
+
import { VictoryBarAlignmentType, VictoryBarCornerRadiusObject } from "victory-bar";
|
|
2
|
+
import { NumberOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
|
|
3
|
+
export interface CanvasBarProps extends VictoryCommonPrimitiveProps {
|
|
4
|
+
alignment?: VictoryBarAlignmentType;
|
|
5
|
+
barOffset?: number[];
|
|
6
|
+
barRatio?: number;
|
|
7
|
+
barWidth?: NumberOrCallback;
|
|
8
|
+
cornerRadius?: NumberOrCallback | VictoryBarCornerRadiusObject;
|
|
9
|
+
datum?: any;
|
|
10
|
+
getPath?: (props: CanvasBarProps) => string;
|
|
11
|
+
horizontal?: boolean;
|
|
12
|
+
width?: number;
|
|
13
|
+
x?: number;
|
|
14
|
+
y?: number;
|
|
15
|
+
y0?: number;
|
|
16
|
+
}
|
|
17
|
+
export declare const CanvasBar: (props: CanvasBarProps) => null;
|
|
18
18
|
//# sourceMappingURL=canvas-bar.d.ts.map
|
package/lib/canvas-curve.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { NumberOrCallback, StringOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
-
export interface CanvasCurveProps extends VictoryCommonPrimitiveProps {
|
|
3
|
-
ariaLabel?: StringOrCallback;
|
|
4
|
-
interpolation?: string | Function;
|
|
5
|
-
openCurve?: boolean;
|
|
6
|
-
tabIndex?: NumberOrCallback;
|
|
7
|
-
}
|
|
8
|
-
export declare const CanvasCurve: (props: CanvasCurveProps) => null;
|
|
1
|
+
import { NumberOrCallback, StringOrCallback, VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
+
export interface CanvasCurveProps extends VictoryCommonPrimitiveProps {
|
|
3
|
+
ariaLabel?: StringOrCallback;
|
|
4
|
+
interpolation?: string | Function;
|
|
5
|
+
openCurve?: boolean;
|
|
6
|
+
tabIndex?: NumberOrCallback;
|
|
7
|
+
}
|
|
8
|
+
export declare const CanvasCurve: (props: CanvasCurveProps) => null;
|
|
9
9
|
//# sourceMappingURL=canvas-curve.d.ts.map
|
package/lib/canvas-group.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { PaddingProps } from "victory-core";
|
|
3
|
-
export interface CanvasGroupProps {
|
|
4
|
-
children?: React.ReactNode | React.ReactNode[];
|
|
5
|
-
clipWidth?: number;
|
|
6
|
-
height?: number;
|
|
7
|
-
padding?: PaddingProps;
|
|
8
|
-
width?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const CanvasGroup: {
|
|
11
|
-
(props: CanvasGroupProps): JSX.Element;
|
|
12
|
-
role: string;
|
|
13
|
-
};
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PaddingProps } from "victory-core";
|
|
3
|
+
export interface CanvasGroupProps {
|
|
4
|
+
children?: React.ReactNode | React.ReactNode[];
|
|
5
|
+
clipWidth?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
padding?: PaddingProps;
|
|
8
|
+
width?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const CanvasGroup: {
|
|
11
|
+
(props: CanvasGroupProps): JSX.Element;
|
|
12
|
+
role: string;
|
|
13
|
+
};
|
|
14
14
|
//# sourceMappingURL=canvas-group.d.ts.map
|
package/lib/canvas-point.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ScatterSymbolType, VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
-
export interface CanvasPointProps extends VictoryCommonPrimitiveProps {
|
|
3
|
-
datum?: any;
|
|
4
|
-
getPath?: (x: number, y: number, size: number) => string;
|
|
5
|
-
size?: number | Function;
|
|
6
|
-
symbol?: ScatterSymbolType | Function;
|
|
7
|
-
x?: number;
|
|
8
|
-
y?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare const CanvasPoint: (props: CanvasPointProps) => null;
|
|
1
|
+
import { ScatterSymbolType, VictoryCommonPrimitiveProps } from "victory-core";
|
|
2
|
+
export interface CanvasPointProps extends VictoryCommonPrimitiveProps {
|
|
3
|
+
datum?: any;
|
|
4
|
+
getPath?: (x: number, y: number, size: number) => string;
|
|
5
|
+
size?: number | Function;
|
|
6
|
+
symbol?: ScatterSymbolType | Function;
|
|
7
|
+
x?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
}
|
|
10
|
+
export declare const CanvasPoint: (props: CanvasPointProps) => null;
|
|
11
11
|
//# sourceMappingURL=canvas-point.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare type CanvasContextValue = {
|
|
3
|
-
canvasRef: React.RefObject<HTMLCanvasElement>;
|
|
4
|
-
clear: (ctx: CanvasRenderingContext2D) => void;
|
|
5
|
-
clip: (ctx: CanvasRenderingContext2D) => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const CanvasContext: React.Context<CanvasContextValue | undefined>;
|
|
8
|
-
export declare const useCanvasContext: () => CanvasContextValue;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare type CanvasContextValue = {
|
|
3
|
+
canvasRef: React.RefObject<HTMLCanvasElement>;
|
|
4
|
+
clear: (ctx: CanvasRenderingContext2D) => void;
|
|
5
|
+
clip: (ctx: CanvasRenderingContext2D) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const CanvasContext: React.Context<CanvasContextValue | undefined>;
|
|
8
|
+
export declare const useCanvasContext: () => CanvasContextValue;
|
|
9
9
|
//# sourceMappingURL=use-canvas-context.d.ts.map
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "./canvas-bar";
|
|
2
|
-
export * from "./canvas-group";
|
|
3
|
-
export * from "./canvas-curve";
|
|
4
|
-
export * from "./canvas-point";
|
|
5
|
-
export { useCanvasContext } from "./hooks/use-canvas-context";
|
|
1
|
+
export * from "./canvas-bar";
|
|
2
|
+
export * from "./canvas-group";
|
|
3
|
+
export * from "./canvas-curve";
|
|
4
|
+
export * from "./canvas-point";
|
|
5
|
+
export { useCanvasContext } from "./hooks/use-canvas-context";
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "victory-canvas",
|
|
3
|
-
"version": "37.0.
|
|
3
|
+
"version": "37.0.3-next.0",
|
|
4
4
|
"description": "HTML5 Canvas Components for Victory",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data visualization",
|
|
@@ -21,15 +21,12 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"lodash": "^4.17.19",
|
|
24
|
-
"victory-bar": "^37.0.
|
|
25
|
-
"victory-core": "^37.0.
|
|
24
|
+
"victory-bar": "^37.0.3-next.0",
|
|
25
|
+
"victory-core": "^37.0.3-next.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"react": ">=16.6.0"
|
|
29
29
|
},
|
|
30
|
-
"publishConfig": {
|
|
31
|
-
"provenance": true
|
|
32
|
-
},
|
|
33
30
|
"wireit": {
|
|
34
31
|
"### THESE WIREIT CONFIGS ARE GENERATED ####": {},
|
|
35
32
|
"### DO NOT MODIFY THESE MANUALLY ####": {},
|