修改显示

main
suixy 2 months ago
parent f2b9517f7f
commit 9258ec632e

@ -129,7 +129,7 @@ watch(() => props.dotIndex, (newVal, oldVal) => {
}
if (props.dotIndex >= 0) {
getLineData('head', `dot${props.dotIndex + 1}`)
} else {
}else{
zoomScale(props.boxPos.y, 0)
}
})

@ -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