@leafer-ui/data 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-ui/data",
3
- "version": "1.0.10",
3
+ "version": "1.1.1",
4
4
  "description": "@leafer-ui/data",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,11 +22,11 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.10",
26
- "@leafer-ui/external": "1.0.10"
25
+ "@leafer/core": "1.1.1",
26
+ "@leafer-ui/external": "1.1.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.10",
30
- "@leafer-ui/interface": "1.0.10"
29
+ "@leafer/interface": "1.1.1",
30
+ "@leafer-ui/interface": "1.1.1"
31
31
  }
32
32
  }
package/src/BoxData.ts CHANGED
@@ -8,7 +8,7 @@ export class BoxData extends GroupData implements IBoxData {
8
8
  public get __boxStroke(): boolean { return !(this as IBoxData).__pathInputed }
9
9
 
10
10
  // 路径与圆角直接当溢出处理
11
- public get __drawAfterFill(): boolean { return (this as IBoxData).overflow === 'hide' && this.__clipAfterFill && this.__leaf.children.length as unknown as boolean }
11
+ public get __drawAfterFill(): boolean { const t = this as IBoxData; return (t.overflow === 'hide' && (t.__clipAfterFill || t.innerShadow) && t.__leaf.children.length) as unknown as boolean }
12
12
 
13
13
  public get __clipAfterFill(): boolean { return this.__leaf.isOverflow || super.__clipAfterFill }
14
14
 
package/src/UIData.ts CHANGED
@@ -39,7 +39,7 @@ export class UIData extends LeafData implements IUIData {
39
39
  public __pixelFill?: boolean // png / svg / webp
40
40
  public __pixelStroke?: boolean
41
41
 
42
- public get __clipAfterFill(): boolean { return ((this as IUIData).cornerRadius || (this as IUIData).__pathInputed) as unknown as boolean } // 用于 __drawAfterFill()
42
+ public get __clipAfterFill(): boolean { const t = this as IUIData; return (t.cornerRadius || t.innerShadow || t.__pathInputed) as unknown as boolean } // 用于 __drawAfterFill()
43
43
 
44
44
  public __needComputePaint: boolean
45
45