86er1bfpd 지붕형상 수동 설정 - 변 적용 표시

This commit is contained in:
hyojun.choi 2024-12-23 10:36:03 +09:00
parent f4f885dda9
commit d97f763241

View File

@ -86,10 +86,21 @@ export function useRoofShapePassivitySetting(id) {
useEffect(() => {
const lines = canvas.getObjects().filter((obj) => obj.name === 'outerLine')
let stroke, strokeWidth
lines.forEach((line) => {
if (line.attributes.type === LINE_TYPE.WALLLINE.EAVES || line.attributes.type === LINE_TYPE.WALLLINE.HIPANDGABLE) {
stroke = '#45CD7D'
strokeWidth = 4
} else if (line.attributes.type === LINE_TYPE.WALLLINE.GABLE || line.attributes.type === LINE_TYPE.WALLLINE.JERKINHEAD) {
stroke = '#3FBAE6'
strokeWidth = 4
} else {
stroke = '#000000'
strokeWidth = 4
}
line.set({
stroke: '#000000',
strokeWidth: 4,
stroke,
strokeWidth,
})
})
if (!currentObject) {