react-native-easy-gestures icon indicating copy to clipboard operation
react-native-easy-gestures copied to clipboard

onEndRotate styles left top values question

Open idoor88 opened this issue 5 years ago • 0 comments

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

idoor88 avatar Sep 13 '19 23:09 idoor88