Merge pull request #129 from throrin19/patch-1

@ fix bug for transform="translate(x)"
master
Dmitry Baranovskiy 2013-11-21 03:19:08 -08:00
commit 19f9b2d561
1 changed files with 4 additions and 2 deletions

View File

@ -1168,7 +1168,9 @@ function transform2matrix(tstr, bbox) {
x2, x2,
y2, y2,
bb; bb;
if (command == "t" && tlen == 3) { if (command == "t" && tlen == 2){
m.translate(t[1], 0);
} else if (command == "t" && tlen == 3) {
if (absolute) { if (absolute) {
x1 = inver.x(0, 0); x1 = inver.x(0, 0);
y1 = inver.y(0, 0); y1 = inver.y(0, 0);
@ -3540,4 +3542,4 @@ Snap.plugin = function (f) {
}; };
glob.win.Snap = Snap; glob.win.Snap = Snap;
return Snap; return Snap;
}()); }());