mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Add options.background option
This commit is contained in:
@ -6,6 +6,9 @@ function CanvasRenderer(width, height) {
|
||||
this.canvas.height = height;
|
||||
}
|
||||
this.ctx = this.canvas.getContext("2d");
|
||||
if (this.options.background) {
|
||||
this.rectangle(0, 0, width, height, this.options.background);
|
||||
}
|
||||
this.taintCtx = this.document.createElement("canvas").getContext("2d");
|
||||
this.ctx.textBaseline = "bottom";
|
||||
this.variables = {};
|
||||
|
Reference in New Issue
Block a user