Browse Source

Fix canvas drawing bug on Safari

master
Jongmin Kim 4 years ago committed by GitHub
parent
commit
f8c03c92d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/draw/canvas/lines.js

5
src/draw/canvas/lines.js

@ -18,9 +18,10 @@ export function Lines(ctx, data) {
ctx.moveTo(pos.x, pos.y); ctx.moveTo(pos.x, pos.y);
} else if (pos.type == 'l') { } else if (pos.type == 'l') {
ctx.lineTo(pos.x, pos.y); ctx.lineTo(pos.x, pos.y);
d.stroke(ctx, d);
} else if (pos.type == 'b') { } else if (pos.type == 'b') {
ctx.bezierCurveTo(pos.x, pos.y, pos.x2, pos.y2, pos.x3, pos.y3); ctx.bezierCurveTo(pos.x, pos.y, pos.x2, pos.y2, pos.x3, pos.y3);
d.stroke(ctx, d);
} }
d.stroke(ctx, d);
} }
} }

Loading…
Cancel
Save