@leafer/interface 1.6.1 → 1.6.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/interface",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "@leafer/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -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 {
@@ -1,5 +1,5 @@
1
1
  import { ILeaferBase } from '../app/ILeafer'
2
- import { IEventer, IEventMap } from '../event/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?: IEventMap
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, IEventMap } from '../../event/IEventer'
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[] | IEventMap, listener?: IEventListener, options?: IEventListenerOptions | boolean): void
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
@@ -44,6 +44,10 @@ export interface IChildEvent extends IEvent {
44
44
  child?: ILeaf
45
45
  }
46
46
 
47
+ export interface IBoundsEvent extends IEvent {
48
+
49
+ }
50
+
47
51
  export interface IResizeEvent extends IEvent {
48
52
  readonly width: number
49
53
  readonly height: number
@@ -22,14 +22,16 @@ export interface IEventListenerMap {
22
22
  [name: string]: IEventListenerItem[]
23
23
  }
24
24
 
25
- export interface IEventMap {
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: IEventListener
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?: IEventMap
47
+ event?: IEventParamsMap
44
48
 
45
- on(type: string | string[] | IEventMap, listener?: IEventListener, options?: IEventOption): void
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: IEventListener, bind?: IObject, options?: IEventOption): IEventListenerId
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: IEventListener): void
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
@@ -0,0 +1,9 @@
1
+ export interface IProgressData {
2
+ value: number // 保留2位小数的 loaded / total 百分比值,如26.02
3
+ loaded: number // 字节数
4
+ total: number // 字节数
5
+ }
6
+
7
+ export interface IProgressFunction {
8
+ (progress: IProgressData): void
9
+ }
@@ -71,11 +71,11 @@ export interface IDropEvent extends IPointerEvent {
71
71
  data?: IObject
72
72
  }
73
73
 
74
- export interface IRotateEvent extends IUIEvent {
74
+ export interface IRotateEvent extends IPointerEvent {
75
75
  rotation: number
76
76
  }
77
77
 
78
- export interface IZoomEvent extends IUIEvent {
78
+ export interface IZoomEvent extends IPointerEvent {
79
79
  scale: number
80
80
  }
81
81
 
@@ -13,6 +13,7 @@ export interface IExportOptions {
13
13
  padding?: IFourNumber
14
14
  smooth?: boolean
15
15
  pixelRatio?: number
16
+ clip?: IBoundsData
16
17
  slice?: boolean
17
18
  trim?: boolean
18
19
  fill?: string
@@ -13,7 +13,7 @@ export interface IImageManager {
13
13
  get(config: ILeaferImageConfig): ILeaferImage
14
14
  recycle(image: ILeaferImage): void
15
15
  clearRecycled(): void
16
- hasOpacityPixel(config: ILeaferImageConfig): boolean // png / svg / webp
16
+ hasAlphaPixel(config: ILeaferImageConfig): boolean // png / svg / webp
17
17
  isFormat(format: IExportFileType, config: ILeaferImageConfig): boolean
18
18
 
19
19
  destroy(): void
@@ -4,11 +4,13 @@ import { InnerId } from '../event/IEventer'
4
4
  import { IExportFileType } from '../file/IFileType'
5
5
  import { IMatrixData } from '../math/IMath'
6
6
  import { ILeaferCanvas } from '../canvas/ILeaferCanvas'
7
+ import { IProgressData } from '../event/IProgress'
7
8
 
8
9
  export interface ILeaferImageConfig {
9
10
  url: string
10
11
  thumb?: string
11
12
  format?: IExportFileType
13
+ showProgress?: boolean // 是否显示进度
12
14
  view?: IObject | ILeaferImage | ILeaferCanvas
13
15
  }
14
16
 
@@ -38,12 +40,14 @@ export interface ILeaferImage {
38
40
  height: number
39
41
 
40
42
  isSVG: boolean
41
- hasOpacityPixel: boolean
43
+ hasAlphaPixel: boolean
42
44
 
43
45
  readonly completed: boolean
44
46
  ready: boolean
45
47
  error: IObject
46
48
  loading: boolean
49
+ isPlacehold?: boolean // 是否显示占位符,一般在加载100ms后自动判断
50
+ progress: IProgressData // 加载进度
47
51
 
48
52
  use: number
49
53
  config: ILeaferImageConfig
package/src/index.ts CHANGED
@@ -45,9 +45,11 @@ 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, IEventMap, IEventListener, IEventOption, IEventListenerOptions, IEventListenerMap, IEventListenerItem, IEventListenerId } from './event/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
+ export { IProgressData, IProgressFunction } from './event/IProgress'
52
+
51
53
  export { ICursorTypeMap, ICursorRotate, ICursorRotateMap } from './interaction/ICursor'
52
54
  export { IInteraction, IInteractionCanvas, IInteractionConfig, IMoveConfig, ICursorConfig, IZoomConfig, IWheelConfig, ITouchConfig, IMultiTouchConfig, IPointerConfig } from './interaction/IInteraction'
53
55
  export { ITransformer } from './interaction/ITransformer'
@@ -32,7 +32,7 @@ export interface ILeafLayout {
32
32
  // worldRenderBounds: IBoundsData // use leaf.__world
33
33
 
34
34
  // state
35
- resized: boolean
35
+ resized: 'scale' | 'inner' | 'local' // (scale | inner) > local
36
36
  waitAutoLayout: boolean
37
37
 
38
38
  // matrix changed
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: number): IPoint
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
@@ -6,6 +6,8 @@ import { IBoundsData, ISizeData } from '../math/IMath'
6
6
  import { IObject } from '../data/IData'
7
7
  import { ICanvasType } from '../canvas/ISkiaCanvas'
8
8
  import { ISelector } from '../selector/ISelector'
9
+ import { IProgressFunction } from '../event/IProgress'
10
+
9
11
 
10
12
  export interface IPlatform {
11
13
  name?: 'web' | 'node' | 'miniapp'
@@ -37,7 +39,8 @@ export interface IPlatform {
37
39
  canvasToBolb(canvas: any, type?: IExportFileType, quality?: number): Promise<any>
38
40
  canvasSaveAs(canvas: any, filename: string, quality?: number): Promise<void>
39
41
  download(url: string, filename: string): Promise<void>
40
- loadImage(url: string): Promise<any>
42
+ loadImage(url: string, progressFn?: IProgressFunction): Promise<any>
43
+ loadImageWithProgress?(url: string, progressFn?: IProgressFunction): Promise<any>
41
44
  noRepeat?: string // fix: 微信小程序 createPattern 直接使用 no-repeat 有bug,导致无法显示
42
45
  Image?: any
43
46
  PointerEvent?: any
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: number): IPoint;
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[] | IEventMap, listener?: IEventListener, options?: IEventListenerOptions | boolean): void;
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 IEventMap {
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: IEventListener;
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?: IEventMap;
465
- on(type: string | string[] | IEventMap, listener?: IEventListener, options?: IEventOption): void;
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: IEventListener, bind?: IObject, options?: IEventOption): IEventListenerId;
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: IEventListener): void;
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: boolean;
880
+ resized: 'scale' | 'inner' | 'local';
875
881
  waitAutoLayout: boolean;
876
882
  matrixChanged: boolean;
877
883
  scaleChanged: boolean;
@@ -936,6 +942,7 @@ interface IExportOptions {
936
942
  padding?: IFourNumber;
937
943
  smooth?: boolean;
938
944
  pixelRatio?: number;
945
+ clip?: IBoundsData;
939
946
  slice?: boolean;
940
947
  trim?: boolean;
941
948
  fill?: string;
@@ -1480,7 +1487,7 @@ interface ILeafAttrData {
1480
1487
  motion?: INumber | IUnitData;
1481
1488
  motionRotation?: INumber | IBoolean;
1482
1489
  normalStyle?: IObject;
1483
- event?: IEventMap;
1490
+ event?: IEventParamsMap;
1484
1491
  data?: IObject;
1485
1492
  }
1486
1493
  interface ILeafInputData extends ILeafAttrData {
@@ -1758,10 +1765,20 @@ interface ILeafAttrDescriptorFn {
1758
1765
  (key: string): ILeafAttrDescriptor;
1759
1766
  }
1760
1767
 
1768
+ interface IProgressData {
1769
+ value: number;
1770
+ loaded: number;
1771
+ total: number;
1772
+ }
1773
+ interface IProgressFunction {
1774
+ (progress: IProgressData): void;
1775
+ }
1776
+
1761
1777
  interface ILeaferImageConfig {
1762
1778
  url: string;
1763
1779
  thumb?: string;
1764
1780
  format?: IExportFileType;
1781
+ showProgress?: boolean;
1765
1782
  view?: IObject | ILeaferImage | ILeaferCanvas;
1766
1783
  }
1767
1784
  interface ILeaferImageOnLoaded {
@@ -1784,11 +1801,13 @@ interface ILeaferImage {
1784
1801
  width: number;
1785
1802
  height: number;
1786
1803
  isSVG: boolean;
1787
- hasOpacityPixel: boolean;
1804
+ hasAlphaPixel: boolean;
1788
1805
  readonly completed: boolean;
1789
1806
  ready: boolean;
1790
1807
  error: IObject;
1791
1808
  loading: boolean;
1809
+ isPlacehold?: boolean;
1810
+ progress: IProgressData;
1792
1811
  use: number;
1793
1812
  config: ILeaferImageConfig;
1794
1813
  load(onSuccess?: ILeaferImageOnLoaded, onError?: ILeaferImageOnError): number;
@@ -1851,10 +1870,10 @@ interface IDropEvent extends IPointerEvent {
1851
1870
  list: ILeafList;
1852
1871
  data?: IObject;
1853
1872
  }
1854
- interface IRotateEvent extends IUIEvent {
1873
+ interface IRotateEvent extends IPointerEvent {
1855
1874
  rotation: number;
1856
1875
  }
1857
- interface IZoomEvent extends IUIEvent {
1876
+ interface IZoomEvent extends IPointerEvent {
1858
1877
  scale: number;
1859
1878
  }
1860
1879
  interface IMoveEvent extends IDragEvent {
@@ -2096,7 +2115,7 @@ interface ICreator {
2096
2115
  selector?(target?: ILeaf, options?: ISelectorConfig): ISelector;
2097
2116
  finder?(target?: ILeaf): IFinder;
2098
2117
  interaction?(target: ILeaf, canvas: IInteractionCanvas, selector: ISelector, options?: IInteractionConfig): IInteraction;
2099
- editor?(options?: IObject): ILeaf;
2118
+ editor?(options?: IObject, app?: IAppBase): ILeaf;
2100
2119
  }
2101
2120
  interface IUICreator {
2102
2121
  register(UI: IObject): void;
@@ -2161,7 +2180,7 @@ interface IImageManager {
2161
2180
  get(config: ILeaferImageConfig): ILeaferImage;
2162
2181
  recycle(image: ILeaferImage): void;
2163
2182
  clearRecycled(): void;
2164
- hasOpacityPixel(config: ILeaferImageConfig): boolean;
2183
+ hasAlphaPixel(config: ILeaferImageConfig): boolean;
2165
2184
  isFormat(format: IExportFileType, config: ILeaferImageConfig): boolean;
2166
2185
  destroy(): void;
2167
2186
  }
@@ -2219,7 +2238,8 @@ interface IPlatform {
2219
2238
  canvasToBolb(canvas: any, type?: IExportFileType, quality?: number): Promise<any>;
2220
2239
  canvasSaveAs(canvas: any, filename: string, quality?: number): Promise<void>;
2221
2240
  download(url: string, filename: string): Promise<void>;
2222
- loadImage(url: string): Promise<any>;
2241
+ loadImage(url: string, progressFn?: IProgressFunction): Promise<any>;
2242
+ loadImageWithProgress?(url: string, progressFn?: IProgressFunction): Promise<any>;
2223
2243
  noRepeat?: string;
2224
2244
  Image?: any;
2225
2245
  PointerEvent?: any;
@@ -2298,4 +2318,4 @@ interface ITransformer {
2298
2318
  destroy(): void;
2299
2319
  }
2300
2320
 
2301
- 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, IEventMap, IEventOption, 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, 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, IZoomConfig, IZoomEvent, IZoomType, IZoomView, InnerId, LCommandData, LineToCommandObject, MCommandData, MoveToCommandObject, PointerType, QCommandData, QuadraticCurveToCommandObject, RectCommandData, RoundRectCommandData, SCommandData, TCommandData, VCommandData, ZCommandData };
2321
+ 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, IZoomConfig, IZoomEvent, IZoomType, IZoomView, InnerId, LCommandData, LineToCommandObject, MCommandData, MoveToCommandObject, PointerType, QCommandData, QuadraticCurveToCommandObject, RectCommandData, RoundRectCommandData, SCommandData, TCommandData, VCommandData, ZCommandData };