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) setVerticalSnowCover(inputVerticalSnowCover)
setSelectedSurfaceType(inputRoughness) setSelectedSurfaceType(inputRoughness)
setStandardWindSpeed(inputStandardWindSpeed) setStandardWindSpeed(inputStandardWindSpeed)
nextStep() nextStep(inputCompasDeg)
setManagementState({ setManagementState({
...managementState, ...managementState,
installHeight: inputInstallHeight, installHeight: inputInstallHeight,

View File

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

View File

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

View File

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