diff --git a/src/hooks/usePolygon.js b/src/hooks/usePolygon.js index 98596529..73999863 100644 --- a/src/hooks/usePolygon.js +++ b/src/hooks/usePolygon.js @@ -416,6 +416,9 @@ export const usePolygon = () => { while (a > 180) a -= 360 while (a < -180) a += 360 const i = Math.round(a / 22.5) // -8 ~ 8 + // [方位 追加要請 2026-07-03] 124~134°는 西北西/東北東 표시(北西/北東 시작을 135°로) — 북면 판정 ±135°와 표시 경계 일치 + if (i === 6 && a <= 134) return positive[5] // 北西 → 西北西 + if (i === -6 && a >= -134) return negative[5] // 北東 → 東北東 return i >= 0 ? positive[i] : negative[-i] }