修改显示

main
suixy 2 months ago
parent f2b9517f7f
commit 9258ec632e

@ -863,7 +863,11 @@ function calcRectangleFromPoints(points) {
const bottomAngleRad = Math.atan2(p1.y - p4.y, p1.x - p4.x);
const angleDeg = bottomAngleRad * 180 / Math.PI;
console.log({
width: Number(width.toFixed(2)),
height: Number(height.toFixed(2)),
angle: Number(angleDeg.toFixed(6))
})
return {
width: Number(width.toFixed(2)),
height: Number(height.toFixed(2)),

Loading…
Cancel
Save