Merge branch 'feature/yj-layoutSetup' of https://git.hanasys.jp/qcast3/qcast-front into feature/yj-layoutSetup
This commit is contained in:
commit
e71c655d05
@ -388,8 +388,6 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
|
|
||||||
//모듈,회로에서 다른메뉴 -> 배치면으로 갈 경수 초기화
|
//모듈,회로에서 다른메뉴 -> 배치면으로 갈 경수 초기화
|
||||||
const restoreModuleInstArea = () => {
|
const restoreModuleInstArea = () => {
|
||||||
console.log('tabnum', tabNum)
|
|
||||||
|
|
||||||
//설치면 삭제
|
//설치면 삭제
|
||||||
const setupArea = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE_SETUP_SURFACE || obj.name === POLYGON_TYPE.OBJECT_SURFACE)
|
const setupArea = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE_SETUP_SURFACE || obj.name === POLYGON_TYPE.OBJECT_SURFACE)
|
||||||
|
|
||||||
@ -2494,8 +2492,9 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
}
|
}
|
||||||
return acc
|
return acc
|
||||||
},
|
},
|
||||||
{ x1: 0, y1: 0, index: -1 }, // 초기값: 무한대와 유효하지 않은 인덱스
|
{ x1: -Infinity, y1: -Infinity, index: -1 },
|
||||||
)
|
)
|
||||||
|
|
||||||
flowArray.push(bottomFlow)
|
flowArray.push(bottomFlow)
|
||||||
|
|
||||||
const topFlow = surface.lines.reduce(
|
const topFlow = surface.lines.reduce(
|
||||||
@ -2505,8 +2504,9 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
}
|
}
|
||||||
return acc
|
return acc
|
||||||
},
|
},
|
||||||
{ x1: Infinity, y1: Infinity, index: -1 }, // 초기값: 무한대와 유효하지 않은 인덱스
|
{ x1: Infinity, y1: Infinity, index: -1 },
|
||||||
)
|
)
|
||||||
|
|
||||||
flowArray.push(topFlow)
|
flowArray.push(topFlow)
|
||||||
|
|
||||||
let rtnObjArray = []
|
let rtnObjArray = []
|
||||||
@ -2557,9 +2557,6 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
|
|
||||||
//디버깅
|
//디버깅
|
||||||
const finalLine = new QLine([pointX1, pointY1, pointX2, pointY2], { stroke: 'red', strokeWidth: 1, selectable: true })
|
const finalLine = new QLine([pointX1, pointY1, pointX2, pointY2], { stroke: 'red', strokeWidth: 1, selectable: true })
|
||||||
|
|
||||||
// console.log(`index ${index} : finalLine`, pointX1, pointY1, pointX2, pointY2)
|
|
||||||
|
|
||||||
// canvas?.add(finalLine)
|
// canvas?.add(finalLine)
|
||||||
// canvas?.renderAll()
|
// canvas?.renderAll()
|
||||||
|
|
||||||
@ -2610,8 +2607,9 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
}
|
}
|
||||||
return acc
|
return acc
|
||||||
},
|
},
|
||||||
{ x1: Infinity, y1: Infinity, index: -1 }, // 초기값: 무한대와 유효하지 않은 인덱스
|
{ x1: Infinity, y1: Infinity, index: -1 },
|
||||||
)
|
)
|
||||||
|
|
||||||
flowArray.push(leftFlow)
|
flowArray.push(leftFlow)
|
||||||
|
|
||||||
const rightFlow = surface.lines.reduce(
|
const rightFlow = surface.lines.reduce(
|
||||||
@ -2621,8 +2619,9 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
}
|
}
|
||||||
return acc
|
return acc
|
||||||
},
|
},
|
||||||
{ x1: 0, y1: 0, index: -1 }, // 초기값: 무한대와 유효하지 않은 인덱스
|
{ x1: -Infinity, y1: -Infinity, index: -1 },
|
||||||
)
|
)
|
||||||
|
|
||||||
flowArray.push(rightFlow)
|
flowArray.push(rightFlow)
|
||||||
|
|
||||||
let rtnObjArray = []
|
let rtnObjArray = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user