@leafer-ui/data 1.0.8 → 1.0.10
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/UIData.ts +5 -0
- package/types/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/data",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
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.
|
|
26
|
-
"@leafer-ui/external": "1.0.
|
|
25
|
+
"@leafer/core": "1.0.10",
|
|
26
|
+
"@leafer-ui/external": "1.0.10"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@leafer/interface": "1.0.
|
|
30
|
-
"@leafer-ui/interface": "1.0.
|
|
29
|
+
"@leafer/interface": "1.0.10",
|
|
30
|
+
"@leafer-ui/interface": "1.0.10"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/UIData.ts
CHANGED
|
@@ -30,6 +30,11 @@ export class UIData extends LeafData implements IUIData {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
public get __hasStroke(): boolean { return (this as IUIData).stroke && (this as IUIData).strokeWidth as unknown as boolean }
|
|
33
|
+
public get __hasMultiPaint(): boolean { // fix: opacity
|
|
34
|
+
const t = this as IUIData
|
|
35
|
+
if ((t.__isFills && t.fill.length > 1) || (t.__isStrokes && t.stroke.length > 1) || t.__useEffect) return true
|
|
36
|
+
return t.fill && this.__hasStroke
|
|
37
|
+
}
|
|
33
38
|
|
|
34
39
|
public __pixelFill?: boolean // png / svg / webp
|
|
35
40
|
public __pixelStroke?: boolean
|
package/types/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ declare class UIData extends LeafData implements IUIData {
|
|
|
10
10
|
__isStrokes?: boolean;
|
|
11
11
|
get __strokeWidth(): number;
|
|
12
12
|
get __hasStroke(): boolean;
|
|
13
|
+
get __hasMultiPaint(): boolean;
|
|
13
14
|
__pixelFill?: boolean;
|
|
14
15
|
__pixelStroke?: boolean;
|
|
15
16
|
get __clipAfterFill(): boolean;
|