mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Reset canvas transform on finish (Fix #1494)
This commit is contained in:
parent
f347953042
commit
9da0f60551
@ -98,6 +98,7 @@ export default class CanvasRenderer implements RenderTarget<HTMLCanvasElement> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getTarget(): Promise<HTMLCanvasElement> {
|
getTarget(): Promise<HTMLCanvasElement> {
|
||||||
|
this.canvas.getContext('2d').setTransform(1, 0, 0, 1, 0, 0);
|
||||||
return Promise.resolve(this.canvas);
|
return Promise.resolve(this.canvas);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user