antvis/G6

[Bug]: 脑图树register注册展开收起的时候,高亮相邻节点的高亮效果不会消失 #6933

worldstop posted onGitHub

Describe the bug / 问题描述

点击展开收起,高亮相邻节点的高亮效果不会消失,需要重新鼠标移入移出

No response

Steps to Reproduce the Bug or Issue / 重现步骤

js behaviors: [ { type: 'hover-activate', enable: (event) => event.targetType === 'node', degree: 2, // 👈🏻 Activate relations. state: 'highlight', animation:false, inactiveState: 'dim', }, ], 把这段代码添加到G6场景案例中的资金流向

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

好,我们这边看下

posted by yvonneyx 28 days ago

在点击展开收起图标时手动触发:

graph.emit(NodeEvent.POINTER_LEAVE, { targetType: 'node', target: { id: this.id },});
posted by yvonneyx 28 days ago

Fund this Issue

$0.00
Funded

Pull requests