Skip to content

Commit

Permalink
单轴反向失效问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
杨骥 committed Jul 22, 2022
1 parent bafb0f9 commit a214eda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/coord/single/Single.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down
2 changes: 0 additions & 2 deletions src/coord/single/SingleAxis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ class SingleAxis extends Axis {

orient: LayoutOrient;

reverse: boolean;

coordinateSystem: Single;

model: SingleAxisModel;
Expand Down

0 comments on commit a214eda

Please sign in to comment.