Politur: Praeziserer Klickbereich (nodeVal) fuer Graphen-Knoten und Entkoppelung der Detail-Sicht von Listen-Filtern
This commit is contained in:
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user