@tmagic/stage 1.3.0-beta.1 → 1.3.0-beta.2
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-beta.
|
|
2
|
+
"version": "1.3.0-beta.2",
|
|
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.29.2",
|
|
33
|
-
"@tmagic/core": "1.3.0-beta.
|
|
34
|
-
"@tmagic/schema": "1.3.0-beta.
|
|
35
|
-
"@tmagic/utils": "1.3.0-beta.
|
|
33
|
+
"@tmagic/core": "1.3.0-beta.2",
|
|
34
|
+
"@tmagic/schema": "1.3.0-beta.2",
|
|
35
|
+
"@tmagic/utils": "1.3.0-beta.2",
|
|
36
36
|
"events": "^3.3.0",
|
|
37
37
|
"keycon": "^1.4.0",
|
|
38
38
|
"lodash-es": "^4.17.21",
|
package/src/ActionManager.ts
CHANGED
|
@@ -567,8 +567,9 @@ export default class ActionManager extends EventEmitter {
|
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
|
|
570
|
-
private mouseLeaveHandler = () => {
|
|
570
|
+
private mouseLeaveHandler = (event: MouseEvent) => {
|
|
571
571
|
setTimeout(() => this.clearHighlight(), throttleTime);
|
|
572
|
+
this.emit('mouseleave', event);
|
|
572
573
|
};
|
|
573
574
|
|
|
574
575
|
private mouseWheelHandler = () => {
|
package/src/StageCore.ts
CHANGED
|
@@ -367,10 +367,10 @@ export default class StageCore extends EventEmitter {
|
|
|
367
367
|
*/
|
|
368
368
|
private initMouseEvent(): void {
|
|
369
369
|
this.actionManager
|
|
370
|
-
.on('mousemove',
|
|
370
|
+
.on('mousemove', (event: MouseEvent) => {
|
|
371
371
|
this.emit('mousemove', event);
|
|
372
372
|
})
|
|
373
|
-
.on('mouseleave',
|
|
373
|
+
.on('mouseleave', (event: MouseEvent) => {
|
|
374
374
|
this.emit('mouseleave', event);
|
|
375
375
|
})
|
|
376
376
|
.on('drag-start', (e: OnDragStart) => {
|