Skip to content

Commit

Permalink
Update path.class.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Jul 1, 2022
1 parent 8f62ded commit e758365
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shapes/path.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,15 +374,15 @@

}

var minBefore = new fabric.Point(min(aX) || 0, min(aY) || 0);
var minBefore = new fabric.Point(min(aX), min(aY));

projectedPoints.forEach(function (point) {
aX.push(point.x);
aY.push(point.y);
});

var minPoint = new fabric.Point(min(aX) || 0, min(aY) || 0),
maxPoint = new fabric.Point(max(aX) || 0, max(aY) || 0),
var minPoint = new fabric.Point(min(aX), min(aY)),
maxPoint = new fabric.Point(max(aX), max(aY)),
delta = maxPoint.subtract(minPoint);

return {
Expand Down

0 comments on commit e758365

Please sign in to comment.