From bdcacd554252c0cc7dd977edc0db4fc9f4469a53 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Wed, 16 Apr 2025 15:39:48 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B3=80=EB=B3=84=EB=A1=9C=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=ED=9B=84=20=ED=95=9C=EC=AA=BD=ED=9D=90=EB=A6=84?= =?UTF-8?q?=EA=B3=BC=20=EA=B0=99=EC=9D=B4=20=EB=B3=80=20=EC=86=8D=EC=84=B1?= =?UTF-8?q?=EC=9D=84=20=EC=84=A0=ED=83=9D=ED=95=A0=20=EA=B2=BD=EC=9A=B0=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/roofcover/useRoofShapeSetting.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/hooks/roofcover/useRoofShapeSetting.js b/src/hooks/roofcover/useRoofShapeSetting.js index b6fc5036..e36dbd08 100644 --- a/src/hooks/roofcover/useRoofShapeSetting.js +++ b/src/hooks/roofcover/useRoofShapeSetting.js @@ -231,6 +231,21 @@ export function useRoofShapeSetting(id) { pitch: pitchRef.current, onlyOffset: true, } + + switch (line.direction) { + case 'bottom': + direction = 'west' + break + case 'top': + direction = 'east' + break + case 'left': + direction = 'north' + break + case 'right': + direction = 'south' + break + } } }) }