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.
- package/js/glbInfoBadge.js +18 -17
- package/package.json +1 -1
package/js/glbInfoBadge.js
CHANGED
|
@@ -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:
|
|
42
|
-
padding:
|
|
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
|
|
48
|
-
0 0
|
|
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(
|
|
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:
|
|
65
|
-
height:
|
|
64
|
+
width: 5px;
|
|
65
|
+
height: 5px;
|
|
66
66
|
border-radius: 50%;
|
|
67
67
|
flex-shrink: 0;
|
|
68
|
-
box-shadow: 0 0
|
|
68
|
+
box-shadow: 0 0 5px currentColor;
|
|
69
69
|
}
|
|
70
70
|
.glb-info-badge-text {
|
|
71
|
-
font-size:
|
|
71
|
+
font-size: 10px;
|
|
72
72
|
font-weight: 600;
|
|
73
|
-
|
|
73
|
+
line-height: 1;
|
|
74
|
+
letter-spacing: 0.06em;
|
|
74
75
|
color: #e8f7ff;
|
|
75
|
-
text-shadow: 0 0
|
|
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:
|
|
81
|
-
border-left:
|
|
82
|
-
border-right:
|
|
83
|
-
border-top:
|
|
84
|
-
filter: drop-shadow(0 0
|
|
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);
|