모듈에 row col 추가
This commit is contained in:
parent
7197e20537
commit
91f49c187a
@ -544,8 +544,6 @@ export function useModuleBasicSetting() {
|
|||||||
return turf.booleanDisjoint(squarePolygon, convertBatchObject) //도머가 여러개일수있으므로 겹치는게 있다면...
|
return turf.booleanDisjoint(squarePolygon, convertBatchObject) //도머가 여러개일수있으므로 겹치는게 있다면...
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log('isDisjoint', isDisjoint)
|
|
||||||
|
|
||||||
if (isDisjoint) {
|
if (isDisjoint) {
|
||||||
const tempModule = new QPolygon(points, {
|
const tempModule = new QPolygon(points, {
|
||||||
fill: '#BFFD9F',
|
fill: '#BFFD9F',
|
||||||
@ -558,6 +556,8 @@ export function useModuleBasicSetting() {
|
|||||||
lockScalingY: false, // Y 축 크기 조정 잠금
|
lockScalingY: false, // Y 축 크기 조정 잠금
|
||||||
opacity: 0.8,
|
opacity: 0.8,
|
||||||
parentId: moduleSetupSurface.parentId,
|
parentId: moduleSetupSurface.parentId,
|
||||||
|
lineCol: col,
|
||||||
|
lineRow: row,
|
||||||
})
|
})
|
||||||
canvas?.add(tempModule)
|
canvas?.add(tempModule)
|
||||||
moduleSetupArray.push(tempModule)
|
moduleSetupArray.push(tempModule)
|
||||||
@ -584,43 +584,6 @@ export function useModuleBasicSetting() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// let drawRoofCells
|
|
||||||
// if (maxLengthLine.flowDirection === 'right' || maxLengthLine.flowDirection === 'left') {
|
|
||||||
// drawRoofCells = trestle.fillCell({ width: 113.4, height: 172.2, padding: 0 })
|
|
||||||
// trestle.flowDirection = 'south'
|
|
||||||
// } else {
|
|
||||||
// drawRoofCells = trestle.fillCell({ width: 172.2, height: 113.4, padding: 0 })
|
|
||||||
// trestle.flowDirection = 'east'
|
|
||||||
// }
|
|
||||||
|
|
||||||
// drawRoofCells.forEach((cell) => {
|
|
||||||
// moduleSetupArray.push(cell)
|
|
||||||
// })
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 추후에 가대까지 완료하면 그룹시켜버림
|
|
||||||
*/
|
|
||||||
// const groupCellObj = canvas
|
|
||||||
// ?.getObjects()
|
|
||||||
// .filter(
|
|
||||||
// (obj) =>
|
|
||||||
// obj?.parentId === trestle.parentId ||
|
|
||||||
// obj?.id === trestle.parentId ||
|
|
||||||
// (obj?.name === 'arrow' && obj?.parent.id === trestle.parentId) ||
|
|
||||||
// (obj?.name === 'flowDirectionText' && obj?.parent.parent.id === trestle.parentId),
|
|
||||||
// )
|
|
||||||
|
|
||||||
// console.log('groupCellObj', groupCellObj)
|
|
||||||
|
|
||||||
// canvas?.add(
|
|
||||||
// new fabric.Group(groupCellObj, {
|
|
||||||
// name: 'cellGroup',
|
|
||||||
// originX: 'center',
|
|
||||||
// originY: 'center',
|
|
||||||
// }),
|
|
||||||
// )
|
|
||||||
|
|
||||||
moduleSetupSurface.set({ modules: moduleSetupArray })
|
moduleSetupSurface.set({ modules: moduleSetupArray })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user