Skip to content

Commit

Permalink
Fixed parsing translate with one argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderby committed Sep 14, 2016
1 parent d6cc56d commit c9de9b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/floating-axes.js
Expand Up @@ -53,7 +53,9 @@
var translateStr = transform.substring(ts + 10, te);
var translateParts = translateStr.trim().replace(',', ' ').replace(/\s+/, ' ').split(' ');
result.x = parseFloat(translateParts[0]);
result.y = parseFloat(translateParts[1]);
if (translateParts.length > 1) {
result.y = parseFloat(translateParts[1]);
}
}
var rs = transform.indexOf('rotate(');
if (rs >= 0) {
Expand Down

0 comments on commit c9de9b9

Please sign in to comment.