From 08606adae6a2ae53c1dbcea793e2095bfce63653 Mon Sep 17 00:00:00 2001 From: "hyojun.choi" Date: Tue, 10 Jun 2025 13:58:59 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B2=98=EB=A7=88=EC=BB=A4=EB=B2=84=20?= =?UTF-8?q?=EC=B5=9C=EB=8C=80=20=EB=8B=A8=EC=88=98=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/module/useTrestle.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/hooks/module/useTrestle.js b/src/hooks/module/useTrestle.js index 04d2a264..1ce415ef 100644 --- a/src/hooks/module/useTrestle.js +++ b/src/hooks/module/useTrestle.js @@ -68,6 +68,7 @@ export const useTrestle = () => { let moduleRowsTotCnt = 0 let isEaveBar = construction.setupCover let isSnowGuard = construction.setupSnowCover + let cvrLmtRow = construction.cvrLmtRow const direction = parent.direction const rack = surface.trestleDetail.rack let { rackQty, rackIntvlPct, rackYn, cvrPlvrYn, lessSupFitIntvlPct, lessSupFitQty } = surface.trestleDetail @@ -150,6 +151,10 @@ export const useTrestle = () => { if (isEaveBar) { // 처마력바설치 true인 경우 설치 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], { @@ -168,6 +173,10 @@ export const useTrestle = () => { if (isChidory && cvrPlvrYn === 'Y') { leftExposedHalfBottomModules.forEach((module) => { + const level = module.level + if (level > cvrLmtRow) { + return + } const bottomPoints = findTopTwoPoints([...module.getCurrentPoints()], direction) let barPoints = [] //설치해야할 반처마커버 포인트를 방향에 따라 설정 @@ -198,6 +207,10 @@ export const useTrestle = () => { }) rightExposedHalfBottomPoints.forEach((module) => { + const level = module.level + if (level > cvrLmtRow) { + return + } const bottomPoints = findTopTwoPoints([...module.points], direction) let barPoints = [] //설치해야할 반처마커버 포인트를 방향에 따라 설정