지붕면 할당시 녹색 선 생기는 현상 수정

This commit is contained in:
hyojun.choi 2025-01-21 17:14:59 +09:00
parent b8b45f29b1
commit 23e6812542

View File

@ -429,7 +429,7 @@ export const usePolygon = () => {
const sameDirectionCnt = canvas.getObjects().filter((obj) => {
const onlyStrDirection = obj.directionText?.replace(/[0-9]/g, '')
return obj.name === POLYGON_TYPE.ROOF && obj.visible && obj !== polygon && onlyStrDirection === text
return obj.name === POLYGON_TYPE.ROOF && obj !== polygon && onlyStrDirection === text
})
text = text + (sameDirectionCnt.length + 1)
@ -860,9 +860,9 @@ export const usePolygon = () => {
})
polygonLines.forEach((line) => {
line.set({ strokeWidth: 5, stroke: 'green' })
/*line.set({ strokeWidth: 5, stroke: 'green' })
canvas.add(line)
canvas.renderAll()
canvas.renderAll()*/
const startPoint = line.startPoint // 시작점
let arrivalPoint = line.endPoint // 도착점