From 07ce6b6f4d4a5cd614990a5eb3a1c76329bfecd3 Mon Sep 17 00:00:00 2001 From: ysCha Date: Tue, 10 Mar 2026 15:06:55 +0900 Subject: [PATCH] =?UTF-8?q?[1456]=EB=B0=B0=EC=B9=98=EB=A9=B4=20=EC=B4=88?= =?UTF-8?q?=EA=B8=B0=20=EC=84=A4=EC=A0=95=EC=97=90=EC=84=9C=EC=9D=98=20?= =?UTF-8?q?=EC=A7=80=EB=B6=95=EC=9E=AC=EC=99=80=20=EC=B4=8C=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../placementShape/PlacementShapeSetting.jsx | 152 +++++++++--------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx index 87ad753c..a4e9959f 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx @@ -342,82 +342,6 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla - - {getMessage('modal.placement.initial.setting.roof.angle.setting')} - -
- {currentRoof && - roofAngleSetArray.map((item, index) => ( -
- -
- setCurrentRoof({ ...currentRoof, roofAngleSet: e.target.value })} - /> - -
-
-
- {/* { - const v = normalizeDecimal(e.target.value) - e.target.value = v - if (index === 0) { - const num = v === '' ? '' : Number(v) - setCurrentRoof({ ...currentRoof, pitch: num === '' ? '' : num, angle: num === '' ? '' : getDegreeByChon(num) }) - } else { - const num = v === '' ? '' : Number(v) - setCurrentRoof({ ...currentRoof, pitch: num === '' ? '' : getChonByDegree(num), angle: num === '' ? '' : num }) - } - }} - /> */} - { - if (index === 0) { - const pitch = value === '' ? '' : Number(value) - const angle = pitch === '' ? '' : getDegreeByChon(pitch) - setCurrentRoof((prev) => ({ - ...prev, - pitch, - angle, - })) - } else { - const angle = value === '' ? '' : Number(value) - const pitch = angle === '' ? '' : getChonByDegree(angle) - setCurrentRoof((prev) => ({ - ...prev, - pitch, - angle, - })) - } - }} - options={{ - allowNegative: false, - allowDecimal: true, - }} - /> -
- {index === 0 ? '寸' : '度'} -
- ))} -
- -
@@ -600,6 +524,82 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla )} */} + + {getMessage('modal.placement.initial.setting.roof.angle.setting')} + +
+ {currentRoof && + roofAngleSetArray.map((item, index) => ( +
+ +
+ setCurrentRoof({ ...currentRoof, roofAngleSet: e.target.value })} + /> + +
+
+
+ {/* { + const v = normalizeDecimal(e.target.value) + e.target.value = v + if (index === 0) { + const num = v === '' ? '' : Number(v) + setCurrentRoof({ ...currentRoof, pitch: num === '' ? '' : num, angle: num === '' ? '' : getDegreeByChon(num) }) + } else { + const num = v === '' ? '' : Number(v) + setCurrentRoof({ ...currentRoof, pitch: num === '' ? '' : getChonByDegree(num), angle: num === '' ? '' : num }) + } + }} + /> */} + { + if (index === 0) { + const pitch = value === '' ? '' : Number(value) + const angle = pitch === '' ? '' : getDegreeByChon(pitch) + setCurrentRoof((prev) => ({ + ...prev, + pitch, + angle, + })) + } else { + const angle = value === '' ? '' : Number(value) + const pitch = angle === '' ? '' : getChonByDegree(angle) + setCurrentRoof((prev) => ({ + ...prev, + pitch, + angle, + })) + } + }} + options={{ + allowNegative: false, + allowDecimal: true, + }} + /> +
+ {index === 0 ? '寸' : '度'} +
+ ))} +
+ +