배치면 복사 작업
This commit is contained in:
parent
a2237de250
commit
6ad459e4ca
@ -21,7 +21,7 @@ export function useCommonUtils() {
|
|||||||
const commonTextFont = useRecoilValue(fontSelector('commonText'))
|
const commonTextFont = useRecoilValue(fontSelector('commonText'))
|
||||||
const [commonUtils, setCommonUtilsState] = useRecoilState(commonUtilsState)
|
const [commonUtils, setCommonUtilsState] = useRecoilState(commonUtilsState)
|
||||||
const { addPopup } = usePopup()
|
const { addPopup } = usePopup()
|
||||||
const { drawDirectionArrow } = usePolygon()
|
const { drawDirectionArrow, addLengthText } = usePolygon()
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// initEvent()
|
// initEvent()
|
||||||
@ -610,17 +610,17 @@ export function useCommonUtils() {
|
|||||||
//객체가 그룹일 경우에는 그룹 아이디를 따로 넣어준다
|
//객체가 그룹일 경우에는 그룹 아이디를 따로 넣어준다
|
||||||
if (clonedObj.type === 'group') clonedObj.set({ groupId: uuidv4() })
|
if (clonedObj.type === 'group') clonedObj.set({ groupId: uuidv4() })
|
||||||
|
|
||||||
initEvent()
|
|
||||||
|
|
||||||
//배치면일 경우
|
//배치면일 경우
|
||||||
if (obj.name === 'roof') {
|
if (obj.name === 'roof') {
|
||||||
clonedObj.setCoords()
|
clonedObj.setCoords()
|
||||||
clonedObj.fire('polygonMoved')
|
clonedObj.fire('polygonMoved')
|
||||||
clonedObj.set({ direction: obj.direction, directionText: obj.directionText })
|
clonedObj.set({ direction: obj.direction, directionText: obj.directionText })
|
||||||
clonedObj.addLengthText()
|
|
||||||
canvas.renderAll()
|
canvas.renderAll()
|
||||||
drawDirectionArrow(clonedObj)
|
addLengthText(clonedObj) //수치 추가
|
||||||
|
drawDirectionArrow(clonedObj) //방향 화살표 추가
|
||||||
}
|
}
|
||||||
|
|
||||||
|
initEvent()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user