length가 1 미만인 경우 actualSize 작성할 필요 없음

This commit is contained in:
hyojun.choi 2025-05-14 10:30:08 +09:00
parent a3b25c3403
commit 4b120326db

View File

@ -356,7 +356,7 @@ export function useRoofAllocationSetting(id) {
roofBases.forEach((roof) => {
if (roof.separatePolygon.length === 0) {
roof.innerLines.forEach((line) => {
if (!line.attributes.actualSize || line.attributes?.actualSize === 0) {
if ((!line.attributes.actualSize || line.attributes?.actualSize === 0) && line.length > 1) {
line.set({ strokeWidth: 4, stroke: 'black', selectable: true })
result = true
}