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

关于图表容器 resize 后,图表绘制出错的问题咨询 #3255

Open
zLsPitaya opened this issue Sep 20, 2024 · 5 comments
Open

关于图表容器 resize 后,图表绘制出错的问题咨询 #3255

zLsPitaya opened this issue Sep 20, 2024 · 5 comments
Assignees

Comments

@zLsPitaya
Copy link

如题,容器的高度可调整,图表挂载的dom 是根据容器高度自适应的,当容器高度发生快速变化时,图表内容绘制出错,但是控制台没有错误抛出。
可视化组件兼容

可以看到,挂在的容器 dom 高度是有的,但是canvas 内容没出来。
image

用户的设置信息如下:
image

@xile611 xile611 self-assigned this Sep 23, 2024
@xile611
Copy link
Contributor

xile611 commented Sep 25, 2024

@zLsPitaya spec 补充一下吧

@zLsPitaya
Copy link
Author

@xile611 该问题仅在这一个用户的设备上出现,他用笔记本就不会复现,在上面的拓展显示屏上能稳定复现,这是对应的链接:https://codesandbox.io/p/sandbox/vchart-resize-ltp4ng?file=%2Fsrc%2Findex.ts%3A19%2C14

F576EDC3-30C4-978F-22E1-4C52191866D4

@zLsPitaya
Copy link
Author

@xile611 我在想,是不是因为用户设备的 dpr 失去精度的原因导致的呢?我在前面手动设置 dpr 为 1.35,实际我设备是 2,也能复现这个问题。
image

@xile611
Copy link
Contributor

xile611 commented Oct 10, 2024

@zLsPitaya 排查到是底层在处理dpr 为1.35 的时候,更新范围计算有问题

@zLsPitaya
Copy link
Author

@xile611 辛苦排查,感谢~

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

No branches or pull requests

2 participants