[bug]: Fixed sub-paths for lines not being reset

See: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke#Re-stroking_paths
This commit is contained in:
corner 2020-08-11 12:43:50 +02:00
parent d2ded2599c
commit b9a357130b
1 changed files with 1 additions and 0 deletions

View File

@ -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;