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

在父元素上存在scale的情况下,鼠标移到图表上,无法选中移上去的那个点,会发生错位现象,当设置pixelRatio等于父元素缩放的scale时也没有效果,麻烦帮忙看看这个问题 #2879

Closed
limyxi opened this issue Sep 28, 2021 · 4 comments · Fixed by #2922
Assignees
Labels
Question Further information is requested

Comments

@limyxi
Copy link

limyxi commented Sep 28, 2021

g2plot版本为2.3.31 浏览器为chrome 83.0.4103.97
image
image
鼠标在红色框内,显示的确不是对应坐标点的数据,存在祖先元素是scale缩放的情况,但是设置pixelRatio等于父元素缩放的scale时也没有效果,不知道是设置有问题,还是本来存在这个。
麻烦帮忙看看。
感谢!

@limyxi limyxi added the Question Further information is requested label Sep 28, 2021
@limyxi
Copy link
Author

limyxi commented Sep 28, 2021

image
image
缩放比例是一样的

@limyxi
Copy link
Author

limyxi commented Sep 28, 2021

发现可以用supportCSSTransform,pixelRatio是无效的,但是g2plot的文档却是没有这个属性的,在G3

@hustcc
Copy link
Member

hustcc commented Sep 28, 2021

{
   supportCSSTransform: true,
}

@visiky visiky self-assigned this Oct 13, 2021
@visiky
Copy link
Member

visiky commented Oct 13, 2021

我加一下文档

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

Successfully merging a pull request may close this issue.

3 participants