mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
"added another background gradient to backgrounds.html"
This commit is contained in:
@ -25,9 +25,7 @@ var reGradients = [
|
||||
// ["-webkit-linear-gradient(left, rgb(206, 219, 233) 0%, rgb(170, 197, 222) 17%, rgb(97, 153, 199) 50%, rgb(58, 132, 195) 51%, rgb(65, 154, 214) 59%, rgb(75, 184, 240) 71%, rgb(58, 139, 194) 84%, rgb(38, 85, 139) 100%)", "-webkit-linear-gradient", "left", ", rgb(206, 219, 233) 0%, rgb(170, 197, 222) 17%, rgb(97, 153, 199) 50%, rgb(58, 132, 195) 51%, rgb(65, 154, 214) 59%, rgb(75, 184, 240) 71%, rgb(58, 139, 194) 84%, rgb(38, 85, 139) 100%"]
|
||||
// ["-webkit-gradient(linear, 0% 0, 0% 100%, from(rgb(252, 252, 252)), to(rgb(232, 232, 232)))", "-webkit-gradient", "linear", "0% 0", "0% 100%", ", from(rgb(252, 252, 252)), to(rgb(232, 232, 232))"]
|
||||
|
||||
_html2canvas.Generate.getColorStopsFromGradient = function(css, bounds) {
|
||||
console.log(css);
|
||||
|
||||
_html2canvas.Generate.getColorStopsFromGradient = function(css, bounds) {
|
||||
var gradient, i, len = reGradients.length, m1, stop, m2, m2Len, step, m3;
|
||||
|
||||
for(i = 0; i < len; i+=1){
|
||||
@ -35,7 +33,6 @@ _html2canvas.Generate.getColorStopsFromGradient = function(css, bounds) {
|
||||
if(m1) break;
|
||||
}
|
||||
|
||||
console.log(m1);
|
||||
if(m1) {
|
||||
switch(m1[1]) {
|
||||
case '-webkit-linear-gradient':
|
||||
@ -94,7 +91,6 @@ _html2canvas.Generate.getColorStopsFromGradient = function(css, bounds) {
|
||||
stop: stop
|
||||
});
|
||||
}
|
||||
console.log(gradient);
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user