From b63fc980f953839c4d2bd3ad36711bb746fe7282 Mon Sep 17 00:00:00 2001 From: fukunee Date: Sat, 19 Sep 2026 01:42:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E8=AE=B0=E4=BE=BF=E7=AD=BE=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E7=BA=B8=E5=BC=A0=E9=BB=84=E3=80=81=E9=BB=91=E5=AD=97?= =?UTF-8?q?=E5=8A=A0=E7=B2=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/scene/CesiumGlobe.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/scene/CesiumGlobe.js b/src/scene/CesiumGlobe.js index 73584e3..b7bad7b 100644 --- a/src/scene/CesiumGlobe.js +++ b/src/scene/CesiumGlobe.js @@ -41,7 +41,7 @@ function makeRoundedBg(text, fontSize) { const padX = 12, padY = 7, radius = 10; const m = document.createElement('canvas'); const mctx = m.getContext('2d'); - mctx.font = `${fontSize}px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif`; + mctx.font = `bold ${fontSize}px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif`; const textW = mctx.measureText(text).width; const w = Math.max(1, Math.ceil(textW + padX * 2)); const h = Math.ceil(fontSize + padY * 2); @@ -56,10 +56,10 @@ function makeRoundedBg(text, fontSize) { ctx.arcTo(0, h, 0, 0, radius); ctx.arcTo(0, 0, w, 0, radius); ctx.closePath(); - ctx.shadowColor = 'rgba(0, 0, 0, 0.22)'; - ctx.shadowBlur = 6; - ctx.shadowOffsetY = 2; - ctx.fillStyle = '#FFEB3B'; + ctx.shadowColor = 'rgba(0, 0, 0, 0.18)'; + ctx.shadowBlur = 4; + ctx.shadowOffsetY = 1; + ctx.fillStyle = '#FFF9A6'; ctx.fill(); return { canvas: c, textW }; } @@ -189,7 +189,7 @@ export class CesiumGlobe { }, label: { text: entry.name, - font: '19px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif', + font: 'bold 19px "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif', fillColor: ink, style: Cesium.LabelStyle.FILL, horizontalOrigin: Cesium.HorizontalOrigin.LEFT,