mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-17 02:01:05 +00:00
Fix straight-line polyline/polygon rendering.
This commit is contained in:
parent
1d3de62a9c
commit
f01736183a
1 changed files with 3 additions and 2 deletions
|
|
@ -54,8 +54,9 @@
|
|||
maxX = max(points, 'x'),
|
||||
maxY = max(points, 'y');
|
||||
|
||||
this.width = maxX - minX;
|
||||
this.height = maxY - minY;
|
||||
this.width = (maxX - minX) || 1;
|
||||
this.height = (maxY - minY) || 1;
|
||||
|
||||
this.minX = minX;
|
||||
this.minY = minY;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue