Skip to content

Commit

Permalink
fix: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
El-Chiang committed Oct 28, 2021
1 parent ddf54de commit 37b2ea0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/f2-next/src/components/area/withArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export default (View) => {

_convertPosition(mappedArray) {
const { props, startOnZero: defaultStartOnZero } = this;
const { coord } = props;
const { startOnZero = defaultStartOnZero } = props;
const { coord, startOnZero = defaultStartOnZero } = props;

const originY = this.getY0Value(); // 坐标轴 y0
const originCoord = coord.convertPoint({ x: 0, y: originY }); // 零点映射到绝对坐标
Expand Down

0 comments on commit 37b2ea0

Please sign in to comment.