dev #613

Merged
ysCha merged 2 commits from dev into prd-deploy 2026-01-29 09:18:34 +09:00
Showing only changes of commit ea6a17e375 - Show all commits

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