처마커버 최대 단수 적용
This commit is contained in:
parent
68980a8aca
commit
08606adae6
@ -68,6 +68,7 @@ export const useTrestle = () => {
|
|||||||
let moduleRowsTotCnt = 0
|
let moduleRowsTotCnt = 0
|
||||||
let isEaveBar = construction.setupCover
|
let isEaveBar = construction.setupCover
|
||||||
let isSnowGuard = construction.setupSnowCover
|
let isSnowGuard = construction.setupSnowCover
|
||||||
|
let cvrLmtRow = construction.cvrLmtRow
|
||||||
const direction = parent.direction
|
const direction = parent.direction
|
||||||
const rack = surface.trestleDetail.rack
|
const rack = surface.trestleDetail.rack
|
||||||
let { rackQty, rackIntvlPct, rackYn, cvrPlvrYn, lessSupFitIntvlPct, lessSupFitQty } = surface.trestleDetail
|
let { rackQty, rackIntvlPct, rackYn, cvrPlvrYn, lessSupFitIntvlPct, lessSupFitQty } = surface.trestleDetail
|
||||||
@ -150,6 +151,10 @@ export const useTrestle = () => {
|
|||||||
if (isEaveBar) {
|
if (isEaveBar) {
|
||||||
// 처마력바설치 true인 경우 설치
|
// 처마력바설치 true인 경우 설치
|
||||||
exposedBottomModules.forEach((module) => {
|
exposedBottomModules.forEach((module) => {
|
||||||
|
const level = module.level
|
||||||
|
if (level > cvrLmtRow) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const bottomPoints = findTopTwoPoints([...module.getCurrentPoints()], direction)
|
const bottomPoints = findTopTwoPoints([...module.getCurrentPoints()], direction)
|
||||||
if (!bottomPoints) return
|
if (!bottomPoints) return
|
||||||
const eaveBar = new fabric.Line([bottomPoints[0].x, bottomPoints[0].y, bottomPoints[1].x, bottomPoints[1].y], {
|
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') {
|
if (isChidory && cvrPlvrYn === 'Y') {
|
||||||
leftExposedHalfBottomModules.forEach((module) => {
|
leftExposedHalfBottomModules.forEach((module) => {
|
||||||
|
const level = module.level
|
||||||
|
if (level > cvrLmtRow) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const bottomPoints = findTopTwoPoints([...module.getCurrentPoints()], direction)
|
const bottomPoints = findTopTwoPoints([...module.getCurrentPoints()], direction)
|
||||||
let barPoints = []
|
let barPoints = []
|
||||||
//설치해야할 반처마커버 포인트를 방향에 따라 설정
|
//설치해야할 반처마커버 포인트를 방향에 따라 설정
|
||||||
@ -198,6 +207,10 @@ export const useTrestle = () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
rightExposedHalfBottomPoints.forEach((module) => {
|
rightExposedHalfBottomPoints.forEach((module) => {
|
||||||
|
const level = module.level
|
||||||
|
if (level > cvrLmtRow) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const bottomPoints = findTopTwoPoints([...module.points], direction)
|
const bottomPoints = findTopTwoPoints([...module.points], direction)
|
||||||
let barPoints = []
|
let barPoints = []
|
||||||
//설치해야할 반처마커버 포인트를 방향에 따라 설정
|
//설치해야할 반처마커버 포인트를 방향에 따라 설정
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user