@leafer-ui/interface 1.12.1 → 1.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/interface",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
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.12.1"
25
+ "@leafer/interface": "1.12.2"
26
26
  }
27
27
  }
package/src/IAnimation.ts CHANGED
@@ -84,7 +84,7 @@ export interface IAnimate extends IAnimateOptions, IEventer {
84
84
  play(): void
85
85
  pause(): void
86
86
  stop(): void
87
- seek(time: number | IPercentData): void
87
+ seek(time: number | IPercentData, includeDelay?: boolean): void
88
88
  kill(complete?: boolean, killStyle?: IUIInputData): void
89
89
 
90
90
  destroy(complete?: boolean): void
package/src/IUI.ts CHANGED
@@ -423,8 +423,8 @@ export interface IUI extends IUIAttrData, IFillAttrData, IStrokeAttrData, ICorne
423
423
 
424
424
  load(): void
425
425
 
426
- __drawPathByData(drawer: IPathDrawer, data: IPathCommandData): void
427
- __drawPathByBox(drawer: IPathDrawer): void
426
+ __drawPathByData(drawer: IPathDrawer, data: IPathCommandData, ignoreCornerRadius?: boolean): void
427
+ __drawPathByBox(drawer: IPathDrawer, ignoreCornerRadius?: boolean): void
428
428
  __drawAfterFill?(canvas: ILeaferCanvas, options: IRenderOptions): void
429
429
  __drawContent?(canvas: ILeaferCanvas, options: IRenderOptions): void
430
430
 
@@ -153,6 +153,7 @@ export interface IEditorConfig extends IObject {
153
153
  select?: 'press' | 'tap'
154
154
  selectKeep?: boolean
155
155
  selectedStyle?: IUIInputData
156
+ selectedPathType?: 'path' | 'render-path'
156
157
  multipleSelect?: boolean
157
158
 
158
159
  boxSelect?: boolean
package/types/index.d.ts CHANGED
@@ -405,7 +405,7 @@ interface IAnimate extends IAnimateOptions, IEventer {
405
405
  play(): void;
406
406
  pause(): void;
407
407
  stop(): void;
408
- seek(time: number | IPercentData): void;
408
+ seek(time: number | IPercentData, includeDelay?: boolean): void;
409
409
  kill(complete?: boolean, killStyle?: IUIInputData): void;
410
410
  destroy(complete?: boolean): void;
411
411
  }
@@ -530,6 +530,7 @@ interface IEditorConfig extends IObject$1 {
530
530
  select?: 'press' | 'tap';
531
531
  selectKeep?: boolean;
532
532
  selectedStyle?: IUIInputData$1;
533
+ selectedPathType?: 'path' | 'render-path';
533
534
  multipleSelect?: boolean;
534
535
  boxSelect?: boolean;
535
536
  continuousSelect?: boolean;
@@ -1020,8 +1021,8 @@ interface IUI extends IUIAttrData, IFillAttrData, IStrokeAttrData, ICornerRadius
1020
1021
  getPath(curve?: boolean, pathForRender?: boolean): IPathCommandData;
1021
1022
  getPathString(curve?: boolean, pathForRender?: boolean): IPathString;
1022
1023
  load(): void;
1023
- __drawPathByData(drawer: IPathDrawer, data: IPathCommandData): void;
1024
- __drawPathByBox(drawer: IPathDrawer): void;
1024
+ __drawPathByData(drawer: IPathDrawer, data: IPathCommandData, ignoreCornerRadius?: boolean): void;
1025
+ __drawPathByBox(drawer: IPathDrawer, ignoreCornerRadius?: boolean): void;
1025
1026
  __drawAfterFill?(canvas: ILeaferCanvas, options: IRenderOptions): void;
1026
1027
  __drawContent?(canvas: ILeaferCanvas, options: IRenderOptions): void;
1027
1028
  drawImagePlaceholder(image: ILeafPaint, canvas: ILeaferCanvas, renderOptions: IRenderOptions): void;