-
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
[x6-plugin-selection]: When the canvas is scaled(graph enable panning), the highlight box will be out of place sometimes. #3907
Comments
我定位了一下,根因在于 |
我看了下代码,确实是,如果插入dom能保证原始顺序应该就没问题了。不过我有点疑惑,纯粹更新样式的话,根本不用删除再添加吧? |
同样问题,下一版能修复下吗 |
Co-authored-by: cluezhang <[email protected]>
大佬已经修复了,等版本发布吧 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
Describe the bug
See figure GIF below
As u can see, When the canvas is scaled, the highlight box will be out of place sometimes
Your Example Website or App
Sorry, because this is from company, i can't get the code.
Steps to Reproduce the Bug or Issue
1.enable graph panning.
2.use x6-plugin-selection.
3.select some nodes.
4.scale.
Expected behavior
I find the problem is because of the plugin's source code.
When called
confirmUpdate
function, plugin will remove the selection box then create a new box. This is not right.And i change the code by adding a
onlyUpdateSelectionBoxCss
function, and drop the remove way. Problem is solved. But I'm not sure if this is ok?Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: