지붕면 할당시 녹색 선 생기는 현상 수정
This commit is contained in:
parent
b8b45f29b1
commit
23e6812542
@ -429,7 +429,7 @@ export const usePolygon = () => {
|
|||||||
|
|
||||||
const sameDirectionCnt = canvas.getObjects().filter((obj) => {
|
const sameDirectionCnt = canvas.getObjects().filter((obj) => {
|
||||||
const onlyStrDirection = obj.directionText?.replace(/[0-9]/g, '')
|
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)
|
text = text + (sameDirectionCnt.length + 1)
|
||||||
@ -860,9 +860,9 @@ export const usePolygon = () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
polygonLines.forEach((line) => {
|
polygonLines.forEach((line) => {
|
||||||
line.set({ strokeWidth: 5, stroke: 'green' })
|
/*line.set({ strokeWidth: 5, stroke: 'green' })
|
||||||
canvas.add(line)
|
canvas.add(line)
|
||||||
canvas.renderAll()
|
canvas.renderAll()*/
|
||||||
const startPoint = line.startPoint // 시작점
|
const startPoint = line.startPoint // 시작점
|
||||||
let arrivalPoint = line.endPoint // 도착점
|
let arrivalPoint = line.endPoint // 도착점
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user