You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the 2d-matrix is built by the following code:
if (supports2d) {
s = "matrix(";
s += tM.e(1,1).toFixed(10) + "," + tM.e(1,2).toFixed(10) + ",";
s += tM.e(2,1).toFixed(10) + "," + tM.e(2,2).toFixed(10) + ",";
s += tM.e(3,1).toFixed(10) + "px," + tM.e(3,2).toFixed(10)+'px';
s += ")";
}
This is not absolutely correct, since the suffix "px" in two last attributes is only supported by firefox (property MozTransform). All other browsers are expecting a matrix without any unit, ignoring any matrix that is built with a unit inside.
The corrected code (for other browsers only):
if (supports2d) {
s = "matrix(";
s += tM.e(1,1).toFixed(10) + "," + tM.e(1,2).toFixed(10) + ",";
s += tM.e(2,1).toFixed(10) + "," + tM.e(2,2).toFixed(10) + ",";
s += tM.e(3,1).toFixed(10) + "," + tM.e(3,2).toFixed(10);
s += ")";
}
The text was updated successfully, but these errors were encountered:
Currently, the 2d-matrix is built by the following code:
This is not absolutely correct, since the suffix "px" in two last attributes is only supported by firefox (property MozTransform). All other browsers are expecting a matrix without any unit, ignoring any matrix that is built with a unit inside.
The corrected code (for other browsers only):
The text was updated successfully, but these errors were encountered: