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

在一个较大元素的内部使用manhattan路由连接两个节点时会导致路由回退至orth #4469

Open
ppmmwozuiai opened this issue Oct 17, 2024 · 0 comments

Comments

@ppmmwozuiai
Copy link

ppmmwozuiai commented Oct 17, 2024

Describe the bug

在一个较大元素的内部使用manhattan路由连接两个节点时会导致路由回退至orth

Your Example Website or App

https://codesandbox.io/p/sandbox/swso1x

Steps to Reproduce the Bug or Issue

1.使用x6官方流程图示例
2.额外制作一个元素作为容器或者框体(例如泳道)
3.创建两个节点并连接
4.将两个节点移入泳道内

image

manhattan路由

image

manhattan路由回退至orth路由

我想可能是manhattan路由将泳道当作了障碍,但由于边线两端的节点位于泳道内无法避开所以manhattan回退到了orth路由;

然而如果将该泳道作为Group则不会发生路由回退,但是这样做边线两端的节点失去了独立性,泳道移动时其内部节点也会跟着移动。

还有其他类似的情况(如下图)
image

很显然,有的元素并不意图在画面中占有一席之地,只是用于分割画面不同区域,也被manhattan路由视为了障碍,如果无法绕开也会发生回退。

由上面的问题似乎引出了另一个问题,那就是orth路由似乎并不会根据连接桩在节点上的位置选择合适的路线(如下图)。
image

Expected behavior

是否有机制或者配置选项可以设定哪些节点manhattan路由不需要避让

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 2.11.1]

Additional context

No response

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