diff --git a/app/assets/javascripts/turtle.js b/app/assets/javascripts/turtle.js index 5a07b764..05b7f549 100644 --- a/app/assets/javascripts/turtle.js +++ b/app/assets/javascripts/turtle.js @@ -97,6 +97,9 @@ Turtle.prototype.update = function () { if (item.fill) { ctx.strokeStyle = item.fill; } + if (item.width) { + ctx.lineWidth = item.width; + } ctx.stroke(); break; @@ -112,6 +115,9 @@ Turtle.prototype.update = function () { ctx.strokeStyle = item.fill; ctx.fill(); } + if (item.width) { + ctx.lineWidth = item.width; + } ctx.stroke(); break; case 'image':