@xingm/vmap-cesium-toolbar 0.0.1-alpha.1 → 0.0.1-alpha.3

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.
@@ -20,8 +20,11 @@ declare class DrawHelper {
20
20
  private publicEntities;
21
21
  private _doubleClickPending;
22
22
  private currentLineEntity;
23
+ private currentPolygonEntity;
24
+ private currentRectangleEntity;
23
25
  private currentSegmentLabels;
24
26
  private currentTotalLabel;
27
+ private currentLinePositions;
25
28
  private screenSpaceEventHandler;
26
29
  private onDrawStartCallback;
27
30
  private onDrawEndCallback;
@@ -139,6 +142,11 @@ declare class DrawHelper {
139
142
  * @returns 格式化后的距离字符串
140
143
  */
141
144
  private formatDistance;
145
+ /**
146
+ * 格式化面积显示
147
+ * @param areaKm2 面积(平方公里)
148
+ */
149
+ private formatArea;
142
150
  /**
143
151
  * 设置开始绘制时的回调函数
144
152
  * @param callback 回调函数
@@ -154,34 +162,6 @@ declare class DrawHelper {
154
162
  * @param callback 回调函数,参数为被移除的实体
155
163
  */
156
164
  onEntityRemoved(callback: (entity: Cesium.Entity) => void): void;
157
- /**
158
- * 绘制监控圆形区域
159
- * @param longitude 经度
160
- * @param latitude 纬度
161
- * @param height 高度
162
- * @param radius 监控范围半径(米)
163
- * @param options 可选配置
164
- */
165
- drawMonitoringCircle(longitude: number, latitude: number, height: number, radius: number, options?: {
166
- borderColor?: string;
167
- fillColor?: string;
168
- borderWidth?: number;
169
- name?: string;
170
- }): Cesium.Entity;
171
- /**
172
- * 绘制垂直线条
173
- * @param longitude 经度
174
- * @param latitude 纬度
175
- * @param height 高度
176
- * @param options 可选配置
177
- */
178
- drawVerticalLine(longitude: number, latitude: number, height: number, options?: {
179
- color?: string;
180
- width?: number;
181
- dashPattern?: number;
182
- name?: string;
183
- groundHeight?: number;
184
- }): Cesium.Entity;
185
165
  /**
186
166
  * 更新所有已完成实体以适应场景模式变化
187
167
  * 当从2D切换到3D或从3D切换到2D时,需要更新实体的高度参考和位置
@@ -20,6 +20,8 @@ export declare class CesiumMapToolbar {
20
20
  mapTypes: MapType[];
21
21
  private noFlyZoneEntities;
22
22
  private isNoFlyZoneVisible;
23
+ private isNoFlyZoneChecked;
24
+ private readonly noFlyZoneExtrudedHeight;
23
25
  private currentGeoWTFS;
24
26
  constructor(viewer: Viewer, container: HTMLElement, config?: ToolbarConfig, callbacks?: {
25
27
  search?: SearchCallback;
@@ -201,6 +203,10 @@ export declare class CesiumMapToolbar {
201
203
  * 隐藏机场禁飞区
202
204
  */
203
205
  hideNoFlyZones(): void;
206
+ /**
207
+ * 根据当前场景模式配置禁飞区多边形
208
+ */
209
+ private createNoFlyZonePolygonOptions;
204
210
  /**
205
211
  * 切换机场禁飞区显示状态
206
212
  */
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingm/vmap-cesium-toolbar",
3
- "version": "0.0.1",
3
+ "version": "0.0.1-alpha.2",
4
4
  "description": "A powerful Cesium map toolbar plugin with drawing, measurement, and interaction features",
5
5
  "type": "module",
6
6
  "main": "index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingm/vmap-cesium-toolbar",
3
- "version": "0.0.1-alpha.1",
3
+ "version": "0.0.1-alpha.3",
4
4
  "description": "A powerful Cesium map toolbar plugin with drawing, measurement, and interaction features",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",