parent로 수정

This commit is contained in:
hyojun.choi 2025-02-20 16:58:57 +09:00
parent 236ad5c20e
commit f0cbceb64e

View File

@ -710,7 +710,7 @@ export const useTrestle = () => {
slope,
classType: currentAngleType === 'slope' ? '0' : '1',
angle: getDegreeByChon(slope),
azimuth: getAzimuth(surface),
azimuth: getAzimuth(parent),
moduleList,
}
})
@ -726,8 +726,9 @@ export const useTrestle = () => {
return { itemList, northArrangement, roofSurfaceList, circuitItemList }
}
const getAzimuth = (surface) => {
const { moduleCompass, surfaceCompass, direction } = surface
const getAzimuth = (parent) => {
debugger
const { moduleCompass, surfaceCompass, direction } = parent
if (surfaceCompass) {
if (surfaceCompass > 180) {