I want to move the shape and change the direction using the arrow key. Moving was successful. But When 'rotation' is applied, the 'text' position changes. How do I keep the text position and only change the orientation of the shape?
You need to put the pivot point in the center of the figure and center the text too
<Circle
...
offsetY={SIZE / 2}
offsetX={SIZE / 2}
/>
and
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.