antvis/G6

G6 脑图changeData()更新数据之后 无法拖拽,控制台有报错 #5102

huifeidekaola posted onGitHub

问题描述

<img width="502" alt="image" src="https://github.com/antvis/G6/assets/44389022/2cd7d73f-0240-4f9b-b402-0055c14def61"> 在使用changeData()更新数据之后,对脑图进行删除节点,无法拖拽脑图,控制台报错如下 数据确认是没问题的;看着报错觉得是视图更新的问题,求助解答。

重现链接

重现步骤

1.

预期行为

期望可以正常拖拽

平台

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

屏幕截图或视频(可选)

1698815916433

补充说明(可选)

No response


hi @huifeidekaola, welcome!

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

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

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

更新数据之后看到了控制台的这两个提示 image

image

posted by huifeidekaola over 1 year ago

从报错来看,是不是树图没有配置 layout?树图必须要配置布局哈。还有可以检查一下数据里面每个节点都有唯一的 string id 吗。都没有问题的话,给个在线复现 demo 看看吧

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