Compare commits
No commits in common. "067356790014f3c9d8b5e8187c4d06e00dd5ce58" and "e940884312f5abb8a5f939706f5739a36ff59028" have entirely different histories.
0673567900
...
e940884312
@ -388,6 +388,8 @@ 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)
|
||||||
|
|
||||||
@ -2492,9 +2494,8 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
}
|
}
|
||||||
return acc
|
return acc
|
||||||
},
|
},
|
||||||
{ x1: -Infinity, y1: -Infinity, index: -1 },
|
{ x1: 0, y1: 0, index: -1 }, // 초기값: 무한대와 유효하지 않은 인덱스
|
||||||
)
|
)
|
||||||
|
|
||||||
flowArray.push(bottomFlow)
|
flowArray.push(bottomFlow)
|
||||||
|
|
||||||
const topFlow = surface.lines.reduce(
|
const topFlow = surface.lines.reduce(
|
||||||
@ -2504,9 +2505,8 @@ 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,6 +2557,9 @@ 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()
|
||||||
|
|
||||||
@ -2607,9 +2610,8 @@ 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(
|
||||||
@ -2619,9 +2621,8 @@ export function useModuleBasicSetting(tabNum) {
|
|||||||
}
|
}
|
||||||
return acc
|
return acc
|
||||||
},
|
},
|
||||||
{ x1: -Infinity, y1: -Infinity, index: -1 },
|
{ x1: 0, y1: 0, index: -1 }, // 초기값: 무한대와 유효하지 않은 인덱스
|
||||||
)
|
)
|
||||||
|
|
||||||
flowArray.push(rightFlow)
|
flowArray.push(rightFlow)
|
||||||
|
|
||||||
let rtnObjArray = []
|
let rtnObjArray = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user