@leafer-in/editor 1.9.11 → 1.9.12
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 +2 -2
- package/dist/editor.esm.js +2 -2
- package/dist/editor.esm.min.js +1 -1
- package/dist/editor.esm.min.js.map +1 -1
- package/dist/editor.js +2 -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 +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-in/editor",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.12",
|
|
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": "^1.9.
|
|
38
|
-
"@leafer-ui/core": "^1.9.
|
|
39
|
-
"@leafer-in/resize": "^1.9.
|
|
40
|
-
"@leafer-ui/interface": "^1.9.
|
|
41
|
-
"@leafer-in/interface": "^1.9.
|
|
37
|
+
"@leafer-ui/draw": "^1.9.12",
|
|
38
|
+
"@leafer-ui/core": "^1.9.12",
|
|
39
|
+
"@leafer-in/resize": "^1.9.12",
|
|
40
|
+
"@leafer-ui/interface": "^1.9.12",
|
|
41
|
+
"@leafer-in/interface": "^1.9.12"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/src/Editor.ts
CHANGED
|
@@ -287,7 +287,7 @@ export class Editor extends Group implements IEditor {
|
|
|
287
287
|
|
|
288
288
|
public emitGroupEvent(type: string, group?: IGroup): void {
|
|
289
289
|
const event = new EditorGroupEvent(type, { editTarget: group })
|
|
290
|
-
|
|
290
|
+
this.emitEvent(event)
|
|
291
291
|
if (group) group.emitEvent(event)
|
|
292
292
|
}
|
|
293
293
|
|
|
@@ -340,7 +340,7 @@ export class Editor extends Group implements IEditor {
|
|
|
340
340
|
public emitInnerEvent(type: string): void {
|
|
341
341
|
const { innerEditor } = this, { editTarget } = innerEditor
|
|
342
342
|
const event = new InnerEditorEvent(type, { editTarget, innerEditor })
|
|
343
|
-
|
|
343
|
+
this.emitEvent(event)
|
|
344
344
|
editTarget.emitEvent(event)
|
|
345
345
|
}
|
|
346
346
|
|