변별로 설정중 한쪽흐름일 경우 한쪽흐름의 pitch로 설정

This commit is contained in:
hyojun.choi 2024-12-24 10:02:02 +09:00
parent d6b4a03293
commit 789ac9f650

View File

@ -185,9 +185,19 @@ export function useRoofShapeSetting(id) {
} }
case 4: { case 4: {
outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine') outerLines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
outerLines.forEach((line) => { const pitch = outerLines.find((line) => line.attributes.type === LINE_TYPE.WALLLINE.SHED)?.attributes.pitch
// hideLine(line) // 한쪽흐름일 경우 한쪽흐름의 pitch로 설정
}) if (pitch) {
outerLines.forEach((line) => {
if (line.attributes.type === LINE_TYPE.WALLLINE.EAVES) {
line.attributes = {
...line.attributes,
pitch: pitch,
}
}
})
}
break break
} }