- 면형상 배치 버그 수정

This commit is contained in:
김민식 2025-02-19 17:05:31 +09:00
parent 7d32157d99
commit fdf834260d
2 changed files with 6 additions and 6 deletions

View File

@ -33,9 +33,9 @@ const PlacementSurface = forwardRef((props, refs) => {
imageRotate = Math.abs(rotate % 4)
} else {
if (rotate < 0) {
imageRotate = Math.abs((rotate + 2) % 4)
} else {
imageRotate = Math.abs((rotate - 2) % 4)
} else {
imageRotate = Math.abs((rotate + 2) % 4)
}
}
} else {

View File

@ -113,9 +113,9 @@ export function useSurfaceShapeBatch({ isHidden, setIsHidden }) {
let imageRotate = 0
if (xInversion && !yInversion) {
if (rotate % 180 === 0 || rotate < 0) {
imageRotate = Math.abs(rotate % 360)
imageRotate = Math.abs((rotate - 180) % 360)
} else {
imageRotate = Math.abs((rotate - 180) % 4)
imageRotate = Math.abs((rotate + 180) % 4)
}
} else if (xInversion && yInversion) {
imageRotate = Math.abs((rotate + 360) % 360)
@ -126,9 +126,9 @@ export function useSurfaceShapeBatch({ isHidden, setIsHidden }) {
imageRotate = Math.abs(rotate % 360)
} else {
if (rotate < 0) {
imageRotate = Math.abs((rotate + 180) % 360)
} else {
imageRotate = Math.abs((rotate - 180) % 360)
} else {
imageRotate = Math.abs((rotate + 180) % 360)
}
}
} else {