@leafer-in/editor 2.2.7 → 2.2.8
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/dist/editor.cjs +1 -2
- package/dist/editor.esm.js +1 -2
- package/dist/editor.esm.min.js +1 -1
- package/dist/editor.esm.min.js.map +1 -1
- package/dist/editor.js +1 -2
- package/dist/editor.min.cjs +1 -1
- package/dist/editor.min.cjs.map +1 -1
- package/dist/editor.min.js +1 -1
- package/dist/editor.min.js.map +1 -1
- package/package.json +6 -6
- package/src/Editor.ts +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-in/editor",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.8",
|
|
4
4
|
"description": "@leafer-in/editor",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"leaferjs"
|
|
35
35
|
],
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@leafer-ui/draw": "^2.2.
|
|
38
|
-
"@leafer-ui/core": "^2.2.
|
|
39
|
-
"@leafer-in/resize": "^2.2.
|
|
40
|
-
"@leafer-ui/interface": "^2.2.
|
|
41
|
-
"@leafer-in/interface": "^2.2.
|
|
37
|
+
"@leafer-ui/draw": "^2.2.8",
|
|
38
|
+
"@leafer-ui/core": "^2.2.8",
|
|
39
|
+
"@leafer-in/resize": "^2.2.8",
|
|
40
|
+
"@leafer-ui/interface": "^2.2.8",
|
|
41
|
+
"@leafer-in/interface": "^2.2.8"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/src/Editor.ts
CHANGED
|
@@ -154,8 +154,7 @@ export class Editor extends Group implements IEditor {
|
|
|
154
154
|
public update(): void {
|
|
155
155
|
if (this.editing) {
|
|
156
156
|
if (!this.element.parent) return this.cancel()
|
|
157
|
-
|
|
158
|
-
this.editTool.update()
|
|
157
|
+
this.innerEditing ? this.innerEditor.update() : this.editTool.update() // 同一时间只能有一个工具更新
|
|
159
158
|
this.selector.update()
|
|
160
159
|
}
|
|
161
160
|
}
|