-
Notifications
You must be signed in to change notification settings - Fork 819
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
transform rotate degree doesn't right when gives 45deg. #433
Comments
I've reproduced this with the same code. It's parsing the rotation as 45 when converting to Sketch file JSON, but it appears that when Sketch shows "45" in the GUI, the file actually has -45. Inverting fixes this for some rotations, but say 270 is converting to 90 for some reason. I'm thinking that maybe the transform API could be aligned with React Native, which convert to web nicely with |
It probably should yes! IIRC I hack together the transform support but there are def some edge cases I might I missed |
I don't see transform property in the Style interface. |
I has this bug too in version 3.0.4 |
it should be fixed in v3. Do you have a repro somewhere? |
@mathieudutour I push to github |
I am...Reporting a bug
My code is:
I expect the inside
View
will rotate 45deg counter-clock like this:But I got this one:
The rotation attr in Sketch is shown as
-45
, not45
.I tired more degrees like 90, 180, etc, many of them wrong too.
the
react-sketchapp
version is2.1.2
and Sketch's version is56.3 (81716)
The text was updated successfully, but these errors were encountered: