antvis/G6


The issue has been closed
[Bug]: When the 'opacity' property is set to the state of a node, the state of the node is not restored after the 'hover-activate' event ends #6700
zh-lx posted onGitHub
Describe the bug / 问题描述
给 inactiveState
的状态设置了 opacity: 0.3
属性,hover-activate
事件结束后,节点还是保持 opacity: 0.3
无法复原
<img width="1519" alt="image" src="https://github.com/user-attachments/assets/609faaae-f7ea-4ebb-ad6e-c962d545c7c8" />
Reproduction link / 复现链接
https://g6.antv.antgroup.com/en/examples/behavior/highlight-element#config-params
Steps to Reproduce the Bug or Issue / 重现步骤
- 打开上述官网的复现链接
- 如下图所示修改
dim
中的代码为opacity: 0.3
,鼠标 Hover 到一个节点然后移出,发现其他节点的opacity: 0.3
无法复原
<img width="1519" alt="image" src="https://github.com/user-attachments/assets/609faaae-f7ea-4ebb-ad6e-c962d545c7c8" />
G6 Version / G6 版本
🆕 5.x
OS / 操作系统
- macOS
- Windows
- Linux
- Others / 其他
Browser / 浏览器
- Chrome
- Edge
- Firefox
- Safari (Limited support / 有限支持)
- IE (Nonsupport / 不支持)
- Others / 其他