From afea0f7c308c8e5d3610738d01fed4cc2624c588 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 24 Dec 2024 15:40:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A7=80=EB=B6=95=EC=9E=AC=20w,l=20=EA=B0=92?= =?UTF-8?q?=EC=9D=B4=20=EC=97=86=EB=8A=94=EA=B2=BD=EC=9A=B0=20default?= =?UTF-8?q?=EA=B0=92=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/common/useRoofFn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hooks/common/useRoofFn.js b/src/hooks/common/useRoofFn.js index 31e31d13..afe1c71e 100644 --- a/src/hooks/common/useRoofFn.js +++ b/src/hooks/common/useRoofFn.js @@ -12,8 +12,8 @@ export function useRoofFn() { const ratio = window.devicePixelRatio || 1 const layout = roofMaterial.layout - let width = roofMaterial.width / 10 - let height = roofMaterial.length / 10 + let width = (roofMaterial.width ?? 226) / 10 + let height = (roofMaterial.length ?? 158) / 10 let roofStyle = 2 const inputPatternSize = { width: width, height: height } //임시 사이즈 const patternSize = { ...inputPatternSize } // 입력된 값을 뒤집기 위해