@leafer-ui/interface 2.0.0 → 2.0.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 +2 -2
- package/src/IUI.ts +4 -1
- package/src/type/IType.ts +1 -0
- package/types/index.d.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/interface",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "@leafer-ui/interface",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/interface": "2.0.
|
|
25
|
+
"@leafer/interface": "2.0.1"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/IUI.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ITextStyleAttrData, ITextStyleInputData, ITextStyleComputedData,
|
|
10
10
|
IStrokeComputedStyle
|
|
11
11
|
} from './ICommonAttr'
|
|
12
|
-
import { IOverflow } from './type/IType'
|
|
12
|
+
import { IFill, IOverflow } from './type/IType'
|
|
13
13
|
import { IAnimation, IAnimate, IKeyframe, IKeyframeId, IAnimateType } from './IAnimation'
|
|
14
14
|
import { ILeafer } from './app/ILeafer'
|
|
15
15
|
import { IEditorConfig } from './editor/IEditor'
|
|
@@ -309,6 +309,8 @@ export interface IImage extends IImageAttrData, IRect {
|
|
|
309
309
|
}
|
|
310
310
|
interface IImageAttrData {
|
|
311
311
|
url?: string
|
|
312
|
+
foreground?: IFill
|
|
313
|
+
background?: IFill
|
|
312
314
|
}
|
|
313
315
|
export interface IImageData extends IImageAttrData, IRectData {
|
|
314
316
|
__setImageFill(value: string): void
|
|
@@ -571,6 +573,7 @@ export type IUITag =
|
|
|
571
573
|
| 'Robot'
|
|
572
574
|
| 'GIF'
|
|
573
575
|
| 'Video'
|
|
576
|
+
| (string & {})
|
|
574
577
|
|
|
575
578
|
|
|
576
579
|
export interface IUIInputData extends IRectInputData, IEllipseInputData, IPolygonInputData, IStarInputData, ILineInputData, IPathInputData, ITextInputData, IImageInputData, IGroupInputData, IBoxInputData, IFrameInputData, IFlowInputData, IArrowInputData, IGIFInputData, IVideoInputData, IRobotInputData, IUIBaseInputData, IObject {
|
package/src/type/IType.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ interface IStrokeGradientPaint extends IGradientPaint {
|
|
|
57
57
|
interface IColorStop {
|
|
58
58
|
offset: number;
|
|
59
59
|
color: IColor;
|
|
60
|
+
selected?: boolean;
|
|
60
61
|
}
|
|
61
62
|
interface IImagePaint extends IPaintBase {
|
|
62
63
|
type: "image";
|
|
@@ -936,6 +937,8 @@ interface IImage extends IImageAttrData, IRect {
|
|
|
936
937
|
}
|
|
937
938
|
interface IImageAttrData {
|
|
938
939
|
url?: string;
|
|
940
|
+
foreground?: IFill;
|
|
941
|
+
background?: IFill;
|
|
939
942
|
}
|
|
940
943
|
interface IImageData extends IImageAttrData, IRectData {
|
|
941
944
|
__setImageFill(value: string): void;
|
|
@@ -1112,7 +1115,7 @@ interface IUIComputedData extends IUIAttrData, IFillComputedData, IBorderCompute
|
|
|
1112
1115
|
interface IUIBaseInputData extends IUIAttrData, IFillInputData, IStrokeInputData, ITextStyleInputData, ICornerRadiusInputData, IEffectInputData, ILeafInputData {
|
|
1113
1116
|
children?: IUIInputData[];
|
|
1114
1117
|
}
|
|
1115
|
-
type IUITag = 'App' | 'Leafer' | 'Rect' | 'Ellipse' | 'Polygon' | 'Star' | 'Line' | 'Path' | 'Pen' | 'Text' | 'Image' | 'Canvas' | 'Group' | 'Frame' | 'Box' | 'Arrow' | 'Robot' | 'GIF' | 'Video';
|
|
1118
|
+
type IUITag = 'App' | 'Leafer' | 'Rect' | 'Ellipse' | 'Polygon' | 'Star' | 'Line' | 'Path' | 'Pen' | 'Text' | 'Image' | 'Canvas' | 'Group' | 'Frame' | 'Box' | 'Arrow' | 'Robot' | 'GIF' | 'Video' | (string & {});
|
|
1116
1119
|
interface IUIInputData extends IRectInputData, IEllipseInputData, IPolygonInputData, IStarInputData, ILineInputData, IPathInputData, ITextInputData, IImageInputData, IGroupInputData, IBoxInputData, IFrameInputData, IFlowInputData, IArrowInputData, IGIFInputData, IVideoInputData, IRobotInputData, IUIBaseInputData, IObject {
|
|
1117
1120
|
children?: IUIInputData[];
|
|
1118
1121
|
}
|