@ 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,
|
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);
|
||||||
|
|
Loading…
Reference in New Issue