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)) }; }