Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Followers not in sync with the leader's updates. #69

Open
AyanGhatak opened this issue May 18, 2016 · 3 comments
Open

Followers not in sync with the leader's updates. #69

AyanGhatak opened this issue May 18, 2016 · 3 comments

Comments

@AyanGhatak
Copy link
Contributor

AyanGhatak commented May 18, 2016

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.

@AyanGhatak
Copy link
Contributor Author

Creating a PR for the same.

@AyanGhatak AyanGhatak changed the title Followers not following the leader's transformation. Followers not following the leader's updates. May 20, 2016
@AyanGhatak
Copy link
Contributor Author

AyanGhatak commented May 20, 2016

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.

@AyanGhatak
Copy link
Contributor Author

Creating a PR for the extension of the issue discussed in the above comment.

@AyanGhatak AyanGhatak changed the title Followers not following the leader's updates. Followers not in sync with the leader's updates. May 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant