huweili-cesium 1.2.98 → 1.2.99

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/glbInfoBadge.js +18 -17
  2. package/package.json +1 -1
@@ -7,7 +7,7 @@
7
7
  import * as Cesium from 'cesium'
8
8
  import { getDroneLabelBatchManager } from './cardPool'
9
9
 
10
- const STYLE_ID = 'glb-info-badge-style'
10
+ const STYLE_ID = 'glb-info-badge-style-v2'
11
11
  const DEFAULT_LABEL_OFFSET = 1
12
12
  const DEFAULT_PIXEL_GAP = 0
13
13
  const DEFAULT_HEIGHT_SCALE = 0.72
@@ -38,16 +38,16 @@ const ensureGlbInfoBadgeStyle = () => {
38
38
  position: relative;
39
39
  display: inline-flex;
40
40
  align-items: center;
41
- gap: 6px;
42
- padding: 4px 12px 4px 10px;
41
+ gap: 4px;
42
+ padding: 2px 8px 2px 6px;
43
43
  border-radius: 999px;
44
44
  background: linear-gradient(135deg, rgba(8, 20, 40, 0.92) 0%, rgba(12, 32, 58, 0.88) 100%);
45
45
  border: 1px solid rgba(0, 229, 255, 0.45);
46
46
  box-shadow:
47
- inset 0 0 12px rgba(0, 229, 255, 0.08),
48
- 0 0 16px rgba(0, 229, 255, 0.15);
47
+ inset 0 0 8px rgba(0, 229, 255, 0.08),
48
+ 0 0 10px rgba(0, 229, 255, 0.15);
49
49
  overflow: hidden;
50
- backdrop-filter: blur(6px);
50
+ backdrop-filter: blur(4px);
51
51
  white-space: nowrap;
52
52
  }
53
53
  .glb-info-badge-scan {
@@ -61,27 +61,28 @@ const ensureGlbInfoBadgeStyle = () => {
61
61
  pointer-events: none;
62
62
  }
63
63
  .glb-info-badge-dot {
64
- width: 8px;
65
- height: 8px;
64
+ width: 5px;
65
+ height: 5px;
66
66
  border-radius: 50%;
67
67
  flex-shrink: 0;
68
- box-shadow: 0 0 8px currentColor;
68
+ box-shadow: 0 0 5px currentColor;
69
69
  }
70
70
  .glb-info-badge-text {
71
- font-size: 12px;
71
+ font-size: 10px;
72
72
  font-weight: 600;
73
- letter-spacing: 0.08em;
73
+ line-height: 1;
74
+ letter-spacing: 0.06em;
74
75
  color: #e8f7ff;
75
- text-shadow: 0 0 6px rgba(0, 229, 255, 0.5);
76
+ text-shadow: 0 0 4px rgba(0, 229, 255, 0.5);
76
77
  }
77
78
  .glb-info-badge-pointer {
78
79
  width: 0;
79
80
  height: 0;
80
- margin: 2px auto 0;
81
- border-left: 5px solid transparent;
82
- border-right: 5px solid transparent;
83
- border-top: 6px solid rgba(0, 229, 255, 0.55);
84
- filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.4));
81
+ margin: 1px auto 0;
82
+ border-left: 4px solid transparent;
83
+ border-right: 4px solid transparent;
84
+ border-top: 5px solid rgba(0, 229, 255, 0.55);
85
+ filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.4));
85
86
  }
86
87
  .glb-info-badge.is-online .glb-info-badge-inner {
87
88
  border-color: rgba(0, 255, 170, 0.55);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "huweili-cesium",
3
- "version": "1.2.98",
3
+ "version": "1.2.99",
4
4
  "description": "基于 Cesium 的地图工具库(无人机态势、轨迹、围栏、工具栏等)",
5
5
  "type": "module",
6
6
  "main": "./index.js",