각도 계산 수정

This commit is contained in:
hyojun.choi 2024-11-12 15:05:19 +09:00
parent 6531949e40
commit ac6bf7eae3

View File

@ -306,7 +306,7 @@ export const usePolygon = () => {
let text = '' let text = ''
const compassType = (375 - moduleCompass) / 15 const compassType = (375 - getDegreeInOrientation(moduleCompass)) / 15
if ([1, 25].includes(compassType)) { if ([1, 25].includes(compassType)) {
direction === 'north' ? (text = '北') : direction === 'south' ? (text = '南') : direction === 'west' ? (text = '西') : (text = '東') direction === 'north' ? (text = '北') : direction === 'south' ? (text = '南') : direction === 'west' ? (text = '西') : (text = '東')