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 2019/12/31 02:43:56 UTC
[incubator-echarts] 01/01: fix(map): fix slice is not defined error
on typed array. #11451
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch fix-11451
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
commit ea331c5b113d8c68687a32b8fe262acc9d751d3d
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Dec 31 10:43:19 2019 +0800
fix(map): fix slice is not defined error on typed array. #11451
---
src/component/helper/MapDraw.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/component/helper/MapDraw.js b/src/component/helper/MapDraw.js
index 5957b23..d1943c0 100644
--- a/src/component/helper/MapDraw.js
+++ b/src/component/helper/MapDraw.js
@@ -182,7 +182,7 @@ MapDraw.prototype = {
var group = this.group;
if (geo._roamTransformable.transform) {
- group.transform = geo._roamTransformable.transform.slice();
+ group.transform = Array.prototype.slice.call(geo._roamTransformable.transform);
group.decomposeTransform();
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org