修改显示

main
suixy 2 months ago
parent 2c2bffed3d
commit 3d8b318265

@ -804,9 +804,9 @@ function calcRectangleFromPoints(points) {
const angle = Math.atan2(p2.y - p1.y, p2.x - p1.x) * 180 / Math.PI; const angle = Math.atan2(p2.y - p1.y, p2.x - p1.x) * 180 / Math.PI;
return { return {
width: width.toFixed(2), width: Math.floor(width.toFixed(2)),
height: height.toFixed(2), height: Math.floor(height.toFixed(2)),
angle: angle.toFixed(2) angle: Math.floor(angle.toFixed(2))
}; };
} }

Loading…
Cancel
Save