antvis/G6

node:click event does not provide information about edges connected to the node. #5783

RackweLLizm posted onGitHub

问题描述

I was previously using G6 with Graphin and when I clicked on a node, I could see the edges connected to the node in the model. Currently, when I click on a node in the G6 v5Beta version, I cannot see which edges are connected to this node. Is there something I missed? Ekran görüntüsü 2024-05-29 105402

重现链接

notFound

重现步骤

notFound

预期行为

When you click on the node, the edges connected to the node should be visible.

平台

  • 操作系统: Windows]
  • 网页浏览器: [Google Chrome]
  • G6 版本: [v5 beta ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


You can get the connected edges by Graph.getRelatedEdgesData

(event) => {
  graph.getRelatedEdgesData(event.target.id);
}
posted by Aarebecca 11 months ago

Fund this Issue

$0.00
Funded

Pull requests