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

Edge/router中ExcludeNodes在fromJson后似乎失效 #4331

Open
Yeti-xxx opened this issue Jun 1, 2024 · 1 comment
Open

Edge/router中ExcludeNodes在fromJson后似乎失效 #4331

Yeti-xxx opened this issue Jun 1, 2024 · 1 comment

Comments

@Yeti-xxx
Copy link

Yeti-xxx commented Jun 1, 2024

问题描述

通过配置excludeNodes可以规避线条在连接时异常的问题,但当我页面刷新通过fromJson(cells)再次渲染画布内容时,excludeNodes似乎失效,线条连接出现异常

重现链接

暂无

重现步骤

1.为createEdge/router/excludeNodes赋值
2.连接线条
3.保存画布数据为cells
4.刷新页面并通过graph.fromJson(cells)还原之前的画布内容

预期行为

希望excludeNodes在fromJson后能够正常帮助线条规避需要忽视的障碍物,但目前似乎在fromJson这个功能异常。

平台

  • 操作系统: [Windows10]
  • 网页浏览器: [Google Chrome 125.0.6422.114]
  • X6 版本: [2.18.1 ...]

屏幕截图或视频(可选)

image
image

补充说明(可选)

我目前在代码中的处理为fromJson()为每条edge重新设置excludeNodes
image

@x6-bot
Copy link
Contributor

x6-bot bot commented Jun 1, 2024

👋 @Yeti-xxx

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

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

1 participant