You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this code we see 315 is being added to the result (and this is not part of the linked SO thread on calculating the rotation). Removing this addition of 315 results in the correct result of 90 degrees for the exported angle. Is there a reason 315 is being added here?
The text was updated successfully, but these errors were encountered:
to be honest, it has been so long since I wrote the code, I have no idea anymore.
If removing the 315 fixes it, feel free to send a PR. Figma may have changes something by now, maybe it was a bug before or something.
Could you also get the x and y coordinats for 2deg, 90deg, 157deg, 286deg and 369deg so we can check the calculation afterwards? Just so we don't break anything?
We are seeing linear gradients with 90 degree angles being exported as gradients with 133 degree angle instead:
The gradient according to Figma is:
and the css according to Figma shows 90 degrees:
But the exported json is:
In this code we see
315
is being added to the result (and this is not part of the linked SO thread on calculating the rotation). Removing this addition of315
results in the correct result of 90 degrees for the exported angle. Is there a reason315
is being added here?The text was updated successfully, but these errors were encountered: