이름변경
This commit is contained in:
parent
3a9ef49e4c
commit
1c0c6a478e
@ -3316,14 +3316,14 @@ export function useMode() {
|
|||||||
canvas.discardActiveObject() // 객체의 활성 상태 해제
|
canvas.discardActiveObject() // 객체의 활성 상태 해제
|
||||||
|
|
||||||
//폴리곤에 커스텀 인덱스를 가지고 해당 배열 인덱스를 찾아 삭제함
|
//폴리곤에 커스텀 인덱스를 가지고 해당 배열 인덱스를 찾아 삭제함
|
||||||
const removeIndex = polygon.customIndex
|
const removeIndex = polygon.idx
|
||||||
const removeArrayIndex = selectedAreaArray.findIndex((x) => x.customIndex === removeIndex)
|
const removeArrayIndex = selectedAreaArray.findIndex((x) => x.idx === removeIndex)
|
||||||
selectedAreaArray.splice(removeArrayIndex, 1)
|
selectedAreaArray.splice(removeArrayIndex, 1)
|
||||||
}
|
}
|
||||||
canvas?.renderAll()
|
canvas?.renderAll()
|
||||||
}
|
}
|
||||||
|
|
||||||
//외각선을 안쪽으로 그려 가대선을 그린다.
|
// 외각선을 안쪽으로 그려 가대선을 그린다.
|
||||||
polygons.forEach((polygon, index) => {
|
polygons.forEach((polygon, index) => {
|
||||||
const trestlePolygon = handleOuterlinesTest(polygon, -12)
|
const trestlePolygon = handleOuterlinesTest(polygon, -12)
|
||||||
trestlePolygon.setViewLengthText(false) //얘는 set으로 안먹는다...
|
trestlePolygon.setViewLengthText(false) //얘는 set으로 안먹는다...
|
||||||
@ -3337,7 +3337,8 @@ export function useMode() {
|
|||||||
lockScalingX: true,
|
lockScalingX: true,
|
||||||
lockScalingY: true,
|
lockScalingY: true,
|
||||||
bringToFront: true,
|
bringToFront: true,
|
||||||
customIndex: polygon.customIndex, //가대 폴리곤의 임시 인덱스를 넣어줌
|
idx: polygon.customIndex, //가대 폴리곤의 임시 인덱스를 넣어줌
|
||||||
|
name: 'trestlePolygon',
|
||||||
})
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3347,6 +3348,7 @@ export function useMode() {
|
|||||||
toggleSelection(trestlePolygon)
|
toggleSelection(trestlePolygon)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
setSelectedCellRoofArray(selectedAreaArray)
|
setSelectedCellRoofArray(selectedAreaArray)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user