@leafer/display-module 1.0.0-rc.21 → 1.0.0-rc.22

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/display-module",
3
- "version": "1.0.0-rc.21",
3
+ "version": "1.0.0-rc.22",
4
4
  "description": "@leafer/display-module",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,12 +22,12 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/helper": "1.0.0-rc.21",
26
- "@leafer/event": "1.0.0-rc.21",
27
- "@leafer/math": "1.0.0-rc.21",
28
- "@leafer/debug": "1.0.0-rc.21"
25
+ "@leafer/helper": "1.0.0-rc.22",
26
+ "@leafer/event": "1.0.0-rc.22",
27
+ "@leafer/math": "1.0.0-rc.22",
28
+ "@leafer/debug": "1.0.0-rc.22"
29
29
  },
30
30
  "devDependencies": {
31
- "@leafer/interface": "1.0.0-rc.21"
31
+ "@leafer/interface": "1.0.0-rc.22"
32
32
  }
33
33
  }
@@ -87,6 +87,8 @@ export const LeafEventer: ILeafEventerModule = {
87
87
  if (event && (event as IEvent).isStopNow) break
88
88
  }
89
89
  }
90
+
91
+ this.syncEventer && this.syncEventer.emitEvent(event, capture)
90
92
  },
91
93
 
92
94
  emitEvent(event: IEvent, capture?: boolean): void {
@@ -95,6 +97,8 @@ export const LeafEventer: ILeafEventerModule = {
95
97
  },
96
98
 
97
99
  hasEvent(type: string, capture?: boolean): boolean {
100
+ if (this.syncEventer && this.syncEventer.hasEvent(type, capture)) return true
101
+
98
102
  const { __bubbleMap: b, __captureMap: c } = this
99
103
  const hasB = b && b[type], hasC = c && c[type]
100
104
  return !!(capture === undefined ? (hasB || hasC) : (capture ? hasC : hasB))