-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
拖动节点(含大量子节点)不断重绘,性能问题如何解决? #3449
Labels
bug:selection
selection plugin bug
Comments
同问,我在使用2.0遇到同样问题.50个左右的节点一起推动就开始卡顿了 |
2.x 还有大批量节点进行缩放的时候有些困顿, 使用scrollbar 组件左右移动也有点 FPS下降 |
@lhC0 v1 版本 React 组件渲染优化可以参考文档 渲染 React 节点 - 决定渲染频次。 |
你把showNodeSelectionBox和showEdgeSelectionBox配置设置为false再试试,设置为false后框选不会显示选中框,但可以拖动,性能会提高很多倍,这里开启后会大量重绘选中框,导致性能下降 |
NewByVector
added
bug:selection
selection plugin bug
and removed
type: bug 缺陷
Defects and unexpected behaviors
labels
Oct 12, 2023
其他软件的selection的做法都是在拖动过程中隐藏选择框,在拖拽结束(onMouseUp)时再展示, x6是否也可以采用这个方法? @NewByVector |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
拖动节点(含大量子节点),造成大量节点不断重绘,拖动过程中卡顿明显
重现链接
暂无
重现步骤
预期行为
像拖动画布一样顺畅
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: