@leafer/interface 1.6.2 → 1.6.4
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 +1 -1
- package/src/canvas/ILeaferCanvas.ts +7 -1
- package/src/display/ILeaf.ts +2 -2
- package/src/display/module/ILeafEventer.ts +2 -2
- package/src/event/IEvent.ts +4 -0
- package/src/event/IEventer.ts +11 -7
- package/src/event/IUIEvent.ts +2 -2
- package/src/image/IImageManager.ts +1 -1
- package/src/image/ILeaferImage.ts +1 -1
- package/src/index.ts +3 -3
- package/src/layout/ILeafLayout.ts +1 -1
- package/src/math/IMath.ts +4 -3
- package/types/index.d.ts +28 -18
package/package.json
CHANGED
package/src/app/ILeafer.ts
CHANGED
|
@@ -132,7 +132,7 @@ export interface ICreator {
|
|
|
132
132
|
|
|
133
133
|
interaction?(target: ILeaf, canvas: IInteractionCanvas, selector: ISelector, options?: IInteractionConfig): IInteraction
|
|
134
134
|
|
|
135
|
-
editor?(options?: IObject): ILeaf
|
|
135
|
+
editor?(options?: IObject, app?: IAppBase): ILeaf
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
export interface IUICreator {
|
|
@@ -138,11 +138,13 @@ interface ICanvasMethod {
|
|
|
138
138
|
fillWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void
|
|
139
139
|
strokeWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void
|
|
140
140
|
clipWorld(bounds: IBoundsData, ceilPixel?: boolean): void
|
|
141
|
-
|
|
141
|
+
clipUI(ruleData?: IWindingRuleData): void
|
|
142
142
|
|
|
143
|
+
clearWorld(bounds: IBoundsData, ceilPixel?: boolean): void
|
|
143
144
|
clear(): void
|
|
144
145
|
}
|
|
145
146
|
|
|
147
|
+
|
|
146
148
|
export type ILeaferCanvasView = any
|
|
147
149
|
export interface ILeaferCanvas extends ICanvasAttr, ICanvasMethod, IPathDrawer {
|
|
148
150
|
|
|
@@ -216,6 +218,10 @@ export interface IHitCanvas extends ILeaferCanvas {
|
|
|
216
218
|
}
|
|
217
219
|
|
|
218
220
|
|
|
221
|
+
export interface IWindingRuleData {
|
|
222
|
+
windingRule?: IWindingRule
|
|
223
|
+
}
|
|
224
|
+
|
|
219
225
|
export interface IBlobFunction {
|
|
220
226
|
(blob: IBlob | null): void
|
|
221
227
|
}
|
package/src/display/ILeaf.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ILeaferBase } from '../app/ILeafer'
|
|
2
|
-
import { IEventer,
|
|
2
|
+
import { IEventer, IEventParamsMap } from '../event/IEventer'
|
|
3
3
|
|
|
4
4
|
import { ILeaferCanvas, IHitCanvas } from '../canvas/ILeaferCanvas'
|
|
5
5
|
import { IRenderOptions } from '../renderer/IRenderer'
|
|
@@ -304,7 +304,7 @@ export interface ILeafAttrData {
|
|
|
304
304
|
|
|
305
305
|
normalStyle?: IObject
|
|
306
306
|
|
|
307
|
-
event?:
|
|
307
|
+
event?: IEventParamsMap
|
|
308
308
|
|
|
309
309
|
// 预留给用户使用的数据对象
|
|
310
310
|
data?: IObject
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ILeaf } from '../ILeaf'
|
|
2
|
-
import { IEventListener, IEventListenerId, IEventListenerOptions,
|
|
2
|
+
import { IEventListener, IEventListenerId, IEventListenerOptions, IEventParamsMap } from '../../event/IEventer'
|
|
3
3
|
import { } from '@leafer/interface'
|
|
4
4
|
import { IEvent } from '../../event/IEvent'
|
|
5
5
|
import { IObject } from '../../data/IData'
|
|
@@ -7,7 +7,7 @@ import { IObject } from '../../data/IData'
|
|
|
7
7
|
export type ILeafEventerModule = ILeafEventer & ThisType<ILeaf>
|
|
8
8
|
|
|
9
9
|
export interface ILeafEventer {
|
|
10
|
-
on?(type: string | string[] |
|
|
10
|
+
on?(type: string | string[] | IEventParamsMap, listener?: IEventListener, options?: IEventListenerOptions | boolean): void
|
|
11
11
|
off?(type?: string | string[], listener?: IEventListener, options?: IEventListenerOptions | boolean): void
|
|
12
12
|
on_?(type: string | string[], listener: IEventListener, bind?: IObject, options?: IEventListenerOptions | boolean): IEventListenerId
|
|
13
13
|
off_?(id: IEventListenerId | IEventListenerId[]): void
|
package/src/event/IEvent.ts
CHANGED
package/src/event/IEventer.ts
CHANGED
|
@@ -22,14 +22,16 @@ export interface IEventListenerMap {
|
|
|
22
22
|
[name: string]: IEventListenerItem[]
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export interface
|
|
25
|
+
export interface IEventParamsMap {
|
|
26
26
|
[name: string]: IEventListener | [IEventListener, IEventOption]
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
export type IEventParams = any[]
|
|
30
|
+
|
|
29
31
|
export interface IEventListenerId {
|
|
30
|
-
type: string | string[]
|
|
32
|
+
type: string | string[] | IEventParams[]
|
|
31
33
|
current: ILeaf
|
|
32
|
-
listener
|
|
34
|
+
listener?: IEventListener
|
|
33
35
|
options?: IEventOption
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -39,14 +41,16 @@ export interface IEventer extends ILeafEventer {
|
|
|
39
41
|
readonly innerId: InnerId
|
|
40
42
|
__captureMap?: IEventListenerMap
|
|
41
43
|
__bubbleMap?: IEventListenerMap
|
|
44
|
+
__hasLocalEvent?: boolean
|
|
45
|
+
__hasWorldEvent?: boolean
|
|
42
46
|
syncEventer?: IEventer
|
|
43
|
-
event?:
|
|
47
|
+
event?: IEventParamsMap
|
|
44
48
|
|
|
45
|
-
on(type: string | string[] |
|
|
49
|
+
on(type: string | string[] | IEventParams[] | IEventParamsMap, listener?: IEventListener, options?: IEventOption): void
|
|
46
50
|
off(type?: string | string[], listener?: IEventListener, options?: IEventOption): void
|
|
47
|
-
on_(type: string | string[], listener
|
|
51
|
+
on_(type: string | string[] | IEventParams[], listener?: IEventListener, bind?: IObject, options?: IEventOption): IEventListenerId
|
|
48
52
|
off_(id: IEventListenerId | IEventListenerId[]): void
|
|
49
|
-
once(type: string | string[], listener
|
|
53
|
+
once(type: string | string[] | IEventParams[], listener?: IEventListener, captureOrBind?: boolean | IObject, capture?: boolean): void
|
|
50
54
|
emit(type: string, event?: IEvent | IObject, capture?: boolean): void
|
|
51
55
|
emitEvent(event?: IEvent, capture?: boolean): void
|
|
52
56
|
hasEvent(type: string, capture?: boolean): boolean
|
package/src/event/IUIEvent.ts
CHANGED
|
@@ -71,11 +71,11 @@ export interface IDropEvent extends IPointerEvent {
|
|
|
71
71
|
data?: IObject
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
export interface IRotateEvent extends
|
|
74
|
+
export interface IRotateEvent extends IPointerEvent {
|
|
75
75
|
rotation: number
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export interface IZoomEvent extends
|
|
78
|
+
export interface IZoomEvent extends IPointerEvent {
|
|
79
79
|
scale: number
|
|
80
80
|
}
|
|
81
81
|
|
|
@@ -13,7 +13,7 @@ export interface IImageManager {
|
|
|
13
13
|
get(config: ILeaferImageConfig): ILeaferImage
|
|
14
14
|
recycle(image: ILeaferImage): void
|
|
15
15
|
clearRecycled(): void
|
|
16
|
-
|
|
16
|
+
hasAlphaPixel(config: ILeaferImageConfig): boolean // png / svg / webp
|
|
17
17
|
isFormat(format: IExportFileType, config: ILeaferImageConfig): boolean
|
|
18
18
|
|
|
19
19
|
destroy(): void
|
package/src/index.ts
CHANGED
|
@@ -33,7 +33,7 @@ export { IPlatform, IMiniapp, IMiniappSelect, IMiniappSizeView } from './platfor
|
|
|
33
33
|
export { IPlugin } from './plugin/IPlugin'
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
export { ILeaferCanvas, ILeaferCanvasView, IHitCanvas, ICanvasAttr, ICanvasStrokeOptions, ICanvasCacheOptions, ILeaferCanvasConfig, IHitCanvasConfig, IBlobFunction, IBlob } from './canvas/ILeaferCanvas'
|
|
36
|
+
export { ILeaferCanvas, ILeaferCanvasView, IHitCanvas, ICanvasAttr, ICanvasStrokeOptions, ICanvasCacheOptions, ILeaferCanvasConfig, IHitCanvasConfig, IWindingRuleData, IBlobFunction, IBlob } from './canvas/ILeaferCanvas'
|
|
37
37
|
export { ISkiaCanvas, ISkiaCanvasExportConfig, ICanvasType, ISkiaNAPICanvas } from './canvas/ISkiaCanvas'
|
|
38
38
|
export { IPathDrawer, IPathCreator } from './path/IPathDrawer'
|
|
39
39
|
export { IMotionPathData } from './path/IPathData'
|
|
@@ -45,8 +45,8 @@ export { IResource } from './file/IResource'
|
|
|
45
45
|
export { IExportFileType, IExportImageType } from './file/IFileType'
|
|
46
46
|
export { IExportOptions, IJSONOptions, IExportResult, IExportResultFunction, IExportOnCanvasFunction } from './file/IExport'
|
|
47
47
|
|
|
48
|
-
export { InnerId, IEventer,
|
|
49
|
-
export { IEventTarget, IEvent, ILeaferEvent, IPropertyEvent, ILayoutEvent, IRenderEvent, IAnimateEvent, IChildEvent, IResizeEvent, IResizeEventListener, IUpdateEvent, IWatchEvent, IMultiTouchData, IKeepTouchData } from './event/IEvent'
|
|
48
|
+
export { InnerId, IEventer, IEventParamsMap, IEventParams, IEventListener, IEventOption, IEventListenerOptions, IEventListenerMap, IEventListenerItem, IEventListenerId } from './event/IEventer'
|
|
49
|
+
export { IEventTarget, IEvent, ILeaferEvent, IPropertyEvent, ILayoutEvent, IRenderEvent, IAnimateEvent, IChildEvent, IBoundsEvent, IResizeEvent, IResizeEventListener, IUpdateEvent, IWatchEvent, IMultiTouchData, IKeepTouchData } from './event/IEvent'
|
|
50
50
|
export { IUIEvent, IPointerEvent, PointerType, IDragEvent, IDropEvent, ISwipeEvent, IMoveEvent, IZoomEvent, IRotateEvent, IWheelEvent, IKeyEvent, IImageEvent } from './event/IUIEvent'
|
|
51
51
|
export { IProgressData, IProgressFunction } from './event/IProgress'
|
|
52
52
|
|
package/src/math/IMath.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IFourNumber, IObject } from '../data/IData'
|
|
2
|
-
import { ISide } from '../display/ILeaf'
|
|
2
|
+
import { IAlign, ISide } from '../display/ILeaf'
|
|
3
3
|
|
|
4
4
|
export interface IPointData {
|
|
5
5
|
x: number
|
|
@@ -34,7 +34,7 @@ export interface IPoint extends IPointData {
|
|
|
34
34
|
get(): IPointData
|
|
35
35
|
clone(): IPoint
|
|
36
36
|
|
|
37
|
-
move(x: number, y
|
|
37
|
+
move(x: number | IPointData, y?: number): IPoint
|
|
38
38
|
scale(scaleX: number, scaleY?: number): IPoint
|
|
39
39
|
scaleOf(origin: IPointData, scaleX: number, scaleY?: number): IPoint
|
|
40
40
|
rotate(rotation: number, origin?: IPointData): IPoint
|
|
@@ -94,11 +94,12 @@ export interface IBounds extends IBoundsData, ITwoPointBoundsData {
|
|
|
94
94
|
clone(): IBounds
|
|
95
95
|
|
|
96
96
|
move(x: number, y: number): IBounds
|
|
97
|
-
scale(scaleX: number, scaleY?: number): IBounds
|
|
97
|
+
scale(scaleX: number, scaleY?: number, onlySize?: boolean): IBounds
|
|
98
98
|
scaleOf(origin: IPointData, scaleX: number, scaleY?: number): IBounds
|
|
99
99
|
toOuterOf(matrix: IMatrixData, to?: IBoundsData): IBounds
|
|
100
100
|
toInnerOf(matrix: IMatrixData, to?: IBoundsData): IBounds
|
|
101
101
|
getFitMatrix(put: IBoundsData, baseScale?: number): IMatrix
|
|
102
|
+
put(put: IBoundsData, align?: IAlign, putScale?: number | 'fit' | 'cover'): void
|
|
102
103
|
|
|
103
104
|
spread(fourNumber: IFourNumber, side?: ISide): IBounds
|
|
104
105
|
shrink(fourNumber: IFourNumber, side?: ISide): IBounds
|
package/types/index.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ interface IPoint extends IPointData {
|
|
|
26
26
|
set(x?: number | IPointData, y?: number): IPoint;
|
|
27
27
|
get(): IPointData;
|
|
28
28
|
clone(): IPoint;
|
|
29
|
-
move(x: number, y
|
|
29
|
+
move(x: number | IPointData, y?: number): IPoint;
|
|
30
30
|
scale(scaleX: number, scaleY?: number): IPoint;
|
|
31
31
|
scaleOf(origin: IPointData, scaleX: number, scaleY?: number): IPoint;
|
|
32
32
|
rotate(rotation: number, origin?: IPointData): IPoint;
|
|
@@ -72,11 +72,12 @@ interface IBounds extends IBoundsData, ITwoPointBoundsData {
|
|
|
72
72
|
get(): IBoundsData;
|
|
73
73
|
clone(): IBounds;
|
|
74
74
|
move(x: number, y: number): IBounds;
|
|
75
|
-
scale(scaleX: number, scaleY?: number): IBounds;
|
|
75
|
+
scale(scaleX: number, scaleY?: number, onlySize?: boolean): IBounds;
|
|
76
76
|
scaleOf(origin: IPointData, scaleX: number, scaleY?: number): IBounds;
|
|
77
77
|
toOuterOf(matrix: IMatrixData, to?: IBoundsData): IBounds;
|
|
78
78
|
toInnerOf(matrix: IMatrixData, to?: IBoundsData): IBounds;
|
|
79
79
|
getFitMatrix(put: IBoundsData, baseScale?: number): IMatrix;
|
|
80
|
+
put(put: IBoundsData, align?: IAlign, putScale?: number | 'fit' | 'cover'): void;
|
|
80
81
|
spread(fourNumber: IFourNumber, side?: ISide): IBounds;
|
|
81
82
|
shrink(fourNumber: IFourNumber, side?: ISide): IBounds;
|
|
82
83
|
ceil(): IBounds;
|
|
@@ -384,6 +385,8 @@ interface IChildEvent extends IEvent {
|
|
|
384
385
|
parent?: ILeaf;
|
|
385
386
|
child?: ILeaf;
|
|
386
387
|
}
|
|
388
|
+
interface IBoundsEvent extends IEvent {
|
|
389
|
+
}
|
|
387
390
|
interface IResizeEvent extends IEvent {
|
|
388
391
|
readonly width: number;
|
|
389
392
|
readonly height: number;
|
|
@@ -423,7 +426,7 @@ interface IKeepTouchData {
|
|
|
423
426
|
|
|
424
427
|
type ILeafEventerModule = ILeafEventer & ThisType<ILeaf>;
|
|
425
428
|
interface ILeafEventer {
|
|
426
|
-
on?(type: string | string[] |
|
|
429
|
+
on?(type: string | string[] | IEventParamsMap, listener?: IEventListener, options?: IEventListenerOptions | boolean): void;
|
|
427
430
|
off?(type?: string | string[], listener?: IEventListener, options?: IEventListenerOptions | boolean): void;
|
|
428
431
|
on_?(type: string | string[], listener: IEventListener, bind?: IObject, options?: IEventListenerOptions | boolean): IEventListenerId;
|
|
429
432
|
off_?(id: IEventListenerId | IEventListenerId[]): void;
|
|
@@ -446,13 +449,14 @@ interface IEventListenerItem extends IEventListenerOptions {
|
|
|
446
449
|
interface IEventListenerMap {
|
|
447
450
|
[name: string]: IEventListenerItem[];
|
|
448
451
|
}
|
|
449
|
-
interface
|
|
452
|
+
interface IEventParamsMap {
|
|
450
453
|
[name: string]: IEventListener | [IEventListener, IEventOption];
|
|
451
454
|
}
|
|
455
|
+
type IEventParams = any[];
|
|
452
456
|
interface IEventListenerId {
|
|
453
|
-
type: string | string[];
|
|
457
|
+
type: string | string[] | IEventParams[];
|
|
454
458
|
current: ILeaf;
|
|
455
|
-
listener
|
|
459
|
+
listener?: IEventListener;
|
|
456
460
|
options?: IEventOption;
|
|
457
461
|
}
|
|
458
462
|
type InnerId = number;
|
|
@@ -460,13 +464,15 @@ interface IEventer extends ILeafEventer {
|
|
|
460
464
|
readonly innerId: InnerId;
|
|
461
465
|
__captureMap?: IEventListenerMap;
|
|
462
466
|
__bubbleMap?: IEventListenerMap;
|
|
467
|
+
__hasLocalEvent?: boolean;
|
|
468
|
+
__hasWorldEvent?: boolean;
|
|
463
469
|
syncEventer?: IEventer;
|
|
464
|
-
event?:
|
|
465
|
-
on(type: string | string[] |
|
|
470
|
+
event?: IEventParamsMap;
|
|
471
|
+
on(type: string | string[] | IEventParams[] | IEventParamsMap, listener?: IEventListener, options?: IEventOption): void;
|
|
466
472
|
off(type?: string | string[], listener?: IEventListener, options?: IEventOption): void;
|
|
467
|
-
on_(type: string | string[], listener
|
|
473
|
+
on_(type: string | string[] | IEventParams[], listener?: IEventListener, bind?: IObject, options?: IEventOption): IEventListenerId;
|
|
468
474
|
off_(id: IEventListenerId | IEventListenerId[]): void;
|
|
469
|
-
once(type: string | string[], listener
|
|
475
|
+
once(type: string | string[] | IEventParams[], listener?: IEventListener, captureOrBind?: boolean | IObject, capture?: boolean): void;
|
|
470
476
|
emit(type: string, event?: IEvent | IObject, capture?: boolean): void;
|
|
471
477
|
emitEvent(event?: IEvent, capture?: boolean): void;
|
|
472
478
|
hasEvent(type: string, capture?: boolean): boolean;
|
|
@@ -871,7 +877,7 @@ interface ILeafLayout {
|
|
|
871
877
|
worldContentBounds: IBoundsData;
|
|
872
878
|
worldBoxBounds: IBoundsData;
|
|
873
879
|
worldStrokeBounds: IBoundsData;
|
|
874
|
-
resized:
|
|
880
|
+
resized: 'scale' | 'inner' | 'local';
|
|
875
881
|
waitAutoLayout: boolean;
|
|
876
882
|
matrixChanged: boolean;
|
|
877
883
|
scaleChanged: boolean;
|
|
@@ -1060,6 +1066,7 @@ interface ICanvasMethod {
|
|
|
1060
1066
|
fillWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void;
|
|
1061
1067
|
strokeWorld(bounds: IBoundsData, color: string | object, blendMode?: string): void;
|
|
1062
1068
|
clipWorld(bounds: IBoundsData, ceilPixel?: boolean): void;
|
|
1069
|
+
clipUI(ruleData?: IWindingRuleData): void;
|
|
1063
1070
|
clearWorld(bounds: IBoundsData, ceilPixel?: boolean): void;
|
|
1064
1071
|
clear(): void;
|
|
1065
1072
|
}
|
|
@@ -1110,6 +1117,9 @@ interface ILeaferCanvas extends ICanvasAttr, ICanvasMethod, IPathDrawer {
|
|
|
1110
1117
|
interface IHitCanvas extends ILeaferCanvas {
|
|
1111
1118
|
hitScale?: number;
|
|
1112
1119
|
}
|
|
1120
|
+
interface IWindingRuleData {
|
|
1121
|
+
windingRule?: IWindingRule;
|
|
1122
|
+
}
|
|
1113
1123
|
interface IBlobFunction {
|
|
1114
1124
|
(blob: IBlob | null): void;
|
|
1115
1125
|
}
|
|
@@ -1481,7 +1491,7 @@ interface ILeafAttrData {
|
|
|
1481
1491
|
motion?: INumber | IUnitData;
|
|
1482
1492
|
motionRotation?: INumber | IBoolean;
|
|
1483
1493
|
normalStyle?: IObject;
|
|
1484
|
-
event?:
|
|
1494
|
+
event?: IEventParamsMap;
|
|
1485
1495
|
data?: IObject;
|
|
1486
1496
|
}
|
|
1487
1497
|
interface ILeafInputData extends ILeafAttrData {
|
|
@@ -1795,7 +1805,7 @@ interface ILeaferImage {
|
|
|
1795
1805
|
width: number;
|
|
1796
1806
|
height: number;
|
|
1797
1807
|
isSVG: boolean;
|
|
1798
|
-
|
|
1808
|
+
hasAlphaPixel: boolean;
|
|
1799
1809
|
readonly completed: boolean;
|
|
1800
1810
|
ready: boolean;
|
|
1801
1811
|
error: IObject;
|
|
@@ -1864,10 +1874,10 @@ interface IDropEvent extends IPointerEvent {
|
|
|
1864
1874
|
list: ILeafList;
|
|
1865
1875
|
data?: IObject;
|
|
1866
1876
|
}
|
|
1867
|
-
interface IRotateEvent extends
|
|
1877
|
+
interface IRotateEvent extends IPointerEvent {
|
|
1868
1878
|
rotation: number;
|
|
1869
1879
|
}
|
|
1870
|
-
interface IZoomEvent extends
|
|
1880
|
+
interface IZoomEvent extends IPointerEvent {
|
|
1871
1881
|
scale: number;
|
|
1872
1882
|
}
|
|
1873
1883
|
interface IMoveEvent extends IDragEvent {
|
|
@@ -2109,7 +2119,7 @@ interface ICreator {
|
|
|
2109
2119
|
selector?(target?: ILeaf, options?: ISelectorConfig): ISelector;
|
|
2110
2120
|
finder?(target?: ILeaf): IFinder;
|
|
2111
2121
|
interaction?(target: ILeaf, canvas: IInteractionCanvas, selector: ISelector, options?: IInteractionConfig): IInteraction;
|
|
2112
|
-
editor?(options?: IObject): ILeaf;
|
|
2122
|
+
editor?(options?: IObject, app?: IAppBase): ILeaf;
|
|
2113
2123
|
}
|
|
2114
2124
|
interface IUICreator {
|
|
2115
2125
|
register(UI: IObject): void;
|
|
@@ -2174,7 +2184,7 @@ interface IImageManager {
|
|
|
2174
2184
|
get(config: ILeaferImageConfig): ILeaferImage;
|
|
2175
2185
|
recycle(image: ILeaferImage): void;
|
|
2176
2186
|
clearRecycled(): void;
|
|
2177
|
-
|
|
2187
|
+
hasAlphaPixel(config: ILeaferImageConfig): boolean;
|
|
2178
2188
|
isFormat(format: IExportFileType, config: ILeaferImageConfig): boolean;
|
|
2179
2189
|
destroy(): void;
|
|
2180
2190
|
}
|
|
@@ -2312,4 +2322,4 @@ interface ITransformer {
|
|
|
2312
2322
|
destroy(): void;
|
|
2313
2323
|
}
|
|
2314
2324
|
|
|
2315
|
-
export type { ACommandData, ArcCommandData, ArcToCommandData, BezierCurveToCommandObject, CCommandData, CanvasPathCommand, EllipseCommandData, HCommandData, IAlign, IAnimateEasing, IAnimateEasingFunction, IAnimateEasingName, IAnimateEnding, IAnimateEvent, IAnimateEventFunction, IAnimateEvents, IAnimateOptions, IAnswer, IAppBase, IAround, IAttrDecorator, IAutoBounds, IAutoBoundsData, IAutoBoxData, IAutoSize, IAxis, IAxisAlign, IAxisReverse, IBaseLineAlign, IBlendMode, IBlob, IBlobFunction, IBoolean, IBooleanMap, IBounds, IBoundsData, IBoundsDataFn, IBoundsType, IBranch, IBranchRender, IBranchRenderModule, ICachedLeaf, ICanvasAttr, ICanvasCacheOptions, ICanvasContext2D, ICanvasContext2DSettings, ICanvasManager, ICanvasPattern, ICanvasStrokeOptions, ICanvasType, IChildEvent, IClientPointData, IConstraint, IConstraintType, IControl, ICreator, ICubicBezierEasing, ICursorConfig, ICursorRotate, ICursorRotateMap, ICursorType, ICursorTypeMap, ICustomEasingFunction, IDataProcessor, IDataTypeHandle, IDirection, IDirection4, IDragEvent, IDropEvent, IEditSize, IEraserType, IEvent, IEventListener, IEventListenerId, IEventListenerItem, IEventListenerMap, IEventListenerOptions,
|
|
2325
|
+
export type { ACommandData, ArcCommandData, ArcToCommandData, BezierCurveToCommandObject, CCommandData, CanvasPathCommand, EllipseCommandData, HCommandData, IAlign, IAnimateEasing, IAnimateEasingFunction, IAnimateEasingName, IAnimateEnding, IAnimateEvent, IAnimateEventFunction, IAnimateEvents, IAnimateOptions, IAnswer, IAppBase, IAround, IAttrDecorator, IAutoBounds, IAutoBoundsData, IAutoBoxData, IAutoSize, IAxis, IAxisAlign, IAxisReverse, IBaseLineAlign, IBlendMode, IBlob, IBlobFunction, IBoolean, IBooleanMap, IBounds, IBoundsData, IBoundsDataFn, IBoundsEvent, IBoundsType, IBranch, IBranchRender, IBranchRenderModule, ICachedLeaf, ICanvasAttr, ICanvasCacheOptions, ICanvasContext2D, ICanvasContext2DSettings, ICanvasManager, ICanvasPattern, ICanvasStrokeOptions, ICanvasType, IChildEvent, IClientPointData, IConstraint, IConstraintType, IControl, ICreator, ICubicBezierEasing, ICursorConfig, ICursorRotate, ICursorRotateMap, ICursorType, ICursorTypeMap, ICustomEasingFunction, IDataProcessor, IDataTypeHandle, IDirection, IDirection4, IDragEvent, IDropEvent, IEditSize, IEraserType, IEvent, IEventListener, IEventListenerId, IEventListenerItem, IEventListenerMap, IEventListenerOptions, IEventOption, IEventParams, IEventParamsMap, IEventTarget, IEventer, IExportFileType, IExportImageType, IExportOnCanvasFunction, IExportOptions, IExportResult, IExportResultFunction, IFilter, IFindCondition, IFindMethod, IFinder, IFlowAlign, IFlowAxisAlign, IFlowBoxType, IFlowType, IFlowWrap, IFourNumber, IFromToData, IFunction, IFunctionMap, IGap, IHitCanvas, IHitCanvasConfig, IHitCanvasManager, IHitType, IImageCursor, IImageEvent, IImageManager, IInteraction, IInteractionCanvas, IInteractionConfig, IJSONOptions, IKeepTouchData, IKeyEvent, ILayoutAttr, ILayoutBlockData, ILayoutBoundsData, ILayoutChangedData, ILayoutData, ILayoutEvent, ILayouter, ILayouterConfig, ILeaf, ILeafArrayMap, ILeafAttrData, ILeafAttrDescriptor, ILeafAttrDescriptorFn, ILeafBounds, ILeafBoundsModule, ILeafComputedData, ILeafData, ILeafDataOptions, ILeafDataProxy, ILeafDataProxyModule, ILeafEventer, ILeafEventerModule, ILeafHit, ILeafHitModule, ILeafInputData, ILeafLayout, ILeafLevelList, ILeafList, ILeafListItemCallback, ILeafMap, ILeafMatrix, ILeafMatrixModule, ILeafRender, ILeafRenderModule, ILeaferAttrData, ILeaferBase, ILeaferCanvas, ILeaferCanvasConfig, ILeaferCanvasView, ILeaferConfig, ILeaferEvent, ILeaferImage, ILeaferImageCacheCanvas, ILeaferImageConfig, ILeaferImageOnError, ILeaferImageOnLoaded, ILeaferImagePatternPaint, ILeaferType, ILeaferTypeCreator, ILeaferTypeFunction, ILeaferTypeList, ILocationType, IMaskType, IMatrix, IMatrixData, IMatrixWithBoundsData, IMatrixWithBoundsScaleData, IMatrixWithLayoutData, IMatrixWithOptionHalfData, IMatrixWithOptionScaleData, IMatrixWithScaleData, IMiniapp, IMiniappSelect, IMiniappSizeView, IMotionPathData, IMoveConfig, IMoveEvent, IMultiTouchConfig, IMultiTouchData, INumber, INumberFunction, INumberMap, IObject, IObjectFunction, IOffsetBoundsData, IOptionSizeData, IPartLayoutConfig, IPath2D, IPathCommandData, IPathCommandObject, IPathCreator, IPathDrawer, IPathString, IPercentData, IPickBottom, IPickOptions, IPickResult, IPicker, IPlatform, IPlugin, IPoint, IPointData, IPointDataFunction, IPointDataMap, IPointGap, IPointerConfig, IPointerEvent, IProgressData, IProgressFunction, IPropertyEvent, IRadiusPointData, IRangeSize, IRenderEvent, IRenderOptions, IRenderer, IRendererConfig, IResizeEvent, IResizeEventListener, IResource, IRotateEvent, IRotationPointData, IScaleData, IScaleRotationData, IScreenSizeData, IScrollPointData, ISelector, ISelectorConfig, ISelectorProxy, ISide, ISize, ISizeData, ISkewData, ISkiaCanvas, ISkiaCanvasExportConfig, ISkiaNAPICanvas, IStateStyleType, IStepsEasing, IString, IStringFunction, IStringMap, ISwipeEvent, ITaskItem, ITaskOptions, ITaskProcessor, ITaskProcessorConfig, ITextMetrics, ITimer, ITouchConfig, ITransformer, ITransition, ITwoPointBoundsData, IUICreator, IUIEvent, IUnitData, IUnitPointData, IUpdateEvent, IValue, IValueFunction, IWatchEvent, IWatchEventData, IWatcher, IWatcherConfig, IWheelConfig, IWheelEvent, IWindingRule, IWindingRuleData, IZoomConfig, IZoomEvent, IZoomType, IZoomView, InnerId, LCommandData, LineToCommandObject, MCommandData, MoveToCommandObject, PointerType, QCommandData, QuadraticCurveToCommandObject, RectCommandData, RoundRectCommandData, SCommandData, TCommandData, VCommandData, ZCommandData };
|