We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d5bf83 + 7e7b728 commit 7075032Copy full SHA for 7075032
src/display/canvas.js
@@ -975,6 +975,13 @@ var CanvasGraphics = (function CanvasGraphicsClosure() {
975
this.ctx.closePath();
976
},
977
rectangle: function CanvasGraphics_rectangle(x, y, width, height) {
978
+ if (width === 0) {
979
+ width = this.getSinglePixelWidth();
980
+ }
981
+ if (height === 0) {
982
+ height = this.getSinglePixelWidth();
983
984
+
985
this.ctx.rect(x, y, width, height);
986
987
stroke: function CanvasGraphics_stroke(consumePath) {
0 commit comments