-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
外层容器添加transform缩放后,图表的悬浮、点击事件的位置错位失效 #5472
Labels
Comments
@xiaoiver 之前旧版本 G 中,需要手动设置 supportCSSTransform: true,新版本中也需要设置这个属性吗? |
多了一个 |
@xyr550 这个配置还不支持哈,我这周支持一下 |
@hustcc 还是需要用户显示地配置,因为这个属性会跳过 G 的处理流程,是不保证稳定的,所以按需使用。 如果真的是希望进行缩放,更好的做法是操作 G 里面的视图节点: chart.render().then(() => {
const canvas = chart.getConext().canvas;
const [view] = canvas.getElementsByClassName('view');
view.style.transform = 'scale(1.5';
}) 同时修改 canvas 的大小。 |
@xyr550 你设置外层容器 style.transform 的场景是啥? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: