From 898fa1fc095e8f0b7c6224f37eaa5f1c1276c9a7 Mon Sep 17 00:00:00 2001 From: kieat Date: Thu, 19 Jul 2018 09:15:14 +0900 Subject: [PATCH] Allow drawRect to accept and handle style.lineWidth Allow drawRect to accept and handle style.lineWidth --- src/common/image_debug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/image_debug.js b/src/common/image_debug.js index 77f08a6..1f1ea92 100644 --- a/src/common/image_debug.js +++ b/src/common/image_debug.js @@ -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); },