수정
This commit is contained in:
parent
3ad555fd24
commit
99bed48fce
@ -229,22 +229,21 @@ export function useMode() {
|
|||||||
changeMode(canvas, Mode.EDIT)
|
changeMode(canvas, Mode.EDIT)
|
||||||
|
|
||||||
if (historyPoints.current.length >= 4) {
|
if (historyPoints.current.length >= 4) {
|
||||||
drawWallPolygon()
|
// handleOuterlinesTest() //외곽선 그리기 테스트
|
||||||
|
// drawWallPolygon()
|
||||||
//아래 내용 drawWallPolygon()으로 대체
|
//아래 내용 drawWallPolygon()으로 대체
|
||||||
// const firstPoint = historyPoints.current[0]
|
const firstPoint = historyPoints.current[0]
|
||||||
// const lastPoint = historyPoints.current[historyPoints.current.length - 1]
|
const lastPoint = historyPoints.current[historyPoints.current.length - 1]
|
||||||
// historyPoints.current.forEach((point) => {
|
historyPoints.current.forEach((point) => {
|
||||||
// canvas?.remove(point)
|
canvas?.remove(point)
|
||||||
// })
|
})
|
||||||
// drawLineWithLength(lastPoint, firstPoint)
|
drawLineWithLength(lastPoint, firstPoint)
|
||||||
// points.current = []
|
points.current = []
|
||||||
// historyPoints.current = []
|
historyPoints.current = []
|
||||||
|
|
||||||
// // handleOuterlines()
|
handleOuterlinesTest()
|
||||||
// const wall = makePolygon()
|
const wall = makePolygon()
|
||||||
// setWall(wall)
|
setWall(wall)
|
||||||
|
|
||||||
handleOuterlinesTest() //외곽선 그리기 테스트
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user