You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/05/13 07:10:33 UTC

[incubator-echarts] branch master updated: fix(bmap): tweak BMapView.js, no need to import `clone` from zrender and it can be fetched from echarts object. (#12568)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new baa6ea6  fix(bmap): tweak BMapView.js, no need to import `clone` from zrender and it can be fetched from echarts object. (#12568)
baa6ea6 is described below

commit baa6ea6e77e40359e70f094f87c28fb618e26897
Author: Zhongxiang.Wang <yh...@all-my-life.cn>
AuthorDate: Wed May 13 15:10:20 2020 +0800

    fix(bmap): tweak BMapView.js, no need to import `clone` from zrender and it can be fetched from echarts object. (#12568)
---
 extension-src/bmap/BMapView.js | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/extension-src/bmap/BMapView.js b/extension-src/bmap/BMapView.js
index 1f793b5..e5b9961 100644
--- a/extension-src/bmap/BMapView.js
+++ b/extension-src/bmap/BMapView.js
@@ -18,7 +18,6 @@
 */
 
 import * as echarts from 'echarts';
-import { clone } from 'zrender/src/core/util';
 
 export default echarts.extendComponentView({
     type: 'bmap',
@@ -97,7 +96,7 @@ export default echarts.extendComponentView({
         if (JSON.stringify(originalStyle) !== mapStyleStr) {
             // FIXME May have blank tile when dragging if setMapStyle
             if (Object.keys(newMapStyle).length) {
-                bmap.setMapStyle(clone(newMapStyle));
+                bmap.setMapStyle(echarts.util.clone(newMapStyle));
             }
             bMapModel.__mapStyle = JSON.parse(mapStyleStr);
         }
@@ -111,11 +110,11 @@ export default echarts.extendComponentView({
         if (JSON.stringify(originalStyle2) !== mapStyleStr2) {
             // FIXME May have blank tile when dragging if setMapStyle
             if (Object.keys(newMapStyle2).length) {
-                bmap.setMapStyleV2(clone(newMapStyle2));
+                bmap.setMapStyleV2(echarts.util.clone(newMapStyle2));
             }
             bMapModel.__mapStyle2 = JSON.parse(mapStyleStr2);
         }
 
         rendering = false;
     }
-});
\ No newline at end of file
+});


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