토글면 되살리기

This commit is contained in:
yjnoh 2025-02-07 20:59:56 +09:00
parent dfc67cb7dd
commit 64f8443b3a

View File

@ -65,8 +65,6 @@ export function useModuleBasicSetting(tabNum) {
const common = moduleSelectionData.common const common = moduleSelectionData.common
const roofConstructions = moduleSelectionData.roofConstructions const roofConstructions = moduleSelectionData.roofConstructions
console.log('moduleSelectionData', moduleSelectionData)
const listParams = roofConstructions.map((item) => { const listParams = roofConstructions.map((item) => {
return { return {
...common, ...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) 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 let offsetLength = canvasSetting.roofSizeSet === '3' ? -30 : (trestleDetail.eaveIntvl / 10) * -1
setSurfaceShapePattern(roof, roofDisplay.column, true) //패턴 변경 setSurfaceShapePattern(roof, roofDisplay.column, true) //패턴 변경
const offsetPoints = offsetPolygon(roof.points, offsetLength) //안쪽 offset const offsetPoints = offsetPolygon(roof.points, offsetLength) //안쪽 offset
@ -269,6 +270,7 @@ export function useModuleBasicSetting(tabNum) {
toggleSelection(setupSurface) toggleSelection(setupSurface)
}) })
} }
}
let selectedModuleInstSurfaceArray = [] let selectedModuleInstSurfaceArray = []