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;