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

使用toFullDataURL和toDataURL定时生成图片,当浏览器tab页在当前页是生成的图片正常,切换到浏览器其他tab页则生成的图片空白 #3310

Closed
1 task
lavenderMF opened this issue Nov 17, 2021 · 4 comments
Labels
Outdate This issue is too old to be resolved

Comments

@lavenderMF
Copy link
Contributor

lavenderMF commented Nov 17, 2021

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://github.com/antvis/G6/blob/master/packages/pc/src/graph/graph.ts#L248

Steps to reproduce

使用toFullDataURL和toDataURL定时生成图片,当浏览器tab页在当前页是生成的图片正常,切换到浏览器其他tab页则生成的图片空白

Environment Info
g6 4.4.1
System win
Browser chrome

还未确认是否是canvas生成的问题还是G6有做相关处理导致
image

@Yanyan-Wang
Copy link
Contributor

什么意思?点了下载之后切换到其他 tab 页面吗?

@lavenderMF
Copy link
Contributor Author

不好意思 标题没写清楚 是setInterval定时调用toFullDataURL和toDataURL生成图片 chrome浏览器没有在当前的tab页 导出的图片是空白的

@Yanyan-Wang
Copy link
Contributor

那可能就是切换之后就得不到原来页面的上下文了,所以得不到画布上的内容了

@Aarebecca Aarebecca added the Outdate This issue is too old to be resolved label Dec 8, 2023
Copy link

github-actions bot commented Dec 8, 2023

This issue has been closed because it has been outdate for a long time.
Please open a new issue if you still need help.
这个 issue 已经被关闭,因为 它已经过期很久了
如果你仍然需要帮助,请创建一个新的 issue。

@github-actions github-actions bot closed this as completed Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Outdate This issue is too old to be resolved
Projects
None yet
Development

No branches or pull requests

3 participants