-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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路由如何智能的布局 #2639
Comments
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. |
试试使用port,每个节点只有上下两个port,这样再布局出来的结构或许就和你画的一样了。 |
但是如果设定port的话,现在有nodeA和nodeB,nodeA的右port指向 nodeB 的左port,如果我把nodeA拖拽到nodeB的右侧,那nodeA的右port出来的线就会绕一大圈,指向nodeB的左port。有没有更加智能的方法规划node之间的连线
|
@donghuizhou 可以使用 targetAnchor 将连线的目标连接点固定在节点上方。targetAnchor 的配置参考 https://x6.antv.vision/zh/docs/api/registry/node-anchor |
这里是知道了我图上节点是这样排列的,所以可以设置targetNode的anchor。但实际情况下,比如下图中,如果targetNodes在SourceNode下面,并且他们离sourceNode分的比较开,x6默认将会是下面这样连线 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
问题描述
上图中左侧部分节点使用dagre布局,edge路由使用 【manhattan】,但是edge连线并非想要的,希望效果是上图右侧部分(PS.手绘糙了点,实际应该是水平垂直的连线)
重现链接
none
重现步骤
none
预期行为
none
平台
none
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: