@ 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
parent
36958d25c2
commit
03319cedd4
|
@ -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;
|
||||
}());
|
||||
}());
|
||||
|
|
Loading…
Reference in New Issue