Reset canvas transform on finish (Fix #1494)

This commit is contained in:
Niklas von Hertzen 2018-04-05 19:42:32 +08:00
parent f347953042
commit 9da0f60551

View File

@ -98,6 +98,7 @@ export default class CanvasRenderer implements RenderTarget<HTMLCanvasElement> {
}
getTarget(): Promise<HTMLCanvasElement> {
this.canvas.getContext('2d').setTransform(1, 0, 0, 1, 0, 0);
return Promise.resolve(this.canvas);
}