We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在其中新增这段代码,新加200个节点后,再按tab新增节点就会闪缩
function test(){ for(var i=0;i<=200;i++){ data.children.push({ id: '1-1'+i, type: 'topic-branch', label: '分支主题1'+i, width: 100, height: 40, }) } } test()
https://x6.antv.antgroup.com/zh/examples/showcase/practices#mindmap
如何能做到新增节点不闪,只新增节点布局刷新,或者刷新丝滑一些
No response
The text was updated successfully, but these errors were encountered:
@NewByVector 这个有什么解决方案吗
Sorry, something went wrong.
官网例子不太好,用的是全量刷新,复杂度是是O(n)的。其中更新图都是graph.resetCells(cells)来弄的。 建议增删改节点,用局部刷新,复杂度是O(1)。可以使用removeCell、addNode、addEdge等来删除单元、添加节点和边。 具体看例子:examples/x6-example-features/src/pages/case/mind.tsx
@qiufeihong2018 而你,才是真正的英雄!!!
No branches or pull requests
问题描述
在其中新增这段代码,新加200个节点后,再按tab新增节点就会闪缩
function test(){ for(var i=0;i<=200;i++){ data.children.push({ id: '1-1'+i, type: 'topic-branch', label: '分支主题1'+i, width: 100, height: 40, }) } } test()
重现链接
https://x6.antv.antgroup.com/zh/examples/showcase/practices#mindmap
重现步骤
https://x6.antv.antgroup.com/zh/examples/showcase/practices#mindmap
预期行为
如何能做到新增节点不闪,只新增节点布局刷新,或者刷新丝滑一些
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: