파라미터 없는 경우 같은 포인트 검사 못함
This commit is contained in:
parent
63297328ed
commit
06fa1766d6
@ -305,6 +305,9 @@ export function removeDuplicatePolygons(polygons) {
|
||||
}
|
||||
|
||||
export const isSamePoint = (a, b) => {
|
||||
if (!a || !b) {
|
||||
return false
|
||||
}
|
||||
return Math.abs(Math.round(a.x) - Math.round(b.x)) <= 2 && Math.abs(Math.round(a.y) - Math.round(b.y)) <= 2
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user