(fill: GradientPaint)
| 60 | |
| 61 | // ---- Gradient Transformation ---- |
| 62 | export const gradientAngle = (fill: GradientPaint): number => { |
| 63 | const [start, end] = fill.gradientHandlePositions; |
| 64 | return calculateAngle(start, end); |
| 65 | }; |
| 66 | |
| 67 | /** |
| 68 | * Calculate the angle between two points in degrees |
no test coverage detected