feat: 热点穿透股票球最小间隔4px改为6px
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user