@leafer-ui/interface 1.6.6 → 1.7.0

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-ui/interface",
3
- "version": "1.6.6",
3
+ "version": "1.7.0",
4
4
  "description": "@leafer-ui/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/interface": "1.6.6"
25
+ "@leafer/interface": "1.7.0"
26
26
  }
27
27
  }
package/src/IUI.ts CHANGED
@@ -478,9 +478,6 @@ export interface IUIData extends IUIAttrData, IUIComputedData, ILeafData {
478
478
  __isStrokes?: boolean
479
479
 
480
480
  readonly __strokeWidth: number
481
- readonly __hasStroke: boolean
482
- readonly __hasHalf: number // 是否存在半逻辑像素渲染(奇数线宽的居中线条),可以半像素为起点绘制,防止模糊
483
-
484
481
 
485
482
  __isAlphaPixelFill?: boolean // png / svg / webp
486
483
  __isAlphaPixelStroke?: boolean
@@ -1,6 +1,6 @@
1
- import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorType, IAlign, IUnitPointData, IDragEvent, IRotateEvent, IStroke, IFill, ILeaf, ILeafList, IObject, IBoxInputData, IGroupInputData, IImageCursor, IRect, IBoundsData, IKeyEvent, IUIInputData, IZoomEvent, IColorString, IDirection4, IPointData, IScaleData, ISkewData, ILayoutBoundsData } from '@leafer-ui/interface'
1
+ import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorType, IAlign, IUnitPointData, IDragEvent, IMoveEvent, IRotateEvent, IStroke, IFill, ILeaf, ILeafList, IObject, IBoxInputData, IGroupInputData, IImageCursor, IRect, IKeyEvent, IUIInputData, IZoomEvent, IColorString, IDirection4, IPointData, IScaleData, ISkewData, ILayoutBoundsData, ITransition } from '@leafer-ui/interface'
2
2
 
3
- export interface IEditorBase extends IGroup, ISelectorProxy {
3
+ export interface IEditorBase extends IGroup, ISelectorProxy, ITransformTool {
4
4
  config: IEditorConfig
5
5
  readonly mergeConfig: IEditorConfig // 实际使用,合并了选中元素上的editConfig,频繁访问会消耗性能
6
6
  readonly mergedConfig: IEditorConfig // 合并之后的缓存配置
@@ -46,11 +46,6 @@ export interface IEditorBase extends IGroup, ISelectorProxy {
46
46
 
47
47
  getEditSize(ui: ILeaf): IEditSize
48
48
 
49
- onMove(e: IDragEvent): void
50
- onScale(e: IDragEvent | IZoomEvent): void
51
- onRotate(e: IDragEvent | IRotateEvent): void
52
- onSkew(e: IDragEvent): void
53
-
54
49
  group(group?: IGroup | IGroupInputData): IGroup
55
50
  ungroup(): IUI[]
56
51
  openGroup(group: IGroup): void
@@ -66,6 +61,22 @@ export interface IEditorBase extends IGroup, ISelectorProxy {
66
61
  toBottom(): void
67
62
  }
68
63
 
64
+ export interface ITransformTool {
65
+ editBox: IEditBoxBase
66
+ editTool?: IObject
67
+
68
+ onMove(e: IDragEvent | IMoveEvent): void
69
+ onScale(e: IDragEvent | IZoomEvent): void
70
+ onRotate(e: IDragEvent | IRotateEvent): void
71
+ onSkew(e: IDragEvent): void
72
+
73
+ move(x: number | IPointData, y?: number, transition?: ITransition): void
74
+ scaleOf(origin: IPointData | IAlign, scaleX: number, scaleY?: number | ITransition, resize?: boolean, transition?: ITransition): void
75
+ rotateOf(origin: IPointData | IAlign, rotation: number, transition?: ITransition): void
76
+ skewOf(origin: IPointData | IAlign, skewX: number, skewY?: number, resize?: boolean, transition?: ITransition): void
77
+ }
78
+
79
+
69
80
  export interface IEditorConfig extends IObject {
70
81
  editSize?: IEditSize
71
82
  keyEvent?: boolean
@@ -128,6 +139,8 @@ export interface IEditorConfig extends IObject {
128
139
  beforeRotate?: IEditorBeforeRotate
129
140
  beforeSkew?: IEditorBeforeSkew
130
141
 
142
+ preventEditInner?: boolean // 仅阻止交互事件触发内部编辑
143
+
131
144
  textEditor?: IObject
132
145
  pathEditor?: IObject
133
146
  }
@@ -189,7 +202,9 @@ export interface IEditPoint extends IBox {
189
202
  export type IEditPointType = 'resize' | 'rotate' | 'skew' | 'resize-rotate' | 'button'
190
203
 
191
204
  export interface IEditBoxBase extends IGroup {
205
+
192
206
  editor: IEditorBase
207
+
193
208
  dragging: boolean
194
209
  moving: boolean
195
210
 
@@ -209,6 +224,15 @@ export interface IEditBoxBase extends IGroup {
209
224
 
210
225
  dragStartData: IEditorDragStartData
211
226
 
227
+ config: IEditorConfig
228
+ readonly mergeConfig: IEditorConfig // 合并了config与编辑器的mergeConfig,频繁访问会消耗性能
229
+ readonly mergedConfig: IEditorConfig // 实际使用,合并之后的缓存配置
230
+
231
+ target: IUI // 操作的元素,默认为editor.element
232
+ single: boolean // 是否单选元素
233
+
234
+ transformTool: ITransformTool
235
+
212
236
  readonly flipped: boolean
213
237
  readonly flippedX: boolean
214
238
  readonly flippedY: boolean
@@ -219,13 +243,14 @@ export interface IEditBoxBase extends IGroup {
219
243
  getMiddlePointsStyle(): IBoxInputData[]
220
244
 
221
245
  load(): void
222
- update(bounds: IBoundsData): void
246
+ update(): void
223
247
  unload(): void
224
248
 
225
249
  onArrow(e: IKeyEvent): void
226
250
 
227
251
  }
228
252
 
253
+
229
254
  export interface IEditorDragStartData {
230
255
  x: number
231
256
  y: number
package/src/index.ts CHANGED
@@ -50,4 +50,4 @@ export { IEffectModule } from './module/IEffect'
50
50
  export { IFilterModule, IFilterProcessor, IFilterFunction } from './module/IFilter'
51
51
  export { ICachedShape } from './ICachedShape'
52
52
 
53
- export { IEditorBase, IEditorConfig, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditorDragStartData, IEditToolFunction, IEditorConfigFunction, IEditorBeforeSelect, IEditorBeforeMove, IEditorBeforeScale, IEditorBeforeRotate, IEditorBeforeSkew, IEditorSelectData, IEditorMoveData, IEditorScaleData, IEditorRotationData, IEditorSkewData } from './editor/IEditor'
53
+ export { IEditorBase, IEditorConfig, ITransformTool, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditorDragStartData, IEditToolFunction, IEditorConfigFunction, IEditorBeforeSelect, IEditorBeforeMove, IEditorBeforeScale, IEditorBeforeRotate, IEditorBeforeSkew, IEditorSelectData, IEditorMoveData, IEditorScaleData, IEditorRotationData, IEditorSkewData } from './editor/IEditor'
@@ -35,7 +35,7 @@ export interface IPaintImageModule {
35
35
  createData(leafPaint: ILeafPaint, image: ILeaferImage, paint: IImagePaint, box: IBoundsData): void
36
36
  getPatternData(paint: IImagePaint, box: IBoundsData, image: ILeaferImage): ILeafPaintPatternData
37
37
  fillOrFitMode(data: ILeafPaintPatternData, box: IBoundsData, x: number, y: number, scaleX: number, scaleY: number, rotation: number): void
38
- clipMode(data: ILeafPaintPatternData, box: IBoundsData, x: number, y: number, scaleX: number, scaleY: number, rotation: number): void
38
+ clipMode(data: ILeafPaintPatternData, box: IBoundsData, x: number, y: number, scaleX: number, scaleY: number, rotation: number, skew: IPointData): void
39
39
  repeatMode(data: ILeafPaintPatternData, box: IBoundsData, width: number, height: number, x: number, y: number, scaleX: number, scaleY: number, rotation: number, around: IAround): void
40
40
  }
41
41
 
@@ -9,7 +9,7 @@ export type ILeafPaintColor = IColorString | CanvasGradient | CanvasPattern
9
9
  export interface ILeafPaint {
10
10
  type?: IPaintType
11
11
  style?: ILeafPaintColor
12
- transform?: IMatrixData
12
+ transform?: IMatrixData // 存在时表示pattern自身不能应用transform
13
13
  blendMode?: IBlendMode
14
14
  image?: ILeaferImage
15
15
  loadId?: number
@@ -19,6 +19,7 @@ export interface ILeafPaint {
19
19
  sync?: boolean // 同步显示图片,不走任务列表生成图案
20
20
  isTransparent?: boolean // 是否为透明色
21
21
  data?: ILeafPaintPatternData
22
+ editing?: boolean // 标记编辑中
22
23
  }
23
24
 
24
25
  export interface ILeafPaintPatternData {
package/src/type/IType.ts CHANGED
@@ -75,12 +75,15 @@ export interface IImagePaint extends IPaintBase {
75
75
  size?: number | IOptionSizeData
76
76
  scale?: number | IPointData
77
77
  rotation?: number
78
+ skew?: | IPointData
78
79
 
79
80
  repeat?: IRepeat
80
81
 
81
82
  changeful?: boolean // 会频繁变化,不生成图案(有特殊性能优化,一般用于游戏精灵、动图场景)
82
83
  sync?: boolean // 同步显示,不走任务列表生成图案
83
84
  showProgress?: boolean // 是否显示进度
85
+
86
+ editing?: boolean // 标记编辑中
84
87
  }
85
88
  export interface IImageFilters {
86
89
  exposure?: number // 曝光
@@ -178,4 +181,4 @@ export interface IEffect extends IFilter {
178
181
 
179
182
  }
180
183
 
181
- export type IOverflow = 'show' | 'hide' | 'scroll' | 'auto'
184
+ export type IOverflow = 'show' | 'hide' | 'scroll'
package/types/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { IBlendMode, IAlign, IUnitPointData, IExportFileType, IFourNumber, IPointData, IOptionSizeData, IPathCommandData, IAxis, IAxisReverse, IWindingRule, IFilter, IMatrixData, ILeaferImage, ITaskItem, IBoolean, INumber, IString, IUnitData, IAnimateOptions, IAnimateEasing, IEventer, IObject, IEventParamsMap, IAnimateEasingFunction, IAnimateEnding, ITransition, IPercentData, ILeafInputData, ISizeData, ILeaf as ILeaf$1, ILeafComputedData, ILeafData, IBoundsData as IBoundsData$1, IValue, IPathCreator, IJSONOptions, IFindCondition, IAnswer, IPathString, IPathDrawer, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPickOptions, IPickResult, ICanvasContext2DSettings, ICanvasContext2D, ILeaferAttrData, IControl, ILeaferType, ILeaferConfig, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IBooleanMap, IAround, IMatrixWithBoundsScaleData } from '@leafer/interface';
1
+ import { IBlendMode, IAlign, IUnitPointData, IExportFileType, IFourNumber, IPointData, IOptionSizeData, IPathCommandData, IAxis, IAxisReverse, IWindingRule, IFilter, IMatrixData, ILeaferImage, ITaskItem, IBoolean, INumber, IString, IUnitData, IAnimateOptions, IAnimateEasing, IEventer, IObject, IEventParamsMap, IAnimateEasingFunction, IAnimateEnding, ITransition, IPercentData, ILeafInputData, ISizeData, ILeaf as ILeaf$1, ILeafComputedData, ILeafData, IBoundsData, IValue, IPathCreator, IJSONOptions, IFindCondition, IAnswer, IPathString, IPathDrawer, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPickOptions, IPickResult, ICanvasContext2DSettings, ICanvasContext2D, ILeaferAttrData, IControl, ILeaferType, ILeaferConfig, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IBooleanMap, IAround, IMatrixWithBoundsScaleData } from '@leafer/interface';
2
2
  export * from '@leafer/interface';
3
- import { IObject as IObject$1, IEditSize, IStroke as IStroke$1, IFill as IFill$1, IBoxInputData as IBoxInputData$1, IRectInputData as IRectInputData$1, IColorString as IColorString$1, IDirection4, ICursorType, IImageCursor, IAlign as IAlign$1, IUnitPointData as IUnitPointData$1, IUIInputData as IUIInputData$1, IUI as IUI$1, IPointData as IPointData$1, IScaleData, ISkewData, IGroup as IGroup$1, ISelectorProxy, ILeafList, IBox as IBox$1, IRect as IRect$1, ILayoutBoundsData, IBoundsData, IKeyEvent, ILeaf, IDragEvent, IZoomEvent, IRotateEvent, IGroupInputData as IGroupInputData$1, IStateName as IStateName$1, IString as IString$1, IBoolean as IBoolean$1, IStateStyle as IStateStyle$1 } from '@leafer-ui/interface';
3
+ import { IObject as IObject$1, IEditSize, IStroke as IStroke$1, IFill as IFill$1, IBoxInputData as IBoxInputData$1, IRectInputData as IRectInputData$1, IColorString as IColorString$1, IDirection4, ICursorType, IImageCursor, IAlign as IAlign$1, IUnitPointData as IUnitPointData$1, IUIInputData as IUIInputData$1, IUI as IUI$1, IPointData as IPointData$1, IScaleData, ISkewData, IGroup as IGroup$1, ISelectorProxy, IBox as IBox$1, IRect as IRect$1, ILayoutBoundsData, IKeyEvent, IDragEvent, IMoveEvent, IZoomEvent, IRotateEvent, ITransition as ITransition$1, ILeafList, ILeaf, IGroupInputData as IGroupInputData$1, IStateName as IStateName$1, IString as IString$1, IBoolean as IBoolean$1, IStateStyle as IStateStyle$1 } from '@leafer-ui/interface';
4
4
 
5
5
  type IPercent = string;
6
6
  type IColorString = string;
@@ -62,10 +62,12 @@ interface IImagePaint extends IPaintBase {
62
62
  size?: number | IOptionSizeData;
63
63
  scale?: number | IPointData;
64
64
  rotation?: number;
65
+ skew?: IPointData;
65
66
  repeat?: IRepeat;
66
67
  changeful?: boolean;
67
68
  sync?: boolean;
68
69
  showProgress?: boolean;
70
+ editing?: boolean;
69
71
  }
70
72
  interface IImageFilters {
71
73
  exposure?: number;
@@ -134,7 +136,7 @@ interface IGrayscaleEffect {
134
136
  }
135
137
  interface IEffect extends IFilter {
136
138
  }
137
- type IOverflow = 'show' | 'hide' | 'scroll' | 'auto';
139
+ type IOverflow = 'show' | 'hide' | 'scroll';
138
140
 
139
141
  type ILeafPaintColor = IColorString | CanvasGradient | CanvasPattern;
140
142
  interface ILeafPaint {
@@ -150,6 +152,7 @@ interface ILeafPaint {
150
152
  sync?: boolean;
151
153
  isTransparent?: boolean;
152
154
  data?: ILeafPaintPatternData;
155
+ editing?: boolean;
153
156
  }
154
157
  interface ILeafPaintPatternData {
155
158
  width?: number;
@@ -385,7 +388,7 @@ interface IAnimateList extends IAnimate {
385
388
  updateList(animation?: IAnimation[] | IAnimate[], isTemp?: boolean): void;
386
389
  }
387
390
 
388
- interface IEditorBase extends IGroup$1, ISelectorProxy {
391
+ interface IEditorBase extends IGroup$1, ISelectorProxy, ITransformTool {
389
392
  config: IEditorConfig;
390
393
  readonly mergeConfig: IEditorConfig;
391
394
  readonly mergedConfig: IEditorConfig;
@@ -419,10 +422,6 @@ interface IEditorBase extends IGroup$1, ISelectorProxy {
419
422
  updateEditBox(): void;
420
423
  updateEditTool(): void;
421
424
  getEditSize(ui: ILeaf): IEditSize;
422
- onMove(e: IDragEvent): void;
423
- onScale(e: IDragEvent | IZoomEvent): void;
424
- onRotate(e: IDragEvent | IRotateEvent): void;
425
- onSkew(e: IDragEvent): void;
426
425
  group(group?: IGroup$1 | IGroupInputData$1): IGroup$1;
427
426
  ungroup(): IUI$1[];
428
427
  openGroup(group: IGroup$1): void;
@@ -434,6 +433,18 @@ interface IEditorBase extends IGroup$1, ISelectorProxy {
434
433
  toTop(): void;
435
434
  toBottom(): void;
436
435
  }
436
+ interface ITransformTool {
437
+ editBox: IEditBoxBase;
438
+ editTool?: IObject$1;
439
+ onMove(e: IDragEvent | IMoveEvent): void;
440
+ onScale(e: IDragEvent | IZoomEvent): void;
441
+ onRotate(e: IDragEvent | IRotateEvent): void;
442
+ onSkew(e: IDragEvent): void;
443
+ move(x: number | IPointData$1, y?: number, transition?: ITransition$1): void;
444
+ scaleOf(origin: IPointData$1 | IAlign$1, scaleX: number, scaleY?: number | ITransition$1, resize?: boolean, transition?: ITransition$1): void;
445
+ rotateOf(origin: IPointData$1 | IAlign$1, rotation: number, transition?: ITransition$1): void;
446
+ skewOf(origin: IPointData$1 | IAlign$1, skewX: number, skewY?: number, resize?: boolean, transition?: ITransition$1): void;
447
+ }
437
448
  interface IEditorConfig extends IObject$1 {
438
449
  editSize?: IEditSize;
439
450
  keyEvent?: boolean;
@@ -483,6 +494,7 @@ interface IEditorConfig extends IObject$1 {
483
494
  beforeScale?: IEditorBeforeScale;
484
495
  beforeRotate?: IEditorBeforeRotate;
485
496
  beforeSkew?: IEditorBeforeSkew;
497
+ preventEditInner?: boolean;
486
498
  textEditor?: IObject$1;
487
499
  pathEditor?: IObject$1;
488
500
  }
@@ -543,6 +555,12 @@ interface IEditBoxBase extends IGroup$1 {
543
555
  enterPoint: IEditPoint;
544
556
  dragPoint: IEditPoint;
545
557
  dragStartData: IEditorDragStartData;
558
+ config: IEditorConfig;
559
+ readonly mergeConfig: IEditorConfig;
560
+ readonly mergedConfig: IEditorConfig;
561
+ target: IUI$1;
562
+ single: boolean;
563
+ transformTool: ITransformTool;
546
564
  readonly flipped: boolean;
547
565
  readonly flippedX: boolean;
548
566
  readonly flippedY: boolean;
@@ -551,7 +569,7 @@ interface IEditBoxBase extends IGroup$1 {
551
569
  getPointsStyle(): IBoxInputData$1[];
552
570
  getMiddlePointsStyle(): IBoxInputData$1[];
553
571
  load(): void;
554
- update(bounds: IBoundsData): void;
572
+ update(): void;
555
573
  unload(): void;
556
574
  onArrow(e: IKeyEvent): void;
557
575
  }
@@ -656,7 +674,7 @@ interface IRobotKeyframe {
656
674
  size?: number | ISizeData;
657
675
  total?: number;
658
676
  }
659
- interface IRobotComputedKeyframe extends IBoundsData$1 {
677
+ interface IRobotComputedKeyframe extends IBoundsData {
660
678
  view: any;
661
679
  }
662
680
  interface IRobotData extends IRobotAttrData, IRectData {
@@ -743,7 +761,7 @@ interface ITextData extends ITextAttrData, ITextStyleComputedData, IUIData {
743
761
  __padding?: number[];
744
762
  __clipText?: boolean;
745
763
  __isPlacehold?: boolean;
746
- __textBoxBounds?: IBoundsData$1;
764
+ __textBoxBounds?: IBoundsData;
747
765
  }
748
766
  interface ITextInputData extends ITextAttrData, ITextStyleInputData, IUIBaseInputData {
749
767
  }
@@ -777,7 +795,7 @@ interface ITextCharData {
777
795
  char?: string;
778
796
  }
779
797
  interface ITextDrawData {
780
- bounds: IBoundsData$1;
798
+ bounds: IBoundsData;
781
799
  rows: ITextRowData[];
782
800
  paraNumber: number;
783
801
  font: string;
@@ -935,8 +953,6 @@ interface IUIData extends IUIAttrData, IUIComputedData, ILeafData {
935
953
  __isFills?: boolean;
936
954
  __isStrokes?: boolean;
937
955
  readonly __strokeWidth: number;
938
- readonly __hasStroke: boolean;
939
- readonly __hasHalf: number;
940
956
  __isAlphaPixelFill?: boolean;
941
957
  __isAlphaPixelStroke?: boolean;
942
958
  __isTransparentFill?: boolean;
@@ -1085,7 +1101,7 @@ interface IStateModule {
1085
1101
 
1086
1102
  interface ICachedShape extends ICachedLeaf {
1087
1103
  worldCanvas?: ILeaferCanvas;
1088
- shapeBounds: IBoundsData$1;
1104
+ shapeBounds: IBoundsData;
1089
1105
  scaleX: number;
1090
1106
  scaleY: number;
1091
1107
  }
@@ -1104,21 +1120,21 @@ interface IPaintModule {
1104
1120
  shape(ui: IUI, current: ILeaferCanvas, renderOptions: IRenderOptions): ICachedShape;
1105
1121
  }
1106
1122
  interface IPaintImageModule {
1107
- image(ui: IUI, attrName: string, paint: IImagePaint, boxBounds: IBoundsData$1, firstUse: boolean): ILeafPaint;
1123
+ image(ui: IUI, attrName: string, paint: IImagePaint, boxBounds: IBoundsData, firstUse: boolean): ILeafPaint;
1108
1124
  checkImage(ui: IUI, canvas: ILeaferCanvas, paint: ILeafPaint, allowPaint?: boolean): boolean;
1109
1125
  createPattern(ui: IUI, paint: ILeafPaint, pixelRatio: number): boolean;
1110
1126
  recycleImage(attrName: IPaintAttr, data: IUIData): IBooleanMap;
1111
- createData(leafPaint: ILeafPaint, image: ILeaferImage, paint: IImagePaint, box: IBoundsData$1): void;
1112
- getPatternData(paint: IImagePaint, box: IBoundsData$1, image: ILeaferImage): ILeafPaintPatternData;
1113
- fillOrFitMode(data: ILeafPaintPatternData, box: IBoundsData$1, x: number, y: number, scaleX: number, scaleY: number, rotation: number): void;
1114
- clipMode(data: ILeafPaintPatternData, box: IBoundsData$1, x: number, y: number, scaleX: number, scaleY: number, rotation: number): void;
1115
- repeatMode(data: ILeafPaintPatternData, box: IBoundsData$1, width: number, height: number, x: number, y: number, scaleX: number, scaleY: number, rotation: number, around: IAround): void;
1127
+ createData(leafPaint: ILeafPaint, image: ILeaferImage, paint: IImagePaint, box: IBoundsData): void;
1128
+ getPatternData(paint: IImagePaint, box: IBoundsData, image: ILeaferImage): ILeafPaintPatternData;
1129
+ fillOrFitMode(data: ILeafPaintPatternData, box: IBoundsData, x: number, y: number, scaleX: number, scaleY: number, rotation: number): void;
1130
+ clipMode(data: ILeafPaintPatternData, box: IBoundsData, x: number, y: number, scaleX: number, scaleY: number, rotation: number, skew: IPointData): void;
1131
+ repeatMode(data: ILeafPaintPatternData, box: IBoundsData, width: number, height: number, x: number, y: number, scaleX: number, scaleY: number, rotation: number, around: IAround): void;
1116
1132
  }
1117
1133
  interface IPaintGradientModule {
1118
- linearGradient(paint: IGradientPaint, box: IBoundsData$1): ILeafPaint;
1119
- radialGradient(paint: IGradientPaint, box: IBoundsData$1): ILeafPaint;
1120
- conicGradient(paint: IGradientPaint, box: IBoundsData$1): ILeafPaint;
1121
- getTransform(box: IBoundsData$1, from: IPointData, to: IPointData, stretch: number, rotate90: boolean): IMatrixData;
1134
+ linearGradient(paint: IGradientPaint, box: IBoundsData): ILeafPaint;
1135
+ radialGradient(paint: IGradientPaint, box: IBoundsData): ILeafPaint;
1136
+ conicGradient(paint: IGradientPaint, box: IBoundsData): ILeafPaint;
1137
+ getTransform(box: IBoundsData, from: IPointData, to: IPointData, stretch: number, rotate90: boolean): IMatrixData;
1122
1138
  }
1123
1139
 
1124
1140
  interface IEffectModule {
@@ -1145,4 +1161,4 @@ interface IFilterFunction {
1145
1161
  (filter: IFilter, ui: IUI, bounds: IMatrixWithBoundsScaleData, currentCanvas: ILeaferCanvas, originCanvas: ILeaferCanvas, shape: ICachedShape): void;
1146
1162
  }
1147
1163
 
1148
- export type { IAnimate, IAnimateKeyframe, IAnimateList, IAnimateType, IAnimation, IApp, IAppConfig, IAppData, IAppForEachFunction, IAppInputData, IArrow, IArrowData, IArrowInputData, IArrowType, IBackgroundBoxStyle, IBlurEffect, IBox, IBoxData, IBoxInputData, ICachedShape, ICanvas, ICanvasData, ICanvasInputData, IColor, IColorConvertModule, IColorStop, IColorString, IComputedKeyframe, ICornerRadiusString, IDashPatternString, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditToolFunction, IEditorBase, IEditorBeforeMove, IEditorBeforeRotate, IEditorBeforeScale, IEditorBeforeSelect, IEditorBeforeSkew, IEditorConfig, IEditorConfigFunction, IEditorDragStartData, IEditorMoveData, IEditorRotationData, IEditorScaleData, IEditorSelectData, IEditorSkewData, IEffect, IEffectAttrData, IEffectComputedData, IEffectInputData, IEffectModule, IEllipse, IEllipseData, IEllipseInputData, IExportModule, IFill, IFilterFunction, IFilterModule, IFilterProcessor, IFindUIMethod, IFlow, IFlowData, IFlowInputData, IFontWeight, IFontWeightNumer, IFontWeightString, IFrame, IFrameData, IFrameInputData, IFrameRenderModule, IGIF, IGIFData, IGIFInputData, IGradientPaint, IGradientType, IGrayscaleEffect, IGroup, IGroupData, IGroupInputData, IGroupRenderModule, IImage, IImageData, IImageFilters, IImageInputData, IImagePaint, IImagePaintMode, IImageRenderModule, IKeyframe, IKeyframeId, IKeyframesAnimation, ILeafFill, ILeafPaint, ILeafPaintColor, ILeafPaintPatternData, ILeafShadowEffect, ILeafStrokePaint, ILeafer, ILeaferData, ILeaferInputData, ILine, ILineData, ILineInputData, IOverflow, IPaint, IPaintAttr, IPaintBase, IPaintGradientModule, IPaintImageModule, IPaintModule, IPaintString, IPaintType, IPath, IPathArrowModule, IPathData, IPathDataArrow, IPathDataArrowMap, IPathDataArrowOffset, IPathInputData, IPen, IPenData, IPenInputData, IPercent, IPolygon, IPolygonData, IPolygonInputData, IRGB, IRGBA, IRect, IRectData, IRectInputData, IRectRenderModule, IRepeat, IRobot, IRobotActionName, IRobotActions, IRobotAnimation, IRobotComputedKeyframe, IRobotData, IRobotInputData, IRobotKeyframe, IShadowEffect, IShadowString, ISolidPaint, IStar, IStarData, IStarInputData, IStateModule, IStateName, IStateStyle, IStates, IStroke, IStrokeAlign, IStrokeAttrData, IStrokeCap, IStrokeComputedData, IStrokeInputData, IStrokeJoin, IStrokeWidthString, IStyleAnimation, IText, ITextAlign, ITextCase, ITextCharData, ITextConvertModule, ITextData, ITextDecoration, ITextDecorationData, ITextDecorationType, ITextDrawData, ITextInputData, ITextRenderModule, ITextRowData, ITextStyleAttrData, ITextStyleComputedData, ITextStyleInputData, ITextWordData, ITextWrap, ITransitionFunction, ITransitionMap, ITransitionModule, IUI, IUIBaseInputData, IUIBoundsModule, IUIData, IUIHitModule, IUIInputData, IUIJSONData, IUIRenderModule, IUITag, IVectorPath, IVerticalAlign, IVideo, IVideoData, IVideoInputData, IWritingMode };
1164
+ export type { IAnimate, IAnimateKeyframe, IAnimateList, IAnimateType, IAnimation, IApp, IAppConfig, IAppData, IAppForEachFunction, IAppInputData, IArrow, IArrowData, IArrowInputData, IArrowType, IBackgroundBoxStyle, IBlurEffect, IBox, IBoxData, IBoxInputData, ICachedShape, ICanvas, ICanvasData, ICanvasInputData, IColor, IColorConvertModule, IColorStop, IColorString, IComputedKeyframe, ICornerRadiusString, IDashPatternString, IEditBoxBase, IEditPoint, IEditPointInputData, IEditPointType, IEditToolFunction, IEditorBase, IEditorBeforeMove, IEditorBeforeRotate, IEditorBeforeScale, IEditorBeforeSelect, IEditorBeforeSkew, IEditorConfig, IEditorConfigFunction, IEditorDragStartData, IEditorMoveData, IEditorRotationData, IEditorScaleData, IEditorSelectData, IEditorSkewData, IEffect, IEffectAttrData, IEffectComputedData, IEffectInputData, IEffectModule, IEllipse, IEllipseData, IEllipseInputData, IExportModule, IFill, IFilterFunction, IFilterModule, IFilterProcessor, IFindUIMethod, IFlow, IFlowData, IFlowInputData, IFontWeight, IFontWeightNumer, IFontWeightString, IFrame, IFrameData, IFrameInputData, IFrameRenderModule, IGIF, IGIFData, IGIFInputData, IGradientPaint, IGradientType, IGrayscaleEffect, IGroup, IGroupData, IGroupInputData, IGroupRenderModule, IImage, IImageData, IImageFilters, IImageInputData, IImagePaint, IImagePaintMode, IImageRenderModule, IKeyframe, IKeyframeId, IKeyframesAnimation, ILeafFill, ILeafPaint, ILeafPaintColor, ILeafPaintPatternData, ILeafShadowEffect, ILeafStrokePaint, ILeafer, ILeaferData, ILeaferInputData, ILine, ILineData, ILineInputData, IOverflow, IPaint, IPaintAttr, IPaintBase, IPaintGradientModule, IPaintImageModule, IPaintModule, IPaintString, IPaintType, IPath, IPathArrowModule, IPathData, IPathDataArrow, IPathDataArrowMap, IPathDataArrowOffset, IPathInputData, IPen, IPenData, IPenInputData, IPercent, IPolygon, IPolygonData, IPolygonInputData, IRGB, IRGBA, IRect, IRectData, IRectInputData, IRectRenderModule, IRepeat, IRobot, IRobotActionName, IRobotActions, IRobotAnimation, IRobotComputedKeyframe, IRobotData, IRobotInputData, IRobotKeyframe, IShadowEffect, IShadowString, ISolidPaint, IStar, IStarData, IStarInputData, IStateModule, IStateName, IStateStyle, IStates, IStroke, IStrokeAlign, IStrokeAttrData, IStrokeCap, IStrokeComputedData, IStrokeInputData, IStrokeJoin, IStrokeWidthString, IStyleAnimation, IText, ITextAlign, ITextCase, ITextCharData, ITextConvertModule, ITextData, ITextDecoration, ITextDecorationData, ITextDecorationType, ITextDrawData, ITextInputData, ITextRenderModule, ITextRowData, ITextStyleAttrData, ITextStyleComputedData, ITextStyleInputData, ITextWordData, ITextWrap, ITransformTool, ITransitionFunction, ITransitionMap, ITransitionModule, IUI, IUIBaseInputData, IUIBoundsModule, IUIData, IUIHitModule, IUIInputData, IUIJSONData, IUIRenderModule, IUITag, IVectorPath, IVerticalAlign, IVideo, IVideoData, IVideoInputData, IWritingMode };