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

为更多的 echarts Viz 组件添加 rendered 事件支持 #1611

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

ZeekoZhu
Copy link
Contributor

  • 为更多的 echarts Viz 组件添加 rendered 事件支持
    • 现在的 Viz 组件可以通过调用 notifyVizRendered 产生 rendered 事件
    • 用户侧可以通过 onVizRendered 订阅 VizInstance 的 rendered 事件
    • 注意:目前的 VizInstance 与 PanelId 存在 1 对 1 的关系,所以同一个 panel 上的 viz instance 的 Rendered 事件可能会被触发多次(例如,使用 ClientPanelRender 将同一个 Panel 在不同地方渲染了很多次),目前还没什么很好的处理办法,只能在订阅 onVizRendered 时注意一下。
  • 修复了 ClientPanelRender 导致已有 Panel 重新渲染的问题

@GerilLeto GerilLeto merged commit 73a3c35 into main Jan 24, 2025
1 of 2 checks passed
@GerilLeto GerilLeto deleted the more-echarts-render-options branch January 24, 2025 02:24
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

Successfully merging this pull request may close these issues.

2 participants