You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 incomponentDidUpdate
but this time, it is applied every time the component is updated so my line rotates a full circle.The text was updated successfully, but these errors were encountered: