dev #613
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user