From f2445b41d648aa50e1f4a4410da11f552b9e00fb Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Wed, 8 Jan 2025 15:04:09 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=A9=EC=9C=84=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95=20=EC=BC=80=EB=9D=BC?= =?UTF-8?q?=EB=B0=94=20=EA=B2=BD=EC=82=AC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../floor-plan/modal/flowDirection/FlowDirectionSetting.jsx | 5 ++++- .../floor-plan/modal/roofShape/passivity/Gable.jsx | 4 ++-- src/hooks/roofcover/useRoofShapePassivitySetting.js | 1 - 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/floor-plan/modal/flowDirection/FlowDirectionSetting.jsx b/src/components/floor-plan/modal/flowDirection/FlowDirectionSetting.jsx index 8e072e18..18eef849 100644 --- a/src/components/floor-plan/modal/flowDirection/FlowDirectionSetting.jsx +++ b/src/components/floor-plan/modal/flowDirection/FlowDirectionSetting.jsx @@ -108,13 +108,16 @@ export default function FlowDirectionSetting(props) {
{ setType(FLOW_DIRECTION_TYPE.EIGHT_AZIMUTH) setSelectedOrientation(e) setCompasDeg(e.value) }} + showKey={'name'} + targetKey={'value'} + sourceKey={'value'} />
diff --git a/src/components/floor-plan/modal/roofShape/passivity/Gable.jsx b/src/components/floor-plan/modal/roofShape/passivity/Gable.jsx index 8773ec32..6da1266e 100644 --- a/src/components/floor-plan/modal/roofShape/passivity/Gable.jsx +++ b/src/components/floor-plan/modal/roofShape/passivity/Gable.jsx @@ -1,8 +1,8 @@ import { useMessage } from '@/hooks/useMessage' 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 currentAngleType = useRecoilValue(currentAngleTypeSelector) return ( diff --git a/src/hooks/roofcover/useRoofShapePassivitySetting.js b/src/hooks/roofcover/useRoofShapePassivitySetting.js index 7c29dd8d..c51da066 100644 --- a/src/hooks/roofcover/useRoofShapePassivitySetting.js +++ b/src/hooks/roofcover/useRoofShapePassivitySetting.js @@ -159,7 +159,6 @@ export function useRoofShapePassivitySetting(id) { } else if (type === TYPES.GABLE) { attributes = { type: LINE_TYPE.WALLLINE.GABLE, - pitch: currentAngleType === ANGLE_TYPE.SLOPE ? pitchRef.current.value : getChonByDegree(pitchRef.current.value), offset, } } else if (type === TYPES.SHED) {