split files & created build file

This commit is contained in:
Niklas von Hertzen
2011-07-16 19:59:15 +03:00
parent 4b7ea7d7cc
commit adc30b6361
30 changed files with 4165 additions and 711 deletions

18
src/Border.js Normal file
View File

@ -0,0 +1,18 @@
/*
* Function to provide border details for an element
*/
html2canvas.prototype.getBorderData = function(el){
var borders = [];
var _ = this;
this.each(["top","right","bottom","left"],function(i,borderSide){
borders.push({
width: parseInt(_.getCSS(el,'border-'+borderSide+'-width'),10),
color: _.getCSS(el,'border-'+borderSide+'-color')
});
});
return borders;
}