[지붕덮개] 자동형상 설정 - 변별로 설정 오류 확인 요청
This commit is contained in:
parent
fce3f051be
commit
58c401b175
@ -215,9 +215,13 @@ export function useRoofShapeSetting(id) {
|
|||||||
}
|
}
|
||||||
case 4: {
|
case 4: {
|
||||||
outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
|
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
|
const pitch = outerLines.find((line) => line.attributes.type === LINE_TYPE.WALLLINE.SHED)?.attributes.pitch
|
||||||
let isValid = outerLines.every((line) => line.attributes.isFixed)
|
|
||||||
// 변별로 설정중 한쪽흐름일 경우 한쪽흐름의 pitch로 설정
|
// 변별로 설정중 한쪽흐름일 경우 한쪽흐름의 pitch로 설정
|
||||||
if (pitch) {
|
if (pitch) {
|
||||||
outerLines.forEach((line) => {
|
outerLines.forEach((line) => {
|
||||||
@ -230,10 +234,6 @@ export function useRoofShapeSetting(id) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (!isValid) {
|
|
||||||
swalFire({ text: '설정이 완료되지 않았습니다.', icon: 'error' })
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user