@leafer/interface
Advanced tools
+1
-1
| { | ||
| "name": "@leafer/interface", | ||
| "version": "1.0.0-beta.11", | ||
| "version": "1.0.0-beta.12", | ||
| "description": "@leafer/interface", | ||
@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan", |
@@ -9,3 +9,2 @@ import { ILeaf } from '../display/ILeaf' | ||
| getImageType(leaf: ILeaf, size: IScreenSizeData): IHitCanvas | ||
| destroy(): void | ||
| } |
@@ -15,3 +15,2 @@ import { IObject } from '../data/IData' | ||
| hittable?: boolean | ||
| offscreen?: boolean | ||
| webgl?: boolean | ||
@@ -161,4 +160,2 @@ } | ||
| offscreen: boolean | ||
| context: ICanvasContext2D | ||
@@ -173,3 +170,3 @@ | ||
| toBlob(type?: string, quality?: number): Promise<IBlob> | ||
| toDataURL(type?: string, quality?: number): string | ||
| toDataURL(type?: string, quality?: number): string | Promise<string> | ||
| saveAs(filename: string, quality?: number): Promise<boolean> | ||
@@ -176,0 +173,0 @@ |
@@ -212,2 +212,4 @@ import { ILeafer } from '../app/ILeafer' | ||
| destroyed: boolean | ||
| waitParent(item: IFunction): void | ||
@@ -214,0 +216,0 @@ waitLeafer(item: IFunction): void |
@@ -36,3 +36,3 @@ import { IObject } from '../data/IData' | ||
| load(onSuccess?: ILeaferImageOnLoaded, onError?: ILeaferImageOnError): number | ||
| unload(index: number): void | ||
| unload(index: number, stopEvent?: boolean): void | ||
| getCanvas(width: number, height: number, opacity?: number, _filters?: IObject): unknown | ||
@@ -39,0 +39,0 @@ destroy(): void |
@@ -23,3 +23,3 @@ import { IFunction } from '../function/IFunction' | ||
| createCanvas(width: number, height: number, format?: 'svg' | 'pdf'): any | ||
| canvasToDataURL(canvas: any, type?: IExportImageType, quality?: number): string | ||
| canvasToDataURL(canvas: any, type?: IExportImageType, quality?: number): string | Promise<string> | ||
| canvasToBolb(canvas: any, type?: IExportFileType, quality?: number): Promise<any> | ||
@@ -31,2 +31,3 @@ canvasSaveAs(canvas: any, filename: string, quality?: number): Promise<void> | ||
| miniapp?: IMiniapp | ||
| imageSuffix?: string // 需要带上后缀区分dom中image标签的缓存,否则会导致浏览器缓存跨域问题 | ||
| } | ||
@@ -33,0 +34,0 @@ |
70835
0.19%1802
-0.06%