변수 수정
This commit is contained in:
parent
131d05d93f
commit
2eba4d6279
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user