mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 23:24:44 +02:00
fix(dashboard): edges not interactive, only nodes trigger hover/dim
- Added blur config for dimmed state (opacity 0.15 for nodes, 0.04 for edges) - Added scale effect on node hover (1.1x) - Explicit edgeSymbol: none to disable edge markers - Only nodes are interactive: hover, click, tooltip - Edges have no hover effect, no tooltip, no click handler Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
4625740057
commit
ef7a63fb70
1 changed files with 13 additions and 1 deletions
|
|
@ -187,11 +187,21 @@ export default function TopologyGraph({
|
||||||
edgeLength: [80, 120],
|
edgeLength: [80, 120],
|
||||||
gravity: 0.1,
|
gravity: 0.1,
|
||||||
},
|
},
|
||||||
|
// Only nodes trigger hover/click - edges are not interactive
|
||||||
emphasis: {
|
emphasis: {
|
||||||
focus: 'adjacency',
|
focus: 'adjacency',
|
||||||
blurScope: 'coordinateSystem',
|
blurScope: 'coordinateSystem',
|
||||||
|
scale: 1.1,
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
width: 3,
|
width: 2,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
blur: {
|
||||||
|
itemStyle: {
|
||||||
|
opacity: 0.15,
|
||||||
|
},
|
||||||
|
lineStyle: {
|
||||||
|
opacity: 0.04,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
|
|
@ -204,6 +214,8 @@ export default function TopologyGraph({
|
||||||
edgeLabel: {
|
edgeLabel: {
|
||||||
show: false,
|
show: false,
|
||||||
},
|
},
|
||||||
|
// Edges not interactive - no hover, no tooltip, no click
|
||||||
|
edgeSymbol: ['none', 'none'],
|
||||||
// Selection styling handled via data opacity
|
// Selection styling handled via data opacity
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue