@leafer-ui/display 1.0.3 → 1.0.4
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 +8 -8
- package/src/UI.ts +2 -2
- package/types/index.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/display",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "@leafer-ui/display",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/core": "1.0.
|
|
26
|
-
"@leafer-ui/data": "1.0.
|
|
27
|
-
"@leafer-ui/display-module": "1.0.
|
|
28
|
-
"@leafer-ui/decorator": "1.0.
|
|
29
|
-
"@leafer-ui/external": "1.0.
|
|
25
|
+
"@leafer/core": "1.0.4",
|
|
26
|
+
"@leafer-ui/data": "1.0.4",
|
|
27
|
+
"@leafer-ui/display-module": "1.0.4",
|
|
28
|
+
"@leafer-ui/decorator": "1.0.4",
|
|
29
|
+
"@leafer-ui/external": "1.0.4"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@leafer/interface": "1.0.
|
|
33
|
-
"@leafer-ui/interface": "1.0.
|
|
32
|
+
"@leafer/interface": "1.0.4",
|
|
33
|
+
"@leafer-ui/interface": "1.0.4"
|
|
34
34
|
}
|
|
35
35
|
}
|
package/src/UI.ts
CHANGED
|
@@ -476,9 +476,9 @@ export class UI extends Leaf implements IUI { // tip: rewrited Box
|
|
|
476
476
|
return Export.export(this, filename, options)
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
-
public clone(
|
|
479
|
+
public clone(data?: IUIInputData): IUI {
|
|
480
480
|
const json = this.toJSON()
|
|
481
|
-
if (
|
|
481
|
+
if (data) Object.assign(json, data)
|
|
482
482
|
return UI.one(json)
|
|
483
483
|
}
|
|
484
484
|
|
package/types/index.d.ts
CHANGED
|
@@ -132,7 +132,7 @@ declare class UI extends Leaf implements IUI {
|
|
|
132
132
|
animate(_keyframe?: IUIInputData | IKeyframe[] | IAnimation, _options?: ITransition, _type?: IAnimateType, _isTemp?: boolean): IAnimate;
|
|
133
133
|
killAnimate(_type?: IAnimateType): void;
|
|
134
134
|
export(filename: IExportFileType | string, options?: IExportOptions | number | boolean): Promise<IExportResult>;
|
|
135
|
-
clone(
|
|
135
|
+
clone(data?: IUIInputData): IUI;
|
|
136
136
|
static one(data: IUIInputData, x?: number, y?: number, width?: number, height?: number): IUI;
|
|
137
137
|
static registerUI(): void;
|
|
138
138
|
static registerData(data: IUIData): void;
|