feat: 热点穿透股票球最小间隔4px改为6px

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Sakurasan
2026-08-11 20:12:09 +08:00
co-authored by Claude
parent 90569918a3
commit 8cf4c40e2b
+2 -2
View File
@@ -815,9 +815,9 @@ function HotMapGraph({ graph }: { graph: ThemeGraph }) {
)
.force("charge", forceManyBody<SimNode>().strength((d) => (d.type === "theme" ? -650 : -35)))
.force("center", forceCenter(size.w / 2, size.h / 2))
// 题材节点留出标签高度防文字重叠(标签在节点下方)
// 题材节点留出标签高度防文字重叠(标签在节点下方);股票节点留 6px 最小间隔
.force("collide", forceCollide<SimNode>().radius((d) =>
d.type === "theme" ? d.radius + (isCoarse ? 20 : 16) : d.radius + 4,
d.type === "theme" ? d.radius + (isCoarse ? 20 : 16) : d.radius + 6,
));
simRunningRef.current = true;