모듈 있는 경우에는 화살표 작업 안함
This commit is contained in:
parent
6c94fdf1a1
commit
98f4c4c890
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user