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);
|
// this.canvasRenderStorage(queue,this.ctx);
|
||||||
return canvas;
|
return canvas;
|
||||||
@ -352,7 +353,7 @@ html2canvas.Renderer = function(parseQueue, opts){
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
html2canvas.log("html2canvas: Renderer: SVG Renderer done - returning SVG DOM obj");
|
||||||
|
|
||||||
return svg;
|
return svg;
|
||||||
|
|
||||||
@ -367,11 +368,13 @@ html2canvas.Renderer = function(parseQueue, opts){
|
|||||||
case "canvas":
|
case "canvas":
|
||||||
canvas = doc.createElement('canvas');
|
canvas = doc.createElement('canvas');
|
||||||
if (canvas.getContext){
|
if (canvas.getContext){
|
||||||
|
this.log("html2canvas: Renderer: using canvas renderer");
|
||||||
return canvasRenderer(parseQueue);
|
return canvasRenderer(parseQueue);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "svg":
|
case "svg":
|
||||||
if (doc.createElementNS){
|
if (doc.createElementNS){
|
||||||
|
this.log("html2canvas: Renderer: using SVG renderer");
|
||||||
return svgRenderer(parseQueue);
|
return svgRenderer(parseQueue);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user