Merge branch 'dev' into feature/test-jy
This commit is contained in:
commit
a859aa26e8
@ -35,7 +35,7 @@ export const QPolygon = fabric.util.createClass(fabric.Polygon, {
|
||||
}
|
||||
const nextPoint = points[(i + 1) % points.length]
|
||||
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
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user