-
-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Description
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:
"violet": {
"description": "my gradient",
"type": "custom-gradient",
"value": {
"gradientType": "linear",
"rotation": 133.3367478296384,
"stops": [
{
"position": 0,
"color": "#000000ff"
},
{
"position": 1,
"color": "#ffffffff"
}
]
}
},
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels