From 9da0f60551bb0d54ceb5cbcae061671a1780fdfe Mon Sep 17 00:00:00 2001 From: Niklas von Hertzen Date: Thu, 5 Apr 2018 19:42:32 +0800 Subject: [PATCH] Reset canvas transform on finish (Fix #1494) --- src/renderer/CanvasRenderer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/CanvasRenderer.js b/src/renderer/CanvasRenderer.js index 01f7df6..3a51bc7 100644 --- a/src/renderer/CanvasRenderer.js +++ b/src/renderer/CanvasRenderer.js @@ -98,6 +98,7 @@ export default class CanvasRenderer implements RenderTarget { } getTarget(): Promise { + this.canvas.getContext('2d').setTransform(1, 0, 0, 1, 0, 0); return Promise.resolve(this.canvas); }