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 = [] //설치해야할 반처마커버 포인트를 방향에 따라 설정