feature/jaeyoung #46

Merged
LEE_JAEYOUNG merged 58 commits from feature/jaeyoung into dev 2025-05-21 13:53:44 +09:00
Showing only changes of commit 937f2eb3fe - Show all commits

View File

@ -303,7 +303,13 @@ export function removeDuplicatePolygons(polygons) {
} }
}) })
return uniquePolygons // x가 전부 같거나, y가 전부 같은 경우 제거
return uniquePolygons.filter((polygon) => {
const xValues = polygon.map((point) => point.x)
const yValues = polygon.map((point) => point.y)
return !(xValues.every((x) => x === xValues[0]) || yValues.every((y) => y === yValues[0]))
})
} }
export const isSamePoint = (a, b) => { export const isSamePoint = (a, b) => {