antvis/G6

fitview/fitcenter 整个图会显示异常 #5284

MingTang-cn posted onGitHub

G6 版本

4.x

问题描述

在添加node/edge后使用fitview/fitcenter 调整到中心位置时整个layout会向右偏移(我本地环境,codesandbox显示不正常),移除node时使用又响应正常。 如下图(勾选上方sss复选框会执行添加操作,取消勾选是移除):

PixPin_2023-12-20_15-50-01

移除fitview/fitcenter后看起来可以了。目前去掉了。

还有个问题,这些添加的node我怎么样设置可以左边的2个锚点上的节点和右边的节点互不干扰,边也不重叠? 下面是预期效果:

PixPin_2023-12-20_18-17-38

重现链接

https://codesandbox.io/p/devbox/busy-hoover-w9cnjc

重现步骤

点击Add node添加node, 点击Remove All移除所有刚才添加的node.

预期行为

fitview/fitcenter异常响应正常。

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome]
  • G6 版本: [4.8.21 ]

屏幕截图或视频(可选)

No response

补充说明(可选)

配置是否正确?有无其他参考案例?


hi @MingTang-cn, welcome!

posted by github-actions[bot] over 1 year ago

Hi @MingTang-cn, Please star this repo if you find it useful! Thanks :star:! 你好 @MingTang-cn。如果该仓库对你有用,可以 star 一下,感谢你的 :star:!

posted by github-actions[bot] over 1 year ago

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] 10 months ago

Fund this Issue

$0.00
Funded

Pull requests