Commit 661af8c4 by Dmitry Baranovskiy

Fixed rotation bug

parent 3e1fe5a4
...@@ -873,7 +873,7 @@ window.Raphael = (function () { ...@@ -873,7 +873,7 @@ window.Raphael = (function () {
}, },
node = o.node, node = o.node,
attrs = o.attrs, attrs = o.attrs,
rot = attrs.rotation, rot = o.attr("rotation"),
addDashes = function (o, value) { addDashes = function (o, value) {
value = dasharray[(value + "").toLowerCase()]; value = dasharray[(value + "").toLowerCase()];
if (value) { if (value) {
...@@ -971,6 +971,7 @@ window.Raphael = (function () { ...@@ -971,6 +971,7 @@ window.Raphael = (function () {
addDashes(o, value); addDashes(o, value);
break; break;
case "rotation": case "rotation":
rot = value;
o.rotate(value, true); o.rotate(value, true);
break; break;
case "translation": case "translation":
...@@ -1058,7 +1059,7 @@ window.Raphael = (function () { ...@@ -1058,7 +1059,7 @@ window.Raphael = (function () {
} }
tuneText(o, params); tuneText(o, params);
o.rotate(attrs.rotation, true); o.rotate(rot, true);
}; };
var leading = 1.2; var leading = 1.2;
var tuneText = function (el, params) { var tuneText = function (el, params) {
......
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