Added timer/statistics for rendering

This commit is contained in:
MoyuScript
2011-07-17 02:42:45 +03:00
parent e1a27c28f4
commit 76a1727777
7 changed files with 61 additions and 21 deletions

View File

@@ -29,6 +29,7 @@ function html2canvas(el, userOptions) {
this.imagesLoaded = 0;
this.images = [];
this.fontData = [];
this.numDraws = 0;
this.ignoreElements = "IFRAME|OBJECT|PARAM";
this.ignoreRe = new RegExp("("+this.ignoreElements+")");
@@ -45,7 +46,9 @@ function html2canvas(el, userOptions) {
}*/
// Start script
this.init();
this.init();
return this;
}
@@ -144,6 +147,6 @@ html2canvas.prototype.finish = function(){
newCanvas.height = window.innerHeight;
}
this.opts.ready(this.canvas);
this.opts.ready(this);
}