From bba5a8d54cd324d66f59b539a5ee19b7aecb1cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=AF=BC=EC=8B=9D?= <43837214+Minsiki@users.noreply.github.com> Date: Thu, 13 Mar 2025 16:12:44 +0900 Subject: [PATCH] =?UTF-8?q?WithDraggable=20=EA=B3=B5=ED=86=B5=ED=99=94=20?= =?UTF-8?q?=EC=9E=91=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/color-picker/ColorPickerModal.jsx | 71 ++-- .../common/draggable/WithDraggable.jsx | 56 ++- src/components/common/font/FontSetting.jsx | 196 +++++---- src/components/floor-plan/modal/ImgLoad.jsx | 153 ++++--- src/components/floor-plan/modal/Slope.jsx | 58 ++- .../modal/auxiliary/AuxiliaryDrawing.jsx | 66 ++- .../modal/auxiliary/AuxiliaryEdit.jsx | 120 +++--- .../modal/auxiliary/AuxiliarySize.jsx | 100 +++-- .../floor-plan/modal/basic/BasicSetting.jsx | 120 +++--- .../circuitTrestle/CircuitTrestleSetting.jsx | 101 +++-- .../dimensionLine/DimensionLineSetting.jsx | 164 ++++---- .../floor-plan/modal/distance/Distance.jsx | 78 ++-- .../modal/eavesGable/EavesGableEdit.jsx | 42 +- .../flowDirection/FlowDirectionSetting.jsx | 204 +++++----- .../floor-plan/modal/grid/DotLineGrid.jsx | 224 +++++------ .../floor-plan/modal/grid/GridCopy.jsx | 104 +++-- .../floor-plan/modal/grid/GridMove.jsx | 152 ++++--- .../lineProperty/LinePropertySetting.jsx | 72 ++-- .../modal/module/CircuitNumberEdit.jsx | 46 +-- .../floor-plan/modal/module/PanelEdit.jsx | 117 +++--- .../modal/module/column/ColumnInsert.jsx | 144 +++---- .../modal/module/column/ColumnRemove.jsx | 136 +++---- .../floor-plan/modal/module/row/RowInsert.jsx | 155 ++++--- .../floor-plan/modal/module/row/RowRemove.jsx | 160 ++++---- .../modal/movement/MovementSetting.jsx | 46 +-- .../floor-plan/modal/object/DormerOffset.jsx | 112 +++--- .../floor-plan/modal/object/ObjectSetting.jsx | 60 ++- .../modal/object/RoofMaterialSetting.jsx | 30 +- .../floor-plan/modal/object/SizeSetting.jsx | 74 ++-- .../outerlinesetting/PropertiesSetting.jsx | 54 +-- .../outerlinesetting/WallLineSetting.jsx | 84 ++-- .../modal/panelBatch/PanelBatchStatistics.jsx | 62 +-- .../placementShape/PlacementShapeDrawing.jsx | 64 ++- .../placementShape/PlacementShapeSetting.jsx | 379 +++++++++--------- .../PlacementSurfaceLineProperty.jsx | 60 ++- .../PlacementSurfaceSetting.jsx | 92 ++--- .../roofAllocation/ActualSizeSetting.jsx | 81 ++-- .../ContextRoofAllocationSetting.jsx | 288 +++++++------ .../roofAllocation/RoofAllocationSetting.jsx | 278 +++++++------ .../roofShape/RoofShapePassivitySetting.jsx | 62 ++- .../modal/roofShape/RoofShapeSetting.jsx | 56 ++- .../modal/setting01/SettingModal01.jsx | 52 +-- .../dimensionLine/DimensionLineSetting.jsx | 122 +++--- .../setting01/planSize/PlanSizeSetting.jsx | 92 ++--- .../wallLineOffset/WallLineOffsetSetting.jsx | 48 +-- 45 files changed, 2305 insertions(+), 2730 deletions(-) diff --git a/src/components/common/color-picker/ColorPickerModal.jsx b/src/components/common/color-picker/ColorPickerModal.jsx index 94f24f42..f6176bdb 100644 --- a/src/components/common/color-picker/ColorPickerModal.jsx +++ b/src/components/common/color-picker/ColorPickerModal.jsx @@ -33,54 +33,43 @@ export default function ColorPickerModal(props) { }, [isShow]) return ( - -
-
-

{getMessage('modal.color.picker.title')}

+ + { + if (setIsShow) { + setIsShow(false) + } + closePopup(id, isConfig) + }} + /> + +
+
+ +
+
+
-
-
-
-
-
- -
-
-
- -
-
-
-
+ ) } diff --git a/src/components/common/draggable/WithDraggable.jsx b/src/components/common/draggable/WithDraggable.jsx index 732d8ff7..e2f769cc 100644 --- a/src/components/common/draggable/WithDraggable.jsx +++ b/src/components/common/draggable/WithDraggable.jsx @@ -3,7 +3,16 @@ import { useState } from 'react' import Draggable from 'react-draggable' -export default function WithDraggable({ isShow, children, pos = { x: 0, y: 0 }, handle = '' }) { +export default function WithDraggable({ + isShow, + children, + pos = { x: 0, y: 0 }, + handle = '', + className = '', + isModal = true, + hasFooter = true, + isHidden = false, +}) { const [position, setPosition] = useState(pos) const handleOnDrag = (e, data) => { @@ -22,9 +31,52 @@ export default function WithDraggable({ isShow, children, pos = { x: 0, y: 0 }, onDrag={(e, data) => handleOnDrag(e, data)} handle={handle === '' ? '.modal-handle' : handle} > - {children} + {isModal ? ( +
+ {children} + {hasFooter && } +
+ ) : ( + <>{children} + )} )} ) } + +function WithDraggableHeader({ title, onClose, children }) { + return ( +
+

{title}

+ {onClose && ( + + )} +
+ ) +} + +function WithDraggableBody({ children }) { + return ( +
+
+
+ <>{children} +
+ ) +} + +function WithDraggablePanel({ children }) { + return <>{children} +} + +function WithDraggableFooter() { + return
+} + +WithDraggable.Header = WithDraggableHeader +WithDraggable.Body = WithDraggableBody +WithDraggable.Panel = WithDraggablePanel +WithDraggable.Footer = WithDraggableFooter diff --git a/src/components/common/font/FontSetting.jsx b/src/components/common/font/FontSetting.jsx index beb31aa3..0c3623f6 100644 --- a/src/components/common/font/FontSetting.jsx +++ b/src/components/common/font/FontSetting.jsx @@ -67,111 +67,101 @@ export default function FontSetting(props) { } return ( - -
-
-

{getMessage('modal.font')}

-
-
-
-
-
-
-
-
{getMessage('modal.font')}(F)
-
- { - setSelectedFont(e) - }} - showKey={'name'} - sourceKey={'value'} - targetKey={'value'} - /> -
-
-
-
{getMessage('modal.font.style')}(Y)
-
- { - setSelectedFontWeight(e) - }} - showKey={'name'} - targetKey={'id'} - sourceKey={'id'} - /> -
-
-
-
{getMessage('modal.font.size')}(S)
-
- setSelectedFontSize(e)} - showKey={'name'} - sourceKey={'value'} - targetKey={'value'} - /> -
-
-
-
{getMessage('modal.font.color')}
-
- { - setSelectedFontColor(e) - }} - /> -
-
-
-
-
{getMessage('modal.font.setting.display')}
-
- - Aaあぁアァ - -
-
-
{getMessage('modal.font.setting.info')}
-
-
- -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/ImgLoad.jsx b/src/components/floor-plan/modal/ImgLoad.jsx index b33871ef..dda395a9 100644 --- a/src/components/floor-plan/modal/ImgLoad.jsx +++ b/src/components/floor-plan/modal/ImgLoad.jsx @@ -76,99 +76,88 @@ export default function ImgLoad() { }, [currentCanvasPlan]) return ( - -
-
-

{getMessage('common.input.file')}

- + + setFloorPlanState({ ...floorPlanState, refFileModalOpen: false })} + /> + + +
+ {getMessage('modal.image.load.size.rotate')} +
-
-
-
-
- {getMessage('modal.image.load.size.rotate')} - -
-
-
-
- handleRefFileMethod(e)} checked={refFileMethod === '1'} /> - -
-
-
- - handleRefFile(e.target.files[0]) : () => {}} - /> -
-
- - {refImage && } -
-
+
+
+
+ handleRefFileMethod(e)} checked={refFileMethod === '1'} /> +
-
-
- handleRefFileMethod(e)} checked={refFileMethod === '2'} /> - +
+
+ + handleRefFile(e.target.files[0]) : () => {}} + />
-
+
setMapPositionAddress(e.target.value)} + className="input-origin al-l" + value={refImage ? (refImage?.name ?? '') : (currentCanvasPlan?.bgImageName ?? '')} + readOnly /> -
- -
- {mapPositionAddress && } - {/* */} + {refImage && }
-
- - {/* */} +
+
+ handleRefFileMethod(e)} checked={refFileMethod === '2'} /> + +
+
+ setMapPositionAddress(e.target.value)} + /> +
+ +
+ {mapPositionAddress && } + {/* */} +
-
-
+
+ + {/* */} +
+ ) } diff --git a/src/components/floor-plan/modal/Slope.jsx b/src/components/floor-plan/modal/Slope.jsx index e867dcab..df4a25d7 100644 --- a/src/components/floor-plan/modal/Slope.jsx +++ b/src/components/floor-plan/modal/Slope.jsx @@ -13,42 +13,32 @@ export default function Slope({ id, pos = { x: 50, y: 230 } }) { const inputRef = useRef() return ( - -
-
-

{getMessage('plan.menu.placement.surface.slope.setting')}

-
-
-
-
-
-
- - {getMessage('slope')} - -
- -
- {pitchText} -
-
-
- -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/auxiliary/AuxiliaryDrawing.jsx b/src/components/floor-plan/modal/auxiliary/AuxiliaryDrawing.jsx index 3a9d64d6..1417b501 100644 --- a/src/components/floor-plan/modal/auxiliary/AuxiliaryDrawing.jsx +++ b/src/components/floor-plan/modal/auxiliary/AuxiliaryDrawing.jsx @@ -124,46 +124,36 @@ export default function AuxiliaryDrawing({ id, pos = { x: 50, y: 230 } }) { setType(button.type) } return ( - -
-
-

{getMessage('modal.auxiliary.drawing')}

- + ))} +
+
+
{getMessage('setting')}
+ {buttonAct === 1 && } + {buttonAct === 2 && } + {buttonAct === 3 && } + {buttonAct === 4 && } + {buttonAct === 5 && } +
+
+ + +
-
-
-
-
- {types.map((type, idx) => ( - - ))} -
-
-
{getMessage('setting')}
- {buttonAct === 1 && } - {buttonAct === 2 && } - {buttonAct === 3 && } - {buttonAct === 4 && } - {buttonAct === 5 && } -
-
- - - -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/auxiliary/AuxiliaryEdit.jsx b/src/components/floor-plan/modal/auxiliary/AuxiliaryEdit.jsx index c8e7b95a..744b3387 100644 --- a/src/components/floor-plan/modal/auxiliary/AuxiliaryEdit.jsx +++ b/src/components/floor-plan/modal/auxiliary/AuxiliaryEdit.jsx @@ -55,77 +55,67 @@ export default function AuxiliaryEdit(props) { closePopup(id) } return ( - -
-
-

{getMessage(type === 'copy' ? 'modal.auxiliary.copy' : 'modal.auxiliary.move')}

- -
-
-
-
-
{getMessage(type === 'copy' ? 'modal.auxiliary.copy.info' : 'modal.auxiliary.move.info')}
-
-
-
-

{getMessage('length')}

-
-
- setVerticalSize(e.target.value)} /> -
- mm -
- - -
+ + closePopup(id)} /> + +
{getMessage(type === 'copy' ? 'modal.auxiliary.copy.info' : 'modal.auxiliary.move.info')}
+
+
+
+

{getMessage('length')}

+
+
+ setVerticalSize(e.target.value)} />
-
-
- setHorizonSize(e.target.value)} /> -
- mm -
- - -
+ mm +
+ + +
+
+
+
+ setHorizonSize(e.target.value)} /> +
+ mm +
+ +
-
- -
-
-
+
+ +
+
) } diff --git a/src/components/floor-plan/modal/auxiliary/AuxiliarySize.jsx b/src/components/floor-plan/modal/auxiliary/AuxiliarySize.jsx index a9f7fc82..3bb94a4f 100644 --- a/src/components/floor-plan/modal/auxiliary/AuxiliarySize.jsx +++ b/src/components/floor-plan/modal/auxiliary/AuxiliarySize.jsx @@ -111,63 +111,53 @@ export default function AuxiliarySize(props) { closePopup(id) } return ( - -
-
-

{getMessage('modal.auxiliary.size.edit')}

-
-
-
-
-
-
- setCheckedRadio(1)} /> - -
-
-
- -
- mm -
-
- {getMessage('length')} -
- -
- mm -
-
-
-
- setCheckedRadio(2)} /> - -
-
-
- -
- mm -
-
- {getMessage('length')} -
- -
- mm -
-
-
- -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/basic/BasicSetting.jsx b/src/components/floor-plan/modal/basic/BasicSetting.jsx index 291ef086..ada6acba 100644 --- a/src/components/floor-plan/modal/basic/BasicSetting.jsx +++ b/src/components/floor-plan/modal/basic/BasicSetting.jsx @@ -135,76 +135,66 @@ export default function BasicSetting({ id, pos = { x: 50, y: 230 } }) { }, [isManualModuleSetup, isClosePopup]) return ( - -
-
-

{getMessage('plan.menu.module.circuit.setting.default')}

- + + handleClosePopup(id)} /> + +
+
{getMessage('modal.module.basic.setting.orientation.setting')}
+ +
{getMessage('modal.module.basic.setting.module.setting')}
+ +
{getMessage('modal.module.basic.setting.module.placement')}
-
-
-
-
-
{getMessage('modal.module.basic.setting.orientation.setting')}
- -
{getMessage('modal.module.basic.setting.module.setting')}
- -
{getMessage('modal.module.basic.setting.module.placement')}
-
- {tabNum === 1 && } - {/*배치면 초기설정 - 입력방법: 복시도 입력 || 실측값 입력*/} - {basicSetting.roofSizeSet && basicSetting.roofSizeSet != '3' && tabNum === 2 && } - {basicSetting.roofSizeSet && basicSetting.roofSizeSet != '3' && tabNum === 3 && } + {tabNum === 1 && } + {/*배치면 초기설정 - 입력방법: 복시도 입력 || 실측값 입력*/} + {basicSetting.roofSizeSet && basicSetting.roofSizeSet != '3' && tabNum === 2 && } + {basicSetting.roofSizeSet && basicSetting.roofSizeSet != '3' && tabNum === 3 && } - {/*배치면 초기설정 - 입력방법: 육지붕*/} - {basicSetting.roofSizeSet && basicSetting.roofSizeSet == '3' && tabNum === 2 && } - {basicSetting.roofSizeSet && basicSetting.roofSizeSet == '3' && tabNum === 3 && ( - + {/*배치면 초기설정 - 입력방법: 육지붕*/} + {basicSetting.roofSizeSet && basicSetting.roofSizeSet == '3' && tabNum === 2 && } + {basicSetting.roofSizeSet && basicSetting.roofSizeSet == '3' && tabNum === 3 && ( + + )} + +
+ {tabNum !== 1 && ( + + )} + {/*{tabNum !== 3 && }*/} + {tabNum !== 3 && ( + )} -
- {tabNum !== 1 && ( - - )} - {/*{tabNum !== 3 && }*/} - {tabNum !== 3 && ( - - )} - - {tabNum === 3 && ( - <> - {basicSetting.roofSizeSet && basicSetting.roofSizeSet != '3' && ( - <> - - - - )} - {basicSetting.roofSizeSet && basicSetting.roofSizeSet == '3' && ( - <> - - - - )} - - )} -
+ {tabNum === 3 && ( + <> + {basicSetting.roofSizeSet && basicSetting.roofSizeSet != '3' && ( + <> + + + + )} + {basicSetting.roofSizeSet && basicSetting.roofSizeSet == '3' && ( + <> + + + + )} + + )}
-
-
+
) } diff --git a/src/components/floor-plan/modal/circuitTrestle/CircuitTrestleSetting.jsx b/src/components/floor-plan/modal/circuitTrestle/CircuitTrestleSetting.jsx index f9f97833..53461f77 100644 --- a/src/components/floor-plan/modal/circuitTrestle/CircuitTrestleSetting.jsx +++ b/src/components/floor-plan/modal/circuitTrestle/CircuitTrestleSetting.jsx @@ -612,64 +612,53 @@ export default function CircuitTrestleSetting({ id }) { } return ( - -
-
-

{getMessage('modal.circuit.trestle.setting')}

- {/* -
-
-
-
-
-
{getMessage('modal.circuit.trestle.setting.power.conditional.select')}
- -
- {getMessage('modal.circuit.trestle.setting.circuit.allocation')}({getMessage('modal.circuit.trestle.setting.step.up.allocation')}) -
+ + handleClose()} /> + +
+
{getMessage('modal.circuit.trestle.setting.power.conditional.select')}
+ +
+ {getMessage('modal.circuit.trestle.setting.circuit.allocation')}({getMessage('modal.circuit.trestle.setting.step.up.allocation')})
- {tabNum === 1 && allocationType === ALLOCATION_TYPE.AUTO && } - {tabNum === 1 && allocationType === ALLOCATION_TYPE.PASSIVITY && ( - - )} - {tabNum === 2 && } - {tabNum === 1 && allocationType === ALLOCATION_TYPE.AUTO && ( -
- - -
- )} - {tabNum === 1 && allocationType === ALLOCATION_TYPE.PASSIVITY && ( -
- - -
- )} - {tabNum === 2 && ( -
- - {/* -
- )}
-
-
+ {tabNum === 1 && allocationType === ALLOCATION_TYPE.AUTO && } + {tabNum === 1 && allocationType === ALLOCATION_TYPE.PASSIVITY && ( + + )} + {tabNum === 2 && } + {tabNum === 1 && allocationType === ALLOCATION_TYPE.AUTO && ( +
+ + +
+ )} + {tabNum === 1 && allocationType === ALLOCATION_TYPE.PASSIVITY && ( +
+ + +
+ )} + {tabNum === 2 && ( +
+ + {/* +
+ )} + ) } diff --git a/src/components/floor-plan/modal/dimensionLine/DimensionLineSetting.jsx b/src/components/floor-plan/modal/dimensionLine/DimensionLineSetting.jsx index e4807c36..c2acc12d 100644 --- a/src/components/floor-plan/modal/dimensionLine/DimensionLineSetting.jsx +++ b/src/components/floor-plan/modal/dimensionLine/DimensionLineSetting.jsx @@ -122,95 +122,85 @@ export default function DimensionLineSetting(props) { } return ( - -
-
-

{getMessage('contextmenu.display.edit')}

-
-
-
-
-
{getMessage('modal.display.edit.info')}
-
-
-
- {getMessage('modal.display.edit.before.length')} -
- -
-
-
-
- {getMessage('modal.display.edit.after.length')} -
- { - console.log(e.target) - setChangeLength(e.target.value) - }} - /> -
-
-
-
- setSlopeAble(!slopeAble)} /> - -
-
-
-
-
{getMessage('modal.display.edit.input.slope')}
-
-
- {getMessage('slope')} -
- setSelectedSlope1(e)} - showKey={'name'} - sourceKey={'value'} - targetKey={'value'} - /> -
- {pitchText} -
-
- {getMessage('slope')} -
- setSelectedSlope2(e)} - showKey={'name'} - sourceKey={'value'} - targetKey={'value'} - /> -
- {pitchText} -
-
-
{getMessage('modal.display.edit.input.slope.info')}
-
-
- -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/distance/Distance.jsx b/src/components/floor-plan/modal/distance/Distance.jsx index e9c175d3..8ec3aed2 100644 --- a/src/components/floor-plan/modal/distance/Distance.jsx +++ b/src/components/floor-plan/modal/distance/Distance.jsx @@ -16,62 +16,52 @@ export default function Distance(props) { } return ( - -
-
-

{getMessage('modal.distance')}

- -
-
-
-
-
-
-
-
{getMessage('modal.distance.dual.point')}
-
-
-
- -
- mm + + closePopup(id)} /> + +
+
+
+
{getMessage('modal.distance.dual.point')}
+
+
+
+
+ mm
-
-
{getMessage('modal.distance.horizon')}
-
-
-
- -
- mm +
+
+
{getMessage('modal.distance.horizon')}
+
+
+
+
+ mm
-
-
{getMessage('modal.distance.vertical')}
-
-
-
- -
- mm +
+
+
{getMessage('modal.distance.vertical')}
+
+
+
+
+ mm
-
- -
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/eavesGable/EavesGableEdit.jsx b/src/components/floor-plan/modal/eavesGable/EavesGableEdit.jsx index c3975543..a59f8f27 100644 --- a/src/components/floor-plan/modal/eavesGable/EavesGableEdit.jsx +++ b/src/components/floor-plan/modal/eavesGable/EavesGableEdit.jsx @@ -38,34 +38,24 @@ export default function EavesGableEdit({ id, pos = { x: 50, y: 230 } }) { } return ( - -
-
-

{getMessage('modal.eaves.gable.edit')}

- + + closePopup(id)} /> + +
+ {buttonMenu.map((item) => ( + + ))}
-
-
-
-
- {buttonMenu.map((item) => ( - - ))} -
-
-
{getMessage('setting')}
- {type === TYPES.EAVES && } - {type === TYPES.GABLE && } - {type === TYPES.WALL_MERGE && } - {type === TYPES.SHED && } -
+
+
{getMessage('setting')}
+ {type === TYPES.EAVES && } + {type === TYPES.GABLE && } + {type === TYPES.WALL_MERGE && } + {type === TYPES.SHED && }
-
-
+
) } diff --git a/src/components/floor-plan/modal/flowDirection/FlowDirectionSetting.jsx b/src/components/floor-plan/modal/flowDirection/FlowDirectionSetting.jsx index df8525cc..910a2f02 100644 --- a/src/components/floor-plan/modal/flowDirection/FlowDirectionSetting.jsx +++ b/src/components/floor-plan/modal/flowDirection/FlowDirectionSetting.jsx @@ -63,123 +63,113 @@ export default function FlowDirectionSetting(props) { ) return ( - -
-
-

{getMessage('modal.shape.flow.direction.setting')}

- -
-
-
-
-
-
-
{getMessage('modal.flow.direction.setting')}
-
{getMessage('modal.flow.direction.setting.info')}
-
-
- {getMessage('commons.north')} - - {getMessage('commons.east')} - - {getMessage('commons.south')} - - {getMessage('commons.west')} - -
+ + closePopup(id)} /> + +
+
+
{getMessage('modal.flow.direction.setting')}
+
{getMessage('modal.flow.direction.setting.info')}
+
+
+ {getMessage('commons.north')} + + {getMessage('commons.east')} + + {getMessage('commons.south')} + + {getMessage('commons.west')} +
-
-
{getMessage('modal.module.basic.setting.orientation.setting')}
-
{getMessage('modal.shape.flow.direction.setting.orientation.setting.info')}
-
-
- { - setCompasDeg(0) - setType(FLOW_DIRECTION_TYPE.EIGHT_AZIMUTH) - }} - /> - -
-
- { - setType(FLOW_DIRECTION_TYPE.EIGHT_AZIMUTH) - setSelectedOrientation(e) - setCompasDeg(e.value) - }} - showKey={'name'} - targetKey={'value'} - sourceKey={'value'} - /> -
+
+
+
{getMessage('modal.module.basic.setting.orientation.setting')}
+
{getMessage('modal.shape.flow.direction.setting.orientation.setting.info')}
+
+
+ { + setCompasDeg(0) + setType(FLOW_DIRECTION_TYPE.EIGHT_AZIMUTH) + }} + /> +
-
-
- { - setType(FLOW_DIRECTION_TYPE.TWENTY_FOUR_AZIMUTH) - }} - /> - -
+
+ { + setType(FLOW_DIRECTION_TYPE.EIGHT_AZIMUTH) + setSelectedOrientation(e) + setCompasDeg(e.value) + }} + showKey={'name'} + targetKey={'value'} + sourceKey={'value'} + />
-
-
-
- {Array.from({ length: 180 / 15 + 1 }).map((dot, index) => ( -
{ - setType(FLOW_DIRECTION_TYPE.TWENTY_FOUR_AZIMUTH) - setCompasDeg(15 * (12 + index)) - }} - >
- ))} - {Array.from({ length: 180 / 15 - 1 }).map((dot, index) => ( -
{ - setType(FLOW_DIRECTION_TYPE.TWENTY_FOUR_AZIMUTH) - setCompasDeg(15 * (index + 1)) - }} - >
- ))} -
-
-
+
+
+
+ { + setType(FLOW_DIRECTION_TYPE.TWENTY_FOUR_AZIMUTH) + }} + /> + +
+
+
+
+
+ {Array.from({ length: 180 / 15 + 1 }).map((dot, index) => ( +
{ + setType(FLOW_DIRECTION_TYPE.TWENTY_FOUR_AZIMUTH) + setCompasDeg(15 * (12 + index)) + }} + >
+ ))} + {Array.from({ length: 180 / 15 - 1 }).map((dot, index) => ( +
{ + setType(FLOW_DIRECTION_TYPE.TWENTY_FOUR_AZIMUTH) + setCompasDeg(15 * (index + 1)) + }} + >
+ ))} +
+
-
- -
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/grid/DotLineGrid.jsx b/src/components/floor-plan/modal/grid/DotLineGrid.jsx index 853d27c1..d118188d 100644 --- a/src/components/floor-plan/modal/grid/DotLineGrid.jsx +++ b/src/components/floor-plan/modal/grid/DotLineGrid.jsx @@ -177,125 +177,115 @@ export default function DotLineGrid(props) { } return ( - -
-
-

{getMessage('modal.canvas.setting.grid.dot.line.setting')}

- +
-
-
-
-
-
- - -
-
- - -
-
-
-
-
- - -
-
- {getMessage('modal.canvas.setting.grid.dot.line.setting.horizon')} -
- onlyNumberInputChange(e, changeInput)} - /> -
- mm -
-
- {getMessage('modal.canvas.setting.grid.dot.line.setting.vertical')} -
- onlyNumberInputChange(e, changeInput)} - /> -
- mm -
-
-
-
- - -
-
- {getMessage('modal.canvas.setting.grid.dot.line.setting.ratio')} -
- onlyNumberInputChange(e, changeInput)} - /> -
- mm -
-
- {selectOption && ( - - )} -
-
-
-
- - -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/grid/GridCopy.jsx b/src/components/floor-plan/modal/grid/GridCopy.jsx index fa0b0ba8..e1a6f9f9 100644 --- a/src/components/floor-plan/modal/grid/GridCopy.jsx +++ b/src/components/floor-plan/modal/grid/GridCopy.jsx @@ -20,67 +20,57 @@ export default function GridCopy(props) { copy(currentObject, ['↑', '←'].includes(arrow) ? +length * -1 : +length) } return ( - -
-
-

{getMessage('modal.grid.copy')}

- -
-
-
-
-
{getMessage('modal.grid.copy.info')}
-
-
-
- {getMessage('modal.grid.copy.length')} -
- setLength(e.target.value)} /> -
- mm -
-
- - - - + + closePopup(id)} /> + +
{getMessage('modal.grid.copy.info')}
+
+
+
+ {getMessage('modal.grid.copy.length')} +
+ setLength(e.target.value)} />
+ mm +
+
+ + + +
-
- -
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/grid/GridMove.jsx b/src/components/floor-plan/modal/grid/GridMove.jsx index dbf15206..4aa27851 100644 --- a/src/components/floor-plan/modal/grid/GridMove.jsx +++ b/src/components/floor-plan/modal/grid/GridMove.jsx @@ -73,93 +73,83 @@ export default function GridMove(props) { closePopup(id) } return ( - -
-
-

{getMessage('modal.grid.move')}

- -
-
-
-
-
{getMessage('modal.grid.move.info')}
-
-
- setIsAll(!isAll)} /> - -
-
-
-

{getMessage('modal.grid.move.length')}

-
-
- setVerticalSize(e.target.value)} - readOnly={!isAll && currentObject?.direction === 'vertical'} - /> -
- mm -
- - -
+ + handleClose()} /> + +
{getMessage('modal.grid.move.info')}
+
+
+ setIsAll(!isAll)} /> + +
+
+
+

{getMessage('modal.grid.move.length')}

+
+
+ setVerticalSize(e.target.value)} + readOnly={!isAll && currentObject?.direction === 'vertical'} + />
-
-
- setHorizonSize(e.target.value)} - readOnly={!isAll && currentObject?.direction === 'horizontal'} - /> -
- mm -
- - -
+ mm +
+ + +
+
+
+
+ setHorizonSize(e.target.value)} + readOnly={!isAll && currentObject?.direction === 'horizontal'} + /> +
+ mm +
+ +
-
- -
-
-
+
+ +
+
) } diff --git a/src/components/floor-plan/modal/lineProperty/LinePropertySetting.jsx b/src/components/floor-plan/modal/lineProperty/LinePropertySetting.jsx index e309646a..049c2e40 100644 --- a/src/components/floor-plan/modal/lineProperty/LinePropertySetting.jsx +++ b/src/components/floor-plan/modal/lineProperty/LinePropertySetting.jsx @@ -50,51 +50,41 @@ export default function LinePropertySetting(props) { } return ( - -
-
-

{getMessage('contextmenu.line.property.edit')}

- + + handleClosePopup()} /> + +
+ {getMessage('modal.line.property.edit.info')} + + {getMessage('modal.line.property.edit.selected')} [ {selectedProperty?.name} ] +
-
-
-
-
- {getMessage('modal.line.property.edit.info')} - - {getMessage('modal.line.property.edit.selected')} [ {selectedProperty?.name} ] - -
-
-
{getMessage('setting')}
-
-
- {properties.map((property, index) => { - return ( -
- = 10 ? index + 1 : `0${index + 1}`)} - onChange={(e) => setSelectedProperty(property)} - /> - -
- ) - })} -
+
+
{getMessage('setting')}
+
+
+ {properties.map((property, index) => { + return ( +
+ = 10 ? index + 1 : `0${index + 1}`)} + onChange={(e) => setSelectedProperty(property)} + /> + +
+ ) + })}
-
- -
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/module/CircuitNumberEdit.jsx b/src/components/floor-plan/modal/module/CircuitNumberEdit.jsx index 50c819ed..1e1b2f2f 100644 --- a/src/components/floor-plan/modal/module/CircuitNumberEdit.jsx +++ b/src/components/floor-plan/modal/module/CircuitNumberEdit.jsx @@ -14,38 +14,28 @@ export default function CircuitNumberEdit(props) { closePopup(id) } return ( - -
-
-

{getMessage('modal.module.circuit.number.edit')}

- -
-
-
-
-
{getMessage('modal.module.circuit.number.edit.info')}
-
-
-
- - {getMessage('modal.module.circuit.number')} - -
- -
+ + closePopup(id)} /> + +
{getMessage('modal.module.circuit.number.edit.info')}
+
+
+
+ + {getMessage('modal.module.circuit.number')} + +
+
-
- -
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/module/PanelEdit.jsx b/src/components/floor-plan/modal/module/PanelEdit.jsx index ea671881..2a06e062 100644 --- a/src/components/floor-plan/modal/module/PanelEdit.jsx +++ b/src/components/floor-plan/modal/module/PanelEdit.jsx @@ -91,75 +91,64 @@ export default function PanelEdit(props) { } return ( - -
-
-

- {getMessage( - [PANEL_EDIT_TYPE.MOVE, PANEL_EDIT_TYPE.MOVE_ALL, PANEL_EDIT_TYPE.COLUMN_MOVE].includes(type) - ? 'modal.move.setting' - : 'modal.copy.setting', - )}{' '} -

- + + closePopup(id)} + /> + +
+ {getMessage( + [PANEL_EDIT_TYPE.MOVE, PANEL_EDIT_TYPE.MOVE_ALL, PANEL_EDIT_TYPE.COLUMN_MOVE].includes(type) + ? 'modal.move.setting.info' + : 'modal.copy.setting.info', + )}
-
-
-
-
- {getMessage( - [PANEL_EDIT_TYPE.MOVE, PANEL_EDIT_TYPE.MOVE_ALL, PANEL_EDIT_TYPE.COLUMN_MOVE].includes(type) - ? 'modal.move.setting.info' - : 'modal.copy.setting.info', - )} -
-
-
-
- {getMessage('margin')} -
- setLength(e.target.value)} /> -
- mm -
-
- - - - +
+
+
+ {getMessage('margin')} +
+ setLength(e.target.value)} />
+ mm +
+
+ + + +
-
- -
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/module/column/ColumnInsert.jsx b/src/components/floor-plan/modal/module/column/ColumnInsert.jsx index e42d2ca3..0c160656 100644 --- a/src/components/floor-plan/modal/module/column/ColumnInsert.jsx +++ b/src/components/floor-plan/modal/module/column/ColumnInsert.jsx @@ -24,91 +24,69 @@ export default function ColumnInsert(props) { } return ( - -
-
-

{getMessage('modal.panel.column.insert')}

-
-
-
-
-
-
{getMessage('modal.panel.column.insert.info')}
-
-
-
- - -
-
- - -
-
-
- {selectedType === MODULE_INSERT_TYPE.LEFT && ( - react - )} - {selectedType === MODULE_INSERT_TYPE.RIGHT && ( - react - )} -
-
-
-
-
{getMessage('legend')}
-
-
-
-
- - {getMessage('modal.panel.select.column')} -
-
- - {getMessage('modal.panel.insert.column')} -
-
-
-
-
-
- -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/module/column/ColumnRemove.jsx b/src/components/floor-plan/modal/module/column/ColumnRemove.jsx index 66351d35..b9079642 100644 --- a/src/components/floor-plan/modal/module/column/ColumnRemove.jsx +++ b/src/components/floor-plan/modal/module/column/ColumnRemove.jsx @@ -26,98 +26,64 @@ export default function ColumnRemove(props) { } return ( - -
-
-

{getMessage('modal.panel.column.remove')}

- -
-
-
-
-
-
{getMessage('modal.panel.column.remove.info')}
-
-
- {types.map((type, index) => { - return ( -
- setSelectedType(e.target.value)} - value={type.value} - checked={selectedType === type.value} - /> - -
- ) - })} -
-
- {selectedType === MODULE_REMOVE_TYPE.LEFT && ( - react - )} - {selectedType === MODULE_REMOVE_TYPE.RIGHT && ( - react - )} - {selectedType === MODULE_REMOVE_TYPE.HORIZONTAL_SIDE && ( - react - )} - {selectedType === MODULE_REMOVE_TYPE.NONE && ( - react - )} -
+ + closePopup(id)} /> + +
+
{getMessage('modal.panel.column.remove.info')}
+
+
+ {types.map((type, index) => { + return ( +
+ setSelectedType(e.target.value)} + value={type.value} + checked={selectedType === type.value} + /> + +
+ ) + })} +
+
+ {selectedType === MODULE_REMOVE_TYPE.LEFT && ( + react + )} + {selectedType === MODULE_REMOVE_TYPE.RIGHT && ( + react + )} + {selectedType === MODULE_REMOVE_TYPE.HORIZONTAL_SIDE && ( + react + )} + {selectedType === MODULE_REMOVE_TYPE.NONE && ( + react + )}
-
-
{getMessage('legend')}
-
-
-
-
- - {getMessage('modal.panel.select.column')} -
+
+
+
{getMessage('legend')}
+
+
+
+
+ + {getMessage('modal.panel.select.column')}
-
- -
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/module/row/RowInsert.jsx b/src/components/floor-plan/modal/module/row/RowInsert.jsx index 9b558706..e9fb799c 100644 --- a/src/components/floor-plan/modal/module/row/RowInsert.jsx +++ b/src/components/floor-plan/modal/module/row/RowInsert.jsx @@ -24,91 +24,82 @@ export default function RowInsert(props) { } return ( - -
-
-

{getMessage('modal.row.insert')}

-
-
-
-
-
-
{getMessage('modal.row.insert.info')}
-
-
-
- - -
-
- - -
-
-
- {selectedType === MODULE_INSERT_TYPE.TOP && ( - react - )} - {selectedType === MODULE_INSERT_TYPE.BOTTOM && ( - react - )} -
-
-
-
-
{getMessage('legend')}
-
-
-
-
- - {getMessage('modal.panel.select.row')} -
-
- - {getMessage('modal.panel.insert.row')} -
-
-
-
-
-
- -
-
-
+
) } diff --git a/src/components/floor-plan/modal/module/row/RowRemove.jsx b/src/components/floor-plan/modal/module/row/RowRemove.jsx index 500fbfb3..5cf95b3f 100644 --- a/src/components/floor-plan/modal/module/row/RowRemove.jsx +++ b/src/components/floor-plan/modal/module/row/RowRemove.jsx @@ -27,98 +27,88 @@ export default function RowRemove(props) { } return ( - -
-
-

{getMessage('modal.row.remove')}

- -
-
-
-
-
-
{getMessage('modal.row.remove.info')}
-
-
- {types.map((type, index) => { - return ( -
- setSelectedType(e.target.value)} - value={type.value} - checked={selectedType === type.value} - /> - -
- ) - })} -
-
- {selectedType === MODULE_REMOVE_TYPE.TOP && ( - react - )} - {selectedType === MODULE_REMOVE_TYPE.BOTTOM && ( - react - )} - {selectedType === MODULE_REMOVE_TYPE.VERTICAL_SIDE && ( - react - )} - {selectedType === MODULE_REMOVE_TYPE.NONE && ( - react - )} -
+ + closePopup(id)} /> + +
+
{getMessage('modal.row.remove.info')}
+
+
+ {types.map((type, index) => { + return ( +
+ setSelectedType(e.target.value)} + value={type.value} + checked={selectedType === type.value} + /> + +
+ ) + })} +
+
+ {selectedType === MODULE_REMOVE_TYPE.TOP && ( + react + )} + {selectedType === MODULE_REMOVE_TYPE.BOTTOM && ( + react + )} + {selectedType === MODULE_REMOVE_TYPE.VERTICAL_SIDE && ( + react + )} + {selectedType === MODULE_REMOVE_TYPE.NONE && ( + react + )}
-
-
{getMessage('legend')}
-
-
-
-
- - {getMessage('modal.panel.select.row')} -
+
+
+
{getMessage('legend')}
+
+
+
+
+ + {getMessage('modal.panel.select.row')}
-
- -
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/movement/MovementSetting.jsx b/src/components/floor-plan/modal/movement/MovementSetting.jsx index 916a40bd..46464538 100644 --- a/src/components/floor-plan/modal/movement/MovementSetting.jsx +++ b/src/components/floor-plan/modal/movement/MovementSetting.jsx @@ -16,36 +16,26 @@ export default function MovementSetting({ id, pos = { x: 50, y: 230 } }) { } return ( - -
-
-

{getMessage('plan.menu.roof.cover.movement.shape.updown')}

- + ))} +
+
+ {type === TYPE.FLOW_LINE && } + {type === TYPE.UP_DOWN && } +
+
+
-
-
-
-
- {buttonType.map((item) => ( - - ))} -
-
- {type === TYPE.FLOW_LINE && } - {type === TYPE.UP_DOWN && } -
-
- -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/object/DormerOffset.jsx b/src/components/floor-plan/modal/object/DormerOffset.jsx index d13533f9..af0ee8e0 100644 --- a/src/components/floor-plan/modal/object/DormerOffset.jsx +++ b/src/components/floor-plan/modal/object/DormerOffset.jsx @@ -40,73 +40,63 @@ export default function DormerOffset(props) { // closePopup(id) } return ( - -
-
-

{title}

- -
-
-
-
-
{getMessage('modal.dormer.offset.info')}
-
-
-
-

{getMessage('length')}

-
-
- -
- mm -
- - -
+ + closePopup(id)} /> + +
{getMessage('modal.dormer.offset.info')}
+
+
+
+

{getMessage('length')}

+
+
+
-
-
- -
- mm -
- - -
+ mm +
+ + +
+
+
+
+ +
+ mm +
+ +
-
- -
-
-
+
+ +
+
) } diff --git a/src/components/floor-plan/modal/object/ObjectSetting.jsx b/src/components/floor-plan/modal/object/ObjectSetting.jsx index b602f163..1bbddfe6 100644 --- a/src/components/floor-plan/modal/object/ObjectSetting.jsx +++ b/src/components/floor-plan/modal/object/ObjectSetting.jsx @@ -100,43 +100,33 @@ export default function ObjectSetting({ id, pos = { x: 50, y: 230 } }) { ] return ( - -
-
-

{getMessage('plan.menu.placement.surface.object')}

- + ))} +
+
+ {buttonAct === 1 && } + {buttonAct === 2 && } + {buttonAct === 3 && } + {buttonAct === 4 && } +
+
+
-
-
-
-
- {buttonMenu.map((item) => ( - - ))} -
-
- {buttonAct === 1 && } - {buttonAct === 2 && } - {buttonAct === 3 && } - {buttonAct === 4 && } -
-
- -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/object/RoofMaterialSetting.jsx b/src/components/floor-plan/modal/object/RoofMaterialSetting.jsx index fdca3518..27c06593 100644 --- a/src/components/floor-plan/modal/object/RoofMaterialSetting.jsx +++ b/src/components/floor-plan/modal/object/RoofMaterialSetting.jsx @@ -21,28 +21,18 @@ export default function RoofMaterialSetting(props) { ] return ( - -
-
-

{getMessage('modal.roof.material.edit')}

- -
-
-
-
-
-
- -
-
-
- + + closePopup(id)} /> + +
+
+
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/object/SizeSetting.jsx b/src/components/floor-plan/modal/object/SizeSetting.jsx index 34e86ed8..c5873006 100644 --- a/src/components/floor-plan/modal/object/SizeSetting.jsx +++ b/src/components/floor-plan/modal/object/SizeSetting.jsx @@ -40,60 +40,50 @@ export default function SizeSetting(props) { } return ( - -
-
-

{getMessage('modal.size.setting')}

- -
-
-
-
-
-
+ + closePopup(id)} /> + +
+
+
+
+ + mm +
+
+ + mm +
+
+
+
+
- + mm
- + mm
-
-
-
-
- - mm -
-
- - mm -
-
-
-
- - - - -
-
+
+ + + + +
-
- -
-
-
+
+ +
+
) } diff --git a/src/components/floor-plan/modal/outerlinesetting/PropertiesSetting.jsx b/src/components/floor-plan/modal/outerlinesetting/PropertiesSetting.jsx index c57eabfa..18b82edf 100644 --- a/src/components/floor-plan/modal/outerlinesetting/PropertiesSetting.jsx +++ b/src/components/floor-plan/modal/outerlinesetting/PropertiesSetting.jsx @@ -8,40 +8,30 @@ export default function PropertiesSetting(props) { const { handleSetEaves, handleSetGable, handleRollback, handleFix, closeModal } = usePropertiesSetting(id) return ( - -
-
-

{getMessage('modal.canvas.setting.wallline.properties.setting')}

- + +
+
+
+ +
-
-
-
-
{getMessage('modal.canvas.setting.wallline.properties.setting.info')}
-
-
{getMessage('setting')}
-
- - -
-
-
- - -
-
-
-
+ ) } diff --git a/src/components/floor-plan/modal/outerlinesetting/WallLineSetting.jsx b/src/components/floor-plan/modal/outerlinesetting/WallLineSetting.jsx index 409d7550..36d79cb6 100644 --- a/src/components/floor-plan/modal/outerlinesetting/WallLineSetting.jsx +++ b/src/components/floor-plan/modal/outerlinesetting/WallLineSetting.jsx @@ -114,24 +114,18 @@ export default function WallLineSetting(props) { } return ( - -
-
-

{getMessage('modal.cover.outline.drawing')}

- -
-
-
-
-
- {/**/} - {/* */} -
-
- {type === OUTER_LINE_TYPE.OUTER_LINE ? ( - - ) : type === OUTER_LINE_TYPE.RIGHT_ANGLE ? ( - - ) : type === OUTER_LINE_TYPE.DOUBLE_PITCH ? ( - - ) : type === OUTER_LINE_TYPE.ANGLE ? ( - - ) : type === OUTER_LINE_TYPE.DIAGONAL_LINE ? ( - - ) : ( - <> - )} -
-
- - -
-
-
+
+ {type === OUTER_LINE_TYPE.OUTER_LINE ? ( + + ) : type === OUTER_LINE_TYPE.RIGHT_ANGLE ? ( + + ) : type === OUTER_LINE_TYPE.DOUBLE_PITCH ? ( + + ) : type === OUTER_LINE_TYPE.ANGLE ? ( + + ) : type === OUTER_LINE_TYPE.DIAGONAL_LINE ? ( + + ) : ( + <> + )} +
+
+ + +
+
) } diff --git a/src/components/floor-plan/modal/panelBatch/PanelBatchStatistics.jsx b/src/components/floor-plan/modal/panelBatch/PanelBatchStatistics.jsx index 67b5efd0..e789bc4a 100644 --- a/src/components/floor-plan/modal/panelBatch/PanelBatchStatistics.jsx +++ b/src/components/floor-plan/modal/panelBatch/PanelBatchStatistics.jsx @@ -29,40 +29,42 @@ export default function PanelBatchStatistics() { }, []) return ( - -
-

{getMessage('modal.panel.batch.statistic')}

- -
- - - - {header.map((item, index) => ( - - ))} - - - - {rows.map((row, index) => ( - - {header.map((item, i) => ( - + + +
+

{getMessage('modal.panel.batch.statistic')}

+ +
+
{item.name}
{row[item.prop] ?? 0}
+ + + {header.map((item, index) => ( + ))} - ))} - - {header.map((header, index) => ( - + + + {rows.map((row, index) => ( + + {header.map((item, i) => ( + + ))} + ))} - - -
{item.name}
- {typeof footer[header.prop] === 'number' - ? footer[header.prop].toLocaleString('ko-KR', { maximumFractionDigits: 4 }) - : footer[header.prop]} -
{row[item.prop] ?? 0}
+ + {header.map((header, index) => ( + + {typeof footer[header.prop] === 'number' + ? footer[header.prop].toLocaleString('ko-KR', { maximumFractionDigits: 4 }) + : footer[header.prop]} + + ))} + + + +
-
+ ) } diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeDrawing.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeDrawing.jsx index 72cf2c21..04b63f1d 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeDrawing.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeDrawing.jsx @@ -121,47 +121,33 @@ export default function PlacementShapeDrawing({ id, pos = { x: 50, y: 230 } }) { setType(button.type) } return ( - -
-
-

{getMessage('plan.menu.placement.surface.drawing')}

- + ))} +
+
+ {buttonAct === 1 && } + {buttonAct === 2 && } + {buttonAct === 3 && } + {buttonAct === 4 && } + {buttonAct === 5 && } +
+ +
+ +
-
-
-
-
- {types.map((type, idx) => ( - - ))} -
-
- {buttonAct === 1 && } - {buttonAct === 2 && } - {buttonAct === 3 && } - {buttonAct === 4 && } - {buttonAct === 5 && } -
- -
- - -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx index 127e7742..a70a8c65 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementShapeSetting.jsx @@ -257,194 +257,191 @@ export default function PlacementShapeSetting({ id, pos = { x: 50, y: 180 }, pla } return ( - -
-
-

{getMessage('plan.menu.placement.surface.initial.setting')}

-
-
-
-
-
- - - - - - - - - - - - - - - - - + + +
{getMessage('modal.placement.initial.setting.plan.drawing')}{getMessage('modal.placement.initial.setting.plan.drawing.size.stuff')}
-
- {getMessage('modal.placement.initial.setting.size')} - -
-
-
- {currentRoof && - roofSizeSetArray.map((item) => ( -
- setCurrentRoof({ ...currentRoof, roofSizeSet: e.target.value })} - /> - -
- ))} -
-
{getMessage('modal.placement.initial.setting.roof.angle.setting')} -
- {currentRoof && - roofAngleSetArray.map((item, index) => ( -
- -
- setCurrentRoof({ ...currentRoof, roofAngleSet: e.target.value })} - /> - -
-
-
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + - - - - - - -
{getMessage('modal.placement.initial.setting.plan.drawing')}{getMessage('modal.placement.initial.setting.plan.drawing.size.stuff')}
+
+ {getMessage('modal.placement.initial.setting.size')} + +
+
+
+ {currentRoof && + roofSizeSetArray.map((item) => ( +
+ setCurrentRoof({ ...currentRoof, roofSizeSet: e.target.value })} + /> + +
+ ))} +
+
{getMessage('modal.placement.initial.setting.roof.angle.setting')} +
+ {currentRoof && + roofAngleSetArray.map((item, index) => ( +
+ +
- index === 0 - ? setCurrentRoof({ ...currentRoof, pitch: e.target.value, angle: getDegreeByChon(e.target.value) }) - : setCurrentRoof({ ...currentRoof, pitch: getChonByDegree(e.target.value), angle: e.target.value }) - } + type="radio" + id={item.id} + name={item.name} + value={item.value} + checked={String(currentRoof?.roofAngleSet) === item.value} + onChange={(e) => setCurrentRoof({ ...currentRoof, roofAngleSet: e.target.value })} /> +
- {index === 0 ? '寸' : '度'} +
+
+ + index === 0 + ? setCurrentRoof({ ...currentRoof, pitch: e.target.value, angle: getDegreeByChon(e.target.value) }) + : setCurrentRoof({ ...currentRoof, pitch: getChonByDegree(e.target.value), angle: e.target.value }) + } + />
- ))} + {index === 0 ? '寸' : '度'} +
+ ))} +
+
+
+ {getMessage('modal.placement.initial.setting.roof.material')} + +
+
+
+
+ { + return { ...roof, name: globalLocale === 'ko' ? roof.roofMatlNm : roof.roofMatlNmJp } + })} + value={currentRoof?.roofSizeSet === '3' ? null : currentRoof?.roofMatlCd} + onChange={(e) => handleRoofTypeChange(e.roofMatlCd)} + sourceKey="id" + targetKey="id" + showKey="name" + disabled={currentRoof?.roofSizeSet === '3'} + />
-
-
- {getMessage('modal.placement.initial.setting.roof.material')} - -
-
-
-
- { - return { ...roof, name: globalLocale === 'ko' ? roof.roofMatlNm : roof.roofMatlNmJp } - })} - value={currentRoof?.roofSizeSet === '3' ? null : currentRoof?.roofMatlCd} - onChange={(e) => handleRoofTypeChange(e.roofMatlCd)} - sourceKey="id" - targetKey="id" - showKey="name" - disabled={currentRoof?.roofSizeSet === '3'} - /> + {currentRoof && ['R', 'C'].includes(currentRoof.widAuth) && ( +
+ W +
+ onlyNumberInputChange(e, changeInput)} + readOnly={currentRoof?.widAuth === 'R'} + disabled={currentRoof?.roofSizeSet === '3'} + /> +
- {currentRoof && ['R', 'C'].includes(currentRoof.widAuth) && ( -
- W -
- onlyNumberInputChange(e, changeInput)} - readOnly={currentRoof?.widAuth === 'R'} + )} + {currentRoof && ['R', 'C'].includes(currentRoof.lenAuth) && ( +
+ L +
+ onlyNumberInputChange(e, changeInput)} + readOnly={currentRoof?.lenAuth === 'R'} + disabled={currentRoof?.roofSizeSet === '3'} + /> +
+
+ )} + {currentRoof && ['C', 'R'].includes(currentRoof.raftAuth) && ( +
+ {getMessage('modal.placement.initial.setting.rafter')} + {raftCodes?.length > 0 && ( +
+ r.clCode === (currentRoof?.raft === undefined ? currentRoof?.raftBaseCd : currentRoof?.raft)) + .clCodeNm + } + value={currentRoof?.raft === undefined ? currentRoof?.raftBaseCd : currentRoof?.raft} + onChange={(e) => handleRafterChange(e.clCode)} + sourceKey="clCode" + targetKey={currentRoof?.raft ? 'raft' : 'raftBaseCd'} + showKey="clCodeNm" disabled={currentRoof?.roofSizeSet === '3'} />
+ )} +
+ )} + {currentRoof && ['C', 'R'].includes(currentRoof?.roofPchAuth) && ( +
+ {getMessage('hajebichi')} +
+ onlyNumberInputChange(e, changeInput)} + readOnly={currentRoof?.roofPchAuth === 'R'} + disabled={currentRoof?.roofSizeSet === '3'} + />
- )} - {currentRoof && ['R', 'C'].includes(currentRoof.lenAuth) && ( -
- L -
- onlyNumberInputChange(e, changeInput)} - readOnly={currentRoof?.lenAuth === 'R'} - disabled={currentRoof?.roofSizeSet === '3'} - /> -
-
- )} - {currentRoof && ['C', 'R'].includes(currentRoof.raftAuth) && ( -
- {getMessage('modal.placement.initial.setting.rafter')} - {raftCodes?.length > 0 && ( -
- r.clCode === (currentRoof?.raft === undefined ? currentRoof?.raftBaseCd : currentRoof?.raft)) - .clCodeNm - } - value={currentRoof?.raft === undefined ? currentRoof?.raftBaseCd : currentRoof?.raft} - onChange={(e) => handleRafterChange(e.clCode)} - sourceKey="clCode" - targetKey={currentRoof?.raft ? 'raft' : 'raftBaseCd'} - showKey="clCodeNm" - disabled={currentRoof?.roofSizeSet === '3'} - /> -
- )} -
- )} - {currentRoof && ['C', 'R'].includes(currentRoof?.roofPchAuth) && ( -
- {getMessage('hajebichi')} -
- onlyNumberInputChange(e, changeInput)} - readOnly={currentRoof?.roofPchAuth === 'R'} - disabled={currentRoof?.roofSizeSet === '3'} - /> -
-
- )} -
- {/* {currentRoof && ( +
+ )} +
+ {/* {currentRoof && (
)} */} -
-
-
- -
+
- {showSizeGuideModal && } - {showMaterialGuideModal && } -
-
+
+ +
+ + {showSizeGuideModal && } + {showMaterialGuideModal && } ) } diff --git a/src/components/floor-plan/modal/placementShape/PlacementSurfaceLineProperty.jsx b/src/components/floor-plan/modal/placementShape/PlacementSurfaceLineProperty.jsx index bc532242..34cf8c1e 100644 --- a/src/components/floor-plan/modal/placementShape/PlacementSurfaceLineProperty.jsx +++ b/src/components/floor-plan/modal/placementShape/PlacementSurfaceLineProperty.jsx @@ -41,43 +41,33 @@ export default function PlacementSurfaceLineProperty(props) { } return ( - -
-
-

{getMessage('modal.canvas.setting.roofline.properties.setting')}

- + + +
+
+
+ +
-
-
-
-
{getMessage('modal.canvas.setting.roofline.properties.setting.info')}
-
-
{getMessage('setting')}
-
- - - -
-
-
- - -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/placementSurface/PlacementSurfaceSetting.jsx b/src/components/floor-plan/modal/placementSurface/PlacementSurfaceSetting.jsx index 967d849e..ae29b778 100644 --- a/src/components/floor-plan/modal/placementSurface/PlacementSurfaceSetting.jsx +++ b/src/components/floor-plan/modal/placementSurface/PlacementSurfaceSetting.jsx @@ -256,63 +256,49 @@ export default function PlacementSurfaceSetting({ id, pos = { x: 50, y: 230 } }) }, []) return ( - -
-
-

{getMessage('plan.menu.placement.surface.arrangement')}

- -
-
-
-
-
-
-
- {types.map((type) => ( - - ))} -
-
- - {/* */} - {/* - */} - - -
-
-
- -
- -
+ ))} +
+
+ + {/* */} + {/* + */} + + +
+
+
+ +
+
-
-
+
) } diff --git a/src/components/floor-plan/modal/roofAllocation/ActualSizeSetting.jsx b/src/components/floor-plan/modal/roofAllocation/ActualSizeSetting.jsx index 0af71db1..c91325c0 100644 --- a/src/components/floor-plan/modal/roofAllocation/ActualSizeSetting.jsx +++ b/src/components/floor-plan/modal/roofAllocation/ActualSizeSetting.jsx @@ -61,65 +61,50 @@ export default function ActualSizeSetting(props) { } return ( - -
-
-

{getMessage('modal.actual.size.setting')}

- + + closePopup(id)} /> + +
+ {getMessage('modal.actual.size.setting.info')}
-
-
-
-
- {getMessage('modal.actual.size.setting.info')} -
-
-
{getMessage('setting')}
-
-
-
-
{getMessage('modal.actual.size.setting.plane.size.length')}
-
-
-
- -
- mm +
+
{getMessage('setting')}
+
+
+
+
{getMessage('modal.actual.size.setting.plane.size.length')}
+
+
+
+
+ mm
-
-
{getMessage('modal.actual.size.setting.actual.size.length')}
-
-
-
- setActualSize(Number(e.target.value))} - /> -
- mm +
+
+
{getMessage('modal.actual.size.setting.actual.size.length')}
+
+
+
+ setActualSize(Number(e.target.value))} />
+ mm
-
- - -
-
-
+
+ + +
+ ) } diff --git a/src/components/floor-plan/modal/roofAllocation/ContextRoofAllocationSetting.jsx b/src/components/floor-plan/modal/roofAllocation/ContextRoofAllocationSetting.jsx index 30e56c0e..dd8b7003 100644 --- a/src/components/floor-plan/modal/roofAllocation/ContextRoofAllocationSetting.jsx +++ b/src/components/floor-plan/modal/roofAllocation/ContextRoofAllocationSetting.jsx @@ -47,22 +47,13 @@ export default function ContextRoofAllocationSetting(props) { }, []) return ( - -
- {currentRoofList && ( - <> -
-

{getMessage('plan.menu.estimate.roof.alloc')}

- -
-
-
-
-
{getMessage('modal.roof.alloc.info')}
-
- {/* {getMessage('modal.roof.alloc.select.roof.material')} + + closePopup(id)} /> + {currentRoofList && ( + +
{getMessage('modal.roof.alloc.info')}
+
+ {/* {getMessage('modal.roof.alloc.select.roof.material')}
{ @@ -78,165 +69,162 @@ export default function ContextRoofAllocationSetting(props) { targetKey={'roofMatlCd'} />
*/} - -
-
-
- {currentRoofList.map((roof, index) => { - return ( -
-
- - + +
+
+
+ {currentRoofList.map((roof, index) => { + return ( +
+
+ + +
+
+
+
+
+ { + return { ...roof2, name: globalLocale === 'ko' ? roof2.roofMatlNm : roof2.roofMatlNmJp } + })} + value={roof} + //showKey={'roofMatlNm'} + showKey="name" + sourceKey={'roofMatlCd'} + targetKey={'roofMatlCd'} + onChange={(e) => handleChangeRoofMaterial(e, index)} + /> +
+ {index === 0 && {getMessage('modal.roof.alloc.default.roof.material')}} + {index !== 0 && ( + + + + )}
-
-
-
+
+ {roof.raftAuth && ( +
+
+ {getMessage('modal.placement.initial.setting.rafter')} + {raftCodes.length > 0 && (
{ - return { ...roof2, name: globalLocale === 'ko' ? roof2.roofMatlNm : roof2.roofMatlNmJp } - })} + options={raftCodes} value={roof} - //showKey={'roofMatlNm'} - showKey="name" - sourceKey={'roofMatlCd'} - targetKey={'roofMatlCd'} - onChange={(e) => handleChangeRoofMaterial(e, index)} + showKey={'clCodeNm'} + sourceKey={'clCode'} + targetKey={roof.raft ? 'raft' : 'raftBaseCd'} + onChange={(e) => handleChangeRaft(e, index)} />
- {index === 0 && {getMessage('modal.roof.alloc.default.roof.material')}} - {index !== 0 && ( - - - - )} -
+ )}
- {roof.raftAuth && ( -
-
- {getMessage('modal.placement.initial.setting.rafter')} - {raftCodes.length > 0 && ( -
- handleChangeRaft(e, index)} - /> -
- )} -
-
- )} +
+ )} - {(roof.widAuth || roof.lenAuth) && ( - <> - {roof.widAuth && ( -
-
- W -
- { - handleChangeInput(e, 'width', index) - }} - /> -
-
-
- )} - {roof.lenAuth && ( -
-
- L -
- { - handleChangeInput(e, 'length', index) - }} - /> -
-
-
- )} - - )} - {roof.roofPchAuth && ( + {(roof.widAuth || roof.lenAuth) && ( + <> + {roof.widAuth && (
- {getMessage('hajebichi')} + W
handleChangeInput(e, 'hajebichi', index)} + defaultValue={roof.width} + readOnly={roof.widAuth === 'R'} + onChange={(e) => { + handleChangeInput(e, 'width', index) + }} />
)} -
-
- {getMessage('modal.object.setting.offset.slope')} -
- { - // handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index) - handleChangePitch(e, index) - }} - value={currentAngleType === 'slope' ? roof.pitch : roof.angle} - defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle} - /> + {roof.lenAuth && ( +
+
+ L +
+ { + handleChangeInput(e, 'length', index) + }} + /> +
- {pitchText} +
+ )} + + )} + {roof.roofPchAuth && ( +
+
+ {getMessage('hajebichi')} +
+ handleChangeInput(e, 'hajebichi', index)} + />
+ )} +
+
+ {getMessage('modal.object.setting.offset.slope')} +
+ { + // handleChangeInput(e, currentAngleType === 'slope' ? 'pitch' : 'angle', index) + handleChangePitch(e, index) + }} + value={currentAngleType === 'slope' ? roof.pitch : roof.angle} + defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle} + /> +
+ {pitchText} +
- ) - })} -
-
-
- -
+
+
+ ) + })}
- - )} -
-
+
+
+ +
+ + )} ) } diff --git a/src/components/floor-plan/modal/roofAllocation/RoofAllocationSetting.jsx b/src/components/floor-plan/modal/roofAllocation/RoofAllocationSetting.jsx index 3dd03385..0603ed96 100644 --- a/src/components/floor-plan/modal/roofAllocation/RoofAllocationSetting.jsx +++ b/src/components/floor-plan/modal/roofAllocation/RoofAllocationSetting.jsx @@ -47,22 +47,14 @@ export default function RoofAllocationSetting(props) { }, []) return ( - -
+ + closePopup(id)} /> + {currentRoofList && ( <> -
-

{getMessage('plan.menu.estimate.roof.alloc')}

- -
-
-
-
-
{getMessage('modal.roof.alloc.info')}
-
- {/* {getMessage('modal.roof.alloc.select.roof.material')} +
{getMessage('modal.roof.alloc.info')}
+
+ {/* {getMessage('modal.roof.alloc.select.roof.material')}
{ @@ -78,146 +70,146 @@ export default function RoofAllocationSetting(props) { targetKey={'roofMatlCd'} />
*/} - -
-
-
- {currentRoofList.map((roof, index) => { - return ( -
-
- - + +
+
+
+ {currentRoofList.map((roof, index) => { + return ( +
+
+ + +
+
+
+
+
+ { + return { ...roof2, name: globalLocale === 'ko' ? roof2.roofMatlNm : roof2.roofMatlNmJp } + })} + value={roof} + //showKey={'roofMatlNm'} + showKey="name" + sourceKey={'roofMatlCd'} + targetKey={'roofMatlCd'} + onChange={(e) => handleChangeRoofMaterial(e, index)} + /> +
+ {index === 0 && {getMessage('modal.roof.alloc.default.roof.material')}} + {index !== 0 && ( + + + + )} +
-
+ + {roof.raftAuth && (
-
- { - return { ...roof2, name: globalLocale === 'ko' ? roof2.roofMatlNm : roof2.roofMatlNmJp } - })} - value={roof} - //showKey={'roofMatlNm'} - showKey="name" - sourceKey={'roofMatlCd'} - targetKey={'roofMatlCd'} - onChange={(e) => handleChangeRoofMaterial(e, index)} - /> -
- {index === 0 && {getMessage('modal.roof.alloc.default.roof.material')}} - {index !== 0 && ( - - - + {getMessage('modal.placement.initial.setting.rafter')} + {raftCodes.length > 0 && ( +
+ handleChangeRaft(e, index)} + /> +
)}
+ )} - {roof.raftAuth && ( -
-
- {getMessage('modal.placement.initial.setting.rafter')} - {raftCodes.length > 0 && ( -
- handleChangeRaft(e, index)} + {(roof.widAuth || roof.lenAuth) && ( + <> + {roof.widAuth && ( +
+
+ W +
+ handleChangeInput(e, 'width', index)} + readOnly={roof.widAuth === 'R'} />
- )} -
-
- )} - - {(roof.widAuth || roof.lenAuth) && ( - <> - {roof.widAuth && ( -
-
- W -
- handleChangeInput(e, 'width', index)} - readOnly={roof.widAuth === 'R'} - /> -
-
-
- )} - {roof.lenAuth && ( -
-
- L -
- handleChangeInput(e, 'length', index)} - readOnly={roof.lenAuth === 'R'} - /> -
-
-
- )} - - )} - {roof.roofPchAuth && ( -
-
- {getMessage('hajebichi')} -
- handleChangeInput(e, 'hajebichi', index)} - value={parseInt(roof.hajebichi)} - readOnly={roof.roofPchAuth === 'R'} - />
-
- )} + )} + {roof.lenAuth && ( +
+
+ L +
+ handleChangeInput(e, 'length', index)} + readOnly={roof.lenAuth === 'R'} + /> +
+
+
+ )} + + )} + {roof.roofPchAuth && (
- {getMessage('modal.object.setting.offset.slope')} + {getMessage('hajebichi')}
{ - handleChangePitch(e, index) - }} - value={currentAngleType === 'slope' ? roof.pitch : roof.angle} - defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle} + onChange={(e) => handleChangeInput(e, 'hajebichi', index)} + value={parseInt(roof.hajebichi)} + readOnly={roof.roofPchAuth === 'R'} />
- {pitchText}
- {/*
+ )} +
+
+ {getMessage('modal.object.setting.offset.slope')} +
+ { + handleChangePitch(e, index) + }} + value={currentAngleType === 'slope' ? roof.pitch : roof.angle} + defaultValue={currentAngleType === 'slope' ? roof.pitch : roof.angle} + /> +
+ {pitchText} +
+
+ {/*
*/} -
- ) - })} -
-
-
- +
+ ) + })}
+
+ +
)} -
-
+ ) } diff --git a/src/components/floor-plan/modal/roofShape/RoofShapePassivitySetting.jsx b/src/components/floor-plan/modal/roofShape/RoofShapePassivitySetting.jsx index 44152cf8..7530bcdd 100644 --- a/src/components/floor-plan/modal/roofShape/RoofShapePassivitySetting.jsx +++ b/src/components/floor-plan/modal/roofShape/RoofShapePassivitySetting.jsx @@ -29,48 +29,38 @@ export default function RoofShapePassivitySetting({ id, pos = { x: 50, y: 230 } } return ( - -
-
-

{getMessage('plan.menu.roof.cover.roof.shape.passivity.setting')}

- + + closePopup(id)} /> + +
+ {buttons.map((button) => ( + + ))}
-
-
-
-
- {buttons.map((button) => ( - - ))} -
-
-
{getMessage('setting')}
-
- {type === TYPES.EAVES && } - {type === TYPES.GABLE && } - {type === TYPES.SHED && } -
-
- - -
+
+
{getMessage('setting')}
+
+ {type === TYPES.EAVES && } + {type === TYPES.GABLE && } + {type === TYPES.SHED && }
- +
-
-
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/roofShape/RoofShapeSetting.jsx b/src/components/floor-plan/modal/roofShape/RoofShapeSetting.jsx index 64ac905c..73ccc348 100644 --- a/src/components/floor-plan/modal/roofShape/RoofShapeSetting.jsx +++ b/src/components/floor-plan/modal/roofShape/RoofShapeSetting.jsx @@ -88,41 +88,31 @@ export default function RoofShapeSetting({ id, pos = { x: 50, y: 230 } }) { } return ( - -
-
-

{getMessage('modal.roof.shape.setting')}

- + ))} +
+
+ {shapeNum === 1 && } + {(shapeNum === 2 || shapeNum === 3) && } + {shapeNum === 4 && } + {(shapeNum === 5 || shapeNum === 6 || shapeNum === 7 || shapeNum === 8) && } +
+
+
-
-
-
-
- {shapeMenu.map((item) => ( - - ))} -
-
- {shapeNum === 1 && } - {(shapeNum === 2 || shapeNum === 3) && } - {shapeNum === 4 && } - {(shapeNum === 5 || shapeNum === 6 || shapeNum === 7 || shapeNum === 8) && } -
-
- -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/setting01/SettingModal01.jsx b/src/components/floor-plan/modal/setting01/SettingModal01.jsx index 36691d62..4e6f91ea 100644 --- a/src/components/floor-plan/modal/setting01/SettingModal01.jsx +++ b/src/components/floor-plan/modal/setting01/SettingModal01.jsx @@ -72,39 +72,27 @@ export default function SettingModal01(props) { } return ( - <> - -
-
-

{getMessage('modal.canvas.setting')}

- -
-
-
-
-
- + + closePopup(id, true)} /> + +
+ - - {canGridOptionSeletorValue && ( - - )} -
- {buttonAct === 1 && } - {buttonAct === 2 && } - {buttonAct === 3 && } -
-
+ + {canGridOptionSeletorValue && ( + + )}
- - + {buttonAct === 1 && } + {buttonAct === 2 && } + {buttonAct === 3 && } + + ) } diff --git a/src/components/floor-plan/modal/setting01/dimensionLine/DimensionLineSetting.jsx b/src/components/floor-plan/modal/setting01/dimensionLine/DimensionLineSetting.jsx index 7fcbe45a..8bdecff8 100644 --- a/src/components/floor-plan/modal/setting01/dimensionLine/DimensionLineSetting.jsx +++ b/src/components/floor-plan/modal/setting01/dimensionLine/DimensionLineSetting.jsx @@ -190,78 +190,68 @@ export default function DimensionLineSetting(props) { } return ( - -
-
-

{getMessage('modal.canvas.setting.font.plan.absorption.dimension.line')}

-
-
-
-
-
- -
-
-
- {getMessage('modal.canvas.setting.font.plan.absorption.dimension.line.font.size')} -
- setOriginPixel(e)} /> -
- pixel -
-
- {getMessage('modal.canvas.setting.font.plan.absorption.dimension.line.color')} - +
+
+ {getMessage('modal.canvas.setting.font.plan.absorption.dimension.line.font.size')} +
+ setOriginPixel(e)} />
+ pixel
-
-
{getMessage('modal.canvas.setting.font.plan.absorption.dimension.display')}
-
-
-
- - 9,999 - - -
-
-
-
-
- +
+ {getMessage('modal.canvas.setting.font.plan.absorption.dimension.line.color')} +
-
-
+
+
{getMessage('modal.canvas.setting.font.plan.absorption.dimension.display')}
+
+
+
+ + 9,999 + + +
+
+
+
+
+ +
+ ) } diff --git a/src/components/floor-plan/modal/setting01/planSize/PlanSizeSetting.jsx b/src/components/floor-plan/modal/setting01/planSize/PlanSizeSetting.jsx index 7bdf05ba..1d4b1e58 100644 --- a/src/components/floor-plan/modal/setting01/planSize/PlanSizeSetting.jsx +++ b/src/components/floor-plan/modal/setting01/planSize/PlanSizeSetting.jsx @@ -55,59 +55,49 @@ export default function PlanSizeSetting(props) { } return ( - -
-
-

{getMessage('modal.canvas.setting.font.plan.absorption.plan.size.setting')}

-
-
-
-
-
-
- {getMessage('common.horizon')} -
- onlyNumberInputChange(e, changeInput)} - /> -
- mm -
-
- {getMessage('common.vertical')} -
- onlyNumberInputChange(e, changeInput)} - /> -
- mm -
-
-
- -
-
-
-
+
) } diff --git a/src/components/floor-plan/modal/wallLineOffset/WallLineOffsetSetting.jsx b/src/components/floor-plan/modal/wallLineOffset/WallLineOffsetSetting.jsx index 60bab5b7..09c847e7 100644 --- a/src/components/floor-plan/modal/wallLineOffset/WallLineOffsetSetting.jsx +++ b/src/components/floor-plan/modal/wallLineOffset/WallLineOffsetSetting.jsx @@ -39,37 +39,27 @@ export default function WallLineOffsetSetting({ id, pos = { x: 50, y: 230 } }) { } return ( - -
-
-

{getMessage('modal.wallline.offset.setting')}

- + ))} +
+
+
{getMessage('setting')}
+ {type === TYPES.WALL_LINE_EDIT && } + {type === TYPES.OFFSET && } +
+
+
-
-
-
-
- {buttonMenu.map((item) => ( - - ))} -
-
-
{getMessage('setting')}
- {type === TYPES.WALL_LINE_EDIT && } - {type === TYPES.OFFSET && } -
-
- -
-
-
-
+
) }