@xingm/vmap-cesium-toolbar 0.0.2-alpha.12 → 0.0.2-alpha.13

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.
@@ -162,6 +162,10 @@ declare class DrawHelper {
162
162
  * @param entity 要删除的实体
163
163
  */
164
164
  removeEntity(entity: Cesium.Entity): void;
165
+ /**
166
+ * 获取某个绘制实体关联的标签实体(例如面积标签)
167
+ */
168
+ getEntityLabelEntities(entity: Cesium.Entity): Cesium.Entity[];
165
169
  /**
166
170
  * 获取所有已完成的实体
167
171
  * @returns 实体数组
@@ -31,6 +31,8 @@ export type DrawEntity = Entity & {
31
31
  _groundRectangle?: Cesium.Rectangle;
32
32
  _radius?: number;
33
33
  _borderEntity?: Entity;
34
+ /** 关联的测量/提示标签实体(例如面积标签) */
35
+ _labelEntities?: Entity[];
34
36
  _onClick?: (entity: Entity, ...args: any[]) => void;
35
37
  _isSelected?: boolean;
36
38
  _originalStyle?: {
@@ -55,6 +57,8 @@ export interface DrawOptions {
55
57
  outlineColor?: Cesium.Color | string;
56
58
  outlineWidth?: number;
57
59
  };
60
+ /** 是否显示面积标签(多边形/矩形)。默认 true */
61
+ showAreaLabel?: boolean;
58
62
  onClick?: (entity: Entity, type?: "line" | "polygon" | "rectangle" | "circle", positions?: Cartesian3[]) => void;
59
63
  }
60
64
  /**
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xingm/vmap-cesium-toolbar",
3
- "version": "0.0.2-alpha.12",
3
+ "version": "0.0.2-alpha.13",
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.2-alpha.12",
3
+ "version": "0.0.2-alpha.13",
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",