Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RackweLLizm opened this issue May 29, 2024 · 1 comment

Comments

@RackweLLizm
Copy link

问题描述

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

@Aarebecca
Copy link
Contributor

You can get the connected edges by Graph.getRelatedEdgesData

(event) => {
  graph.getRelatedEdgesData(event.target.id);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants