From 748d7f83711a8ad96c1579cfa382a1058583df75 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Mon, 17 Feb 2025 16:06:20 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=BD=EC=82=AC,=20=EA=B0=81=EB=8F=84=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=20=EC=8B=9C=20=EC=96=91=EB=B0=A9=ED=96=A5?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=88=98=EC=A0=95=EB=90=98=EB=8F=84?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modal/placementShape/PlacementShapeSetting.jsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx index 87b71111..d3aabd8e 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx @@ -15,6 +15,7 @@ import QSelectBox from '@/components/common/select/QSelectBox' import { globalLocaleStore } from '@/store/localeAtom' import { onlyNumberInputChange } from '@/util/input-utils' +import { getChonByDegree, getDegreeByChon } from '@/util/canvas-util' export const ROOF_MATERIAL_LAYOUT = { PARALLEL: 'P', @@ -79,14 +80,12 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla raft: '', raftAuth: 'C', raftBaseCd: 'HEI_455', - roofAngleSet: 'slope', roofCd: '', roofMatlCd: 'ROOF_ID_WA_53A', roofMatlNm: '일본기와 A', roofMatlNmJp: '和瓦A', roofPchAuth: null, roofPchBase: null, - roofSizeSet: '1', selected: true, widAuth: 'R', widBase: '265.000', @@ -288,8 +287,8 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla value={index === 0 ? currentRoof?.pitch : currentRoof?.angle} onChange={(e) => index === 0 - ? setCurrentRoof({ ...currentRoof, pitch: e.target.value }) - : setCurrentRoof({ ...currentRoof, angle: e.target.value }) + ? setCurrentRoof({ ...currentRoof, pitch: e.target.value, angle: getDegreeByChon(e.target.value) }) + : setCurrentRoof({ ...currentRoof, pitch: getChonByDegree(e.target.value), angle: e.target.value }) } />