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

Allow drawRect to accept and handle style.lineWidth
pull/344/head
kieat 7 years ago committed by Tomáš Hübelbauer
parent 0a295f537e
commit 78179ce570

@ -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);
},

Loading…
Cancel
Save