From a214eda00837c9823832cb7f29e6226d6562da28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E9=AA=A5?= Date: Thu, 21 Jul 2022 14:50:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E8=BD=B4=E5=8F=8D=E5=90=91=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 4632190e41..c9226b5aae 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 6009149be6..ff2db92516 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;