Skip to content

Commit

Permalink
feat: wrap rotation (#889)
Browse files Browse the repository at this point in the history
  • Loading branch information
cazala authored Feb 6, 2024
1 parent 8c58bd1 commit d1c5f40
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export function fromTransform(value: TransformType): TransformInput {
}

function formatAngle(angle: number) {
const value = angle.toFixed(2)
const sanitizedAngle = angle < 0 ? 360 + angle : angle
const value = sanitizedAngle.toFixed(2)
return value === '360.00' ? '0.00' : value
}

Expand Down

0 comments on commit d1c5f40

Please sign in to comment.