@component-hook/pdf-canvas 0.1.6 → 0.2.0-alpha.1
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/README.md +44 -3
- package/dist/react/pdf-canvas.es.d.ts +108 -0
- package/dist/react/pdf-canvas.es.js +22167 -0
- package/dist/react/pdf-canvas.umd.js +538 -0
- package/dist/vue/chunks/__vite-browser-external-DYxpcVy9.js +4 -0
- package/dist/{index.d.ts → vue/pdf-canvas.es.d.ts} +17 -19
- package/dist/{pdf-canvas.es.js → vue/pdf-canvas.es.js} +4910 -4810
- package/dist/vue/pdf-canvas.umd.js +509 -0
- package/package.json +19 -12
- package/dist/pdf-canvas.umd.js +0 -509
- /package/dist/{chunks → react/chunks}/__vite-browser-external-DYxpcVy9.js +0 -0
|
@@ -46,6 +46,21 @@ export declare interface CloseSvgOptions {
|
|
|
46
46
|
src: string;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
export declare interface ComponentProps {
|
|
50
|
+
file: PDF;
|
|
51
|
+
page?: number;
|
|
52
|
+
canvasId?: string;
|
|
53
|
+
fileZoom?: number;
|
|
54
|
+
fileScale?: number;
|
|
55
|
+
canvasScale?: number;
|
|
56
|
+
canvasClass?: string;
|
|
57
|
+
isDrop?: boolean;
|
|
58
|
+
password?: string;
|
|
59
|
+
dropTextOptions?: TOptions<TextProps>;
|
|
60
|
+
dropImageOptions?: TOptions<ImageProps>;
|
|
61
|
+
closeSvgOptions?: CloseSvgOptions;
|
|
62
|
+
}
|
|
63
|
+
|
|
49
64
|
export declare interface CreateCloseFabricArgs {
|
|
50
65
|
canvas: Canvas;
|
|
51
66
|
target: FabricObject;
|
|
@@ -53,9 +68,8 @@ export declare interface CreateCloseFabricArgs {
|
|
|
53
68
|
uuid?: number;
|
|
54
69
|
}
|
|
55
70
|
|
|
56
|
-
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<
|
|
71
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ComponentProps>, {
|
|
57
72
|
canvasId: string;
|
|
58
|
-
class: string;
|
|
59
73
|
canvasClass: string;
|
|
60
74
|
canvasScale: number;
|
|
61
75
|
page: number;
|
|
@@ -68,9 +82,8 @@ addText: typeof addText;
|
|
|
68
82
|
clearActive: () => void;
|
|
69
83
|
deleteCanvas: () => void;
|
|
70
84
|
canvasRef: Ref<HTMLCanvasElement | null>;
|
|
71
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<
|
|
85
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ComponentProps>, {
|
|
72
86
|
canvasId: string;
|
|
73
|
-
class: string;
|
|
74
87
|
canvasClass: string;
|
|
75
88
|
canvasScale: number;
|
|
76
89
|
page: number;
|
|
@@ -99,21 +112,6 @@ export declare interface PDF {
|
|
|
99
112
|
isUpdate?: boolean;
|
|
100
113
|
}
|
|
101
114
|
|
|
102
|
-
declare interface Props {
|
|
103
|
-
file: PDF;
|
|
104
|
-
page?: number;
|
|
105
|
-
canvasId?: string;
|
|
106
|
-
fileZoom?: number;
|
|
107
|
-
fileScale?: number;
|
|
108
|
-
canvasScale?: number;
|
|
109
|
-
canvasClass?: string;
|
|
110
|
-
isDrop?: boolean;
|
|
111
|
-
password?: string;
|
|
112
|
-
dropTextOptions?: TOptions<TextProps>;
|
|
113
|
-
dropImageOptions?: TOptions<ImageProps>;
|
|
114
|
-
closeSvgOptions?: CloseSvgOptions;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
115
|
export declare interface RenderImageArgs {
|
|
118
116
|
url: string;
|
|
119
117
|
scale?: number;
|