변수 수정

This commit is contained in:
hyojun.choi 2024-07-02 13:30:43 +09:00
parent 131d05d93f
commit 2eba4d6279

View File

@ -141,7 +141,7 @@ export const getStartIndex = (lines) => {
let smallestX1 = lines[0].x1 let smallestX1 = lines[0].x1
let smallestY1 = lines[0].y1 let smallestY1 = lines[0].y1
for (let i = 1; i < arr.length; i++) { for (let i = 1; i < lines.length; i++) {
if ( if (
lines[i].x1 < smallestX1 || lines[i].x1 < smallestX1 ||
(lines[i].x1 === smallestX1 && lines[i].y1 < smallestY1) (lines[i].x1 === smallestX1 && lines[i].y1 < smallestY1)