@antv/l7-scene 2.23.0 → 2.23.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/es/index.js CHANGED
@@ -306,7 +306,11 @@ var Scene = class {
306
306
  }
307
307
  }
308
308
  emit(type, handle) {
309
- SceneEventList.indexOf(type) === -1 ? this.mapService.on(type, handle) : this.sceneService.emit(type, handle);
309
+ if (SceneEventList.includes(type)) {
310
+ this.sceneService.emit(type, handle);
311
+ } else {
312
+ this.mapService.on(type, handle);
313
+ }
310
314
  }
311
315
  off(type, handle) {
312
316
  var _a;
package/lib/index.js CHANGED
@@ -336,7 +336,11 @@ var Scene = class {
336
336
  }
337
337
  }
338
338
  emit(type, handle) {
339
- import_l7_core.SceneEventList.indexOf(type) === -1 ? this.mapService.on(type, handle) : this.sceneService.emit(type, handle);
339
+ if (import_l7_core.SceneEventList.includes(type)) {
340
+ this.sceneService.emit(type, handle);
341
+ } else {
342
+ this.mapService.on(type, handle);
343
+ }
340
344
  }
341
345
  off(type, handle) {
342
346
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/l7-scene",
3
- "version": "2.23.0",
3
+ "version": "2.23.2",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "https://github.com/orgs/antvis/people",
@@ -15,15 +15,15 @@
15
15
  "dependencies": {
16
16
  "@babel/runtime": "^7.7.7",
17
17
  "eventemitter3": "^4.0.7",
18
- "@antv/l7-component": "2.23.0",
19
- "@antv/l7-renderer": "2.23.0",
20
- "@antv/l7-utils": "2.23.0",
21
- "@antv/l7-maps": "2.23.0",
22
- "@antv/l7-core": "2.23.0",
23
- "@antv/l7-layers": "2.23.0"
18
+ "@antv/l7-component": "2.23.2",
19
+ "@antv/l7-core": "2.23.2",
20
+ "@antv/l7-layers": "2.23.2",
21
+ "@antv/l7-maps": "2.23.2",
22
+ "@antv/l7-renderer": "2.23.2",
23
+ "@antv/l7-utils": "2.23.2"
24
24
  },
25
25
  "devDependencies": {
26
- "@antv/l7-test-utils": "^2.23.0"
26
+ "@antv/l7-test-utils": "^2.23.2"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public",