Skip to content

Commit 392a17a

Browse files
committed
refactor: Cleanup
1 parent 63bffa7 commit 392a17a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/utils/getRotatedBadgeInfo.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ import BadgeGravity from '../types/BadgeGravity';
22
import Rectangle from '../types/Rectangle';
33

44
const badgeGravityAngles: Record<BadgeGravity, number> = {
5+
[BadgeGravity.North]: 180,
6+
[BadgeGravity.Northeast]: -135,
57
[BadgeGravity.Northwest]: 135,
8+
[BadgeGravity.South]: 0,
69
[BadgeGravity.Southeast]: -45,
7-
[BadgeGravity.Northeast]: -135,
810
[BadgeGravity.Southwest]: 45,
9-
[BadgeGravity.North]: 180,
10-
[BadgeGravity.South]: 0,
1111
};
1212

1313
const badgeRotationDegrees: Record<BadgeGravity, number> = {
14+
[BadgeGravity.North]: 0,
15+
[BadgeGravity.Northeast]: 45,
1416
[BadgeGravity.Northwest]: -45,
17+
[BadgeGravity.South]: 0,
1518
[BadgeGravity.Southeast]: -45,
16-
[BadgeGravity.Northeast]: 45,
1719
[BadgeGravity.Southwest]: 45,
18-
[BadgeGravity.North]: 0,
19-
[BadgeGravity.South]: 0,
2020
};
2121

2222
export default function getRotatedBadgeInfo(

0 commit comments

Comments
 (0)