You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2020/11/07 04:57:20 UTC
[incubator-echarts] 01/01: fix: lazyMode should wake zrender up,
otherwise will be nothing rendered.
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch fix/lazy-update
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit 61b7c72fc4ba860983f6c6f8bbea4728e63347d0
Author: 100pah <su...@gmail.com>
AuthorDate: Sat Nov 7 12:56:21 2020 +0800
fix: lazyMode should wake zrender up, otherwise will be nothing rendered.
---
src/echarts.ts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/echarts.ts b/src/echarts.ts
index 4ea68e9..79eae7a 100644
--- a/src/echarts.ts
+++ b/src/echarts.ts
@@ -579,6 +579,10 @@ class ECharts extends Eventful {
if (lazyUpdate) {
this[OPTION_UPDATED_KEY] = {silent: silent};
this[IN_MAIN_PROCESS_KEY] = false;
+
+ // `setOption(option, {lazyMode: true})` may be called when zrender has been slept.
+ // It should wake it up to make sure zrender start to render at the next frame.
+ this.getZr().wakeUp();
}
else {
prepare(this);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org