contextmenu roof 복사 할 때 lines 복사 추가
This commit is contained in:
parent
7b467a6796
commit
b0a24c7daf
@ -593,6 +593,11 @@ export function useCommonUtils() {
|
|||||||
clonedObj.setCoords()
|
clonedObj.setCoords()
|
||||||
clonedObj.fire('polygonMoved')
|
clonedObj.fire('polygonMoved')
|
||||||
clonedObj.set({ direction: obj.direction, directionText: obj.directionText, roofMaterial: obj.roofMaterial })
|
clonedObj.set({ direction: obj.direction, directionText: obj.directionText, roofMaterial: obj.roofMaterial })
|
||||||
|
|
||||||
|
obj.lines.forEach((line, index) => {
|
||||||
|
clonedObj.lines[index].set({ attributes: line.attributes })
|
||||||
|
})
|
||||||
|
|
||||||
canvas.renderAll()
|
canvas.renderAll()
|
||||||
addLengthText(clonedObj) //수치 추가
|
addLengthText(clonedObj) //수치 추가
|
||||||
drawDirectionArrow(clonedObj) //방향 화살표 추가
|
drawDirectionArrow(clonedObj) //방향 화살표 추가
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user