Skip to content

Commit 7f15436

Browse files
authored
[WMS-141] 창고 배치도 3D 소형 박스 위치 알맞게 조정
[WMS-141] 창고 배치도 3D 소형 박스 위치 알맞게 조정
2 parents 4013c6b + a5e5999 commit 7f15436

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/features/warehouse/lib/calculatePositions.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ export const convertToThreePosition = (serverPos: ServerPosition): [number, numb
3030
? serverPos.x * spacing.x + offset.x - 11
3131
: Math.floor(serverPos.x / 8) * 31 + offset.x - 11;
3232

33-
const localY = serverPos.y * spacing.y + offset.y - 8;
33+
const localY =
34+
serverPos.boxType === '소형' ? serverPos.y * spacing.y + offset.y - 6 : serverPos.y * spacing.y + offset.y - 8;
3435

3536
const localZ =
3637
serverPos.boxType === '소형'
37-
? serverPos.z * spacing.z + offset.z - 41
38+
? serverPos.z * spacing.z + offset.z - 44
3839
: Math.floor(serverPos.z / 8) * 31 + offset.z - 42;
3940

4041
return [basePosition.x + localX, yPosition + localY, zPosition + localZ];

0 commit comments

Comments
 (0)