G6 icon indicating copy to clipboard operation
G6 copied to clipboard

解决折线重叠,避开节点,出现递归调用错误

Open xwaptx4869 opened this issue 2 years ago • 5 comments

G6 版本

4.x

问题描述

使用自定义节点,折线与节点重叠,通过布局完成钩子函数更新节点数据 image

自定义节点折叠展开(官网示例,决策树): image

二者共存时,点击折叠会引发递归错误(先点展开无误,先点折叠报错,再展开也报错),请问如何解决? image

重现链接

no

重现步骤

更新节点边配置与折叠展开共存时 点击折叠、展开

预期行为

无错误

平台

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

屏幕截图或视频(可选)

https://github.com/antvis/G6/assets/36848753/d34bce8c-a837-41de-8956-1a034167c77c

补充说明(可选)

No response

xwaptx4869 avatar Dec 13 '23 10:12 xwaptx4869

hi @xwaptx4869, welcome!

github-actions[bot] avatar Dec 13 '23 10:12 github-actions[bot]

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

github-actions[bot] avatar Dec 13 '23 10:12 github-actions[bot]

https://codesandbox.io/s/laughing-kare-l8pzhn?file=/index.js

xwaptx4869 avatar Dec 14 '23 08:12 xwaptx4869

在线复现地址已更新

xwaptx4869 avatar Dec 14 '23 08:12 xwaptx4869

在线复现地址已更新

你好,这个demo不可用。

Aarebecca avatar Dec 20 '23 03:12 Aarebecca

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。

github-actions[bot] avatar Jul 05 '24 03:07 github-actions[bot]