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

缩小和放大画布会导致tooltip的定位发生偏移 #5126

Closed
zyh0yh opened this issue Nov 9, 2023 · 4 comments
Closed

缩小和放大画布会导致tooltip的定位发生偏移 #5126

zyh0yh opened this issue Nov 9, 2023 · 4 comments
Labels
Outdate This issue is too old to be resolved stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Comments

@zyh0yh
Copy link

zyh0yh commented Nov 9, 2023

Describe the bug

缩小和放大画布会导致tooltip的定位发生偏移

Your Example Website or App

https://g6-next.antv.antgroup.com/examples/tool/tooltip/#tooltipPlugin

Steps to Reproduce the Bug or Issue

1.打开5.0示例文档中提示框示例
2.在 modes配置中增加 'zoom-canvas','drag-canvas',使示例可缩放和拖拽
3.先不进行任何操作,将鼠标移入节点查看和记录tooltip的postion位置
4.进行缩放,再次鼠标移入节点查看和记录tooltip的postion位置

Expected behavior

tooltip 的 fixtoNode 可以不受画布缩放和拖拽的影响,更灵活的配置,并且希望增加一个topcenter,center等 定位参数

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [5.0.0-beta.27]

Additional context

No response

Copy link

github-actions bot commented Nov 9, 2023

Hi @zyh0yh, Please star this repo if you find it useful! Thanks ⭐!
你好 @zyh0yh。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!

@fatyrify
Copy link

遇到了相似的问题,G6.TreeGraph changeSize api调用后,Tooltip的offset发生偏差,鼠标直接出现在了Tooltip里,导致鼠标一致悬停tooltip不再自动隐藏

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Apr 16, 2024
@Aarebecca Aarebecca added the Outdate This issue is too old to be resolved label Jul 5, 2024
Copy link

github-actions bot commented Jul 5, 2024

This issue has been closed because it has been outdate for a long time.
Please open a new issue if you still need help.

这个 issue 已经被关闭,因为 它已经过期很久了
如果你仍然需要帮助,请创建一个新的 issue。

@github-actions github-actions bot closed this as completed Jul 5, 2024
@mxluomx
Copy link

mxluomx commented Jul 19, 2024

我也遇到了,你们怎么解决的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Outdate This issue is too old to be resolved stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed
Projects
None yet
Development

No branches or pull requests

4 participants