@leafer/interface
Advanced tools
+1
-1
| { | ||
| "name": "@leafer/interface", | ||
| "version": "1.0.0-beta.2", | ||
| "version": "1.0.0-beta.4", | ||
| "description": "@leafer/interface", | ||
@@ -5,0 +5,0 @@ "author": "Chao (Leafer) Wan", |
@@ -15,2 +15,14 @@ import { IFunction } from '../function/IFunction' | ||
| layout(target: ILeaf): void | ||
| origin?: { | ||
| createCanvas: ICreateCanvasFunction, | ||
| loadImage: ILoadImageFunction | ||
| } | ||
| } | ||
| interface ICreateCanvasFunction { | ||
| (width: number, height: number, format?: 'svg' | 'pdf'): any | ||
| } | ||
| interface ILoadImageFunction { | ||
| (url: string): Promise<any> | ||
| } |
64068
0.43%1636
0.62%