방위 글자 추가 시 검사 조건 추가

This commit is contained in:
hyojun.choi 2025-01-20 09:46:48 +09:00
parent be26351c45
commit 36c9357e8b

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 && onlyStrDirection === text
return obj.name === POLYGON_TYPE.ROOF && obj.visible && obj !== polygon && onlyStrDirection === text
})
text = text + (sameDirectionCnt.length + 1)