From 6d46d51685ce0f4bf60c2d1dafa7c1cf912af219 Mon Sep 17 00:00:00 2001 From: fukunee Date: Sat, 19 Sep 2026 17:41:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=8D=E6=9D=A1=E4=BE=BF=E7=AD=BE=E6=95=B4?= =?UTF-8?q?=E4=BD=93=E7=BC=A9=E5=B0=8F=EF=BC=8C=E5=9C=86=E8=A7=92=E6=9B=B4?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scene/CesiumGlobe.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index 7b95079..fb05964 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -55,7 +55,7 @@ function sphericalAreaKm2(polys) { // 生成便签 canvas:黄底圆角 + 左侧箭头 + 黑色加粗文字(整张图,箭头尖端指向坐标) // 选中态:先描粗边再填充,得到一条干净的 2px 外描边(四周预留 B 的 padding 防止裁切) function makeStickyNote(text, fontSize, selected = false) { - const padX = 8, padY = 5, radius = 4, arrowW = 13, arrowH = 16, S = 2, B = 2; // S: 2x 超采样,B: 边框预留 + const padX = 7, padY = 4, radius = 2, arrowW = 11, arrowH = 14, S = 2, B = 2; // S: 2x 超采样,B: 边框预留 const font = `bold ${fontSize}px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif`; const m = document.createElement('canvas'); const mctx = m.getContext('2d'); @@ -324,8 +324,8 @@ export class CesiumGlobe { _buildMarkers() { ENTRIES.forEach((entry, i) => { const position = Cesium.Cartesian3.fromDegrees(entry.lng, entry.lat); - const noteNormal = makeStickyNote(entry.name, 16, false); - const noteSelected = makeStickyNote(entry.name, 16, true); + const noteNormal = makeStickyNote(entry.name, 14, false); + const noteSelected = makeStickyNote(entry.name, 14, true); this.markers.push({ lng: entry.lng, lat: entry.lat,