redraphael
redraphael copied to clipboard
Followers not in sync with the leader's updates.
Create a text, e.g.
t = paper.text().attr({x:100,y:100, text: "Ayan", 'text-bound': ["#ff0000","#00ff00",2,5,10]});
Now keep on applying for a repeated times
t.attr({transform: 't10,10'});
After some transformations, text although remains intact, the bounding-box(i.e. the text-bound) gets shifted with no capping.
Creating a PR for the same.
Extending the issue:
In the text created and stored under the variable named 't' in above comment, doing the operations:
-
t.show()
-
t.hide()
-
t.rotate(deg, cx, cy)
-
t.scale(sx, sy, cx, cy)
-
t.translate(dx, dy)
do not update the text-bounding rectangular element. So it should be internally managed by the graphics engine RedRaphael that if the element has follower element, operating on the leader element should ideally be followed by its followers.
Creating a PR for the extension of the issue discussed in the above comment.