clear 시 비워주는 내용 추가

This commit is contained in:
hyojun.choi 2024-08-26 15:45:36 +09:00
parent 68365493e2
commit 795f5fc30f

View File

@ -663,9 +663,12 @@ export function useMode() {
editMode: (options) => {
// const pointer = canvas?.getPointer(options.e)
let pointer = canvas?.getPointer(options.e)
const mouseLines = canvas?._objects.filter((obj) => obj.name === 'mouseLine')
const pointer = calculateIntersection(mouseLines[0], mouseLines[1])
/*if (calculateIntersection(mouseLines[0], mouseLines[1])) {
pointer = calculateIntersection(mouseLines[0], mouseLines[1])
}*/
const circle = new fabric.Circle({
radius: 5,
@ -951,6 +954,8 @@ export function useMode() {
points.current = []
historyPoints.current = []
historyLines.current = []
setRoof(null)
setWall(null)
setSelectedCellRoofArray([]) //셀 그린거 삭제
}