@leafer-ui/data 2.1.4 → 2.1.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 +3 -3
- package/types/index.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/data",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.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": "2.1.
|
|
26
|
-
"@leafer-ui/external": "2.1.
|
|
25
|
+
"@leafer/core": "2.1.6",
|
|
26
|
+
"@leafer-ui/external": "2.1.6"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@leafer/interface": "2.1.
|
|
30
|
-
"@leafer-ui/interface": "2.1.
|
|
29
|
+
"@leafer/interface": "2.1.6",
|
|
30
|
+
"@leafer-ui/interface": "2.1.6"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/src/UIData.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { INumber, IValue, IBoolean, IPathCommandData, IPathString, IPointData, IPathCommandObject, IObject, IFilter, IPathCommandNode } from '@leafer/interface'
|
|
2
2
|
import { PathConvert, DataHelper, LeafData, Debug, isArray, isObject, isString, isUndefined } from '@leafer/core'
|
|
3
3
|
|
|
4
|
-
import { IUI, IUIData, ILeafPaint, IStrokeComputedStyle } from '@leafer-ui/interface'
|
|
4
|
+
import { IUI, IUIData, ILeafPaint, IStrokeComputedStyle, IPaintAttr } from '@leafer-ui/interface'
|
|
5
5
|
import { Paint, PaintImage, ColorConvert } from '@leafer-ui/external'
|
|
6
6
|
|
|
7
7
|
|
|
@@ -163,7 +163,7 @@ export class UIData extends LeafData implements IUIData {
|
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
|
|
166
|
-
public __setPaint(attrName:
|
|
166
|
+
public __setPaint(attrName: IPaintAttr, value: IValue): void {
|
|
167
167
|
this.__setInput(attrName, value)
|
|
168
168
|
const layout = this.__leaf.__layout
|
|
169
169
|
layout.boxChanged || layout.boxChange()
|
|
@@ -175,7 +175,7 @@ export class UIData extends LeafData implements IUIData {
|
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
|
|
178
|
-
public __removePaint(attrName:
|
|
178
|
+
public __removePaint(attrName: IPaintAttr, removeInput?: boolean): void {
|
|
179
179
|
if (removeInput) this.__removeInput(attrName)
|
|
180
180
|
PaintImage.recycleImage(attrName, this)
|
|
181
181
|
if (attrName === 'fill') {
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { INumber, IPointData, IBoolean, IValue, IPathCommandData, IPathCommandNode, IPathCommandObject, IPathString, IJSONOptions as IJSONOptions$1, IMultimediaType } from '@leafer/interface';
|
|
2
2
|
import { LeafData } from '@leafer/core';
|
|
3
|
-
import { IUIData, IUI, IStrokeComputedStyle, IGroupData, IBoxData, ILeaferData, IObject, IJSONOptions, IFrameData, ILineData, IRectData, IEllipseData, IPolygonData, IStarData, IPathData, IPenData, ITextData, IBackgroundBoxStyle, IFontWeight, IImageData, IImage, ICanvasData } from '@leafer-ui/interface';
|
|
3
|
+
import { IUIData, IUI, IStrokeComputedStyle, IPaintAttr, IGroupData, IBoxData, ILeaferData, IObject, IJSONOptions, IFrameData, ILineData, IRectData, IEllipseData, IPolygonData, IStarData, IPathData, IPenData, ITextData, IBackgroundBoxStyle, IFontWeight, IImageData, IImage, ICanvasData } from '@leafer-ui/interface';
|
|
4
4
|
|
|
5
5
|
declare class UIData extends LeafData implements IUIData {
|
|
6
6
|
__leaf: IUI;
|
|
@@ -43,8 +43,8 @@ declare class UIData extends LeafData implements IUIData {
|
|
|
43
43
|
__computePaint(): void;
|
|
44
44
|
__getRealStrokeWidth(childStyle?: IStrokeComputedStyle): number;
|
|
45
45
|
__checkComplex(): void;
|
|
46
|
-
__setPaint(attrName:
|
|
47
|
-
__removePaint(attrName:
|
|
46
|
+
__setPaint(attrName: IPaintAttr, value: IValue): void;
|
|
47
|
+
__removePaint(attrName: IPaintAttr, removeInput?: boolean): void;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
declare class GroupData extends UIData implements IGroupData {
|