길이 계산 후 렌더링 안되는 현상 수정

This commit is contained in:
hyojun.choi 2026-01-28 15:24:47 +09:00
parent 5cbb075188
commit ea6a17e375

View File

@ -179,7 +179,7 @@ export function useCanvasSetting(executeEffect = true) {
layout: ['ROOF_ID_SLATE', 'ROOF_ID_SINGLE'].includes(item.roofMatlCd) ? ROOF_MATERIAL_LAYOUT.STAIRS : ROOF_MATERIAL_LAYOUT.PARALLEL,
hajebichi: item.roofPchBase && parseInt(item.roofPchBase),
pitch: item.inclBase ? parseInt(item.inclBase) : 4,
angle: getDegreeByChon(item.inclBase ? parseInt(item.inclBase): 4) //item.angle ? parseInt(item.angle) : 21.8,
angle: getDegreeByChon(item.inclBase ? parseInt(item.inclBase) : 4), //item.angle ? parseInt(item.angle) : 21.8,
}))
setRoofMaterials(roofLists)
return roofLists
@ -231,8 +231,9 @@ export function useCanvasSetting(executeEffect = true) {
setPolygonLinesActualSize(roof)
})
changeCorridorDimensionText()
canvas.renderAll()
}
}, [corridorDimension])
}, [corridorDimension, canvasSetting])
useEffect(() => {
if (!executeEffect) {