@leafer-ui/draw 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/lib/draw.cjs +3 -3
- package/lib/draw.esm.js +3 -3
- package/package.json +6 -6
package/lib/draw.cjs
CHANGED
|
@@ -588,10 +588,10 @@ exports.UI = UI_1 = class UI extends core.Leaf {
|
|
|
588
588
|
export(filename, options) {
|
|
589
589
|
return Export.export(this, filename, options);
|
|
590
590
|
}
|
|
591
|
-
clone(
|
|
591
|
+
clone(data) {
|
|
592
592
|
const json = this.toJSON();
|
|
593
|
-
if (
|
|
594
|
-
Object.assign(json,
|
|
593
|
+
if (data)
|
|
594
|
+
Object.assign(json, data);
|
|
595
595
|
return UI_1.one(json);
|
|
596
596
|
}
|
|
597
597
|
static one(data, x, y, width, height) {
|
package/lib/draw.esm.js
CHANGED
|
@@ -587,10 +587,10 @@ let UI = UI_1 = class UI extends Leaf {
|
|
|
587
587
|
export(filename, options) {
|
|
588
588
|
return Export.export(this, filename, options);
|
|
589
589
|
}
|
|
590
|
-
clone(
|
|
590
|
+
clone(data) {
|
|
591
591
|
const json = this.toJSON();
|
|
592
|
-
if (
|
|
593
|
-
Object.assign(json,
|
|
592
|
+
if (data)
|
|
593
|
+
Object.assign(json, data);
|
|
594
594
|
return UI_1.one(json);
|
|
595
595
|
}
|
|
596
596
|
static one(data, x, y, width, height) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/draw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "@leafer-ui/draw",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"leaferjs"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@leafer/core": "1.0.
|
|
33
|
-
"@leafer-ui/display": "1.0.
|
|
34
|
-
"@leafer-ui/display-module": "1.0.
|
|
35
|
-
"@leafer-ui/decorator": "1.0.
|
|
36
|
-
"@leafer-ui/external": "1.0.
|
|
32
|
+
"@leafer/core": "1.0.4",
|
|
33
|
+
"@leafer-ui/display": "1.0.4",
|
|
34
|
+
"@leafer-ui/display-module": "1.0.4",
|
|
35
|
+
"@leafer-ui/decorator": "1.0.4",
|
|
36
|
+
"@leafer-ui/external": "1.0.4"
|
|
37
37
|
}
|
|
38
38
|
}
|