From 78179ce5701d3e64c8cd0cb7590e89f30810219e Mon Sep 17 00:00:00 2001 From: kieat Date: Tue, 24 Jul 2018 17:00:01 +0900 Subject: [PATCH] Allow drawRect to accept and handle style.lineWidth (#315) 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); },