Orientation에서 nextstep시 compas 매개변수 추가
This commit is contained in:
parent
08a29aec26
commit
2897dc26e3
@ -125,7 +125,7 @@ export const Orientation = forwardRef((props, ref) => {
|
||||
setVerticalSnowCover(inputVerticalSnowCover)
|
||||
setSelectedSurfaceType(inputRoughness)
|
||||
setStandardWindSpeed(inputStandardWindSpeed)
|
||||
nextStep()
|
||||
nextStep(inputCompasDeg)
|
||||
setManagementState({
|
||||
...managementState,
|
||||
installHeight: inputInstallHeight,
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@ -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)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user