clear 시 비워주는 내용 추가
This commit is contained in:
parent
68365493e2
commit
795f5fc30f
@ -663,9 +663,12 @@ export function useMode() {
|
|||||||
editMode: (options) => {
|
editMode: (options) => {
|
||||||
// const pointer = canvas?.getPointer(options.e)
|
// const pointer = canvas?.getPointer(options.e)
|
||||||
|
|
||||||
|
let pointer = canvas?.getPointer(options.e)
|
||||||
const mouseLines = canvas?._objects.filter((obj) => obj.name === 'mouseLine')
|
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({
|
const circle = new fabric.Circle({
|
||||||
radius: 5,
|
radius: 5,
|
||||||
@ -951,6 +954,8 @@ export function useMode() {
|
|||||||
points.current = []
|
points.current = []
|
||||||
historyPoints.current = []
|
historyPoints.current = []
|
||||||
historyLines.current = []
|
historyLines.current = []
|
||||||
|
setRoof(null)
|
||||||
|
setWall(null)
|
||||||
|
|
||||||
setSelectedCellRoofArray([]) //셀 그린거 삭제
|
setSelectedCellRoofArray([]) //셀 그린거 삭제
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user