vue-echarts
vue-echarts copied to clipboard
useAutoresize throttle switch to requestAnimationFrame method
提前确认
- [X] 我可以确认这个新功能建议是提交给此 Vue 组件的,而不应该提交到 ECharts 项目本身。
新功能详情
changing the component size like this will be smoother.
This required the re-render of all charts on a same page within ~16ms. Do you have an actual use case?
This required the re-render of all charts on a same page within ~16ms. Do you have an actual use case?
My chart component will have some animation effects, gradually becoming higher or wider, which will appear a bit jerky at that time.
As ResizeObserver only triggers once in an animation frame, I think setting :autoresize="{ throttle: 0 }"
will make the resizing smooth enough if the time for resizing all charts all fits in one frame.