Skip to content
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

多选移动后,图形相对位置有稍许偏差 #2332

Open
MrMengJ opened this issue Jul 8, 2022 · 5 comments
Open

多选移动后,图形相对位置有稍许偏差 #2332

MrMengJ opened this issue Jul 8, 2022 · 5 comments
Labels
bug:selection selection plugin bug v2.0 will fix in v2.0

Comments

@MrMengJ
Copy link
Contributor

MrMengJ commented Jul 8, 2022

问题描述

多选移动后,图形之间的相对位置有稍许偏差

重现链接

https://codesandbox.io/s/funny-ishizaka-sz5m49

重现步骤

1、进入页面点击"log cells position"按钮,控制台打印当前图形的位置
2、多选移动图形后,再次打印图形位置
3、位置发生偏差

预期行为

位置不发生偏差

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome]
  • X6 版本: [1.32.7]

屏幕截图或视频(可选)

多选后相对位置发生偏移

补充说明(可选)

如上图所示,World位置变成312了,有2像素偏差

@lloydzhou
Copy link
Contributor

测试了一遍,还添加了一个节点进行测试:

发现多个图形选中并且拖动之后(实际观察,拖动过程中就已经出现这个问题)
只有一个节点的选框会紧挨着整个group的选框。
其他的节点都会多出来两个像素往后挪两个像素。

image

@NewByVector NewByVector added the type: bug 缺陷 Defects and unexpected behaviors label Jul 9, 2022
@NewByVector NewByVector added the v2.0 will fix in v2.0 label Sep 4, 2022
@damnright
Copy link
Contributor

此问题在新的版本依旧存在

@NewByVector NewByVector added bug:selection selection plugin bug and removed type: bug 缺陷 Defects and unexpected behaviors labels Jan 30, 2023
@MrMengJ
Copy link
Contributor Author

MrMengJ commented Mar 27, 2023

请问这个问题现在有进展吗

@maqingbo
Copy link

maqingbo commented May 9, 2024

感觉拖动多个 node 时偏差还算小的,不太能看出来。拖动多个 edge 时偏差太大了,完全不能用。

是需要什么特殊处理吗?希望有遇到过的朋友给点意见😃

river

@damnright
Copy link
Contributor

following设为false可以规避。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:selection selection plugin bug v2.0 will fix in v2.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants