G6 icon indicating copy to clipboard operation
G6 copied to clipboard

使用addItem添加节点的时候,添加的节点位置错乱

Open daisy0123 opened this issue 1 year ago • 1 comments

Describe the bug

当前使用的布局是 type: "dagre", rankdir: "LR", align: "UL", controlPoints: true, nodesep: 10, ranksep: 50, 当使用addItem 添加节点后,节点不是根据新增节点的source起点绘制,而是在容器的开头绘制了。 image

Your Example Website or App

Steps to Reproduce the Bug or Issue

如上

Expected behavior

希望不要错乱,希望是如图下: image

Screenshots or Videos

No response

Platform

  • OS: [macOS
  • Browser: Chrome
  • Version: 103.0.5060.134

Additional context

No response

daisy0123 avatar Aug 03 '22 13:08 daisy0123

请提供在线复现 demo

Yanyan-Wang avatar Aug 19 '22 08:08 Yanyan-Wang

尊敬的用户,您好。我们很重视您的 issue,但由于长时间没有答复,我们暂时认为这个问题已经解决。如果还有任何问题,请随时根据 issue 模版再开启新的 issue。

Yanyan-Wang avatar Nov 25 '22 08:11 Yanyan-Wang

尊敬的用户,您好。我们很重视您的 issue,但由于长时间没有答复,我们暂时认为这个问题已经解决。如果还有任何问题,请随时根据 issue 模版再开启新的 issue。

https://codesandbox.io/s/keen-wilbur-h96u4n?file=/index.js 你好麻烦帮忙看看,这个之前有g6的同事帮忙解决了,目前4.6.18版本是没有问题的,但是新版本有问题,应该是4.6.18版本的代码没有更新到最新版本

daisy0123 avatar Jul 11 '23 03:07 daisy0123