Skip to content

Commit

Permalink
refactor: 修改 areaView 的points 的顺序 (#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
zengyue authored Dec 28, 2023
1 parent d20ca53 commit 4e8940a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/f2/src/components/area/withArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export default (View) => {
bottomPoints.reverse();
child.points = points.concat(bottomPoints);
} else {
points.push({ x: points[points.length - 1].x, y: baseY });
points.push({ x: points[0].x, y: baseY });
points.unshift({ x: points[0].x, y: baseY });
points.unshift({ x: points[points.length - 1].x, y: baseY });
}
}
}
Expand Down

0 comments on commit 4e8940a

Please sign in to comment.