@@ -9,34 +9,32 @@ const BaseEventType = {
99 REMOVE : 'remove' ,
1010}
1111
12- const MouseEventType = {
12+ const BaseMouseEventType = {
1313 LEFT_DOWN : Cesium . ScreenSpaceEventType . LEFT_DOWN ,
1414 LEFT_UP : Cesium . ScreenSpaceEventType . LEFT_UP ,
1515 CLICK : Cesium . ScreenSpaceEventType . LEFT_CLICK ,
1616 RIGHT_DOWN : Cesium . ScreenSpaceEventType . RIGHT_DOWN ,
1717 RIGHT_UP : Cesium . ScreenSpaceEventType . RIGHT_UP ,
1818 RIGHT_CLICK : Cesium . ScreenSpaceEventType . RIGHT_CLICK ,
1919 DB_CLICK : Cesium . ScreenSpaceEventType . LEFT_DOUBLE_CLICK ,
20+ }
21+
22+ const MouseEventType = {
23+ ...BaseMouseEventType ,
2024 MOUSE_MOVE : Cesium . ScreenSpaceEventType . MOUSE_MOVE ,
2125 WHEEL : Cesium . ScreenSpaceEventType . WHEEL ,
2226 MOUSE_OVER : 'mouseover' ,
2327 MOUSE_OUT : 'mouseout' ,
2428}
2529
2630const ViewerEventType = {
31+ ...BaseMouseEventType ,
32+ MOUSE_MOVE : Cesium . ScreenSpaceEventType . MOUSE_MOVE ,
33+ WHEEL : Cesium . ScreenSpaceEventType . WHEEL ,
2734 ADD_LAYER : 'addLayer' ,
2835 REMOVE_LAYER : 'removeLayer' ,
2936 ADD_EFFECT : 'addEffect' ,
3037 REMOVE_EFFECT : 'removeEffect' ,
31- LEFT_DOWN : Cesium . ScreenSpaceEventType . LEFT_DOWN ,
32- LEFT_UP : Cesium . ScreenSpaceEventType . LEFT_UP ,
33- CLICK : Cesium . ScreenSpaceEventType . LEFT_CLICK ,
34- RIGHT_DOWN : Cesium . ScreenSpaceEventType . RIGHT_DOWN ,
35- RIGHT_UP : Cesium . ScreenSpaceEventType . RIGHT_UP ,
36- RIGHT_CLICK : Cesium . ScreenSpaceEventType . RIGHT_CLICK ,
37- DB_CLICK : Cesium . ScreenSpaceEventType . LEFT_DOUBLE_CLICK ,
38- MOUSE_MOVE : Cesium . ScreenSpaceEventType . MOUSE_MOVE ,
39- WHEEL : Cesium . ScreenSpaceEventType . WHEEL ,
4038}
4139
4240const SceneEventType = {
@@ -53,14 +51,7 @@ const SceneEventType = {
5351
5452const OverlayEventType = {
5553 ...BaseEventType ,
56- LEFT_DOWN : Cesium . ScreenSpaceEventType . LEFT_DOWN ,
57- LEFT_UP : Cesium . ScreenSpaceEventType . LEFT_UP ,
58- CLICK : Cesium . ScreenSpaceEventType . LEFT_CLICK ,
59- RIGHT_DOWN : Cesium . ScreenSpaceEventType . RIGHT_DOWN ,
60- RIGHT_UP : Cesium . ScreenSpaceEventType . RIGHT_UP ,
61- RIGHT_CLICK : Cesium . ScreenSpaceEventType . RIGHT_CLICK ,
62- DB_CLICK : Cesium . ScreenSpaceEventType . LEFT_DOUBLE_CLICK ,
63- MOUSE_MOVE : Cesium . ScreenSpaceEventType . MOUSE_MOVE ,
54+ ...BaseMouseEventType ,
6455 MOUSE_OVER : 'mouseover' ,
6556 MOUSE_OUT : 'mouseout' ,
6657 POSITION_UPDATE : 'positionUpdate' ,
@@ -85,13 +76,7 @@ const LayerGroupEventType = BaseEventType
8576
8677const LayerEventType = {
8778 ...BaseEventType ,
88- LEFT_DOWN : Cesium . ScreenSpaceEventType . LEFT_DOWN ,
89- LEFT_UP : Cesium . ScreenSpaceEventType . LEFT_UP ,
90- CLICK : Cesium . ScreenSpaceEventType . LEFT_CLICK ,
91- RIGHT_DOWN : Cesium . ScreenSpaceEventType . RIGHT_DOWN ,
92- RIGHT_UP : Cesium . ScreenSpaceEventType . RIGHT_UP ,
93- RIGHT_CLICK : Cesium . ScreenSpaceEventType . RIGHT_CLICK ,
94- DB_CLICK : Cesium . ScreenSpaceEventType . LEFT_DOUBLE_CLICK ,
79+ ...BaseMouseEventType ,
9580}
9681
9782const TrackEventType = {
0 commit comments