@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/display",
3
- "version": "1.0.3",
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.3",
26
- "@leafer-ui/data": "1.0.3",
27
- "@leafer-ui/display-module": "1.0.3",
28
- "@leafer-ui/decorator": "1.0.3",
29
- "@leafer-ui/external": "1.0.3"
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.3",
33
- "@leafer-ui/interface": "1.0.3"
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(newData?: IUIInputData): IUI {
479
+ public clone(data?: IUIInputData): IUI {
480
480
  const json = this.toJSON()
481
- if (newData) Object.assign(json, newData)
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(newData?: IUIInputData): IUI;
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;