Open adroitwhiz opened 4 years ago
@adroitwhiz Can you provide reproduction steps for how to produce an svg that has these properties in Scratch?
@BryceLTaylor
This isn't how I obtained the SVG I uploaded above-- I used an external editor (Inkscape) to create that.
Thanks!
Expected Behavior
All radial gradients should be properly recognized as radial when selected
Actual Behavior
If a radial gradient's destination point lies directly above or beneath its origin point, the gradient will be treated as a vertical gradient:![image](https://user-images.githubusercontent.com/25993062/80142999-1c912500-857a-11ea-9056-928058931776.png)
The culprit appears to be this code, which sets the selected item's gradient type to vertical if the gradient's destination point is directly above or beneath its origin point, without ensuring the gradient is linear.
Steps to Reproduce
Operating System and Browser
All