diff --git a/src/utils/tool.js b/src/utils/tool.js index fc39e86..0b82ea8 100644 --- a/src/utils/tool.js +++ b/src/utils/tool.js @@ -40,7 +40,9 @@ function calcRectangleFromPoints(points) { // const angleDeg = leftAngleRad * 180 / Math.PI - bottomAngleRad * 180 / Math.PI; // const angleDeg = bottomAngleRad * 180 / Math.PI; const angleDeg = leftAngleRad * 180 / Math.PI; - console.log(angleDeg) + console.log('1----', leftAngleRad * 180 / Math.PI - bottomAngleRad * 180 / Math.PI) + console.log('2----', bottomAngleRad * 180 / Math.PI) + console.log('3----', leftAngleRad * 180 / Math.PI) return { width: Number(width.toFixed(2)), height: Number(height.toFixed(2)), angle: Number(angleDeg.toFixed(6)) };