[지붕덮개] 자동형상 설정 - 변별로 설정 오류 확인 요청

This commit is contained in:
hyojun.choi 2025-02-28 17:10:47 +09:00
parent fce3f051be
commit 58c401b175

View File

@ -215,9 +215,13 @@ export function useRoofShapeSetting(id) {
}
case 4: {
outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
let isValid = outerLines.every((line) => line.attributes?.isFixed)
if (!isValid) {
swalFire({ text: '설정이 완료되지 않았습니다.', icon: 'error' })
return
}
const pitch = outerLines.find((line) => line.attributes.type === LINE_TYPE.WALLLINE.SHED)?.attributes.pitch
let isValid = outerLines.every((line) => line.attributes.isFixed)
// 변별로 설정중 한쪽흐름일 경우 한쪽흐름의 pitch로 설정
if (pitch) {
outerLines.forEach((line) => {
@ -230,10 +234,6 @@ export function useRoofShapeSetting(id) {
}
})
}
if (!isValid) {
swalFire({ text: '설정이 완료되지 않았습니다.', icon: 'error' })
return
}
break
}