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

安卓加载时整个图表区域先闪一下黑色背景 #18

Closed
slimcheng opened this issue Mar 23, 2020 · 5 comments
Closed

安卓加载时整个图表区域先闪一下黑色背景 #18

slimcheng opened this issue Mar 23, 2020 · 5 comments

Comments

@slimcheng
Copy link

echarts渲染出来以前,会在渲染区域闪一下黑色,这个有没有解决办法啊

@slimcheng
Copy link
Author

echarts渲染出来以前,会在渲染区域闪一下黑色,这个有没有解决办法啊

  extraScript: '''
       chart.on('rendered', () => {
            Messager.postMessage('rendered');
       });

配合Opacity解决了

@entronad entronad reopened this Mar 25, 2020
@entronad
Copy link
Owner

@slimcheng
你这个配合Opacity的方式在ios上有效吗
我试了一下android上可以ios上一直白的

@slimcheng
Copy link
Author

@slimcheng
你这个配合Opacity的方式在ios上有效吗
我试了一下android上可以ios上一直白的

iOS是有问题,做了个判断,只针对安卓做这个处理,iOS本身没有这个黑色背景的问题的

@entronad
Copy link
Owner

@slimcheng
已将相关的逻辑加进到了库本身,请升级到 1.3.1,这样你不需要在外面写逻辑了

另外我试了下不需要等echarts加载完等消息通知再显示,那个黑闪非常短暂,onPageFinshed时显示就已经没有黑闪了,避免了一些通讯的逻辑

@slimcheng
Copy link
Author

@entronad
好的😄

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