You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2022/07/22 02:41:41 UTC

[echarts] branch master updated: 单轴反向失效问题修复

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

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


The following commit(s) were added to refs/heads/master by this push:
     new a214eda00 单轴反向失效问题修复
     new 8cdcc7daf Merge pull request #17411 from wind108369/bugfix-single-inverse
a214eda00 is described below

commit a214eda00837c9823832cb7f29e6226d6562da28
Author: 杨骥 <ya...@hengshi.com>
AuthorDate: Thu Jul 21 14:50:18 2022 +0800

    单轴反向失效问题修复
---
 src/coord/single/Single.ts     | 2 +-
 src/coord/single/SingleAxis.ts | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/coord/single/Single.ts b/src/coord/single/Single.ts
index 4632190e4..c9226b5aa 100644
--- a/src/coord/single/Single.ts
+++ b/src/coord/single/Single.ts
@@ -140,7 +140,7 @@ class Single implements CoordinateSystem, CoordinateSystemMaster {
 
         const isHorizontal = axis.isHorizontal();
         const extent = isHorizontal ? [0, rect.width] : [0, rect.height];
-        const idx = axis.reverse ? 1 : 0;
+        const idx = axis.inverse ? 1 : 0;
 
         axis.setExtent(extent[idx], extent[1 - idx]);
 
diff --git a/src/coord/single/SingleAxis.ts b/src/coord/single/SingleAxis.ts
index 6009149be..ff2db9251 100644
--- a/src/coord/single/SingleAxis.ts
+++ b/src/coord/single/SingleAxis.ts
@@ -43,8 +43,6 @@ class SingleAxis extends Axis {
 
     orient: LayoutOrient;
 
-    reverse: boolean;
-
     coordinateSystem: Single;
 
     model: SingleAxisModel;


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