From f8c03c92d80552f9210a9c5a54a1b1ee81252129 Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Sun, 20 Sep 2020 22:40:08 -0700 Subject: [PATCH] Fix canvas drawing bug on Safari --- src/draw/canvas/lines.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/draw/canvas/lines.js b/src/draw/canvas/lines.js index bc59881..f7c8fc8 100644 --- a/src/draw/canvas/lines.js +++ b/src/draw/canvas/lines.js @@ -18,9 +18,10 @@ export function Lines(ctx, data) { ctx.moveTo(pos.x, pos.y); } else if (pos.type == 'l') { ctx.lineTo(pos.x, pos.y); + d.stroke(ctx, d); } else if (pos.type == 'b') { ctx.bezierCurveTo(pos.x, pos.y, pos.x2, pos.y2, pos.x3, pos.y3); + d.stroke(ctx, d); } - d.stroke(ctx, d); } -} \ No newline at end of file +}