From 3d8b31826537d86119d014995556d04f75459c88 Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Sat, 11 Oct 2025 15:27:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 0344da4..5bc9134 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -804,9 +804,9 @@ function calcRectangleFromPoints(points) { const angle = Math.atan2(p2.y - p1.y, p2.x - p1.x) * 180 / Math.PI; return { - width: width.toFixed(2), - height: height.toFixed(2), - angle: angle.toFixed(2) + width: Math.floor(width.toFixed(2)), + height: Math.floor(height.toFixed(2)), + angle: Math.floor(angle.toFixed(2)) }; }