You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by ov...@apache.org on 2020/05/19 06:45:01 UTC

[incubator-echarts] branch feat/elapsedTime created (now 6b2aa59)

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

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


      at 6b2aa59  feat: provide elapsedTime in rendered event

This branch includes the following new commits:

     new 6b2aa59  feat: provide elapsedTime in rendered event

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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


[incubator-echarts] 01/01: feat: provide elapsedTime in rendered event

Posted by ov...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 6b2aa59aad2e33ae093cac5291b2d654ae78907a
Author: Ovilia <zw...@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 bb85b18..2b19cb0 100644
--- a/src/echarts.ts
+++ b/src/echarts.ts
@@ -1566,9 +1566,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-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org