mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Ignore transforms if non found
This commit is contained in:
parent
57028ab423
commit
26a81da2f0
10
src/Parse.js
10
src/Parse.js
@ -955,10 +955,12 @@ _html2canvas.Parse = function (images, options) {
|
|||||||
var TRANSFORM_REGEXP = /(matrix)\((.+)\)/;
|
var TRANSFORM_REGEXP = /(matrix)\((.+)\)/;
|
||||||
if (transform && transform !== "none") {
|
if (transform && transform !== "none") {
|
||||||
var match = transform.match(TRANSFORM_REGEXP);
|
var match = transform.match(TRANSFORM_REGEXP);
|
||||||
switch(match[1]) {
|
if (match) {
|
||||||
case "matrix":
|
switch(match[1]) {
|
||||||
matrix = match[2].split(",").map(Util.trimText).map(Util.asFloat);
|
case "matrix":
|
||||||
break;
|
matrix = match[2].split(",").map(Util.trimText).map(Util.asFloat);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user