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

How to rotate a line ? #172

Closed
friedrith opened this issue May 16, 2018 · 0 comments
Closed

How to rotate a line ? #172

friedrith opened this issue May 16, 2018 · 0 comments

Comments

@friedrith
Copy link

Hi,
How is it possible to rotate figures like Line or Rect? I used the feature described there but unfortunately I don't know where to put in a react component lifecycle. Because in order to apply the rotation, I need to get access to the figure and so call it after a render call.

I tried in componentDidMount but it doesn't apply the rotation to the figures that are displayed later in the lifecycle of the component. I also tried in componentDidUpdate but this time, it is applied every time the component is updated so my line rotates a full circle.

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