- 면형상 배치 버그 수정
This commit is contained in:
parent
7d32157d99
commit
fdf834260d
@ -33,9 +33,9 @@ const PlacementSurface = forwardRef((props, refs) => {
|
|||||||
imageRotate = Math.abs(rotate % 4)
|
imageRotate = Math.abs(rotate % 4)
|
||||||
} else {
|
} else {
|
||||||
if (rotate < 0) {
|
if (rotate < 0) {
|
||||||
imageRotate = Math.abs((rotate + 2) % 4)
|
|
||||||
} else {
|
|
||||||
imageRotate = Math.abs((rotate - 2) % 4)
|
imageRotate = Math.abs((rotate - 2) % 4)
|
||||||
|
} else {
|
||||||
|
imageRotate = Math.abs((rotate + 2) % 4)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -113,9 +113,9 @@ export function useSurfaceShapeBatch({ isHidden, setIsHidden }) {
|
|||||||
let imageRotate = 0
|
let imageRotate = 0
|
||||||
if (xInversion && !yInversion) {
|
if (xInversion && !yInversion) {
|
||||||
if (rotate % 180 === 0 || rotate < 0) {
|
if (rotate % 180 === 0 || rotate < 0) {
|
||||||
imageRotate = Math.abs(rotate % 360)
|
imageRotate = Math.abs((rotate - 180) % 360)
|
||||||
} else {
|
} else {
|
||||||
imageRotate = Math.abs((rotate - 180) % 4)
|
imageRotate = Math.abs((rotate + 180) % 4)
|
||||||
}
|
}
|
||||||
} else if (xInversion && yInversion) {
|
} else if (xInversion && yInversion) {
|
||||||
imageRotate = Math.abs((rotate + 360) % 360)
|
imageRotate = Math.abs((rotate + 360) % 360)
|
||||||
@ -126,9 +126,9 @@ export function useSurfaceShapeBatch({ isHidden, setIsHidden }) {
|
|||||||
imageRotate = Math.abs(rotate % 360)
|
imageRotate = Math.abs(rotate % 360)
|
||||||
} else {
|
} else {
|
||||||
if (rotate < 0) {
|
if (rotate < 0) {
|
||||||
imageRotate = Math.abs((rotate + 180) % 360)
|
|
||||||
} else {
|
|
||||||
imageRotate = Math.abs((rotate - 180) % 360)
|
imageRotate = Math.abs((rotate - 180) % 360)
|
||||||
|
} else {
|
||||||
|
imageRotate = Math.abs((rotate + 180) % 360)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user