@component-hook/pdf-canvas 1.4.4 → 1.5.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.
@@ -18,6 +18,43 @@ import { TOptions } from 'fabric';
18
18
  import { TPointerEvent } from 'fabric';
19
19
  import { TPointerEventInfo } from 'fabric';
20
20
 
21
+ declare const __VLS_export: DefineComponent<ComponentProps, {
22
+ reload: typeof setPDF;
23
+ addImage: typeof addImage;
24
+ addText: typeof addText;
25
+ clearActive: () => void;
26
+ deleteCanvas: () => void;
27
+ setActiveFabric: (options: TOptions< FabricObjectProps>) => void;
28
+ copyActiveFabric: () => Promise<void>;
29
+ deleteActiveFabric: () => void;
30
+ canvasRef: Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
31
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
32
+ pointerDown: (event: FabricPointerEvent) => any;
33
+ pointerMove: (event: FabricPointerEvent) => any;
34
+ pointerUp: (event: FabricPointerEvent) => any;
35
+ selectionCreated: (event: FabricSelectionCreatedEvent) => any;
36
+ selectionCleared: (event: FabricSelectionClearedEvent) => any;
37
+ loaded: () => any;
38
+ reload: () => any;
39
+ }, string, PublicProps, Readonly<ComponentProps> & Readonly<{
40
+ onPointerDown?: ((event: FabricPointerEvent) => any) | undefined;
41
+ onPointerMove?: ((event: FabricPointerEvent) => any) | undefined;
42
+ onPointerUp?: ((event: FabricPointerEvent) => any) | undefined;
43
+ onSelectionCreated?: ((event: FabricSelectionCreatedEvent) => any) | undefined;
44
+ onSelectionCleared?: ((event: FabricSelectionClearedEvent) => any) | undefined;
45
+ onLoaded?: (() => any) | undefined;
46
+ onReload?: (() => any) | undefined;
47
+ }>, {
48
+ page: number;
49
+ canvasId: string;
50
+ fileZoom: number;
51
+ fileScale: number;
52
+ canvasScale: number;
53
+ canvasClass: string;
54
+ isDrop: boolean;
55
+ onDestroy: (callback: () => void) => void;
56
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
57
+
21
58
  declare function addImage(src: string, options?: TOptions<ImageProps>, offset?: DropOffset): void;
22
59
 
23
60
  declare function addText(text: string, options?: TOptions<TextProps>, offset?: DropOffset): void;
@@ -63,44 +100,7 @@ export declare interface CreateCloseFabricArgs {
63
100
  uuid?: number;
64
101
  }
65
102
 
66
- declare const _default: DefineComponent<ComponentProps, {
67
- reload: typeof setPDF;
68
- addImage: typeof addImage;
69
- addText: typeof addText;
70
- clearActive: () => void;
71
- deleteCanvas: () => void;
72
- setActiveFabric: (options: TOptions<FabricObjectProps>) => void;
73
- copyActiveFabric: () => Promise<void>;
74
- deleteActiveFabric: () => void;
75
- canvasRef: Ref<HTMLCanvasElement | null, HTMLCanvasElement | null>;
76
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
77
- pointerDown: (event: FabricPointerEvent) => any;
78
- pointerMove: (event: FabricPointerEvent) => any;
79
- pointerUp: (event: FabricPointerEvent) => any;
80
- selectionCreated: (event: FabricSelectionCreatedEvent) => any;
81
- selectionCleared: (event: FabricSelectionClearedEvent) => any;
82
- loaded: () => any;
83
- reload: () => any;
84
- }, string, PublicProps, Readonly<ComponentProps> & Readonly<{
85
- onPointerDown?: ((event: FabricPointerEvent) => any) | undefined;
86
- onPointerMove?: ((event: FabricPointerEvent) => any) | undefined;
87
- onPointerUp?: ((event: FabricPointerEvent) => any) | undefined;
88
- onSelectionCreated?: ((event: FabricSelectionCreatedEvent) => any) | undefined;
89
- onSelectionCleared?: ((event: FabricSelectionClearedEvent) => any) | undefined;
90
- onLoaded?: (() => any) | undefined;
91
- onReload?: (() => any) | undefined;
92
- }>, {
93
- page: number;
94
- canvasId: string;
95
- fileZoom: number;
96
- fileScale: number;
97
- canvasScale: number;
98
- canvasClass: string;
99
- isDrop: boolean;
100
- onDestroy: (callback: () => void) => void;
101
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
102
- canvasRef: HTMLCanvasElement;
103
- }, HTMLDivElement>;
103
+ declare const _default: typeof __VLS_export;
104
104
  export default _default;
105
105
 
106
106
  export declare type DropOffset = Record<'x' | 'y', number>;