토글면 되살리기
This commit is contained in:
parent
dfc67cb7dd
commit
64f8443b3a
@ -65,8 +65,6 @@ export function useModuleBasicSetting(tabNum) {
|
||||
const common = moduleSelectionData.common
|
||||
const roofConstructions = moduleSelectionData.roofConstructions
|
||||
|
||||
console.log('moduleSelectionData', moduleSelectionData)
|
||||
|
||||
const listParams = roofConstructions.map((item) => {
|
||||
return {
|
||||
...common,
|
||||
@ -199,8 +197,11 @@ export function useModuleBasicSetting(tabNum) {
|
||||
})
|
||||
|
||||
const isExistSurface = canvas.getObjects().find((obj) => obj.name === POLYGON_TYPE.MODULE_SETUP_SURFACE && obj.parentId === roof.id)
|
||||
canvas.remove(isExistSurface)
|
||||
|
||||
if (isExistSurface) {
|
||||
addTargetMouseEventListener('mousedown', isExistSurface, function () {
|
||||
toggleSelection(isExistSurface)
|
||||
})
|
||||
} else {
|
||||
let offsetLength = canvasSetting.roofSizeSet === '3' ? -30 : (trestleDetail.eaveIntvl / 10) * -1
|
||||
setSurfaceShapePattern(roof, roofDisplay.column, true) //패턴 변경
|
||||
const offsetPoints = offsetPolygon(roof.points, offsetLength) //안쪽 offset
|
||||
@ -269,6 +270,7 @@ export function useModuleBasicSetting(tabNum) {
|
||||
toggleSelection(setupSurface)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
let selectedModuleInstSurfaceArray = []
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user