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

onEndRotate styles left top values question #41

Open
idoor88 opened this issue Sep 13, 2019 · 0 comments
Open

onEndRotate styles left top values question #41

idoor88 opened this issue Sep 13, 2019 · 0 comments

Comments

@idoor88
Copy link

idoor88 commented Sep 13, 2019

Hi, I am using the Gestures for rotation and scaling purpose of text and image, I need to get the left and top values of a text after it is rotated with onRotateEnd(event, styles), the left and top values seem not right for me, for instance, when I rotate a text 15 degree counterclockwise around the left end as center rotation point, I want the left and top value of the left side, but the values I got from onRotateEnd or onEnd does not give me the right value for the left side, so where does the values of the Left or Top of the styles in onRotateEnd(event, styles) refers to? how can I calculate the top or left values for the left end of my text rotated?

Thanks
Screen Shot 2019-09-13 at 7 35 48 PM

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