huweili-cesium 1.2.20 → 1.2.22

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.
@@ -94,7 +94,7 @@ export function dronePlannedRouteConfig() {
94
94
  const lineColor = options.lineColor || DEFAULT_LINE_COLOR
95
95
  const lineWidth = Number(options.lineWidth) || DEFAULT_LINE_WIDTH
96
96
  const showWaypointLabels = options.showWaypointLabels !== false
97
- const waypointPixelSize = Number(options.waypointPixelSize) || 10
97
+ const waypointPixelSize = Number(options.waypointPixelSize) || 6
98
98
  const color = Cesium.Color.fromCssColorString(lineColor)
99
99
 
100
100
  const positions = normalized.map((wp) =>
@@ -141,7 +141,7 @@ export function dronePlannedRouteConfig() {
141
141
  label: showWaypointLabels
142
142
  ? {
143
143
  text: `航点${i + 1}`,
144
- font: '14px Microsoft YaHei, sans-serif',
144
+ font: '10px Microsoft YaHei, sans-serif',
145
145
  fillColor: Cesium.Color.WHITE,
146
146
  outlineColor: Cesium.Color.BLACK,
147
147
  outlineWidth: 2,
package/js/labelDiv.js CHANGED
@@ -323,6 +323,11 @@ export function labelDiv() {
323
323
  return; // 如果已存在,直接返回,不创建新的
324
324
  }
325
325
 
326
+ // 机巢无人机不允许打开详情面板和拖拽
327
+ if (status === DroneStatus.MACHINE_NEST) {
328
+ return;
329
+ }
330
+
326
331
  new_detailDivLeft = null;
327
332
  new_detailDivTop = null;
328
333
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huweili-cesium",
3
- "version": "1.2.20",
3
+ "version": "1.2.22",
4
4
  "description": "基于 Cesium 的地图工具库(无人机态势、轨迹、围栏、工具栏等)",
5
5
  "type": "module",
6
6
  "main": "./index.js",