-
Notifications
You must be signed in to change notification settings - Fork 561
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
Rotate animation doesn't work when Node has translation #133
Comments
Hi George, There is actually a special method for rotate animation:
This method can be used to rotate node around its center. You can also specify another point:
However these methods only available in the master version. You can switch to master by using:
|
Hello @galexite , |
I tried it with a brand new SVG of the same size and the same problem occurs (attached). I believe it is a problem with applying a positioning and scaling to the |
Are the bounds changed when a Transform is set, I wonder? |
@vhailor13 The rotation animation works when no scaling or positioning is applied to the |
Requires issue #134 to be fixed. I'll try doing it myself. |
Fixed with f7c4acb. You can try it via pod update for master branch. |
@vhailor13 Wow! Thanks! Testing now. |
Solved. Thank you again @vhailor13! |
How do I animate an explicit Transform in Macaw? My app involves a compass, which is a
Node
on aMacawView
. I only want to animate rotation, so what I really wanted was to do this:Therefore retaining (but not modifying) my scaling set to
myNode.place
.I do understand that there is
animate(to: Transform)
, but I loose my scaling. If I useanimate(to: myNode.place.rotate(...))
, I get rather weird issues with the node resizing almost seemingly randomly.Is this possible in Macaw?
Thanks
The text was updated successfully, but these errors were encountered: