mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
fix: canvas origin is not at 0,0
This commit is contained in:
@@ -906,6 +906,7 @@ export class CanvasRenderer extends Renderer {
|
|||||||
|
|
||||||
await this.renderStack(stack);
|
await this.renderStack(stack);
|
||||||
this.applyEffects([]);
|
this.applyEffects([]);
|
||||||
|
this.ctx.translate(this.options.x, this.options.y);
|
||||||
return this.canvas;
|
return this.canvas;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user