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

fromJSON在页面节点渲染完成后的事件监听有吗? #3746

Closed
bighhhh opened this issue Jul 7, 2023 · 2 comments
Closed

fromJSON在页面节点渲染完成后的事件监听有吗? #3746

bighhhh opened this issue Jul 7, 2023 · 2 comments

Comments

@bighhhh
Copy link

bighhhh commented Jul 7, 2023

问题描述

需要在页面渲染完成后给指定节点增加高亮效果,但是highlight(ele)函数的第一个参数需要是element节点,fromJSON还没有渲染完成导致高亮失败,我给高亮函数外套个定时器就可以高亮,所以想问下有没有渲染完成的事件监听,render:done函数在2.0没有执行

重现链接

重现步骤

预期行为

fromJSON后在页面节点渲染完成后的监听

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox ...]
  • X6 版本: [2.11.1 ...]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

@NewByVector
Copy link
Contributor

可以使用视图事件。

@x6-bot
Copy link
Contributor

x6-bot bot commented Jul 10, 2024

This thread has been automatically locked because it has not had recent activity.

Please open a new issue for related bugs and link to relevant comments in this thread.

@x6-bot x6-bot bot locked as resolved and limited conversation to collaborators Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants