merged from dev

This commit is contained in:
Niklas von Hertzen
2011-09-12 21:39:28 +03:00
parent 27ee971bba
commit f0112ff3ab
3 changed files with 1465 additions and 0 deletions

50
src/Queue.js Normal file
View File

@@ -0,0 +1,50 @@
html2canvas.canvasContext = function (width, height) {
this.storage = [];
this.width = width;
this.height = height;
//this.zIndex;
this.fillRect = function(){
this.storage.push(
{
type: "function",
name: "fillRect",
'arguments': arguments
});
};
this.drawImage = function () {
this.storage.push(
{
type: "function",
name: "drawImage",
'arguments': arguments
});
};
this.fillText = function () {
this.storage.push(
{
type: "function",
name: "fillText",
'arguments': arguments
});
};
this.setVariable = function(variable, value) {
this.storage.push(
{
type: "variable",
name: variable,
'arguments': value
});
};
return this;
};