@component-hook/pdf-canvas 1.0.5-alpha.4 → 1.1.0-alpha.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/dist/react/pdf-canvas.es.js +686 -686
- package/dist/react/pdf-canvas.umd.js +6 -6
- package/dist/vue/pdf-canvas.es.d.ts +9 -1
- package/dist/vue/pdf-canvas.es.js +2116 -2110
- package/dist/vue/pdf-canvas.umd.js +49 -49
- package/package.json +1 -1
|
@@ -90,6 +90,14 @@ export declare interface FabricHookParams {
|
|
|
90
90
|
|
|
91
91
|
export declare type FabricPointerEvent = TPointerEventInfo<TPointerEvent>;
|
|
92
92
|
|
|
93
|
+
export declare function loadFile(file: File, password?: string, id?: string): Promise<{
|
|
94
|
+
pages: number;
|
|
95
|
+
PDFId: string;
|
|
96
|
+
name: string;
|
|
97
|
+
updateDate: number;
|
|
98
|
+
PDFBase64: string;
|
|
99
|
+
} | undefined>;
|
|
100
|
+
|
|
93
101
|
export declare interface PDF {
|
|
94
102
|
PDFId: string;
|
|
95
103
|
name: string;
|
|
@@ -135,7 +143,7 @@ export declare function useFabric(params?: FabricHookParams): {
|
|
|
135
143
|
updateDate: number;
|
|
136
144
|
PDFBase64: string;
|
|
137
145
|
} | undefined>;
|
|
138
|
-
specifyPage: (
|
|
146
|
+
specifyPage: (params: SpecifyPageArgs) => void;
|
|
139
147
|
renderImage: ({ url, scale }: RenderImageArgs) => Promise<void>;
|
|
140
148
|
addFabric: (src: string, options?: TOptions<ImageProps>, offset?: DropOffset) => Promise<void>;
|
|
141
149
|
addTextFabric: (text: string, options?: TOptions<TextProps>, offset?: DropOffset) => void;
|