@leafer-in/interface 1.9.12 → 1.10.1

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-in/interface",
3
- "version": "1.9.12",
3
+ "version": "1.10.1",
4
4
  "description": "@leafer-in/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -25,7 +25,7 @@
25
25
  "leaferjs"
26
26
  ],
27
27
  "peerDependencies": {
28
- "@leafer-ui/interface": "^1.9.12",
29
- "@leafer/interface": "^1.9.12"
28
+ "@leafer-ui/interface": "^1.10.1",
29
+ "@leafer/interface": "^1.10.1"
30
30
  }
31
31
  }
@@ -15,6 +15,9 @@ export interface IEditor extends IEditorBase {
15
15
 
16
16
  targetEventIds: IEventListenerId[]
17
17
 
18
+ getEditTool(name: string): IEditTool
19
+ getInnerEditor(name: string): IInnerEditor
20
+
18
21
  checkOpenedGroups(): void
19
22
 
20
23
  listenTargetEvents(): void
package/types/index.d.ts CHANGED
@@ -43,6 +43,8 @@ interface IEditor extends IEditorBase {
43
43
  editTool?: IEditTool;
44
44
  innerEditor?: IInnerEditor;
45
45
  targetEventIds: IEventListenerId[];
46
+ getEditTool(name: string): IEditTool;
47
+ getInnerEditor(name: string): IInnerEditor;
46
48
  checkOpenedGroups(): void;
47
49
  listenTargetEvents(): void;
48
50
  removeTargetEvents(): void;