fix: 오타 수정

syntax error 오타 수정
This commit is contained in:
nalpari 2024-07-05 10:09:57 +09:00
parent 5bc3f2ca51
commit 5ec3840a5c

View File

@ -461,20 +461,20 @@ export function useMode() {
// 다름 라인이 오른쪽으로 이동 // 다름 라인이 오른쪽으로 이동
if (historyLines.current[i].direction === 'top') { if (historyLines.current[i].direction === 'top') {
if (prev.direction !== 'right') { if (prev.direction !== 'right') {
if(historyLines.current.length === 6) { if (historyLines.current.length === 6) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 - 50, x1: historyLines.current[i].x1 - 50,
y1: historyLines.current[i].y1 + 50, y1: historyLines.current[i].y1 + 50,
x2: historyLines.current[i].x2 - 50, x2: historyLines.current[i].x2 - 50,
y2: historyLines.current[i].y2 - 50, y2: historyLines.current[i].y2 - 50,
}) })
} else if(historyLines.current.length === 8) { } else if (historyLines.current.length === 8) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 + 50, x1: historyLines.current[i].x1 + 50,
y1: historyLines.current[i].y1 - 50, y1: historyLines.current[i].y1 - 50,
x2: historyLines.current[i].x2 + 50, x2: historyLines.current[i].x2 + 50,
y2: historyLines.current[i].y2 + 50, y2: historyLines.current[i].y2 + 50,
} })
} }
} else { } else {
newOuterlines.push({ newOuterlines.push({
@ -487,14 +487,14 @@ export function useMode() {
} else { } else {
// bottom // bottom
if (prev?.direction !== 'right') { if (prev?.direction !== 'right') {
if(historyLines.current.length === 6) { if (historyLines.current.length === 6) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 - 50, x1: historyLines.current[i].x1 - 50,
y1: historyLines.current[i].y1 - 50, y1: historyLines.current[i].y1 - 50,
x2: historyLines.current[i].x2 - 50, x2: historyLines.current[i].x2 - 50,
y2: historyLines.current[i].y2 + 50, y2: historyLines.current[i].y2 + 50,
}) })
} else if(historyLines.current.length === 8) { } else if (historyLines.current.length === 8) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 + 50, x1: historyLines.current[i].x1 + 50,
y1: historyLines.current[i].y1 + 50, y1: historyLines.current[i].y1 + 50,
@ -514,14 +514,14 @@ export function useMode() {
} else if (next.direction === 'left') { } else if (next.direction === 'left') {
if (historyLines.current[i].direction === 'top') { if (historyLines.current[i].direction === 'top') {
if (prev?.direction !== 'left') { if (prev?.direction !== 'left') {
if(historyLines.current.length === 6) { if (historyLines.current.length === 6) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 + 50, x1: historyLines.current[i].x1 + 50,
y1: historyLines.current[i].y1 + 50, y1: historyLines.current[i].y1 + 50,
x2: historyLines.current[i].x2 + 50, x2: historyLines.current[i].x2 + 50,
y2: historyLines.current[i].y2 - 50, y2: historyLines.current[i].y2 - 50,
}) })
} else if(historyLines.current.length === 8) { } else if (historyLines.current.length === 8) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 - 50, x1: historyLines.current[i].x1 - 50,
y1: historyLines.current[i].y1 - 50, y1: historyLines.current[i].y1 - 50,
@ -540,14 +540,14 @@ export function useMode() {
} else { } else {
// bottom // bottom
if (prev?.direction !== 'left') { if (prev?.direction !== 'left') {
if(historyLines.current.length === 6) { if (historyLines.current.length === 6) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 + 50, x1: historyLines.current[i].x1 + 50,
y1: historyLines.current[i].y1 - 50, y1: historyLines.current[i].y1 - 50,
x2: historyLines.current[i].x2 + 50, x2: historyLines.current[i].x2 + 50,
y2: historyLines.current[i].y2 + 50, y2: historyLines.current[i].y2 + 50,
}) })
} else if(historyLines.current.length === 8) { } else if (historyLines.current.length === 8) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 - 50, x1: historyLines.current[i].x1 - 50,
y1: historyLines.current[i].y1 + 50, y1: historyLines.current[i].y1 + 50,
@ -567,14 +567,14 @@ export function useMode() {
} else if (next.direction === 'top') { } else if (next.direction === 'top') {
if (historyLines.current[i].direction === 'right') { if (historyLines.current[i].direction === 'right') {
if (prev?.direction !== 'top') { if (prev?.direction !== 'top') {
if(historyLines.current.length === 6) { if (historyLines.current.length === 6) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 - 50, x1: historyLines.current[i].x1 - 50,
y1: historyLines.current[i].y1 + 50, y1: historyLines.current[i].y1 + 50,
x2: historyLines.current[i].x2 + 50, x2: historyLines.current[i].x2 + 50,
y2: historyLines.current[i].y2 + 50, y2: historyLines.current[i].y2 + 50,
}) })
} else if(historyLines.current.length === 8) { } else if (historyLines.current.length === 8) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 + 50, x1: historyLines.current[i].x1 + 50,
y1: historyLines.current[i].y1 - 50, y1: historyLines.current[i].y1 - 50,
@ -593,14 +593,14 @@ export function useMode() {
} else { } else {
// left // left
if (prev?.direction !== 'top') { if (prev?.direction !== 'top') {
if(historyLines.current.length === 6) { if (historyLines.current.length === 6) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 + 50, x1: historyLines.current[i].x1 + 50,
y1: historyLines.current[i].y1 + 50, y1: historyLines.current[i].y1 + 50,
x2: historyLines.current[i].x2 - 50, x2: historyLines.current[i].x2 - 50,
y2: historyLines.current[i].y2 + 50, y2: historyLines.current[i].y2 + 50,
}) })
} else if(historyLines.current.length === 8) { } else if (historyLines.current.length === 8) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 - 50, x1: historyLines.current[i].x1 - 50,
y1: historyLines.current[i].y1 - 50, y1: historyLines.current[i].y1 - 50,
@ -620,14 +620,14 @@ export function useMode() {
} else if (next.direction === 'bottom') { } else if (next.direction === 'bottom') {
if (historyLines.current[i].direction === 'right') { if (historyLines.current[i].direction === 'right') {
if (prev?.direction !== 'bottom') { if (prev?.direction !== 'bottom') {
if(historyLines.current.length === 6) { if (historyLines.current.length === 6) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 - 50, x1: historyLines.current[i].x1 - 50,
y1: historyLines.current[i].y1 - 50, y1: historyLines.current[i].y1 - 50,
x2: historyLines.current[i].x2 + 50, x2: historyLines.current[i].x2 + 50,
y2: historyLines.current[i].y2 - 50, y2: historyLines.current[i].y2 - 50,
}) })
} else if(historyLines.current.length === 8) { } else if (historyLines.current.length === 8) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 + 50, x1: historyLines.current[i].x1 + 50,
y1: historyLines.current[i].y1 + 50, y1: historyLines.current[i].y1 + 50,
@ -646,14 +646,14 @@ export function useMode() {
} else { } else {
// left // left
if (prev.direction !== 'bottom') { if (prev.direction !== 'bottom') {
if(historyLines.current.length === 6) { if (historyLines.current.length === 6) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 + 50, x1: historyLines.current[i].x1 + 50,
y1: historyLines.current[i].y1 - 50, y1: historyLines.current[i].y1 - 50,
x2: historyLines.current[i].x2 - 50, x2: historyLines.current[i].x2 - 50,
y2: historyLines.current[i].y2 - 50, y2: historyLines.current[i].y2 - 50,
}) })
} else if(historyLines.current.length === 8) { } else if (historyLines.current.length === 8) {
newOuterlines.push({ newOuterlines.push({
x1: historyLines.current[i].x1 - 50, x1: historyLines.current[i].x1 - 50,
y1: historyLines.current[i].y1 + 50, y1: historyLines.current[i].y1 + 50,