Skip to content

Commit

Permalink
Merge pull request #1302 from mikehazell/pr/drawing-drawRect-fillstyle
Browse files Browse the repository at this point in the history
fix(drawing/drawRect.js): Fixes the fillStyle feature of drawRect.js
  • Loading branch information
dannyrb authored Sep 1, 2020
2 parents 15120f0 + 9e4a4d4 commit 79660e9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/drawing/drawRect.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,8 @@ export default function(
path(context, options, context => {
context.moveTo(corner1.x, corner1.y);
context.lineTo(corner3.x, corner3.y);
context.moveTo(corner3.x, corner3.y);
context.lineTo(corner2.x, corner2.y);
context.moveTo(corner2.x, corner2.y);
context.lineTo(corner4.x, corner4.y);
context.moveTo(corner4.x, corner4.y);
context.lineTo(corner1.x, corner1.y);
});
}

0 comments on commit 79660e9

Please sign in to comment.