Allow drawRect to accept and handle style.lineWidth (#315)

Allow drawRect to accept and handle style.lineWidth
This commit is contained in:
kieat
2018-07-24 10:00:01 +02:00
committed by Tomáš Hübelbauer
parent 0a295f537e
commit 78179ce570
+1 -1
View File
@@ -2,7 +2,7 @@ export default {
drawRect: function(pos, size, ctx, style){
ctx.strokeStyle = style.color;
ctx.fillStyle = style.color;
ctx.lineWidth = 1;
ctx.lineWidth = style.lineWidth || 1;
ctx.beginPath();
ctx.strokeRect(pos.x, pos.y, size.x, size.y);
},