@leafer/interface 1.0.10 → 1.1.1

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.0.10",
3
+ "version": "1.1.1",
4
4
  "description": "@leafer/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@ import { IControl } from '../control/IControl'
17
17
  import { IFunction } from '../function/IFunction'
18
18
 
19
19
 
20
- export type ILeaferType = 'draw' | 'block' | 'editor' | 'design' | 'board' | 'document' | 'app' | 'website' | 'game' | 'player' | 'chart' | 'custom'
20
+ export type ILeaferType = 'draw' | 'block' | 'viewport' | 'editor' | 'design' | 'board' | 'document' | 'app' | 'website' | 'game' | 'player' | 'chart' | 'custom'
21
21
  export interface ILeaferConfig extends IRendererConfig, ILeaferCanvasConfig, IInteractionConfig, ILayouterConfig {
22
22
  start?: boolean
23
23
  type?: ILeaferType
@@ -55,6 +55,7 @@ export interface ILeaferAttrData {
55
55
  lazyBounds: IBounds
56
56
 
57
57
  config: ILeaferConfig
58
+ userConfig?: ILeaferConfig
58
59
 
59
60
  readonly cursorPoint: IPointData
60
61
  readonly clientBounds: IBoundsData
@@ -71,6 +72,8 @@ export interface ILeaferAttrData {
71
72
  unlockLayout(): void
72
73
  lockLayout(): void
73
74
 
75
+ requestRender(change: boolean): void
76
+
74
77
  updateCursor(cursor?: ICursorType): void
75
78
  resize(size: IScreenSizeData): void
76
79
 
@@ -94,6 +97,7 @@ export type IZoomType = 'in' | 'out' | 'fit' | 'fit-width' | 'fit-height' | numb
94
97
  export interface ILeaferBase extends IZoomView, IControl, ILeaferAttrData {
95
98
  readonly isApp: boolean
96
99
  readonly app: ILeaferBase
100
+ parentApp?: IAppBase
97
101
  parent?: IAppBase
98
102
  }
99
103
 
@@ -287,6 +287,8 @@ export interface ILeafAttrData {
287
287
  cursor?: ICursorType | ICursorType[]
288
288
 
289
289
  motionPath?: IBoolean
290
+ motionPrecision?: INumber
291
+
290
292
  motion?: INumber | IUnitData
291
293
  motionRotation?: INumber | IBoolean
292
294
 
@@ -385,6 +387,8 @@ export interface ILeafComputedData {
385
387
  cursor?: ICursorType | ICursorType[]
386
388
 
387
389
  motionPath?: boolean
390
+ motionPrecision?: number
391
+
388
392
  motion?: number | IUnitData
389
393
  motionRotation?: number | boolean
390
394
 
@@ -415,6 +419,7 @@ export interface ILeafComputedData {
415
419
  __pathInputed?: number // 是否为输入path, 0:否,1:是,2:永远是(不自动检测)
416
420
  __pathForRender?: IPathCommandData
417
421
  __path2DForRender?: IPath2D
422
+ __pathForArrow?: IPathCommandData
418
423
  __pathForMotion?: IMotionPathData
419
424
  }
420
425
 
@@ -510,7 +515,7 @@ export interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix,
510
515
 
511
516
  __bindLeafer(leafer: ILeaferBase | null): void
512
517
 
513
- set(data: IObject, isTemp?: boolean): void
518
+ set(data: IObject, transition?: any): void
514
519
  get(name?: string | string[] | IObject): ILeafInputData | IValue
515
520
  setAttr(name: string, value: any): void
516
521
  getAttr(name: string): any
@@ -521,6 +526,9 @@ export interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix,
521
526
  toSVG(): string
522
527
  __SVG(data: IObject): void
523
528
  toHTML(): string
529
+ clone?(data?: ILeafInputData): ILeaf
530
+
531
+ animate?(_keyframe?: any, _options?: any, _type?: any, _isTemp?: boolean): any
524
532
 
525
533
  // ILeafData ->
526
534
  __setAttr(attrName: string, newValue: IValue, checkFiniteNumber?: boolean): boolean
@@ -605,15 +613,15 @@ export interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix,
605
613
  // transform
606
614
  setTransform(transform?: IMatrixData, resize?: boolean): void
607
615
  transform(transform?: IMatrixData, resize?: boolean): void
608
- move(x: number | IPointData, y?: number): void
616
+ move(x: number | IPointData, y?: number, transition?: any): void
609
617
 
610
- moveInner(x: number | IPointData, y?: number): void
618
+ moveInner(x: number | IPointData, y?: number, transition?: any): void
611
619
  scaleOf(origin: IPointData | IAlign, scaleX: number, scaleY?: number, resize?: boolean): void
612
620
  rotateOf(origin: IPointData | IAlign, rotation: number): void
613
621
  skewOf(origin: IPointData | IAlign, skewX: number, skewY?: number, resize?: boolean): void
614
622
 
615
623
  transformWorld(worldTransform?: IMatrixData, resize?: boolean): void
616
- moveWorld(x: number | IPointData, y?: number): void
624
+ moveWorld(x: number | IPointData, y?: number, transition?: any): void
617
625
  scaleOfWorld(worldOrigin: IPointData, scaleX: number, scaleY?: number, resize?: boolean): void
618
626
  rotateOfWorld(worldOrigin: IPointData, rotation: number): void
619
627
  skewOfWorld(worldOrigin: IPointData, skewX: number, skewY?: number, resize?: boolean): void
@@ -81,7 +81,7 @@ export interface IWatchEvent extends IEvent {
81
81
  export interface IMultiTouchData {
82
82
  move: IPointData,
83
83
  scale: number,
84
- angle: number,
84
+ rotation: number,
85
85
  center: IPointData
86
86
  }
87
87
 
@@ -83,6 +83,11 @@ export interface IMoveEvent extends IDragEvent {
83
83
  moveType?: 'drag' | 'move'
84
84
  }
85
85
 
86
+ export interface IWheelEvent extends IUIEvent {
87
+ deltaX: number
88
+ deltaY: number
89
+ }
90
+
86
91
  export interface ISwipeEvent extends IDragEvent {
87
92
 
88
93
  }
package/src/index.ts CHANGED
@@ -46,10 +46,10 @@ export { IExportOptions, IJSONOptions, IExportResult, IExportResultFunction, IEx
46
46
 
47
47
  export { InnerId, IEventer, IEventMap, IEventListener, IEventOption, IEventListenerOptions, IEventListenerMap, IEventListenerItem, IEventListenerId } from './event/IEventer'
48
48
  export { IEventTarget, IEvent, ILeaferEvent, IPropertyEvent, ILayoutEvent, IRenderEvent, IAnimateEvent, IChildEvent, IResizeEvent, IResizeEventListener, IUpdateEvent, IWatchEvent, IMultiTouchData, IKeepTouchData } from './event/IEvent'
49
- export { IUIEvent, IPointerEvent, PointerType, IDragEvent, IDropEvent, ISwipeEvent, IMoveEvent, IZoomEvent, IRotateEvent, IKeyEvent, IImageEvent } from './event/IUIEvent'
49
+ export { IUIEvent, IPointerEvent, PointerType, IDragEvent, IDropEvent, ISwipeEvent, IMoveEvent, IZoomEvent, IRotateEvent, IWheelEvent, IKeyEvent, IImageEvent } from './event/IUIEvent'
50
50
  export { ICursorTypeMap, ICursorRotate, ICursorRotateMap } from './interaction/ICursor'
51
51
  export { IInteraction, IInteractionCanvas, IInteractionConfig, IMoveConfig, ICursorConfig, IZoomConfig, IWheelConfig, ITouchConfig, IMultiTouchConfig, IPointerConfig } from './interaction/IInteraction'
52
-
52
+ export { ITransformer } from './interaction/ITransformer'
53
53
 
54
54
  export { INumber, IBoolean, IString, IValue, IFourNumber, IPathString, ITimer, IObject, INumberMap, IStringMap, IBooleanMap, IFunctionMap, IPointDataMap, IDataTypeHandle } from './data/IData'
55
55
  export { ILeafList, ILeafArrayMap, ILeafMap, ILeafLevelList, ILeafListItemCallback } from './data/IList'
@@ -30,6 +30,8 @@ export interface IInteraction extends IControl {
30
30
  readonly isHoldSpaceKey: boolean
31
31
 
32
32
  config: IInteractionConfig
33
+ readonly m: IMoveConfig
34
+ readonly p: IPointerConfig
33
35
 
34
36
  cursor: ICursorType | ICursorType[]
35
37
  readonly hitRadius: number
@@ -113,11 +115,11 @@ export interface IMoveConfig {
113
115
  holdSpaceKey?: boolean
114
116
  holdMiddleKey?: boolean
115
117
  holdRightKey?: boolean
116
- scroll?: boolean | 'limit'
118
+ scroll?: boolean | 'x' | 'y' | 'limit' | 'x-limit' | 'y-limit'
117
119
  drag?: boolean | 'auto'
118
120
  dragAnimate?: boolean
119
121
  dragEmpty?: boolean
120
- dragOut?: boolean
122
+ dragOut?: boolean | number
121
123
  autoDistance?: number
122
124
  }
123
125
 
@@ -0,0 +1,10 @@
1
+ import { IMoveEvent, IZoomEvent, IRotateEvent } from '../event/IUIEvent'
2
+
3
+ export interface ITransformer {
4
+ readonly transforming: boolean
5
+ move(data: IMoveEvent): void
6
+ zoom(data: IZoomEvent): void
7
+ rotate(data: IRotateEvent): void
8
+ transformEnd(): void
9
+ destroy(): void
10
+ }
@@ -36,7 +36,7 @@ export interface IRenderer extends IControl {
36
36
 
37
37
  config: IRendererConfig
38
38
 
39
- update(): void
39
+ update(change?: boolean): void
40
40
 
41
41
  requestLayout(): void
42
42
 
package/types/index.d.ts CHANGED
@@ -403,7 +403,7 @@ interface IWatchEvent extends IEvent {
403
403
  interface IMultiTouchData {
404
404
  move: IPointData;
405
405
  scale: number;
406
- angle: number;
406
+ rotation: number;
407
407
  center: IPointData;
408
408
  }
409
409
  interface IKeepTouchData {
@@ -1124,7 +1124,7 @@ interface IRenderer extends IControl {
1124
1124
  changed: boolean;
1125
1125
  ignore: boolean;
1126
1126
  config: IRendererConfig;
1127
- update(): void;
1127
+ update(change?: boolean): void;
1128
1128
  requestLayout(): void;
1129
1129
  render(callback?: IFunction): void;
1130
1130
  renderAgain(): void;
@@ -1398,6 +1398,7 @@ interface ILeafAttrData {
1398
1398
  button?: IBoolean;
1399
1399
  cursor?: ICursorType | ICursorType[];
1400
1400
  motionPath?: IBoolean;
1401
+ motionPrecision?: INumber;
1401
1402
  motion?: INumber | IUnitData;
1402
1403
  motionRotation?: INumber | IBoolean;
1403
1404
  normalStyle?: IObject;
@@ -1468,6 +1469,7 @@ interface ILeafComputedData {
1468
1469
  button?: boolean;
1469
1470
  cursor?: ICursorType | ICursorType[];
1470
1471
  motionPath?: boolean;
1472
+ motionPrecision?: number;
1471
1473
  motion?: number | IUnitData;
1472
1474
  motionRotation?: number | boolean;
1473
1475
  normalStyle?: IObject;
@@ -1488,6 +1490,7 @@ interface ILeafComputedData {
1488
1490
  __pathInputed?: number;
1489
1491
  __pathForRender?: IPathCommandData;
1490
1492
  __path2DForRender?: IPath2D;
1493
+ __pathForArrow?: IPathCommandData;
1491
1494
  __pathForMotion?: IMotionPathData;
1492
1495
  }
1493
1496
  interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix, ILeafDataProxy, ILeafInputData, IEventer {
@@ -1554,7 +1557,7 @@ interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix, ILeafDa
1554
1557
  nextRender(item: IFunction, bind?: IObject, off?: 'off'): void;
1555
1558
  removeNextRender(item: IFunction): void;
1556
1559
  __bindLeafer(leafer: ILeaferBase | null): void;
1557
- set(data: IObject, isTemp?: boolean): void;
1560
+ set(data: IObject, transition?: any): void;
1558
1561
  get(name?: string | string[] | IObject): ILeafInputData | IValue;
1559
1562
  setAttr(name: string, value: any): void;
1560
1563
  getAttr(name: string): any;
@@ -1564,6 +1567,8 @@ interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix, ILeafDa
1564
1567
  toSVG(): string;
1565
1568
  __SVG(data: IObject): void;
1566
1569
  toHTML(): string;
1570
+ clone?(data?: ILeafInputData): ILeaf;
1571
+ animate?(_keyframe?: any, _options?: any, _type?: any, _isTemp?: boolean): any;
1567
1572
  __setAttr(attrName: string, newValue: IValue, checkFiniteNumber?: boolean): boolean;
1568
1573
  __getAttr(attrName: string): IValue;
1569
1574
  setProxyAttr(name: string, newValue: IValue): void;
@@ -1622,13 +1627,13 @@ interface ILeaf extends ILeafRender, ILeafHit, ILeafBounds, ILeafMatrix, ILeafDa
1622
1627
  getWorldPointByPage(page: IPointData, relative?: ILeaf, distance?: boolean, change?: boolean): IPointData;
1623
1628
  setTransform(transform?: IMatrixData, resize?: boolean): void;
1624
1629
  transform(transform?: IMatrixData, resize?: boolean): void;
1625
- move(x: number | IPointData, y?: number): void;
1626
- moveInner(x: number | IPointData, y?: number): void;
1630
+ move(x: number | IPointData, y?: number, transition?: any): void;
1631
+ moveInner(x: number | IPointData, y?: number, transition?: any): void;
1627
1632
  scaleOf(origin: IPointData | IAlign, scaleX: number, scaleY?: number, resize?: boolean): void;
1628
1633
  rotateOf(origin: IPointData | IAlign, rotation: number): void;
1629
1634
  skewOf(origin: IPointData | IAlign, skewX: number, skewY?: number, resize?: boolean): void;
1630
1635
  transformWorld(worldTransform?: IMatrixData, resize?: boolean): void;
1631
- moveWorld(x: number | IPointData, y?: number): void;
1636
+ moveWorld(x: number | IPointData, y?: number, transition?: any): void;
1632
1637
  scaleOfWorld(worldOrigin: IPointData, scaleX: number, scaleY?: number, resize?: boolean): void;
1633
1638
  rotateOfWorld(worldOrigin: IPointData, rotation: number): void;
1634
1639
  skewOfWorld(worldOrigin: IPointData, skewX: number, skewY?: number, resize?: boolean): void;
@@ -1772,6 +1777,10 @@ interface IZoomEvent extends IUIEvent {
1772
1777
  interface IMoveEvent extends IDragEvent {
1773
1778
  moveType?: 'drag' | 'move';
1774
1779
  }
1780
+ interface IWheelEvent extends IUIEvent {
1781
+ deltaX: number;
1782
+ deltaY: number;
1783
+ }
1775
1784
  interface ISwipeEvent extends IDragEvent {
1776
1785
  }
1777
1786
  interface IKeyEvent extends IUIEvent {
@@ -1800,6 +1809,8 @@ interface IInteraction extends IControl {
1800
1809
  readonly isHoldRightKey: boolean;
1801
1810
  readonly isHoldSpaceKey: boolean;
1802
1811
  config: IInteractionConfig;
1812
+ readonly m: IMoveConfig;
1813
+ readonly p: IPointerConfig;
1803
1814
  cursor: ICursorType | ICursorType[];
1804
1815
  readonly hitRadius: number;
1805
1816
  bottomList?: IPickBottom[];
@@ -1861,11 +1872,11 @@ interface IMoveConfig {
1861
1872
  holdSpaceKey?: boolean;
1862
1873
  holdMiddleKey?: boolean;
1863
1874
  holdRightKey?: boolean;
1864
- scroll?: boolean | 'limit';
1875
+ scroll?: boolean | 'x' | 'y' | 'limit' | 'x-limit' | 'y-limit';
1865
1876
  drag?: boolean | 'auto';
1866
1877
  dragAnimate?: boolean;
1867
1878
  dragEmpty?: boolean;
1868
- dragOut?: boolean;
1879
+ dragOut?: boolean | number;
1869
1880
  autoDistance?: number;
1870
1881
  }
1871
1882
  interface IWheelConfig {
@@ -1914,7 +1925,7 @@ interface IHitCanvasManager extends ICanvasManager {
1914
1925
  interface IZoomView extends IBranch {
1915
1926
  }
1916
1927
 
1917
- type ILeaferType = 'draw' | 'block' | 'editor' | 'design' | 'board' | 'document' | 'app' | 'website' | 'game' | 'player' | 'chart' | 'custom';
1928
+ type ILeaferType = 'draw' | 'block' | 'viewport' | 'editor' | 'design' | 'board' | 'document' | 'app' | 'website' | 'game' | 'player' | 'chart' | 'custom';
1918
1929
  interface ILeaferConfig extends IRendererConfig, ILeaferCanvasConfig, IInteractionConfig, ILayouterConfig {
1919
1930
  start?: boolean;
1920
1931
  type?: ILeaferType;
@@ -1943,6 +1954,7 @@ interface ILeaferAttrData {
1943
1954
  autoLayout?: IAutoBounds;
1944
1955
  lazyBounds: IBounds;
1945
1956
  config: ILeaferConfig;
1957
+ userConfig?: ILeaferConfig;
1946
1958
  readonly cursorPoint: IPointData;
1947
1959
  readonly clientBounds: IBoundsData;
1948
1960
  leafs: number;
@@ -1953,6 +1965,7 @@ interface ILeaferAttrData {
1953
1965
  stop(): void;
1954
1966
  unlockLayout(): void;
1955
1967
  lockLayout(): void;
1968
+ requestRender(change: boolean): void;
1956
1969
  updateCursor(cursor?: ICursorType): void;
1957
1970
  resize(size: IScreenSizeData): void;
1958
1971
  waitReady(item: IFunction, bind?: IObject): void;
@@ -1970,6 +1983,7 @@ type IZoomType = 'in' | 'out' | 'fit' | 'fit-width' | 'fit-height' | number | IL
1970
1983
  interface ILeaferBase extends IZoomView, IControl, ILeaferAttrData {
1971
1984
  readonly isApp: boolean;
1972
1985
  readonly app: ILeaferBase;
1986
+ parentApp?: IAppBase;
1973
1987
  parent?: IAppBase;
1974
1988
  }
1975
1989
  interface ILeaferTypeCreator {
@@ -2175,4 +2189,13 @@ interface ICursorRotateMap {
2175
2189
  [name: string]: ICursorRotate;
2176
2190
  }
2177
2191
 
2178
- export type { ACommandData, ArcCommandData, ArcToCommandData, BezierCurveToCommandObject, CCommandData, CanvasPathCommand, EllipseCommandData, HCommandData, IAlign, IAnimateEvent, 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, ICursorConfig, ICursorRotate, ICursorRotateMap, ICursorType, ICursorTypeMap, IDataProcessor, IDataTypeHandle, IDirection, IDirection4, IDragEvent, IDropEvent, IEditSize, IEraserType, IEvent, IEventListener, IEventListenerId, IEventListenerItem, IEventListenerMap, IEventListenerOptions, IEventMap, IEventOption, IEventTarget, IEventer, IExportFileType, IExportImageType, IExportOnCanvasFunction, IExportOptions, IExportResult, IExportResultFunction, IFindCondition, IFindMethod, 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, IMatrixWithOptionScaleData, IMatrixWithScaleData, IMiniapp, IMiniappSelect, IMiniappSizeView, IMotionPathData, IMoveConfig, IMoveEvent, IMultiTouchConfig, IMultiTouchData, INumber, INumberFunction, INumberMap, IObject, IObjectFunction, IOffsetBoundsData, IPartLayoutConfig, IPath2D, IPathCommandData, IPathCommandObject, IPathCreator, IPathDrawer, IPathString, IPercentData, IPickBottom, IPickOptions, IPickResult, IPlatform, IPlugin, IPoint, IPointData, IPointDataFunction, IPointDataMap, IPointGap, IPointerConfig, IPointerEvent, IPropertyEvent, IRadiusPointData, IRangeSize, IRenderEvent, IRenderOptions, IRenderer, IRendererConfig, IResizeEvent, IResizeEventListener, IRotateEvent, IRotationPointData, IScaleData, IScaleRotationData, IScreenSizeData, IScrollPointData, ISelector, ISelectorConfig, ISelectorProxy, ISide, ISize, ISizeData, ISkewData, ISkiaCanvas, ISkiaCanvasExportConfig, ISkiaNAPICanvas, IStateStyleType, IString, IStringFunction, IStringMap, ISwipeEvent, ITaskItem, ITaskOptions, ITaskProcessor, ITaskProcessorConfig, ITextMetrics, ITimer, ITouchConfig, ITwoPointBoundsData, IUICreator, IUIEvent, IUnitData, IUnitPointData, IUpdateEvent, IValue, IWatchEvent, IWatchEventData, IWatcher, IWatcherConfig, IWheelConfig, IWindingRule, IZoomConfig, IZoomEvent, IZoomType, IZoomView, InnerId, LCommandData, LineToCommandObject, MCommandData, MoveToCommandObject, PointerType, QCommandData, QuadraticCurveToCommandObject, RectCommandData, RoundRectCommandData, SCommandData, TCommandData, VCommandData, ZCommandData };
2192
+ interface ITransformer {
2193
+ readonly transforming: boolean;
2194
+ move(data: IMoveEvent): void;
2195
+ zoom(data: IZoomEvent): void;
2196
+ rotate(data: IRotateEvent): void;
2197
+ transformEnd(): void;
2198
+ destroy(): void;
2199
+ }
2200
+
2201
+ export type { ACommandData, ArcCommandData, ArcToCommandData, BezierCurveToCommandObject, CCommandData, CanvasPathCommand, EllipseCommandData, HCommandData, IAlign, IAnimateEvent, 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, ICursorConfig, ICursorRotate, ICursorRotateMap, ICursorType, ICursorTypeMap, IDataProcessor, IDataTypeHandle, IDirection, IDirection4, IDragEvent, IDropEvent, IEditSize, IEraserType, IEvent, IEventListener, IEventListenerId, IEventListenerItem, IEventListenerMap, IEventListenerOptions, IEventMap, IEventOption, IEventTarget, IEventer, IExportFileType, IExportImageType, IExportOnCanvasFunction, IExportOptions, IExportResult, IExportResultFunction, IFindCondition, IFindMethod, 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, IMatrixWithOptionScaleData, IMatrixWithScaleData, IMiniapp, IMiniappSelect, IMiniappSizeView, IMotionPathData, IMoveConfig, IMoveEvent, IMultiTouchConfig, IMultiTouchData, INumber, INumberFunction, INumberMap, IObject, IObjectFunction, IOffsetBoundsData, IPartLayoutConfig, IPath2D, IPathCommandData, IPathCommandObject, IPathCreator, IPathDrawer, IPathString, IPercentData, IPickBottom, IPickOptions, IPickResult, IPlatform, IPlugin, IPoint, IPointData, IPointDataFunction, IPointDataMap, IPointGap, IPointerConfig, IPointerEvent, IPropertyEvent, IRadiusPointData, IRangeSize, IRenderEvent, IRenderOptions, IRenderer, IRendererConfig, IResizeEvent, IResizeEventListener, IRotateEvent, IRotationPointData, IScaleData, IScaleRotationData, IScreenSizeData, IScrollPointData, ISelector, ISelectorConfig, ISelectorProxy, ISide, ISize, ISizeData, ISkewData, ISkiaCanvas, ISkiaCanvasExportConfig, ISkiaNAPICanvas, IStateStyleType, IString, IStringFunction, IStringMap, ISwipeEvent, ITaskItem, ITaskOptions, ITaskProcessor, ITaskProcessorConfig, ITextMetrics, ITimer, ITouchConfig, ITransformer, ITwoPointBoundsData, IUICreator, IUIEvent, IUnitData, IUnitPointData, IUpdateEvent, IValue, 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 };