round처리 수정

This commit is contained in:
hyojun.choi 2025-07-24 12:46:47 +09:00
parent 5e86c98afd
commit e14e43f778

View File

@ -378,7 +378,7 @@ export const calculateIntersection = (line1, line2) => {
export const getInterSectionLineNotOverCoordinate = (line1, line2) => {
const result = intersect([line1.x1, line1.y1], [line1.x2, line1.y2], [line2.x1, line2.y1], [line2.x2, line2.y2])
if (result) {
return { x: Math.round(result[0]), y: Math.round(result[1]) }
return { x: result[0], y: result[1] }
}
return null
}