방위설정 오류 수정

케라바 경사 제거
This commit is contained in:
hyojun.choi 2025-01-08 15:04:09 +09:00
parent f2a77c339d
commit f2445b41d6
3 changed files with 6 additions and 4 deletions

View File

@ -108,13 +108,16 @@ export default function FlowDirectionSetting(props) {
</div> </div>
<div className="grid-select "> <div className="grid-select ">
<QSelectBox <QSelectBox
title={selectedOrientation.name} value={selectedOrientation}
options={orientations} options={orientations}
onChange={(e) => { onChange={(e) => {
setType(FLOW_DIRECTION_TYPE.EIGHT_AZIMUTH) setType(FLOW_DIRECTION_TYPE.EIGHT_AZIMUTH)
setSelectedOrientation(e) setSelectedOrientation(e)
setCompasDeg(e.value) setCompasDeg(e.value)
}} }}
showKey={'name'}
targetKey={'value'}
sourceKey={'value'}
/> />
</div> </div>
</div> </div>

View File

@ -1,8 +1,8 @@
import { useMessage } from '@/hooks/useMessage' import { useMessage } from '@/hooks/useMessage'
import { useRecoilValue } from 'recoil' import { useRecoilValue } from 'recoil'
import { ANGLE_TYPE, currentAngleTypeSelector } from '@/store/canvasAtom' import { currentAngleTypeSelector } from '@/store/canvasAtom'
export default function Gable({ offsetRef, pitchRef, pitchText }) { export default function Gable({ offsetRef }) {
const { getMessage } = useMessage() const { getMessage } = useMessage()
const currentAngleType = useRecoilValue(currentAngleTypeSelector) const currentAngleType = useRecoilValue(currentAngleTypeSelector)
return ( return (

View File

@ -159,7 +159,6 @@ export function useRoofShapePassivitySetting(id) {
} else if (type === TYPES.GABLE) { } else if (type === TYPES.GABLE) {
attributes = { attributes = {
type: LINE_TYPE.WALLLINE.GABLE, type: LINE_TYPE.WALLLINE.GABLE,
pitch: currentAngleType === ANGLE_TYPE.SLOPE ? pitchRef.current.value : getChonByDegree(pitchRef.current.value),
offset, offset,
} }
} else if (type === TYPES.SHED) { } else if (type === TYPES.SHED) {