@leafer-ui/data 1.1.0 → 1.1.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 +5 -5
- package/src/BoxData.ts +1 -1
- package/src/UIData.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/data",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
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.1.
|
|
26
|
-
"@leafer-ui/external": "1.1.
|
|
25
|
+
"@leafer/core": "1.1.2",
|
|
26
|
+
"@leafer-ui/external": "1.1.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@leafer/interface": "1.1.
|
|
30
|
-
"@leafer-ui/interface": "1.1.
|
|
29
|
+
"@leafer/interface": "1.1.2",
|
|
30
|
+
"@leafer-ui/interface": "1.1.2"
|
|
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 {
|
|
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 {
|
|
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
|
|