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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to