From 439f5080de43e212a95d137fcef65c65b56f858d Mon Sep 17 00:00:00 2001 From: Arne van Iterson Date: Tue, 11 Aug 2020 18:07:09 +0200 Subject: [PATCH] Fixed eslint issue --- lib/Line.js | 4 ++-- lib/renderer/CanvasRenderer.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Line.js b/lib/Line.js index f40651b..136b2bb 100644 --- a/lib/Line.js +++ b/lib/Line.js @@ -1,9 +1,9 @@ class Line { constructor(x1, y1, x2, y2, style = "#000000") { this.pos = { x: x1, y: y1 }; - this.target = { x: x2, y: y2 }; + this.target = { x: x2, y: y2 }; this.style = style; } } - + module.exports = Line; \ No newline at end of file diff --git a/lib/renderer/CanvasRenderer.js b/lib/renderer/CanvasRenderer.js index f3e7cfa..6c8c0e1 100644 --- a/lib/renderer/CanvasRenderer.js +++ b/lib/renderer/CanvasRenderer.js @@ -92,7 +92,7 @@ class CanvasRenderer { ctx.fill(); } else if (child.style && child.target) { - ctx.beginPath(); + ctx.beginPath(); ctx.moveTo(0,0); ctx.lineTo(child.target.x, child.target.y); ctx.strokeStyle = child.style;