This is an automated email from the ASF dual-hosted git repository.

ovilia pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git


The following commit(s) were added to refs/heads/next by this push:
     new bf5c08a  feat: provide elapsedTime in rendered event
bf5c08a is described below

commit bf5c08aa77d4ecdb12f779c5c0563cda14330fbd
Author: Ovilia <zwl.s...@gmail.com>
AuthorDate: Tue May 19 14:44:28 2020 +0800

    feat: provide elapsedTime in rendered event
    
    See 
https://github.com/ecomfe/zrender/pull/570/files#diff-6a1e2209e77098f03af28277d0045cc2
---
 src/echarts.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/echarts.ts b/src/echarts.ts
index b647380..57d475d 100644
--- a/src/echarts.ts
+++ b/src/echarts.ts
@@ -1632,9 +1632,9 @@ class ECharts extends Eventful {
          * (5) no delayed setOption needs to be processed.
          */
         bindRenderedEvent = function (zr: zrender.ZRenderType, ecIns: 
ECharts): void {
-            zr.on('rendered', function () {
+            zr.on('rendered', function (params) {
 
-                ecIns.trigger('rendered');
+                ecIns.trigger('rendered', params);
 
                 // The `finished` event should not be triggered repeatly,
                 // so it should only be triggered when rendering indeed happend


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org
For additional commands, e-mail: commits-h...@echarts.apache.org

Reply via email to