From 4e8940a320515600b6275b331b2ef9728b65aa35 Mon Sep 17 00:00:00 2001 From: zengyue ye Date: Thu, 28 Dec 2023 19:05:24 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=20areaView=20?= =?UTF-8?q?=E7=9A=84points=20=E7=9A=84=E9=A1=BA=E5=BA=8F=20(#1908)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/f2/src/components/area/withArea.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/f2/src/components/area/withArea.tsx b/packages/f2/src/components/area/withArea.tsx index a2ec6b77b..69d815d75 100644 --- a/packages/f2/src/components/area/withArea.tsx +++ b/packages/f2/src/components/area/withArea.tsx @@ -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 }); } } }