From 471093eb8a1a0ad547b0511fcf5473aa8603c90c Mon Sep 17 00:00:00 2001 From: ysCha Date: Wed, 8 Apr 2026 17:41:21 +0900 Subject: [PATCH] =?UTF-8?q?[1491]cvrLmtRow=EC=97=90=20=EB=94=B0=EB=A5=B8?= =?UTF-8?q?=20=EC=B2=98=EB=A7=88=EC=BB=A4=EB=B2=84=20=EB=8B=A8=EC=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/module/useTrestle.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 411fc118..b24e28d1 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -167,9 +167,13 @@ export const useTrestle = () => { }) if (isEaveBar) { - // 처마력바설치 true인 경우 설치 - // exposedBottomModules는 아래가 노출된 최하단 모듈이므로 level 체크 없이 항상 설치 + // 처마커버 설치: cvrLmtRow 값에 따라 설치 단 수 제한 + // - cvrLmtRow=1: 최하단(level 1)만 설치 + // - cvrLmtRow=2: 최하단과 그 위 1단(level 1~2) 설치 + // - cvrLmtRow=9999: 모든 단에 설치 exposedBottomModules.forEach((module) => { + const level = module.level + if (level > cvrLmtRow) return const bottomPoints = findTopTwoPoints([...module.getCurrentPoints()], direction) if (!bottomPoints) return const eaveBar = new fabric.Line([bottomPoints[0].x, bottomPoints[0].y, bottomPoints[1].x, bottomPoints[1].y], { -- 2.47.2