Commit 8723b715 by Dmitry Baranovskiy

1.2.4

Fix translation bug with (-1, -1) parameters
parent 80123c87
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1130,11 +1130,13 @@ window.Raphael = (function () {
break;
case "translation":
var xy = (value + E)[split](separator);
xy[0] = +xy[0] || 0;
xy[1] = +xy[1] || 0;
if (rotxy) {
rotxy[1] +=+ xy[0];
rotxy[2] +=+ xy[1];
rotxy[1] += xy[0];
rotxy[2] += xy[1];
}
translate.call(o, (+xy[0] + 1 || 2) - 1, (+xy[1] + 1 || 2) - 1);
translate.call(o, xy[0], xy[1]);
break;
case "scale":
var xy = (value + E)[split](separator);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment