diff --git a/src/svg.js b/src/svg.js index d1701e0..055e42e 100644 --- a/src/svg.js +++ b/src/svg.js @@ -1168,7 +1168,9 @@ function transform2matrix(tstr, bbox) { x2, y2, bb; - if (command == "t" && tlen == 3) { + if (command == "t" && tlen == 2){ + m.translate(t[1], 0); + } else if (command == "t" && tlen == 3) { if (absolute) { x1 = inver.x(0, 0); y1 = inver.y(0, 0); @@ -3540,4 +3542,4 @@ Snap.plugin = function (f) { }; glob.win.Snap = Snap; return Snap; -}()); \ No newline at end of file +}());