antvis/G6

使用updateChildren更新子节点会导致画布位移 #4731

799531161 posted onGitHub

问题描述

使用updateChildren更新子节点会导致画布位移,如果我用graph.focusItem不是原来得画布位置 使用graph.focusItem(model.id, true)配合graph.getGroup().setMatrix(getMatrix);有一瞬间得画布拖拉感觉,如果解决

重现链接

https://

重现步骤

点击节点使用updateChildren更新子树

预期行为

画布发生严重位移,期望画布位置保持点击时得

平台

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

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


给个在线复现demo?

posted by Yanyan-Wang almost 2 years 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