90도 추가
This commit is contained in:
parent
2e5346a387
commit
ec9ecbd7b3
@ -34,7 +34,7 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
|
|||||||
}
|
}
|
||||||
const nextPoint = points[(i + 1) % points.length]
|
const nextPoint = points[(i + 1) % points.length]
|
||||||
const angle = calculateAngle(point, nextPoint)
|
const angle = calculateAngle(point, nextPoint)
|
||||||
if (!(Math.abs(angle) === 0 || Math.abs(angle) === 180)) {
|
if (!(Math.abs(angle) === 0 || Math.abs(angle) === 180 || Math.abs(angle) === 90)) {
|
||||||
isDiagonal = true
|
isDiagonal = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user