mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
"big performance boost ;o)"
This commit is contained in:
parent
0fc5f643ba
commit
1ab9941df6
@ -247,7 +247,7 @@ _html2canvas.Generate.parseGradient = function(css, bounds) {
|
|||||||
gradient.rx = gradient.ry = Math.min(tl, tr, br, bl);
|
gradient.rx = gradient.ry = Math.min(tl, tr, br, bl);
|
||||||
break;
|
break;
|
||||||
case 'farthest-side':
|
case 'farthest-side':
|
||||||
if(m2[0] == 'circle'){
|
if(m2[0] === 'circle'){
|
||||||
gradient.rx = gradient.ry = Math.max(
|
gradient.rx = gradient.ry = Math.max(
|
||||||
gradient.cx,
|
gradient.cx,
|
||||||
gradient.cy,
|
gradient.cy,
|
||||||
@ -270,7 +270,7 @@ _html2canvas.Generate.parseGradient = function(css, bounds) {
|
|||||||
break;
|
break;
|
||||||
case 'closest-side':
|
case 'closest-side':
|
||||||
case 'contain': // is equivalent to closest-side
|
case 'contain': // is equivalent to closest-side
|
||||||
if(m2[0] == 'circle'){
|
if(m2[0] === 'circle'){
|
||||||
gradient.rx = gradient.ry = Math.min(
|
gradient.rx = gradient.ry = Math.min(
|
||||||
gradient.cx,
|
gradient.cx,
|
||||||
gradient.cy,
|
gradient.cy,
|
||||||
|
Loading…
Reference in New Issue
Block a user