@ fix bug for transform="translate(x)"

if element has transform="translate(5)", snap.svg ignore that but it works and it's possible on transform attribute.
master
Benjamin Besse 2013-11-21 11:15:09 +01:00
parent 36958d25c2
commit 03319cedd4
1 changed files with 4 additions and 2 deletions

View File

@ -1163,7 +1163,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);
@ -3751,4 +3753,4 @@ Snap.plugin = function (f) {
};
glob.win.Snap = Snap;
return Snap;
}());
}());