antvis/G6

如何让跨层级的edge与父子层级的edge重合 #4147

donghuizhou posted onGitHub

问题描述

如下图所示,dagre布局,defaultEdge: { type: 'polyline' },图中蓝色线是从【第三层的节点连到了第五层的节点】,但是它的走线却没有和【第三层节点连到第四层节点的连线】重合,而是另外的走线,显得不好看,如何优化 image

重现链接

重现步骤

如图

预期行为

预期如下图,【跨层级的连线】能和【不跨层级的连线】有部分重合, image

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。

posted by github-actions[bot] 11 months ago

Fund this Issue

$0.00
Funded

Pull requests