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

[V5] React自定义节点缩放后再进行拖拽,连线位置错误 #5781

Closed
liwx2000 opened this issue May 29, 2024 · 5 comments
Closed
Labels

Comments

@liwx2000
Copy link

问题描述

React实现自定义节点,画布缩放后,再对任意React自定义节点进行拖拽操作,节点间的连线位置会错乱。

重现链接

https://g6-next.antv.antgroup.com/zh/examples/element/custom-node/#react-node

重现步骤

  1. 用React实现自定义节点,渲染两个点和两个点之间的边
  2. graph开启zoom-canvas和drag-element的行为
  3. 对画布进行缩放操作
  4. 拖拽节点,观察节点间连线

预期行为

预期连线两端的点始终保持在节点上,实际连线两端指向空白位置。官方示例:https://g6-next.antv.antgroup.com/zh/examples/element/custom-node/#react-node,按步骤操作就可以复现问题。

平台

  • 操作系统: macOS Sonoma 14.5
  • 网页浏览器: Arc 1.44.1
  • G6 版本: 5.0.0-beta.37

屏幕截图或视频(可选)

iShot_2024-05-29_14.54.12.mp4

补充说明(可选)

No response

@Aarebecca
Copy link
Contributor

你好,这边会尽快排查问题原因

@hh1412
Copy link

hh1412 commented Jun 27, 2024

@liwx2000 #5946 (comment) 好像两者有联系

@WsAzraa
Copy link

WsAzraa commented Aug 29, 2024

V5自定义html节点+自定义边在使用zoomTo后拖拽节点边的定位会不准确

@Aarebecca
Copy link
Contributor

最新版已解决,清除 node_modules 后重新安装依赖即可

@disslk
Copy link

disslk commented Sep 2, 2024

你好,升级到了最新版本,清除 node_modules 后重新安装依赖,上述问题仍然出现,缩放画布后,拖动节点展示异常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants