@tmagic/stage 1.3.0-alpha.12 → 1.3.0-alpha.13

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,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0-alpha.12",
2
+ "version": "1.3.0-alpha.13",
3
3
  "name": "@tmagic/stage",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@scena/guides": "^0.23.3",
33
- "@tmagic/core": "1.3.0-alpha.12",
34
- "@tmagic/schema": "1.3.0-alpha.12",
35
- "@tmagic/utils": "1.3.0-alpha.12",
33
+ "@tmagic/core": "1.3.0-alpha.13",
34
+ "@tmagic/schema": "1.3.0-alpha.13",
35
+ "@tmagic/utils": "1.3.0-alpha.13",
36
36
  "events": "^3.3.0",
37
37
  "keycon": "^1.1.2",
38
38
  "lodash-es": "^4.17.21",
package/src/StageCore.ts CHANGED
@@ -125,6 +125,10 @@ export default class StageCore extends EventEmitter {
125
125
  this.actionManager.highlight(idOrEl);
126
126
  }
127
127
 
128
+ public clearHighlight(): void {
129
+ this.actionManager.clearHighlight();
130
+ }
131
+
128
132
  /**
129
133
  * 更新组件
130
134
  * @param data 更新组件的数据
@@ -33,6 +33,7 @@ export default class StageCore extends EventEmitter {
33
33
  * @param el 要高亮的元素
34
34
  */
35
35
  highlight(idOrEl: Id | HTMLElement): void;
36
+ clearHighlight(): void;
36
37
  /**
37
38
  * 更新组件
38
39
  * @param data 更新组件的数据