diff --git a/lib/renderer/CanvasRenderer.js b/lib/renderer/CanvasRenderer.js index 22c2233..f3e7cfa 100644 --- a/lib/renderer/CanvasRenderer.js +++ b/lib/renderer/CanvasRenderer.js @@ -92,6 +92,7 @@ class CanvasRenderer { ctx.fill(); } else if (child.style && child.target) { + ctx.beginPath(); ctx.moveTo(0,0); ctx.lineTo(child.target.x, child.target.y); ctx.strokeStyle = child.style;