@hufe921/canvas-editor 0.9.129 → 0.9.130

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,5 +14,6 @@ export declare class BlockParticle {
14
14
  render(ctx: CanvasRenderingContext2D, pageNo: number, element: IRowElement, x: number, y: number): void;
15
15
  clear(): void;
16
16
  update(): void;
17
+ drawIframeToPage(pageList: HTMLCanvasElement[], snapDomFunction: (iframe: HTMLIFrameElement) => Promise<string>): Promise<void>;
17
18
  pickIframeInfo(): IIframeInfo[][];
18
19
  }
@@ -60,6 +60,7 @@ export interface IAppendElementListOption {
60
60
  export interface IGetImageOption {
61
61
  pixelRatio?: number;
62
62
  mode?: EditorMode;
63
+ snapDomFunction?: (iframe: HTMLIFrameElement) => Promise<string>;
63
64
  }
64
65
  export interface IComputeRowListPayload {
65
66
  innerWidth: number;
@@ -26,6 +26,7 @@ export declare function isArrayEqual(arr1: unknown[], arr2: unknown[]): boolean;
26
26
  export declare function isObjectEqual(obj1: unknown, obj2: unknown): boolean;
27
27
  export declare function isRectIntersect(rect1: IElementFillRect, rect2: IElementFillRect): boolean;
28
28
  export declare function isNonValue(value: unknown): boolean;
29
+ export declare function loadImage(src: string): Promise<HTMLImageElement>;
29
30
  export declare function normalizeLineBreak(text: string): string;
30
31
  export declare function indexOf(source: string, search: string | RegExp, fromIndex?: number): {
31
32
  index: number;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@hufe921/canvas-editor",
3
3
  "author": "Hufe",
4
4
  "license": "MIT",
5
- "version": "0.9.129",
5
+ "version": "0.9.130",
6
6
  "description": "rich text editor by canvas/svg",
7
7
  "publishConfig": {
8
8
  "registry": "https://registry.npmjs.org/",