From 5a1dcc463c2728f6d1c20b50e0ace0ede850e98b Mon Sep 17 00:00:00 2001 From: ysCha Date: Mon, 1 Dec 2025 11:07:39 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EA=B2=8C=EC=82=B0=EA=B8=B0=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../floor-plan/modal/object/SizeSetting.jsx | 12 ++++++------ .../modal/roofShape/type/option/Jerkinhead.jsx | 2 +- src/hooks/roofcover/useRoofAllocationSetting.js | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/floor-plan/modal/object/SizeSetting.jsx b/src/components/floor-plan/modal/object/SizeSetting.jsx index 39f6897c..ce3d5fbd 100644 --- a/src/components/floor-plan/modal/object/SizeSetting.jsx +++ b/src/components/floor-plan/modal/object/SizeSetting.jsx @@ -21,8 +21,8 @@ export default function SizeSetting(props) { const { resizeSurfaceShapeBatch } = useSurfaceShapeBatch({}) const widthRef = useRef(null) const heightRef = useRef(null) - const [width, setWidth] = useState(target?.originWidth ? (target.originWidth * 10) : 0) - const [height, setHeight] = useState(target?.originHeight ? (target.originHeight * 10) : 0) + const [width, setWidth] = useState(target?.width ? (target.width * 10).toFixed() : 0) + const [height, setHeight] = useState(target?.height ? (target.height * 10) : 0) // const { initEvent } = useEvent() // const { initEvent } = useContext(EventContext) @@ -31,11 +31,11 @@ export default function SizeSetting(props) { // }, []) useEffect(() => { - if (target?.originWidth !== undefined) { - setWidth(target.originWidth * 10); + if (target?.width !== undefined) { + setWidth((target.width * 10).toFixed()); } - if (target?.originHeight !== undefined) { - setHeight(target.originHeight * 10); + if (target?.height !== undefined) { + setHeight((target.height * 10).toFixed()); } }, [target]); diff --git a/src/components/floor-plan/modal/roofShape/type/option/Jerkinhead.jsx b/src/components/floor-plan/modal/roofShape/type/option/Jerkinhead.jsx index 30c1a9bd..ed4c11f1 100644 --- a/src/components/floor-plan/modal/roofShape/type/option/Jerkinhead.jsx +++ b/src/components/floor-plan/modal/roofShape/type/option/Jerkinhead.jsx @@ -76,7 +76,7 @@ export default function Jerkinhead({ label="" className="input-origin block" value={jerkinHeadPitch} - onChange={(value) => jerkinHeadPitch(value)} + onChange={(value) => setJerkinHeadPitch(value)} options={{ allowNegative: false, allowDecimal: true //(index !== 0), diff --git a/src/hooks/roofcover/useRoofAllocationSetting.js b/src/hooks/roofcover/useRoofAllocationSetting.js index e6d7a825..799e3a72 100644 --- a/src/hooks/roofcover/useRoofAllocationSetting.js +++ b/src/hooks/roofcover/useRoofAllocationSetting.js @@ -569,7 +569,7 @@ export function useRoofAllocationSetting(id) { * 피치 변경 */ const handleChangePitch = (e, index) => { - let value = e.target.value + let value = e //e.target.value const reg = /^[0-9]+(\.[0-9]{0,1})?$/ if (!reg.test(value)) { From 3c92c2b8d7a462971e6abeb5b21b22aa8557112e Mon Sep 17 00:00:00 2001 From: ysCha Date: Mon, 1 Dec 2025 11:24:47 +0900 Subject: [PATCH 2/2] =?UTF-8?q?canvas=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/util/qpolygon-utils.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/qpolygon-utils.js b/src/util/qpolygon-utils.js index 6e25c18d..a4f885a4 100644 --- a/src/util/qpolygon-utils.js +++ b/src/util/qpolygon-utils.js @@ -6,7 +6,6 @@ import { QPolygon } from '@/components/fabric/QPolygon' import * as turf from '@turf/turf' import { LINE_TYPE, POLYGON_TYPE } from '@/common/common' import Big from 'big.js' -import { canvas } from 'framer-motion/m' const TWO_PI = Math.PI * 2