모듈 있는 경우에는 화살표 작업 안함

This commit is contained in:
hyojun.choi 2025-02-13 16:47:22 +09:00
parent 6c94fdf1a1
commit 98f4c4c890

View File

@ -177,6 +177,12 @@ export const usePolygon = () => {
if (polygon.points.length < 3) { if (polygon.points.length < 3) {
return return
} }
// 모듈있으면 화살표 이미 그려져 있으므로 수행 안함
const hasModules = canvas.getObjects().filter((obj) => obj.name === POLYGON_TYPE.MODULE).length > 0
if (hasModules) {
return
}
const direction = polygon.direction const direction = polygon.direction
if (!direction) { if (!direction) {
return return