@ -279,6 +279,7 @@ const getLineData = (fromId, toId) => {
const dy = y2 - y1;
const distance = Math.sqrt(dx * dx + dy * dy);
let rad = Math.atan2(dy, dx);
console.log(rad * (180 / Math.PI))
let deg = rad * (180 / Math.PI) - props.boxPos.rotate
if (deg < 0) deg += 360;
lineData.value = {distance, degree: deg}