Politur: Praeziserer Klickbereich (nodeVal) fuer Graphen-Knoten und Entkoppelung der Detail-Sicht von Listen-Filtern

This commit is contained in:
Hitonabi
2026-07-09 12:33:22 +02:00
parent 90d8a7d56d
commit 64f45ed0ff
5 changed files with 42 additions and 37 deletions
+5 -1
View File
@@ -152,9 +152,13 @@ export function GraphView({ data, selectedNodeId, onNodeSelect }: {
height={dimensions.height}
graphData={graphData}
backgroundColor="rgba(0,0,0,0)"
nodeRelSize={4}
cooldownTicks={120}
// Hit-Detection an die gezeichnete Knotengröße anpassen
nodeVal={(node: any) => {
return 6 + Math.min(degree[node.id] || 0, 15) * 0.8
}}
// Hover- und Klick-Logik
onNodeClick={(node: any) => onNodeSelect(node.id)}
onBackgroundClick={() => onNodeSelect(null)}