@leafer-ui/data 1.0.0-rc.4 → 1.0.0-rc.6
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 +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/data",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.6",
|
|
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.0-rc.
|
|
26
|
-
"@leafer-ui/external": "1.0.0-rc.
|
|
25
|
+
"@leafer/core": "1.0.0-rc.6",
|
|
26
|
+
"@leafer-ui/external": "1.0.0-rc.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@leafer/interface": "1.0.0-rc.
|
|
30
|
-
"@leafer-ui/interface": "1.0.0-rc.
|
|
29
|
+
"@leafer/interface": "1.0.0-rc.6",
|
|
30
|
+
"@leafer-ui/interface": "1.0.0-rc.6"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/UIData.ts
CHANGED
|
@@ -16,6 +16,9 @@ export class UIData extends LeafData implements IUIData {
|
|
|
16
16
|
public __isFills?: boolean
|
|
17
17
|
public __isStrokes?: boolean
|
|
18
18
|
|
|
19
|
+
public __pixelFill?: boolean // png / svg / webp
|
|
20
|
+
public __pixelStroke?: boolean
|
|
21
|
+
|
|
19
22
|
protected _visible?: __Boolean
|
|
20
23
|
|
|
21
24
|
protected _width?: __Number
|
|
@@ -61,6 +64,7 @@ export class UIData extends LeafData implements IUIData {
|
|
|
61
64
|
this.__removeInput('fill')
|
|
62
65
|
Paint.recycleImage('fill', this)
|
|
63
66
|
this.__isFills = false
|
|
67
|
+
if (this.__pixelFill) this.__pixelFill = false
|
|
64
68
|
}
|
|
65
69
|
this._fill = value
|
|
66
70
|
} else if (typeof value === 'object') {
|
|
@@ -77,6 +81,7 @@ export class UIData extends LeafData implements IUIData {
|
|
|
77
81
|
this.__removeInput('stroke')
|
|
78
82
|
Paint.recycleImage('stroke', this)
|
|
79
83
|
this.__isStrokes = false
|
|
84
|
+
if (this.__pixelStroke) this.__pixelStroke = false
|
|
80
85
|
}
|
|
81
86
|
this._stroke = value
|
|
82
87
|
} else if (typeof value === 'object') {
|
package/types/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare class UIData extends LeafData implements IUIData {
|
|
|
7
7
|
__blendLayer?: boolean;
|
|
8
8
|
__isFills?: boolean;
|
|
9
9
|
__isStrokes?: boolean;
|
|
10
|
+
__pixelFill?: boolean;
|
|
11
|
+
__pixelStroke?: boolean;
|
|
10
12
|
protected _visible?: __Boolean;
|
|
11
13
|
protected _width?: __Number;
|
|
12
14
|
protected _height?: __Number;
|