mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
added logs for used renderer
This commit is contained in:
parent
c57ed30c3e
commit
447db0c5f5
@ -168,6 +168,7 @@ html2canvas.Renderer = function(parseQueue, opts){
|
||||
|
||||
|
||||
}
|
||||
html2canvas.log("html2canvas: Renderer: Canvas renderer done - returning canvas obj");
|
||||
|
||||
// this.canvasRenderStorage(queue,this.ctx);
|
||||
return canvas;
|
||||
@ -352,7 +353,7 @@ html2canvas.Renderer = function(parseQueue, opts){
|
||||
|
||||
|
||||
|
||||
|
||||
html2canvas.log("html2canvas: Renderer: SVG Renderer done - returning SVG DOM obj");
|
||||
|
||||
return svg;
|
||||
|
||||
@ -367,11 +368,13 @@ html2canvas.Renderer = function(parseQueue, opts){
|
||||
case "canvas":
|
||||
canvas = doc.createElement('canvas');
|
||||
if (canvas.getContext){
|
||||
this.log("html2canvas: Renderer: using canvas renderer");
|
||||
return canvasRenderer(parseQueue);
|
||||
}
|
||||
break;
|
||||
case "svg":
|
||||
if (doc.createElementNS){
|
||||
this.log("html2canvas: Renderer: using SVG renderer");
|
||||
return svgRenderer(parseQueue);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user