@component-hook/pdf-canvas 1.0.5-alpha.0 → 1.0.5-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.
@@ -14,7 +14,7 @@ import { TEvent } from 'fabric';
14
14
  import { TextProps } from 'fabric';
15
15
  import { TOptions } from 'fabric';
16
16
 
17
- declare function addImage(src: string, options?: TOptions<ImageProps>): void;
17
+ declare function addImage(src: string, options?: TOptions<ImageProps>, size?: Record<'width' | 'height', number>): void;
18
18
 
19
19
  declare function addText(text: string, options?: TOptions<TextProps>): void;
20
20
 
@@ -118,7 +118,7 @@ export declare function useFabric(id?: string): {
118
118
  } | undefined>;
119
119
  specifyPage: ({ page, PDFBase64, scale, password }: SpecifyPageArgs) => Promise<void>;
120
120
  renderImage: ({ url, scale }: RenderImageArgs) => Promise<void>;
121
- addFabric: (src: string, options?: TOptions<ImageProps>) => Promise<void>;
121
+ addFabric: (src: string, options?: TOptions<ImageProps>, size?: Record<"width" | "height", number>) => Promise<void>;
122
122
  addTextFabric: (text: string, options?: TOptions<TextProps>) => void;
123
123
  clearActive: () => void;
124
124
  deleteCanvas: () => void;