@leafer-ui/interface 1.0.0-rc.26 → 1.0.0-rc.28

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.0.0-rc.26",
3
+ "version": "1.0.0-rc.28",
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.0.0-rc.26"
25
+ "@leafer/interface": "1.0.0-rc.28"
26
26
  }
27
27
  }
package/src/IUI.ts CHANGED
@@ -370,6 +370,7 @@ export interface IUIData extends IUIComputedData, ILeafData {
370
370
  __pixelStroke?: boolean
371
371
 
372
372
  __isHitPixel?: boolean
373
+ __isCanvas?: boolean // canvas 等需单独绘制的元素
373
374
 
374
375
  __opacityFill?: boolean // 半透明的
375
376
  __opacityStroke?: boolean
@@ -2,7 +2,7 @@ import { IGroup, IUI, IBox, IRectInputData, ISelectorProxy, IEditSize, ICursorTy
2
2
 
3
3
  export interface IEditorBase extends IGroup, ISelectorProxy {
4
4
  config: IEditorConfig
5
- mergeConfig: IEditorConfig // 实际使用,合并了选中元素上的editConfig
5
+ readonly mergeConfig: IEditorConfig // 实际使用,合并了选中元素上的editConfig
6
6
 
7
7
  hoverTarget: IUI
8
8
  target: IUI | IUI[]
@@ -37,6 +37,7 @@ export interface IEditorBase extends IGroup, ISelectorProxy {
37
37
  removeItem(item: IUI): void
38
38
 
39
39
  update(): void
40
+ updateEditBox(): void
40
41
  updateEditTool(): void
41
42
 
42
43
  getEditSize(ui: ILeaf): IEditSize
package/types/index.d.ts CHANGED
@@ -303,7 +303,7 @@ interface IEffectComputedData {
303
303
 
304
304
  interface IEditorBase extends IGroup$1, ISelectorProxy {
305
305
  config: IEditorConfig;
306
- mergeConfig: IEditorConfig;
306
+ readonly mergeConfig: IEditorConfig;
307
307
  hoverTarget: IUI$1;
308
308
  target: IUI$1 | IUI$1[];
309
309
  readonly list: IUI$1[];
@@ -328,6 +328,7 @@ interface IEditorBase extends IGroup$1, ISelectorProxy {
328
328
  addItem(item: IUI$1): void;
329
329
  removeItem(item: IUI$1): void;
330
330
  update(): void;
331
+ updateEditBox(): void;
331
332
  updateEditTool(): void;
332
333
  getEditSize(ui: ILeaf): IEditSize;
333
334
  onMove(e: IDragEvent): void;
@@ -710,6 +711,7 @@ interface IUIData extends IUIComputedData, ILeafData {
710
711
  __pixelFill?: boolean;
711
712
  __pixelStroke?: boolean;
712
713
  __isHitPixel?: boolean;
714
+ __isCanvas?: boolean;
713
715
  __opacityFill?: boolean;
714
716
  __opacityStroke?: boolean;
715
717
  __drawAfterFill?: boolean;