방위 글자 추가 시 검사 조건 추가
This commit is contained in:
parent
be26351c45
commit
36c9357e8b
@ -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 && onlyStrDirection === text
|
||||
return obj.name === POLYGON_TYPE.ROOF && obj.visible && obj !== polygon && onlyStrDirection === text
|
||||
})
|
||||
|
||||
text = text + (sameDirectionCnt.length + 1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user