@leafer/interface 1.3.1 → 1.3.2
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.
- package/package.json +1 -1
- package/src/app/ILeafer.ts +3 -0
- package/src/platform/IPlatform.ts +3 -0
- package/types/index.d.ts +6 -0
package/package.json
CHANGED
package/src/app/ILeafer.ts
CHANGED
|
@@ -23,6 +23,9 @@ export interface ILeaferConfig extends IRendererConfig, ILeaferCanvasConfig, IIn
|
|
|
23
23
|
type?: ILeaferType
|
|
24
24
|
mobile?: boolean
|
|
25
25
|
realCanvas?: boolean
|
|
26
|
+
grow?: boolean | 'box' | 'render'
|
|
27
|
+
growWidth?: boolean
|
|
28
|
+
growHeight?: boolean
|
|
26
29
|
lazySpeard?: IFourNumber
|
|
27
30
|
}
|
|
28
31
|
|
|
@@ -39,6 +39,9 @@ export interface IPlatform {
|
|
|
39
39
|
download(url: string, filename: string): Promise<void>
|
|
40
40
|
loadImage(url: string): Promise<any>
|
|
41
41
|
noRepeat?: string // fix: 微信小程序 createPattern 直接使用 no-repeat 有bug,导致无法显示
|
|
42
|
+
Image?: any
|
|
43
|
+
PointerEvent?: any
|
|
44
|
+
DragEvent?: any
|
|
42
45
|
},
|
|
43
46
|
|
|
44
47
|
roundRectPatch?: boolean // fix: skia-canvas roundRect
|
package/types/index.d.ts
CHANGED
|
@@ -1941,6 +1941,9 @@ interface ILeaferConfig extends IRendererConfig, ILeaferCanvasConfig, IInteracti
|
|
|
1941
1941
|
type?: ILeaferType;
|
|
1942
1942
|
mobile?: boolean;
|
|
1943
1943
|
realCanvas?: boolean;
|
|
1944
|
+
grow?: boolean | 'box' | 'render';
|
|
1945
|
+
growWidth?: boolean;
|
|
1946
|
+
growHeight?: boolean;
|
|
1944
1947
|
lazySpeard?: IFourNumber;
|
|
1945
1948
|
}
|
|
1946
1949
|
interface ILeaferAttrData {
|
|
@@ -2148,6 +2151,9 @@ interface IPlatform {
|
|
|
2148
2151
|
download(url: string, filename: string): Promise<void>;
|
|
2149
2152
|
loadImage(url: string): Promise<any>;
|
|
2150
2153
|
noRepeat?: string;
|
|
2154
|
+
Image?: any;
|
|
2155
|
+
PointerEvent?: any;
|
|
2156
|
+
DragEvent?: any;
|
|
2151
2157
|
};
|
|
2152
2158
|
roundRectPatch?: boolean;
|
|
2153
2159
|
ellipseToCurve?: boolean;
|