@component-hook/pdf-canvas 0.2.1-alpha.0 → 0.2.2
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 +7615 -7040
- package/dist/react/pdf-canvas.umd.js +76 -76
- package/dist/vue/pdf-canvas.es.d.ts +5 -43
- package/dist/vue/pdf-canvas.es.js +6274 -5702
- package/dist/vue/pdf-canvas.umd.js +66 -66
- package/package.json +3 -3
- package/dist/react/chunks/__vite-browser-external-DYxpcVy9.js +0 -4
- package/dist/vue/chunks/__vite-browser-external-DYxpcVy9.js +0 -4
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Canvas } from 'fabric';
|
|
2
2
|
import { ComponentOptionsMixin } from 'vue';
|
|
3
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
4
|
import { DefineComponent } from 'vue';
|
|
4
|
-
import { ExtractPropTypes } from 'vue';
|
|
5
5
|
import { FabricObject } from 'fabric';
|
|
6
6
|
import { FabricObjectProps } from 'fabric';
|
|
7
7
|
import { ImageProps } from 'fabric';
|
|
8
8
|
import { ObjectEvents } from 'fabric';
|
|
9
9
|
import { Point } from 'fabric';
|
|
10
|
-
import { PropType } from 'vue';
|
|
11
10
|
import { PublicProps } from 'vue';
|
|
12
11
|
import { Ref } from 'vue';
|
|
13
12
|
import { SerializedObjectProps } from 'fabric';
|
|
@@ -15,27 +14,6 @@ import { TEvent } from 'fabric';
|
|
|
15
14
|
import { TextProps } from 'fabric';
|
|
16
15
|
import { TOptions } from 'fabric';
|
|
17
16
|
|
|
18
|
-
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
-
|
|
20
|
-
declare type __VLS_PrettifyLocal<T> = {
|
|
21
|
-
[K in keyof T]: T[K];
|
|
22
|
-
} & {};
|
|
23
|
-
|
|
24
|
-
declare type __VLS_TypePropsToOption<T> = {
|
|
25
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
26
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
27
|
-
} : {
|
|
28
|
-
type: PropType<T[K]>;
|
|
29
|
-
required: true;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
declare type __VLS_WithDefaults<P, D> = {
|
|
34
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
35
|
-
default: D[K];
|
|
36
|
-
}> : P[K];
|
|
37
|
-
};
|
|
38
|
-
|
|
39
17
|
declare function addImage(src: string, options?: TOptions<ImageProps>): void;
|
|
40
18
|
|
|
41
19
|
declare function addText(text: string, options?: TOptions<TextProps>): void;
|
|
@@ -68,29 +46,13 @@ export declare interface CreateCloseFabricArgs {
|
|
|
68
46
|
uuid?: number;
|
|
69
47
|
}
|
|
70
48
|
|
|
71
|
-
declare const _default: DefineComponent<
|
|
72
|
-
canvasId: string;
|
|
73
|
-
canvasClass: string;
|
|
74
|
-
canvasScale: number;
|
|
75
|
-
page: number;
|
|
76
|
-
fileZoom: number;
|
|
77
|
-
fileScale: number;
|
|
78
|
-
isDrop: boolean;
|
|
79
|
-
}>, {
|
|
49
|
+
declare const _default: DefineComponent<ComponentProps, {
|
|
80
50
|
addImage: typeof addImage;
|
|
81
51
|
addText: typeof addText;
|
|
82
52
|
clearActive: () => void;
|
|
83
53
|
deleteCanvas: () => void;
|
|
84
|
-
canvasRef: Ref<HTMLCanvasElement | null>;
|
|
85
|
-
},
|
|
86
|
-
canvasId: string;
|
|
87
|
-
canvasClass: string;
|
|
88
|
-
canvasScale: number;
|
|
89
|
-
page: number;
|
|
90
|
-
fileZoom: number;
|
|
91
|
-
fileScale: number;
|
|
92
|
-
isDrop: boolean;
|
|
93
|
-
}>>>, {
|
|
54
|
+
canvasRef: Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
|
|
55
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ComponentProps> & Readonly<{}>, {
|
|
94
56
|
page: number;
|
|
95
57
|
canvasId: string;
|
|
96
58
|
fileZoom: number;
|
|
@@ -98,7 +60,7 @@ fileScale: number;
|
|
|
98
60
|
canvasScale: number;
|
|
99
61
|
canvasClass: string;
|
|
100
62
|
isDrop: boolean;
|
|
101
|
-
}, {}>;
|
|
63
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
102
64
|
export default _default;
|
|
103
65
|
|
|
104
66
|
export declare interface PDF {
|