Orientation에서 nextstep시 compas 매개변수 추가

This commit is contained in:
김민식 2025-04-11 16:41:28 +09:00
parent 08a29aec26
commit 2897dc26e3
4 changed files with 5 additions and 7 deletions

View File

@ -125,7 +125,7 @@ export const Orientation = forwardRef((props, ref) => {
setVerticalSnowCover(inputVerticalSnowCover)
setSelectedSurfaceType(inputRoughness)
setStandardWindSpeed(inputStandardWindSpeed)
nextStep()
nextStep(inputCompasDeg)
setManagementState({
...managementState,
installHeight: inputInstallHeight,

View File

@ -369,8 +369,6 @@ const Trestle = forwardRef((props, ref) => {
// ...constructionList.find((construction) => newAddedRoofs[index].construction.constTp === construction.constTp),
...roof.construction,
roofIndex: roof.index,
setupCover: roof.construction.cvrChecked,
setupSnowCover: roof.construction.snowGdChecked,
selectedIndex: roof.index,
},
trestleDetail: roof.trestleDetail,

View File

@ -409,7 +409,7 @@ export function useModuleBasicSetting(tabNum) {
useEffect(() => {
if (canvasSetting.roofSizeSet != '3') {
if (isObjectNotEmpty(moduleSelectionData) && moduleSelectionData.common.saleStoreNorthFlg === '1') {
if (isObjectNotEmpty(moduleSelectionData) && moduleSelectionData?.common?.saleStoreNorthFlg === '1') {
setSaleStoreNorthFlg(true)
}
}

View File

@ -22,8 +22,8 @@ export function useOrientation() {
})
}, [])*/
const nextStep = () => {
if (isNaN(compasDeg)) {
const nextStep = (compas = compasDeg) => {
if (isNaN(compas)) {
setCompasDeg(0)
}
const roofs = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.ROOF)
@ -36,7 +36,7 @@ export function useOrientation() {
roofs.forEach((roof) => {
roof.set({
moduleCompass: isNaN(compasDeg) ? 0 : compasDeg,
moduleCompass: isNaN(compas) ? 0 : compas,
})
drawDirectionArrow(roof)
})