huweili-cesium 1.2.29 → 1.2.30

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.
Files changed (2) hide show
  1. package/js/basis.js +15 -1
  2. package/package.json +1 -1
package/js/basis.js CHANGED
@@ -146,6 +146,12 @@ export function basicConfig() {
146
146
  };
147
147
 
148
148
  console.log('右键点击事件触发,点击位置:', position);
149
+ callbacks.onRightClick?.(position);
150
+ } else {
151
+ callbacks.onRightClick?.({
152
+ mapId: _mapId,
153
+ screenPosition: click.position,
154
+ });
149
155
  }
150
156
  }, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
151
157
 
@@ -168,7 +174,15 @@ export function basicConfig() {
168
174
  callbacks.onLeftClick?.({
169
175
  lng: Number(lng),
170
176
  lat: Number(lat),
171
- height: Number(height)
177
+ height: Number(height),
178
+ mapId: _mapId,
179
+ screenPosition: click.position,
180
+ cartesian,
181
+ });
182
+ } else {
183
+ callbacks.onLeftClick?.({
184
+ mapId: _mapId,
185
+ screenPosition: click.position,
172
186
  });
173
187
  }
174
188
  }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huweili-cesium",
3
- "version": "1.2.29",
3
+ "version": "1.2.30",
4
4
  "description": "基于 Cesium 的地图工具库(无人机态势、轨迹、围栏、工具栏等)",
5
5
  "type": "module",
6
6
  "main": "./index.js",