From dfcce3abaf891126a843e93db86534f3f9459ce3 Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Tue, 11 Aug 2026 00:50:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=80=E6=9C=89=E8=82=A1=E7=A5=A8?= =?UTF-8?q?=E5=B0=8F=E7=90=83=E7=BB=9F=E4=B8=80=E5=85=89=E6=99=95=E5=BC=BA?= =?UTF-8?q?=E5=BA=A6=EF=BC=8C=E6=B6=A8=E7=BA=A2=E5=85=89=E6=99=95/?= =?UTF-8?q?=E8=B7=8C=E7=BB=BF=E5=85=89=E6=99=95=E6=9B=B4=E6=98=8E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 光晕透明度不再乘覆盖数 alpha(覆盖1的股票 alpha=0.45 导致光晕过淡), 改为所有股票统一 0.5 强度,高亮淡出时降为 0.06。 Co-Authored-By: Claude --- src/routes/hot-map.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/hot-map.tsx b/src/routes/hot-map.tsx index 56a1055..aca0ffb 100644 --- a/src/routes/hot-map.tsx +++ b/src/routes/hot-map.tsx @@ -394,11 +394,11 @@ function drawStockNodes( const r = isActive ? n.radius + 3 : n.radius; const pr = r * (1 + heartbeat * PULSE_AMPLITUDE); - // 涨跌光晕:随心跳脉动的径向渐变,正=红 / 负=绿 + // 涨跌光晕:所有股票统一强度(不随覆盖数 alpha 衰减),随心跳脉动,正=红 / 负=绿 const glowColor = isPos ? "rgba(239,68,68," : "rgba(34,197,94,"; // 红/绿 const glowR = pr * 1.9; const glow = ctx.createRadialGradient(x, y, pr * 0.2, x, y, glowR); - glow.addColorStop(0, `${glowColor}${0.28 * alpha})`); + glow.addColorStop(0, `${glowColor}${dim ? 0.06 : 0.5})`); glow.addColorStop(1, `${glowColor}0)`); ctx.beginPath(); ctx.arc(x, y, glowR, 0, TAU);